diff --git a/.opencode/node_modules/@opencode-ai/sdk/dist/v2/client.d.ts b/.opencode/node_modules/@opencode-ai/sdk/dist/v2/client.d.ts index 8cd97ce58f2432631628b8fb5679fdfc920b2cd3..5a792862f3b4fad43e85c206b757b3d438d8ecf3 100644 --- a/.opencode/node_modules/@opencode-ai/sdk/dist/v2/client.d.ts +++ b/.opencode/node_modules/@opencode-ai/sdk/dist/v2/client.d.ts @@ -1,4 +1,5 @@ export * from "./gen/types.gen.js"; +export type { FileSystemEntry as LocationFileSystemEntry } from "./gen/types.gen.js"; import { type Config } from "./gen/client/types.gen.js"; import { OpencodeClient } from "./gen/sdk.gen.js"; export { type Config as OpencodeClientConfig, OpencodeClient }; diff --git a/.opencode/node_modules/@opencode-ai/sdk/dist/v2/client.js b/.opencode/node_modules/@opencode-ai/sdk/dist/v2/client.js index ee4b59cff06d4a4b73873b0f4c9a3a3efc76d252..a3c2645209cee87ea7dcdab76caf8d02e558e8b4 100644 --- a/.opencode/node_modules/@opencode-ai/sdk/dist/v2/client.js +++ b/.opencode/node_modules/@opencode-ai/sdk/dist/v2/client.js @@ -26,8 +26,10 @@ function rewrite(request, values) { const value = pick(request.headers.get(name), key === "directory" ? values.directory : values.workspace, key === "directory" ? encodeURIComponent : undefined); if (!value) continue; - if (!url.searchParams.has(key)) { - url.searchParams.set(key, value); + for (const query of url.pathname.startsWith("/api/") ? [key, `location[${key}]`] : [key]) { + if (!url.searchParams.has(query)) { + url.searchParams.set(query, value); + } } changed = true; } diff --git a/.opencode/node_modules/@opencode-ai/sdk/dist/v2/gen/client/types.gen.d.ts b/.opencode/node_modules/@opencode-ai/sdk/dist/v2/gen/client/types.gen.d.ts index ead81e9fcfa3278a53ea49fb3cbac2f0b9e9e772..48364ae51e6575761005e230311e754620ca6bb0 100644 --- a/.opencode/node_modules/@opencode-ai/sdk/dist/v2/gen/client/types.gen.d.ts +++ b/.opencode/node_modules/@opencode-ai/sdk/dist/v2/gen/client/types.gen.d.ts @@ -85,7 +85,7 @@ export interface ClientOptions { throwOnError?: boolean; } type MethodFn = (options: Omit, "method">) => RequestResult; -type SseFn = (options: Omit, "method">) => Promise>; +type SseFn = (options: Omit, "method">) => Promise>; type RequestFn = (options: Omit, "method"> & Pick>, "method">) => RequestResult; type BuildUrlFn = = Options2 & { /** * You can provide a client instance returned by `createClient()` instead of @@ -68,7 +68,7 @@ export declare class App extends HeyApiClient { agents(parameters?: { directory?: string; workspace?: string; - }, options?: Options): import("./client/types.gen.js").RequestResult; + }, options?: Options): import("./client/types.gen.js").RequestResult; /** * List skills * @@ -77,94 +77,30 @@ export declare class App extends HeyApiClient { skills(parameters?: { directory?: string; workspace?: string; - }, options?: Options): import("./client/types.gen.js").RequestResult; + }, options?: Options): import("./client/types.gen.js").RequestResult; } -export declare class Config extends HeyApiClient { - /** - * Get global configuration - * - * Retrieve the current global OpenCode configuration settings and preferences. - */ - get(options?: Options): import("./client/types.gen.js").RequestResult; - /** - * Update global configuration - * - * Update global OpenCode configuration settings and preferences. - */ - update(parameters?: { - config?: Config3; - }, options?: Options): import("./client/types.gen.js").RequestResult; -} -export declare class Global extends HeyApiClient { - /** - * Get health - * - * Get health information about the OpenCode server. - */ - health(options?: Options): import("./client/types.gen.js").RequestResult; - /** - * Get global events - * - * Subscribe to global events from the OpenCode system using server-sent events. - */ - event(options?: Options): Promise>; - /** - * Dispose instance - * - * Clean up and dispose all OpenCode instances, releasing all resources. - */ - dispose(options?: Options): import("./client/types.gen.js").RequestResult; - /** - * Upgrade opencode - * - * Upgrade opencode to the specified version or latest if not specified. - */ - upgrade(parameters?: { - target?: string; - }, options?: Options): import("./client/types.gen.js").RequestResult; - private _config?; - get config(): Config; -} -export declare class Event extends HeyApiClient { +export declare class ControlPlane extends HeyApiClient { /** - * Subscribe to events + * Move session * - * Get events + * Move a session to another project directory, optionally transferring local changes. */ - subscribe(parameters?: { - directory?: string; - workspace?: string; - }, options?: Options): Promise>; + moveSession(parameters?: { + sessionID?: string; + destination?: MoveSessionDestination; + moveChanges?: boolean; + }, options?: Options): import("./client/types.gen.js").RequestResult; } -export declare class Config2 extends HeyApiClient { +export declare class Capabilities extends HeyApiClient { /** - * Get configuration + * Get experimental capabilities * - * Retrieve the current OpenCode configuration settings and preferences. + * Get experimental features enabled on the OpenCode server. */ get(parameters?: { directory?: string; workspace?: string; - }, options?: Options): import("./client/types.gen.js").RequestResult; - /** - * Update configuration - * - * Update OpenCode configuration settings and preferences. - */ - update(parameters?: { - directory?: string; - workspace?: string; - config?: Config3; - }, options?: Options): import("./client/types.gen.js").RequestResult; - /** - * List config providers - * - * Get a list of all configured AI providers and their default models. - */ - providers(parameters?: { - directory?: string; - workspace?: string; - }, options?: Options): import("./client/types.gen.js").RequestResult; + }, options?: Options): import("./client/types.gen.js").RequestResult; } export declare class Console extends HeyApiClient { /** @@ -212,7 +148,17 @@ export declare class Session extends HeyApiClient { search?: string; limit?: number; archived?: boolean | "true" | "false"; - }, options?: Options): import("./client/types.gen.js").RequestResult; + }, options?: Options): import("./client/types.gen.js").RequestResult; + /** + * Background subagents + * + * Detach any synchronous subagents currently blocking the session and continue them in the background. + */ + background(parameters: { + sessionID: string; + directory?: string; + workspace?: string; + }, options?: Options): import("./client/types.gen.js").RequestResult; } export declare class Resource extends HeyApiClient { /** @@ -223,7 +169,20 @@ export declare class Resource extends HeyApiClient { list(parameters?: { directory?: string; workspace?: string; - }, options?: Options): import("./client/types.gen.js").RequestResult; + }, options?: Options): import("./client/types.gen.js").RequestResult; +} +export declare class ProjectCopy extends HeyApiClient { + /** + * Generate project copy name + * + * Generate a short name for a project copy from task context. + */ + generateName(parameters: { + projectID: string; + directory?: string; + workspace?: string; + context?: string; + }, options?: Options): import("./client/types.gen.js").RequestResult; } export declare class Adapter extends HeyApiClient { /** @@ -234,7 +193,7 @@ export declare class Adapter extends HeyApiClient { list(parameters?: { directory?: string; workspace?: string; - }, options?: Options): import("./client/types.gen.js").RequestResult; + }, options?: Options): import("./client/types.gen.js").RequestResult; } export declare class Workspace extends HeyApiClient { /** @@ -245,7 +204,7 @@ export declare class Workspace extends HeyApiClient { list(parameters?: { directory?: string; workspace?: string; - }, options?: Options): import("./client/types.gen.js").RequestResult; + }, options?: Options): import("./client/types.gen.js").RequestResult; /** * Create workspace * @@ -267,7 +226,7 @@ export declare class Workspace extends HeyApiClient { syncList(parameters?: { directory?: string; workspace?: string; - }, options?: Options): import("./client/types.gen.js").RequestResult; + }, options?: Options): import("./client/types.gen.js").RequestResult; /** * Workspace status * @@ -276,7 +235,7 @@ export declare class Workspace extends HeyApiClient { status(parameters?: { directory?: string; workspace?: string; - }, options?: Options): import("./client/types.gen.js").RequestResult; + }, options?: Options): import("./client/types.gen.js").RequestResult; /** * Remove workspace * @@ -303,15 +262,108 @@ export declare class Workspace extends HeyApiClient { get adapter(): Adapter; } export declare class Experimental extends HeyApiClient { + private _controlPlane?; + get controlPlane(): ControlPlane; + private _capabilities?; + get capabilities(): Capabilities; private _console?; get console(): Console; private _session?; get session(): Session; private _resource?; get resource(): Resource; + private _projectCopy?; + get projectCopy(): ProjectCopy; private _workspace?; get workspace(): Workspace; } +export declare class Config extends HeyApiClient { + /** + * Get global configuration + * + * Retrieve the current global OpenCode configuration settings and preferences. + */ + get(options?: Options): import("./client/types.gen.js").RequestResult; + /** + * Update global configuration + * + * Update global OpenCode configuration settings and preferences. + */ + update(parameters?: { + config?: Config3; + }, options?: Options): import("./client/types.gen.js").RequestResult; +} +export declare class Global extends HeyApiClient { + /** + * Get health + * + * Get health information about the OpenCode server. + */ + health(options?: Options): import("./client/types.gen.js").RequestResult; + /** + * Get global events + * + * Subscribe to global events from the OpenCode system using server-sent events. + */ + event(options?: Options): Promise>; + /** + * Dispose instance + * + * Clean up and dispose all OpenCode instances, releasing all resources. + */ + dispose(options?: Options): import("./client/types.gen.js").RequestResult; + /** + * Upgrade opencode + * + * Upgrade opencode to the specified version or latest if not specified. + */ + upgrade(parameters?: { + target?: string; + }, options?: Options): import("./client/types.gen.js").RequestResult; + private _config?; + get config(): Config; +} +export declare class Event extends HeyApiClient { + /** + * Subscribe to events + * + * Get events + */ + subscribe(parameters?: { + directory?: string; + workspace?: string; + }, options?: Options): Promise>; +} +export declare class Config2 extends HeyApiClient { + /** + * Get configuration + * + * Retrieve the current OpenCode configuration settings and preferences. + */ + get(parameters?: { + directory?: string; + workspace?: string; + }, options?: Options): import("./client/types.gen.js").RequestResult; + /** + * Update configuration + * + * Update OpenCode configuration settings and preferences. + */ + update(parameters?: { + directory?: string; + workspace?: string; + config?: Config3; + }, options?: Options): import("./client/types.gen.js").RequestResult; + /** + * List config providers + * + * Get a list of all configured AI providers and their default models. + */ + providers(parameters?: { + directory?: string; + workspace?: string; + }, options?: Options): import("./client/types.gen.js").RequestResult; +} export declare class Tool extends HeyApiClient { /** * List tools @@ -385,7 +437,7 @@ export declare class Find extends HeyApiClient { directory?: string; workspace?: string; pattern: string; - }, options?: Options): import("./client/types.gen.js").RequestResult; + }, options?: Options): import("./client/types.gen.js").RequestResult; /** * Find files * @@ -398,7 +450,7 @@ export declare class Find extends HeyApiClient { dirs?: "true" | "false"; type?: "file" | "directory"; limit?: number; - }, options?: Options): import("./client/types.gen.js").RequestResult; + }, options?: Options): import("./client/types.gen.js").RequestResult; /** * Find symbols * @@ -408,7 +460,7 @@ export declare class Find extends HeyApiClient { directory?: string; workspace?: string; query: string; - }, options?: Options): import("./client/types.gen.js").RequestResult; + }, options?: Options): import("./client/types.gen.js").RequestResult; } export declare class File extends HeyApiClient { /** @@ -420,7 +472,7 @@ export declare class File extends HeyApiClient { directory?: string; workspace?: string; path: string; - }, options?: Options): import("./client/types.gen.js").RequestResult; + }, options?: Options): import("./client/types.gen.js").RequestResult; /** * Read file * @@ -430,7 +482,7 @@ export declare class File extends HeyApiClient { directory?: string; workspace?: string; path: string; - }, options?: Options): import("./client/types.gen.js").RequestResult; + }, options?: Options): import("./client/types.gen.js").RequestResult; /** * Get file status * @@ -439,7 +491,7 @@ export declare class File extends HeyApiClient { status(parameters?: { directory?: string; workspace?: string; - }, options?: Options): import("./client/types.gen.js").RequestResult; + }, options?: Options): import("./client/types.gen.js").RequestResult; } export declare class Instance extends HeyApiClient { /** @@ -450,7 +502,7 @@ export declare class Instance extends HeyApiClient { dispose(parameters?: { directory?: string; workspace?: string; - }, options?: Options): import("./client/types.gen.js").RequestResult; + }, options?: Options): import("./client/types.gen.js").RequestResult; } export declare class Path extends HeyApiClient { /** @@ -461,7 +513,7 @@ export declare class Path extends HeyApiClient { get(parameters?: { directory?: string; workspace?: string; - }, options?: Options): import("./client/types.gen.js").RequestResult; + }, options?: Options): import("./client/types.gen.js").RequestResult; } export declare class Diff extends HeyApiClient { /** @@ -472,7 +524,7 @@ export declare class Diff extends HeyApiClient { raw(parameters?: { directory?: string; workspace?: string; - }, options?: Options): import("./client/types.gen.js").RequestResult; + }, options?: Options): import("./client/types.gen.js").RequestResult; } export declare class Vcs extends HeyApiClient { /** @@ -483,7 +535,7 @@ export declare class Vcs extends HeyApiClient { get(parameters?: { directory?: string; workspace?: string; - }, options?: Options): import("./client/types.gen.js").RequestResult; + }, options?: Options): import("./client/types.gen.js").RequestResult; /** * Get VCS status * @@ -492,7 +544,7 @@ export declare class Vcs extends HeyApiClient { status(parameters?: { directory?: string; workspace?: string; - }, options?: Options): import("./client/types.gen.js").RequestResult; + }, options?: Options): import("./client/types.gen.js").RequestResult; /** * Get VCS diff * @@ -502,7 +554,8 @@ export declare class Vcs extends HeyApiClient { directory?: string; workspace?: string; mode: "git" | "branch"; - }, options?: Options): import("./client/types.gen.js").RequestResult; + context?: number; + }, options?: Options): import("./client/types.gen.js").RequestResult; /** * Apply VCS patch * @@ -525,7 +578,7 @@ export declare class Command extends HeyApiClient { list(parameters?: { directory?: string; workspace?: string; - }, options?: Options): import("./client/types.gen.js").RequestResult; + }, options?: Options): import("./client/types.gen.js").RequestResult; } export declare class Lsp extends HeyApiClient { /** @@ -536,7 +589,7 @@ export declare class Lsp extends HeyApiClient { status(parameters?: { directory?: string; workspace?: string; - }, options?: Options): import("./client/types.gen.js").RequestResult; + }, options?: Options): import("./client/types.gen.js").RequestResult; } export declare class Formatter extends HeyApiClient { /** @@ -547,7 +600,7 @@ export declare class Formatter extends HeyApiClient { status(parameters?: { directory?: string; workspace?: string; - }, options?: Options): import("./client/types.gen.js").RequestResult; + }, options?: Options): import("./client/types.gen.js").RequestResult; } export declare class Auth2 extends HeyApiClient { /** @@ -601,7 +654,7 @@ export declare class Mcp extends HeyApiClient { status(parameters?: { directory?: string; workspace?: string; - }, options?: Options): import("./client/types.gen.js").RequestResult; + }, options?: Options): import("./client/types.gen.js").RequestResult; /** * Add MCP server * @@ -620,7 +673,7 @@ export declare class Mcp extends HeyApiClient { name: string; directory?: string; workspace?: string; - }, options?: Options): import("./client/types.gen.js").RequestResult; + }, options?: Options): import("./client/types.gen.js").RequestResult; /** * Disconnect an MCP server. */ @@ -628,7 +681,7 @@ export declare class Mcp extends HeyApiClient { name: string; directory?: string; workspace?: string; - }, options?: Options): import("./client/types.gen.js").RequestResult; + }, options?: Options): import("./client/types.gen.js").RequestResult; private _auth?; get auth(): Auth2; } @@ -641,7 +694,7 @@ export declare class Project extends HeyApiClient { list(parameters?: { directory?: string; workspace?: string; - }, options?: Options): import("./client/types.gen.js").RequestResult; + }, options?: Options): import("./client/types.gen.js").RequestResult; /** * Get current project * @@ -650,7 +703,7 @@ export declare class Project extends HeyApiClient { current(parameters?: { directory?: string; workspace?: string; - }, options?: Options): import("./client/types.gen.js").RequestResult; + }, options?: Options): import("./client/types.gen.js").RequestResult; /** * Initialize git repository * @@ -659,7 +712,7 @@ export declare class Project extends HeyApiClient { initGit(parameters?: { directory?: string; workspace?: string; - }, options?: Options): import("./client/types.gen.js").RequestResult; + }, options?: Options): import("./client/types.gen.js").RequestResult; /** * Update project * @@ -670,18 +723,19 @@ export declare class Project extends HeyApiClient { directory?: string; workspace?: string; name?: string; - icon?: { - url?: string; - override?: string; - color?: string; - }; - commands?: { - /** - * Startup script to run when creating a new workspace (worktree) - */ - start?: string; - }; + icon?: ProjectIcon; + commands?: ProjectCommands; }, options?: Options): import("./client/types.gen.js").RequestResult; + /** + * List project directories + * + * List known local absolute directories for a project. + */ + directories(parameters: { + projectID: string; + directory?: string; + workspace?: string; + }, options?: Options): import("./client/types.gen.js").RequestResult; } export declare class Pty extends HeyApiClient { /** @@ -692,7 +746,7 @@ export declare class Pty extends HeyApiClient { shells(parameters?: { directory?: string; workspace?: string; - }, options?: Options): import("./client/types.gen.js").RequestResult; + }, options?: Options): import("./client/types.gen.js").RequestResult; /** * List PTY sessions * @@ -701,7 +755,7 @@ export declare class Pty extends HeyApiClient { list(parameters?: { directory?: string; workspace?: string; - }, options?: Options): import("./client/types.gen.js").RequestResult; + }, options?: Options): import("./client/types.gen.js").RequestResult; /** * Create PTY session * @@ -772,6 +826,8 @@ export declare class Pty extends HeyApiClient { ptyID: string; directory?: string; workspace?: string; + cursor?: string; + ticket?: string; }, options?: Options): import("./client/types.gen.js").RequestResult; } export declare class Question extends HeyApiClient { @@ -783,7 +839,7 @@ export declare class Question extends HeyApiClient { list(parameters?: { directory?: string; workspace?: string; - }, options?: Options): import("./client/types.gen.js").RequestResult; + }, options?: Options): import("./client/types.gen.js").RequestResult; /** * Reply to question request * @@ -815,7 +871,7 @@ export declare class Permission extends HeyApiClient { list(parameters?: { directory?: string; workspace?: string; - }, options?: Options): import("./client/types.gen.js").RequestResult; + }, options?: Options): import("./client/types.gen.js").RequestResult; /** * Respond to permission request * @@ -880,7 +936,7 @@ export declare class Provider extends HeyApiClient { list(parameters?: { directory?: string; workspace?: string; - }, options?: Options): import("./client/types.gen.js").RequestResult; + }, options?: Options): import("./client/types.gen.js").RequestResult; /** * Get provider auth methods * @@ -889,7 +945,7 @@ export declare class Provider extends HeyApiClient { auth(parameters?: { directory?: string; workspace?: string; - }, options?: Options): import("./client/types.gen.js").RequestResult; + }, options?: Options): import("./client/types.gen.js").RequestResult; private _oauth?; get oauth(): Oauth; } @@ -908,7 +964,7 @@ export declare class Session2 extends HeyApiClient { start?: number; search?: string; limit?: number; - }, options?: Options): import("./client/types.gen.js").RequestResult; + }, options?: Options): import("./client/types.gen.js").RequestResult; /** * Create session * @@ -925,6 +981,9 @@ export declare class Session2 extends HeyApiClient { providerID: string; variant?: string; }; + metadata?: { + [key: string]: unknown; + }; permission?: PermissionRuleset; workspaceID?: string; }, options?: Options): import("./client/types.gen.js").RequestResult; @@ -967,6 +1026,9 @@ export declare class Session2 extends HeyApiClient { directory?: string; workspace?: string; title?: string; + metadata?: { + [key: string]: unknown; + }; permission?: PermissionRuleset; time?: { archived?: number; @@ -1002,7 +1064,7 @@ export declare class Session2 extends HeyApiClient { directory?: string; workspace?: string; messageID?: string; - }, options?: Options): import("./client/types.gen.js").RequestResult; + }, options?: Options): import("./client/types.gen.js").RequestResult; /** * Get session messages * @@ -1262,7 +1324,7 @@ export declare class Sync extends HeyApiClient { start(parameters?: { directory?: string; workspace?: string; - }, options?: Options): import("./client/types.gen.js").RequestResult; + }, options?: Options): import("./client/types.gen.js").RequestResult; /** * Replay sync events * @@ -1295,256 +1357,886 @@ export declare class Sync extends HeyApiClient { private _history?; get history(): History; } -export declare class Session3 extends HeyApiClient { +export declare class Control extends HeyApiClient { /** - * List v2 sessions + * Get next TUI request * - * Retrieve sessions in the requested order. Items keep that order across pages; use cursor.next or cursor.previous to move through the ordered list. + * Retrieve the next TUI request from the queue for processing. */ - list(parameters?: { + next(parameters?: { directory?: string; workspace?: string; - limit?: number; - order?: "asc" | "desc"; - path?: string; - roots?: boolean | "true" | "false"; - start?: number; - search?: string; - cursor?: string; - }, options?: Options): import("./client/types.gen.js").RequestResult; + }, options?: Options): import("./client/types.gen.js").RequestResult; /** - * Send v2 message + * Submit TUI response * - * Create a v2 session message and queue it for the agent loop. + * Submit a response to the TUI request queue to complete a pending request. */ - prompt(parameters: { - sessionID: string; + response(parameters?: { directory?: string; workspace?: string; - prompt?: Prompt; - delivery?: SessionDelivery; - }, options?: Options): import("./client/types.gen.js").RequestResult; + body?: unknown; + }, options?: Options): import("./client/types.gen.js").RequestResult; +} +export declare class Tui extends HeyApiClient { /** - * Compact v2 session + * Append TUI prompt * - * Compact a v2 session conversation. + * Append prompt to the TUI. */ - compact(parameters: { - sessionID: string; + appendPrompt(parameters?: { directory?: string; workspace?: string; - }, options?: Options): import("./client/types.gen.js").RequestResult; + text?: string; + }, options?: Options): import("./client/types.gen.js").RequestResult; /** - * Wait for v2 session + * Open help dialog * - * Wait for a v2 session agent loop to become idle. + * Open the help dialog in the TUI to display user assistance information. */ - wait(parameters: { - sessionID: string; + openHelp(parameters?: { directory?: string; workspace?: string; - }, options?: Options): import("./client/types.gen.js").RequestResult; + }, options?: Options): import("./client/types.gen.js").RequestResult; /** - * Get v2 session context + * Open sessions dialog * - * Retrieve the active context messages for a v2 session (all messages after the last compaction). + * Open the session dialog. */ - context(parameters: { - sessionID: string; + openSessions(parameters?: { directory?: string; workspace?: string; - }, options?: Options): import("./client/types.gen.js").RequestResult; + }, options?: Options): import("./client/types.gen.js").RequestResult; /** - * Get v2 session messages + * Open themes dialog * - * Retrieve projected v2 messages for a session. Items keep the requested order across pages; use cursor.next or cursor.previous to move through the ordered timeline. + * Open the theme dialog. */ - messages(parameters: { - sessionID: string; + openThemes(parameters?: { directory?: string; workspace?: string; - limit?: number; - order?: "asc" | "desc"; - cursor?: string; - }, options?: Options): import("./client/types.gen.js").RequestResult; -} -export declare class Model extends HeyApiClient { + }, options?: Options): import("./client/types.gen.js").RequestResult; /** - * List v2 models + * Open models dialog * - * Retrieve available v2 models ordered by release date. + * Open the model dialog. */ - list(parameters?: { - location?: { - directory?: string; - workspace?: string; - }; - }, options?: Options): import("./client/types.gen.js").RequestResult; -} -export declare class Provider2 extends HeyApiClient { + openModels(parameters?: { + directory?: string; + workspace?: string; + }, options?: Options): import("./client/types.gen.js").RequestResult; /** - * List v2 providers + * Submit TUI prompt * - * Retrieve active v2 AI providers so clients can show provider availability and configuration. + * Submit the prompt. */ - list(parameters?: { - location?: { - directory?: string; - workspace?: string; - }; - }, options?: Options): import("./client/types.gen.js").RequestResult; + submitPrompt(parameters?: { + directory?: string; + workspace?: string; + }, options?: Options): import("./client/types.gen.js").RequestResult; /** - * Get v2 provider + * Clear TUI prompt * - * Retrieve a single v2 AI provider so clients can inspect its availability and endpoint settings. + * Clear the prompt. */ - get(parameters: { - providerID: string; - location?: { - directory?: string; - workspace?: string; + clearPrompt(parameters?: { + directory?: string; + workspace?: string; + }, options?: Options): import("./client/types.gen.js").RequestResult; + /** + * Execute TUI command + * + * Execute a TUI command. + */ + executeCommand(parameters?: { + directory?: string; + workspace?: string; + command?: string; + }, options?: Options): import("./client/types.gen.js").RequestResult; + /** + * Show TUI toast + * + * Show a toast notification in the TUI. + */ + showToast(parameters?: { + directory?: string; + workspace?: string; + title?: string; + message?: string; + variant?: "info" | "success" | "warning" | "error"; + duration?: number; + }, options?: Options): import("./client/types.gen.js").RequestResult; + /** + * Publish TUI event + * + * Publish a TUI event. + */ + publish(parameters?: { + directory?: string; + workspace?: string; + body?: EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect; + }, options?: Options): import("./client/types.gen.js").RequestResult; + /** + * Select session + * + * Navigate the TUI to display the specified session. + */ + selectSession(parameters?: { + directory?: string; + workspace?: string; + sessionID?: string; + }, options?: Options): import("./client/types.gen.js").RequestResult; + private _control?; + get control(): Control; +} +export declare class Health extends HeyApiClient { + /** + * Check server health + * + * Check whether the API server is ready to accept requests. + */ + get(options?: Options): import("./client/types.gen.js").RequestResult; +} +export declare class Location extends HeyApiClient { + /** + * Get location + * + * Resolve the requested location or the server default location. + */ + get(parameters?: { + location?: { + directory?: string; + workspace?: string; + }; + }, options?: Options): import("./client/types.gen.js").RequestResult; +} +export declare class Agent extends HeyApiClient { + /** + * List agents + * + * Retrieve currently registered agents. + */ + list(parameters?: { + location?: { + directory?: string; + workspace?: string; + }; + }, options?: Options): import("./client/types.gen.js").RequestResult; +} +export declare class Revert extends HeyApiClient { + /** + * Stage session revert + * + * Stage or move a reversible session boundary and optionally apply its file changes. + */ + stage(parameters: { + sessionID: string; + messageID?: string; + files?: boolean; + }, options?: Options): import("./client/types.gen.js").RequestResult; + /** + * Clear staged revert + */ + clear(parameters: { + sessionID: string; + }, options?: Options): import("./client/types.gen.js").RequestResult; + /** + * Commit staged revert + */ + commit(parameters: { + sessionID: string; + }, options?: Options): import("./client/types.gen.js").RequestResult; +} +export declare class Permission2 extends HeyApiClient { + /** + * List session permission requests + * + * Retrieve pending permission requests owned by a session. + */ + list(parameters: { + sessionID: string; + }, options?: Options): import("./client/types.gen.js").RequestResult; + /** + * Create permission request + * + * Evaluate and, when approval is required, create a permission request for a session. + */ + create(parameters: { + sessionID: string; + id?: string; + action?: string; + resources?: Array; + save?: Array; + metadata?: { + [key: string]: unknown; + }; + source?: PermissionV2Source; + agent?: string; + }, options?: Options): import("./client/types.gen.js").RequestResult; + /** + * Get permission request + * + * Retrieve a pending permission request owned by a session. + */ + get(parameters: { + sessionID: string; + requestID: string; + }, options?: Options): import("./client/types.gen.js").RequestResult; + /** + * Reply to pending permission request + * + * Respond to a pending permission request owned by a session. + */ + reply(parameters: { + sessionID: string; + requestID: string; + reply?: PermissionV2Reply; + message?: string; + }, options?: Options): import("./client/types.gen.js").RequestResult; +} +export declare class Question2 extends HeyApiClient { + /** + * List session question requests + * + * Retrieve pending question requests owned by a session. + */ + list(parameters: { + sessionID: string; + }, options?: Options): import("./client/types.gen.js").RequestResult; + /** + * Reply to pending question request + * + * Answer a pending question request owned by a session. + */ + reply(parameters: { + sessionID: string; + requestID: string; + questionV2Reply: QuestionV2Reply; + }, options?: Options): import("./client/types.gen.js").RequestResult; + /** + * Reject pending question request + * + * Reject a pending question request owned by a session. + */ + reject(parameters: { + sessionID: string; + requestID: string; + }, options?: Options): import("./client/types.gen.js").RequestResult; +} +export declare class Session3 extends HeyApiClient { + /** + * List sessions + * + * Retrieve sessions in the requested order. Items keep that order across pages; use cursor.next or cursor.previous to move through the ordered list. + */ + list(parameters?: { + workspace?: string; + limit?: number; + order?: "asc" | "desc"; + search?: string; + directory?: string; + project?: string; + subpath?: string; + cursor?: string; + }, options?: Options): import("./client/types.gen.js").RequestResult; + /** + * Create session + * + * Create a session at the requested location. + */ + create(parameters?: { + id?: string; + agent?: string; + model?: ModelRef; + location?: LocationRef; + }, options?: Options): import("./client/types.gen.js").RequestResult; + /** + * List active sessions + * + * Retrieve foreground Session drains currently owned by this OpenCode process. Sessions absent from the result are inactive. + */ + active(options?: Options): import("./client/types.gen.js").RequestResult; + /** + * Get session + * + * Retrieve a session by ID. + */ + get(parameters: { + sessionID: string; + }, options?: Options): import("./client/types.gen.js").RequestResult; + /** + * Switch session agent + * + * Switch the agent used by subsequent provider turns. + */ + switchAgent(parameters: { + sessionID: string; + agent?: string; + }, options?: Options): import("./client/types.gen.js").RequestResult; + /** + * Switch session model + * + * Switch the model used by subsequent provider turns. + */ + switchModel(parameters: { + sessionID: string; + model?: ModelRef; + }, options?: Options): import("./client/types.gen.js").RequestResult; + /** + * Send message + * + * Durably admit one session input and schedule agent-loop execution unless resume is false. + */ + prompt(parameters: { + sessionID: string; + id?: string; + prompt?: PromptInput; + delivery?: "steer" | "queue"; + resume?: boolean; + }, options?: Options): import("./client/types.gen.js").RequestResult; + /** + * Compact session + * + * Compact a session conversation. + */ + compact(parameters: { + sessionID: string; + }, options?: Options): import("./client/types.gen.js").RequestResult; + /** + * Wait for session + * + * Wait for a session agent loop to become idle. + */ + wait(parameters: { + sessionID: string; + }, options?: Options): import("./client/types.gen.js").RequestResult; + /** + * Get session context + * + * Retrieve the active context messages for a session (all messages after the last compaction). + */ + context(parameters: { + sessionID: string; + }, options?: Options): import("./client/types.gen.js").RequestResult; + /** + * Get session history + * + * Read one finite page of public durable Session events after an exclusive aggregate sequence. Newly committed events may appear on later pages. + */ + history(parameters: { + sessionID: string; + limit?: number; + after?: number; + }, options?: Options): import("./client/types.gen.js").RequestResult; + /** + * Subscribe to session events + * + * Replay durable events after an aggregate sequence, then continue with new durable events. + */ + events(parameters: { + sessionID: string; + after?: string; + }, options?: Options): Promise>; + /** + * Interrupt session execution + * + * Interrupt active execution owned by this OpenCode process. Idle interruption is a no-op. + */ + interrupt(parameters: { + sessionID: string; + }, options?: Options): import("./client/types.gen.js").RequestResult; + /** + * Get session message + * + * Retrieve one projected message owned by the Session. + */ + message(parameters: { + sessionID: string; + messageID: string; + }, options?: Options): import("./client/types.gen.js").RequestResult; + /** + * Get session messages + * + * Retrieve projected messages for a session. Items keep the requested order across pages; use cursor.next or cursor.previous to move through the ordered timeline. + */ + messages(parameters: { + sessionID: string; + limit?: number; + order?: "asc" | "desc"; + cursor?: string; + }, options?: Options): import("./client/types.gen.js").RequestResult; + private _revert?; + get revert(): Revert; + private _permission?; + get permission(): Permission2; + private _question?; + get question(): Question2; +} +export declare class Model extends HeyApiClient { + /** + * List models + * + * Retrieve available models ordered by release date. + */ + list(parameters?: { + location?: { + directory?: string; + workspace?: string; + }; + }, options?: Options): import("./client/types.gen.js").RequestResult; +} +export declare class Provider2 extends HeyApiClient { + /** + * List providers + * + * Retrieve active AI providers so clients can show provider availability and configuration. + */ + list(parameters?: { + location?: { + directory?: string; + workspace?: string; + }; + }, options?: Options): import("./client/types.gen.js").RequestResult; + /** + * Get provider + * + * Retrieve a single AI provider so clients can inspect its availability and endpoint settings. + */ + get(parameters: { + providerID: string; + location?: { + directory?: string; + workspace?: string; + }; + }, options?: Options): import("./client/types.gen.js").RequestResult; +} +export declare class Connect extends HeyApiClient { + /** + * Connect with key + * + * Run a key authentication method and store the resulting credential. + */ + key(parameters: { + integrationID: string; + location?: { + directory?: string; + workspace?: string; + }; + key?: string; + label?: string; + }, options?: Options): import("./client/types.gen.js").RequestResult; + /** + * Begin OAuth connection + * + * Start an OAuth attempt and return the authorization details. + */ + oauth(parameters: { + integrationID: string; + location?: { + directory?: string; + workspace?: string; + }; + methodID?: string; + inputs?: { + [key: string]: string; + }; + label?: string; + }, options?: Options): import("./client/types.gen.js").RequestResult; +} +export declare class Attempt extends HeyApiClient { + /** + * Cancel OAuth connection + * + * Cancel an OAuth attempt and release its resources. + */ + cancel(parameters: { + attemptID: string; + location?: { + directory?: string; + workspace?: string; + }; + }, options?: Options): import("./client/types.gen.js").RequestResult; + /** + * Get OAuth attempt status + * + * Poll the current status of an OAuth attempt. + */ + status(parameters: { + attemptID: string; + location?: { + directory?: string; + workspace?: string; + }; + }, options?: Options): import("./client/types.gen.js").RequestResult; + /** + * Complete OAuth connection + * + * Complete a code-based OAuth attempt and store the resulting credential. + */ + complete(parameters: { + attemptID: string; + location?: { + directory?: string; + workspace?: string; + }; + code?: string; + }, options?: Options): import("./client/types.gen.js").RequestResult; +} +export declare class Integration extends HeyApiClient { + /** + * List integrations + * + * Retrieve available integrations and their authentication methods. + */ + list(parameters?: { + location?: { + directory?: string; + workspace?: string; + }; + }, options?: Options): import("./client/types.gen.js").RequestResult; + /** + * Get integration + * + * Retrieve one integration and its authentication methods. + */ + get(parameters: { + integrationID: string; + location?: { + directory?: string; + workspace?: string; + }; + }, options?: Options): import("./client/types.gen.js").RequestResult; + private _connect?; + get connect(): Connect; + private _attempt?; + get attempt(): Attempt; +} +export declare class Credential extends HeyApiClient { + /** + * Remove credential + * + * Remove a stored integration credential. + */ + remove(parameters: { + credentialID: string; + location?: { + directory?: string; + workspace?: string; + }; + }, options?: Options): import("./client/types.gen.js").RequestResult; + /** + * Update credential + * + * Update a stored credential label. + */ + update(parameters: { + credentialID: string; + location?: { + directory?: string; + workspace?: string; }; - }, options?: Options): import("./client/types.gen.js").RequestResult; + label?: string; + }, options?: Options): import("./client/types.gen.js").RequestResult; } -export declare class V2 extends HeyApiClient { - private _session?; - get session(): Session3; - private _model?; - get model(): Model; - private _provider?; - get provider(): Provider2; +export declare class Request extends HeyApiClient { + /** + * List pending permission requests + * + * Retrieve pending permission requests for a location. + */ + list(parameters?: { + location?: { + directory?: string; + workspace?: string; + }; + }, options?: Options): import("./client/types.gen.js").RequestResult; } -export declare class Control extends HeyApiClient { +export declare class Saved extends HeyApiClient { /** - * Get next TUI request + * List saved permissions * - * Retrieve the next TUI request from the queue for processing. + * Retrieve saved permissions, optionally filtered by project. */ - next(parameters?: { - directory?: string; - workspace?: string; - }, options?: Options): import("./client/types.gen.js").RequestResult; + list(parameters?: { + projectID?: string; + }, options?: Options): import("./client/types.gen.js").RequestResult; /** - * Submit TUI response + * Remove saved permission * - * Submit a response to the TUI request queue to complete a pending request. + * Remove a saved permission by ID. */ - response(parameters?: { - directory?: string; - workspace?: string; - body?: unknown; - }, options?: Options): import("./client/types.gen.js").RequestResult; + remove(parameters: { + id: string; + }, options?: Options): import("./client/types.gen.js").RequestResult; } -export declare class Tui extends HeyApiClient { +export declare class Permission3 extends HeyApiClient { + private _request?; + get request(): Request; + private _saved?; + get saved(): Saved; +} +export declare class Fs extends HeyApiClient { /** - * Append TUI prompt + * Read file * - * Append prompt to the TUI. + * Serve one file relative to the requested location. */ - appendPrompt(parameters?: { - directory?: string; - workspace?: string; - text?: string; - }, options?: Options): import("./client/types.gen.js").RequestResult; + read(parameters?: { + location?: { + directory?: string; + workspace?: string; + }; + }, options?: Options): import("./client/types.gen.js").RequestResult; /** - * Open help dialog + * List directory * - * Open the help dialog in the TUI to display user assistance information. + * List direct children of one directory relative to the requested location. */ - openHelp(parameters?: { - directory?: string; - workspace?: string; - }, options?: Options): import("./client/types.gen.js").RequestResult; + list(parameters?: { + location?: { + directory?: string; + workspace?: string; + }; + path?: string; + }, options?: Options): import("./client/types.gen.js").RequestResult; /** - * Open sessions dialog + * Find files * - * Open the session dialog. + * Find recursively ranked filesystem entries relative to the requested location. */ - openSessions(parameters?: { - directory?: string; - workspace?: string; - }, options?: Options): import("./client/types.gen.js").RequestResult; + find(parameters: { + location?: { + directory?: string; + workspace?: string; + }; + query: string; + type?: "file" | "directory"; + limit?: string; + }, options?: Options): import("./client/types.gen.js").RequestResult; +} +export declare class Command2 extends HeyApiClient { /** - * Open themes dialog + * List commands * - * Open the theme dialog. + * Retrieve currently registered commands. */ - openThemes(parameters?: { - directory?: string; - workspace?: string; - }, options?: Options): import("./client/types.gen.js").RequestResult; + list(parameters?: { + location?: { + directory?: string; + workspace?: string; + }; + }, options?: Options): import("./client/types.gen.js").RequestResult; +} +export declare class Skill extends HeyApiClient { /** - * Open models dialog + * List skills * - * Open the model dialog. + * Retrieve currently registered skills. */ - openModels(parameters?: { - directory?: string; - workspace?: string; - }, options?: Options): import("./client/types.gen.js").RequestResult; + list(parameters?: { + location?: { + directory?: string; + workspace?: string; + }; + }, options?: Options): import("./client/types.gen.js").RequestResult; +} +export declare class Event2 extends HeyApiClient { /** - * Submit TUI prompt + * Subscribe to events * - * Submit the prompt. + * Subscribe to native event payloads for the server. */ - submitPrompt(parameters?: { - directory?: string; - workspace?: string; - }, options?: Options): import("./client/types.gen.js").RequestResult; + subscribe(options?: Options): Promise>; +} +export declare class Pty2 extends HeyApiClient { /** - * Clear TUI prompt + * List PTY sessions * - * Clear the prompt. + * List PTY sessions for a location, including exited sessions retained until removal. */ - clearPrompt(parameters?: { - directory?: string; - workspace?: string; - }, options?: Options): import("./client/types.gen.js").RequestResult; + list(parameters?: { + location?: { + directory?: string; + workspace?: string; + }; + }, options?: Options): import("./client/types.gen.js").RequestResult; /** - * Execute TUI command + * Create PTY session * - * Execute a TUI command. + * Create a pseudo-terminal session for a location. */ - executeCommand(parameters?: { - directory?: string; - workspace?: string; + create(parameters?: { + location?: { + directory?: string; + workspace?: string; + }; command?: string; - }, options?: Options): import("./client/types.gen.js").RequestResult; + args?: Array; + cwd?: string; + title?: string; + env?: { + [key: string]: string; + }; + }, options?: Options): import("./client/types.gen.js").RequestResult; /** - * Show TUI toast + * Remove PTY session * - * Show a toast notification in the TUI. + * Terminate and remove one PTY session. */ - showToast(parameters?: { - directory?: string; - workspace?: string; + remove(parameters: { + ptyID: string; + location?: { + directory?: string; + workspace?: string; + }; + }, options?: Options): import("./client/types.gen.js").RequestResult; + /** + * Get PTY session + * + * Get one PTY session, including its exit code once exited. + */ + get(parameters: { + ptyID: string; + location?: { + directory?: string; + workspace?: string; + }; + }, options?: Options): import("./client/types.gen.js").RequestResult; + /** + * Update PTY session + * + * Update the title or viewport size of one PTY session. + */ + update(parameters: { + ptyID: string; + location?: { + directory?: string; + workspace?: string; + }; title?: string; - message?: string; - variant?: "info" | "success" | "warning" | "error"; - duration?: number; - }, options?: Options): import("./client/types.gen.js").RequestResult; + size?: { + rows: number; + cols: number; + }; + }, options?: Options): import("./client/types.gen.js").RequestResult; /** - * Publish TUI event + * Create PTY WebSocket token * - * Publish a TUI event. + * Create a short-lived single-use ticket for opening a PTY WebSocket connection. */ - publish(parameters?: { - directory?: string; - workspace?: string; - body?: EventTuiPromptAppend2 | EventTuiCommandExecute2 | EventTuiToastShow2 | EventTuiSessionSelect2; - }, options?: Options): import("./client/types.gen.js").RequestResult; + connectToken(parameters: { + ptyID: string; + location?: { + directory?: string; + workspace?: string; + }; + }, options?: Options): import("./client/types.gen.js").RequestResult; /** - * Select session + * Connect to PTY session * - * Navigate the TUI to display the specified session. + * Establish a WebSocket connection streaming PTY output and accepting terminal input. */ - selectSession(parameters?: { + connect(parameters: { + ptyID: string; + "location[directory]"?: string; + "location[workspace]"?: string; + cursor?: string; + ticket?: string; + }, options?: Options): import("./client/types.gen.js").RequestResult; +} +export declare class Request2 extends HeyApiClient { + /** + * List pending question requests + * + * Retrieve pending question requests for a location. + */ + list(parameters?: { + location?: { + directory?: string; + workspace?: string; + }; + }, options?: Options): import("./client/types.gen.js").RequestResult; +} +export declare class Question3 extends HeyApiClient { + private _request?; + get request(): Request2; +} +export declare class Reference extends HeyApiClient { + /** + * List references + * + * List references available in the requested location. + */ + list(parameters?: { + location?: { + directory?: string; + workspace?: string; + }; + }, options?: Options): import("./client/types.gen.js").RequestResult; +} +export declare class ProjectCopy2 extends HeyApiClient { + remove(parameters: { + projectID: string; + location?: { + directory?: string; + workspace?: string; + }; directory?: string; - workspace?: string; - sessionID?: string; - }, options?: Options): import("./client/types.gen.js").RequestResult; - private _control?; - get control(): Control; + force?: boolean; + }, options?: Options): import("./client/types.gen.js").RequestResult; + create(parameters: { + projectID: string; + location?: { + directory?: string; + workspace?: string; + }; + strategy?: string; + directory?: string; + name?: string; + }, options?: Options): import("./client/types.gen.js").RequestResult; + refresh(parameters: { + projectID: string; + location?: { + directory?: string; + workspace?: string; + }; + }, options?: Options): import("./client/types.gen.js").RequestResult; +} +export declare class V2 extends HeyApiClient { + private _health?; + get health(): Health; + private _location?; + get location(): Location; + private _agent?; + get agent(): Agent; + private _session?; + get session(): Session3; + private _model?; + get model(): Model; + private _provider?; + get provider(): Provider2; + private _integration?; + get integration(): Integration; + private _credential?; + get credential(): Credential; + private _permission?; + get permission(): Permission3; + private _fs?; + get fs(): Fs; + private _command?; + get command(): Command2; + private _skill?; + get skill(): Skill; + private _event?; + get event(): Event2; + private _pty?; + get pty(): Pty2; + private _question?; + get question(): Question3; + private _reference?; + get reference(): Reference; + private _projectCopy?; + get projectCopy(): ProjectCopy2; } export declare class OpencodeClient extends HeyApiClient { static readonly __registry: HeyApiRegistry; @@ -1556,14 +2248,14 @@ export declare class OpencodeClient extends HeyApiClient { get auth(): Auth; private _app?; get app(): App; + private _experimental?; + get experimental(): Experimental; private _global?; get global(): Global; private _event?; get event(): Event; private _config?; get config(): Config2; - private _experimental?; - get experimental(): Experimental; private _tool?; get tool(): Tool; private _worktree?; @@ -1602,9 +2294,9 @@ export declare class OpencodeClient extends HeyApiClient { get part(): Part; private _sync?; get sync(): Sync; - private _v2?; - get v2(): V2; private _tui?; get tui(): Tui; + private _v2?; + get v2(): V2; } export {}; diff --git a/.opencode/node_modules/@opencode-ai/sdk/dist/v2/gen/sdk.gen.js b/.opencode/node_modules/@opencode-ai/sdk/dist/v2/gen/sdk.gen.js index 3feeef0aeaa8fa95c6fdd1608f4c836a7dcccf2f..aef9c9256ec09d03e1a9c6b0df2abd14688d3d01 100644 --- a/.opencode/node_modules/@opencode-ai/sdk/dist/v2/gen/sdk.gen.js +++ b/.opencode/node_modules/@opencode-ai/sdk/dist/v2/gen/sdk.gen.js @@ -132,154 +132,24 @@ export class App extends HeyApiClient { }); } } -export class Config extends HeyApiClient { - /** - * Get global configuration - * - * Retrieve the current global OpenCode configuration settings and preferences. - */ - get(options) { - return (options?.client ?? this.client).get({ - url: "/global/config", - ...options, - }); - } - /** - * Update global configuration - * - * Update global OpenCode configuration settings and preferences. - */ - update(parameters, options) { - const params = buildClientParams([parameters], [{ args: [{ key: "config", map: "body" }] }]); - return (options?.client ?? this.client).patch({ - url: "/global/config", - ...options, - ...params, - headers: { - "Content-Type": "application/json", - ...options?.headers, - ...params.headers, - }, - }); - } -} -export class Global extends HeyApiClient { - /** - * Get health - * - * Get health information about the OpenCode server. - */ - health(options) { - return (options?.client ?? this.client).get({ - url: "/global/health", - ...options, - }); - } - /** - * Get global events - * - * Subscribe to global events from the OpenCode system using server-sent events. - */ - event(options) { - return (options?.client ?? this.client).sse.get({ - url: "/global/event", - ...options, - }); - } - /** - * Dispose instance - * - * Clean up and dispose all OpenCode instances, releasing all resources. - */ - dispose(options) { - return (options?.client ?? this.client).post({ - url: "/global/dispose", - ...options, - }); - } - /** - * Upgrade opencode - * - * Upgrade opencode to the specified version or latest if not specified. - */ - upgrade(parameters, options) { - const params = buildClientParams([parameters], [{ args: [{ in: "body", key: "target" }] }]); - return (options?.client ?? this.client).post({ - url: "/global/upgrade", - ...options, - ...params, - headers: { - "Content-Type": "application/json", - ...options?.headers, - ...params.headers, - }, - }); - } - _config; - get config() { - return (this._config ??= new Config({ client: this.client })); - } -} -export class Event extends HeyApiClient { - /** - * Subscribe to events - * - * Get events - */ - subscribe(parameters, options) { - const params = buildClientParams([parameters], [ - { - args: [ - { in: "query", key: "directory" }, - { in: "query", key: "workspace" }, - ], - }, - ]); - return (options?.client ?? this.client).sse.get({ - url: "/event", - ...options, - ...params, - }); - } -} -export class Config2 extends HeyApiClient { - /** - * Get configuration - * - * Retrieve the current OpenCode configuration settings and preferences. - */ - get(parameters, options) { - const params = buildClientParams([parameters], [ - { - args: [ - { in: "query", key: "directory" }, - { in: "query", key: "workspace" }, - ], - }, - ]); - return (options?.client ?? this.client).get({ - url: "/config", - ...options, - ...params, - }); - } +export class ControlPlane extends HeyApiClient { /** - * Update configuration + * Move session * - * Update OpenCode configuration settings and preferences. + * Move a session to another project directory, optionally transferring local changes. */ - update(parameters, options) { + moveSession(parameters, options) { const params = buildClientParams([parameters], [ { args: [ - { in: "query", key: "directory" }, - { in: "query", key: "workspace" }, - { key: "config", map: "body" }, + { in: "body", key: "sessionID" }, + { in: "body", key: "destination" }, + { in: "body", key: "moveChanges" }, ], }, ]); - return (options?.client ?? this.client).patch({ - url: "/config", + return (options?.client ?? this.client).post({ + url: "/experimental/control-plane/move-session", ...options, ...params, headers: { @@ -289,12 +159,14 @@ export class Config2 extends HeyApiClient { }, }); } +} +export class Capabilities extends HeyApiClient { /** - * List config providers + * Get experimental capabilities * - * Get a list of all configured AI providers and their default models. + * Get experimental features enabled on the OpenCode server. */ - providers(parameters, options) { + get(parameters, options) { const params = buildClientParams([parameters], [ { args: [ @@ -304,7 +176,7 @@ export class Config2 extends HeyApiClient { }, ]); return (options?.client ?? this.client).get({ - url: "/config/providers", + url: "/experimental/capabilities", ...options, ...params, }); @@ -406,6 +278,27 @@ export class Session extends HeyApiClient { ...params, }); } + /** + * Background subagents + * + * Detach any synchronous subagents currently blocking the session and continue them in the background. + */ + background(parameters, options) { + const params = buildClientParams([parameters], [ + { + args: [ + { in: "path", key: "sessionID" }, + { in: "query", key: "directory" }, + { in: "query", key: "workspace" }, + ], + }, + ]); + return (options?.client ?? this.client).post({ + url: "/experimental/session/{sessionID}/background", + ...options, + ...params, + }); + } } export class Resource extends HeyApiClient { /** @@ -429,6 +322,35 @@ export class Resource extends HeyApiClient { }); } } +export class ProjectCopy extends HeyApiClient { + /** + * Generate project copy name + * + * Generate a short name for a project copy from task context. + */ + generateName(parameters, options) { + const params = buildClientParams([parameters], [ + { + args: [ + { in: "path", key: "projectID" }, + { in: "query", key: "directory" }, + { in: "query", key: "workspace" }, + { in: "body", key: "context" }, + ], + }, + ]); + return (options?.client ?? this.client).post({ + url: "/experimental/project/{projectID}/copy/generate-name", + ...options, + ...params, + headers: { + "Content-Type": "application/json", + ...options?.headers, + ...params.headers, + }, + }); + } +} export class Adapter extends HeyApiClient { /** * List workspace adapters @@ -596,6 +518,14 @@ export class Workspace extends HeyApiClient { } } export class Experimental extends HeyApiClient { + _controlPlane; + get controlPlane() { + return (this._controlPlane ??= new ControlPlane({ client: this.client })); + } + _capabilities; + get capabilities() { + return (this._capabilities ??= new Capabilities({ client: this.client })); + } _console; get console() { return (this._console ??= new Console({ client: this.client })); @@ -608,73 +538,36 @@ export class Experimental extends HeyApiClient { get resource() { return (this._resource ??= new Resource({ client: this.client })); } + _projectCopy; + get projectCopy() { + return (this._projectCopy ??= new ProjectCopy({ client: this.client })); + } _workspace; get workspace() { return (this._workspace ??= new Workspace({ client: this.client })); } } -export class Tool extends HeyApiClient { - /** - * List tools - * - * Get a list of available tools with their JSON schema parameters for a specific provider and model combination. - */ - list(parameters, options) { - const params = buildClientParams([parameters], [ - { - args: [ - { in: "query", key: "directory" }, - { in: "query", key: "workspace" }, - { in: "query", key: "provider" }, - { in: "query", key: "model" }, - ], - }, - ]); - return (options?.client ?? this.client).get({ - url: "/experimental/tool", - ...options, - ...params, - }); - } +export class Config extends HeyApiClient { /** - * List tool IDs + * Get global configuration * - * Get a list of all available tool IDs, including both built-in tools and dynamically registered tools. + * Retrieve the current global OpenCode configuration settings and preferences. */ - ids(parameters, options) { - const params = buildClientParams([parameters], [ - { - args: [ - { in: "query", key: "directory" }, - { in: "query", key: "workspace" }, - ], - }, - ]); + get(options) { return (options?.client ?? this.client).get({ - url: "/experimental/tool/ids", + url: "/global/config", ...options, - ...params, }); } -} -export class Worktree extends HeyApiClient { /** - * Remove worktree + * Update global configuration * - * Remove a git worktree and delete its branch. + * Update global OpenCode configuration settings and preferences. */ - remove(parameters, options) { - const params = buildClientParams([parameters], [ - { - args: [ - { in: "query", key: "directory" }, - { in: "query", key: "workspace" }, - { key: "worktreeRemoveInput", map: "body" }, - ], - }, - ]); - return (options?.client ?? this.client).delete({ - url: "/experimental/worktree", + update(parameters, options) { + const params = buildClientParams([parameters], [{ args: [{ key: "config", map: "body" }] }]); + return (options?.client ?? this.client).patch({ + url: "/global/config", ...options, ...params, headers: { @@ -684,8 +577,227 @@ export class Worktree extends HeyApiClient { }, }); } +} +export class Global extends HeyApiClient { /** - * List worktrees + * Get health + * + * Get health information about the OpenCode server. + */ + health(options) { + return (options?.client ?? this.client).get({ + url: "/global/health", + ...options, + }); + } + /** + * Get global events + * + * Subscribe to global events from the OpenCode system using server-sent events. + */ + event(options) { + return (options?.client ?? this.client).sse.get({ + url: "/global/event", + ...options, + }); + } + /** + * Dispose instance + * + * Clean up and dispose all OpenCode instances, releasing all resources. + */ + dispose(options) { + return (options?.client ?? this.client).post({ + url: "/global/dispose", + ...options, + }); + } + /** + * Upgrade opencode + * + * Upgrade opencode to the specified version or latest if not specified. + */ + upgrade(parameters, options) { + const params = buildClientParams([parameters], [{ args: [{ in: "body", key: "target" }] }]); + return (options?.client ?? this.client).post({ + url: "/global/upgrade", + ...options, + ...params, + headers: { + "Content-Type": "application/json", + ...options?.headers, + ...params.headers, + }, + }); + } + _config; + get config() { + return (this._config ??= new Config({ client: this.client })); + } +} +export class Event extends HeyApiClient { + /** + * Subscribe to events + * + * Get events + */ + subscribe(parameters, options) { + const params = buildClientParams([parameters], [ + { + args: [ + { in: "query", key: "directory" }, + { in: "query", key: "workspace" }, + ], + }, + ]); + return (options?.client ?? this.client).sse.get({ + url: "/event", + ...options, + ...params, + }); + } +} +export class Config2 extends HeyApiClient { + /** + * Get configuration + * + * Retrieve the current OpenCode configuration settings and preferences. + */ + get(parameters, options) { + const params = buildClientParams([parameters], [ + { + args: [ + { in: "query", key: "directory" }, + { in: "query", key: "workspace" }, + ], + }, + ]); + return (options?.client ?? this.client).get({ + url: "/config", + ...options, + ...params, + }); + } + /** + * Update configuration + * + * Update OpenCode configuration settings and preferences. + */ + update(parameters, options) { + const params = buildClientParams([parameters], [ + { + args: [ + { in: "query", key: "directory" }, + { in: "query", key: "workspace" }, + { key: "config", map: "body" }, + ], + }, + ]); + return (options?.client ?? this.client).patch({ + url: "/config", + ...options, + ...params, + headers: { + "Content-Type": "application/json", + ...options?.headers, + ...params.headers, + }, + }); + } + /** + * List config providers + * + * Get a list of all configured AI providers and their default models. + */ + providers(parameters, options) { + const params = buildClientParams([parameters], [ + { + args: [ + { in: "query", key: "directory" }, + { in: "query", key: "workspace" }, + ], + }, + ]); + return (options?.client ?? this.client).get({ + url: "/config/providers", + ...options, + ...params, + }); + } +} +export class Tool extends HeyApiClient { + /** + * List tools + * + * Get a list of available tools with their JSON schema parameters for a specific provider and model combination. + */ + list(parameters, options) { + const params = buildClientParams([parameters], [ + { + args: [ + { in: "query", key: "directory" }, + { in: "query", key: "workspace" }, + { in: "query", key: "provider" }, + { in: "query", key: "model" }, + ], + }, + ]); + return (options?.client ?? this.client).get({ + url: "/experimental/tool", + ...options, + ...params, + }); + } + /** + * List tool IDs + * + * Get a list of all available tool IDs, including both built-in tools and dynamically registered tools. + */ + ids(parameters, options) { + const params = buildClientParams([parameters], [ + { + args: [ + { in: "query", key: "directory" }, + { in: "query", key: "workspace" }, + ], + }, + ]); + return (options?.client ?? this.client).get({ + url: "/experimental/tool/ids", + ...options, + ...params, + }); + } +} +export class Worktree extends HeyApiClient { + /** + * Remove worktree + * + * Remove a git worktree and delete its branch. + */ + remove(parameters, options) { + const params = buildClientParams([parameters], [ + { + args: [ + { in: "query", key: "directory" }, + { in: "query", key: "workspace" }, + { key: "worktreeRemoveInput", map: "body" }, + ], + }, + ]); + return (options?.client ?? this.client).delete({ + url: "/experimental/worktree", + ...options, + ...params, + headers: { + "Content-Type": "application/json", + ...options?.headers, + ...params.headers, + }, + }); + } + /** + * List worktrees * * List all sandbox worktrees for the current project. */ @@ -1008,6 +1120,7 @@ export class Vcs extends HeyApiClient { { in: "query", key: "directory" }, { in: "query", key: "workspace" }, { in: "query", key: "mode" }, + { in: "query", key: "context" }, ], }, ]); @@ -1387,6 +1500,27 @@ export class Project extends HeyApiClient { }, }); } + /** + * List project directories + * + * List known local absolute directories for a project. + */ + directories(parameters, options) { + const params = buildClientParams([parameters], [ + { + args: [ + { in: "path", key: "projectID" }, + { in: "query", key: "directory" }, + { in: "query", key: "workspace" }, + ], + }, + ]); + return (options?.client ?? this.client).get({ + url: "/project/{projectID}/directories", + ...options, + ...params, + }); + } } export class Pty extends HeyApiClient { /** @@ -1562,6 +1696,8 @@ export class Pty extends HeyApiClient { { in: "path", key: "ptyID" }, { in: "query", key: "directory" }, { in: "query", key: "workspace" }, + { in: "query", key: "cursor" }, + { in: "query", key: "ticket" }, ], }, ]); @@ -1868,6 +2004,7 @@ export class Session2 extends HeyApiClient { { in: "body", key: "title" }, { in: "body", key: "agent" }, { in: "body", key: "model" }, + { in: "body", key: "metadata" }, { in: "body", key: "permission" }, { in: "body", key: "workspaceID" }, ], @@ -1959,6 +2096,7 @@ export class Session2 extends HeyApiClient { { in: "query", key: "directory" }, { in: "query", key: "workspace" }, { in: "body", key: "title" }, + { in: "body", key: "metadata" }, { in: "body", key: "permission" }, { in: "body", key: "time" }, ], @@ -2602,241 +2740,33 @@ export class Sync extends HeyApiClient { return (this._history ??= new History({ client: this.client })); } } -export class Session3 extends HeyApiClient { +export class Control extends HeyApiClient { /** - * List v2 sessions + * Get next TUI request * - * Retrieve sessions in the requested order. Items keep that order across pages; use cursor.next or cursor.previous to move through the ordered list. + * Retrieve the next TUI request from the queue for processing. */ - list(parameters, options) { + next(parameters, options) { const params = buildClientParams([parameters], [ { args: [ { in: "query", key: "directory" }, { in: "query", key: "workspace" }, - { in: "query", key: "limit" }, - { in: "query", key: "order" }, - { in: "query", key: "path" }, - { in: "query", key: "roots" }, - { in: "query", key: "start" }, - { in: "query", key: "search" }, - { in: "query", key: "cursor" }, ], }, ]); return (options?.client ?? this.client).get({ - url: "/api/session", + url: "/tui/control/next", ...options, ...params, }); } /** - * Send v2 message + * Submit TUI response * - * Create a v2 session message and queue it for the agent loop. + * Submit a response to the TUI request queue to complete a pending request. */ - prompt(parameters, options) { - const params = buildClientParams([parameters], [ - { - args: [ - { in: "path", key: "sessionID" }, - { in: "query", key: "directory" }, - { in: "query", key: "workspace" }, - { in: "body", key: "prompt" }, - { in: "body", key: "delivery" }, - ], - }, - ]); - return (options?.client ?? this.client).post({ - url: "/api/session/{sessionID}/prompt", - ...options, - ...params, - headers: { - "Content-Type": "application/json", - ...options?.headers, - ...params.headers, - }, - }); - } - /** - * Compact v2 session - * - * Compact a v2 session conversation. - */ - compact(parameters, options) { - const params = buildClientParams([parameters], [ - { - args: [ - { in: "path", key: "sessionID" }, - { in: "query", key: "directory" }, - { in: "query", key: "workspace" }, - ], - }, - ]); - return (options?.client ?? this.client).post({ - url: "/api/session/{sessionID}/compact", - ...options, - ...params, - }); - } - /** - * Wait for v2 session - * - * Wait for a v2 session agent loop to become idle. - */ - wait(parameters, options) { - const params = buildClientParams([parameters], [ - { - args: [ - { in: "path", key: "sessionID" }, - { in: "query", key: "directory" }, - { in: "query", key: "workspace" }, - ], - }, - ]); - return (options?.client ?? this.client).post({ - url: "/api/session/{sessionID}/wait", - ...options, - ...params, - }); - } - /** - * Get v2 session context - * - * Retrieve the active context messages for a v2 session (all messages after the last compaction). - */ - context(parameters, options) { - const params = buildClientParams([parameters], [ - { - args: [ - { in: "path", key: "sessionID" }, - { in: "query", key: "directory" }, - { in: "query", key: "workspace" }, - ], - }, - ]); - return (options?.client ?? this.client).get({ - url: "/api/session/{sessionID}/context", - ...options, - ...params, - }); - } - /** - * Get v2 session messages - * - * Retrieve projected v2 messages for a session. Items keep the requested order across pages; use cursor.next or cursor.previous to move through the ordered timeline. - */ - messages(parameters, options) { - const params = buildClientParams([parameters], [ - { - args: [ - { in: "path", key: "sessionID" }, - { in: "query", key: "directory" }, - { in: "query", key: "workspace" }, - { in: "query", key: "limit" }, - { in: "query", key: "order" }, - { in: "query", key: "cursor" }, - ], - }, - ]); - return (options?.client ?? this.client).get({ - url: "/api/session/{sessionID}/message", - ...options, - ...params, - }); - } -} -export class Model extends HeyApiClient { - /** - * List v2 models - * - * Retrieve available v2 models ordered by release date. - */ - list(parameters, options) { - const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "location" }] }]); - return (options?.client ?? this.client).get({ - url: "/api/model", - ...options, - ...params, - }); - } -} -export class Provider2 extends HeyApiClient { - /** - * List v2 providers - * - * Retrieve active v2 AI providers so clients can show provider availability and configuration. - */ - list(parameters, options) { - const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "location" }] }]); - return (options?.client ?? this.client).get({ - url: "/api/provider", - ...options, - ...params, - }); - } - /** - * Get v2 provider - * - * Retrieve a single v2 AI provider so clients can inspect its availability and endpoint settings. - */ - get(parameters, options) { - const params = buildClientParams([parameters], [ - { - args: [ - { in: "path", key: "providerID" }, - { in: "query", key: "location" }, - ], - }, - ]); - return (options?.client ?? this.client).get({ - url: "/api/provider/{providerID}", - ...options, - ...params, - }); - } -} -export class V2 extends HeyApiClient { - _session; - get session() { - return (this._session ??= new Session3({ client: this.client })); - } - _model; - get model() { - return (this._model ??= new Model({ client: this.client })); - } - _provider; - get provider() { - return (this._provider ??= new Provider2({ client: this.client })); - } -} -export class Control extends HeyApiClient { - /** - * Get next TUI request - * - * Retrieve the next TUI request from the queue for processing. - */ - next(parameters, options) { - const params = buildClientParams([parameters], [ - { - args: [ - { in: "query", key: "directory" }, - { in: "query", key: "workspace" }, - ], - }, - ]); - return (options?.client ?? this.client).get({ - url: "/tui/control/next", - ...options, - ...params, - }); - } - /** - * Submit TUI response - * - * Submit a response to the TUI request queue to complete a pending request. - */ - response(parameters, options) { + response(parameters, options) { const params = buildClientParams([parameters], [ { args: [ @@ -3117,36 +3047,1328 @@ export class Tui extends HeyApiClient { return (this._control ??= new Control({ client: this.client })); } } -export class OpencodeClient extends HeyApiClient { - static __registry = new HeyApiRegistry(); - constructor(args) { - super(args); - OpencodeClient.__registry.set(this, args?.key); - } - _auth; - get auth() { - return (this._auth ??= new Auth({ client: this.client })); +export class Health extends HeyApiClient { + /** + * Check server health + * + * Check whether the API server is ready to accept requests. + */ + get(options) { + return (options?.client ?? this.client).get({ + url: "/api/health", + ...options, + }); } - _app; - get app() { - return (this._app ??= new App({ client: this.client })); +} +export class Location extends HeyApiClient { + /** + * Get location + * + * Resolve the requested location or the server default location. + */ + get(parameters, options) { + const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "location" }] }]); + return (options?.client ?? this.client).get({ + url: "/api/location", + ...options, + ...params, + }); } - _global; - get global() { - return (this._global ??= new Global({ client: this.client })); +} +export class Agent extends HeyApiClient { + /** + * List agents + * + * Retrieve currently registered agents. + */ + list(parameters, options) { + const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "location" }] }]); + return (options?.client ?? this.client).get({ + url: "/api/agent", + ...options, + ...params, + }); } - _event; - get event() { - return (this._event ??= new Event({ client: this.client })); +} +export class Revert extends HeyApiClient { + /** + * Stage session revert + * + * Stage or move a reversible session boundary and optionally apply its file changes. + */ + stage(parameters, options) { + const params = buildClientParams([parameters], [ + { + args: [ + { in: "path", key: "sessionID" }, + { in: "body", key: "messageID" }, + { in: "body", key: "files" }, + ], + }, + ]); + return (options?.client ?? this.client).post({ + url: "/api/session/{sessionID}/revert/stage", + ...options, + ...params, + headers: { + "Content-Type": "application/json", + ...options?.headers, + ...params.headers, + }, + }); } - _config; - get config() { - return (this._config ??= new Config2({ client: this.client })); + /** + * Clear staged revert + */ + clear(parameters, options) { + const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "sessionID" }] }]); + return (options?.client ?? this.client).post({ + url: "/api/session/{sessionID}/revert/clear", + ...options, + ...params, + }); + } + /** + * Commit staged revert + */ + commit(parameters, options) { + const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "sessionID" }] }]); + return (options?.client ?? this.client).post({ + url: "/api/session/{sessionID}/revert/commit", + ...options, + ...params, + }); + } +} +export class Permission2 extends HeyApiClient { + /** + * List session permission requests + * + * Retrieve pending permission requests owned by a session. + */ + list(parameters, options) { + const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "sessionID" }] }]); + return (options?.client ?? this.client).get({ + url: "/api/session/{sessionID}/permission", + ...options, + ...params, + }); + } + /** + * Create permission request + * + * Evaluate and, when approval is required, create a permission request for a session. + */ + create(parameters, options) { + const params = buildClientParams([parameters], [ + { + args: [ + { in: "path", key: "sessionID" }, + { in: "body", key: "id" }, + { in: "body", key: "action" }, + { in: "body", key: "resources" }, + { in: "body", key: "save" }, + { in: "body", key: "metadata" }, + { in: "body", key: "source" }, + { in: "body", key: "agent" }, + ], + }, + ]); + return (options?.client ?? this.client).post({ + url: "/api/session/{sessionID}/permission", + ...options, + ...params, + headers: { + "Content-Type": "application/json", + ...options?.headers, + ...params.headers, + }, + }); + } + /** + * Get permission request + * + * Retrieve a pending permission request owned by a session. + */ + get(parameters, options) { + const params = buildClientParams([parameters], [ + { + args: [ + { in: "path", key: "sessionID" }, + { in: "path", key: "requestID" }, + ], + }, + ]); + return (options?.client ?? this.client).get({ + url: "/api/session/{sessionID}/permission/{requestID}", + ...options, + ...params, + }); + } + /** + * Reply to pending permission request + * + * Respond to a pending permission request owned by a session. + */ + reply(parameters, options) { + const params = buildClientParams([parameters], [ + { + args: [ + { in: "path", key: "sessionID" }, + { in: "path", key: "requestID" }, + { in: "body", key: "reply" }, + { in: "body", key: "message" }, + ], + }, + ]); + return (options?.client ?? this.client).post({ + url: "/api/session/{sessionID}/permission/{requestID}/reply", + ...options, + ...params, + headers: { + "Content-Type": "application/json", + ...options?.headers, + ...params.headers, + }, + }); + } +} +export class Question2 extends HeyApiClient { + /** + * List session question requests + * + * Retrieve pending question requests owned by a session. + */ + list(parameters, options) { + const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "sessionID" }] }]); + return (options?.client ?? this.client).get({ + url: "/api/session/{sessionID}/question", + ...options, + ...params, + }); + } + /** + * Reply to pending question request + * + * Answer a pending question request owned by a session. + */ + reply(parameters, options) { + const params = buildClientParams([parameters], [ + { + args: [ + { in: "path", key: "sessionID" }, + { in: "path", key: "requestID" }, + { key: "questionV2Reply", map: "body" }, + ], + }, + ]); + return (options?.client ?? this.client).post({ + url: "/api/session/{sessionID}/question/{requestID}/reply", + ...options, + ...params, + headers: { + "Content-Type": "application/json", + ...options?.headers, + ...params.headers, + }, + }); + } + /** + * Reject pending question request + * + * Reject a pending question request owned by a session. + */ + reject(parameters, options) { + const params = buildClientParams([parameters], [ + { + args: [ + { in: "path", key: "sessionID" }, + { in: "path", key: "requestID" }, + ], + }, + ]); + return (options?.client ?? this.client).post({ + url: "/api/session/{sessionID}/question/{requestID}/reject", + ...options, + ...params, + }); + } +} +export class Session3 extends HeyApiClient { + /** + * List sessions + * + * Retrieve sessions in the requested order. Items keep that order across pages; use cursor.next or cursor.previous to move through the ordered list. + */ + list(parameters, options) { + const params = buildClientParams([parameters], [ + { + args: [ + { in: "query", key: "workspace" }, + { in: "query", key: "limit" }, + { in: "query", key: "order" }, + { in: "query", key: "search" }, + { in: "query", key: "directory" }, + { in: "query", key: "project" }, + { in: "query", key: "subpath" }, + { in: "query", key: "cursor" }, + ], + }, + ]); + return (options?.client ?? this.client).get({ + url: "/api/session", + ...options, + ...params, + }); + } + /** + * Create session + * + * Create a session at the requested location. + */ + create(parameters, options) { + const params = buildClientParams([parameters], [ + { + args: [ + { in: "body", key: "id" }, + { in: "body", key: "agent" }, + { in: "body", key: "model" }, + { in: "body", key: "location" }, + ], + }, + ]); + return (options?.client ?? this.client).post({ + url: "/api/session", + ...options, + ...params, + headers: { + "Content-Type": "application/json", + ...options?.headers, + ...params.headers, + }, + }); + } + /** + * List active sessions + * + * Retrieve foreground Session drains currently owned by this OpenCode process. Sessions absent from the result are inactive. + */ + active(options) { + return (options?.client ?? this.client).get({ + url: "/api/session/active", + ...options, + }); + } + /** + * Get session + * + * Retrieve a session by ID. + */ + get(parameters, options) { + const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "sessionID" }] }]); + return (options?.client ?? this.client).get({ + url: "/api/session/{sessionID}", + ...options, + ...params, + }); + } + /** + * Switch session agent + * + * Switch the agent used by subsequent provider turns. + */ + switchAgent(parameters, options) { + const params = buildClientParams([parameters], [ + { + args: [ + { in: "path", key: "sessionID" }, + { in: "body", key: "agent" }, + ], + }, + ]); + return (options?.client ?? this.client).post({ + url: "/api/session/{sessionID}/agent", + ...options, + ...params, + headers: { + "Content-Type": "application/json", + ...options?.headers, + ...params.headers, + }, + }); + } + /** + * Switch session model + * + * Switch the model used by subsequent provider turns. + */ + switchModel(parameters, options) { + const params = buildClientParams([parameters], [ + { + args: [ + { in: "path", key: "sessionID" }, + { in: "body", key: "model" }, + ], + }, + ]); + return (options?.client ?? this.client).post({ + url: "/api/session/{sessionID}/model", + ...options, + ...params, + headers: { + "Content-Type": "application/json", + ...options?.headers, + ...params.headers, + }, + }); + } + /** + * Send message + * + * Durably admit one session input and schedule agent-loop execution unless resume is false. + */ + prompt(parameters, options) { + const params = buildClientParams([parameters], [ + { + args: [ + { in: "path", key: "sessionID" }, + { in: "body", key: "id" }, + { in: "body", key: "prompt" }, + { in: "body", key: "delivery" }, + { in: "body", key: "resume" }, + ], + }, + ]); + return (options?.client ?? this.client).post({ + url: "/api/session/{sessionID}/prompt", + ...options, + ...params, + headers: { + "Content-Type": "application/json", + ...options?.headers, + ...params.headers, + }, + }); + } + /** + * Compact session + * + * Compact a session conversation. + */ + compact(parameters, options) { + const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "sessionID" }] }]); + return (options?.client ?? this.client).post({ + url: "/api/session/{sessionID}/compact", + ...options, + ...params, + }); + } + /** + * Wait for session + * + * Wait for a session agent loop to become idle. + */ + wait(parameters, options) { + const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "sessionID" }] }]); + return (options?.client ?? this.client).post({ + url: "/api/session/{sessionID}/wait", + ...options, + ...params, + }); + } + /** + * Get session context + * + * Retrieve the active context messages for a session (all messages after the last compaction). + */ + context(parameters, options) { + const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "sessionID" }] }]); + return (options?.client ?? this.client).get({ + url: "/api/session/{sessionID}/context", + ...options, + ...params, + }); + } + /** + * Get session history + * + * Read one finite page of public durable Session events after an exclusive aggregate sequence. Newly committed events may appear on later pages. + */ + history(parameters, options) { + const params = buildClientParams([parameters], [ + { + args: [ + { in: "path", key: "sessionID" }, + { in: "query", key: "limit" }, + { in: "query", key: "after" }, + ], + }, + ]); + return (options?.client ?? this.client).get({ + url: "/api/session/{sessionID}/history", + ...options, + ...params, + }); + } + /** + * Subscribe to session events + * + * Replay durable events after an aggregate sequence, then continue with new durable events. + */ + events(parameters, options) { + const params = buildClientParams([parameters], [ + { + args: [ + { in: "path", key: "sessionID" }, + { in: "query", key: "after" }, + ], + }, + ]); + return (options?.client ?? this.client).sse.get({ + url: "/api/session/{sessionID}/event", + ...options, + ...params, + }); + } + /** + * Interrupt session execution + * + * Interrupt active execution owned by this OpenCode process. Idle interruption is a no-op. + */ + interrupt(parameters, options) { + const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "sessionID" }] }]); + return (options?.client ?? this.client).post({ + url: "/api/session/{sessionID}/interrupt", + ...options, + ...params, + }); + } + /** + * Get session message + * + * Retrieve one projected message owned by the Session. + */ + message(parameters, options) { + const params = buildClientParams([parameters], [ + { + args: [ + { in: "path", key: "sessionID" }, + { in: "path", key: "messageID" }, + ], + }, + ]); + return (options?.client ?? this.client).get({ + url: "/api/session/{sessionID}/message/{messageID}", + ...options, + ...params, + }); + } + /** + * Get session messages + * + * Retrieve projected messages for a session. Items keep the requested order across pages; use cursor.next or cursor.previous to move through the ordered timeline. + */ + messages(parameters, options) { + const params = buildClientParams([parameters], [ + { + args: [ + { in: "path", key: "sessionID" }, + { in: "query", key: "limit" }, + { in: "query", key: "order" }, + { in: "query", key: "cursor" }, + ], + }, + ]); + return (options?.client ?? this.client).get({ + url: "/api/session/{sessionID}/message", + ...options, + ...params, + }); + } + _revert; + get revert() { + return (this._revert ??= new Revert({ client: this.client })); + } + _permission; + get permission() { + return (this._permission ??= new Permission2({ client: this.client })); + } + _question; + get question() { + return (this._question ??= new Question2({ client: this.client })); + } +} +export class Model extends HeyApiClient { + /** + * List models + * + * Retrieve available models ordered by release date. + */ + list(parameters, options) { + const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "location" }] }]); + return (options?.client ?? this.client).get({ + url: "/api/model", + ...options, + ...params, + }); + } +} +export class Provider2 extends HeyApiClient { + /** + * List providers + * + * Retrieve active AI providers so clients can show provider availability and configuration. + */ + list(parameters, options) { + const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "location" }] }]); + return (options?.client ?? this.client).get({ + url: "/api/provider", + ...options, + ...params, + }); + } + /** + * Get provider + * + * Retrieve a single AI provider so clients can inspect its availability and endpoint settings. + */ + get(parameters, options) { + const params = buildClientParams([parameters], [ + { + args: [ + { in: "path", key: "providerID" }, + { in: "query", key: "location" }, + ], + }, + ]); + return (options?.client ?? this.client).get({ + url: "/api/provider/{providerID}", + ...options, + ...params, + }); + } +} +export class Connect extends HeyApiClient { + /** + * Connect with key + * + * Run a key authentication method and store the resulting credential. + */ + key(parameters, options) { + const params = buildClientParams([parameters], [ + { + args: [ + { in: "path", key: "integrationID" }, + { in: "query", key: "location" }, + { in: "body", key: "key" }, + { in: "body", key: "label" }, + ], + }, + ]); + return (options?.client ?? this.client).post({ + url: "/api/integration/{integrationID}/connect/key", + ...options, + ...params, + headers: { + "Content-Type": "application/json", + ...options?.headers, + ...params.headers, + }, + }); + } + /** + * Begin OAuth connection + * + * Start an OAuth attempt and return the authorization details. + */ + oauth(parameters, options) { + const params = buildClientParams([parameters], [ + { + args: [ + { in: "path", key: "integrationID" }, + { in: "query", key: "location" }, + { in: "body", key: "methodID" }, + { in: "body", key: "inputs" }, + { in: "body", key: "label" }, + ], + }, + ]); + return (options?.client ?? this.client).post({ + url: "/api/integration/{integrationID}/connect/oauth", + ...options, + ...params, + headers: { + "Content-Type": "application/json", + ...options?.headers, + ...params.headers, + }, + }); + } +} +export class Attempt extends HeyApiClient { + /** + * Cancel OAuth connection + * + * Cancel an OAuth attempt and release its resources. + */ + cancel(parameters, options) { + const params = buildClientParams([parameters], [ + { + args: [ + { in: "path", key: "attemptID" }, + { in: "query", key: "location" }, + ], + }, + ]); + return (options?.client ?? this.client).delete({ + url: "/api/integration/attempt/{attemptID}", + ...options, + ...params, + }); + } + /** + * Get OAuth attempt status + * + * Poll the current status of an OAuth attempt. + */ + status(parameters, options) { + const params = buildClientParams([parameters], [ + { + args: [ + { in: "path", key: "attemptID" }, + { in: "query", key: "location" }, + ], + }, + ]); + return (options?.client ?? this.client).get({ + url: "/api/integration/attempt/{attemptID}", + ...options, + ...params, + }); + } + /** + * Complete OAuth connection + * + * Complete a code-based OAuth attempt and store the resulting credential. + */ + complete(parameters, options) { + const params = buildClientParams([parameters], [ + { + args: [ + { in: "path", key: "attemptID" }, + { in: "query", key: "location" }, + { in: "body", key: "code" }, + ], + }, + ]); + return (options?.client ?? this.client).post({ + url: "/api/integration/attempt/{attemptID}/complete", + ...options, + ...params, + headers: { + "Content-Type": "application/json", + ...options?.headers, + ...params.headers, + }, + }); + } +} +export class Integration extends HeyApiClient { + /** + * List integrations + * + * Retrieve available integrations and their authentication methods. + */ + list(parameters, options) { + const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "location" }] }]); + return (options?.client ?? this.client).get({ + url: "/api/integration", + ...options, + ...params, + }); + } + /** + * Get integration + * + * Retrieve one integration and its authentication methods. + */ + get(parameters, options) { + const params = buildClientParams([parameters], [ + { + args: [ + { in: "path", key: "integrationID" }, + { in: "query", key: "location" }, + ], + }, + ]); + return (options?.client ?? this.client).get({ + url: "/api/integration/{integrationID}", + ...options, + ...params, + }); + } + _connect; + get connect() { + return (this._connect ??= new Connect({ client: this.client })); + } + _attempt; + get attempt() { + return (this._attempt ??= new Attempt({ client: this.client })); + } +} +export class Credential extends HeyApiClient { + /** + * Remove credential + * + * Remove a stored integration credential. + */ + remove(parameters, options) { + const params = buildClientParams([parameters], [ + { + args: [ + { in: "path", key: "credentialID" }, + { in: "query", key: "location" }, + ], + }, + ]); + return (options?.client ?? this.client).delete({ + url: "/api/credential/{credentialID}", + ...options, + ...params, + }); + } + /** + * Update credential + * + * Update a stored credential label. + */ + update(parameters, options) { + const params = buildClientParams([parameters], [ + { + args: [ + { in: "path", key: "credentialID" }, + { in: "query", key: "location" }, + { in: "body", key: "label" }, + ], + }, + ]); + return (options?.client ?? this.client).patch({ + url: "/api/credential/{credentialID}", + ...options, + ...params, + headers: { + "Content-Type": "application/json", + ...options?.headers, + ...params.headers, + }, + }); + } +} +export class Request extends HeyApiClient { + /** + * List pending permission requests + * + * Retrieve pending permission requests for a location. + */ + list(parameters, options) { + const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "location" }] }]); + return (options?.client ?? this.client).get({ + url: "/api/permission/request", + ...options, + ...params, + }); + } +} +export class Saved extends HeyApiClient { + /** + * List saved permissions + * + * Retrieve saved permissions, optionally filtered by project. + */ + list(parameters, options) { + const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "projectID" }] }]); + return (options?.client ?? this.client).get({ + url: "/api/permission/saved", + ...options, + ...params, + }); + } + /** + * Remove saved permission + * + * Remove a saved permission by ID. + */ + remove(parameters, options) { + const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "id" }] }]); + return (options?.client ?? this.client).delete({ + url: "/api/permission/saved/{id}", + ...options, + ...params, + }); + } +} +export class Permission3 extends HeyApiClient { + _request; + get request() { + return (this._request ??= new Request({ client: this.client })); + } + _saved; + get saved() { + return (this._saved ??= new Saved({ client: this.client })); + } +} +export class Fs extends HeyApiClient { + /** + * Read file + * + * Serve one file relative to the requested location. + */ + read(parameters, options) { + const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "location" }] }]); + return (options?.client ?? this.client).get({ + url: "/api/fs/read/*", + ...options, + ...params, + }); + } + /** + * List directory + * + * List direct children of one directory relative to the requested location. + */ + list(parameters, options) { + const params = buildClientParams([parameters], [ + { + args: [ + { in: "query", key: "location" }, + { in: "query", key: "path" }, + ], + }, + ]); + return (options?.client ?? this.client).get({ + url: "/api/fs/list", + ...options, + ...params, + }); + } + /** + * Find files + * + * Find recursively ranked filesystem entries relative to the requested location. + */ + find(parameters, options) { + const params = buildClientParams([parameters], [ + { + args: [ + { in: "query", key: "location" }, + { in: "query", key: "query" }, + { in: "query", key: "type" }, + { in: "query", key: "limit" }, + ], + }, + ]); + return (options?.client ?? this.client).get({ + url: "/api/fs/find", + ...options, + ...params, + }); + } +} +export class Command2 extends HeyApiClient { + /** + * List commands + * + * Retrieve currently registered commands. + */ + list(parameters, options) { + const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "location" }] }]); + return (options?.client ?? this.client).get({ + url: "/api/command", + ...options, + ...params, + }); + } +} +export class Skill extends HeyApiClient { + /** + * List skills + * + * Retrieve currently registered skills. + */ + list(parameters, options) { + const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "location" }] }]); + return (options?.client ?? this.client).get({ + url: "/api/skill", + ...options, + ...params, + }); + } +} +export class Event2 extends HeyApiClient { + /** + * Subscribe to events + * + * Subscribe to native event payloads for the server. + */ + subscribe(options) { + return (options?.client ?? this.client).sse.get({ + url: "/api/event", + ...options, + }); + } +} +export class Pty2 extends HeyApiClient { + /** + * List PTY sessions + * + * List PTY sessions for a location, including exited sessions retained until removal. + */ + list(parameters, options) { + const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "location" }] }]); + return (options?.client ?? this.client).get({ + url: "/api/pty", + ...options, + ...params, + }); + } + /** + * Create PTY session + * + * Create a pseudo-terminal session for a location. + */ + create(parameters, options) { + const params = buildClientParams([parameters], [ + { + args: [ + { in: "query", key: "location" }, + { in: "body", key: "command" }, + { in: "body", key: "args" }, + { in: "body", key: "cwd" }, + { in: "body", key: "title" }, + { in: "body", key: "env" }, + ], + }, + ]); + return (options?.client ?? this.client).post({ + url: "/api/pty", + ...options, + ...params, + headers: { + "Content-Type": "application/json", + ...options?.headers, + ...params.headers, + }, + }); + } + /** + * Remove PTY session + * + * Terminate and remove one PTY session. + */ + remove(parameters, options) { + const params = buildClientParams([parameters], [ + { + args: [ + { in: "path", key: "ptyID" }, + { in: "query", key: "location" }, + ], + }, + ]); + return (options?.client ?? this.client).delete({ + url: "/api/pty/{ptyID}", + ...options, + ...params, + }); + } + /** + * Get PTY session + * + * Get one PTY session, including its exit code once exited. + */ + get(parameters, options) { + const params = buildClientParams([parameters], [ + { + args: [ + { in: "path", key: "ptyID" }, + { in: "query", key: "location" }, + ], + }, + ]); + return (options?.client ?? this.client).get({ + url: "/api/pty/{ptyID}", + ...options, + ...params, + }); + } + /** + * Update PTY session + * + * Update the title or viewport size of one PTY session. + */ + update(parameters, options) { + const params = buildClientParams([parameters], [ + { + args: [ + { in: "path", key: "ptyID" }, + { in: "query", key: "location" }, + { in: "body", key: "title" }, + { in: "body", key: "size" }, + ], + }, + ]); + return (options?.client ?? this.client).put({ + url: "/api/pty/{ptyID}", + ...options, + ...params, + headers: { + "Content-Type": "application/json", + ...options?.headers, + ...params.headers, + }, + }); + } + /** + * Create PTY WebSocket token + * + * Create a short-lived single-use ticket for opening a PTY WebSocket connection. + */ + connectToken(parameters, options) { + const params = buildClientParams([parameters], [ + { + args: [ + { in: "path", key: "ptyID" }, + { in: "query", key: "location" }, + ], + }, + ]); + return (options?.client ?? this.client).post({ + url: "/api/pty/{ptyID}/connect-token", + ...options, + ...params, + }); + } + /** + * Connect to PTY session + * + * Establish a WebSocket connection streaming PTY output and accepting terminal input. + */ + connect(parameters, options) { + const params = buildClientParams([parameters], [ + { + args: [ + { in: "path", key: "ptyID" }, + { in: "query", key: "location[directory]" }, + { in: "query", key: "location[workspace]" }, + { in: "query", key: "cursor" }, + { in: "query", key: "ticket" }, + ], + }, + ]); + return (options?.client ?? this.client).get({ + url: "/api/pty/{ptyID}/connect", + ...options, + ...params, + }); + } +} +export class Request2 extends HeyApiClient { + /** + * List pending question requests + * + * Retrieve pending question requests for a location. + */ + list(parameters, options) { + const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "location" }] }]); + return (options?.client ?? this.client).get({ + url: "/api/question/request", + ...options, + ...params, + }); + } +} +export class Question3 extends HeyApiClient { + _request; + get request() { + return (this._request ??= new Request2({ client: this.client })); + } +} +export class Reference extends HeyApiClient { + /** + * List references + * + * List references available in the requested location. + */ + list(parameters, options) { + const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "location" }] }]); + return (options?.client ?? this.client).get({ + url: "/api/reference", + ...options, + ...params, + }); + } +} +export class ProjectCopy2 extends HeyApiClient { + remove(parameters, options) { + const params = buildClientParams([parameters], [ + { + args: [ + { in: "path", key: "projectID" }, + { in: "query", key: "location" }, + { in: "body", key: "directory" }, + { in: "body", key: "force" }, + ], + }, + ]); + return (options?.client ?? this.client).delete({ + url: "/experimental/project/{projectID}/copy", + ...options, + ...params, + headers: { + "Content-Type": "application/json", + ...options?.headers, + ...params.headers, + }, + }); + } + create(parameters, options) { + const params = buildClientParams([parameters], [ + { + args: [ + { in: "path", key: "projectID" }, + { in: "query", key: "location" }, + { in: "body", key: "strategy" }, + { in: "body", key: "directory" }, + { in: "body", key: "name" }, + ], + }, + ]); + return (options?.client ?? this.client).post({ + url: "/experimental/project/{projectID}/copy", + ...options, + ...params, + headers: { + "Content-Type": "application/json", + ...options?.headers, + ...params.headers, + }, + }); + } + refresh(parameters, options) { + const params = buildClientParams([parameters], [ + { + args: [ + { in: "path", key: "projectID" }, + { in: "query", key: "location" }, + ], + }, + ]); + return (options?.client ?? this.client).post({ + url: "/experimental/project/{projectID}/copy/refresh", + ...options, + ...params, + }); + } +} +export class V2 extends HeyApiClient { + _health; + get health() { + return (this._health ??= new Health({ client: this.client })); + } + _location; + get location() { + return (this._location ??= new Location({ client: this.client })); + } + _agent; + get agent() { + return (this._agent ??= new Agent({ client: this.client })); + } + _session; + get session() { + return (this._session ??= new Session3({ client: this.client })); + } + _model; + get model() { + return (this._model ??= new Model({ client: this.client })); + } + _provider; + get provider() { + return (this._provider ??= new Provider2({ client: this.client })); + } + _integration; + get integration() { + return (this._integration ??= new Integration({ client: this.client })); + } + _credential; + get credential() { + return (this._credential ??= new Credential({ client: this.client })); + } + _permission; + get permission() { + return (this._permission ??= new Permission3({ client: this.client })); + } + _fs; + get fs() { + return (this._fs ??= new Fs({ client: this.client })); + } + _command; + get command() { + return (this._command ??= new Command2({ client: this.client })); + } + _skill; + get skill() { + return (this._skill ??= new Skill({ client: this.client })); + } + _event; + get event() { + return (this._event ??= new Event2({ client: this.client })); + } + _pty; + get pty() { + return (this._pty ??= new Pty2({ client: this.client })); + } + _question; + get question() { + return (this._question ??= new Question3({ client: this.client })); + } + _reference; + get reference() { + return (this._reference ??= new Reference({ client: this.client })); + } + _projectCopy; + get projectCopy() { + return (this._projectCopy ??= new ProjectCopy2({ client: this.client })); + } +} +export class OpencodeClient extends HeyApiClient { + static __registry = new HeyApiRegistry(); + constructor(args) { + super(args); + OpencodeClient.__registry.set(this, args?.key); + } + _auth; + get auth() { + return (this._auth ??= new Auth({ client: this.client })); + } + _app; + get app() { + return (this._app ??= new App({ client: this.client })); } _experimental; get experimental() { return (this._experimental ??= new Experimental({ client: this.client })); } + _global; + get global() { + return (this._global ??= new Global({ client: this.client })); + } + _event; + get event() { + return (this._event ??= new Event({ client: this.client })); + } + _config; + get config() { + return (this._config ??= new Config2({ client: this.client })); + } _tool; get tool() { return (this._tool ??= new Tool({ client: this.client })); @@ -3223,12 +4445,12 @@ export class OpencodeClient extends HeyApiClient { get sync() { return (this._sync ??= new Sync({ client: this.client })); } - _v2; - get v2() { - return (this._v2 ??= new V2({ client: this.client })); - } _tui; get tui() { return (this._tui ??= new Tui({ client: this.client })); } + _v2; + get v2() { + return (this._v2 ??= new V2({ client: this.client })); + } } diff --git a/.opencode/node_modules/@opencode-ai/sdk/dist/v2/gen/types.gen.d.ts b/.opencode/node_modules/@opencode-ai/sdk/dist/v2/gen/types.gen.d.ts index 589db837827e3cd7b6373ef26f5049fdfdc65e87..84bbe4049483fea7e8402a9dd980c0c40123db1f 100644 --- a/.opencode/node_modules/@opencode-ai/sdk/dist/v2/gen/types.gen.d.ts +++ b/.opencode/node_modules/@opencode-ai/sdk/dist/v2/gen/types.gen.d.ts @@ -1,7 +1,16 @@ export type ClientOptions = { baseUrl: `${string}://${string}` | (string & {}); }; -export type Event = EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow1 | EventTuiSessionSelect | EventServerConnected | EventGlobalDisposed | EventServerInstanceDisposed | EventFileEdited | EventFileWatcherUpdated | EventLspClientDiagnostics | EventLspUpdated | EventMessagePartDelta | EventPermissionAsked | EventPermissionReplied | EventSessionDiff | EventSessionError | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventTodoUpdated | EventSessionStatus | EventSessionIdle | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventCommandExecuted | EventProjectUpdated | EventSessionCompacted | EventVcsBranchUpdated | EventWorkspaceReady | EventWorkspaceFailed | EventWorkspaceStatus | EventWorktreeReady | EventWorktreeFailed | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventInstallationUpdated | EventInstallationUpdateAvailable | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventSessionNextAgentSwitched | EventSessionNextModelSwitched | EventSessionNextPrompted | EventSessionNextSynthetic | EventSessionNextShellStarted | EventSessionNextShellEnded | EventSessionNextStepStarted | EventSessionNextStepEnded | EventSessionNextStepFailed | EventSessionNextTextStarted | EventSessionNextTextDelta | EventSessionNextTextEnded | EventSessionNextReasoningStarted | EventSessionNextReasoningDelta | EventSessionNextReasoningEnded | EventSessionNextToolInputStarted | EventSessionNextToolInputDelta | EventSessionNextToolInputEnded | EventSessionNextToolCalled | EventSessionNextToolProgress | EventSessionNextToolSuccess | EventSessionNextToolFailed | EventSessionNextRetried | EventSessionNextCompactionStarted | EventSessionNextCompactionDelta | EventSessionNextCompactionEnded | EventCatalogModelUpdated; +export type Event = EventModelsDevRefreshed | EventIntegrationUpdated | EventIntegrationConnectionUpdated | EventCatalogUpdated | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventSessionNextAgentSwitched | EventSessionNextModelSwitched | EventSessionNextMoved | EventSessionNextPrompted | EventSessionNextPromptAdmitted | EventSessionNextContextUpdated | EventSessionNextSynthetic | EventSessionNextShellStarted | EventSessionNextShellEnded | EventSessionNextStepStarted | EventSessionNextStepEnded | EventSessionNextStepFailed | EventSessionNextTextStarted | EventSessionNextTextDelta | EventSessionNextTextEnded | EventSessionNextReasoningStarted | EventSessionNextReasoningDelta | EventSessionNextReasoningEnded | EventSessionNextToolInputStarted | EventSessionNextToolInputDelta | EventSessionNextToolInputEnded | EventSessionNextToolCalled | EventSessionNextToolProgress | EventSessionNextToolSuccess | EventSessionNextToolFailed | EventSessionNextRetried | EventSessionNextCompactionStarted | EventSessionNextCompactionDelta | EventSessionNextCompactionEnded | EventSessionNextRevertStaged | EventSessionNextRevertCleared | EventSessionNextRevertCommitted | EventMessagePartDelta | EventSessionDiff | EventSessionError | EventInstallationUpdated | EventInstallationUpdateAvailable | EventFileEdited | EventReferenceUpdated | EventPermissionV2Asked | EventPermissionV2Replied | EventPluginAdded | EventProjectDirectoriesUpdated | EventFileWatcherUpdated | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventQuestionV2Asked | EventQuestionV2Replied | EventQuestionV2Rejected | EventTodoUpdated | EventLspUpdated | EventPermissionAsked | EventPermissionReplied | EventTuiPromptAppend2 | EventTuiCommandExecute2 | EventTuiToastShow2 | EventTuiSessionSelect2 | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventCommandExecuted | EventProjectUpdated | EventSessionStatus | EventSessionIdle | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventSessionCompacted | EventVcsBranchUpdated | EventWorkspaceReady | EventWorkspaceFailed | EventWorkspaceStatus | EventWorktreeReady | EventWorktreeFailed | EventServerConnected | EventGlobalDisposed | EventServerInstanceDisposed; +export type QuestionReplied = { + sessionID: string; + requestID: string; + answers: Array; +}; +export type QuestionRejected = { + sessionID: string; + requestID: string; +}; export type OAuth = { type: "oauth"; refresh: string; @@ -23,60 +32,122 @@ export type WellKnownAuth = { token: string; }; export type Auth = OAuth | ApiAuth | WellKnownAuth; -export type EventTuiPromptAppend = { - id: string; - type: "tui.prompt.append"; - properties: { - text: string; - }; +export type EffectHttpApiErrorBadRequest = { + _tag: "BadRequest"; }; -export type EventTuiCommandExecute = { - id: string; - type: "tui.command.execute"; - properties: { - command: "session.list" | "session.new" | "session.share" | "session.interrupt" | "session.compact" | "session.page.up" | "session.page.down" | "session.line.up" | "session.line.down" | "session.half.page.up" | "session.half.page.down" | "session.first" | "session.last" | "prompt.clear" | "prompt.submit" | "agent.cycle" | string; - }; +export type InvalidRequestError = { + _tag: "InvalidRequestError"; + message: string; + kind?: string; + field?: string; }; -export type EventTuiToastShow = { - id: string; - type: "tui.toast.show"; - properties: { - title?: string; +export type MoveSessionError = { + name: "MoveSessionError"; + data: { message: string; - variant: "info" | "success" | "warning" | "error"; - duration?: number; }; }; -export type EventTuiSessionSelect = { - id: string; - type: "tui.session.select"; - properties: { - /** - * Session ID to navigate to - */ - sessionID: string; - }; +export type SnapshotFileDiff = { + file?: string; + patch?: string; + additions: number; + deletions: number; + status?: "added" | "deleted" | "modified"; }; -export type PermissionRequest = { - id: string; - sessionID: string; +export type PermissionAction = "allow" | "deny" | "ask"; +export type PermissionRule = { permission: string; - patterns: Array; - metadata: { + pattern: string; + action: PermissionAction; +}; +export type PermissionRuleset = Array; +export type Session = { + id: string; + slug: string; + projectID: string; + workspaceID?: string; + directory: string; + path?: string; + parentID?: string; + summary?: { + additions: number; + deletions: number; + files: number; + diffs?: Array; + }; + cost?: number; + tokens?: { + input: number; + output: number; + reasoning: number; + cache: { + read: number; + write: number; + }; + }; + share?: { + url: string; + }; + title: string; + agent?: string; + model?: { + id: string; + providerID: string; + variant?: string; + }; + version: string; + metadata?: { [key: string]: unknown; }; - always: Array; - tool?: { + time: { + created: number; + updated: number; + compacting?: number; + archived?: number; + }; + permission?: PermissionRuleset; + revert?: { messageID: string; - callID: string; + partID?: string; + snapshot?: string; + diff?: string; }; }; -export type SnapshotFileDiff = { - file?: string; - patch?: string; - additions: number; - deletions: number; - status?: "added" | "deleted" | "modified"; +export type OutputFormatText = { + type: "text"; +}; +export type JsonSchema = { + [key: string]: unknown; +}; +export type OutputFormatJsonSchema = { + type: "json_schema"; + schema: JsonSchema; + retryCount?: number; +}; +export type OutputFormat = OutputFormatText | OutputFormatJsonSchema; +export type UserMessage = { + id: string; + sessionID: string; + role: "user"; + time: { + created: number; + }; + format?: OutputFormat; + summary?: { + title?: string; + body?: string; + diffs: Array; + }; + agent: string; + model: { + providerID: string; + modelID: string; + variant?: string; + }; + system?: string; + tools?: { + [key: string]: boolean; + }; }; export type ProviderAuthError = { name: "ProviderAuthError"; @@ -89,6 +160,7 @@ export type UnknownError = { name: "UnknownError"; data: { message: string; + ref?: string; }; }; export type MessageOutputLengthError = { @@ -117,6 +189,12 @@ export type ContextOverflowError = { responseBody?: string; }; }; +export type ContentFilterError = { + name: "ContentFilterError"; + data: { + message: string; + }; +}; export type ApiError = { name: "APIError"; data: { @@ -132,219 +210,70 @@ export type ApiError = { }; }; }; -export type QuestionOption = { - /** - * Display text (1-5 words, concise) - */ - label: string; - /** - * Explanation of choice - */ - description: string; -}; -export type QuestionInfo = { - /** - * Complete question - */ - question: string; - /** - * Very short label (max 30 chars) - */ - header: string; - /** - * Available choices - */ - options: Array; - multiple?: boolean; - custom?: boolean; -}; -export type QuestionTool = { - messageID: string; - callID: string; -}; -export type QuestionRequest = { +export type AssistantMessage = { id: string; sessionID: string; - /** - * Questions to ask - */ - questions: Array; - tool?: QuestionTool; + role: "assistant"; + time: { + created: number; + completed?: number; + }; + error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | StructuredOutputError | ContextOverflowError | ContentFilterError | ApiError; + parentID: string; + modelID: string; + providerID: string; + mode: string; + agent: string; + path: { + cwd: string; + root: string; + }; + summary?: boolean; + cost: number; + tokens: { + total?: number; + input: number; + output: number; + reasoning: number; + cache: { + read: number; + write: number; + }; + }; + structured?: unknown; + variant?: string; + finish?: string; }; -export type QuestionAnswer = Array; -export type QuestionReplied = { +export type Message = UserMessage | AssistantMessage; +export type TextPart = { + id: string; sessionID: string; - requestID: string; - answers: Array; + messageID: string; + type: "text"; + text: string; + synthetic?: boolean; + ignored?: boolean; + time?: { + start: number; + end?: number; + }; + metadata?: { + [key: string]: unknown; + }; }; -export type QuestionRejected = { +export type SubtaskPart = { + id: string; sessionID: string; - requestID: string; -}; -export type Todo = { - /** - * Brief description of the task - */ - content: string; - /** - * Current status of the task: pending, in_progress, completed, cancelled - */ - status: string; - /** - * Priority level of the task: high, medium, low - */ - priority: string; -}; -export type SessionStatus = { - type: "idle"; -} | { - type: "retry"; - attempt: number; - message: string; - action?: { - reason: string; - provider: string; - title: string; - message: string; - label: string; - link?: string; - }; - next: number; -} | { - type: "busy"; -}; -export type Project = { - id: string; - worktree: string; - vcs?: "git"; - name?: string; - icon?: { - url?: string; - override?: string; - color?: string; - }; - commands?: { - /** - * Startup script to run when creating a new workspace (worktree) - */ - start?: string; - }; - time: { - created: number; - updated: number; - initialized?: number; - }; - sandboxes: Array; -}; -export type Pty = { - id: string; - title: string; - command: string; - args: Array; - cwd: string; - status: "running" | "exited"; - pid: number; -}; -export type OutputFormatText = { - type: "text"; -}; -export type JsonSchema = { - [key: string]: unknown; -}; -export type OutputFormatJsonSchema = { - type: "json_schema"; - schema: JsonSchema; - retryCount?: number; -}; -export type OutputFormat = OutputFormatText | OutputFormatJsonSchema; -export type UserMessage = { - id: string; - sessionID: string; - role: "user"; - time: { - created: number; - }; - format?: OutputFormat; - summary?: { - title?: string; - body?: string; - diffs: Array; - }; - agent: string; - model: { - providerID: string; - modelID: string; - variant?: string; - }; - system?: string; - tools?: { - [key: string]: boolean; - }; -}; -export type AssistantMessage = { - id: string; - sessionID: string; - role: "assistant"; - time: { - created: number; - completed?: number; - }; - error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | StructuredOutputError | ContextOverflowError | ApiError; - parentID: string; - modelID: string; - providerID: string; - mode: string; - agent: string; - path: { - cwd: string; - root: string; - }; - summary?: boolean; - cost: number; - tokens: { - total?: number; - input: number; - output: number; - reasoning: number; - cache: { - read: number; - write: number; - }; - }; - structured?: unknown; - variant?: string; - finish?: string; -}; -export type Message = UserMessage | AssistantMessage; -export type TextPart = { - id: string; - sessionID: string; - messageID: string; - type: "text"; - text: string; - synthetic?: boolean; - ignored?: boolean; - time?: { - start: number; - end?: number; - }; - metadata?: { - [key: string]: unknown; - }; -}; -export type SubtaskPart = { - id: string; - sessionID: string; - messageID: string; - type: "subtask"; - prompt: string; - description: string; - agent: string; - model?: { - providerID: string; - modelID: string; - }; - command?: string; + messageID: string; + type: "subtask"; + prompt: string; + description: string; + agent: string; + model?: { + providerID: string; + modelID: string; + }; + command?: string; }; export type ReasoningPart = { id: string; @@ -543,244 +472,1003 @@ export type CompactionPart = { tail_start_id?: string; }; export type Part = TextPart | SubtaskPart | ReasoningPart | FilePart | ToolPart | StepStartPart | StepFinishPart | SnapshotPart | PatchPart | AgentPart | RetryPart | CompactionPart; -export type PermissionAction = "allow" | "deny" | "ask"; -export type PermissionRule = { - permission: string; - pattern: string; - action: PermissionAction; -}; -export type PermissionRuleset = Array; -export type Session = { - id: string; - slug: string; - projectID: string; - workspaceID?: string; - directory: string; - path?: string; - parentID?: string; - summary?: { - additions: number; - deletions: number; - files: number; - diffs?: Array; - }; - cost?: number; - tokens?: { - input: number; - output: number; - reasoning: number; - cache: { - read: number; - write: number; - }; - }; - share?: { - url: string; - }; - title: string; - agent?: string; - model?: { - id: string; - providerID: string; - variant?: string; - }; - version: string; - time: { - created: number; - updated: number; - compacting?: number; - archived?: number; - }; - permission?: PermissionRuleset; - revert?: { - messageID: string; - partID?: string; - snapshot?: string; - diff?: string; - }; -}; export type Prompt = { text: string; files?: Array; agents?: Array; - references?: Array; -}; -export type GlobalEvent = { - directory: string; - project?: string; - workspace?: string; - payload: EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventServerConnected | EventGlobalDisposed | EventServerInstanceDisposed | EventFileEdited | EventFileWatcherUpdated | EventLspClientDiagnostics | EventLspUpdated | EventMessagePartDelta | EventPermissionAsked | EventPermissionReplied | EventSessionDiff | EventSessionError | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventTodoUpdated | EventSessionStatus | EventSessionIdle | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventCommandExecuted | EventProjectUpdated | EventSessionCompacted | EventVcsBranchUpdated | EventWorkspaceReady | EventWorkspaceFailed | EventWorkspaceStatus | EventWorktreeReady | EventWorktreeFailed | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventInstallationUpdated | EventInstallationUpdateAvailable | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventSessionNextAgentSwitched | EventSessionNextModelSwitched | EventSessionNextPrompted | EventSessionNextSynthetic | EventSessionNextShellStarted | EventSessionNextShellEnded | EventSessionNextStepStarted | EventSessionNextStepEnded | EventSessionNextStepFailed | EventSessionNextTextStarted | EventSessionNextTextDelta | EventSessionNextTextEnded | EventSessionNextReasoningStarted | EventSessionNextReasoningDelta | EventSessionNextReasoningEnded | EventSessionNextToolInputStarted | EventSessionNextToolInputDelta | EventSessionNextToolInputEnded | EventSessionNextToolCalled | EventSessionNextToolProgress | EventSessionNextToolSuccess | EventSessionNextToolFailed | EventSessionNextRetried | EventSessionNextCompactionStarted | EventSessionNextCompactionDelta | EventSessionNextCompactionEnded | EventCatalogModelUpdated | SyncEventMessageUpdated | SyncEventMessageRemoved | SyncEventMessagePartUpdated | SyncEventMessagePartRemoved | SyncEventSessionCreated | SyncEventSessionUpdated | SyncEventSessionDeleted | SyncEventSessionNextAgentSwitched | SyncEventSessionNextModelSwitched | SyncEventSessionNextPrompted | SyncEventSessionNextSynthetic | SyncEventSessionNextShellStarted | SyncEventSessionNextShellEnded | SyncEventSessionNextStepStarted | SyncEventSessionNextStepEnded | SyncEventSessionNextStepFailed | SyncEventSessionNextTextStarted | SyncEventSessionNextTextDelta | SyncEventSessionNextTextEnded | SyncEventSessionNextReasoningStarted | SyncEventSessionNextReasoningDelta | SyncEventSessionNextReasoningEnded | SyncEventSessionNextToolInputStarted | SyncEventSessionNextToolInputDelta | SyncEventSessionNextToolInputEnded | SyncEventSessionNextToolCalled | SyncEventSessionNextToolProgress | SyncEventSessionNextToolSuccess | SyncEventSessionNextToolFailed | SyncEventSessionNextRetried | SyncEventSessionNextCompactionStarted | SyncEventSessionNextCompactionDelta | SyncEventSessionNextCompactionEnded; }; -/** - * Log level - */ -export type LogLevel = "DEBUG" | "INFO" | "WARN" | "ERROR"; -/** - * Server configuration for opencode serve and web commands - */ -export type ServerConfig = { - port?: number; - hostname?: string; - mdns?: boolean; - mdnsDomain?: string; - cors?: Array; +export type Pty = { + id: string; + title: string; + command: string; + args: Array; + cwd: string; + status: "running" | "exited"; + pid: number; + exitCode?: number; }; -export type ReferenceConfigEntry = string | { +export type Todo = { /** - * Git repository URL, host/path reference, or GitHub owner/repo shorthand + * Brief description of the task */ - repository: string; - branch?: string; -} | { + content: string; + /** + * Current status of the task: pending, in_progress, completed, cancelled + */ + status: string; /** - * Absolute path, ~/ path, or workspace-relative path to a local reference directory + * Priority level of the task: high, medium, low */ - path: string; -}; -export type ReferenceConfig = { - [key: string]: ReferenceConfigEntry; -}; -export type PermissionActionConfig = "ask" | "allow" | "deny"; -export type PermissionObjectConfig = { - [key: string]: PermissionActionConfig; + priority: string; }; -export type PermissionRuleConfig = PermissionActionConfig | PermissionObjectConfig; -export type PermissionConfig = PermissionActionConfig | { - read?: PermissionRuleConfig; - edit?: PermissionRuleConfig; - glob?: PermissionRuleConfig; - grep?: PermissionRuleConfig; - list?: PermissionRuleConfig; - bash?: PermissionRuleConfig; - task?: PermissionRuleConfig; - external_directory?: PermissionRuleConfig; - todowrite?: PermissionActionConfig; - question?: PermissionActionConfig; - webfetch?: PermissionActionConfig; - websearch?: PermissionActionConfig; - repo_clone?: PermissionRuleConfig; - repo_overview?: PermissionRuleConfig; - lsp?: PermissionRuleConfig; - doom_loop?: PermissionActionConfig; - skill?: PermissionRuleConfig; - [key: string]: PermissionRuleConfig | PermissionActionConfig | undefined; -}; -export type AgentConfig = { - model?: string; - variant?: string; - temperature?: number; - top_p?: number; - prompt?: string; - tools?: { - [key: string]: boolean; - }; - disable?: boolean; - description?: string; - mode?: "subagent" | "primary" | "all"; - hidden?: boolean; - options?: { - [key: string]: unknown; +export type SessionStatus = { + type: "idle"; +} | { + type: "retry"; + attempt: number; + message: string; + action?: { + reason: string; + provider: string; + title: string; + message: string; + label: string; + link?: string; }; + next: number; +} | { + type: "busy"; +}; +export type QuestionOption = { /** - * Hex color code (e.g., #FF5733) or theme color (e.g., primary) + * Display text (1-5 words, concise) */ - color?: string | "primary" | "secondary" | "accent" | "success" | "warning" | "error" | "info"; - steps?: number; - maxSteps?: number; - permission?: PermissionConfig; - [key: string]: unknown | string | number | { - [key: string]: boolean; - } | boolean | "subagent" | "primary" | "all" | { - [key: string]: unknown; - } | string | "primary" | "secondary" | "accent" | "success" | "warning" | "error" | "info" | number | PermissionConfig | undefined; + label: string; + /** + * Explanation of choice + */ + description: string; }; -export type ProviderConfig = { - api?: string; - name?: string; - env?: Array; - id?: string; - npm?: string; - whitelist?: Array; - blacklist?: Array; - options?: { - apiKey?: string; - baseURL?: string; - enterpriseUrl?: string; - setCacheKey?: boolean; - /** - * Timeout in milliseconds for requests to this provider. Default is 300000 (5 minutes). Set to false to disable timeout. - */ - timeout?: number | false; - chunkTimeout?: number; - [key: string]: unknown | string | boolean | number | false | number | undefined; - }; - models?: { - [key: string]: { - id?: string; - name?: string; - family?: string; - release_date?: string; - attachment?: boolean; - reasoning?: boolean; - temperature?: boolean; - tool_call?: boolean; - interleaved?: true | { - field: "reasoning_content" | "reasoning_details"; - }; - cost?: { +export type QuestionInfo = { + /** + * Complete question + */ + question: string; + /** + * Very short label (max 30 chars) + */ + header: string; + /** + * Available choices + */ + options: Array; + multiple?: boolean; + custom?: boolean; +}; +export type QuestionTool = { + messageID: string; + callID: string; +}; +export type QuestionAnswer = Array; +export type GlobalEvent = { + directory: string; + project?: string; + workspace?: string; + payload: { + id: string; + type: "models-dev.refreshed"; + properties: { + [key: string]: unknown; + }; + } | { + id: string; + type: "integration.updated"; + properties: { + [key: string]: unknown; + }; + } | { + id: string; + type: "integration.connection.updated"; + properties: { + integrationID: string; + }; + } | { + id: string; + type: "catalog.updated"; + properties: { + [key: string]: unknown; + }; + } | { + id: string; + type: "session.created"; + properties: { + sessionID: string; + info: Session; + }; + } | { + id: string; + type: "session.updated"; + properties: { + sessionID: string; + info: Session; + }; + } | { + id: string; + type: "session.deleted"; + properties: { + sessionID: string; + info: Session; + }; + } | { + id: string; + type: "message.updated"; + properties: { + sessionID: string; + info: Message; + }; + } | { + id: string; + type: "message.removed"; + properties: { + sessionID: string; + messageID: string; + }; + } | { + id: string; + type: "message.part.updated"; + properties: { + sessionID: string; + part: Part; + time: number; + }; + } | { + id: string; + type: "message.part.removed"; + properties: { + sessionID: string; + messageID: string; + partID: string; + }; + } | { + id: string; + type: "session.next.agent.switched"; + properties: { + timestamp: number; + sessionID: string; + messageID: string; + agent: string; + }; + } | { + id: string; + type: "session.next.model.switched"; + properties: { + timestamp: number; + sessionID: string; + messageID: string; + model: ModelRef; + }; + } | { + id: string; + type: "session.next.moved"; + properties: { + timestamp: number; + sessionID: string; + location: LocationRef; + subdirectory?: string; + }; + } | { + id: string; + type: "session.next.prompted"; + properties: { + timestamp: number; + sessionID: string; + messageID: string; + prompt: Prompt; + delivery: "steer" | "queue"; + }; + } | { + id: string; + type: "session.next.prompt.admitted"; + properties: { + timestamp: number; + sessionID: string; + messageID: string; + prompt: Prompt; + delivery: "steer" | "queue"; + }; + } | { + id: string; + type: "session.next.context.updated"; + properties: { + timestamp: number; + sessionID: string; + messageID: string; + text: string; + }; + } | { + id: string; + type: "session.next.synthetic"; + properties: { + timestamp: number; + sessionID: string; + messageID: string; + text: string; + }; + } | { + id: string; + type: "session.next.shell.started"; + properties: { + timestamp: number; + sessionID: string; + messageID: string; + callID: string; + command: string; + }; + } | { + id: string; + type: "session.next.shell.ended"; + properties: { + timestamp: number; + sessionID: string; + callID: string; + output: string; + }; + } | { + id: string; + type: "session.next.step.started"; + properties: { + timestamp: number; + sessionID: string; + assistantMessageID: string; + agent: string; + model: ModelRef; + snapshot?: string; + }; + } | { + id: string; + type: "session.next.step.ended"; + properties: { + timestamp: number; + sessionID: string; + assistantMessageID: string; + finish: string; + cost: number; + tokens: { input: number; output: number; - cache_read?: number; - cache_write?: number; - context_over_200k?: { - input: number; - output: number; - cache_read?: number; - cache_write?: number; + reasoning: number; + cache: { + read: number; + write: number; }; }; - limit?: { - context: number; - input?: number; - output: number; + snapshot?: string; + files?: Array; + }; + } | { + id: string; + type: "session.next.step.failed"; + properties: { + timestamp: number; + sessionID: string; + assistantMessageID: string; + error: SessionErrorUnknown; + }; + } | { + id: string; + type: "session.next.text.started"; + properties: { + timestamp: number; + sessionID: string; + assistantMessageID: string; + textID: string; + }; + } | { + id: string; + type: "session.next.text.delta"; + properties: { + timestamp: number; + sessionID: string; + assistantMessageID: string; + textID: string; + delta: string; + }; + } | { + id: string; + type: "session.next.text.ended"; + properties: { + timestamp: number; + sessionID: string; + assistantMessageID: string; + textID: string; + text: string; + }; + } | { + id: string; + type: "session.next.reasoning.started"; + properties: { + timestamp: number; + sessionID: string; + assistantMessageID: string; + reasoningID: string; + providerMetadata?: LlmProviderMetadata; + }; + } | { + id: string; + type: "session.next.reasoning.delta"; + properties: { + timestamp: number; + sessionID: string; + assistantMessageID: string; + reasoningID: string; + delta: string; + }; + } | { + id: string; + type: "session.next.reasoning.ended"; + properties: { + timestamp: number; + sessionID: string; + assistantMessageID: string; + reasoningID: string; + text: string; + providerMetadata?: LlmProviderMetadata; + }; + } | { + id: string; + type: "session.next.tool.input.started"; + properties: { + timestamp: number; + sessionID: string; + assistantMessageID: string; + callID: string; + name: string; + }; + } | { + id: string; + type: "session.next.tool.input.delta"; + properties: { + timestamp: number; + sessionID: string; + assistantMessageID: string; + callID: string; + delta: string; + }; + } | { + id: string; + type: "session.next.tool.input.ended"; + properties: { + timestamp: number; + sessionID: string; + assistantMessageID: string; + callID: string; + text: string; + }; + } | { + id: string; + type: "session.next.tool.called"; + properties: { + timestamp: number; + sessionID: string; + assistantMessageID: string; + callID: string; + tool: string; + input: { + [key: string]: unknown; }; - modalities?: { - input: Array<"text" | "audio" | "image" | "video" | "pdf">; - output: Array<"text" | "audio" | "image" | "video" | "pdf">; + provider: { + executed: boolean; + metadata?: LlmProviderMetadata; }; - experimental?: boolean; - status?: "alpha" | "beta" | "deprecated" | "active"; - provider?: { - npm?: string; - api?: string; + }; + } | { + id: string; + type: "session.next.tool.progress"; + properties: { + timestamp: number; + sessionID: string; + assistantMessageID: string; + callID: string; + structured: { + [key: string]: unknown; }; - options?: { + content: Array; + }; + } | { + id: string; + type: "session.next.tool.success"; + properties: { + timestamp: number; + sessionID: string; + assistantMessageID: string; + callID: string; + structured: { [key: string]: unknown; }; - headers?: { - [key: string]: string; + content: Array; + outputPaths?: Array; + result?: unknown; + provider: { + executed: boolean; + metadata?: LlmProviderMetadata; + }; + }; + } | { + id: string; + type: "session.next.tool.failed"; + properties: { + timestamp: number; + sessionID: string; + assistantMessageID: string; + callID: string; + error: SessionErrorUnknown; + result?: unknown; + provider: { + executed: boolean; + metadata?: LlmProviderMetadata; + }; + }; + } | { + id: string; + type: "session.next.retried"; + properties: { + timestamp: number; + sessionID: string; + attempt: number; + error: SessionNextRetryError; + }; + } | { + id: string; + type: "session.next.compaction.started"; + properties: { + timestamp: number; + sessionID: string; + messageID: string; + reason: "auto" | "manual"; + }; + } | { + id: string; + type: "session.next.compaction.delta"; + properties: { + timestamp: number; + sessionID: string; + messageID: string; + text: string; + }; + } | { + id: string; + type: "session.next.compaction.ended"; + properties: { + timestamp: number; + sessionID: string; + messageID: string; + reason: "auto" | "manual"; + text: string; + recent: string; + }; + } | { + id: string; + type: "session.next.revert.staged"; + properties: { + timestamp: number; + sessionID: string; + revert: RevertState; + }; + } | { + id: string; + type: "session.next.revert.cleared"; + properties: { + timestamp: number; + sessionID: string; + }; + } | { + id: string; + type: "session.next.revert.committed"; + properties: { + timestamp: number; + sessionID: string; + messageID: string; + }; + } | { + id: string; + type: "message.part.delta"; + properties: { + sessionID: string; + messageID: string; + partID: string; + field: string; + delta: string; + }; + } | { + id: string; + type: "session.diff"; + properties: { + sessionID: string; + diff: Array; + }; + } | { + id: string; + type: "session.error"; + properties: { + sessionID?: string; + error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | StructuredOutputError | ContextOverflowError | ContentFilterError | ApiError; + }; + } | { + id: string; + type: "installation.updated"; + properties: { + version: string; + }; + } | { + id: string; + type: "installation.update-available"; + properties: { + version: string; + }; + } | { + id: string; + type: "file.edited"; + properties: { + file: string; + }; + } | { + id: string; + type: "reference.updated"; + properties: { + [key: string]: unknown; + }; + } | { + id: string; + type: "permission.v2.asked"; + properties: { + id: string; + sessionID: string; + action: string; + resources: Array; + save?: Array; + metadata?: { + [key: string]: unknown; }; + source?: PermissionV2Source; + }; + } | { + id: string; + type: "permission.v2.replied"; + properties: { + sessionID: string; + requestID: string; + reply: PermissionV2Reply; + }; + } | { + id: string; + type: "plugin.added"; + properties: { + id: string; + }; + } | { + id: string; + type: "project.directories.updated"; + properties: { + projectID: string; + }; + } | { + id: string; + type: "file.watcher.updated"; + properties: { + file: string; + event: "add" | "change" | "unlink"; + }; + } | { + id: string; + type: "pty.created"; + properties: { + info: Pty; + }; + } | { + id: string; + type: "pty.updated"; + properties: { + info: Pty; + }; + } | { + id: string; + type: "pty.exited"; + properties: { + id: string; + exitCode: number; + }; + } | { + id: string; + type: "pty.deleted"; + properties: { + id: string; + }; + } | { + id: string; + type: "question.v2.asked"; + properties: { + id: string; + sessionID: string; /** - * Variant-specific configuration + * Questions to ask */ - variants?: { - [key: string]: { - disabled?: boolean; - [key: string]: unknown | boolean | undefined; - }; + questions: Array; + tool?: QuestionV2Tool; + }; + } | { + id: string; + type: "question.v2.replied"; + properties: { + sessionID: string; + requestID: string; + answers: Array; + }; + } | { + id: string; + type: "question.v2.rejected"; + properties: { + sessionID: string; + requestID: string; + }; + } | { + id: string; + type: "todo.updated"; + properties: { + sessionID: string; + todos: Array; + }; + } | { + id: string; + type: "lsp.updated"; + properties: { + [key: string]: unknown; + }; + } | { + id: string; + type: "permission.asked"; + properties: { + id: string; + sessionID: string; + permission: string; + patterns: Array; + metadata: { + [key: string]: unknown; + }; + always: Array; + tool?: { + messageID: string; + callID: string; }; }; - }; + } | { + id: string; + type: "permission.replied"; + properties: { + sessionID: string; + requestID: string; + reply: "once" | "always" | "reject"; + }; + } | { + id: string; + type: "tui.prompt.append"; + properties: { + text: string; + }; + } | { + id: string; + type: "tui.command.execute"; + properties: { + command: "session.list" | "session.new" | "session.share" | "session.interrupt" | "session.compact" | "session.page.up" | "session.page.down" | "session.line.up" | "session.line.down" | "session.half.page.up" | "session.half.page.down" | "session.first" | "session.last" | "prompt.clear" | "prompt.submit" | "agent.cycle" | string; + }; + } | { + id: string; + type: "tui.toast.show"; + properties: { + title?: string; + message: string; + variant: "info" | "success" | "warning" | "error"; + duration?: number; + }; + } | { + id: string; + type: "tui.session.select"; + properties: { + /** + * Session ID to navigate to + */ + sessionID: string; + }; + } | { + id: string; + type: "mcp.tools.changed"; + properties: { + server: string; + }; + } | { + id: string; + type: "mcp.browser.open.failed"; + properties: { + mcpName: string; + url: string; + }; + } | { + id: string; + type: "command.executed"; + properties: { + name: string; + sessionID: string; + arguments: string; + messageID: string; + }; + } | { + id: string; + type: "project.updated"; + properties: { + id: string; + worktree: string; + vcs?: ProjectVcs; + name?: string; + icon?: ProjectIcon; + commands?: ProjectCommands; + time: ProjectTime; + sandboxes: Array; + }; + } | { + id: string; + type: "session.status"; + properties: { + sessionID: string; + status: SessionStatus; + }; + } | { + id: string; + type: "session.idle"; + properties: { + sessionID: string; + }; + } | { + id: string; + type: "question.asked"; + properties: { + id: string; + sessionID: string; + /** + * Questions to ask + */ + questions: Array; + tool?: QuestionTool; + }; + } | { + id: string; + type: "question.replied"; + properties: { + sessionID: string; + requestID: string; + answers: Array; + }; + } | { + id: string; + type: "question.rejected"; + properties: { + sessionID: string; + requestID: string; + }; + } | { + id: string; + type: "session.compacted"; + properties: { + sessionID: string; + }; + } | { + id: string; + type: "vcs.branch.updated"; + properties: { + branch?: string; + }; + } | { + id: string; + type: "workspace.ready"; + properties: { + name: string; + }; + } | { + id: string; + type: "workspace.failed"; + properties: { + message: string; + }; + } | { + id: string; + type: "workspace.status"; + properties: { + workspaceID: string; + status: "connected" | "connecting" | "disconnected" | "error"; + }; + } | { + id: string; + type: "worktree.ready"; + properties: { + name: string; + branch?: string; + }; + } | { + id: string; + type: "worktree.failed"; + properties: { + message: string; + }; + } | { + id: string; + type: "server.connected"; + properties: { + [key: string]: unknown; + }; + } | { + id: string; + type: "global.disposed"; + properties: { + [key: string]: unknown; + }; + } | EventServerInstanceDisposed | SyncEventSessionCreated | SyncEventSessionUpdated | SyncEventSessionDeleted | SyncEventMessageUpdated | SyncEventMessageRemoved | SyncEventMessagePartUpdated | SyncEventMessagePartRemoved | SyncEventSessionNextAgentSwitched | SyncEventSessionNextModelSwitched | SyncEventSessionNextMoved | SyncEventSessionNextPrompted | SyncEventSessionNextPromptAdmitted | SyncEventSessionNextContextUpdated | SyncEventSessionNextSynthetic | SyncEventSessionNextShellStarted | SyncEventSessionNextShellEnded | SyncEventSessionNextStepStarted | SyncEventSessionNextStepEnded | SyncEventSessionNextStepFailed | SyncEventSessionNextTextStarted | SyncEventSessionNextTextEnded | SyncEventSessionNextReasoningStarted | SyncEventSessionNextReasoningEnded | SyncEventSessionNextToolInputStarted | SyncEventSessionNextToolInputEnded | SyncEventSessionNextToolCalled | SyncEventSessionNextToolProgress | SyncEventSessionNextToolSuccess | SyncEventSessionNextToolFailed | SyncEventSessionNextRetried | SyncEventSessionNextCompactionStarted | SyncEventSessionNextCompactionEnded | SyncEventSessionNextRevertStaged | SyncEventSessionNextRevertCleared | SyncEventSessionNextRevertCommitted; }; -export type McpLocalConfig = { - /** - * Type of MCP server connection - */ - type: "local"; +/** + * Log level + */ +export type LogLevel = "DEBUG" | "INFO" | "WARN" | "ERROR"; +/** + * Server configuration for opencode serve and web commands + */ +export type ServerConfig = { + port?: number; + hostname?: string; + mdns?: boolean; + mdnsDomain?: string; + cors?: Array; +}; +export type PermissionActionConfig = "ask" | "allow" | "deny"; +export type PermissionObjectConfig = { + [key: string]: PermissionActionConfig; +}; +export type PermissionRuleConfig = PermissionActionConfig | PermissionObjectConfig; +export type PermissionConfig = PermissionActionConfig | { + read?: PermissionRuleConfig; + edit?: PermissionRuleConfig; + glob?: PermissionRuleConfig; + grep?: PermissionRuleConfig; + list?: PermissionRuleConfig; + bash?: PermissionRuleConfig; + task?: PermissionRuleConfig; + external_directory?: PermissionRuleConfig; + todowrite?: PermissionActionConfig; + question?: PermissionActionConfig; + webfetch?: PermissionActionConfig; + websearch?: PermissionActionConfig; + lsp?: PermissionRuleConfig; + doom_loop?: PermissionActionConfig; + skill?: PermissionRuleConfig; + [key: string]: PermissionRuleConfig | PermissionActionConfig | undefined; +}; +export type AgentConfig = { + model?: string; + variant?: string; + temperature?: number; + top_p?: number; + prompt?: string; + tools?: { + [key: string]: boolean; + }; + disable?: boolean; + description?: string; + mode?: "subagent" | "primary" | "all"; + hidden?: boolean; + options?: { + [key: string]: unknown; + }; /** - * Command and arguments to run the MCP server + * Hex color code (e.g., #FF5733) or theme color (e.g., primary) + */ + color?: string | "primary" | "secondary" | "accent" | "success" | "warning" | "error" | "info"; + steps?: number; + maxSteps?: number; + permission?: PermissionConfig; + [key: string]: unknown | string | number | { + [key: string]: boolean; + } | boolean | "subagent" | "primary" | "all" | { + [key: string]: unknown; + } | string | "primary" | "secondary" | "accent" | "success" | "warning" | "error" | "info" | number | PermissionConfig | undefined; +}; +export type ProviderConfig = { + api?: string; + name?: string; + env?: Array; + id?: string; + npm?: string; + whitelist?: Array; + blacklist?: Array; + options?: { + apiKey?: string; + baseURL?: string; + enterpriseUrl?: string; + setCacheKey?: boolean; + /** + * Timeout in milliseconds for full requests to this provider. Set to false to disable timeout. + */ + timeout?: number | false; + /** + * Timeout in milliseconds to wait for response headers. Provider integrations may set defaults. Set to false to disable timeout. + */ + headerTimeout?: number | false; + chunkTimeout?: number; + [key: string]: unknown | string | boolean | number | false | number | false | number | undefined; + }; + models?: { + [key: string]: { + id?: string; + name?: string; + family?: string; + release_date?: string; + attachment?: boolean; + reasoning?: boolean; + temperature?: boolean; + tool_call?: boolean; + interleaved?: boolean | "reasoning" | "reasoning_content" | "reasoning_text" | string | { + field: "reasoning" | "reasoning_content" | "reasoning_text" | string; + }; + cost?: { + input: number; + output: number; + cache_read?: number; + cache_write?: number; + context_over_200k?: { + input: number; + output: number; + cache_read?: number; + cache_write?: number; + }; + }; + limit?: { + context: number; + input?: number; + output: number; + }; + modalities?: { + input?: Array<"text" | "audio" | "image" | "video" | "pdf">; + output?: Array<"text" | "audio" | "image" | "video" | "pdf">; + }; + experimental?: boolean; + status?: "alpha" | "beta" | "deprecated" | "active"; + provider?: { + npm?: string; + api?: string; + }; + options?: { + [key: string]: unknown; + }; + headers?: { + [key: string]: string; + }; + /** + * Variant-specific configuration + */ + variants?: { + [key: string]: { + disabled?: boolean; + [key: string]: unknown | boolean | undefined; + }; + }; + }; + }; +}; +export type McpLocalConfig = { + /** + * Type of MCP server connection + */ + type: "local"; + /** + * Command and arguments to run the MCP server */ command: Array; + cwd?: string; environment?: { [key: string]: string; }; @@ -791,4936 +1479,9476 @@ export type McpOAuthConfig = { clientId?: string; clientSecret?: string; scope?: string; + callbackPort?: number; redirectUri?: string; }; -export type McpRemoteConfig = { - /** - * Type of MCP server connection - */ - type: "remote"; - /** - * URL of the remote MCP server - */ - url: string; - enabled?: boolean; - headers?: { - [key: string]: string; +export type McpRemoteConfig = { + /** + * Type of MCP server connection + */ + type: "remote"; + /** + * URL of the remote MCP server + */ + url: string; + enabled?: boolean; + headers?: { + [key: string]: string; + }; + /** + * OAuth authentication configuration for the MCP server. Set to false to disable OAuth auto-detection. + */ + oauth?: McpOAuthConfig | false; + timeout?: number; +}; +/** + * @deprecated Always uses stretch layout. + */ +export type LayoutConfig = "auto" | "stretch"; +export type ImageAttachmentConfig = { + auto_resize?: boolean; + max_width?: number; + max_height?: number; + max_base64_bytes?: number; +}; +export type AttachmentConfig = { + image?: ImageAttachmentConfig; +}; +export type Config = { + $schema?: string; + shell?: string; + logLevel?: LogLevel; + server?: ServerConfig; + command?: { + [key: string]: { + template: string; + description?: string; + agent?: string; + model?: string; + variant?: string; + subtask?: boolean; + }; + }; + skills?: { + paths?: Array; + urls?: Array; + }; + references?: { + [key: string]: string | ConfigV2ReferenceGit | ConfigV2ReferenceLocal; + }; + reference?: { + [key: string]: string | ConfigV2ReferenceGit | ConfigV2ReferenceLocal; + }; + watcher?: { + ignore?: Array; + }; + snapshot?: boolean; + plugin?: Array; + share?: "manual" | "auto" | "disabled"; + autoshare?: boolean; + /** + * Automatically update to the latest version. Set to true to auto-update, false to disable, or 'notify' to show update notifications + */ + autoupdate?: boolean | "notify"; + disabled_providers?: Array; + enabled_providers?: Array; + model?: string; + small_model?: string; + default_agent?: string; + subagent_depth?: number; + username?: string; + mode?: { + build?: AgentConfig; + plan?: AgentConfig; + [key: string]: AgentConfig | undefined; + }; + agent?: { + plan?: AgentConfig; + build?: AgentConfig; + general?: AgentConfig; + explore?: AgentConfig; + title?: AgentConfig; + summary?: AgentConfig; + compaction?: AgentConfig; + [key: string]: AgentConfig | undefined; + }; + provider?: { + [key: string]: ProviderConfig; + }; + mcp?: { + [key: string]: McpLocalConfig | McpRemoteConfig | { + enabled: boolean; + }; + }; + /** + * Enable or configure formatters. Omit or set to false to disable, true to enable built-ins, or an object to enable built-ins with overrides. + */ + formatter?: boolean | { + [key: string]: { + disabled?: boolean; + command?: Array; + environment?: { + [key: string]: string; + }; + extensions?: Array; + }; + }; + /** + * Enable or configure LSP servers. Omit or set to false to disable, true to enable built-ins, or an object to enable built-ins with overrides. + */ + lsp?: boolean | { + [key: string]: { + disabled: true; + } | { + command: Array; + extensions?: Array; + disabled?: boolean; + env?: { + [key: string]: string; + }; + initialization?: { + [key: string]: unknown; + }; + }; + }; + instructions?: Array; + layout?: LayoutConfig; + permission?: PermissionConfig; + tools?: { + [key: string]: boolean; + }; + attachment?: AttachmentConfig; + enterprise?: { + url?: string; + }; + tool_output?: { + max_lines?: number; + max_bytes?: number; + }; + compaction?: { + auto?: boolean; + prune?: boolean; + tail_turns?: number; + preserve_recent_tokens?: number; + reserved?: number; + }; + experimental?: { + disable_paste_summary?: boolean; + batch_tool?: boolean; + openTelemetry?: boolean; + primary_tools?: Array; + continue_loop_on_deny?: boolean; + mcp_timeout?: number; + policies?: Array; + }; +}; +export type Model = { + id: string; + providerID: string; + api: { + id: string; + url: string; + npm: string; + }; + name: string; + family?: string; + capabilities: { + temperature: boolean; + reasoning: boolean; + attachment: boolean; + toolcall: boolean; + input: { + text: boolean; + audio: boolean; + image: boolean; + video: boolean; + pdf: boolean; + }; + output: { + text: boolean; + audio: boolean; + image: boolean; + video: boolean; + pdf: boolean; + }; + interleaved: boolean | { + field: "reasoning" | "reasoning_content" | "reasoning_text" | string; + }; + }; + cost: { + input: number; + output: number; + cache: { + read: number; + write: number; + }; + tiers?: Array<{ + input: number; + output: number; + cache: { + read: number; + write: number; + }; + tier: { + type: "context"; + size: number; + }; + }>; + experimentalOver200K?: { + input: number; + output: number; + cache: { + read: number; + write: number; + }; + }; + }; + limit: { + context: number; + input?: number; + output: number; + }; + status: "alpha" | "beta" | "deprecated" | "active"; + options: { + [key: string]: unknown; + }; + headers: { + [key: string]: string; + }; + release_date: string; + variants?: { + [key: string]: { + [key: string]: unknown; + }; + }; +}; +export type Provider = { + id: string; + name: string; + source: "env" | "config" | "custom" | "api"; + env: Array; + key?: string; + options: { + [key: string]: unknown; + }; + models: { + [key: string]: Model; + }; +}; +export type ExperimentalCapabilities = { + backgroundSubagents: boolean; +}; +export type ConsoleState = { + consoleManagedProviders: Array; + activeOrgName?: string; + switchableOrgCount: number; +}; +export type EffectHttpApiErrorInternalServerError = { + _tag: "InternalServerError"; +}; +export type ToolListItem = { + id: string; + description: string; + parameters: unknown; +}; +export type ToolList = Array; +export type ToolIds = Array; +export type WorktreeError = { + name: "WorktreeNotGitError" | "WorktreeNameGenerationFailedError" | "WorktreeCreateFailedError" | "WorktreeStartCommandFailedError" | "WorktreeRemoveFailedError" | "WorktreeResetFailedError" | "WorktreeListFailedError"; + data: { + message: string; + }; +}; +export type WorktreeCreateInput = { + name?: string; + /** + * Additional startup script to run after the project's start command + */ + startCommand?: string; +}; +export type Worktree = { + name: string; + branch?: string; + directory: string; +}; +export type WorktreeRemoveInput = { + directory: string; +}; +export type WorktreeResetInput = { + directory: string; +}; +export type ProjectSummary = { + id: string; + name?: string; + worktree: string; +}; +export type GlobalSession = { + id: string; + slug: string; + projectID: string; + workspaceID?: string; + directory: string; + path?: string; + parentID?: string; + summary?: { + additions: number; + deletions: number; + files: number; + diffs?: Array; + }; + cost?: number; + tokens?: { + input: number; + output: number; + reasoning: number; + cache: { + read: number; + write: number; + }; + }; + share?: { + url: string; + }; + title: string; + agent?: string; + model?: { + id: string; + providerID: string; + variant?: string; + }; + version: string; + metadata?: { + [key: string]: unknown; + }; + time: { + created: number; + updated: number; + compacting?: number; + archived?: number; + }; + permission?: PermissionRuleset; + revert?: { + messageID: string; + partID?: string; + snapshot?: string; + diff?: string; + }; + project: ProjectSummary | null; +}; +export type McpResource = { + name: string; + uri: string; + description?: string; + mimeType?: string; + client: string; +}; +export type Symbol = { + name: string; + kind: number; + location: { + uri: string; + range: Range; + }; +}; +export type FileNode = { + name: string; + path: string; + absolute: string; + type: "file" | "directory"; + ignored: boolean; +}; +export type FileContent = { + type: "text" | "binary"; + content: string; + diff?: string; + patch?: { + oldFileName: string; + newFileName: string; + oldHeader?: string; + newHeader?: string; + hunks: Array<{ + oldStart: number; + oldLines: number; + newStart: number; + newLines: number; + lines: Array; + }>; + index?: string; + }; + encoding?: "base64"; + mimeType?: string; +}; +export type File = { + path: string; + added: number; + removed: number; + status: "added" | "deleted" | "modified"; +}; +export type Path = { + home: string; + state: string; + config: string; + worktree: string; + directory: string; +}; +export type VcsInfo = { + branch?: string; + default_branch?: string; +}; +export type VcsFileStatus = { + file: string; + additions: number; + deletions: number; + status: "added" | "deleted" | "modified"; +}; +export type VcsFileDiff = { + file: string; + patch?: string; + additions: number; + deletions: number; + status?: "added" | "deleted" | "modified"; +}; +export type VcsApplyError = { + name: "VcsApplyError"; + data: { + message: string; + reason: "non-git" | "not-clean"; + }; +}; +export type Command = { + name: string; + description?: string; + agent?: string; + model?: string; + source?: "command" | "mcp" | "skill"; + template: string; + subtask?: boolean; + hints: Array; +}; +export type Agent = { + name: string; + description?: string; + mode: "subagent" | "primary" | "all"; + native?: boolean; + hidden?: boolean; + topP?: number; + temperature?: number; + color?: string; + permission: PermissionRuleset; + model?: { + modelID: string; + providerID: string; + }; + variant?: string; + prompt?: string; + options: { + [key: string]: unknown; + }; + steps?: number; +}; +export type LspStatus = { + id: string; + name: string; + root: string; + status: "connected" | "error"; +}; +export type FormatterStatus = { + name: string; + extensions: Array; + enabled: boolean; +}; +export type McpStatusConnected = { + status: "connected"; +}; +export type McpStatusDisabled = { + status: "disabled"; +}; +export type McpStatusFailed = { + status: "failed"; + error: string; +}; +export type McpStatusNeedsAuth = { + status: "needs_auth"; +}; +export type McpStatusNeedsClientRegistration = { + status: "needs_client_registration"; + error: string; +}; +export type McpStatus = McpStatusConnected | McpStatusDisabled | McpStatusFailed | McpStatusNeedsAuth | McpStatusNeedsClientRegistration; +export type McpUnsupportedOAuthError = { + error: string; +}; +export type McpServerNotFoundError = { + _tag: "McpServerNotFoundError"; + name: string; + message: string; +}; +export type Project = { + id: string; + worktree: string; + vcs?: ProjectVcs; + name?: string; + icon?: ProjectIcon; + commands?: ProjectCommands; + time: ProjectTime; + sandboxes: Array; +}; +export type ProjectNotFoundError = { + _tag: "ProjectNotFoundError"; + projectID: string; + message: string; +}; +export type PtyNotFoundError = { + _tag: "PtyNotFoundError"; + ptyID: string; + message: string; +}; +export type PtyForbiddenError = { + _tag: "PtyForbiddenError"; + message: string; +}; +export type QuestionRequest = { + id: string; + sessionID: string; + /** + * Questions to ask + */ + questions: Array; + tool?: QuestionTool; +}; +export type QuestionNotFoundError = { + _tag: "QuestionNotFoundError"; + requestID: string; + message: string; +}; +export type PermissionRequest = { + id: string; + sessionID: string; + permission: string; + patterns: Array; + metadata: { + [key: string]: unknown; + }; + always: Array; + tool?: { + messageID: string; + callID: string; + }; +}; +export type PermissionNotFoundError = { + _tag: "PermissionNotFoundError"; + requestID: string; + message: string; +}; +export type ProviderAuthMethod = { + type: "oauth" | "api"; + label: string; + prompts?: Array<{ + type: "text"; + key: string; + message: string; + placeholder?: string; + when?: { + key: string; + op: "eq" | "neq"; + value: string; + }; + } | { + type: "select"; + key: string; + message: string; + options: Array<{ + label: string; + value: string; + hint?: string; + }>; + when?: { + key: string; + op: "eq" | "neq"; + value: string; + }; + }>; +}; +export type ProviderAuthAuthorization = { + url: string; + method: "auto" | "code"; + instructions: string; +}; +export type ProviderAuthError1 = { + name: "BadRequest" | "ProviderAuthOauthMissing" | "ProviderAuthOauthCodeMissing" | "ProviderAuthOauthCallbackFailed" | "ProviderAuthValidationFailed"; + data: { + providerID?: string; + field?: string; + message?: string; + kind?: string; + }; +}; +export type NotFoundError = { + name: "NotFoundError"; + data: { + message: string; + }; +}; +export type TextPartInput = { + id?: string; + type: "text"; + text: string; + synthetic?: boolean; + ignored?: boolean; + time?: { + start: number; + end?: number; + }; + metadata?: { + [key: string]: unknown; + }; +}; +export type FilePartInput = { + id?: string; + type: "file"; + mime: string; + filename?: string; + url: string; + source?: FilePartSource; +}; +export type AgentPartInput = { + id?: string; + type: "agent"; + name: string; + source?: { + value: string; + start: number; + end: number; + }; +}; +export type SubtaskPartInput = { + id?: string; + type: "subtask"; + prompt: string; + description: string; + agent: string; + model?: { + providerID: string; + modelID: string; + }; + command?: string; +}; +export type SessionBusyError = { + _tag: "SessionBusyError"; + sessionID: string; + message: string; +}; +export type EventTuiPromptAppend = { + type: "tui.prompt.append"; + properties: { + text: string; + }; +}; +export type EventTuiCommandExecute = { + type: "tui.command.execute"; + properties: { + command: "session.list" | "session.new" | "session.share" | "session.interrupt" | "session.compact" | "session.page.up" | "session.page.down" | "session.line.up" | "session.line.down" | "session.half.page.up" | "session.half.page.down" | "session.first" | "session.last" | "prompt.clear" | "prompt.submit" | "agent.cycle" | string; + }; +}; +export type EventTuiToastShow = { + type: "tui.toast.show"; + properties: { + title?: string; + message: string; + variant: "info" | "success" | "warning" | "error"; + duration?: number; + }; +}; +export type EventTuiSessionSelect = { + type: "tui.session.select"; + properties: { + /** + * Session ID to navigate to + */ + sessionID: string; + }; +}; +export type Workspace = { + id: string; + type: string; + name: string; + branch?: string | null; + directory?: string | null; + extra?: unknown | null; + projectID: string; + timeUsed: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN"; +}; +export type WorkspaceCreateError = { + name: "WorkspaceCreateError"; + data: { + message: string; + }; +}; +export type WorkspaceWarpError = { + name: "WorkspaceWarpError"; + data: { + message: string; + }; +}; +export type UnauthorizedError = { + _tag: "UnauthorizedError"; + message: string; +}; +export type SessionsResponse = { + data: Array; + cursor: { + previous?: string; + next?: string; + }; +}; +export type InvalidCursorError = { + _tag: "InvalidCursorError"; + message: string; +}; +export type SessionActive = { + type: "running"; +}; +export type SessionNotFoundError = { + _tag: "SessionNotFoundError"; + sessionID: string; + message: string; +}; +export type PromptInput = { + text: string; + files?: Array; + agents?: Array; +}; +export type ConflictError = { + _tag: "ConflictError"; + message: string; + resource?: string; +}; +export type ServiceUnavailableError = { + _tag: "ServiceUnavailableError"; + message: string; + service?: string; +}; +export type MessageNotFoundError = { + _tag: "MessageNotFoundError"; + sessionID: string; + messageID: string; + message: string; +}; +export type UnknownError1 = { + _tag: "UnknownError"; + message: string; + ref?: string; +}; +export type SessionDurableEvent = SessionNextAgentSwitched | SessionNextModelSwitched | SessionNextMoved | SessionNextPrompted | SessionNextPromptAdmitted | SessionNextContextUpdated | SessionNextSynthetic | SessionNextShellStarted | SessionNextShellEnded | SessionNextStepStarted | SessionNextStepEnded | SessionNextStepFailed | SessionNextTextStarted | SessionNextTextEnded | SessionNextToolInputStarted | SessionNextToolInputEnded | SessionNextToolCalled | SessionNextToolProgress | SessionNextToolSuccess | SessionNextToolFailed | SessionNextReasoningStarted | SessionNextReasoningEnded | SessionNextRetried | SessionNextCompactionStarted | SessionNextCompactionEnded | SessionNextRevertStaged | SessionNextRevertCleared | SessionNextRevertCommitted; +export type SessionHistory = { + data: Array; + hasMore: boolean; +}; +export type SessionDurableEventStream = string; +export type SessionMessagesResponse = { + data: Array; + cursor: { + previous?: string; + next?: string; + }; +}; +export type ProviderNotFoundError = { + _tag: "ProviderNotFoundError"; + providerID: string; + message: string; +}; +export type OutputFormat1 = { + type: "text"; +} | { + type: "json_schema"; + schema: JsonSchema; + retryCount?: number; +}; +export type SessionStatus2 = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "session.status"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + sessionID: string; + status: SessionStatus; + }; +}; +export type QuestionReplied2 = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "question.replied"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + sessionID: string; + requestID: string; + answers: Array; + }; +}; +export type QuestionRejected2 = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "question.rejected"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + sessionID: string; + requestID: string; + }; +}; +export type V2Event = ModelsDevRefreshed | IntegrationUpdated | IntegrationConnectionUpdated | CatalogUpdated | SessionCreated | SessionUpdated | SessionDeleted | MessageUpdated | MessageRemoved | MessagePartUpdated | MessagePartRemoved | SessionNextAgentSwitched | SessionNextModelSwitched | SessionNextMoved | SessionNextPrompted | SessionNextPromptAdmitted | SessionNextContextUpdated | SessionNextSynthetic | SessionNextShellStarted | SessionNextShellEnded | SessionNextStepStarted | SessionNextStepEnded | SessionNextStepFailed | SessionNextTextStarted | SessionNextTextDelta | SessionNextTextEnded | SessionNextReasoningStarted | SessionNextReasoningDelta | SessionNextReasoningEnded | SessionNextToolInputStarted | SessionNextToolInputDelta | SessionNextToolInputEnded | SessionNextToolCalled | SessionNextToolProgress | SessionNextToolSuccess | SessionNextToolFailed | SessionNextRetried | SessionNextCompactionStarted | SessionNextCompactionDelta | SessionNextCompactionEnded | SessionNextRevertStaged | SessionNextRevertCleared | SessionNextRevertCommitted | MessagePartDelta | SessionDiff | SessionError | InstallationUpdated | InstallationUpdateAvailable | FileEdited | ReferenceUpdated | PermissionV2Asked | PermissionV2Replied | PluginAdded | ProjectDirectoriesUpdated | FileWatcherUpdated | PtyCreated | PtyUpdated | PtyExited | PtyDeleted | QuestionV2Asked | QuestionV2Replied | QuestionV2Rejected | TodoUpdated | LspUpdated | PermissionAsked | PermissionReplied | TuiPromptAppend | TuiCommandExecute | TuiToastShow | TuiSessionSelect | McpToolsChanged | McpBrowserOpenFailed | CommandExecuted | ProjectUpdated | SessionStatus2 | SessionIdle | QuestionAsked | QuestionReplied2 | QuestionRejected2 | SessionCompacted | VcsBranchUpdated | WorkspaceReady | WorkspaceFailed | WorkspaceStatus | WorktreeReady | WorktreeFailed | ServerConnected | GlobalDisposed; +export type V2EventStream = string; +export type ForbiddenError = { + _tag: "ForbiddenError"; + message: string; +}; +export type ProjectCopyError = { + name: "ProjectCopyError"; + data: { + message: string; + forceRequired?: boolean; + }; +}; +export type EffectHttpApiErrorForbidden = { + _tag: "Forbidden"; +}; +export type EventTuiPromptAppend2 = { + id: string; + type: "tui.prompt.append"; + properties: { + text: string; + }; +}; +export type EventTuiCommandExecute2 = { + id: string; + type: "tui.command.execute"; + properties: { + command: "session.list" | "session.new" | "session.share" | "session.interrupt" | "session.compact" | "session.page.up" | "session.page.down" | "session.line.up" | "session.line.down" | "session.half.page.up" | "session.half.page.down" | "session.first" | "session.last" | "prompt.clear" | "prompt.submit" | "agent.cycle" | string; + }; +}; +export type EventTuiToastShow2 = { + id: string; + type: "tui.toast.show"; + properties: { + title?: string; + message: string; + variant: "info" | "success" | "warning" | "error"; + duration?: number; + }; +}; +export type EventTuiSessionSelect2 = { + id: string; + type: "tui.session.select"; + properties: { + /** + * Session ID to navigate to + */ + sessionID: string; + }; +}; +export type CredentialValue = CredentialOAuth | CredentialKey; +export type IntegrationInputs = { + [key: string]: string; +}; +export type IntegrationMethod = IntegrationOAuthMethod | IntegrationKeyMethod | IntegrationEnvMethod; +export type IntegrationRef = { + id: string; + name: string; +}; +export type SkillV2Source = SkillV2DirectorySource | SkillV2UrlSource | SkillV2EmbeddedSource; +export type MoveSessionDestination = { + directory: string; +}; +export type ModelRef = { + id: string; + providerID: string; + variant?: string; +}; +export type LocationRef = { + directory: string; + workspaceID?: string; +}; +export type PromptSource = { + start: number; + end: number; + text: string; +}; +export type PromptFileAttachment = { + uri: string; + mime: string; + name?: string; + description?: string; + source?: PromptSource; +}; +export type PromptAgentAttachment = { + name: string; + source?: PromptSource; +}; +export type SessionErrorUnknown = { + type: "unknown"; + message: string; +}; +export type LlmProviderMetadata = { + [key: string]: { + [key: string]: unknown; + }; +}; +export type ToolTextContent = { + type: "text"; + text: string; +}; +export type ToolFileContent = { + type: "file"; + uri: string; + mime: string; + name?: string; +}; +export type LlmToolContent = ToolTextContent | ToolFileContent; +export type SessionNextRetryError = { + message: string; + statusCode?: number; + isRetryable: boolean; + responseHeaders?: { + [key: string]: string; + }; + responseBody?: string; + metadata?: { + [key: string]: string; + }; +}; +export type FileDiff = { + path: string; + status: "added" | "modified" | "deleted"; + additions: number; + deletions: number; + patch: string; +}; +export type RevertState = { + messageID: string; + partID?: string; + snapshot?: string; + diff?: string; + files?: Array; +}; +export type PermissionV2Source = { + type: "tool"; + messageID: string; + callID: string; +}; +export type PermissionV2Reply = "once" | "always" | "reject"; +export type QuestionV2Option = { + /** + * Display text (1-5 words, concise) + */ + label: string; + /** + * Explanation of choice + */ + description: string; +}; +export type QuestionV2Info = { + /** + * Complete question + */ + question: string; + /** + * Very short label (max 30 chars) + */ + header: string; + /** + * Available choices + */ + options: Array; + multiple?: boolean; + custom?: boolean; +}; +export type QuestionV2Tool = { + messageID: string; + callID: string; +}; +export type QuestionV2Answer = Array; +export type ProjectVcs = "git"; +export type ProjectIcon = { + url?: string; + override?: string; + color?: string; +}; +export type ProjectCommands = { + /** + * Startup script to run when creating a new workspace (worktree) + */ + start?: string; +}; +export type ProjectTime = { + created: number; + updated: number; + initialized?: number; +}; +export type EventServerInstanceDisposed = { + id: string; + type: "server.instance.disposed"; + properties: { + directory: string; + }; +}; +export type SyncEventSessionCreated = { + type: "sync"; + id: string; + syncEvent: { + type: "session.created.1"; + id: string; + seq: number; + aggregateID: string; + data: { + sessionID: string; + info: Session; + }; + }; +}; +export type SyncEventSessionUpdated = { + type: "sync"; + id: string; + syncEvent: { + type: "session.updated.1"; + id: string; + seq: number; + aggregateID: string; + data: { + sessionID: string; + info: Session; + }; + }; +}; +export type SyncEventSessionDeleted = { + type: "sync"; + id: string; + syncEvent: { + type: "session.deleted.1"; + id: string; + seq: number; + aggregateID: string; + data: { + sessionID: string; + info: Session; + }; + }; +}; +export type SyncEventMessageUpdated = { + type: "sync"; + id: string; + syncEvent: { + type: "message.updated.1"; + id: string; + seq: number; + aggregateID: string; + data: { + sessionID: string; + info: Message; + }; + }; +}; +export type SyncEventMessageRemoved = { + type: "sync"; + id: string; + syncEvent: { + type: "message.removed.1"; + id: string; + seq: number; + aggregateID: string; + data: { + sessionID: string; + messageID: string; + }; + }; +}; +export type SyncEventMessagePartUpdated = { + type: "sync"; + id: string; + syncEvent: { + type: "message.part.updated.1"; + id: string; + seq: number; + aggregateID: string; + data: { + sessionID: string; + part: Part; + time: number; + }; + }; +}; +export type SyncEventMessagePartRemoved = { + type: "sync"; + id: string; + syncEvent: { + type: "message.part.removed.1"; + id: string; + seq: number; + aggregateID: string; + data: { + sessionID: string; + messageID: string; + partID: string; + }; + }; +}; +export type SyncEventSessionNextAgentSwitched = { + type: "sync"; + id: string; + syncEvent: { + type: "session.next.agent.switched.1"; + id: string; + seq: number; + aggregateID: string; + data: { + timestamp: number; + sessionID: string; + messageID: string; + agent: string; + }; + }; +}; +export type SyncEventSessionNextModelSwitched = { + type: "sync"; + id: string; + syncEvent: { + type: "session.next.model.switched.1"; + id: string; + seq: number; + aggregateID: string; + data: { + timestamp: number; + sessionID: string; + messageID: string; + model: ModelRef; + }; + }; +}; +export type SyncEventSessionNextMoved = { + type: "sync"; + id: string; + syncEvent: { + type: "session.next.moved.1"; + id: string; + seq: number; + aggregateID: string; + data: { + timestamp: number; + sessionID: string; + location: LocationRef; + subdirectory?: string; + }; + }; +}; +export type SyncEventSessionNextPrompted = { + type: "sync"; + id: string; + syncEvent: { + type: "session.next.prompted.1"; + id: string; + seq: number; + aggregateID: string; + data: { + timestamp: number; + sessionID: string; + messageID: string; + prompt: Prompt; + delivery: "steer" | "queue"; + }; + }; +}; +export type SyncEventSessionNextPromptAdmitted = { + type: "sync"; + id: string; + syncEvent: { + type: "session.next.prompt.admitted.1"; + id: string; + seq: number; + aggregateID: string; + data: { + timestamp: number; + sessionID: string; + messageID: string; + prompt: Prompt; + delivery: "steer" | "queue"; + }; + }; +}; +export type SyncEventSessionNextContextUpdated = { + type: "sync"; + id: string; + syncEvent: { + type: "session.next.context.updated.1"; + id: string; + seq: number; + aggregateID: string; + data: { + timestamp: number; + sessionID: string; + messageID: string; + text: string; + }; + }; +}; +export type SyncEventSessionNextSynthetic = { + type: "sync"; + id: string; + syncEvent: { + type: "session.next.synthetic.1"; + id: string; + seq: number; + aggregateID: string; + data: { + timestamp: number; + sessionID: string; + messageID: string; + text: string; + }; + }; +}; +export type SyncEventSessionNextShellStarted = { + type: "sync"; + id: string; + syncEvent: { + type: "session.next.shell.started.1"; + id: string; + seq: number; + aggregateID: string; + data: { + timestamp: number; + sessionID: string; + messageID: string; + callID: string; + command: string; + }; + }; +}; +export type SyncEventSessionNextShellEnded = { + type: "sync"; + id: string; + syncEvent: { + type: "session.next.shell.ended.1"; + id: string; + seq: number; + aggregateID: string; + data: { + timestamp: number; + sessionID: string; + callID: string; + output: string; + }; + }; +}; +export type SyncEventSessionNextStepStarted = { + type: "sync"; + id: string; + syncEvent: { + type: "session.next.step.started.1"; + id: string; + seq: number; + aggregateID: string; + data: { + timestamp: number; + sessionID: string; + assistantMessageID: string; + agent: string; + model: ModelRef; + snapshot?: string; + }; + }; +}; +export type SyncEventSessionNextStepEnded = { + type: "sync"; + id: string; + syncEvent: { + type: "session.next.step.ended.2"; + id: string; + seq: number; + aggregateID: string; + data: { + timestamp: number; + sessionID: string; + assistantMessageID: string; + finish: string; + cost: number; + tokens: { + input: number; + output: number; + reasoning: number; + cache: { + read: number; + write: number; + }; + }; + snapshot?: string; + files?: Array; + }; + }; +}; +export type SyncEventSessionNextStepFailed = { + type: "sync"; + id: string; + syncEvent: { + type: "session.next.step.failed.2"; + id: string; + seq: number; + aggregateID: string; + data: { + timestamp: number; + sessionID: string; + assistantMessageID: string; + error: SessionErrorUnknown; + }; + }; +}; +export type SyncEventSessionNextTextStarted = { + type: "sync"; + id: string; + syncEvent: { + type: "session.next.text.started.1"; + id: string; + seq: number; + aggregateID: string; + data: { + timestamp: number; + sessionID: string; + assistantMessageID: string; + textID: string; + }; + }; +}; +export type SyncEventSessionNextTextEnded = { + type: "sync"; + id: string; + syncEvent: { + type: "session.next.text.ended.1"; + id: string; + seq: number; + aggregateID: string; + data: { + timestamp: number; + sessionID: string; + assistantMessageID: string; + textID: string; + text: string; + }; + }; +}; +export type SyncEventSessionNextReasoningStarted = { + type: "sync"; + id: string; + syncEvent: { + type: "session.next.reasoning.started.1"; + id: string; + seq: number; + aggregateID: string; + data: { + timestamp: number; + sessionID: string; + assistantMessageID: string; + reasoningID: string; + providerMetadata?: LlmProviderMetadata; + }; + }; +}; +export type SyncEventSessionNextReasoningEnded = { + type: "sync"; + id: string; + syncEvent: { + type: "session.next.reasoning.ended.1"; + id: string; + seq: number; + aggregateID: string; + data: { + timestamp: number; + sessionID: string; + assistantMessageID: string; + reasoningID: string; + text: string; + providerMetadata?: LlmProviderMetadata; + }; + }; +}; +export type SyncEventSessionNextToolInputStarted = { + type: "sync"; + id: string; + syncEvent: { + type: "session.next.tool.input.started.1"; + id: string; + seq: number; + aggregateID: string; + data: { + timestamp: number; + sessionID: string; + assistantMessageID: string; + callID: string; + name: string; + }; + }; +}; +export type SyncEventSessionNextToolInputEnded = { + type: "sync"; + id: string; + syncEvent: { + type: "session.next.tool.input.ended.1"; + id: string; + seq: number; + aggregateID: string; + data: { + timestamp: number; + sessionID: string; + assistantMessageID: string; + callID: string; + text: string; + }; + }; +}; +export type SyncEventSessionNextToolCalled = { + type: "sync"; + id: string; + syncEvent: { + type: "session.next.tool.called.1"; + id: string; + seq: number; + aggregateID: string; + data: { + timestamp: number; + sessionID: string; + assistantMessageID: string; + callID: string; + tool: string; + input: { + [key: string]: unknown; + }; + provider: { + executed: boolean; + metadata?: LlmProviderMetadata; + }; + }; + }; +}; +export type SyncEventSessionNextToolProgress = { + type: "sync"; + id: string; + syncEvent: { + type: "session.next.tool.progress.1"; + id: string; + seq: number; + aggregateID: string; + data: { + timestamp: number; + sessionID: string; + assistantMessageID: string; + callID: string; + structured: { + [key: string]: unknown; + }; + content: Array; + }; + }; +}; +export type SyncEventSessionNextToolSuccess = { + type: "sync"; + id: string; + syncEvent: { + type: "session.next.tool.success.1"; + id: string; + seq: number; + aggregateID: string; + data: { + timestamp: number; + sessionID: string; + assistantMessageID: string; + callID: string; + structured: { + [key: string]: unknown; + }; + content: Array; + outputPaths?: Array; + result?: unknown; + provider: { + executed: boolean; + metadata?: LlmProviderMetadata; + }; + }; + }; +}; +export type SyncEventSessionNextToolFailed = { + type: "sync"; + id: string; + syncEvent: { + type: "session.next.tool.failed.1"; + id: string; + seq: number; + aggregateID: string; + data: { + timestamp: number; + sessionID: string; + assistantMessageID: string; + callID: string; + error: SessionErrorUnknown; + result?: unknown; + provider: { + executed: boolean; + metadata?: LlmProviderMetadata; + }; + }; + }; +}; +export type SyncEventSessionNextRetried = { + type: "sync"; + id: string; + syncEvent: { + type: "session.next.retried.1"; + id: string; + seq: number; + aggregateID: string; + data: { + timestamp: number; + sessionID: string; + attempt: number; + error: SessionNextRetryError; + }; + }; +}; +export type SyncEventSessionNextCompactionStarted = { + type: "sync"; + id: string; + syncEvent: { + type: "session.next.compaction.started.1"; + id: string; + seq: number; + aggregateID: string; + data: { + timestamp: number; + sessionID: string; + messageID: string; + reason: "auto" | "manual"; + }; + }; +}; +export type SyncEventSessionNextCompactionEnded = { + type: "sync"; + id: string; + syncEvent: { + type: "session.next.compaction.ended.1"; + id: string; + seq: number; + aggregateID: string; + data: { + timestamp: number; + sessionID: string; + messageID: string; + reason: "auto" | "manual"; + text: string; + recent: string; + }; + }; +}; +export type SyncEventSessionNextRevertStaged = { + type: "sync"; + id: string; + syncEvent: { + type: "session.next.revert.staged.1"; + id: string; + seq: number; + aggregateID: string; + data: { + timestamp: number; + sessionID: string; + revert: RevertState; + }; + }; +}; +export type SyncEventSessionNextRevertCleared = { + type: "sync"; + id: string; + syncEvent: { + type: "session.next.revert.cleared.1"; + id: string; + seq: number; + aggregateID: string; + data: { + timestamp: number; + sessionID: string; + }; + }; +}; +export type SyncEventSessionNextRevertCommitted = { + type: "sync"; + id: string; + syncEvent: { + type: "session.next.revert.committed.1"; + id: string; + seq: number; + aggregateID: string; + data: { + timestamp: number; + sessionID: string; + messageID: string; + }; + }; +}; +export type ConfigV2ReferenceGit = { + repository: string; + branch?: string; + description?: string; + hidden?: boolean; +}; +export type ConfigV2ReferenceLocal = { + path: string; + description?: string; + hidden?: boolean; +}; +export type PolicyEffect = "allow" | "deny"; +export type ConfigV2ExperimentalPolicy = { + action: "provider.use"; + effect: PolicyEffect; + resource: string; +}; +export type ProjectDirectories = Array<{ + directory: string; + strategy?: string; +}>; +export type PtyTicketConnectToken = { + ticket: string; + expires_in: number; +}; +export type WorkspaceEventConnectionStatus = { + workspaceID: string; + status: "connected" | "connecting" | "disconnected" | "error"; +}; +export type LocationInfo = { + directory: string; + workspaceID?: string; + project: { + id: string; + directory: string; + }; +}; +export type ProviderRequest = { + headers: { + [key: string]: string; + }; + body: { + [key: string]: unknown; + }; +}; +export type AgentColor = string | "primary" | "secondary" | "accent" | "success" | "warning" | "error" | "info"; +export type PermissionV2Effect = "allow" | "deny" | "ask"; +export type PermissionV2Rule = { + action: string; + resource: string; + effect: PermissionV2Effect; +}; +export type PermissionV2Ruleset = Array; +export type AgentV2Info = { + id: string; + model?: ModelRef; + request: ProviderRequest; + system?: string; + description?: string; + mode: "subagent" | "primary" | "all"; + hidden: boolean; + color?: AgentColor; + steps?: number; + permissions: PermissionV2Ruleset; +}; +export type SessionV2Info = { + id: string; + parentID?: string; + projectID: string; + agent?: string; + model?: ModelRef; + cost: number; + tokens: { + input: number; + output: number; + reasoning: number; + cache: { + read: number; + write: number; + }; + }; + time: { + created: number; + updated: number; + archived?: number; + }; + title: string; + location: LocationRef; + subpath?: string; + revert?: RevertState; +}; +export type PromptInputFileAttachment = { + uri: string; + name?: string; + description?: string; + source?: PromptSource; +}; +export type SessionInputAdmitted = { + admittedSeq: number; + id: string; + sessionID: string; + prompt: Prompt; + delivery: "steer" | "queue"; + timeCreated: number; + promotedSeq?: number; +}; +export type SessionMessageAgentSwitched = { + id: string; + metadata?: { + [key: string]: unknown; + }; + time: { + created: number; + }; + type: "agent-switched"; + agent: string; +}; +export type SessionMessageModelSwitched = { + id: string; + metadata?: { + [key: string]: unknown; + }; + time: { + created: number; + }; + type: "model-switched"; + model: ModelRef; +}; +export type SessionMessageUser = { + id: string; + metadata?: { + [key: string]: unknown; + }; + time: { + created: number; + }; + text: string; + files?: Array; + agents?: Array; + type: "user"; +}; +export type SessionMessageSynthetic = { + id: string; + metadata?: { + [key: string]: unknown; + }; + time: { + created: number; + }; + sessionID: string; + text: string; + type: "synthetic"; +}; +export type SessionMessageSystem = { + id: string; + metadata?: { + [key: string]: unknown; + }; + time: { + created: number; + }; + type: "system"; + text: string; +}; +export type SessionMessageShell = { + id: string; + metadata?: { + [key: string]: unknown; + }; + time: { + created: number; + completed?: number; + }; + type: "shell"; + callID: string; + command: string; + output: string; +}; +export type SessionMessageAssistantText = { + type: "text"; + id: string; + text: string; +}; +export type SessionMessageAssistantReasoning = { + type: "reasoning"; + id: string; + text: string; + providerMetadata?: LlmProviderMetadata; + time?: { + created: number; + completed?: number; + }; +}; +export type SessionMessageToolStatePending = { + status: "pending"; + input: string; +}; +export type SessionMessageToolStateRunning = { + status: "running"; + input: { + [key: string]: unknown; + }; + structured: { + [key: string]: unknown; + }; + content: Array; +}; +export type SessionMessageToolStateCompleted = { + status: "completed"; + input: { + [key: string]: unknown; + }; + attachments?: Array; + content: Array; + outputPaths?: Array; + structured: { + [key: string]: unknown; + }; + result?: unknown; +}; +export type SessionMessageToolStateError = { + status: "error"; + input: { + [key: string]: unknown; + }; + content: Array; + structured: { + [key: string]: unknown; + }; + error: SessionErrorUnknown; + result?: unknown; +}; +export type SessionMessageAssistantTool = { + type: "tool"; + id: string; + name: string; + provider?: { + executed: boolean; + metadata?: LlmProviderMetadata; + resultMetadata?: LlmProviderMetadata; + }; + state: SessionMessageToolStatePending | SessionMessageToolStateRunning | SessionMessageToolStateCompleted | SessionMessageToolStateError; + time: { + created: number; + ran?: number; + completed?: number; + pruned?: number; + }; +}; +export type SessionMessageAssistant = { + id: string; + metadata?: { + [key: string]: unknown; + }; + time: { + created: number; + completed?: number; + }; + type: "assistant"; + agent: string; + model: ModelRef; + content: Array; + snapshot?: { + start?: string; + end?: string; + files?: Array; + }; + finish?: string; + cost?: number; + tokens?: { + input: number; + output: number; + reasoning: number; + cache: { + read: number; + write: number; + }; + }; + error?: SessionErrorUnknown; +}; +export type SessionMessageCompaction = { + type: "compaction"; + reason: "auto" | "manual"; + summary: string; + recent: string; + id: string; + metadata?: { + [key: string]: unknown; + }; + time: { + created: number; + }; +}; +export type SessionMessage = SessionMessageAgentSwitched | SessionMessageModelSwitched | SessionMessageUser | SessionMessageSynthetic | SessionMessageSystem | SessionMessageShell | SessionMessageAssistant | SessionMessageCompaction; +export type SessionNextAgentSwitched = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "session.next.agent.switched"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + timestamp: number; + sessionID: string; + messageID: string; + agent: string; + }; +}; +export type SessionNextModelSwitched = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "session.next.model.switched"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + timestamp: number; + sessionID: string; + messageID: string; + model: ModelRef; + }; +}; +export type SessionNextMoved = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "session.next.moved"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + timestamp: number; + sessionID: string; + location: LocationRef; + subdirectory?: string; + }; +}; +export type SessionNextPrompted = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "session.next.prompted"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + timestamp: number; + sessionID: string; + messageID: string; + prompt: Prompt; + delivery: "steer" | "queue"; + }; +}; +export type SessionNextPromptAdmitted = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "session.next.prompt.admitted"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + timestamp: number; + sessionID: string; + messageID: string; + prompt: Prompt; + delivery: "steer" | "queue"; + }; +}; +export type SessionNextContextUpdated = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "session.next.context.updated"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + timestamp: number; + sessionID: string; + messageID: string; + text: string; + }; +}; +export type SessionNextSynthetic = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "session.next.synthetic"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + timestamp: number; + sessionID: string; + messageID: string; + text: string; + }; +}; +export type SessionNextShellStarted = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "session.next.shell.started"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + timestamp: number; + sessionID: string; + messageID: string; + callID: string; + command: string; + }; +}; +export type SessionNextShellEnded = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "session.next.shell.ended"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + timestamp: number; + sessionID: string; + callID: string; + output: string; + }; +}; +export type SessionNextStepStarted = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "session.next.step.started"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + timestamp: number; + sessionID: string; + assistantMessageID: string; + agent: string; + model: ModelRef; + snapshot?: string; + }; +}; +export type SessionNextStepEnded = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "session.next.step.ended"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + timestamp: number; + sessionID: string; + assistantMessageID: string; + finish: string; + cost: number; + tokens: { + input: number; + output: number; + reasoning: number; + cache: { + read: number; + write: number; + }; + }; + snapshot?: string; + files?: Array; + }; +}; +export type SessionNextStepFailed = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "session.next.step.failed"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + timestamp: number; + sessionID: string; + assistantMessageID: string; + error: SessionErrorUnknown; + }; +}; +export type SessionNextTextStarted = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "session.next.text.started"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + timestamp: number; + sessionID: string; + assistantMessageID: string; + textID: string; + }; +}; +export type SessionNextTextEnded = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "session.next.text.ended"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + timestamp: number; + sessionID: string; + assistantMessageID: string; + textID: string; + text: string; + }; +}; +export type SessionNextToolInputStarted = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "session.next.tool.input.started"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + timestamp: number; + sessionID: string; + assistantMessageID: string; + callID: string; + name: string; + }; +}; +export type SessionNextToolInputEnded = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "session.next.tool.input.ended"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + timestamp: number; + sessionID: string; + assistantMessageID: string; + callID: string; + text: string; + }; +}; +export type SessionNextToolCalled = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "session.next.tool.called"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + timestamp: number; + sessionID: string; + assistantMessageID: string; + callID: string; + tool: string; + input: { + [key: string]: unknown; + }; + provider: { + executed: boolean; + metadata?: LlmProviderMetadata; + }; + }; +}; +export type SessionNextToolProgress = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "session.next.tool.progress"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + timestamp: number; + sessionID: string; + assistantMessageID: string; + callID: string; + structured: { + [key: string]: unknown; + }; + content: Array; + }; +}; +export type SessionNextToolSuccess = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "session.next.tool.success"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + timestamp: number; + sessionID: string; + assistantMessageID: string; + callID: string; + structured: { + [key: string]: unknown; + }; + content: Array; + outputPaths?: Array; + result?: unknown; + provider: { + executed: boolean; + metadata?: LlmProviderMetadata; + }; + }; +}; +export type SessionNextToolFailed = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "session.next.tool.failed"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + timestamp: number; + sessionID: string; + assistantMessageID: string; + callID: string; + error: SessionErrorUnknown; + result?: unknown; + provider: { + executed: boolean; + metadata?: LlmProviderMetadata; + }; + }; +}; +export type SessionNextReasoningStarted = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "session.next.reasoning.started"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + timestamp: number; + sessionID: string; + assistantMessageID: string; + reasoningID: string; + providerMetadata?: LlmProviderMetadata; + }; +}; +export type SessionNextReasoningEnded = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "session.next.reasoning.ended"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + timestamp: number; + sessionID: string; + assistantMessageID: string; + reasoningID: string; + text: string; + providerMetadata?: LlmProviderMetadata; + }; +}; +export type SessionNextRetried = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "session.next.retried"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + timestamp: number; + sessionID: string; + attempt: number; + error: SessionNextRetryError; + }; +}; +export type SessionNextCompactionStarted = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "session.next.compaction.started"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + timestamp: number; + sessionID: string; + messageID: string; + reason: "auto" | "manual"; + }; +}; +export type SessionNextCompactionEnded = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "session.next.compaction.ended"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + timestamp: number; + sessionID: string; + messageID: string; + reason: "auto" | "manual"; + text: string; + recent: string; + }; +}; +export type SessionNextRevertStaged = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "session.next.revert.staged"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + timestamp: number; + sessionID: string; + revert: RevertState; + }; +}; +export type SessionNextRevertCleared = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "session.next.revert.cleared"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + timestamp: number; + sessionID: string; + }; +}; +export type SessionNextRevertCommitted = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "session.next.revert.committed"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + timestamp: number; + sessionID: string; + messageID: string; + }; +}; +export type ModelApi = { + id: string; + type: "aisdk"; + package: string; + url?: string; + settings?: { + [key: string]: unknown; + }; +} | { + id: string; + type: "native"; + url?: string; + settings: { + [key: string]: unknown; + }; +}; +export type ModelCapabilities = { + tools: boolean; + input: Array; + output: Array; +}; +export type ModelCost = { + tier?: { + type: "context"; + size: number; + }; + input: number; + output: number; + cache: { + read: number; + write: number; + }; +}; +export type ModelV2Info = { + id: string; + providerID: string; + family?: string; + name: string; + api: ModelApi; + capabilities: ModelCapabilities; + request: { + headers: { + [key: string]: string; + }; + body: { + [key: string]: unknown; + }; + variant?: string; + }; + variants: Array<{ + id: string; + headers: { + [key: string]: string; + }; + body: { + [key: string]: unknown; + }; + }>; + time: { + released: number; + }; + cost: Array; + status: "alpha" | "beta" | "deprecated" | "active"; + enabled: boolean; + limit: { + context: number; + input?: number; + output: number; + }; +}; +export type ProviderAisdk = { + type: "aisdk"; + package: string; + url?: string; + settings?: { + [key: string]: unknown; + }; +}; +export type ProviderNative = { + type: "native"; + url?: string; + settings: { + [key: string]: unknown; + }; +}; +export type ProviderApi = ProviderAisdk | ProviderNative; +export type ProviderV2Info = { + id: string; + integrationID?: string; + name: string; + disabled?: boolean; + api: ProviderApi; + request: ProviderRequest; +}; +export type IntegrationWhen = { + key: string; + op: "eq" | "neq"; + value: string; +}; +export type IntegrationTextPrompt = { + type: "text"; + key: string; + message: string; + placeholder?: string; + when?: IntegrationWhen; +}; +export type IntegrationSelectPrompt = { + type: "select"; + key: string; + message: string; + options: Array<{ + label: string; + value: string; + hint?: string; + }>; + when?: IntegrationWhen; +}; +export type IntegrationOAuthMethod = { + id: string; + type: "oauth"; + label: string; + prompts?: Array; +}; +export type IntegrationKeyMethod = { + type: "key"; + label?: string; +}; +export type IntegrationEnvMethod = { + type: "env"; + names: Array; +}; +export type ConnectionCredentialInfo = { + type: "credential"; + id: string; + label: string; +}; +export type ConnectionEnvInfo = { + type: "env"; + name: string; +}; +export type ConnectionInfo = ConnectionCredentialInfo | ConnectionEnvInfo; +export type IntegrationInfo = { + id: string; + name: string; + methods: Array; + connections: Array; +}; +export type IntegrationAttempt = { + attemptID: string; + url: string; + instructions: string; + mode: "auto" | "code"; + time: { + created: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN"; + expires: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN"; + }; +}; +export type IntegrationAttemptStatus = { + status: "pending"; + time: { + created: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN"; + expires: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN"; + }; +} | { + status: "complete"; + time: { + created: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN"; + expires: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN"; + }; +} | { + status: "failed"; + message: string; + time: { + created: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN"; + expires: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN"; + }; +} | { + status: "expired"; + time: { + created: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN"; + expires: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN"; + }; +}; +export type PermissionV2Request = { + id: string; + sessionID: string; + action: string; + resources: Array; + save?: Array; + metadata?: { + [key: string]: unknown; + }; + source?: PermissionV2Source; +}; +export type PermissionSavedInfo = { + id: string; + projectID: string; + action: string; + resource: string; +}; +export type FileSystemEntry = { + path: string; + type: "file" | "directory"; +}; +export type CommandV2Info = { + name: string; + template: string; + description?: string; + agent?: string; + model?: ModelRef; + subtask?: boolean; +}; +export type SkillV2Info = { + name: string; + description?: string; + slash?: boolean; + location: string; + content: string; +}; +export type ModelsDevRefreshed = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "models-dev.refreshed"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + [key: string]: unknown; + }; +}; +export type IntegrationUpdated = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "integration.updated"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + [key: string]: unknown; + }; +}; +export type IntegrationConnectionUpdated = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "integration.connection.updated"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + integrationID: string; + }; +}; +export type CatalogUpdated = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "catalog.updated"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + [key: string]: unknown; + }; +}; +export type SessionCreated = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "session.created"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + sessionID: string; + info: Session; + }; +}; +export type SessionUpdated = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "session.updated"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + sessionID: string; + info: Session; + }; +}; +export type SessionDeleted = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "session.deleted"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + sessionID: string; + info: Session; + }; +}; +export type MessageUpdated = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "message.updated"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + sessionID: string; + info: Message; + }; +}; +export type MessageRemoved = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "message.removed"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + sessionID: string; + messageID: string; + }; +}; +export type MessagePartUpdated = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "message.part.updated"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + sessionID: string; + part: Part; + time: number; + }; +}; +export type MessagePartRemoved = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "message.part.removed"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + sessionID: string; + messageID: string; + partID: string; + }; +}; +export type SessionNextTextDelta = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "session.next.text.delta"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + timestamp: number; + sessionID: string; + assistantMessageID: string; + textID: string; + delta: string; + }; +}; +export type SessionNextReasoningDelta = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "session.next.reasoning.delta"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + timestamp: number; + sessionID: string; + assistantMessageID: string; + reasoningID: string; + delta: string; + }; +}; +export type SessionNextToolInputDelta = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "session.next.tool.input.delta"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + timestamp: number; + sessionID: string; + assistantMessageID: string; + callID: string; + delta: string; + }; +}; +export type SessionNextCompactionDelta = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "session.next.compaction.delta"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + timestamp: number; + sessionID: string; + messageID: string; + text: string; + }; +}; +export type MessagePartDelta = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "message.part.delta"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + sessionID: string; + messageID: string; + partID: string; + field: string; + delta: string; + }; +}; +export type SessionDiff = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "session.diff"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + sessionID: string; + diff: Array; + }; +}; +export type SessionError = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "session.error"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + sessionID?: string; + error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | StructuredOutputError | ContextOverflowError | ContentFilterError | ApiError; + }; +}; +export type InstallationUpdated = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "installation.updated"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + version: string; + }; +}; +export type InstallationUpdateAvailable = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "installation.update-available"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + version: string; + }; +}; +export type FileEdited = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "file.edited"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + file: string; + }; +}; +export type ReferenceUpdated = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "reference.updated"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + [key: string]: unknown; + }; +}; +export type PermissionV2Asked = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "permission.v2.asked"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + id: string; + sessionID: string; + action: string; + resources: Array; + save?: Array; + metadata?: { + [key: string]: unknown; + }; + source?: PermissionV2Source; + }; +}; +export type PermissionV2Replied = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "permission.v2.replied"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + sessionID: string; + requestID: string; + reply: PermissionV2Reply; + }; +}; +export type PluginAdded = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "plugin.added"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + id: string; + }; +}; +export type ProjectDirectoriesUpdated = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "project.directories.updated"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + projectID: string; + }; +}; +export type FileWatcherUpdated = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "file.watcher.updated"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + file: string; + event: "add" | "change" | "unlink"; + }; +}; +export type PtyCreated = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "pty.created"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + info: Pty; + }; +}; +export type PtyUpdated = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "pty.updated"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + info: Pty; + }; +}; +export type PtyExited = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "pty.exited"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + id: string; + exitCode: number; + }; +}; +export type PtyDeleted = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "pty.deleted"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + id: string; + }; +}; +export type QuestionV2Asked = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "question.v2.asked"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + id: string; + sessionID: string; + /** + * Questions to ask + */ + questions: Array; + tool?: QuestionV2Tool; + }; +}; +export type QuestionV2Replied = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "question.v2.replied"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + sessionID: string; + requestID: string; + answers: Array; + }; +}; +export type QuestionV2Rejected = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "question.v2.rejected"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + sessionID: string; + requestID: string; + }; +}; +export type TodoUpdated = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "todo.updated"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + sessionID: string; + todos: Array; + }; +}; +export type LspUpdated = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "lsp.updated"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + [key: string]: unknown; + }; +}; +export type PermissionAsked = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "permission.asked"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + id: string; + sessionID: string; + permission: string; + patterns: Array; + metadata: { + [key: string]: unknown; + }; + always: Array; + tool?: { + messageID: string; + callID: string; + }; + }; +}; +export type PermissionReplied = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "permission.replied"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + sessionID: string; + requestID: string; + reply: "once" | "always" | "reject"; + }; +}; +export type TuiPromptAppend = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "tui.prompt.append"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + text: string; + }; +}; +export type TuiCommandExecute = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "tui.command.execute"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + command: "session.list" | "session.new" | "session.share" | "session.interrupt" | "session.compact" | "session.page.up" | "session.page.down" | "session.line.up" | "session.line.down" | "session.half.page.up" | "session.half.page.down" | "session.first" | "session.last" | "prompt.clear" | "prompt.submit" | "agent.cycle" | string; + }; +}; +export type TuiToastShow = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "tui.toast.show"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + title?: string; + message: string; + variant: "info" | "success" | "warning" | "error"; + duration?: number; + }; +}; +export type TuiSessionSelect = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "tui.session.select"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + /** + * Session ID to navigate to + */ + sessionID: string; + }; +}; +export type McpToolsChanged = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "mcp.tools.changed"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + server: string; + }; +}; +export type McpBrowserOpenFailed = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "mcp.browser.open.failed"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + mcpName: string; + url: string; + }; +}; +export type CommandExecuted = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "command.executed"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + name: string; + sessionID: string; + arguments: string; + messageID: string; + }; +}; +export type ProjectUpdated = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "project.updated"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + id: string; + worktree: string; + vcs?: ProjectVcs; + name?: string; + icon?: ProjectIcon; + commands?: ProjectCommands; + time: ProjectTime; + sandboxes: Array; + }; +}; +export type SessionIdle = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "session.idle"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + sessionID: string; + }; +}; +export type QuestionAsked = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "question.asked"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + id: string; + sessionID: string; + /** + * Questions to ask + */ + questions: Array; + tool?: QuestionTool; + }; +}; +export type SessionCompacted = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "session.compacted"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + sessionID: string; + }; +}; +export type VcsBranchUpdated = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "vcs.branch.updated"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + branch?: string; + }; +}; +export type WorkspaceReady = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "workspace.ready"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + name: string; + }; +}; +export type WorkspaceFailed = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "workspace.failed"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + message: string; + }; +}; +export type WorkspaceStatus = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "workspace.status"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + workspaceID: string; + status: "connected" | "connecting" | "disconnected" | "error"; + }; +}; +export type WorktreeReady = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "worktree.ready"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + name: string; + branch?: string; + }; +}; +export type WorktreeFailed = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "worktree.failed"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + message: string; + }; +}; +export type ServerConnected = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "server.connected"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + [key: string]: unknown; + }; +}; +export type GlobalDisposed = { + id: string; + metadata?: { + [key: string]: unknown; + }; + type: "global.disposed"; + durable?: { + aggregateID: string; + seq: number; + version: number; + }; + location?: LocationRef; + data: { + [key: string]: unknown; + }; +}; +export type QuestionV2Request = { + id: string; + sessionID: string; + /** + * Questions to ask + */ + questions: Array; + tool?: QuestionV2Tool; +}; +export type QuestionV2Reply = { + /** + * User answers in order of questions (each answer is an array of selected labels) + */ + answers: Array; +}; +export type ReferenceLocalSource = { + type: "local"; + path: string; + description?: string; + hidden?: boolean; +}; +export type ReferenceGitSource = { + type: "git"; + repository: string; + branch?: string; + description?: string; + hidden?: boolean; +}; +export type ReferenceSource = ReferenceLocalSource | ReferenceGitSource; +export type ReferenceInfo = { + name: string; + path: string; + description?: string; + hidden?: boolean; + source: ReferenceSource; +}; +export type ProjectCopyCopy = { + directory: string; +}; +export type EventModelsDevRefreshed = { + id: string; + type: "models-dev.refreshed"; + properties: { + [key: string]: unknown; + }; +}; +export type EventIntegrationUpdated = { + id: string; + type: "integration.updated"; + properties: { + [key: string]: unknown; + }; +}; +export type EventIntegrationConnectionUpdated = { + id: string; + type: "integration.connection.updated"; + properties: { + integrationID: string; + }; +}; +export type EventCatalogUpdated = { + id: string; + type: "catalog.updated"; + properties: { + [key: string]: unknown; + }; +}; +export type EventSessionCreated = { + id: string; + type: "session.created"; + properties: { + sessionID: string; + info: Session; + }; +}; +export type EventSessionUpdated = { + id: string; + type: "session.updated"; + properties: { + sessionID: string; + info: Session; + }; +}; +export type EventSessionDeleted = { + id: string; + type: "session.deleted"; + properties: { + sessionID: string; + info: Session; + }; +}; +export type EventMessageUpdated = { + id: string; + type: "message.updated"; + properties: { + sessionID: string; + info: Message; + }; +}; +export type EventMessageRemoved = { + id: string; + type: "message.removed"; + properties: { + sessionID: string; + messageID: string; + }; +}; +export type EventMessagePartUpdated = { + id: string; + type: "message.part.updated"; + properties: { + sessionID: string; + part: Part; + time: number; + }; +}; +export type EventMessagePartRemoved = { + id: string; + type: "message.part.removed"; + properties: { + sessionID: string; + messageID: string; + partID: string; + }; +}; +export type EventSessionNextAgentSwitched = { + id: string; + type: "session.next.agent.switched"; + properties: { + timestamp: number; + sessionID: string; + messageID: string; + agent: string; + }; +}; +export type EventSessionNextModelSwitched = { + id: string; + type: "session.next.model.switched"; + properties: { + timestamp: number; + sessionID: string; + messageID: string; + model: ModelRef; + }; +}; +export type EventSessionNextMoved = { + id: string; + type: "session.next.moved"; + properties: { + timestamp: number; + sessionID: string; + location: LocationRef; + subdirectory?: string; + }; +}; +export type EventSessionNextPrompted = { + id: string; + type: "session.next.prompted"; + properties: { + timestamp: number; + sessionID: string; + messageID: string; + prompt: Prompt; + delivery: "steer" | "queue"; + }; +}; +export type EventSessionNextPromptAdmitted = { + id: string; + type: "session.next.prompt.admitted"; + properties: { + timestamp: number; + sessionID: string; + messageID: string; + prompt: Prompt; + delivery: "steer" | "queue"; + }; +}; +export type EventSessionNextContextUpdated = { + id: string; + type: "session.next.context.updated"; + properties: { + timestamp: number; + sessionID: string; + messageID: string; + text: string; + }; +}; +export type EventSessionNextSynthetic = { + id: string; + type: "session.next.synthetic"; + properties: { + timestamp: number; + sessionID: string; + messageID: string; + text: string; + }; +}; +export type EventSessionNextShellStarted = { + id: string; + type: "session.next.shell.started"; + properties: { + timestamp: number; + sessionID: string; + messageID: string; + callID: string; + command: string; + }; +}; +export type EventSessionNextShellEnded = { + id: string; + type: "session.next.shell.ended"; + properties: { + timestamp: number; + sessionID: string; + callID: string; + output: string; + }; +}; +export type EventSessionNextStepStarted = { + id: string; + type: "session.next.step.started"; + properties: { + timestamp: number; + sessionID: string; + assistantMessageID: string; + agent: string; + model: ModelRef; + snapshot?: string; + }; +}; +export type EventSessionNextStepEnded = { + id: string; + type: "session.next.step.ended"; + properties: { + timestamp: number; + sessionID: string; + assistantMessageID: string; + finish: string; + cost: number; + tokens: { + input: number; + output: number; + reasoning: number; + cache: { + read: number; + write: number; + }; + }; + snapshot?: string; + files?: Array; + }; +}; +export type EventSessionNextStepFailed = { + id: string; + type: "session.next.step.failed"; + properties: { + timestamp: number; + sessionID: string; + assistantMessageID: string; + error: SessionErrorUnknown; + }; +}; +export type EventSessionNextTextStarted = { + id: string; + type: "session.next.text.started"; + properties: { + timestamp: number; + sessionID: string; + assistantMessageID: string; + textID: string; + }; +}; +export type EventSessionNextTextDelta = { + id: string; + type: "session.next.text.delta"; + properties: { + timestamp: number; + sessionID: string; + assistantMessageID: string; + textID: string; + delta: string; + }; +}; +export type EventSessionNextTextEnded = { + id: string; + type: "session.next.text.ended"; + properties: { + timestamp: number; + sessionID: string; + assistantMessageID: string; + textID: string; + text: string; + }; +}; +export type EventSessionNextReasoningStarted = { + id: string; + type: "session.next.reasoning.started"; + properties: { + timestamp: number; + sessionID: string; + assistantMessageID: string; + reasoningID: string; + providerMetadata?: LlmProviderMetadata; + }; +}; +export type EventSessionNextReasoningDelta = { + id: string; + type: "session.next.reasoning.delta"; + properties: { + timestamp: number; + sessionID: string; + assistantMessageID: string; + reasoningID: string; + delta: string; + }; +}; +export type EventSessionNextReasoningEnded = { + id: string; + type: "session.next.reasoning.ended"; + properties: { + timestamp: number; + sessionID: string; + assistantMessageID: string; + reasoningID: string; + text: string; + providerMetadata?: LlmProviderMetadata; + }; +}; +export type EventSessionNextToolInputStarted = { + id: string; + type: "session.next.tool.input.started"; + properties: { + timestamp: number; + sessionID: string; + assistantMessageID: string; + callID: string; + name: string; + }; +}; +export type EventSessionNextToolInputDelta = { + id: string; + type: "session.next.tool.input.delta"; + properties: { + timestamp: number; + sessionID: string; + assistantMessageID: string; + callID: string; + delta: string; + }; +}; +export type EventSessionNextToolInputEnded = { + id: string; + type: "session.next.tool.input.ended"; + properties: { + timestamp: number; + sessionID: string; + assistantMessageID: string; + callID: string; + text: string; + }; +}; +export type EventSessionNextToolCalled = { + id: string; + type: "session.next.tool.called"; + properties: { + timestamp: number; + sessionID: string; + assistantMessageID: string; + callID: string; + tool: string; + input: { + [key: string]: unknown; + }; + provider: { + executed: boolean; + metadata?: LlmProviderMetadata; + }; + }; +}; +export type EventSessionNextToolProgress = { + id: string; + type: "session.next.tool.progress"; + properties: { + timestamp: number; + sessionID: string; + assistantMessageID: string; + callID: string; + structured: { + [key: string]: unknown; + }; + content: Array; + }; +}; +export type EventSessionNextToolSuccess = { + id: string; + type: "session.next.tool.success"; + properties: { + timestamp: number; + sessionID: string; + assistantMessageID: string; + callID: string; + structured: { + [key: string]: unknown; + }; + content: Array; + outputPaths?: Array; + result?: unknown; + provider: { + executed: boolean; + metadata?: LlmProviderMetadata; + }; + }; +}; +export type EventSessionNextToolFailed = { + id: string; + type: "session.next.tool.failed"; + properties: { + timestamp: number; + sessionID: string; + assistantMessageID: string; + callID: string; + error: SessionErrorUnknown; + result?: unknown; + provider: { + executed: boolean; + metadata?: LlmProviderMetadata; + }; + }; +}; +export type EventSessionNextRetried = { + id: string; + type: "session.next.retried"; + properties: { + timestamp: number; + sessionID: string; + attempt: number; + error: SessionNextRetryError; + }; +}; +export type EventSessionNextCompactionStarted = { + id: string; + type: "session.next.compaction.started"; + properties: { + timestamp: number; + sessionID: string; + messageID: string; + reason: "auto" | "manual"; + }; +}; +export type EventSessionNextCompactionDelta = { + id: string; + type: "session.next.compaction.delta"; + properties: { + timestamp: number; + sessionID: string; + messageID: string; + text: string; + }; +}; +export type EventSessionNextCompactionEnded = { + id: string; + type: "session.next.compaction.ended"; + properties: { + timestamp: number; + sessionID: string; + messageID: string; + reason: "auto" | "manual"; + text: string; + recent: string; + }; +}; +export type EventSessionNextRevertStaged = { + id: string; + type: "session.next.revert.staged"; + properties: { + timestamp: number; + sessionID: string; + revert: RevertState; + }; +}; +export type EventSessionNextRevertCleared = { + id: string; + type: "session.next.revert.cleared"; + properties: { + timestamp: number; + sessionID: string; + }; +}; +export type EventSessionNextRevertCommitted = { + id: string; + type: "session.next.revert.committed"; + properties: { + timestamp: number; + sessionID: string; + messageID: string; + }; +}; +export type EventMessagePartDelta = { + id: string; + type: "message.part.delta"; + properties: { + sessionID: string; + messageID: string; + partID: string; + field: string; + delta: string; + }; +}; +export type EventSessionDiff = { + id: string; + type: "session.diff"; + properties: { + sessionID: string; + diff: Array; + }; +}; +export type EventSessionError = { + id: string; + type: "session.error"; + properties: { + sessionID?: string; + error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | StructuredOutputError | ContextOverflowError | ContentFilterError | ApiError; + }; +}; +export type EventInstallationUpdated = { + id: string; + type: "installation.updated"; + properties: { + version: string; + }; +}; +export type EventInstallationUpdateAvailable = { + id: string; + type: "installation.update-available"; + properties: { + version: string; + }; +}; +export type EventFileEdited = { + id: string; + type: "file.edited"; + properties: { + file: string; + }; +}; +export type EventReferenceUpdated = { + id: string; + type: "reference.updated"; + properties: { + [key: string]: unknown; + }; +}; +export type EventPermissionV2Asked = { + id: string; + type: "permission.v2.asked"; + properties: { + id: string; + sessionID: string; + action: string; + resources: Array; + save?: Array; + metadata?: { + [key: string]: unknown; + }; + source?: PermissionV2Source; + }; +}; +export type EventPermissionV2Replied = { + id: string; + type: "permission.v2.replied"; + properties: { + sessionID: string; + requestID: string; + reply: PermissionV2Reply; + }; +}; +export type EventPluginAdded = { + id: string; + type: "plugin.added"; + properties: { + id: string; + }; +}; +export type EventProjectDirectoriesUpdated = { + id: string; + type: "project.directories.updated"; + properties: { + projectID: string; + }; +}; +export type EventFileWatcherUpdated = { + id: string; + type: "file.watcher.updated"; + properties: { + file: string; + event: "add" | "change" | "unlink"; + }; +}; +export type EventPtyCreated = { + id: string; + type: "pty.created"; + properties: { + info: Pty; + }; +}; +export type EventPtyUpdated = { + id: string; + type: "pty.updated"; + properties: { + info: Pty; + }; +}; +export type EventPtyExited = { + id: string; + type: "pty.exited"; + properties: { + id: string; + exitCode: number; + }; +}; +export type EventPtyDeleted = { + id: string; + type: "pty.deleted"; + properties: { + id: string; + }; +}; +export type EventQuestionV2Asked = { + id: string; + type: "question.v2.asked"; + properties: { + id: string; + sessionID: string; + /** + * Questions to ask + */ + questions: Array; + tool?: QuestionV2Tool; + }; +}; +export type EventQuestionV2Replied = { + id: string; + type: "question.v2.replied"; + properties: { + sessionID: string; + requestID: string; + answers: Array; + }; +}; +export type EventQuestionV2Rejected = { + id: string; + type: "question.v2.rejected"; + properties: { + sessionID: string; + requestID: string; }; - /** - * OAuth authentication configuration for the MCP server. Set to false to disable OAuth auto-detection. - */ - oauth?: McpOAuthConfig | false; - timeout?: number; }; -/** - * @deprecated Always uses stretch layout. - */ -export type LayoutConfig = "auto" | "stretch"; -export type ImageAttachmentConfig = { - auto_resize?: boolean; - max_width?: number; - max_height?: number; - max_base64_bytes?: number; +export type EventTodoUpdated = { + id: string; + type: "todo.updated"; + properties: { + sessionID: string; + todos: Array; + }; }; -export type AttachmentConfig = { - image?: ImageAttachmentConfig; +export type EventLspUpdated = { + id: string; + type: "lsp.updated"; + properties: { + [key: string]: unknown; + }; }; -export type Config = { - $schema?: string; - shell?: string; - logLevel?: LogLevel; - server?: ServerConfig; - command?: { - [key: string]: { - template: string; - description?: string; - agent?: string; - model?: string; - subtask?: boolean; +export type EventPermissionAsked = { + id: string; + type: "permission.asked"; + properties: { + id: string; + sessionID: string; + permission: string; + patterns: Array; + metadata: { + [key: string]: unknown; + }; + always: Array; + tool?: { + messageID: string; + callID: string; }; }; - skills?: { - paths?: Array; - urls?: Array; +}; +export type EventPermissionReplied = { + id: string; + type: "permission.replied"; + properties: { + sessionID: string; + requestID: string; + reply: "once" | "always" | "reject"; }; - reference?: ReferenceConfig; - watcher?: { - ignore?: Array; +}; +export type EventMcpToolsChanged = { + id: string; + type: "mcp.tools.changed"; + properties: { + server: string; }; - snapshot?: boolean; - plugin?: Array; - share?: "manual" | "auto" | "disabled"; - autoshare?: boolean; - /** - * Automatically update to the latest version. Set to true to auto-update, false to disable, or 'notify' to show update notifications - */ - autoupdate?: boolean | "notify"; - disabled_providers?: Array; - enabled_providers?: Array; - model?: string; - small_model?: string; - default_agent?: string; - username?: string; - mode?: { - build?: AgentConfig; - plan?: AgentConfig; - [key: string]: AgentConfig | undefined; +}; +export type EventMcpBrowserOpenFailed = { + id: string; + type: "mcp.browser.open.failed"; + properties: { + mcpName: string; + url: string; }; - agent?: { - plan?: AgentConfig; - build?: AgentConfig; - general?: AgentConfig; - explore?: AgentConfig; - scout?: AgentConfig; - title?: AgentConfig; - summary?: AgentConfig; - compaction?: AgentConfig; - [key: string]: AgentConfig | undefined; +}; +export type EventCommandExecuted = { + id: string; + type: "command.executed"; + properties: { + name: string; + sessionID: string; + arguments: string; + messageID: string; }; - provider?: { - [key: string]: ProviderConfig; +}; +export type EventProjectUpdated = { + id: string; + type: "project.updated"; + properties: { + id: string; + worktree: string; + vcs?: ProjectVcs; + name?: string; + icon?: ProjectIcon; + commands?: ProjectCommands; + time: ProjectTime; + sandboxes: Array; }; - mcp?: { - [key: string]: McpLocalConfig | McpRemoteConfig | { - enabled: boolean; - }; +}; +export type EventSessionStatus = { + id: string; + type: "session.status"; + properties: { + sessionID: string; + status: SessionStatus; }; - /** - * Enable or configure formatters. Omit or set to false to disable, true to enable built-ins, or an object to enable built-ins with overrides. - */ - formatter?: boolean | { - [key: string]: { - disabled?: boolean; - command?: Array; - environment?: { - [key: string]: string; - }; - extensions?: Array; - }; +}; +export type EventSessionIdle = { + id: string; + type: "session.idle"; + properties: { + sessionID: string; }; - /** - * Enable or configure LSP servers. Omit or set to false to disable, true to enable built-ins, or an object to enable built-ins with overrides. - */ - lsp?: boolean | { - [key: string]: { - disabled: true; - } | { - command: Array; - extensions?: Array; - disabled?: boolean; - env?: { - [key: string]: string; - }; - initialization?: { - [key: string]: unknown; - }; - }; +}; +export type EventQuestionAsked = { + id: string; + type: "question.asked"; + properties: { + id: string; + sessionID: string; + /** + * Questions to ask + */ + questions: Array; + tool?: QuestionTool; }; - instructions?: Array; - layout?: LayoutConfig; - permission?: PermissionConfig; - tools?: { - [key: string]: boolean; +}; +export type EventQuestionReplied = { + id: string; + type: "question.replied"; + properties: { + sessionID: string; + requestID: string; + answers: Array; }; - attachment?: AttachmentConfig; - enterprise?: { - url?: string; +}; +export type EventQuestionRejected = { + id: string; + type: "question.rejected"; + properties: { + sessionID: string; + requestID: string; }; - tool_output?: { - max_lines?: number; - max_bytes?: number; +}; +export type EventSessionCompacted = { + id: string; + type: "session.compacted"; + properties: { + sessionID: string; }; - compaction?: { - auto?: boolean; - prune?: boolean; - tail_turns?: number; - preserve_recent_tokens?: number; - reserved?: number; +}; +export type EventVcsBranchUpdated = { + id: string; + type: "vcs.branch.updated"; + properties: { + branch?: string; }; - experimental?: { - disable_paste_summary?: boolean; - batch_tool?: boolean; - openTelemetry?: boolean; - primary_tools?: Array; - continue_loop_on_deny?: boolean; - mcp_timeout?: number; +}; +export type EventWorkspaceReady = { + id: string; + type: "workspace.ready"; + properties: { + name: string; }; }; -export type Model = { +export type EventWorkspaceFailed = { id: string; - providerID: string; - api: { - id: string; - url: string; - npm: string; + type: "workspace.failed"; + properties: { + message: string; }; - name: string; - family?: string; - capabilities: { - temperature: boolean; - reasoning: boolean; - attachment: boolean; - toolcall: boolean; - input: { - text: boolean; - audio: boolean; - image: boolean; - video: boolean; - pdf: boolean; - }; - output: { - text: boolean; - audio: boolean; - image: boolean; - video: boolean; - pdf: boolean; - }; - interleaved: boolean | { - field: "reasoning_content" | "reasoning_details"; - }; +}; +export type EventWorkspaceStatus = { + id: string; + type: "workspace.status"; + properties: { + workspaceID: string; + status: "connected" | "connecting" | "disconnected" | "error"; }; - cost: { - input: number; - output: number; - cache: { - read: number; - write: number; - }; - tiers?: Array<{ - input: number; - output: number; - cache: { - read: number; - write: number; - }; - tier: { - type: "context"; - size: number; - }; - }>; - experimentalOver200K?: { - input: number; - output: number; - cache: { - read: number; - write: number; - }; - }; +}; +export type EventWorktreeReady = { + id: string; + type: "worktree.ready"; + properties: { + name: string; + branch?: string; }; - limit: { - context: number; - input?: number; - output: number; +}; +export type EventWorktreeFailed = { + id: string; + type: "worktree.failed"; + properties: { + message: string; }; - status: "alpha" | "beta" | "deprecated" | "active"; - options: { +}; +export type EventServerConnected = { + id: string; + type: "server.connected"; + properties: { [key: string]: unknown; }; - headers: { - [key: string]: string; - }; - release_date: string; - variants?: { - [key: string]: { - [key: string]: unknown; - }; - }; }; -export type Provider = { +export type EventGlobalDisposed = { id: string; - name: string; - source: "env" | "config" | "custom" | "api"; - env: Array; - key?: string; - options: { + type: "global.disposed"; + properties: { [key: string]: unknown; }; - models: { - [key: string]: Model; +}; +export type CredentialOAuth = { + type: "oauth"; + methodID: string; + refresh: string; + access: string; + expires: number; + metadata?: { + [key: string]: unknown; }; }; -export type ConsoleState = { - consoleManagedProviders: Array; - activeOrgName?: string; - switchableOrgCount: number; +export type CredentialKey = { + type: "key"; + key: string; + metadata?: { + [key: string]: unknown; + }; }; -export type EffectHttpApiErrorInternalServerError = { - _tag: "InternalServerError"; +export type SkillV2DirectorySource = { + type: "directory"; + path: string; }; -export type ToolListItem = { - id: string; - description: string; - parameters: unknown; +export type SkillV2UrlSource = { + type: "url"; + url: string; }; -export type ToolList = Array; -export type ToolIds = Array; -export type WorktreeError = { - name: "WorktreeNotGitError" | "WorktreeNameGenerationFailedError" | "WorktreeCreateFailedError" | "WorktreeStartCommandFailedError" | "WorktreeRemoveFailedError" | "WorktreeResetFailedError" | "WorktreeListFailedError"; +export type SkillV2EmbeddedSource = { + type: "embedded"; + skill: SkillV2Info; +}; +export type BadRequestError = { + name: "BadRequest"; data: { message: string; + kind?: "Params" | "Headers" | "Query" | "Body" | "Payload"; + }; +}; +export type AuthRemoveData = { + body?: never; + path: { + providerID: string; + }; + query?: never; + url: "/auth/{providerID}"; +}; +export type AuthRemoveErrors = { + /** + * BadRequest | InvalidRequestError + */ + 400: EffectHttpApiErrorBadRequest | InvalidRequestError; +}; +export type AuthRemoveError = AuthRemoveErrors[keyof AuthRemoveErrors]; +export type AuthRemoveResponses = { + /** + * Successfully removed authentication credentials + */ + 200: boolean; +}; +export type AuthRemoveResponse = AuthRemoveResponses[keyof AuthRemoveResponses]; +export type AuthSetData = { + body?: Auth; + path: { + providerID: string; + }; + query?: never; + url: "/auth/{providerID}"; +}; +export type AuthSetErrors = { + /** + * BadRequest | InvalidRequestError + */ + 400: EffectHttpApiErrorBadRequest | InvalidRequestError; +}; +export type AuthSetError = AuthSetErrors[keyof AuthSetErrors]; +export type AuthSetResponses = { + /** + * Successfully set authentication credentials + */ + 200: boolean; +}; +export type AuthSetResponse = AuthSetResponses[keyof AuthSetResponses]; +export type AppLogData = { + body?: { + /** + * Service name for the log entry + */ + service: string; + /** + * Log level + */ + level: "debug" | "info" | "error" | "warn"; + /** + * Log message + */ + message: string; + extra?: { + [key: string]: unknown; + }; + }; + path?: never; + query?: { + directory?: string; + workspace?: string; + }; + url: "/log"; +}; +export type AppLogErrors = { + /** + * BadRequest | InvalidRequestError + */ + 400: EffectHttpApiErrorBadRequest | InvalidRequestError; +}; +export type AppLogError = AppLogErrors[keyof AppLogErrors]; +export type AppLogResponses = { + /** + * Log entry written successfully + */ + 200: boolean; +}; +export type AppLogResponse = AppLogResponses[keyof AppLogResponses]; +export type ExperimentalControlPlaneMoveSessionData = { + body?: { + sessionID: string; + destination: MoveSessionDestination; + moveChanges?: boolean; }; + path?: never; + query?: never; + url: "/experimental/control-plane/move-session"; +}; +export type ExperimentalControlPlaneMoveSessionErrors = { + /** + * MoveSessionError | InvalidRequestError + */ + 400: MoveSessionError | InvalidRequestError; +}; +export type ExperimentalControlPlaneMoveSessionError = ExperimentalControlPlaneMoveSessionErrors[keyof ExperimentalControlPlaneMoveSessionErrors]; +export type ExperimentalControlPlaneMoveSessionResponses = { + /** + * Session moved + */ + 204: void; +}; +export type ExperimentalControlPlaneMoveSessionResponse = ExperimentalControlPlaneMoveSessionResponses[keyof ExperimentalControlPlaneMoveSessionResponses]; +export type GlobalHealthData = { + body?: never; + path?: never; + query?: never; + url: "/global/health"; +}; +export type GlobalHealthErrors = { + /** + * Bad request + */ + 400: BadRequestError; +}; +export type GlobalHealthError = GlobalHealthErrors[keyof GlobalHealthErrors]; +export type GlobalHealthResponses = { + /** + * Health information + */ + 200: { + healthy: true; + version: string; + }; +}; +export type GlobalHealthResponse = GlobalHealthResponses[keyof GlobalHealthResponses]; +export type GlobalEventData = { + body?: never; + path?: never; + query?: never; + url: "/global/event"; }; -export type WorktreeCreateInput = { - name?: string; +export type GlobalEventErrors = { /** - * Additional startup script to run after the project's start command + * Bad request */ - startCommand?: string; -}; -export type Worktree = { - name: string; - branch?: string; - directory: string; + 400: BadRequestError; }; -export type WorktreeRemoveInput = { - directory: string; +export type GlobalEventError = GlobalEventErrors[keyof GlobalEventErrors]; +export type GlobalEventResponses = { + /** + * Event stream + */ + 200: GlobalEvent; }; -export type WorktreeResetInput = { - directory: string; +export type GlobalEventResponse = GlobalEventResponses[keyof GlobalEventResponses]; +export type GlobalConfigGetData = { + body?: never; + path?: never; + query?: never; + url: "/global/config"; }; -export type ProjectSummary = { - id: string; - name?: string; - worktree: string; +export type GlobalConfigGetErrors = { + /** + * Bad request + */ + 400: BadRequestError; }; -export type GlobalSession = { - id: string; - slug: string; - projectID: string; - workspaceID?: string; - directory: string; - path?: string; - parentID?: string; - summary?: { - additions: number; - deletions: number; - files: number; - diffs?: Array; - }; - cost?: number; - tokens?: { - input: number; - output: number; - reasoning: number; - cache: { - read: number; - write: number; - }; - }; - share?: { - url: string; - }; - title: string; - agent?: string; - model?: { - id: string; - providerID: string; - variant?: string; - }; - version: string; - time: { - created: number; - updated: number; - compacting?: number; - archived?: number; - }; - permission?: PermissionRuleset; - revert?: { - messageID: string; - partID?: string; - snapshot?: string; - diff?: string; - }; - project: ProjectSummary | null; +export type GlobalConfigGetError = GlobalConfigGetErrors[keyof GlobalConfigGetErrors]; +export type GlobalConfigGetResponses = { + /** + * Get global config info + */ + 200: Config; }; -export type McpResource = { - name: string; - uri: string; - description?: string; - mimeType?: string; - client: string; +export type GlobalConfigGetResponse = GlobalConfigGetResponses[keyof GlobalConfigGetResponses]; +export type GlobalConfigUpdateData = { + body?: Config; + path?: never; + query?: never; + url: "/global/config"; }; -export type Symbol = { - name: string; - kind: number; - location: { - uri: string; - range: Range; - }; +export type GlobalConfigUpdateErrors = { + /** + * BadRequest | InvalidRequestError + */ + 400: EffectHttpApiErrorBadRequest | InvalidRequestError; }; -export type FileNode = { - name: string; - path: string; - absolute: string; - type: "file" | "directory"; - ignored: boolean; +export type GlobalConfigUpdateError = GlobalConfigUpdateErrors[keyof GlobalConfigUpdateErrors]; +export type GlobalConfigUpdateResponses = { + /** + * Successfully updated global config + */ + 200: Config; }; -export type FileContent = { - type: "text" | "binary"; - content: string; - diff?: string; - patch?: { - oldFileName: string; - newFileName: string; - oldHeader?: string; - newHeader?: string; - hunks: Array<{ - oldStart: number; - oldLines: number; - newStart: number; - newLines: number; - lines: Array; - }>; - index?: string; - }; - encoding?: "base64"; - mimeType?: string; +export type GlobalConfigUpdateResponse = GlobalConfigUpdateResponses[keyof GlobalConfigUpdateResponses]; +export type GlobalDisposeData = { + body?: never; + path?: never; + query?: never; + url: "/global/dispose"; }; -export type File = { - path: string; - added: number; - removed: number; - status: "added" | "deleted" | "modified"; +export type GlobalDisposeErrors = { + /** + * Bad request + */ + 400: BadRequestError; }; -export type Path = { - home: string; - state: string; - config: string; - worktree: string; - directory: string; +export type GlobalDisposeError = GlobalDisposeErrors[keyof GlobalDisposeErrors]; +export type GlobalDisposeResponses = { + /** + * Global disposed + */ + 200: boolean; }; -export type VcsInfo = { - branch?: string; - default_branch?: string; +export type GlobalDisposeResponse = GlobalDisposeResponses[keyof GlobalDisposeResponses]; +export type GlobalUpgradeData = { + body?: { + target?: string; + }; + path?: never; + query?: never; + url: "/global/upgrade"; }; -export type VcsFileStatus = { - file: string; - additions: number; - deletions: number; - status: "added" | "deleted" | "modified"; +export type GlobalUpgradeErrors = { + /** + * BadRequest | InvalidRequestError + */ + 400: EffectHttpApiErrorBadRequest | InvalidRequestError; }; -export type VcsFileDiff = { - file: string; - patch?: string; - additions: number; - deletions: number; - status?: "added" | "deleted" | "modified"; +export type GlobalUpgradeError = GlobalUpgradeErrors[keyof GlobalUpgradeErrors]; +export type GlobalUpgradeResponses = { + /** + * Upgrade result + */ + 200: { + success: true; + version: string; + } | { + success: false; + error: string; + }; }; -export type VcsApplyError = { - name: "VcsApplyError"; - data: { - message: string; - reason: "non-git" | "not-clean"; +export type GlobalUpgradeResponse = GlobalUpgradeResponses[keyof GlobalUpgradeResponses]; +export type EventSubscribeData = { + body?: never; + path?: never; + query?: { + directory?: string; + workspace?: string; }; + url: "/event"; }; -export type Command = { - name: string; - description?: string; - agent?: string; - model?: string; - source?: "command" | "mcp" | "skill"; - template: string; - subtask?: boolean; - hints: Array; +export type EventSubscribeResponses = { + /** + * Event stream + */ + 200: Event; }; -export type Agent = { - name: string; - description?: string; - mode: "subagent" | "primary" | "all"; - native?: boolean; - hidden?: boolean; - topP?: number; - temperature?: number; - color?: string; - permission: PermissionRuleset; - model?: { - modelID: string; - providerID: string; +export type EventSubscribeResponse = EventSubscribeResponses[keyof EventSubscribeResponses]; +export type ConfigGetData = { + body?: never; + path?: never; + query?: { + directory?: string; + workspace?: string; }; - variant?: string; - prompt?: string; - options: { - [key: string]: unknown; + url: "/config"; +}; +export type ConfigGetErrors = { + /** + * Bad request + */ + 400: BadRequestError; +}; +export type ConfigGetError = ConfigGetErrors[keyof ConfigGetErrors]; +export type ConfigGetResponses = { + /** + * Get config info + */ + 200: Config; +}; +export type ConfigGetResponse = ConfigGetResponses[keyof ConfigGetResponses]; +export type ConfigUpdateData = { + body?: Config; + path?: never; + query?: { + directory?: string; + workspace?: string; }; - steps?: number; + url: "/config"; }; -export type LspStatus = { - id: string; - name: string; - root: string; - status: "connected" | "error"; +export type ConfigUpdateErrors = { + /** + * BadRequest | InvalidRequestError + */ + 400: EffectHttpApiErrorBadRequest | InvalidRequestError; }; -export type FormatterStatus = { - name: string; - extensions: Array; - enabled: boolean; +export type ConfigUpdateError = ConfigUpdateErrors[keyof ConfigUpdateErrors]; +export type ConfigUpdateResponses = { + /** + * Successfully updated config + */ + 200: Config; }; -export type McpStatusConnected = { - status: "connected"; +export type ConfigUpdateResponse = ConfigUpdateResponses[keyof ConfigUpdateResponses]; +export type ConfigProvidersData = { + body?: never; + path?: never; + query?: { + directory?: string; + workspace?: string; + }; + url: "/config/providers"; }; -export type McpStatusDisabled = { - status: "disabled"; +export type ConfigProvidersErrors = { + /** + * Bad request + */ + 400: BadRequestError; }; -export type McpStatusFailed = { - status: "failed"; - error: string; +export type ConfigProvidersError = ConfigProvidersErrors[keyof ConfigProvidersErrors]; +export type ConfigProvidersResponses = { + /** + * List of providers + */ + 200: { + providers: Array; + default: { + [key: string]: string; + }; + }; }; -export type McpStatusNeedsAuth = { - status: "needs_auth"; +export type ConfigProvidersResponse = ConfigProvidersResponses[keyof ConfigProvidersResponses]; +export type ExperimentalCapabilitiesGetData = { + body?: never; + path?: never; + query?: { + directory?: string; + workspace?: string; + }; + url: "/experimental/capabilities"; }; -export type McpStatusNeedsClientRegistration = { - status: "needs_client_registration"; - error: string; +export type ExperimentalCapabilitiesGetErrors = { + /** + * Bad request + */ + 400: BadRequestError; }; -export type McpStatus = McpStatusConnected | McpStatusDisabled | McpStatusFailed | McpStatusNeedsAuth | McpStatusNeedsClientRegistration; -export type McpUnsupportedOAuthError = { - error: string; +export type ExperimentalCapabilitiesGetError = ExperimentalCapabilitiesGetErrors[keyof ExperimentalCapabilitiesGetErrors]; +export type ExperimentalCapabilitiesGetResponses = { + /** + * Experimental capabilities + */ + 200: ExperimentalCapabilities; }; -export type NotFoundError = { - name: "NotFoundError"; - data: { - message: string; +export type ExperimentalCapabilitiesGetResponse = ExperimentalCapabilitiesGetResponses[keyof ExperimentalCapabilitiesGetResponses]; +export type ExperimentalConsoleGetData = { + body?: never; + path?: never; + query?: { + directory?: string; + workspace?: string; }; + url: "/experimental/console"; }; -export type EffectHttpApiErrorForbidden = { - _tag: "Forbidden"; +export type ExperimentalConsoleGetErrors = { + /** + * Bad request + */ + 400: BadRequestError; + /** + * InternalServerError + */ + 500: EffectHttpApiErrorInternalServerError; }; -export type ProviderAuthMethod = { - type: "oauth" | "api"; - label: string; - prompts?: Array<{ - type: "text"; - key: string; - message: string; - placeholder?: string; - when?: { - key: string; - op: "eq" | "neq"; - value: string; - }; - } | { - type: "select"; - key: string; - message: string; - options: Array<{ - label: string; - value: string; - hint?: string; - }>; - when?: { - key: string; - op: "eq" | "neq"; - value: string; - }; - }>; +export type ExperimentalConsoleGetError = ExperimentalConsoleGetErrors[keyof ExperimentalConsoleGetErrors]; +export type ExperimentalConsoleGetResponses = { + /** + * Active Console provider metadata + */ + 200: ConsoleState; }; -export type ProviderAuthAuthorization = { - url: string; - method: "auto" | "code"; - instructions: string; +export type ExperimentalConsoleGetResponse = ExperimentalConsoleGetResponses[keyof ExperimentalConsoleGetResponses]; +export type ExperimentalConsoleListOrgsData = { + body?: never; + path?: never; + query?: { + directory?: string; + workspace?: string; + }; + url: "/experimental/console/orgs"; }; -export type ProviderAuthError1 = { - name: "BadRequest" | "ProviderAuthOauthMissing" | "ProviderAuthOauthCodeMissing" | "ProviderAuthOauthCallbackFailed" | "ProviderAuthValidationFailed"; - data: { - providerID?: string; - field?: string; - message?: string; - kind?: string; +export type ExperimentalConsoleListOrgsErrors = { + /** + * Bad request + */ + 400: BadRequestError; + /** + * InternalServerError + */ + 500: EffectHttpApiErrorInternalServerError; +}; +export type ExperimentalConsoleListOrgsError = ExperimentalConsoleListOrgsErrors[keyof ExperimentalConsoleListOrgsErrors]; +export type ExperimentalConsoleListOrgsResponses = { + /** + * Switchable Console orgs + */ + 200: { + orgs: Array<{ + accountID: string; + accountEmail: string; + accountUrl: string; + orgID: string; + orgName: string; + active: boolean; + }>; }; }; -export type TextPartInput = { - id?: string; - type: "text"; - text: string; - synthetic?: boolean; - ignored?: boolean; - time?: { - start: number; - end?: number; +export type ExperimentalConsoleListOrgsResponse = ExperimentalConsoleListOrgsResponses[keyof ExperimentalConsoleListOrgsResponses]; +export type ExperimentalConsoleSwitchOrgData = { + body?: { + accountID: string; + orgID: string; }; - metadata?: { - [key: string]: unknown; + path?: never; + query?: { + directory?: string; + workspace?: string; }; + url: "/experimental/console/switch"; }; -export type FilePartInput = { - id?: string; - type: "file"; - mime: string; - filename?: string; - url: string; - source?: FilePartSource; -}; -export type AgentPartInput = { - id?: string; - type: "agent"; - name: string; - source?: { - value: string; - start: number; - end: number; - }; +export type ExperimentalConsoleSwitchOrgResponses = { + /** + * Switch success + */ + 200: boolean; }; -export type SubtaskPartInput = { - id?: string; - type: "subtask"; - prompt: string; - description: string; - agent: string; - model?: { - providerID: string; - modelID: string; +export type ExperimentalConsoleSwitchOrgResponse = ExperimentalConsoleSwitchOrgResponses[keyof ExperimentalConsoleSwitchOrgResponses]; +export type ToolListData = { + body?: never; + path?: never; + query: { + directory?: string; + workspace?: string; + provider: string; + model: string; }; - command?: string; + url: "/experimental/tool"; }; -export type V2SessionsResponse = { - items: Array; - cursor: { - previous?: string; - next?: string; - }; +export type ToolListErrors = { + /** + * BadRequest | InvalidRequestError + */ + 400: EffectHttpApiErrorBadRequest | InvalidRequestError; }; -export type V2SessionMessagesResponse = { - items: Array; - cursor: { - previous?: string; - next?: string; - }; +export type ToolListError = ToolListErrors[keyof ToolListErrors]; +export type ToolListResponses = { + /** + * Tools + */ + 200: ToolList; }; -export type EventTuiPromptAppend2 = { - type: "tui.prompt.append"; - properties: { - text: string; +export type ToolListResponse = ToolListResponses[keyof ToolListResponses]; +export type ToolIdsData = { + body?: never; + path?: never; + query?: { + directory?: string; + workspace?: string; }; + url: "/experimental/tool/ids"; }; -export type EventTuiCommandExecute2 = { - type: "tui.command.execute"; - properties: { - command: "session.list" | "session.new" | "session.share" | "session.interrupt" | "session.compact" | "session.page.up" | "session.page.down" | "session.line.up" | "session.line.down" | "session.half.page.up" | "session.half.page.down" | "session.first" | "session.last" | "prompt.clear" | "prompt.submit" | "agent.cycle" | string; - }; +export type ToolIdsErrors = { + /** + * BadRequest | InvalidRequestError + */ + 400: EffectHttpApiErrorBadRequest | InvalidRequestError; }; -export type EventTuiToastShow2 = { - type: "tui.toast.show"; - properties: { - title?: string; - message: string; - variant: "info" | "success" | "warning" | "error"; - duration?: number; - }; +export type ToolIdsError = ToolIdsErrors[keyof ToolIdsErrors]; +export type ToolIdsResponses = { + /** + * Tool IDs + */ + 200: ToolIds; }; -export type EventTuiSessionSelect2 = { - type: "tui.session.select"; - properties: { - /** - * Session ID to navigate to - */ - sessionID: string; +export type ToolIdsResponse = ToolIdsResponses[keyof ToolIdsResponses]; +export type WorktreeRemoveData = { + body?: WorktreeRemoveInput; + path?: never; + query?: { + directory?: string; + workspace?: string; }; + url: "/experimental/worktree"; }; -export type Workspace = { - id: string; - type: string; - name: string; - branch?: string | null; - directory?: string | null; - extra?: unknown | null; - projectID: string; - timeUsed: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN"; +export type WorktreeRemoveErrors = { + /** + * WorktreeError | InvalidRequestError + */ + 400: WorktreeError | InvalidRequestError; }; -export type WorkspaceWarpError = { - name: "WorkspaceWarpError"; - data: { - message: string; - }; +export type WorktreeRemoveError = WorktreeRemoveErrors[keyof WorktreeRemoveErrors]; +export type WorktreeRemoveResponses = { + /** + * Worktree removed + */ + 200: boolean; }; -export type SyncEventMessageUpdated = { - type: "sync"; - name: "message.updated.1"; - id: string; - seq: number; - aggregateID: "sessionID"; - data: { - sessionID: string; - info: Message; +export type WorktreeRemoveResponse = WorktreeRemoveResponses[keyof WorktreeRemoveResponses]; +export type WorktreeListData = { + body?: never; + path?: never; + query?: { + directory?: string; + workspace?: string; }; + url: "/experimental/worktree"; }; -export type SyncEventMessageRemoved = { - type: "sync"; - name: "message.removed.1"; - id: string; - seq: number; - aggregateID: "sessionID"; - data: { - sessionID: string; - messageID: string; - }; +export type WorktreeListErrors = { + /** + * WorktreeError | InvalidRequestError + */ + 400: WorktreeError | InvalidRequestError; }; -export type SyncEventMessagePartUpdated = { - type: "sync"; - name: "message.part.updated.1"; - id: string; - seq: number; - aggregateID: "sessionID"; - data: { - sessionID: string; - part: Part; - time: number; - }; +export type WorktreeListError = WorktreeListErrors[keyof WorktreeListErrors]; +export type WorktreeListResponses = { + /** + * List of worktree directories + */ + 200: Array; }; -export type SyncEventMessagePartRemoved = { - type: "sync"; - name: "message.part.removed.1"; - id: string; - seq: number; - aggregateID: "sessionID"; - data: { - sessionID: string; - messageID: string; - partID: string; +export type WorktreeListResponse = WorktreeListResponses[keyof WorktreeListResponses]; +export type WorktreeCreateData = { + body?: WorktreeCreateInput; + path?: never; + query?: { + directory?: string; + workspace?: string; }; + url: "/experimental/worktree"; }; -export type SyncEventSessionCreated = { - type: "sync"; - name: "session.created.1"; - id: string; - seq: number; - aggregateID: "sessionID"; - data: { - sessionID: string; - info: Session; - }; +export type WorktreeCreateErrors = { + /** + * WorktreeError | InvalidRequestError + */ + 400: WorktreeError | InvalidRequestError; }; -export type SyncEventSessionUpdated = { - type: "sync"; - name: "session.updated.1"; - id: string; - seq: number; - aggregateID: "sessionID"; - data: { - sessionID: string; - info: { - id?: string | null; - slug?: string | null; - projectID?: string | null; - workspaceID?: string | null; - directory?: string | null; - path?: string | null; - parentID?: string | null; - summary?: { - additions: number; - deletions: number; - files: number; - diffs?: Array; - } | null; - cost?: number | null; - tokens?: { - input: number; - output: number; - reasoning: number; - cache: { - read: number; - write: number; - }; - } | null; - share?: { - url?: string | null; - }; - title?: string | null; - agent?: string | null; - model?: { - id: string; - providerID: string; - variant?: string; - } | null; - version?: string | null; - time?: { - created?: number | null; - updated?: number | null; - compacting?: number | null; - archived?: number | null; - }; - permission?: PermissionRuleset | null; - revert?: { - messageID: string; - partID?: string; - snapshot?: string; - diff?: string; - } | null; - }; - }; +export type WorktreeCreateError = WorktreeCreateErrors[keyof WorktreeCreateErrors]; +export type WorktreeCreateResponses = { + /** + * Worktree created + */ + 200: Worktree; }; -export type SyncEventSessionDeleted = { - type: "sync"; - name: "session.deleted.1"; - id: string; - seq: number; - aggregateID: "sessionID"; - data: { - sessionID: string; - info: Session; +export type WorktreeCreateResponse = WorktreeCreateResponses[keyof WorktreeCreateResponses]; +export type WorktreeResetData = { + body?: WorktreeResetInput; + path?: never; + query?: { + directory?: string; + workspace?: string; }; + url: "/experimental/worktree/reset"; }; -export type SyncEventSessionNextAgentSwitched = { - type: "sync"; - name: "session.next.agent.switched.1"; - id: string; - seq: number; - aggregateID: "sessionID"; - data: { - timestamp: number; - sessionID: string; - agent: string; - }; +export type WorktreeResetErrors = { + /** + * WorktreeError | InvalidRequestError + */ + 400: WorktreeError | InvalidRequestError; }; -export type SyncEventSessionNextModelSwitched = { - type: "sync"; - name: "session.next.model.switched.1"; - id: string; - seq: number; - aggregateID: "sessionID"; - data: { - timestamp: number; - sessionID: string; - model: { - id: string; - providerID: string; - variant: string; - }; - }; +export type WorktreeResetError = WorktreeResetErrors[keyof WorktreeResetErrors]; +export type WorktreeResetResponses = { + /** + * Worktree reset + */ + 200: boolean; }; -export type SyncEventSessionNextPrompted = { - type: "sync"; - name: "session.next.prompted.1"; - id: string; - seq: number; - aggregateID: "sessionID"; - data: { - timestamp: number; - sessionID: string; - prompt: Prompt; +export type WorktreeResetResponse = WorktreeResetResponses[keyof WorktreeResetResponses]; +export type ExperimentalSessionListData = { + body?: never; + path?: never; + query?: { + directory?: string; + workspace?: string; + roots?: boolean | "true" | "false"; + start?: number; + cursor?: number; + search?: string; + limit?: number; + archived?: boolean | "true" | "false"; }; + url: "/experimental/session"; }; -export type SyncEventSessionNextSynthetic = { - type: "sync"; - name: "session.next.synthetic.1"; - id: string; - seq: number; - aggregateID: "sessionID"; - data: { - timestamp: number; +export type ExperimentalSessionListErrors = { + /** + * Bad request + */ + 400: BadRequestError; +}; +export type ExperimentalSessionListError = ExperimentalSessionListErrors[keyof ExperimentalSessionListErrors]; +export type ExperimentalSessionListResponses = { + /** + * List of sessions + */ + 200: Array; +}; +export type ExperimentalSessionListResponse = ExperimentalSessionListResponses[keyof ExperimentalSessionListResponses]; +export type ExperimentalSessionBackgroundData = { + body?: never; + path: { sessionID: string; - text: string; }; + query?: { + directory?: string; + workspace?: string; + }; + url: "/experimental/session/{sessionID}/background"; }; -export type SyncEventSessionNextShellStarted = { - type: "sync"; - name: "session.next.shell.started.1"; - id: string; - seq: number; - aggregateID: "sessionID"; - data: { - timestamp: number; - sessionID: string; - callID: string; - command: string; +export type ExperimentalSessionBackgroundErrors = { + /** + * BadRequest | InvalidRequestError + */ + 400: EffectHttpApiErrorBadRequest | InvalidRequestError; +}; +export type ExperimentalSessionBackgroundError = ExperimentalSessionBackgroundErrors[keyof ExperimentalSessionBackgroundErrors]; +export type ExperimentalSessionBackgroundResponses = { + /** + * Backgrounded subagents + */ + 200: boolean; +}; +export type ExperimentalSessionBackgroundResponse = ExperimentalSessionBackgroundResponses[keyof ExperimentalSessionBackgroundResponses]; +export type ExperimentalResourceListData = { + body?: never; + path?: never; + query?: { + directory?: string; + workspace?: string; }; + url: "/experimental/resource"; }; -export type SyncEventSessionNextShellEnded = { - type: "sync"; - name: "session.next.shell.ended.1"; - id: string; - seq: number; - aggregateID: "sessionID"; - data: { - timestamp: number; - sessionID: string; - callID: string; - output: string; +export type ExperimentalResourceListErrors = { + /** + * Bad request + */ + 400: BadRequestError; +}; +export type ExperimentalResourceListError = ExperimentalResourceListErrors[keyof ExperimentalResourceListErrors]; +export type ExperimentalResourceListResponses = { + /** + * MCP resources + */ + 200: { + [key: string]: McpResource; }; }; -export type SyncEventSessionNextStepStarted = { - type: "sync"; - name: "session.next.step.started.1"; - id: string; - seq: number; - aggregateID: "sessionID"; - data: { - timestamp: number; - sessionID: string; - agent: string; - model: { - id: string; - providerID: string; - variant: string; - }; - snapshot?: string; +export type ExperimentalResourceListResponse = ExperimentalResourceListResponses[keyof ExperimentalResourceListResponses]; +export type FindTextData = { + body?: never; + path?: never; + query: { + directory?: string; + workspace?: string; + pattern: string; }; + url: "/find"; }; -export type SyncEventSessionNextStepEnded = { - type: "sync"; - name: "session.next.step.ended.1"; - id: string; - seq: number; - aggregateID: "sessionID"; - data: { - timestamp: number; - sessionID: string; - finish: string; - cost: number; - tokens: { - input: number; - output: number; - reasoning: number; - cache: { - read: number; - write: number; - }; +export type FindTextErrors = { + /** + * Bad request + */ + 400: BadRequestError; +}; +export type FindTextError = FindTextErrors[keyof FindTextErrors]; +export type FindTextResponses = { + /** + * Matches + */ + 200: Array<{ + path: { + text: string; }; - snapshot?: string; - }; + lines: { + text: string; + }; + line_number: number; + absolute_offset: number; + submatches: Array<{ + match: { + text: string; + }; + start: number; + end: number; + }>; + }>; }; -export type SyncEventSessionNextStepFailed = { - type: "sync"; - name: "session.next.step.failed.1"; - id: string; - seq: number; - aggregateID: "sessionID"; - data: { - timestamp: number; - sessionID: string; - error: SessionErrorUnknown; +export type FindTextResponse = FindTextResponses[keyof FindTextResponses]; +export type FindFilesData = { + body?: never; + path?: never; + query: { + directory?: string; + workspace?: string; + query: string; + dirs?: "true" | "false"; + type?: "file" | "directory"; + limit?: number; }; + url: "/find/file"; }; -export type SyncEventSessionNextTextStarted = { - type: "sync"; - name: "session.next.text.started.1"; - id: string; - seq: number; - aggregateID: "sessionID"; - data: { - timestamp: number; - sessionID: string; - }; +export type FindFilesErrors = { + /** + * Bad request + */ + 400: BadRequestError; }; -export type SyncEventSessionNextTextDelta = { - type: "sync"; - name: "session.next.text.delta.1"; - id: string; - seq: number; - aggregateID: "sessionID"; - data: { - timestamp: number; - sessionID: string; - delta: string; - }; +export type FindFilesError = FindFilesErrors[keyof FindFilesErrors]; +export type FindFilesResponses = { + /** + * File paths + */ + 200: Array; }; -export type SyncEventSessionNextTextEnded = { - type: "sync"; - name: "session.next.text.ended.1"; - id: string; - seq: number; - aggregateID: "sessionID"; - data: { - timestamp: number; - sessionID: string; - text: string; +export type FindFilesResponse = FindFilesResponses[keyof FindFilesResponses]; +export type FindSymbolsData = { + body?: never; + path?: never; + query: { + directory?: string; + workspace?: string; + query: string; }; + url: "/find/symbol"; }; -export type SyncEventSessionNextReasoningStarted = { - type: "sync"; - name: "session.next.reasoning.started.1"; - id: string; - seq: number; - aggregateID: "sessionID"; - data: { - timestamp: number; - sessionID: string; - reasoningID: string; - }; +export type FindSymbolsErrors = { + /** + * Bad request + */ + 400: BadRequestError; }; -export type SyncEventSessionNextReasoningDelta = { - type: "sync"; - name: "session.next.reasoning.delta.1"; - id: string; - seq: number; - aggregateID: "sessionID"; - data: { - timestamp: number; - sessionID: string; - reasoningID: string; - delta: string; +export type FindSymbolsError = FindSymbolsErrors[keyof FindSymbolsErrors]; +export type FindSymbolsResponses = { + /** + * Symbols + */ + 200: Array; +}; +export type FindSymbolsResponse = FindSymbolsResponses[keyof FindSymbolsResponses]; +export type FileListData = { + body?: never; + path?: never; + query: { + directory?: string; + workspace?: string; + path: string; }; + url: "/file"; }; -export type SyncEventSessionNextReasoningEnded = { - type: "sync"; - name: "session.next.reasoning.ended.1"; - id: string; - seq: number; - aggregateID: "sessionID"; - data: { - timestamp: number; - sessionID: string; - reasoningID: string; - text: string; +export type FileListErrors = { + /** + * Bad request + */ + 400: BadRequestError; +}; +export type FileListError = FileListErrors[keyof FileListErrors]; +export type FileListResponses = { + /** + * Files and directories + */ + 200: Array; +}; +export type FileListResponse = FileListResponses[keyof FileListResponses]; +export type FileReadData = { + body?: never; + path?: never; + query: { + directory?: string; + workspace?: string; + path: string; }; + url: "/file/content"; }; -export type SyncEventSessionNextToolInputStarted = { - type: "sync"; - name: "session.next.tool.input.started.1"; - id: string; - seq: number; - aggregateID: "sessionID"; - data: { - timestamp: number; - sessionID: string; - callID: string; - name: string; +export type FileReadErrors = { + /** + * Bad request + */ + 400: BadRequestError; +}; +export type FileReadError = FileReadErrors[keyof FileReadErrors]; +export type FileReadResponses = { + /** + * File content + */ + 200: FileContent; +}; +export type FileReadResponse = FileReadResponses[keyof FileReadResponses]; +export type FileStatusData = { + body?: never; + path?: never; + query?: { + directory?: string; + workspace?: string; }; + url: "/file/status"; }; -export type SyncEventSessionNextToolInputDelta = { - type: "sync"; - name: "session.next.tool.input.delta.1"; - id: string; - seq: number; - aggregateID: "sessionID"; - data: { - timestamp: number; - sessionID: string; - callID: string; - delta: string; - }; +export type FileStatusErrors = { + /** + * Bad request + */ + 400: BadRequestError; }; -export type SyncEventSessionNextToolInputEnded = { - type: "sync"; - name: "session.next.tool.input.ended.1"; - id: string; - seq: number; - aggregateID: "sessionID"; - data: { - timestamp: number; - sessionID: string; - callID: string; - text: string; - }; +export type FileStatusError = FileStatusErrors[keyof FileStatusErrors]; +export type FileStatusResponses = { + /** + * File status + */ + 200: Array; }; -export type SyncEventSessionNextToolCalled = { - type: "sync"; - name: "session.next.tool.called.1"; - id: string; - seq: number; - aggregateID: "sessionID"; - data: { - timestamp: number; - sessionID: string; - callID: string; - tool: string; - input: { - [key: string]: unknown; - }; - provider: { - executed: boolean; - metadata?: { - [key: string]: unknown; - }; - }; +export type FileStatusResponse = FileStatusResponses[keyof FileStatusResponses]; +export type InstanceDisposeData = { + body?: never; + path?: never; + query?: { + directory?: string; + workspace?: string; }; + url: "/instance/dispose"; }; -export type SyncEventSessionNextToolProgress = { - type: "sync"; - name: "session.next.tool.progress.1"; - id: string; - seq: number; - aggregateID: "sessionID"; - data: { - timestamp: number; - sessionID: string; - callID: string; - structured: { - [key: string]: unknown; - }; - content: Array; - }; +export type InstanceDisposeErrors = { + /** + * Bad request + */ + 400: BadRequestError; }; -export type SyncEventSessionNextToolSuccess = { - type: "sync"; - name: "session.next.tool.success.1"; - id: string; - seq: number; - aggregateID: "sessionID"; - data: { - timestamp: number; - sessionID: string; - callID: string; - structured: { - [key: string]: unknown; - }; - content: Array; - provider: { - executed: boolean; - metadata?: { - [key: string]: unknown; - }; - }; - }; +export type InstanceDisposeError = InstanceDisposeErrors[keyof InstanceDisposeErrors]; +export type InstanceDisposeResponses = { + /** + * Instance disposed + */ + 200: boolean; }; -export type SyncEventSessionNextToolFailed = { - type: "sync"; - name: "session.next.tool.failed.1"; - id: string; - seq: number; - aggregateID: "sessionID"; - data: { - timestamp: number; - sessionID: string; - callID: string; - error: SessionErrorUnknown; - provider: { - executed: boolean; - metadata?: { - [key: string]: unknown; - }; - }; +export type InstanceDisposeResponse = InstanceDisposeResponses[keyof InstanceDisposeResponses]; +export type PathGetData = { + body?: never; + path?: never; + query?: { + directory?: string; + workspace?: string; }; + url: "/path"; }; -export type SyncEventSessionNextRetried = { - type: "sync"; - name: "session.next.retried.1"; - id: string; - seq: number; - aggregateID: "sessionID"; - data: { - timestamp: number; - sessionID: string; - attempt: number; - error: SessionNextRetryError; - }; +export type PathGetErrors = { + /** + * Bad request + */ + 400: BadRequestError; }; -export type SyncEventSessionNextCompactionStarted = { - type: "sync"; - name: "session.next.compaction.started.1"; - id: string; - seq: number; - aggregateID: "sessionID"; - data: { - timestamp: number; - sessionID: string; - reason: "auto" | "manual"; - }; +export type PathGetError = PathGetErrors[keyof PathGetErrors]; +export type PathGetResponses = { + /** + * Path + */ + 200: Path; }; -export type SyncEventSessionNextCompactionDelta = { - type: "sync"; - name: "session.next.compaction.delta.1"; - id: string; - seq: number; - aggregateID: "sessionID"; - data: { - timestamp: number; - sessionID: string; - text: string; +export type PathGetResponse = PathGetResponses[keyof PathGetResponses]; +export type VcsGetData = { + body?: never; + path?: never; + query?: { + directory?: string; + workspace?: string; }; + url: "/vcs"; }; -export type SyncEventSessionNextCompactionEnded = { - type: "sync"; - name: "session.next.compaction.ended.1"; - id: string; - seq: number; - aggregateID: "sessionID"; - data: { - timestamp: number; - sessionID: string; - text: string; - include?: string; - }; +export type VcsGetErrors = { + /** + * Bad request + */ + 400: BadRequestError; }; -export type EventServerConnected = { - id: string; - type: "server.connected"; - properties: { - [key: string]: unknown; - }; +export type VcsGetError = VcsGetErrors[keyof VcsGetErrors]; +export type VcsGetResponses = { + /** + * VCS info + */ + 200: VcsInfo; }; -export type EventGlobalDisposed = { - id: string; - type: "global.disposed"; - properties: { - [key: string]: unknown; +export type VcsGetResponse = VcsGetResponses[keyof VcsGetResponses]; +export type VcsStatusData = { + body?: never; + path?: never; + query?: { + directory?: string; + workspace?: string; }; + url: "/vcs/status"; }; -export type EventServerInstanceDisposed = { - id: string; - type: "server.instance.disposed"; - properties: { - directory: string; - }; +export type VcsStatusErrors = { + /** + * Bad request + */ + 400: BadRequestError; }; -export type EventFileEdited = { - id: string; - type: "file.edited"; - properties: { - file: string; - }; +export type VcsStatusError = VcsStatusErrors[keyof VcsStatusErrors]; +export type VcsStatusResponses = { + /** + * VCS status + */ + 200: Array; }; -export type EventFileWatcherUpdated = { - id: string; - type: "file.watcher.updated"; - properties: { - file: string; - event: "add" | "change" | "unlink"; +export type VcsStatusResponse = VcsStatusResponses[keyof VcsStatusResponses]; +export type VcsDiffData = { + body?: never; + path?: never; + query: { + directory?: string; + workspace?: string; + mode: "git" | "branch"; + context?: number; }; + url: "/vcs/diff"; }; -export type EventLspClientDiagnostics = { - id: string; - type: "lsp.client.diagnostics"; - properties: { - serverID: string; - path: string; - }; +export type VcsDiffErrors = { + /** + * Bad request + */ + 400: BadRequestError; }; -export type EventLspUpdated = { - id: string; - type: "lsp.updated"; - properties: { - [key: string]: unknown; - }; +export type VcsDiffError = VcsDiffErrors[keyof VcsDiffErrors]; +export type VcsDiffResponses = { + /** + * VCS diff + */ + 200: Array; }; -export type EventMessagePartDelta = { - id: string; - type: "message.part.delta"; - properties: { - sessionID: string; - messageID: string; - partID: string; - field: string; - delta: string; +export type VcsDiffResponse = VcsDiffResponses[keyof VcsDiffResponses]; +export type VcsDiffRawData = { + body?: never; + path?: never; + query?: { + directory?: string; + workspace?: string; }; + url: "/vcs/diff/raw"; }; -export type EventPermissionAsked = { - id: string; - type: "permission.asked"; - properties: PermissionRequest; +export type VcsDiffRawErrors = { + /** + * Bad request + */ + 400: BadRequestError; }; -export type EventPermissionReplied = { - id: string; - type: "permission.replied"; - properties: { - sessionID: string; - requestID: string; - reply: "once" | "always" | "reject"; - }; +export type VcsDiffRawError = VcsDiffRawErrors[keyof VcsDiffRawErrors]; +export type VcsDiffRawResponses = { + /** + * Raw VCS diff + */ + 200: string; }; -export type EventSessionDiff = { - id: string; - type: "session.diff"; - properties: { - sessionID: string; - diff: Array; +export type VcsDiffRawResponse = VcsDiffRawResponses[keyof VcsDiffRawResponses]; +export type VcsApplyData = { + body?: { + patch: string; + }; + path?: never; + query?: { + directory?: string; + workspace?: string; }; + url: "/vcs/apply"; }; -export type EventSessionError = { - id: string; - type: "session.error"; - properties: { - sessionID?: string; - error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | StructuredOutputError | ContextOverflowError | ApiError; +export type VcsApplyErrors = { + /** + * VcsApplyError | InvalidRequestError + */ + 400: VcsApplyError | InvalidRequestError; +}; +export type VcsApplyError2 = VcsApplyErrors[keyof VcsApplyErrors]; +export type VcsApplyResponses = { + /** + * VCS patch applied + */ + 200: { + applied: boolean; }; }; -export type EventQuestionAsked = { - id: string; - type: "question.asked"; - properties: QuestionRequest; +export type VcsApplyResponse = VcsApplyResponses[keyof VcsApplyResponses]; +export type CommandListData = { + body?: never; + path?: never; + query?: { + directory?: string; + workspace?: string; + }; + url: "/command"; }; -export type EventQuestionReplied = { - id: string; - type: "question.replied"; - properties: QuestionReplied; +export type CommandListErrors = { + /** + * Bad request + */ + 400: BadRequestError; }; -export type EventQuestionRejected = { - id: string; - type: "question.rejected"; - properties: QuestionRejected; +export type CommandListError = CommandListErrors[keyof CommandListErrors]; +export type CommandListResponses = { + /** + * List of commands + */ + 200: Array; }; -export type EventTodoUpdated = { - id: string; - type: "todo.updated"; - properties: { - sessionID: string; - todos: Array; +export type CommandListResponse = CommandListResponses[keyof CommandListResponses]; +export type AppAgentsData = { + body?: never; + path?: never; + query?: { + directory?: string; + workspace?: string; }; + url: "/agent"; }; -export type EventSessionStatus = { - id: string; - type: "session.status"; - properties: { - sessionID: string; - status: SessionStatus; - }; +export type AppAgentsErrors = { + /** + * Bad request + */ + 400: BadRequestError; }; -export type EventSessionIdle = { - id: string; - type: "session.idle"; - properties: { - sessionID: string; - }; +export type AppAgentsError = AppAgentsErrors[keyof AppAgentsErrors]; +export type AppAgentsResponses = { + /** + * List of agents + */ + 200: Array; }; -export type EventMcpToolsChanged = { - id: string; - type: "mcp.tools.changed"; - properties: { - server: string; +export type AppAgentsResponse = AppAgentsResponses[keyof AppAgentsResponses]; +export type AppSkillsData = { + body?: never; + path?: never; + query?: { + directory?: string; + workspace?: string; }; + url: "/skill"; }; -export type EventMcpBrowserOpenFailed = { - id: string; - type: "mcp.browser.open.failed"; - properties: { - mcpName: string; - url: string; - }; +export type AppSkillsErrors = { + /** + * Bad request + */ + 400: BadRequestError; }; -export type EventCommandExecuted = { - id: string; - type: "command.executed"; - properties: { +export type AppSkillsError = AppSkillsErrors[keyof AppSkillsErrors]; +export type AppSkillsResponses = { + /** + * List of skills + */ + 200: Array<{ name: string; - sessionID: string; - arguments: string; - messageID: string; + description?: string; + location: string; + content: string; + }>; +}; +export type AppSkillsResponse = AppSkillsResponses[keyof AppSkillsResponses]; +export type LspStatusData = { + body?: never; + path?: never; + query?: { + directory?: string; + workspace?: string; }; + url: "/lsp"; }; -export type EventProjectUpdated = { - id: string; - type: "project.updated"; - properties: Project; +export type LspStatusErrors = { + /** + * Bad request + */ + 400: BadRequestError; }; -export type EventSessionCompacted = { - id: string; - type: "session.compacted"; - properties: { - sessionID: string; - }; +export type LspStatusError = LspStatusErrors[keyof LspStatusErrors]; +export type LspStatusResponses = { + /** + * LSP server status + */ + 200: Array; }; -export type EventVcsBranchUpdated = { - id: string; - type: "vcs.branch.updated"; - properties: { - branch?: string; +export type LspStatusResponse = LspStatusResponses[keyof LspStatusResponses]; +export type FormatterStatusData = { + body?: never; + path?: never; + query?: { + directory?: string; + workspace?: string; }; + url: "/formatter"; }; -export type EventWorkspaceReady = { - id: string; - type: "workspace.ready"; - properties: { - name: string; - }; +export type FormatterStatusErrors = { + /** + * Bad request + */ + 400: BadRequestError; }; -export type EventWorkspaceFailed = { - id: string; - type: "workspace.failed"; - properties: { - message: string; - }; +export type FormatterStatusError = FormatterStatusErrors[keyof FormatterStatusErrors]; +export type FormatterStatusResponses = { + /** + * Formatter status + */ + 200: Array; }; -export type EventWorkspaceStatus = { - id: string; - type: "workspace.status"; - properties: { - workspaceID: string; - status: "connected" | "connecting" | "disconnected" | "error"; +export type FormatterStatusResponse = FormatterStatusResponses[keyof FormatterStatusResponses]; +export type McpStatusData = { + body?: never; + path?: never; + query?: { + directory?: string; + workspace?: string; }; + url: "/mcp"; }; -export type EventWorktreeReady = { - id: string; - type: "worktree.ready"; - properties: { - name: string; - branch?: string; - }; +export type McpStatusErrors = { + /** + * Bad request + */ + 400: BadRequestError; }; -export type EventWorktreeFailed = { - id: string; - type: "worktree.failed"; - properties: { - message: string; +export type McpStatusError = McpStatusErrors[keyof McpStatusErrors]; +export type McpStatusResponses = { + /** + * MCP server status + */ + 200: { + [key: string]: McpStatus; }; }; -export type EventPtyCreated = { - id: string; - type: "pty.created"; - properties: { - info: Pty; +export type McpStatusResponse = McpStatusResponses[keyof McpStatusResponses]; +export type McpAddData = { + body?: { + name: string; + config: McpLocalConfig | McpRemoteConfig; }; -}; -export type EventPtyUpdated = { - id: string; - type: "pty.updated"; - properties: { - info: Pty; + path?: never; + query?: { + directory?: string; + workspace?: string; }; + url: "/mcp"; }; -export type EventPtyExited = { - id: string; - type: "pty.exited"; - properties: { - id: string; - exitCode: number; - }; +export type McpAddErrors = { + /** + * BadRequest | InvalidRequestError + */ + 400: EffectHttpApiErrorBadRequest | InvalidRequestError; }; -export type EventPtyDeleted = { - id: string; - type: "pty.deleted"; - properties: { - id: string; +export type McpAddError = McpAddErrors[keyof McpAddErrors]; +export type McpAddResponses = { + /** + * MCP server added successfully + */ + 200: { + [key: string]: McpStatus; }; }; -export type EventInstallationUpdated = { - id: string; - type: "installation.updated"; - properties: { - version: string; +export type McpAddResponse = McpAddResponses[keyof McpAddResponses]; +export type McpAuthRemoveData = { + body?: never; + path: { + name: string; }; -}; -export type EventInstallationUpdateAvailable = { - id: string; - type: "installation.update-available"; - properties: { - version: string; + query?: { + directory?: string; + workspace?: string; }; + url: "/mcp/{name}/auth"; }; -export type EventMessageUpdated = { - id: string; - type: "message.updated"; - properties: { - sessionID: string; - info: Message; - }; +export type McpAuthRemoveErrors = { + /** + * Bad request + */ + 400: BadRequestError; + /** + * McpServerNotFoundError + */ + 404: McpServerNotFoundError; }; -export type EventMessageRemoved = { - id: string; - type: "message.removed"; - properties: { - sessionID: string; - messageID: string; +export type McpAuthRemoveError = McpAuthRemoveErrors[keyof McpAuthRemoveErrors]; +export type McpAuthRemoveResponses = { + /** + * OAuth credentials removed + */ + 200: { + success: true; }; }; -export type EventMessagePartUpdated = { - id: string; - type: "message.part.updated"; - properties: { - sessionID: string; - part: Part; - time: number; +export type McpAuthRemoveResponse = McpAuthRemoveResponses[keyof McpAuthRemoveResponses]; +export type McpAuthStartData = { + body?: never; + path: { + name: string; }; -}; -export type EventMessagePartRemoved = { - id: string; - type: "message.part.removed"; - properties: { - sessionID: string; - messageID: string; - partID: string; + query?: { + directory?: string; + workspace?: string; }; + url: "/mcp/{name}/auth"; }; -export type EventSessionCreated = { - id: string; - type: "session.created"; - properties: { - sessionID: string; - info: Session; - }; +export type McpAuthStartErrors = { + /** + * McpUnsupportedOAuthError | InvalidRequestError + */ + 400: McpUnsupportedOAuthError | InvalidRequestError; + /** + * McpServerNotFoundError + */ + 404: McpServerNotFoundError; }; -export type EventSessionUpdated = { - id: string; - type: "session.updated"; - properties: { - sessionID: string; - info: Session; +export type McpAuthStartError = McpAuthStartErrors[keyof McpAuthStartErrors]; +export type McpAuthStartResponses = { + /** + * OAuth flow started + */ + 200: { + authorizationUrl: string; + oauthState: string; }; }; -export type EventSessionDeleted = { - id: string; - type: "session.deleted"; - properties: { - sessionID: string; - info: Session; +export type McpAuthStartResponse = McpAuthStartResponses[keyof McpAuthStartResponses]; +export type McpAuthCallbackData = { + body?: { + code: string; }; -}; -export type EventSessionNextAgentSwitched = { - id: string; - type: "session.next.agent.switched"; - properties: { - timestamp: number; - sessionID: string; - agent: string; + path: { + name: string; }; + query?: { + directory?: string; + workspace?: string; + }; + url: "/mcp/{name}/auth/callback"; }; -export type EventSessionNextModelSwitched = { - id: string; - type: "session.next.model.switched"; - properties: { - timestamp: number; - sessionID: string; - model: { - id: string; - providerID: string; - variant: string; - }; +export type McpAuthCallbackErrors = { + /** + * BadRequest | InvalidRequestError + */ + 400: EffectHttpApiErrorBadRequest | InvalidRequestError; + /** + * McpServerNotFoundError + */ + 404: McpServerNotFoundError; +}; +export type McpAuthCallbackError = McpAuthCallbackErrors[keyof McpAuthCallbackErrors]; +export type McpAuthCallbackResponses = { + /** + * OAuth authentication completed + */ + 200: McpStatus; +}; +export type McpAuthCallbackResponse = McpAuthCallbackResponses[keyof McpAuthCallbackResponses]; +export type McpAuthAuthenticateData = { + body?: never; + path: { + name: string; }; + query?: { + directory?: string; + workspace?: string; + }; + url: "/mcp/{name}/auth/authenticate"; }; -export type PromptSource = { - start: number; - end: number; - text: string; +export type McpAuthAuthenticateErrors = { + /** + * McpUnsupportedOAuthError | InvalidRequestError + */ + 400: McpUnsupportedOAuthError | InvalidRequestError; + /** + * McpServerNotFoundError + */ + 404: McpServerNotFoundError; }; -export type PromptFileAttachment = { - uri: string; - mime: string; - name?: string; - description?: string; - source?: PromptSource; +export type McpAuthAuthenticateError = McpAuthAuthenticateErrors[keyof McpAuthAuthenticateErrors]; +export type McpAuthAuthenticateResponses = { + /** + * OAuth authentication completed + */ + 200: McpStatus; }; -export type PromptAgentAttachment = { - name: string; - source?: PromptSource; +export type McpAuthAuthenticateResponse = McpAuthAuthenticateResponses[keyof McpAuthAuthenticateResponses]; +export type McpConnectData = { + body?: never; + path: { + name: string; + }; + query?: { + directory?: string; + workspace?: string; + }; + url: "/mcp/{name}/connect"; }; -export type PromptReferenceAttachment = { - name: string; - kind: "local" | "git" | "invalid"; - uri?: string; - repository?: string; - branch?: string; - target?: string; - targetUri?: string; - problem?: string; - source?: PromptSource; +export type McpConnectErrors = { + /** + * Bad request + */ + 400: BadRequestError; + /** + * McpServerNotFoundError + */ + 404: McpServerNotFoundError; }; -export type EventSessionNextPrompted = { - id: string; - type: "session.next.prompted"; - properties: { - timestamp: number; - sessionID: string; - prompt: Prompt; +export type McpConnectError = McpConnectErrors[keyof McpConnectErrors]; +export type McpConnectResponses = { + /** + * MCP server connected successfully + */ + 200: boolean; +}; +export type McpConnectResponse = McpConnectResponses[keyof McpConnectResponses]; +export type McpDisconnectData = { + body?: never; + path: { + name: string; }; -}; -export type EventSessionNextSynthetic = { - id: string; - type: "session.next.synthetic"; - properties: { - timestamp: number; - sessionID: string; - text: string; + query?: { + directory?: string; + workspace?: string; }; + url: "/mcp/{name}/disconnect"; }; -export type EventSessionNextShellStarted = { - id: string; - type: "session.next.shell.started"; - properties: { - timestamp: number; - sessionID: string; - callID: string; - command: string; - }; +export type McpDisconnectErrors = { + /** + * Bad request + */ + 400: BadRequestError; + /** + * McpServerNotFoundError + */ + 404: McpServerNotFoundError; }; -export type EventSessionNextShellEnded = { - id: string; - type: "session.next.shell.ended"; - properties: { - timestamp: number; - sessionID: string; - callID: string; - output: string; - }; +export type McpDisconnectError = McpDisconnectErrors[keyof McpDisconnectErrors]; +export type McpDisconnectResponses = { + /** + * MCP server disconnected successfully + */ + 200: boolean; }; -export type EventSessionNextStepStarted = { - id: string; - type: "session.next.step.started"; - properties: { - timestamp: number; - sessionID: string; - agent: string; - model: { - id: string; - providerID: string; - variant: string; - }; - snapshot?: string; +export type McpDisconnectResponse = McpDisconnectResponses[keyof McpDisconnectResponses]; +export type ProjectListData = { + body?: never; + path?: never; + query?: { + directory?: string; + workspace?: string; }; + url: "/project"; }; -export type EventSessionNextStepEnded = { - id: string; - type: "session.next.step.ended"; - properties: { - timestamp: number; - sessionID: string; - finish: string; - cost: number; - tokens: { - input: number; - output: number; - reasoning: number; - cache: { - read: number; - write: number; - }; - }; - snapshot?: string; - }; +export type ProjectListErrors = { + /** + * Bad request + */ + 400: BadRequestError; }; -export type SessionErrorUnknown = { - type: "unknown"; - message: string; +export type ProjectListError = ProjectListErrors[keyof ProjectListErrors]; +export type ProjectListResponses = { + /** + * List of projects + */ + 200: Array; }; -export type EventSessionNextStepFailed = { - id: string; - type: "session.next.step.failed"; - properties: { - timestamp: number; - sessionID: string; - error: SessionErrorUnknown; +export type ProjectListResponse = ProjectListResponses[keyof ProjectListResponses]; +export type ProjectCurrentData = { + body?: never; + path?: never; + query?: { + directory?: string; + workspace?: string; }; + url: "/project/current"; }; -export type EventSessionNextTextStarted = { - id: string; - type: "session.next.text.started"; - properties: { - timestamp: number; - sessionID: string; - }; +export type ProjectCurrentErrors = { + /** + * Bad request + */ + 400: BadRequestError; }; -export type EventSessionNextTextDelta = { - id: string; - type: "session.next.text.delta"; - properties: { - timestamp: number; - sessionID: string; - delta: string; - }; +export type ProjectCurrentError = ProjectCurrentErrors[keyof ProjectCurrentErrors]; +export type ProjectCurrentResponses = { + /** + * Current project information + */ + 200: Project; }; -export type EventSessionNextTextEnded = { - id: string; - type: "session.next.text.ended"; - properties: { - timestamp: number; - sessionID: string; - text: string; +export type ProjectCurrentResponse = ProjectCurrentResponses[keyof ProjectCurrentResponses]; +export type ProjectInitGitData = { + body?: never; + path?: never; + query?: { + directory?: string; + workspace?: string; }; + url: "/project/git/init"; }; -export type EventSessionNextReasoningStarted = { - id: string; - type: "session.next.reasoning.started"; - properties: { - timestamp: number; - sessionID: string; - reasoningID: string; - }; +export type ProjectInitGitErrors = { + /** + * Bad request + */ + 400: BadRequestError; }; -export type EventSessionNextReasoningDelta = { - id: string; - type: "session.next.reasoning.delta"; - properties: { - timestamp: number; - sessionID: string; - reasoningID: string; - delta: string; - }; +export type ProjectInitGitError = ProjectInitGitErrors[keyof ProjectInitGitErrors]; +export type ProjectInitGitResponses = { + /** + * Project information after git initialization + */ + 200: Project; }; -export type EventSessionNextReasoningEnded = { - id: string; - type: "session.next.reasoning.ended"; - properties: { - timestamp: number; - sessionID: string; - reasoningID: string; - text: string; +export type ProjectInitGitResponse = ProjectInitGitResponses[keyof ProjectInitGitResponses]; +export type ProjectUpdateData = { + body?: { + name?: string; + icon?: ProjectIcon; + commands?: ProjectCommands; }; -}; -export type EventSessionNextToolInputStarted = { - id: string; - type: "session.next.tool.input.started"; - properties: { - timestamp: number; - sessionID: string; - callID: string; - name: string; + path: { + projectID: string; }; -}; -export type EventSessionNextToolInputDelta = { - id: string; - type: "session.next.tool.input.delta"; - properties: { - timestamp: number; - sessionID: string; - callID: string; - delta: string; + query?: { + directory?: string; + workspace?: string; }; + url: "/project/{projectID}"; }; -export type EventSessionNextToolInputEnded = { - id: string; - type: "session.next.tool.input.ended"; - properties: { - timestamp: number; - sessionID: string; - callID: string; - text: string; - }; +export type ProjectUpdateErrors = { + /** + * BadRequest | InvalidRequestError + */ + 400: EffectHttpApiErrorBadRequest | InvalidRequestError; + /** + * ProjectNotFoundError + */ + 404: ProjectNotFoundError; }; -export type EventSessionNextToolCalled = { - id: string; - type: "session.next.tool.called"; - properties: { - timestamp: number; - sessionID: string; - callID: string; - tool: string; - input: { - [key: string]: unknown; - }; - provider: { - executed: boolean; - metadata?: { - [key: string]: unknown; - }; - }; +export type ProjectUpdateError = ProjectUpdateErrors[keyof ProjectUpdateErrors]; +export type ProjectUpdateResponses = { + /** + * Updated project information + */ + 200: Project; +}; +export type ProjectUpdateResponse = ProjectUpdateResponses[keyof ProjectUpdateResponses]; +export type ProjectDirectoriesData = { + body?: never; + path: { + projectID: string; + }; + query?: { + directory?: string; + workspace?: string; }; + url: "/project/{projectID}/directories"; }; -export type ToolTextContent = { - type: "text"; - text: string; +export type ProjectDirectoriesErrors = { + /** + * Bad request + */ + 400: BadRequestError; }; -export type ToolFileContent = { - type: "file"; - uri: string; - mime: string; - name?: string; +export type ProjectDirectoriesError = ProjectDirectoriesErrors[keyof ProjectDirectoriesErrors]; +export type ProjectDirectoriesResponses = { + /** + * Project directories + */ + 200: ProjectDirectories; }; -export type EventSessionNextToolProgress = { - id: string; - type: "session.next.tool.progress"; - properties: { - timestamp: number; - sessionID: string; - callID: string; - structured: { - [key: string]: unknown; - }; - content: Array; +export type ProjectDirectoriesResponse = ProjectDirectoriesResponses[keyof ProjectDirectoriesResponses]; +export type ExperimentalProjectCopyGenerateNameData = { + body?: { + context?: string; }; -}; -export type EventSessionNextToolSuccess = { - id: string; - type: "session.next.tool.success"; - properties: { - timestamp: number; - sessionID: string; - callID: string; - structured: { - [key: string]: unknown; - }; - content: Array; - provider: { - executed: boolean; - metadata?: { - [key: string]: unknown; - }; - }; + path: { + projectID: string; }; -}; -export type EventSessionNextToolFailed = { - id: string; - type: "session.next.tool.failed"; - properties: { - timestamp: number; - sessionID: string; - callID: string; - error: SessionErrorUnknown; - provider: { - executed: boolean; - metadata?: { - [key: string]: unknown; - }; - }; + query?: { + directory?: string; + workspace?: string; }; + url: "/experimental/project/{projectID}/copy/generate-name"; }; -export type SessionNextRetryError = { - message: string; - statusCode?: number; - isRetryable: boolean; - responseHeaders?: { - [key: string]: string; - }; - responseBody?: string; - metadata?: { - [key: string]: string; - }; +export type ExperimentalProjectCopyGenerateNameErrors = { + /** + * Bad request + */ + 400: BadRequestError; }; -export type EventSessionNextRetried = { - id: string; - type: "session.next.retried"; - properties: { - timestamp: number; - sessionID: string; - attempt: number; - error: SessionNextRetryError; +export type ExperimentalProjectCopyGenerateNameError = ExperimentalProjectCopyGenerateNameErrors[keyof ExperimentalProjectCopyGenerateNameErrors]; +export type ExperimentalProjectCopyGenerateNameResponses = { + /** + * Success + */ + 200: { + name: string; }; }; -export type EventSessionNextCompactionStarted = { - id: string; - type: "session.next.compaction.started"; - properties: { - timestamp: number; - sessionID: string; - reason: "auto" | "manual"; +export type ExperimentalProjectCopyGenerateNameResponse = ExperimentalProjectCopyGenerateNameResponses[keyof ExperimentalProjectCopyGenerateNameResponses]; +export type PtyShellsData = { + body?: never; + path?: never; + query?: { + directory?: string; + workspace?: string; }; + url: "/pty/shells"; }; -export type EventSessionNextCompactionDelta = { - id: string; - type: "session.next.compaction.delta"; - properties: { - timestamp: number; - sessionID: string; - text: string; - }; +export type PtyShellsErrors = { + /** + * Bad request + */ + 400: BadRequestError; }; -export type EventSessionNextCompactionEnded = { - id: string; - type: "session.next.compaction.ended"; - properties: { - timestamp: number; - sessionID: string; - text: string; - include?: string; - }; +export type PtyShellsError = PtyShellsErrors[keyof PtyShellsErrors]; +export type PtyShellsResponses = { + /** + * List of shells + */ + 200: Array<{ + path: string; + name: string; + acceptable: boolean; + }>; }; -export type ModelV2Info = { - id: string; - apiID: string; - providerID: string; - family?: string; - name: string; - endpoint: { - type: "unknown"; - } | { - type: "openai/responses"; - url: string; - websocket?: boolean; - } | { - type: "openai/completions"; - url: string; - reasoning?: { - type: "reasoning_content"; - } | { - type: "reasoning_details"; - }; - } | { - type: "anthropic/messages"; - url: string; - } | { - type: "aisdk"; - package: string; - url?: string; - }; - capabilities: { - tools: boolean; - input: Array; - output: Array; - }; - options: { - headers: { - [key: string]: string; - }; - body: { - [key: string]: unknown; - }; - aisdk: { - provider: { - [key: string]: unknown; - }; - request: { - [key: string]: unknown; - }; - }; - variant?: string; +export type PtyShellsResponse = PtyShellsResponses[keyof PtyShellsResponses]; +export type PtyListData = { + body?: never; + path?: never; + query?: { + directory?: string; + workspace?: string; }; - variants: Array<{ - id: string; - headers: { + url: "/pty"; +}; +export type PtyListErrors = { + /** + * Bad request + */ + 400: BadRequestError; +}; +export type PtyListError = PtyListErrors[keyof PtyListErrors]; +export type PtyListResponses = { + /** + * List of sessions + */ + 200: Array; +}; +export type PtyListResponse = PtyListResponses[keyof PtyListResponses]; +export type PtyCreateData = { + body?: { + command?: string; + args?: Array; + cwd?: string; + title?: string; + env?: { [key: string]: string; }; - body: { - [key: string]: unknown; - }; - aisdk: { - provider: { - [key: string]: unknown; - }; - request: { - [key: string]: unknown; - }; - }; - }>; - time: { - released: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN"; }; - cost: Array<{ - tier?: { - type: "context"; - size: number; - }; - input: number; - output: number; - cache: { - read: number; - write: number; - }; - }>; - status: "alpha" | "beta" | "deprecated" | "active"; - enabled: boolean; - limit: { - context: number; - input?: number; - output: number; + path?: never; + query?: { + directory?: string; + workspace?: string; }; + url: "/pty"; }; -export type EventCatalogModelUpdated = { - id: string; - type: "catalog.model.updated"; - properties: { - model: ModelV2Info; - }; +export type PtyCreateErrors = { + /** + * BadRequest | InvalidRequestError + */ + 400: EffectHttpApiErrorBadRequest | InvalidRequestError; }; -export type SessionInfo = { - id: string; - parentID?: string; - projectID: string; - workspaceID?: string; - path?: string; - agent?: string; - model?: { - id: string; - providerID: string; - variant: string; - }; - cost: number; - tokens: { - input: number; - output: number; - reasoning: number; - cache: { - read: number; - write: number; - }; +export type PtyCreateError = PtyCreateErrors[keyof PtyCreateErrors]; +export type PtyCreateResponses = { + /** + * Created session + */ + 200: Pty; +}; +export type PtyCreateResponse = PtyCreateResponses[keyof PtyCreateResponses]; +export type PtyRemoveData = { + body?: never; + path: { + ptyID: string; }; - time: { - created: number; - updated: number; - archived?: number; + query?: { + directory?: string; + workspace?: string; }; - title: string; + url: "/pty/{ptyID}"; }; -export type SessionDelivery = "immediate" | "deferred"; -export type SessionMessageAgentSwitched = { - id: string; - metadata?: { - [key: string]: unknown; +export type PtyRemoveErrors = { + /** + * Bad request + */ + 400: BadRequestError; + /** + * PtyNotFoundError + */ + 404: PtyNotFoundError; +}; +export type PtyRemoveError = PtyRemoveErrors[keyof PtyRemoveErrors]; +export type PtyRemoveResponses = { + /** + * Session removed + */ + 200: boolean; +}; +export type PtyRemoveResponse = PtyRemoveResponses[keyof PtyRemoveResponses]; +export type PtyGetData = { + body?: never; + path: { + ptyID: string; }; - time: { - created: number; + query?: { + directory?: string; + workspace?: string; }; - type: "agent-switched"; - agent: string; + url: "/pty/{ptyID}"; }; -export type SessionMessageModelSwitched = { - id: string; - metadata?: { - [key: string]: unknown; +export type PtyGetErrors = { + /** + * Bad request + */ + 400: BadRequestError; + /** + * PtyNotFoundError + */ + 404: PtyNotFoundError; +}; +export type PtyGetError = PtyGetErrors[keyof PtyGetErrors]; +export type PtyGetResponses = { + /** + * Session info + */ + 200: Pty; +}; +export type PtyGetResponse = PtyGetResponses[keyof PtyGetResponses]; +export type PtyUpdateData = { + body?: { + title?: string; + size?: { + rows: number; + cols: number; + }; }; - time: { - created: number; + path: { + ptyID: string; }; - type: "model-switched"; - model: { - id: string; - providerID: string; - variant: string; + query?: { + directory?: string; + workspace?: string; }; + url: "/pty/{ptyID}"; }; -export type SessionMessageUser = { - id: string; - metadata?: { - [key: string]: unknown; - }; - time: { - created: number; - }; - text: string; - files?: Array; - agents?: Array; - references?: Array; - type: "user"; +export type PtyUpdateErrors = { + /** + * BadRequest | InvalidRequestError + */ + 400: EffectHttpApiErrorBadRequest | InvalidRequestError; + /** + * PtyNotFoundError + */ + 404: PtyNotFoundError; }; -export type SessionMessageSynthetic = { - id: string; - metadata?: { - [key: string]: unknown; - }; - time: { - created: number; - }; - sessionID: string; - text: string; - type: "synthetic"; +export type PtyUpdateError = PtyUpdateErrors[keyof PtyUpdateErrors]; +export type PtyUpdateResponses = { + /** + * Updated session + */ + 200: Pty; }; -export type SessionMessageShell = { - id: string; - metadata?: { - [key: string]: unknown; +export type PtyUpdateResponse = PtyUpdateResponses[keyof PtyUpdateResponses]; +export type PtyConnectTokenData = { + body?: never; + path: { + ptyID: string; }; - time: { - created: number; - completed?: number; + query?: { + directory?: string; + workspace?: string; }; - type: "shell"; - callID: string; - command: string; - output: string; -}; -export type SessionMessageAssistantText = { - type: "text"; - text: string; + url: "/pty/{ptyID}/connect-token"; }; -export type SessionMessageAssistantReasoning = { - type: "reasoning"; - id: string; - text: string; +export type PtyConnectTokenErrors = { + /** + * Bad request + */ + 400: BadRequestError; + /** + * PtyForbiddenError + */ + 403: PtyForbiddenError; + /** + * PtyNotFoundError + */ + 404: PtyNotFoundError; }; -export type SessionMessageToolStatePending = { - status: "pending"; - input: string; +export type PtyConnectTokenError = PtyConnectTokenErrors[keyof PtyConnectTokenErrors]; +export type PtyConnectTokenResponses = { + /** + * WebSocket connect token + */ + 200: PtyTicketConnectToken; }; -export type SessionMessageToolStateRunning = { - status: "running"; - input: { - [key: string]: unknown; - }; - structured: { - [key: string]: unknown; +export type PtyConnectTokenResponse = PtyConnectTokenResponses[keyof PtyConnectTokenResponses]; +export type QuestionListData = { + body?: never; + path?: never; + query?: { + directory?: string; + workspace?: string; }; - content: Array; + url: "/question"; }; -export type SessionMessageToolStateCompleted = { - status: "completed"; - input: { - [key: string]: unknown; - }; - attachments?: Array; - content: Array; - structured: { - [key: string]: unknown; - }; +export type QuestionListErrors = { + /** + * Bad request + */ + 400: BadRequestError; }; -export type SessionMessageToolStateError = { - status: "error"; - input: { - [key: string]: unknown; +export type QuestionListError = QuestionListErrors[keyof QuestionListErrors]; +export type QuestionListResponses = { + /** + * List of pending questions + */ + 200: Array; +}; +export type QuestionListResponse = QuestionListResponses[keyof QuestionListResponses]; +export type QuestionReplyData = { + body?: { + /** + * User answers in order of questions (each answer is an array of selected labels) + */ + answers: Array; }; - content: Array; - structured: { - [key: string]: unknown; + path: { + requestID: string; }; - error: SessionErrorUnknown; + query?: { + directory?: string; + workspace?: string; + }; + url: "/question/{requestID}/reply"; }; -export type SessionMessageAssistantTool = { - type: "tool"; - id: string; - name: string; - provider?: { - executed: boolean; - metadata?: { - [key: string]: unknown; - }; +export type QuestionReplyErrors = { + /** + * BadRequest | InvalidRequestError + */ + 400: EffectHttpApiErrorBadRequest | InvalidRequestError; + /** + * QuestionNotFoundError + */ + 404: QuestionNotFoundError; +}; +export type QuestionReplyError = QuestionReplyErrors[keyof QuestionReplyErrors]; +export type QuestionReplyResponses = { + /** + * Question answered successfully + */ + 200: boolean; +}; +export type QuestionReplyResponse = QuestionReplyResponses[keyof QuestionReplyResponses]; +export type QuestionRejectData = { + body?: never; + path: { + requestID: string; }; - state: SessionMessageToolStatePending | SessionMessageToolStateRunning | SessionMessageToolStateCompleted | SessionMessageToolStateError; - time: { - created: number; - ran?: number; - completed?: number; - pruned?: number; + query?: { + directory?: string; + workspace?: string; }; + url: "/question/{requestID}/reject"; }; -export type SessionMessageAssistant = { - id: string; - metadata?: { - [key: string]: unknown; - }; - time: { - created: number; - completed?: number; +export type QuestionRejectErrors = { + /** + * BadRequest | InvalidRequestError + */ + 400: EffectHttpApiErrorBadRequest | InvalidRequestError; + /** + * QuestionNotFoundError + */ + 404: QuestionNotFoundError; +}; +export type QuestionRejectError = QuestionRejectErrors[keyof QuestionRejectErrors]; +export type QuestionRejectResponses = { + /** + * Question rejected successfully + */ + 200: boolean; +}; +export type QuestionRejectResponse = QuestionRejectResponses[keyof QuestionRejectResponses]; +export type PermissionListData = { + body?: never; + path?: never; + query?: { + directory?: string; + workspace?: string; }; - type: "assistant"; - agent: string; - model: { - id: string; - providerID: string; - variant: string; + url: "/permission"; +}; +export type PermissionListErrors = { + /** + * Bad request + */ + 400: BadRequestError; +}; +export type PermissionListError = PermissionListErrors[keyof PermissionListErrors]; +export type PermissionListResponses = { + /** + * List of pending permissions + */ + 200: Array; +}; +export type PermissionListResponse = PermissionListResponses[keyof PermissionListResponses]; +export type PermissionReplyData = { + body?: { + reply: "once" | "always" | "reject"; + message?: string; }; - content: Array; - snapshot?: { - start?: string; - end?: string; + path: { + requestID: string; }; - finish?: string; - cost?: number; - tokens?: { - input: number; - output: number; - reasoning: number; - cache: { - read: number; - write: number; - }; + query?: { + directory?: string; + workspace?: string; }; - error?: SessionErrorUnknown; + url: "/permission/{requestID}/reply"; }; -export type SessionMessageCompaction = { - type: "compaction"; - reason: "auto" | "manual"; - summary: string; - include?: string; - id: string; - metadata?: { - [key: string]: unknown; - }; - time: { - created: number; - }; +export type PermissionReplyErrors = { + /** + * BadRequest | InvalidRequestError + */ + 400: EffectHttpApiErrorBadRequest | InvalidRequestError; + /** + * PermissionNotFoundError + */ + 404: PermissionNotFoundError; }; -export type SessionMessage = SessionMessageAgentSwitched | SessionMessageModelSwitched | SessionMessageUser | SessionMessageSynthetic | SessionMessageShell | SessionMessageAssistant | SessionMessageCompaction; -export type ProviderV2Info = { - id: string; - name: string; - enabled: false | { - via: "env"; - name: string; - } | { - via: "auth"; - service: string; - } | { - via: "custom"; - data: { - [key: string]: unknown; - }; - }; - env: Array; - endpoint: { - type: "unknown"; - } | { - type: "openai/responses"; - url: string; - websocket?: boolean; - } | { - type: "openai/completions"; - url: string; - reasoning?: { - type: "reasoning_content"; - } | { - type: "reasoning_details"; - }; - } | { - type: "anthropic/messages"; - url: string; - } | { - type: "aisdk"; - package: string; - url?: string; +export type PermissionReplyError = PermissionReplyErrors[keyof PermissionReplyErrors]; +export type PermissionReplyResponses = { + /** + * Permission processed successfully + */ + 200: boolean; +}; +export type PermissionReplyResponse = PermissionReplyResponses[keyof PermissionReplyResponses]; +export type ProviderListData = { + body?: never; + path?: never; + query?: { + directory?: string; + workspace?: string; }; - options: { - headers: { + url: "/provider"; +}; +export type ProviderListErrors = { + /** + * Bad request + */ + 400: BadRequestError; +}; +export type ProviderListError = ProviderListErrors[keyof ProviderListErrors]; +export type ProviderListResponses = { + /** + * List of providers + */ + 200: { + all: Array; + default: { [key: string]: string; }; - body: { - [key: string]: unknown; - }; - aisdk: { - provider: { - [key: string]: unknown; - }; - request: { - [key: string]: unknown; - }; - }; + connected: Array; }; }; -export type EventTuiToastShow1 = { - id: string; - type: "tui.toast.show"; - properties: { - title?: string; - message: string; - variant: "info" | "success" | "warning" | "error"; - duration?: number; +export type ProviderListResponse = ProviderListResponses[keyof ProviderListResponses]; +export type ProviderAuthData = { + body?: never; + path?: never; + query?: { + directory?: string; + workspace?: string; }; + url: "/provider/auth"; }; -export type ModelV2Info1 = { - id: string; - apiID: string; - providerID: string; - family?: string; - name: string; - endpoint: { - type: "unknown"; - } | { - type: "openai/responses"; - url: string; - websocket?: boolean; - } | { - type: "openai/completions"; - url: string; - reasoning?: { - type: "reasoning_content"; - } | { - type: "reasoning_details"; - }; - } | { - type: "anthropic/messages"; - url: string; - } | { - type: "aisdk"; - package: string; - url?: string; - }; - capabilities: { - tools: boolean; - input: Array; - output: Array; - }; - options: { - headers: { - [key: string]: string; - }; - body: { - [key: string]: unknown; - }; - aisdk: { - provider: { - [key: string]: unknown; - }; - request: { - [key: string]: unknown; - }; - }; - variant?: string; +export type ProviderAuthErrors = { + /** + * Bad request + */ + 400: BadRequestError; +}; +export type ProviderAuthError2 = ProviderAuthErrors[keyof ProviderAuthErrors]; +export type ProviderAuthResponses = { + /** + * Provider auth methods + */ + 200: { + [key: string]: Array; }; - variants: Array<{ - id: string; - headers: { +}; +export type ProviderAuthResponse = ProviderAuthResponses[keyof ProviderAuthResponses]; +export type ProviderOauthAuthorizeData = { + body?: { + /** + * Auth method index + */ + method: number; + inputs?: { [key: string]: string; }; - body: { - [key: string]: unknown; - }; - aisdk: { - provider: { - [key: string]: unknown; - }; - request: { - [key: string]: unknown; - }; - }; - }>; - time: { - released: number | "NaN" | "Infinity" | "-Infinity"; }; - cost: Array<{ - tier?: { - type: "context"; - size: number; - }; - input: number; - output: number; - cache: { - read: number; - write: number; - }; - }>; - status: "alpha" | "beta" | "deprecated" | "active"; - enabled: boolean; - limit: { - context: number; - input?: number; - output: number; + path: { + providerID: string; }; -}; -export type BadRequestError = { - name: "BadRequest"; - data: { - message: string; - kind?: "Params" | "Headers" | "Query" | "Body" | "Payload"; + query?: { + directory?: string; + workspace?: string; }; + url: "/provider/{providerID}/oauth/authorize"; }; -export type AuthRemoveData = { - body?: never; +export type ProviderOauthAuthorizeErrors = { + /** + * ProviderAuthError | InvalidRequestError + */ + 400: ProviderAuthError1 | InvalidRequestError; +}; +export type ProviderOauthAuthorizeError = ProviderOauthAuthorizeErrors[keyof ProviderOauthAuthorizeErrors]; +export type ProviderOauthAuthorizeResponses = { + /** + * Authorization URL and method + */ + 200: ProviderAuthAuthorization; +}; +export type ProviderOauthAuthorizeResponse = ProviderOauthAuthorizeResponses[keyof ProviderOauthAuthorizeResponses]; +export type ProviderOauthCallbackData = { + body?: { + /** + * Auth method index + */ + method: number; + code?: string; + }; path: { providerID: string; }; - query?: never; - url: "/auth/{providerID}"; + query?: { + directory?: string; + workspace?: string; + }; + url: "/provider/{providerID}/oauth/callback"; }; -export type AuthRemoveErrors = { +export type ProviderOauthCallbackErrors = { /** - * Bad request + * ProviderAuthError | InvalidRequestError */ - 400: BadRequestError; + 400: ProviderAuthError1 | InvalidRequestError; }; -export type AuthRemoveError = AuthRemoveErrors[keyof AuthRemoveErrors]; -export type AuthRemoveResponses = { +export type ProviderOauthCallbackError = ProviderOauthCallbackErrors[keyof ProviderOauthCallbackErrors]; +export type ProviderOauthCallbackResponses = { /** - * Successfully removed authentication credentials + * OAuth callback processed successfully */ 200: boolean; }; -export type AuthRemoveResponse = AuthRemoveResponses[keyof AuthRemoveResponses]; -export type AuthSetData = { - body?: Auth; - path: { - providerID: string; +export type ProviderOauthCallbackResponse = ProviderOauthCallbackResponses[keyof ProviderOauthCallbackResponses]; +export type SessionListData = { + body?: never; + path?: never; + query?: { + directory?: string; + workspace?: string; + scope?: "project"; + path?: string; + roots?: boolean | "true" | "false"; + start?: number; + search?: string; + limit?: number; }; - query?: never; - url: "/auth/{providerID}"; + url: "/session"; }; -export type AuthSetErrors = { +export type SessionListErrors = { /** * Bad request */ 400: BadRequestError; }; -export type AuthSetError = AuthSetErrors[keyof AuthSetErrors]; -export type AuthSetResponses = { +export type SessionListError = SessionListErrors[keyof SessionListErrors]; +export type SessionListResponses = { /** - * Successfully set authentication credentials + * List of sessions */ - 200: boolean; + 200: Array; }; -export type AuthSetResponse = AuthSetResponses[keyof AuthSetResponses]; -export type AppLogData = { +export type SessionListResponse = SessionListResponses[keyof SessionListResponses]; +export type SessionCreateData = { body?: { - /** - * Service name for the log entry - */ - service: string; - /** - * Log level - */ - level: "debug" | "info" | "error" | "warn"; - /** - * Log message - */ - message: string; - extra?: { + parentID?: string; + title?: string; + agent?: string; + model?: { + id: string; + providerID: string; + variant?: string; + }; + metadata?: { [key: string]: unknown; }; + permission?: PermissionRuleset; + workspaceID?: string; }; path?: never; query?: { directory?: string; workspace?: string; }; - url: "/log"; + url: "/session"; }; -export type AppLogErrors = { +export type SessionCreateErrors = { /** - * Bad request + * BadRequest | InvalidRequestError */ - 400: BadRequestError; + 400: EffectHttpApiErrorBadRequest | InvalidRequestError; }; -export type AppLogError = AppLogErrors[keyof AppLogErrors]; -export type AppLogResponses = { +export type SessionCreateError = SessionCreateErrors[keyof SessionCreateErrors]; +export type SessionCreateResponses = { /** - * Log entry written successfully + * Successfully created session */ - 200: boolean; + 200: Session; }; -export type AppLogResponse = AppLogResponses[keyof AppLogResponses]; -export type GlobalHealthData = { +export type SessionCreateResponse = SessionCreateResponses[keyof SessionCreateResponses]; +export type SessionStatusData = { body?: never; path?: never; - query?: never; - url: "/global/health"; + query?: { + directory?: string; + workspace?: string; + }; + url: "/session/status"; }; -export type GlobalHealthResponses = { +export type SessionStatusErrors = { /** - * Health information + * BadRequest | InvalidRequestError + */ + 400: EffectHttpApiErrorBadRequest | InvalidRequestError; +}; +export type SessionStatusError = SessionStatusErrors[keyof SessionStatusErrors]; +export type SessionStatusResponses = { + /** + * Get session status */ 200: { - healthy: true; - version: string; + [key: string]: SessionStatus; }; }; -export type GlobalHealthResponse = GlobalHealthResponses[keyof GlobalHealthResponses]; -export type GlobalEventData = { +export type SessionStatusResponse = SessionStatusResponses[keyof SessionStatusResponses]; +export type SessionDeleteData = { body?: never; - path?: never; - query?: never; - url: "/global/event"; + path: { + sessionID: string; + }; + query?: { + directory?: string; + workspace?: string; + }; + url: "/session/{sessionID}"; }; -export type GlobalEventResponses = { +export type SessionDeleteErrors = { /** - * Event stream + * BadRequest | InvalidRequestError */ - 200: GlobalEvent; -}; -export type GlobalEventResponse = GlobalEventResponses[keyof GlobalEventResponses]; -export type GlobalConfigGetData = { - body?: never; - path?: never; - query?: never; - url: "/global/config"; + 400: EffectHttpApiErrorBadRequest | InvalidRequestError; + /** + * NotFoundError + */ + 404: NotFoundError; }; -export type GlobalConfigGetResponses = { +export type SessionDeleteError = SessionDeleteErrors[keyof SessionDeleteErrors]; +export type SessionDeleteResponses = { /** - * Get global config info + * Successfully deleted session */ - 200: Config; + 200: boolean; }; -export type GlobalConfigGetResponse = GlobalConfigGetResponses[keyof GlobalConfigGetResponses]; -export type GlobalConfigUpdateData = { - body?: Config; - path?: never; - query?: never; - url: "/global/config"; +export type SessionDeleteResponse = SessionDeleteResponses[keyof SessionDeleteResponses]; +export type SessionGetData = { + body?: never; + path: { + sessionID: string; + }; + query?: { + directory?: string; + workspace?: string; + }; + url: "/session/{sessionID}"; }; -export type GlobalConfigUpdateErrors = { +export type SessionGetErrors = { /** - * Bad request + * BadRequest | InvalidRequestError */ - 400: BadRequestError; + 400: EffectHttpApiErrorBadRequest | InvalidRequestError; + /** + * NotFoundError + */ + 404: NotFoundError; }; -export type GlobalConfigUpdateError = GlobalConfigUpdateErrors[keyof GlobalConfigUpdateErrors]; -export type GlobalConfigUpdateResponses = { +export type SessionGetError = SessionGetErrors[keyof SessionGetErrors]; +export type SessionGetResponses = { /** - * Successfully updated global config + * Get session */ - 200: Config; + 200: Session; }; -export type GlobalConfigUpdateResponse = GlobalConfigUpdateResponses[keyof GlobalConfigUpdateResponses]; -export type GlobalDisposeData = { - body?: never; - path?: never; - query?: never; - url: "/global/dispose"; +export type SessionGetResponse = SessionGetResponses[keyof SessionGetResponses]; +export type SessionUpdateData = { + body?: { + title?: string; + metadata?: { + [key: string]: unknown; + }; + permission?: PermissionRuleset; + time?: { + archived?: number; + }; + }; + path: { + sessionID: string; + }; + query?: { + directory?: string; + workspace?: string; + }; + url: "/session/{sessionID}"; }; -export type GlobalDisposeResponses = { +export type SessionUpdateErrors = { /** - * Global disposed + * BadRequest | InvalidRequestError */ - 200: boolean; + 400: EffectHttpApiErrorBadRequest | InvalidRequestError; + /** + * NotFoundError + */ + 404: NotFoundError; }; -export type GlobalDisposeResponse = GlobalDisposeResponses[keyof GlobalDisposeResponses]; -export type GlobalUpgradeData = { - body?: { - target?: string; +export type SessionUpdateError = SessionUpdateErrors[keyof SessionUpdateErrors]; +export type SessionUpdateResponses = { + /** + * Successfully updated session + */ + 200: Session; +}; +export type SessionUpdateResponse = SessionUpdateResponses[keyof SessionUpdateResponses]; +export type SessionChildrenData = { + body?: never; + path: { + sessionID: string; + }; + query?: { + directory?: string; + workspace?: string; }; - path?: never; - query?: never; - url: "/global/upgrade"; + url: "/session/{sessionID}/children"; }; -export type GlobalUpgradeErrors = { +export type SessionChildrenErrors = { /** - * Bad request + * BadRequest | InvalidRequestError */ - 400: BadRequestError; + 400: EffectHttpApiErrorBadRequest | InvalidRequestError; + /** + * NotFoundError + */ + 404: NotFoundError; }; -export type GlobalUpgradeError = GlobalUpgradeErrors[keyof GlobalUpgradeErrors]; -export type GlobalUpgradeResponses = { +export type SessionChildrenError = SessionChildrenErrors[keyof SessionChildrenErrors]; +export type SessionChildrenResponses = { /** - * Upgrade result + * List of children */ - 200: { - success: true; - version: string; - } | { - success: false; - error: string; - }; + 200: Array; }; -export type GlobalUpgradeResponse = GlobalUpgradeResponses[keyof GlobalUpgradeResponses]; -export type EventSubscribeData = { +export type SessionChildrenResponse = SessionChildrenResponses[keyof SessionChildrenResponses]; +export type SessionTodoData = { body?: never; - path?: never; + path: { + sessionID: string; + }; query?: { directory?: string; workspace?: string; }; - url: "/event"; + url: "/session/{sessionID}/todo"; }; -export type EventSubscribeResponses = { +export type SessionTodoErrors = { /** - * Event stream + * BadRequest | InvalidRequestError */ - 200: Event; + 400: EffectHttpApiErrorBadRequest | InvalidRequestError; + /** + * NotFoundError + */ + 404: NotFoundError; }; -export type EventSubscribeResponse = EventSubscribeResponses[keyof EventSubscribeResponses]; -export type ConfigGetData = { +export type SessionTodoError = SessionTodoErrors[keyof SessionTodoErrors]; +export type SessionTodoResponses = { + /** + * Todo list + */ + 200: Array; +}; +export type SessionTodoResponse = SessionTodoResponses[keyof SessionTodoResponses]; +export type SessionDiffData = { body?: never; - path?: never; + path: { + sessionID: string; + }; query?: { directory?: string; workspace?: string; + messageID?: string; }; - url: "/config"; + url: "/session/{sessionID}/diff"; }; -export type ConfigGetResponses = { +export type SessionDiffErrors = { /** - * Get config info + * Bad request */ - 200: Config; + 400: BadRequestError; }; -export type ConfigGetResponse = ConfigGetResponses[keyof ConfigGetResponses]; -export type ConfigUpdateData = { - body?: Config; - path?: never; +export type SessionDiffError = SessionDiffErrors[keyof SessionDiffErrors]; +export type SessionDiffResponses = { + /** + * Successfully retrieved diff + */ + 200: Array; +}; +export type SessionDiffResponse = SessionDiffResponses[keyof SessionDiffResponses]; +export type SessionMessagesData = { + body?: never; + path: { + sessionID: string; + }; query?: { directory?: string; workspace?: string; + limit?: number; + before?: string; }; - url: "/config"; + url: "/session/{sessionID}/message"; }; -export type ConfigUpdateErrors = { +export type SessionMessagesErrors = { /** - * Bad request + * BadRequest | InvalidRequestError */ - 400: BadRequestError; + 400: EffectHttpApiErrorBadRequest | InvalidRequestError; + /** + * NotFoundError + */ + 404: NotFoundError; }; -export type ConfigUpdateError = ConfigUpdateErrors[keyof ConfigUpdateErrors]; -export type ConfigUpdateResponses = { +export type SessionMessagesError = SessionMessagesErrors[keyof SessionMessagesErrors]; +export type SessionMessagesResponses = { /** - * Successfully updated config + * List of messages */ - 200: Config; + 200: Array<{ + info: Message; + parts: Array; + }>; }; -export type ConfigUpdateResponse = ConfigUpdateResponses[keyof ConfigUpdateResponses]; -export type ConfigProvidersData = { - body?: never; - path?: never; +export type SessionMessagesResponse2 = SessionMessagesResponses[keyof SessionMessagesResponses]; +export type SessionPromptData = { + body?: { + messageID?: string; + model?: { + providerID: string; + modelID: string; + }; + agent?: string; + noReply?: boolean; + tools?: { + [key: string]: boolean; + }; + format?: OutputFormat; + system?: string; + variant?: string; + parts: Array; + }; + path: { + sessionID: string; + }; query?: { directory?: string; workspace?: string; }; - url: "/config/providers"; + url: "/session/{sessionID}/message"; }; -export type ConfigProvidersResponses = { +export type SessionPromptErrors = { /** - * List of providers + * BadRequest | InvalidRequestError + */ + 400: EffectHttpApiErrorBadRequest | InvalidRequestError; + /** + * NotFoundError + */ + 404: NotFoundError; +}; +export type SessionPromptError = SessionPromptErrors[keyof SessionPromptErrors]; +export type SessionPromptResponses = { + /** + * Created message */ 200: { - providers: Array; - default: { - [key: string]: string; - }; + info: AssistantMessage; + parts: Array; }; }; -export type ConfigProvidersResponse = ConfigProvidersResponses[keyof ConfigProvidersResponses]; -export type ExperimentalConsoleGetData = { +export type SessionPromptResponse = SessionPromptResponses[keyof SessionPromptResponses]; +export type SessionDeleteMessageData = { body?: never; - path?: never; + path: { + sessionID: string; + messageID: string; + }; query?: { directory?: string; workspace?: string; }; - url: "/experimental/console"; + url: "/session/{sessionID}/message/{messageID}"; }; -export type ExperimentalConsoleGetErrors = { +export type SessionDeleteMessageErrors = { /** - * InternalServerError + * BadRequest | InvalidRequestError */ - 500: EffectHttpApiErrorInternalServerError; + 400: EffectHttpApiErrorBadRequest | InvalidRequestError; + /** + * NotFoundError + */ + 404: NotFoundError; + /** + * SessionBusyError + */ + 409: SessionBusyError; }; -export type ExperimentalConsoleGetError = ExperimentalConsoleGetErrors[keyof ExperimentalConsoleGetErrors]; -export type ExperimentalConsoleGetResponses = { +export type SessionDeleteMessageError = SessionDeleteMessageErrors[keyof SessionDeleteMessageErrors]; +export type SessionDeleteMessageResponses = { /** - * Active Console provider metadata + * Successfully deleted message */ - 200: ConsoleState; + 200: boolean; }; -export type ExperimentalConsoleGetResponse = ExperimentalConsoleGetResponses[keyof ExperimentalConsoleGetResponses]; -export type ExperimentalConsoleListOrgsData = { +export type SessionDeleteMessageResponse = SessionDeleteMessageResponses[keyof SessionDeleteMessageResponses]; +export type SessionMessageData = { body?: never; - path?: never; + path: { + sessionID: string; + messageID: string; + }; query?: { directory?: string; workspace?: string; }; - url: "/experimental/console/orgs"; + url: "/session/{sessionID}/message/{messageID}"; }; -export type ExperimentalConsoleListOrgsErrors = { +export type SessionMessageErrors = { /** - * InternalServerError + * BadRequest | InvalidRequestError */ - 500: EffectHttpApiErrorInternalServerError; + 400: EffectHttpApiErrorBadRequest | InvalidRequestError; + /** + * NotFoundError + */ + 404: NotFoundError; }; -export type ExperimentalConsoleListOrgsError = ExperimentalConsoleListOrgsErrors[keyof ExperimentalConsoleListOrgsErrors]; -export type ExperimentalConsoleListOrgsResponses = { +export type SessionMessageError = SessionMessageErrors[keyof SessionMessageErrors]; +export type SessionMessageResponses = { /** - * Switchable Console orgs + * Message */ 200: { - orgs: Array<{ - accountID: string; - accountEmail: string; - accountUrl: string; - orgID: string; - orgName: string; - active: boolean; - }>; + info: Message; + parts: Array; }; }; -export type ExperimentalConsoleListOrgsResponse = ExperimentalConsoleListOrgsResponses[keyof ExperimentalConsoleListOrgsResponses]; -export type ExperimentalConsoleSwitchOrgData = { +export type SessionMessageResponse = SessionMessageResponses[keyof SessionMessageResponses]; +export type SessionForkData = { body?: { - accountID: string; - orgID: string; + messageID?: string; + }; + path: { + sessionID: string; + }; + query?: { + directory?: string; + workspace?: string; + }; + url: "/session/{sessionID}/fork"; +}; +export type SessionForkErrors = { + /** + * BadRequest | InvalidRequestError + */ + 400: EffectHttpApiErrorBadRequest | InvalidRequestError; + /** + * NotFoundError + */ + 404: NotFoundError; +}; +export type SessionForkError = SessionForkErrors[keyof SessionForkErrors]; +export type SessionForkResponses = { + /** + * 200 + */ + 200: Session; +}; +export type SessionForkResponse = SessionForkResponses[keyof SessionForkResponses]; +export type SessionAbortData = { + body?: never; + path: { + sessionID: string; }; - path?: never; query?: { directory?: string; workspace?: string; }; - url: "/experimental/console/switch"; + url: "/session/{sessionID}/abort"; }; -export type ExperimentalConsoleSwitchOrgResponses = { +export type SessionAbortErrors = { /** - * Switch success + * BadRequest | InvalidRequestError + */ + 400: EffectHttpApiErrorBadRequest | InvalidRequestError; +}; +export type SessionAbortError = SessionAbortErrors[keyof SessionAbortErrors]; +export type SessionAbortResponses = { + /** + * Aborted session */ 200: boolean; }; -export type ExperimentalConsoleSwitchOrgResponse = ExperimentalConsoleSwitchOrgResponses[keyof ExperimentalConsoleSwitchOrgResponses]; -export type ToolListData = { - body?: never; - path?: never; - query: { +export type SessionAbortResponse = SessionAbortResponses[keyof SessionAbortResponses]; +export type SessionInitData = { + body?: { + modelID: string; + providerID: string; + messageID: string; + }; + path: { + sessionID: string; + }; + query?: { directory?: string; workspace?: string; - provider: string; - model: string; }; - url: "/experimental/tool"; + url: "/session/{sessionID}/init"; }; -export type ToolListErrors = { +export type SessionInitErrors = { /** - * Bad request + * BadRequest | InvalidRequestError */ - 400: BadRequestError; + 400: EffectHttpApiErrorBadRequest | InvalidRequestError; + /** + * NotFoundError + */ + 404: NotFoundError; }; -export type ToolListError = ToolListErrors[keyof ToolListErrors]; -export type ToolListResponses = { +export type SessionInitError = SessionInitErrors[keyof SessionInitErrors]; +export type SessionInitResponses = { /** - * Tools + * 200 */ - 200: ToolList; + 200: boolean; }; -export type ToolListResponse = ToolListResponses[keyof ToolListResponses]; -export type ToolIdsData = { +export type SessionInitResponse = SessionInitResponses[keyof SessionInitResponses]; +export type SessionUnshareData = { body?: never; - path?: never; + path: { + sessionID: string; + }; query?: { directory?: string; workspace?: string; }; - url: "/experimental/tool/ids"; + url: "/session/{sessionID}/share"; }; -export type ToolIdsErrors = { +export type SessionUnshareErrors = { /** * Bad request */ 400: BadRequestError; -}; -export type ToolIdsError = ToolIdsErrors[keyof ToolIdsErrors]; -export type ToolIdsResponses = { /** - * Tool IDs + * NotFoundError */ - 200: ToolIds; -}; -export type ToolIdsResponse = ToolIdsResponses[keyof ToolIdsResponses]; -export type WorktreeRemoveData = { - body?: WorktreeRemoveInput; - path?: never; - query?: { - directory?: string; - workspace?: string; - }; - url: "/experimental/worktree"; -}; -export type WorktreeRemoveErrors = { + 404: NotFoundError; /** - * WorktreeError + * InternalServerError */ - 400: WorktreeError; + 500: EffectHttpApiErrorInternalServerError; }; -export type WorktreeRemoveError = WorktreeRemoveErrors[keyof WorktreeRemoveErrors]; -export type WorktreeRemoveResponses = { +export type SessionUnshareError = SessionUnshareErrors[keyof SessionUnshareErrors]; +export type SessionUnshareResponses = { /** - * Worktree removed + * Successfully unshared session */ - 200: boolean; + 200: Session; }; -export type WorktreeRemoveResponse = WorktreeRemoveResponses[keyof WorktreeRemoveResponses]; -export type WorktreeListData = { +export type SessionUnshareResponse = SessionUnshareResponses[keyof SessionUnshareResponses]; +export type SessionShareData = { body?: never; - path?: never; + path: { + sessionID: string; + }; query?: { directory?: string; workspace?: string; }; - url: "/experimental/worktree"; + url: "/session/{sessionID}/share"; }; -export type WorktreeListErrors = { +export type SessionShareErrors = { + /** + * Bad request + */ + 400: BadRequestError; /** - * WorktreeError + * NotFoundError + */ + 404: NotFoundError; + /** + * InternalServerError */ - 400: WorktreeError; + 500: EffectHttpApiErrorInternalServerError; }; -export type WorktreeListError = WorktreeListErrors[keyof WorktreeListErrors]; -export type WorktreeListResponses = { +export type SessionShareError = SessionShareErrors[keyof SessionShareErrors]; +export type SessionShareResponses = { /** - * List of worktree directories + * Successfully shared session */ - 200: Array; + 200: Session; }; -export type WorktreeListResponse = WorktreeListResponses[keyof WorktreeListResponses]; -export type WorktreeCreateData = { - body?: WorktreeCreateInput; - path?: never; +export type SessionShareResponse = SessionShareResponses[keyof SessionShareResponses]; +export type SessionSummarizeData = { + body?: { + providerID: string; + modelID: string; + auto?: boolean; + }; + path: { + sessionID: string; + }; query?: { directory?: string; workspace?: string; }; - url: "/experimental/worktree"; + url: "/session/{sessionID}/summarize"; }; -export type WorktreeCreateErrors = { +export type SessionSummarizeErrors = { /** - * WorktreeError + * BadRequest | InvalidRequestError */ - 400: WorktreeError; + 400: EffectHttpApiErrorBadRequest | InvalidRequestError; + /** + * NotFoundError + */ + 404: NotFoundError; }; -export type WorktreeCreateError = WorktreeCreateErrors[keyof WorktreeCreateErrors]; -export type WorktreeCreateResponses = { +export type SessionSummarizeError = SessionSummarizeErrors[keyof SessionSummarizeErrors]; +export type SessionSummarizeResponses = { /** - * Worktree created + * Summarized session */ - 200: Worktree; + 200: boolean; }; -export type WorktreeCreateResponse = WorktreeCreateResponses[keyof WorktreeCreateResponses]; -export type WorktreeResetData = { - body?: WorktreeResetInput; - path?: never; +export type SessionSummarizeResponse = SessionSummarizeResponses[keyof SessionSummarizeResponses]; +export type SessionPromptAsyncData = { + body?: { + messageID?: string; + model?: { + providerID: string; + modelID: string; + }; + agent?: string; + noReply?: boolean; + tools?: { + [key: string]: boolean; + }; + format?: OutputFormat; + system?: string; + variant?: string; + parts: Array; + }; + path: { + sessionID: string; + }; query?: { directory?: string; workspace?: string; }; - url: "/experimental/worktree/reset"; + url: "/session/{sessionID}/prompt_async"; }; -export type WorktreeResetErrors = { +export type SessionPromptAsyncErrors = { + /** + * BadRequest | InvalidRequestError + */ + 400: EffectHttpApiErrorBadRequest | InvalidRequestError; /** - * WorktreeError + * NotFoundError */ - 400: WorktreeError; + 404: NotFoundError; }; -export type WorktreeResetError = WorktreeResetErrors[keyof WorktreeResetErrors]; -export type WorktreeResetResponses = { +export type SessionPromptAsyncError = SessionPromptAsyncErrors[keyof SessionPromptAsyncErrors]; +export type SessionPromptAsyncResponses = { /** - * Worktree reset + * Prompt accepted */ - 200: boolean; + 204: void; }; -export type WorktreeResetResponse = WorktreeResetResponses[keyof WorktreeResetResponses]; -export type ExperimentalSessionListData = { - body?: never; - path?: never; +export type SessionPromptAsyncResponse = SessionPromptAsyncResponses[keyof SessionPromptAsyncResponses]; +export type SessionCommandData = { + body?: { + messageID?: string; + agent?: string; + model?: string; + arguments: string; + command: string; + variant?: string; + parts?: Array<{ + id?: string; + type: "file"; + mime: string; + filename?: string; + url: string; + source?: FilePartSource; + }>; + }; + path: { + sessionID: string; + }; query?: { directory?: string; workspace?: string; - roots?: boolean | "true" | "false"; - start?: number; - cursor?: number; - search?: string; - limit?: number; - archived?: boolean | "true" | "false"; }; - url: "/experimental/session"; + url: "/session/{sessionID}/command"; }; -export type ExperimentalSessionListResponses = { +export type SessionCommandErrors = { /** - * List of sessions + * BadRequest | InvalidRequestError */ - 200: Array; + 400: EffectHttpApiErrorBadRequest | InvalidRequestError; + /** + * NotFoundError + */ + 404: NotFoundError; }; -export type ExperimentalSessionListResponse = ExperimentalSessionListResponses[keyof ExperimentalSessionListResponses]; -export type ExperimentalResourceListData = { - body?: never; - path?: never; +export type SessionCommandError = SessionCommandErrors[keyof SessionCommandErrors]; +export type SessionCommandResponses = { + /** + * Created message + */ + 200: { + info: AssistantMessage; + parts: Array; + }; +}; +export type SessionCommandResponse = SessionCommandResponses[keyof SessionCommandResponses]; +export type SessionShellData = { + body?: { + messageID?: string; + agent: string; + model?: { + providerID: string; + modelID: string; + }; + command: string; + }; + path: { + sessionID: string; + }; query?: { directory?: string; workspace?: string; }; - url: "/experimental/resource"; + url: "/session/{sessionID}/shell"; }; -export type ExperimentalResourceListResponses = { +export type SessionShellErrors = { /** - * MCP resources + * BadRequest | InvalidRequestError + */ + 400: EffectHttpApiErrorBadRequest | InvalidRequestError; + /** + * NotFoundError + */ + 404: NotFoundError; + /** + * SessionBusyError + */ + 409: SessionBusyError; +}; +export type SessionShellError = SessionShellErrors[keyof SessionShellErrors]; +export type SessionShellResponses = { + /** + * Created message */ 200: { - [key: string]: McpResource; + info: Message; + parts: Array; }; }; -export type ExperimentalResourceListResponse = ExperimentalResourceListResponses[keyof ExperimentalResourceListResponses]; -export type FindTextData = { - body?: never; - path?: never; - query: { +export type SessionShellResponse = SessionShellResponses[keyof SessionShellResponses]; +export type SessionRevertData = { + body?: { + messageID: string; + partID?: string; + }; + path: { + sessionID: string; + }; + query?: { directory?: string; workspace?: string; - pattern: string; }; - url: "/find"; + url: "/session/{sessionID}/revert"; }; -export type FindTextResponses = { +export type SessionRevertErrors = { /** - * Matches + * BadRequest | InvalidRequestError */ - 200: Array<{ - path: { - text: string; - }; - lines: { - text: string; - }; - line_number: number; - absolute_offset: number; - submatches: Array<{ - match: { - text: string; - }; - start: number; - end: number; - }>; - }>; -}; -export type FindTextResponse = FindTextResponses[keyof FindTextResponses]; -export type FindFilesData = { - body?: never; - path?: never; - query: { - directory?: string; - workspace?: string; - query: string; - dirs?: "true" | "false"; - type?: "file" | "directory"; - limit?: number; - }; - url: "/find/file"; -}; -export type FindFilesResponses = { + 400: EffectHttpApiErrorBadRequest | InvalidRequestError; /** - * File paths + * NotFoundError */ - 200: Array; -}; -export type FindFilesResponse = FindFilesResponses[keyof FindFilesResponses]; -export type FindSymbolsData = { - body?: never; - path?: never; - query: { - directory?: string; - workspace?: string; - query: string; - }; - url: "/find/symbol"; + 404: NotFoundError; + /** + * SessionBusyError + */ + 409: SessionBusyError; }; -export type FindSymbolsResponses = { +export type SessionRevertError = SessionRevertErrors[keyof SessionRevertErrors]; +export type SessionRevertResponses = { /** - * Symbols + * Updated session */ - 200: Array; + 200: Session; }; -export type FindSymbolsResponse = FindSymbolsResponses[keyof FindSymbolsResponses]; -export type FileListData = { +export type SessionRevertResponse = SessionRevertResponses[keyof SessionRevertResponses]; +export type SessionUnrevertData = { body?: never; - path?: never; - query: { + path: { + sessionID: string; + }; + query?: { directory?: string; workspace?: string; - path: string; }; - url: "/file"; + url: "/session/{sessionID}/unrevert"; }; -export type FileListResponses = { +export type SessionUnrevertErrors = { /** - * Files and directories + * BadRequest | InvalidRequestError */ - 200: Array; -}; -export type FileListResponse = FileListResponses[keyof FileListResponses]; -export type FileReadData = { - body?: never; - path?: never; - query: { - directory?: string; - workspace?: string; - path: string; - }; - url: "/file/content"; + 400: EffectHttpApiErrorBadRequest | InvalidRequestError; + /** + * NotFoundError + */ + 404: NotFoundError; + /** + * SessionBusyError + */ + 409: SessionBusyError; }; -export type FileReadResponses = { +export type SessionUnrevertError = SessionUnrevertErrors[keyof SessionUnrevertErrors]; +export type SessionUnrevertResponses = { /** - * File content + * Updated session */ - 200: FileContent; + 200: Session; }; -export type FileReadResponse = FileReadResponses[keyof FileReadResponses]; -export type FileStatusData = { - body?: never; - path?: never; +export type SessionUnrevertResponse = SessionUnrevertResponses[keyof SessionUnrevertResponses]; +export type PermissionRespondData = { + body?: { + response: "once" | "always" | "reject"; + }; + path: { + sessionID: string; + permissionID: string; + }; query?: { directory?: string; workspace?: string; }; - url: "/file/status"; + url: "/session/{sessionID}/permissions/{permissionID}"; }; -export type FileStatusResponses = { +export type PermissionRespondErrors = { /** - * File status + * BadRequest | InvalidRequestError */ - 200: Array; -}; -export type FileStatusResponse = FileStatusResponses[keyof FileStatusResponses]; -export type InstanceDisposeData = { - body?: never; - path?: never; - query?: { - directory?: string; - workspace?: string; - }; - url: "/instance/dispose"; + 400: EffectHttpApiErrorBadRequest | InvalidRequestError; + /** + * NotFoundError | PermissionNotFoundError + */ + 404: NotFoundError | PermissionNotFoundError; }; -export type InstanceDisposeResponses = { +export type PermissionRespondError = PermissionRespondErrors[keyof PermissionRespondErrors]; +export type PermissionRespondResponses = { /** - * Instance disposed + * Permission processed successfully */ 200: boolean; }; -export type InstanceDisposeResponse = InstanceDisposeResponses[keyof InstanceDisposeResponses]; -export type PathGetData = { +export type PermissionRespondResponse = PermissionRespondResponses[keyof PermissionRespondResponses]; +export type PartDeleteData = { body?: never; - path?: never; + path: { + sessionID: string; + messageID: string; + partID: string; + }; query?: { directory?: string; workspace?: string; }; - url: "/path"; + url: "/session/{sessionID}/message/{messageID}/part/{partID}"; }; -export type PathGetResponses = { +export type PartDeleteErrors = { /** - * Path + * BadRequest | InvalidRequestError */ - 200: Path; -}; -export type PathGetResponse = PathGetResponses[keyof PathGetResponses]; -export type VcsGetData = { - body?: never; - path?: never; - query?: { - directory?: string; - workspace?: string; - }; - url: "/vcs"; + 400: EffectHttpApiErrorBadRequest | InvalidRequestError; + /** + * NotFoundError + */ + 404: NotFoundError; }; -export type VcsGetResponses = { +export type PartDeleteError = PartDeleteErrors[keyof PartDeleteErrors]; +export type PartDeleteResponses = { /** - * VCS info + * Successfully deleted part */ - 200: VcsInfo; + 200: boolean; }; -export type VcsGetResponse = VcsGetResponses[keyof VcsGetResponses]; -export type VcsStatusData = { - body?: never; - path?: never; +export type PartDeleteResponse = PartDeleteResponses[keyof PartDeleteResponses]; +export type PartUpdateData = { + body?: Part; + path: { + sessionID: string; + messageID: string; + partID: string; + }; query?: { directory?: string; workspace?: string; }; - url: "/vcs/status"; + url: "/session/{sessionID}/message/{messageID}/part/{partID}"; }; -export type VcsStatusResponses = { +export type PartUpdateErrors = { /** - * VCS status + * BadRequest | InvalidRequestError */ - 200: Array; -}; -export type VcsStatusResponse = VcsStatusResponses[keyof VcsStatusResponses]; -export type VcsDiffData = { - body?: never; - path?: never; - query: { - directory?: string; - workspace?: string; - mode: "git" | "branch"; - }; - url: "/vcs/diff"; + 400: EffectHttpApiErrorBadRequest | InvalidRequestError; + /** + * NotFoundError + */ + 404: NotFoundError; }; -export type VcsDiffResponses = { +export type PartUpdateError = PartUpdateErrors[keyof PartUpdateErrors]; +export type PartUpdateResponses = { /** - * VCS diff + * Successfully updated part */ - 200: Array; + 200: Part; }; -export type VcsDiffResponse = VcsDiffResponses[keyof VcsDiffResponses]; -export type VcsDiffRawData = { +export type PartUpdateResponse = PartUpdateResponses[keyof PartUpdateResponses]; +export type SyncStartData = { body?: never; path?: never; query?: { directory?: string; workspace?: string; }; - url: "/vcs/diff/raw"; + url: "/sync/start"; }; -export type VcsDiffRawResponses = { +export type SyncStartErrors = { /** - * Raw VCS diff + * Bad request */ - 200: string; + 400: BadRequestError; }; -export type VcsDiffRawResponse = VcsDiffRawResponses[keyof VcsDiffRawResponses]; -export type VcsApplyData = { +export type SyncStartError = SyncStartErrors[keyof SyncStartErrors]; +export type SyncStartResponses = { + /** + * Workspace sync started + */ + 200: boolean; +}; +export type SyncStartResponse = SyncStartResponses[keyof SyncStartResponses]; +export type SyncReplayData = { body?: { - patch: string; + directory: string; + events: Array<{ + id: string; + aggregateID: string; + seq: number; + type: string; + data: { + [key: string]: unknown; + }; + }>; }; path?: never; query?: { directory?: string; workspace?: string; }; - url: "/vcs/apply"; + url: "/sync/replay"; }; -export type VcsApplyErrors = { +export type SyncReplayErrors = { /** - * VcsApplyError + * BadRequest | InvalidRequestError */ - 400: VcsApplyError; + 400: EffectHttpApiErrorBadRequest | InvalidRequestError; }; -export type VcsApplyError2 = VcsApplyErrors[keyof VcsApplyErrors]; -export type VcsApplyResponses = { +export type SyncReplayError = SyncReplayErrors[keyof SyncReplayErrors]; +export type SyncReplayResponses = { /** - * VCS patch applied + * Replayed sync events */ 200: { - applied: boolean; + sessionID: string; }; }; -export type VcsApplyResponse = VcsApplyResponses[keyof VcsApplyResponses]; -export type CommandListData = { - body?: never; +export type SyncReplayResponse = SyncReplayResponses[keyof SyncReplayResponses]; +export type SyncStealData = { + body?: { + sessionID: string; + }; path?: never; query?: { directory?: string; workspace?: string; }; - url: "/command"; + url: "/sync/steal"; }; -export type CommandListResponses = { +export type SyncStealErrors = { /** - * List of commands + * BadRequest | InvalidRequestError */ - 200: Array; -}; -export type CommandListResponse = CommandListResponses[keyof CommandListResponses]; -export type AppAgentsData = { - body?: never; - path?: never; - query?: { - directory?: string; - workspace?: string; - }; - url: "/agent"; + 400: EffectHttpApiErrorBadRequest | InvalidRequestError; }; -export type AppAgentsResponses = { +export type SyncStealError = SyncStealErrors[keyof SyncStealErrors]; +export type SyncStealResponses = { /** - * List of agents + * Session stolen into workspace */ - 200: Array; + 200: { + sessionID: string; + }; }; -export type AppAgentsResponse = AppAgentsResponses[keyof AppAgentsResponses]; -export type AppSkillsData = { - body?: never; +export type SyncStealResponse = SyncStealResponses[keyof SyncStealResponses]; +export type SyncHistoryListData = { + body?: { + [key: string]: number; + }; path?: never; query?: { directory?: string; workspace?: string; }; - url: "/skill"; + url: "/sync/history"; }; -export type AppSkillsResponses = { +export type SyncHistoryListErrors = { /** - * List of skills + * BadRequest | InvalidRequestError + */ + 400: EffectHttpApiErrorBadRequest | InvalidRequestError; +}; +export type SyncHistoryListError = SyncHistoryListErrors[keyof SyncHistoryListErrors]; +export type SyncHistoryListResponses = { + /** + * Sync events */ 200: Array<{ - name: string; - description?: string; - location: string; - content: string; + id: string; + aggregate_id: string; + seq: number; + type: string; + data: { + [key: string]: unknown; + }; }>; }; -export type AppSkillsResponse = AppSkillsResponses[keyof AppSkillsResponses]; -export type LspStatusData = { - body?: never; +export type SyncHistoryListResponse = SyncHistoryListResponses[keyof SyncHistoryListResponses]; +export type TuiAppendPromptData = { + body?: { + text: string; + }; path?: never; query?: { directory?: string; workspace?: string; }; - url: "/lsp"; + url: "/tui/append-prompt"; }; -export type LspStatusResponses = { +export type TuiAppendPromptErrors = { /** - * LSP server status + * BadRequest | InvalidRequestError */ - 200: Array; -}; -export type LspStatusResponse = LspStatusResponses[keyof LspStatusResponses]; -export type FormatterStatusData = { - body?: never; - path?: never; - query?: { - directory?: string; - workspace?: string; - }; - url: "/formatter"; + 400: EffectHttpApiErrorBadRequest | InvalidRequestError; }; -export type FormatterStatusResponses = { +export type TuiAppendPromptError = TuiAppendPromptErrors[keyof TuiAppendPromptErrors]; +export type TuiAppendPromptResponses = { /** - * Formatter status + * Prompt processed successfully */ - 200: Array; + 200: boolean; }; -export type FormatterStatusResponse = FormatterStatusResponses[keyof FormatterStatusResponses]; -export type McpStatusData = { +export type TuiAppendPromptResponse = TuiAppendPromptResponses[keyof TuiAppendPromptResponses]; +export type TuiOpenHelpData = { body?: never; path?: never; query?: { directory?: string; workspace?: string; }; - url: "/mcp"; + url: "/tui/open-help"; }; -export type McpStatusResponses = { +export type TuiOpenHelpErrors = { /** - * MCP server status + * Bad request */ - 200: { - [key: string]: McpStatus; - }; + 400: BadRequestError; }; -export type McpStatusResponse = McpStatusResponses[keyof McpStatusResponses]; -export type McpAddData = { - body?: { - name: string; - config: McpLocalConfig | McpRemoteConfig; - }; +export type TuiOpenHelpError = TuiOpenHelpErrors[keyof TuiOpenHelpErrors]; +export type TuiOpenHelpResponses = { + /** + * Help dialog opened successfully + */ + 200: boolean; +}; +export type TuiOpenHelpResponse = TuiOpenHelpResponses[keyof TuiOpenHelpResponses]; +export type TuiOpenSessionsData = { + body?: never; path?: never; query?: { directory?: string; workspace?: string; }; - url: "/mcp"; + url: "/tui/open-sessions"; }; -export type McpAddErrors = { +export type TuiOpenSessionsErrors = { /** * Bad request */ 400: BadRequestError; }; -export type McpAddError = McpAddErrors[keyof McpAddErrors]; -export type McpAddResponses = { +export type TuiOpenSessionsError = TuiOpenSessionsErrors[keyof TuiOpenSessionsErrors]; +export type TuiOpenSessionsResponses = { /** - * MCP server added successfully + * Session dialog opened successfully */ - 200: { - [key: string]: McpStatus; - }; + 200: boolean; }; -export type McpAddResponse = McpAddResponses[keyof McpAddResponses]; -export type McpAuthRemoveData = { +export type TuiOpenSessionsResponse = TuiOpenSessionsResponses[keyof TuiOpenSessionsResponses]; +export type TuiOpenThemesData = { body?: never; - path: { - name: string; - }; + path?: never; query?: { directory?: string; workspace?: string; }; - url: "/mcp/{name}/auth"; + url: "/tui/open-themes"; }; -export type McpAuthRemoveErrors = { +export type TuiOpenThemesErrors = { /** - * Not found + * Bad request */ - 404: NotFoundError; + 400: BadRequestError; }; -export type McpAuthRemoveError = McpAuthRemoveErrors[keyof McpAuthRemoveErrors]; -export type McpAuthRemoveResponses = { +export type TuiOpenThemesError = TuiOpenThemesErrors[keyof TuiOpenThemesErrors]; +export type TuiOpenThemesResponses = { /** - * OAuth credentials removed + * Theme dialog opened successfully */ - 200: { - success: true; - }; + 200: boolean; }; -export type McpAuthRemoveResponse = McpAuthRemoveResponses[keyof McpAuthRemoveResponses]; -export type McpAuthStartData = { +export type TuiOpenThemesResponse = TuiOpenThemesResponses[keyof TuiOpenThemesResponses]; +export type TuiOpenModelsData = { body?: never; - path: { - name: string; - }; + path?: never; query?: { directory?: string; workspace?: string; }; - url: "/mcp/{name}/auth"; + url: "/tui/open-models"; }; -export type McpAuthStartErrors = { - /** - * McpUnsupportedOAuthError - */ - 400: McpUnsupportedOAuthError; +export type TuiOpenModelsErrors = { /** - * Not found + * Bad request */ - 404: NotFoundError; + 400: BadRequestError; }; -export type McpAuthStartError = McpAuthStartErrors[keyof McpAuthStartErrors]; -export type McpAuthStartResponses = { +export type TuiOpenModelsError = TuiOpenModelsErrors[keyof TuiOpenModelsErrors]; +export type TuiOpenModelsResponses = { /** - * OAuth flow started + * Model dialog opened successfully */ - 200: { - authorizationUrl: string; - oauthState: string; - }; + 200: boolean; }; -export type McpAuthStartResponse = McpAuthStartResponses[keyof McpAuthStartResponses]; -export type McpAuthCallbackData = { - body?: { - code: string; - }; - path: { - name: string; - }; +export type TuiOpenModelsResponse = TuiOpenModelsResponses[keyof TuiOpenModelsResponses]; +export type TuiSubmitPromptData = { + body?: never; + path?: never; query?: { directory?: string; workspace?: string; }; - url: "/mcp/{name}/auth/callback"; + url: "/tui/submit-prompt"; }; -export type McpAuthCallbackErrors = { +export type TuiSubmitPromptErrors = { /** * Bad request */ 400: BadRequestError; - /** - * Not found - */ - 404: NotFoundError; }; -export type McpAuthCallbackError = McpAuthCallbackErrors[keyof McpAuthCallbackErrors]; -export type McpAuthCallbackResponses = { +export type TuiSubmitPromptError = TuiSubmitPromptErrors[keyof TuiSubmitPromptErrors]; +export type TuiSubmitPromptResponses = { /** - * OAuth authentication completed + * Prompt submitted successfully */ - 200: McpStatus; -}; -export type McpAuthCallbackResponse = McpAuthCallbackResponses[keyof McpAuthCallbackResponses]; -export type McpAuthAuthenticateData = { + 200: boolean; +}; +export type TuiSubmitPromptResponse = TuiSubmitPromptResponses[keyof TuiSubmitPromptResponses]; +export type TuiClearPromptData = { body?: never; - path: { - name: string; - }; + path?: never; query?: { directory?: string; workspace?: string; }; - url: "/mcp/{name}/auth/authenticate"; + url: "/tui/clear-prompt"; }; -export type McpAuthAuthenticateErrors = { - /** - * McpUnsupportedOAuthError - */ - 400: McpUnsupportedOAuthError; +export type TuiClearPromptErrors = { /** - * Not found + * Bad request */ - 404: NotFoundError; + 400: BadRequestError; }; -export type McpAuthAuthenticateError = McpAuthAuthenticateErrors[keyof McpAuthAuthenticateErrors]; -export type McpAuthAuthenticateResponses = { +export type TuiClearPromptError = TuiClearPromptErrors[keyof TuiClearPromptErrors]; +export type TuiClearPromptResponses = { /** - * OAuth authentication completed + * Prompt cleared successfully */ - 200: McpStatus; + 200: boolean; }; -export type McpAuthAuthenticateResponse = McpAuthAuthenticateResponses[keyof McpAuthAuthenticateResponses]; -export type McpConnectData = { - body?: never; - path: { - name: string; +export type TuiClearPromptResponse = TuiClearPromptResponses[keyof TuiClearPromptResponses]; +export type TuiExecuteCommandData = { + body?: { + command: string; }; + path?: never; query?: { directory?: string; workspace?: string; }; - url: "/mcp/{name}/connect"; + url: "/tui/execute-command"; }; -export type McpConnectResponses = { +export type TuiExecuteCommandErrors = { /** - * MCP server connected successfully + * BadRequest | InvalidRequestError + */ + 400: EffectHttpApiErrorBadRequest | InvalidRequestError; +}; +export type TuiExecuteCommandError = TuiExecuteCommandErrors[keyof TuiExecuteCommandErrors]; +export type TuiExecuteCommandResponses = { + /** + * Command executed successfully */ 200: boolean; }; -export type McpConnectResponse = McpConnectResponses[keyof McpConnectResponses]; -export type McpDisconnectData = { - body?: never; - path: { - name: string; +export type TuiExecuteCommandResponse = TuiExecuteCommandResponses[keyof TuiExecuteCommandResponses]; +export type TuiShowToastData = { + body?: { + title?: string; + message: string; + variant: "info" | "success" | "warning" | "error"; + duration?: number; }; + path?: never; query?: { directory?: string; workspace?: string; }; - url: "/mcp/{name}/disconnect"; + url: "/tui/show-toast"; }; -export type McpDisconnectResponses = { +export type TuiShowToastErrors = { /** - * MCP server disconnected successfully + * Bad request + */ + 400: BadRequestError; +}; +export type TuiShowToastError = TuiShowToastErrors[keyof TuiShowToastErrors]; +export type TuiShowToastResponses = { + /** + * Toast notification shown successfully */ 200: boolean; }; -export type McpDisconnectResponse = McpDisconnectResponses[keyof McpDisconnectResponses]; -export type ProjectListData = { - body?: never; +export type TuiShowToastResponse = TuiShowToastResponses[keyof TuiShowToastResponses]; +export type TuiPublishData = { + body?: EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect; path?: never; query?: { directory?: string; workspace?: string; }; - url: "/project"; + url: "/tui/publish"; }; -export type ProjectListResponses = { +export type TuiPublishErrors = { /** - * List of projects + * BadRequest | InvalidRequestError */ - 200: Array; + 400: EffectHttpApiErrorBadRequest | InvalidRequestError; }; -export type ProjectListResponse = ProjectListResponses[keyof ProjectListResponses]; -export type ProjectCurrentData = { - body?: never; +export type TuiPublishError = TuiPublishErrors[keyof TuiPublishErrors]; +export type TuiPublishResponses = { + /** + * Event published successfully + */ + 200: boolean; +}; +export type TuiPublishResponse = TuiPublishResponses[keyof TuiPublishResponses]; +export type TuiSelectSessionData = { + body?: { + /** + * Session ID to navigate to + */ + sessionID: string; + }; path?: never; query?: { directory?: string; workspace?: string; }; - url: "/project/current"; + url: "/tui/select-session"; }; -export type ProjectCurrentResponses = { +export type TuiSelectSessionErrors = { /** - * Current project information + * BadRequest | InvalidRequestError */ - 200: Project; + 400: EffectHttpApiErrorBadRequest | InvalidRequestError; + /** + * NotFoundError + */ + 404: NotFoundError; }; -export type ProjectCurrentResponse = ProjectCurrentResponses[keyof ProjectCurrentResponses]; -export type ProjectInitGitData = { +export type TuiSelectSessionError = TuiSelectSessionErrors[keyof TuiSelectSessionErrors]; +export type TuiSelectSessionResponses = { + /** + * Session selected successfully + */ + 200: boolean; +}; +export type TuiSelectSessionResponse = TuiSelectSessionResponses[keyof TuiSelectSessionResponses]; +export type TuiControlNextData = { body?: never; path?: never; query?: { directory?: string; workspace?: string; }; - url: "/project/git/init"; + url: "/tui/control/next"; }; -export type ProjectInitGitResponses = { +export type TuiControlNextErrors = { /** - * Project information after git initialization + * Bad request */ - 200: Project; + 400: BadRequestError; }; -export type ProjectInitGitResponse = ProjectInitGitResponses[keyof ProjectInitGitResponses]; -export type ProjectUpdateData = { - body?: { - name?: string; - icon?: { - url?: string; - override?: string; - color?: string; - }; - commands?: { - /** - * Startup script to run when creating a new workspace (worktree) - */ - start?: string; - }; - }; - path: { - projectID: string; +export type TuiControlNextError = TuiControlNextErrors[keyof TuiControlNextErrors]; +export type TuiControlNextResponses = { + /** + * Next TUI request + */ + 200: { + path: string; + body: unknown; }; +}; +export type TuiControlNextResponse = TuiControlNextResponses[keyof TuiControlNextResponses]; +export type TuiControlResponseData = { + body?: unknown; + path?: never; query?: { directory?: string; workspace?: string; }; - url: "/project/{projectID}"; + url: "/tui/control/response"; }; -export type ProjectUpdateErrors = { +export type TuiControlResponseErrors = { /** * Bad request */ 400: BadRequestError; - /** - * Not found - */ - 404: NotFoundError; }; -export type ProjectUpdateError = ProjectUpdateErrors[keyof ProjectUpdateErrors]; -export type ProjectUpdateResponses = { +export type TuiControlResponseError = TuiControlResponseErrors[keyof TuiControlResponseErrors]; +export type TuiControlResponseResponses = { /** - * Updated project information + * Response submitted successfully */ - 200: Project; + 200: boolean; }; -export type ProjectUpdateResponse = ProjectUpdateResponses[keyof ProjectUpdateResponses]; -export type PtyShellsData = { +export type TuiControlResponseResponse = TuiControlResponseResponses[keyof TuiControlResponseResponses]; +export type ExperimentalWorkspaceAdapterListData = { body?: never; path?: never; query?: { directory?: string; workspace?: string; }; - url: "/pty/shells"; + url: "/experimental/workspace/adapter"; }; -export type PtyShellsResponses = { +export type ExperimentalWorkspaceAdapterListErrors = { /** - * List of shells + * Bad request + */ + 400: BadRequestError; +}; +export type ExperimentalWorkspaceAdapterListError = ExperimentalWorkspaceAdapterListErrors[keyof ExperimentalWorkspaceAdapterListErrors]; +export type ExperimentalWorkspaceAdapterListResponses = { + /** + * Workspace adapters */ 200: Array<{ - path: string; + type: string; name: string; - acceptable: boolean; + description: string; }>; }; -export type PtyShellsResponse = PtyShellsResponses[keyof PtyShellsResponses]; -export type PtyListData = { +export type ExperimentalWorkspaceAdapterListResponse = ExperimentalWorkspaceAdapterListResponses[keyof ExperimentalWorkspaceAdapterListResponses]; +export type ExperimentalWorkspaceListData = { body?: never; path?: never; query?: { directory?: string; workspace?: string; }; - url: "/pty"; + url: "/experimental/workspace"; }; -export type PtyListResponses = { +export type ExperimentalWorkspaceListErrors = { /** - * List of sessions + * Bad request */ - 200: Array; + 400: BadRequestError; }; -export type PtyListResponse = PtyListResponses[keyof PtyListResponses]; -export type PtyCreateData = { +export type ExperimentalWorkspaceListError = ExperimentalWorkspaceListErrors[keyof ExperimentalWorkspaceListErrors]; +export type ExperimentalWorkspaceListResponses = { + /** + * Workspaces + */ + 200: Array; +}; +export type ExperimentalWorkspaceListResponse = ExperimentalWorkspaceListResponses[keyof ExperimentalWorkspaceListResponses]; +export type ExperimentalWorkspaceCreateData = { body?: { - command?: string; - args?: Array; - cwd?: string; - title?: string; - env?: { - [key: string]: string; - }; + id?: string; + type: string; + branch?: string | null; + extra?: unknown | null; }; path?: never; query?: { directory?: string; workspace?: string; }; - url: "/pty"; + url: "/experimental/workspace"; }; -export type PtyCreateErrors = { +export type ExperimentalWorkspaceCreateErrors = { /** - * Bad request + * WorkspaceCreateError | BadRequest | InvalidRequestError */ - 400: BadRequestError; + 400: WorkspaceCreateError | EffectHttpApiErrorBadRequest | InvalidRequestError; }; -export type PtyCreateError = PtyCreateErrors[keyof PtyCreateErrors]; -export type PtyCreateResponses = { +export type ExperimentalWorkspaceCreateError = ExperimentalWorkspaceCreateErrors[keyof ExperimentalWorkspaceCreateErrors]; +export type ExperimentalWorkspaceCreateResponses = { /** - * Created session + * Workspace created */ - 200: Pty; + 200: Workspace; }; -export type PtyCreateResponse = PtyCreateResponses[keyof PtyCreateResponses]; -export type PtyRemoveData = { +export type ExperimentalWorkspaceCreateResponse = ExperimentalWorkspaceCreateResponses[keyof ExperimentalWorkspaceCreateResponses]; +export type ExperimentalWorkspaceSyncListData = { body?: never; - path: { - ptyID: string; - }; + path?: never; query?: { directory?: string; workspace?: string; }; - url: "/pty/{ptyID}"; + url: "/experimental/workspace/sync-list"; }; -export type PtyRemoveErrors = { +export type ExperimentalWorkspaceSyncListErrors = { /** - * NotFoundError + * Bad request */ - 404: NotFoundError; + 400: BadRequestError; }; -export type PtyRemoveError = PtyRemoveErrors[keyof PtyRemoveErrors]; -export type PtyRemoveResponses = { +export type ExperimentalWorkspaceSyncListError = ExperimentalWorkspaceSyncListErrors[keyof ExperimentalWorkspaceSyncListErrors]; +export type ExperimentalWorkspaceSyncListResponses = { /** - * Session removed + * Workspace list synced */ - 200: boolean; + 204: void; }; -export type PtyRemoveResponse = PtyRemoveResponses[keyof PtyRemoveResponses]; -export type PtyGetData = { +export type ExperimentalWorkspaceSyncListResponse = ExperimentalWorkspaceSyncListResponses[keyof ExperimentalWorkspaceSyncListResponses]; +export type ExperimentalWorkspaceStatusData = { body?: never; - path: { - ptyID: string; - }; + path?: never; query?: { directory?: string; workspace?: string; }; - url: "/pty/{ptyID}"; + url: "/experimental/workspace/status"; }; -export type PtyGetErrors = { +export type ExperimentalWorkspaceStatusErrors = { /** - * NotFoundError + * Bad request */ - 404: NotFoundError; + 400: BadRequestError; }; -export type PtyGetError = PtyGetErrors[keyof PtyGetErrors]; -export type PtyGetResponses = { +export type ExperimentalWorkspaceStatusError = ExperimentalWorkspaceStatusErrors[keyof ExperimentalWorkspaceStatusErrors]; +export type ExperimentalWorkspaceStatusResponses = { /** - * Session info + * Workspace status */ - 200: Pty; + 200: Array; }; -export type PtyGetResponse = PtyGetResponses[keyof PtyGetResponses]; -export type PtyUpdateData = { - body?: { - title?: string; - size?: { - rows: number; - cols: number; - }; - }; +export type ExperimentalWorkspaceStatusResponse = ExperimentalWorkspaceStatusResponses[keyof ExperimentalWorkspaceStatusResponses]; +export type ExperimentalWorkspaceRemoveData = { + body?: never; path: { - ptyID: string; + id: string; }; query?: { directory?: string; workspace?: string; }; - url: "/pty/{ptyID}"; + url: "/experimental/workspace/{id}"; }; -export type PtyUpdateErrors = { +export type ExperimentalWorkspaceRemoveErrors = { /** - * Bad request + * BadRequest | InvalidRequestError */ - 400: BadRequestError; + 400: EffectHttpApiErrorBadRequest | InvalidRequestError; }; -export type PtyUpdateError = PtyUpdateErrors[keyof PtyUpdateErrors]; -export type PtyUpdateResponses = { +export type ExperimentalWorkspaceRemoveError = ExperimentalWorkspaceRemoveErrors[keyof ExperimentalWorkspaceRemoveErrors]; +export type ExperimentalWorkspaceRemoveResponses = { /** - * Updated session + * Workspace removed */ - 200: Pty; + 200: Workspace; }; -export type PtyUpdateResponse = PtyUpdateResponses[keyof PtyUpdateResponses]; -export type PtyConnectTokenData = { - body?: never; - path: { - ptyID: string; +export type ExperimentalWorkspaceRemoveResponse = ExperimentalWorkspaceRemoveResponses[keyof ExperimentalWorkspaceRemoveResponses]; +export type ExperimentalWorkspaceWarpData = { + body?: { + id: string | null; + sessionID: string; + copyChanges?: boolean; }; + path?: never; query?: { directory?: string; workspace?: string; }; - url: "/pty/{ptyID}/connect-token"; + url: "/experimental/workspace/warp"; }; -export type PtyConnectTokenErrors = { +export type ExperimentalWorkspaceWarpErrors = { /** - * Forbidden + * WorkspaceWarpError | VcsApplyError | InvalidRequestError */ - 403: EffectHttpApiErrorForbidden; + 400: WorkspaceWarpError | VcsApplyError | InvalidRequestError; /** * NotFoundError */ 404: NotFoundError; }; -export type PtyConnectTokenError = PtyConnectTokenErrors[keyof PtyConnectTokenErrors]; -export type PtyConnectTokenResponses = { +export type ExperimentalWorkspaceWarpError = ExperimentalWorkspaceWarpErrors[keyof ExperimentalWorkspaceWarpErrors]; +export type ExperimentalWorkspaceWarpResponses = { /** - * WebSocket connect token + * Session warped */ - 200: { - ticket: string; - expires_in: number; - }; + 204: void; }; -export type PtyConnectTokenResponse = PtyConnectTokenResponses[keyof PtyConnectTokenResponses]; -export type QuestionListData = { +export type ExperimentalWorkspaceWarpResponse = ExperimentalWorkspaceWarpResponses[keyof ExperimentalWorkspaceWarpResponses]; +export type V2HealthGetData = { body?: never; path?: never; - query?: { - directory?: string; - workspace?: string; - }; - url: "/question"; + query?: never; + url: "/api/health"; }; -export type QuestionListResponses = { +export type V2HealthGetErrors = { /** - * List of pending questions + * InvalidRequestError */ - 200: Array; + 400: InvalidRequestError; + /** + * UnauthorizedError + */ + 401: UnauthorizedError; }; -export type QuestionListResponse = QuestionListResponses[keyof QuestionListResponses]; -export type QuestionReplyData = { - body?: { - /** - * User answers in order of questions (each answer is an array of selected labels) - */ - answers: Array; - }; - path: { - requestID: string; +export type V2HealthGetError = V2HealthGetErrors[keyof V2HealthGetErrors]; +export type V2HealthGetResponses = { + /** + * Success + */ + 200: { + healthy: true; }; +}; +export type V2HealthGetResponse = V2HealthGetResponses[keyof V2HealthGetResponses]; +export type V2LocationGetData = { + body?: never; + path?: never; query?: { - directory?: string; - workspace?: string; + location?: { + directory?: string; + workspace?: string; + }; }; - url: "/question/{requestID}/reply"; + url: "/api/location"; }; -export type QuestionReplyErrors = { +export type V2LocationGetErrors = { /** - * Bad request + * InvalidRequestError */ - 400: BadRequestError; + 400: InvalidRequestError; /** - * Not found + * UnauthorizedError */ - 404: NotFoundError; + 401: UnauthorizedError; }; -export type QuestionReplyError = QuestionReplyErrors[keyof QuestionReplyErrors]; -export type QuestionReplyResponses = { +export type V2LocationGetError = V2LocationGetErrors[keyof V2LocationGetErrors]; +export type V2LocationGetResponses = { /** - * Question answered successfully + * Location.Info */ - 200: boolean; + 200: LocationInfo; }; -export type QuestionReplyResponse = QuestionReplyResponses[keyof QuestionReplyResponses]; -export type QuestionRejectData = { +export type V2LocationGetResponse = V2LocationGetResponses[keyof V2LocationGetResponses]; +export type V2AgentListData = { body?: never; - path: { - requestID: string; - }; + path?: never; query?: { - directory?: string; - workspace?: string; + location?: { + directory?: string; + workspace?: string; + }; }; - url: "/question/{requestID}/reject"; + url: "/api/agent"; }; -export type QuestionRejectErrors = { +export type V2AgentListErrors = { /** - * Bad request + * InvalidRequestError */ - 400: BadRequestError; + 400: InvalidRequestError; /** - * Not found + * UnauthorizedError */ - 404: NotFoundError; + 401: UnauthorizedError; }; -export type QuestionRejectError = QuestionRejectErrors[keyof QuestionRejectErrors]; -export type QuestionRejectResponses = { +export type V2AgentListError = V2AgentListErrors[keyof V2AgentListErrors]; +export type V2AgentListResponses = { /** - * Question rejected successfully + * Success */ - 200: boolean; + 200: { + location: LocationInfo; + data: Array; + }; }; -export type QuestionRejectResponse = QuestionRejectResponses[keyof QuestionRejectResponses]; -export type PermissionListData = { +export type V2AgentListResponse = V2AgentListResponses[keyof V2AgentListResponses]; +export type V2SessionListData = { body?: never; path?: never; query?: { - directory?: string; workspace?: string; - }; - url: "/permission"; -}; -export type PermissionListResponses = { - /** - * List of pending permissions - */ - 200: Array; -}; -export type PermissionListResponse = PermissionListResponses[keyof PermissionListResponses]; -export type PermissionReplyData = { - body?: { - reply: "once" | "always" | "reject"; - message?: string; - }; - path: { - requestID: string; - }; - query?: { + limit?: number; + order?: "asc" | "desc"; + search?: string; directory?: string; - workspace?: string; + project?: string; + subpath?: string; + /** + * Opaque pagination cursor returned as cursor.previous or cursor.next in the previous response. + */ + cursor?: string; }; - url: "/permission/{requestID}/reply"; + url: "/api/session"; }; -export type PermissionReplyErrors = { +export type V2SessionListErrors = { /** - * Bad request + * InvalidCursorError | InvalidRequestError */ - 400: BadRequestError; + 400: InvalidCursorError | InvalidRequestError; /** - * Not found + * UnauthorizedError */ - 404: NotFoundError; + 401: UnauthorizedError; }; -export type PermissionReplyError = PermissionReplyErrors[keyof PermissionReplyErrors]; -export type PermissionReplyResponses = { +export type V2SessionListError = V2SessionListErrors[keyof V2SessionListErrors]; +export type V2SessionListResponses = { /** - * Permission processed successfully + * SessionsResponse */ - 200: boolean; + 200: SessionsResponse; }; -export type PermissionReplyResponse = PermissionReplyResponses[keyof PermissionReplyResponses]; -export type ProviderListData = { - body?: never; - path?: never; - query?: { - directory?: string; - workspace?: string; +export type V2SessionListResponse = V2SessionListResponses[keyof V2SessionListResponses]; +export type V2SessionCreateData = { + body: { + id?: string; + agent?: string; + model?: ModelRef; + location?: LocationRef; }; - url: "/provider"; + path?: never; + query?: never; + url: "/api/session"; }; -export type ProviderListResponses = { +export type V2SessionCreateErrors = { /** - * List of providers + * InvalidRequestError + */ + 400: InvalidRequestError; + /** + * UnauthorizedError + */ + 401: UnauthorizedError; +}; +export type V2SessionCreateError = V2SessionCreateErrors[keyof V2SessionCreateErrors]; +export type V2SessionCreateResponses = { + /** + * Success */ 200: { - all: Array; - default: { - [key: string]: string; - }; - connected: Array; + data: SessionV2Info; }; }; -export type ProviderListResponse = ProviderListResponses[keyof ProviderListResponses]; -export type ProviderAuthData = { +export type V2SessionCreateResponse = V2SessionCreateResponses[keyof V2SessionCreateResponses]; +export type V2SessionActiveData = { body?: never; path?: never; - query?: { - directory?: string; - workspace?: string; - }; - url: "/provider/auth"; + query?: never; + url: "/api/session/active"; }; -export type ProviderAuthResponses = { +export type V2SessionActiveErrors = { /** - * Provider auth methods + * InvalidRequestError */ - 200: { - [key: string]: Array; - }; + 400: InvalidRequestError; + /** + * UnauthorizedError + */ + 401: UnauthorizedError; }; -export type ProviderAuthResponse = ProviderAuthResponses[keyof ProviderAuthResponses]; -export type ProviderOauthAuthorizeData = { - body?: { - /** - * Auth method index - */ - method: number; - inputs?: { - [key: string]: string; +export type V2SessionActiveError = V2SessionActiveErrors[keyof V2SessionActiveErrors]; +export type V2SessionActiveResponses = { + /** + * Success + */ + 200: { + data: { + [key: string]: unknown | SessionActive; }; }; +}; +export type V2SessionActiveResponse = V2SessionActiveResponses[keyof V2SessionActiveResponses]; +export type V2SessionGetData = { + body?: never; path: { - providerID: string; - }; - query?: { - directory?: string; - workspace?: string; + sessionID: string; }; - url: "/provider/{providerID}/oauth/authorize"; + query?: never; + url: "/api/session/{sessionID}"; }; -export type ProviderOauthAuthorizeErrors = { +export type V2SessionGetErrors = { + /** + * InvalidRequestError + */ + 400: InvalidRequestError; + /** + * UnauthorizedError + */ + 401: UnauthorizedError; /** - * ProviderAuthError + * SessionNotFoundError */ - 400: ProviderAuthError1; + 404: SessionNotFoundError; }; -export type ProviderOauthAuthorizeError = ProviderOauthAuthorizeErrors[keyof ProviderOauthAuthorizeErrors]; -export type ProviderOauthAuthorizeResponses = { +export type V2SessionGetError = V2SessionGetErrors[keyof V2SessionGetErrors]; +export type V2SessionGetResponses = { /** - * Authorization URL and method + * Success */ - 200: ProviderAuthAuthorization; + 200: { + data: SessionV2Info; + }; }; -export type ProviderOauthAuthorizeResponse = ProviderOauthAuthorizeResponses[keyof ProviderOauthAuthorizeResponses]; -export type ProviderOauthCallbackData = { - body?: { - /** - * Auth method index - */ - method: number; - code?: string; +export type V2SessionGetResponse = V2SessionGetResponses[keyof V2SessionGetResponses]; +export type V2SessionSwitchAgentData = { + body: { + agent: string; }; path: { - providerID: string; - }; - query?: { - directory?: string; - workspace?: string; + sessionID: string; }; - url: "/provider/{providerID}/oauth/callback"; + query?: never; + url: "/api/session/{sessionID}/agent"; }; -export type ProviderOauthCallbackErrors = { +export type V2SessionSwitchAgentErrors = { /** - * ProviderAuthError + * InvalidRequestError */ - 400: ProviderAuthError1; -}; -export type ProviderOauthCallbackError = ProviderOauthCallbackErrors[keyof ProviderOauthCallbackErrors]; -export type ProviderOauthCallbackResponses = { + 400: InvalidRequestError; /** - * OAuth callback processed successfully + * UnauthorizedError */ - 200: boolean; -}; -export type ProviderOauthCallbackResponse = ProviderOauthCallbackResponses[keyof ProviderOauthCallbackResponses]; -export type SessionListData = { - body?: never; - path?: never; - query?: { - directory?: string; - workspace?: string; - scope?: "project"; - path?: string; - roots?: boolean | "true" | "false"; - start?: number; - search?: string; - limit?: number; - }; - url: "/session"; + 401: UnauthorizedError; + /** + * SessionNotFoundError + */ + 404: SessionNotFoundError; }; -export type SessionListResponses = { +export type V2SessionSwitchAgentError = V2SessionSwitchAgentErrors[keyof V2SessionSwitchAgentErrors]; +export type V2SessionSwitchAgentResponses = { /** - * List of sessions + * */ - 200: Array; + 204: void; }; -export type SessionListResponse = SessionListResponses[keyof SessionListResponses]; -export type SessionCreateData = { - body?: { - parentID?: string; - title?: string; - agent?: string; - model?: { - id: string; - providerID: string; - variant?: string; - }; - permission?: PermissionRuleset; - workspaceID?: string; +export type V2SessionSwitchAgentResponse = V2SessionSwitchAgentResponses[keyof V2SessionSwitchAgentResponses]; +export type V2SessionSwitchModelData = { + body: { + model: ModelRef; }; - path?: never; - query?: { - directory?: string; - workspace?: string; + path: { + sessionID: string; }; - url: "/session"; + query?: never; + url: "/api/session/{sessionID}/model"; }; -export type SessionCreateErrors = { +export type V2SessionSwitchModelErrors = { /** - * Bad request + * InvalidRequestError */ - 400: BadRequestError; + 400: InvalidRequestError; + /** + * UnauthorizedError + */ + 401: UnauthorizedError; + /** + * SessionNotFoundError + */ + 404: SessionNotFoundError; }; -export type SessionCreateError = SessionCreateErrors[keyof SessionCreateErrors]; -export type SessionCreateResponses = { +export type V2SessionSwitchModelError = V2SessionSwitchModelErrors[keyof V2SessionSwitchModelErrors]; +export type V2SessionSwitchModelResponses = { /** - * Successfully created session + * */ - 200: Session; + 204: void; }; -export type SessionCreateResponse = SessionCreateResponses[keyof SessionCreateResponses]; -export type SessionStatusData = { - body?: never; - path?: never; - query?: { - directory?: string; - workspace?: string; +export type V2SessionSwitchModelResponse = V2SessionSwitchModelResponses[keyof V2SessionSwitchModelResponses]; +export type V2SessionPromptData = { + body: { + id?: string; + prompt: PromptInput; + delivery?: "steer" | "queue"; + resume?: boolean; }; - url: "/session/status"; + path: { + sessionID: string; + }; + query?: never; + url: "/api/session/{sessionID}/prompt"; }; -export type SessionStatusErrors = { +export type V2SessionPromptErrors = { /** - * Bad request + * InvalidRequestError */ - 400: BadRequestError; + 400: InvalidRequestError; + /** + * UnauthorizedError + */ + 401: UnauthorizedError; + /** + * SessionNotFoundError + */ + 404: SessionNotFoundError; + /** + * ConflictError + */ + 409: ConflictError; }; -export type SessionStatusError = SessionStatusErrors[keyof SessionStatusErrors]; -export type SessionStatusResponses = { +export type V2SessionPromptError = V2SessionPromptErrors[keyof V2SessionPromptErrors]; +export type V2SessionPromptResponses = { /** - * Get session status + * Success */ 200: { - [key: string]: SessionStatus; + data: SessionInputAdmitted; }; }; -export type SessionStatusResponse = SessionStatusResponses[keyof SessionStatusResponses]; -export type SessionDeleteData = { +export type V2SessionPromptResponse = V2SessionPromptResponses[keyof V2SessionPromptResponses]; +export type V2SessionCompactData = { body?: never; path: { sessionID: string; }; - query?: { - directory?: string; - workspace?: string; - }; - url: "/session/{sessionID}"; + query?: never; + url: "/api/session/{sessionID}/compact"; }; -export type SessionDeleteErrors = { +export type V2SessionCompactErrors = { /** - * Bad request + * InvalidRequestError */ - 400: BadRequestError; + 400: InvalidRequestError; /** - * NotFoundError + * UnauthorizedError */ - 404: NotFoundError; + 401: UnauthorizedError; + /** + * SessionNotFoundError + */ + 404: SessionNotFoundError; + /** + * ServiceUnavailableError + */ + 503: ServiceUnavailableError; }; -export type SessionDeleteError = SessionDeleteErrors[keyof SessionDeleteErrors]; -export type SessionDeleteResponses = { +export type V2SessionCompactError = V2SessionCompactErrors[keyof V2SessionCompactErrors]; +export type V2SessionCompactResponses = { /** - * Successfully deleted session + * */ - 200: boolean; + 204: void; }; -export type SessionDeleteResponse = SessionDeleteResponses[keyof SessionDeleteResponses]; -export type SessionGetData = { +export type V2SessionCompactResponse = V2SessionCompactResponses[keyof V2SessionCompactResponses]; +export type V2SessionWaitData = { body?: never; path: { sessionID: string; }; - query?: { - directory?: string; - workspace?: string; - }; - url: "/session/{sessionID}"; + query?: never; + url: "/api/session/{sessionID}/wait"; }; -export type SessionGetErrors = { +export type V2SessionWaitErrors = { /** - * Bad request + * InvalidRequestError */ - 400: BadRequestError; + 400: InvalidRequestError; /** - * NotFoundError + * UnauthorizedError */ - 404: NotFoundError; + 401: UnauthorizedError; + /** + * SessionNotFoundError + */ + 404: SessionNotFoundError; + /** + * ServiceUnavailableError + */ + 503: ServiceUnavailableError; }; -export type SessionGetError = SessionGetErrors[keyof SessionGetErrors]; -export type SessionGetResponses = { +export type V2SessionWaitError = V2SessionWaitErrors[keyof V2SessionWaitErrors]; +export type V2SessionWaitResponses = { /** - * Get session + * */ - 200: Session; + 204: void; }; -export type SessionGetResponse = SessionGetResponses[keyof SessionGetResponses]; -export type SessionUpdateData = { - body?: { - title?: string; - permission?: PermissionRuleset; - time?: { - archived?: number; - }; +export type V2SessionWaitResponse = V2SessionWaitResponses[keyof V2SessionWaitResponses]; +export type V2SessionRevertStageData = { + body: { + messageID: string; + files?: boolean; }; path: { sessionID: string; }; - query?: { - directory?: string; - workspace?: string; - }; - url: "/session/{sessionID}"; + query?: never; + url: "/api/session/{sessionID}/revert/stage"; }; -export type SessionUpdateErrors = { +export type V2SessionRevertStageErrors = { /** - * Bad request + * InvalidRequestError */ - 400: BadRequestError; + 400: InvalidRequestError; /** - * NotFoundError + * UnauthorizedError */ - 404: NotFoundError; + 401: UnauthorizedError; + /** + * MessageNotFoundError | SessionNotFoundError + */ + 404: MessageNotFoundError | SessionNotFoundError; + /** + * UnknownError + */ + 500: UnknownError1; }; -export type SessionUpdateError = SessionUpdateErrors[keyof SessionUpdateErrors]; -export type SessionUpdateResponses = { +export type V2SessionRevertStageError = V2SessionRevertStageErrors[keyof V2SessionRevertStageErrors]; +export type V2SessionRevertStageResponses = { /** - * Successfully updated session + * Success */ - 200: Session; + 200: { + data: RevertState; + }; }; -export type SessionUpdateResponse = SessionUpdateResponses[keyof SessionUpdateResponses]; -export type SessionChildrenData = { +export type V2SessionRevertStageResponse = V2SessionRevertStageResponses[keyof V2SessionRevertStageResponses]; +export type V2SessionRevertClearData = { body?: never; path: { sessionID: string; }; - query?: { - directory?: string; - workspace?: string; - }; - url: "/session/{sessionID}/children"; + query?: never; + url: "/api/session/{sessionID}/revert/clear"; }; -export type SessionChildrenErrors = { +export type V2SessionRevertClearErrors = { /** - * Bad request + * InvalidRequestError */ - 400: BadRequestError; + 400: InvalidRequestError; /** - * NotFoundError + * UnauthorizedError */ - 404: NotFoundError; + 401: UnauthorizedError; + /** + * SessionNotFoundError + */ + 404: SessionNotFoundError; + /** + * UnknownError + */ + 500: UnknownError1; }; -export type SessionChildrenError = SessionChildrenErrors[keyof SessionChildrenErrors]; -export type SessionChildrenResponses = { +export type V2SessionRevertClearError = V2SessionRevertClearErrors[keyof V2SessionRevertClearErrors]; +export type V2SessionRevertClearResponses = { /** - * List of children + * */ - 200: Array; + 204: void; }; -export type SessionChildrenResponse = SessionChildrenResponses[keyof SessionChildrenResponses]; -export type SessionTodoData = { +export type V2SessionRevertClearResponse = V2SessionRevertClearResponses[keyof V2SessionRevertClearResponses]; +export type V2SessionRevertCommitData = { body?: never; path: { sessionID: string; }; - query?: { - directory?: string; - workspace?: string; - }; - url: "/session/{sessionID}/todo"; + query?: never; + url: "/api/session/{sessionID}/revert/commit"; }; -export type SessionTodoErrors = { +export type V2SessionRevertCommitErrors = { /** - * Bad request + * InvalidRequestError */ - 400: BadRequestError; + 400: InvalidRequestError; /** - * NotFoundError + * UnauthorizedError */ - 404: NotFoundError; + 401: UnauthorizedError; + /** + * SessionNotFoundError + */ + 404: SessionNotFoundError; }; -export type SessionTodoError = SessionTodoErrors[keyof SessionTodoErrors]; -export type SessionTodoResponses = { +export type V2SessionRevertCommitError = V2SessionRevertCommitErrors[keyof V2SessionRevertCommitErrors]; +export type V2SessionRevertCommitResponses = { /** - * Todo list + * */ - 200: Array; + 204: void; }; -export type SessionTodoResponse = SessionTodoResponses[keyof SessionTodoResponses]; -export type SessionDiffData = { +export type V2SessionRevertCommitResponse = V2SessionRevertCommitResponses[keyof V2SessionRevertCommitResponses]; +export type V2SessionContextData = { body?: never; path: { sessionID: string; }; - query?: { - directory?: string; - workspace?: string; - messageID?: string; - }; - url: "/session/{sessionID}/diff"; + query?: never; + url: "/api/session/{sessionID}/context"; }; -export type SessionDiffResponses = { +export type V2SessionContextErrors = { /** - * Successfully retrieved diff + * InvalidRequestError */ - 200: Array; + 400: InvalidRequestError; + /** + * UnauthorizedError + */ + 401: UnauthorizedError; + /** + * SessionNotFoundError + */ + 404: SessionNotFoundError; + /** + * UnknownError + */ + 500: UnknownError1; }; -export type SessionDiffResponse = SessionDiffResponses[keyof SessionDiffResponses]; -export type SessionMessagesData = { +export type V2SessionContextError = V2SessionContextErrors[keyof V2SessionContextErrors]; +export type V2SessionContextResponses = { + /** + * Success + */ + 200: { + data: Array; + }; +}; +export type V2SessionContextResponse = V2SessionContextResponses[keyof V2SessionContextResponses]; +export type V2SessionHistoryData = { body?: never; path: { sessionID: string; }; query?: { - directory?: string; - workspace?: string; limit?: number; - before?: string; + after?: number; }; - url: "/session/{sessionID}/message"; + url: "/api/session/{sessionID}/history"; }; -export type SessionMessagesErrors = { +export type V2SessionHistoryErrors = { /** - * Bad request + * InvalidRequestError */ - 400: BadRequestError; + 400: InvalidRequestError; /** - * NotFoundError + * UnauthorizedError */ - 404: NotFoundError; + 401: UnauthorizedError; + /** + * SessionNotFoundError + */ + 404: SessionNotFoundError; }; -export type SessionMessagesError = SessionMessagesErrors[keyof SessionMessagesErrors]; -export type SessionMessagesResponses = { +export type V2SessionHistoryError = V2SessionHistoryErrors[keyof V2SessionHistoryErrors]; +export type V2SessionHistoryResponses = { /** - * List of messages + * SessionHistory */ - 200: Array<{ - info: Message; - parts: Array; - }>; + 200: SessionHistory; }; -export type SessionMessagesResponse = SessionMessagesResponses[keyof SessionMessagesResponses]; -export type SessionPromptData = { - body?: { - messageID?: string; - model?: { - providerID: string; - modelID: string; - }; - agent?: string; - noReply?: boolean; - tools?: { - [key: string]: boolean; - }; - format?: OutputFormat; - system?: string; - variant?: string; - parts: Array; - }; +export type V2SessionHistoryResponse = V2SessionHistoryResponses[keyof V2SessionHistoryResponses]; +export type V2SessionEventsData = { + body?: never; path: { sessionID: string; }; query?: { - directory?: string; - workspace?: string; + after?: string; }; - url: "/session/{sessionID}/message"; + url: "/api/session/{sessionID}/event"; }; -export type SessionPromptErrors = { +export type V2SessionEventsErrors = { /** - * Bad request + * InvalidRequestError */ - 400: BadRequestError; + 400: InvalidRequestError; /** - * NotFoundError + * UnauthorizedError */ - 404: NotFoundError; + 401: UnauthorizedError; + /** + * SessionNotFoundError + */ + 404: SessionNotFoundError; }; -export type SessionPromptError = SessionPromptErrors[keyof SessionPromptErrors]; -export type SessionPromptResponses = { +export type V2SessionEventsError = V2SessionEventsErrors[keyof V2SessionEventsErrors]; +export type V2SessionEventsResponses = { /** - * Created message + * Success */ 200: { - info: AssistantMessage; - parts: Array; + id: string; + event: string; + data: SessionDurableEventStream; }; }; -export type SessionPromptResponse = SessionPromptResponses[keyof SessionPromptResponses]; -export type SessionDeleteMessageData = { +export type V2SessionEventsResponse = V2SessionEventsResponses[keyof V2SessionEventsResponses]; +export type V2SessionInterruptData = { body?: never; path: { sessionID: string; - messageID: string; - }; - query?: { - directory?: string; - workspace?: string; }; - url: "/session/{sessionID}/message/{messageID}"; + query?: never; + url: "/api/session/{sessionID}/interrupt"; }; -export type SessionDeleteMessageErrors = { +export type V2SessionInterruptErrors = { /** - * Bad request + * InvalidRequestError */ - 400: BadRequestError; + 400: InvalidRequestError; /** - * NotFoundError + * UnauthorizedError */ - 404: NotFoundError; + 401: UnauthorizedError; + /** + * SessionNotFoundError + */ + 404: SessionNotFoundError; }; -export type SessionDeleteMessageError = SessionDeleteMessageErrors[keyof SessionDeleteMessageErrors]; -export type SessionDeleteMessageResponses = { +export type V2SessionInterruptError = V2SessionInterruptErrors[keyof V2SessionInterruptErrors]; +export type V2SessionInterruptResponses = { /** - * Successfully deleted message + * */ - 200: boolean; + 204: void; }; -export type SessionDeleteMessageResponse = SessionDeleteMessageResponses[keyof SessionDeleteMessageResponses]; -export type SessionMessageData = { +export type V2SessionInterruptResponse = V2SessionInterruptResponses[keyof V2SessionInterruptResponses]; +export type V2SessionMessageData = { body?: never; path: { sessionID: string; messageID: string; }; - query?: { - directory?: string; - workspace?: string; - }; - url: "/session/{sessionID}/message/{messageID}"; + query?: never; + url: "/api/session/{sessionID}/message/{messageID}"; }; -export type SessionMessageErrors = { +export type V2SessionMessageErrors = { /** - * Bad request + * InvalidRequestError */ - 400: BadRequestError; + 400: InvalidRequestError; /** - * NotFoundError + * UnauthorizedError */ - 404: NotFoundError; + 401: UnauthorizedError; + /** + * SessionNotFoundError | MessageNotFoundError + */ + 404: MessageNotFoundError | SessionNotFoundError; }; -export type SessionMessageError = SessionMessageErrors[keyof SessionMessageErrors]; -export type SessionMessageResponses = { +export type V2SessionMessageError = V2SessionMessageErrors[keyof V2SessionMessageErrors]; +export type V2SessionMessageResponses = { /** - * Message + * Success */ 200: { - info: Message; - parts: Array; + data: SessionMessage; }; }; -export type SessionMessageResponse = SessionMessageResponses[keyof SessionMessageResponses]; -export type SessionForkData = { - body?: { - messageID?: string; - }; +export type V2SessionMessageResponse = V2SessionMessageResponses[keyof V2SessionMessageResponses]; +export type V2SessionMessagesData = { + body?: never; path: { sessionID: string; }; query?: { - directory?: string; - workspace?: string; + limit?: number; + order?: "asc" | "desc"; + /** + * Opaque pagination cursor returned as cursor.previous or cursor.next in the previous response. Do not combine with order. + */ + cursor?: string; }; - url: "/session/{sessionID}/fork"; + url: "/api/session/{sessionID}/message"; }; -export type SessionForkErrors = { +export type V2SessionMessagesErrors = { /** - * Bad request + * InvalidCursorError | InvalidRequestError */ - 400: BadRequestError; + 400: InvalidCursorError | InvalidRequestError; /** - * NotFoundError + * UnauthorizedError */ - 404: NotFoundError; -}; -export type SessionForkError = SessionForkErrors[keyof SessionForkErrors]; -export type SessionForkResponses = { + 401: UnauthorizedError; /** - * 200 + * SessionNotFoundError */ - 200: Session; -}; -export type SessionForkResponse = SessionForkResponses[keyof SessionForkResponses]; -export type SessionAbortData = { - body?: never; - path: { - sessionID: string; - }; - query?: { - directory?: string; - workspace?: string; - }; - url: "/session/{sessionID}/abort"; -}; -export type SessionAbortErrors = { + 404: SessionNotFoundError; /** - * Bad request + * UnknownError */ - 400: BadRequestError; + 500: UnknownError1; }; -export type SessionAbortError = SessionAbortErrors[keyof SessionAbortErrors]; -export type SessionAbortResponses = { +export type V2SessionMessagesError = V2SessionMessagesErrors[keyof V2SessionMessagesErrors]; +export type V2SessionMessagesResponses = { /** - * Aborted session + * SessionMessagesResponse */ - 200: boolean; + 200: SessionMessagesResponse; }; -export type SessionAbortResponse = SessionAbortResponses[keyof SessionAbortResponses]; -export type SessionInitData = { - body?: { - modelID: string; - providerID: string; - messageID: string; - }; - path: { - sessionID: string; - }; +export type V2SessionMessagesResponse = V2SessionMessagesResponses[keyof V2SessionMessagesResponses]; +export type V2ModelListData = { + body?: never; + path?: never; query?: { - directory?: string; - workspace?: string; + location?: { + directory?: string; + workspace?: string; + }; }; - url: "/session/{sessionID}/init"; + url: "/api/model"; }; -export type SessionInitErrors = { +export type V2ModelListErrors = { /** - * Bad request + * InvalidRequestError */ - 400: BadRequestError; + 400: InvalidRequestError; /** - * NotFoundError + * UnauthorizedError */ - 404: NotFoundError; + 401: UnauthorizedError; + /** + * ServiceUnavailableError + */ + 503: ServiceUnavailableError; }; -export type SessionInitError = SessionInitErrors[keyof SessionInitErrors]; -export type SessionInitResponses = { +export type V2ModelListError = V2ModelListErrors[keyof V2ModelListErrors]; +export type V2ModelListResponses = { /** - * 200 + * Success */ - 200: boolean; + 200: { + location: LocationInfo; + data: Array; + }; }; -export type SessionInitResponse = SessionInitResponses[keyof SessionInitResponses]; -export type SessionUnshareData = { +export type V2ModelListResponse = V2ModelListResponses[keyof V2ModelListResponses]; +export type V2ProviderListData = { body?: never; - path: { - sessionID: string; - }; + path?: never; query?: { - directory?: string; - workspace?: string; + location?: { + directory?: string; + workspace?: string; + }; }; - url: "/session/{sessionID}/share"; + url: "/api/provider"; }; -export type SessionUnshareErrors = { +export type V2ProviderListErrors = { /** - * NotFoundError + * InvalidRequestError */ - 404: NotFoundError; + 400: InvalidRequestError; /** - * InternalServerError + * UnauthorizedError */ - 500: EffectHttpApiErrorInternalServerError; + 401: UnauthorizedError; + /** + * ServiceUnavailableError + */ + 503: ServiceUnavailableError; }; -export type SessionUnshareError = SessionUnshareErrors[keyof SessionUnshareErrors]; -export type SessionUnshareResponses = { +export type V2ProviderListError = V2ProviderListErrors[keyof V2ProviderListErrors]; +export type V2ProviderListResponses = { /** - * Successfully unshared session + * Success */ - 200: Session; + 200: { + location: LocationInfo; + data: Array; + }; }; -export type SessionUnshareResponse = SessionUnshareResponses[keyof SessionUnshareResponses]; -export type SessionShareData = { +export type V2ProviderListResponse = V2ProviderListResponses[keyof V2ProviderListResponses]; +export type V2ProviderGetData = { body?: never; path: { - sessionID: string; + providerID: string; }; query?: { - directory?: string; - workspace?: string; + location?: { + directory?: string; + workspace?: string; + }; }; - url: "/session/{sessionID}/share"; + url: "/api/provider/{providerID}"; }; -export type SessionShareErrors = { +export type V2ProviderGetErrors = { /** - * NotFoundError + * InvalidRequestError + */ + 400: InvalidRequestError; + /** + * UnauthorizedError + */ + 401: UnauthorizedError; + /** + * ProviderNotFoundError */ - 404: NotFoundError; + 404: ProviderNotFoundError; /** - * InternalServerError + * ServiceUnavailableError */ - 500: EffectHttpApiErrorInternalServerError; + 503: ServiceUnavailableError; }; -export type SessionShareError = SessionShareErrors[keyof SessionShareErrors]; -export type SessionShareResponses = { +export type V2ProviderGetError = V2ProviderGetErrors[keyof V2ProviderGetErrors]; +export type V2ProviderGetResponses = { /** - * Successfully shared session + * Success */ - 200: Session; -}; -export type SessionShareResponse = SessionShareResponses[keyof SessionShareResponses]; -export type SessionSummarizeData = { - body?: { - providerID: string; - modelID: string; - auto?: boolean; - }; - path: { - sessionID: string; + 200: { + location: LocationInfo; + data: ProviderV2Info; }; +}; +export type V2ProviderGetResponse = V2ProviderGetResponses[keyof V2ProviderGetResponses]; +export type V2IntegrationListData = { + body?: never; + path?: never; query?: { - directory?: string; - workspace?: string; + location?: { + directory?: string; + workspace?: string; + }; }; - url: "/session/{sessionID}/summarize"; + url: "/api/integration"; }; -export type SessionSummarizeErrors = { +export type V2IntegrationListErrors = { /** - * Bad request + * InvalidRequestError */ - 400: BadRequestError; + 400: InvalidRequestError; /** - * NotFoundError + * UnauthorizedError */ - 404: NotFoundError; + 401: UnauthorizedError; }; -export type SessionSummarizeError = SessionSummarizeErrors[keyof SessionSummarizeErrors]; -export type SessionSummarizeResponses = { +export type V2IntegrationListError = V2IntegrationListErrors[keyof V2IntegrationListErrors]; +export type V2IntegrationListResponses = { /** - * Summarized session + * Success */ - 200: boolean; -}; -export type SessionSummarizeResponse = SessionSummarizeResponses[keyof SessionSummarizeResponses]; -export type SessionPromptAsyncData = { - body?: { - messageID?: string; - model?: { - providerID: string; - modelID: string; - }; - agent?: string; - noReply?: boolean; - tools?: { - [key: string]: boolean; - }; - format?: OutputFormat; - system?: string; - variant?: string; - parts: Array; + 200: { + location: LocationInfo; + data: Array; }; +}; +export type V2IntegrationListResponse = V2IntegrationListResponses[keyof V2IntegrationListResponses]; +export type V2IntegrationGetData = { + body?: never; path: { - sessionID: string; + integrationID: string; }; query?: { - directory?: string; - workspace?: string; + location?: { + directory?: string; + workspace?: string; + }; }; - url: "/session/{sessionID}/prompt_async"; + url: "/api/integration/{integrationID}"; }; -export type SessionPromptAsyncErrors = { +export type V2IntegrationGetErrors = { /** - * Bad request + * InvalidRequestError */ - 400: BadRequestError; + 400: InvalidRequestError; /** - * NotFoundError + * UnauthorizedError */ - 404: NotFoundError; + 401: UnauthorizedError; }; -export type SessionPromptAsyncError = SessionPromptAsyncErrors[keyof SessionPromptAsyncErrors]; -export type SessionPromptAsyncResponses = { +export type V2IntegrationGetError = V2IntegrationGetErrors[keyof V2IntegrationGetErrors]; +export type V2IntegrationGetResponses = { /** - * Prompt accepted + * Success */ - 204: void; + 200: { + location: LocationInfo; + data: IntegrationInfo; + }; }; -export type SessionPromptAsyncResponse = SessionPromptAsyncResponses[keyof SessionPromptAsyncResponses]; -export type SessionCommandData = { - body?: { - messageID?: string; - agent?: string; - model?: string; - arguments: string; - command: string; - variant?: string; - parts?: Array<{ - id?: string; - type: "file"; - mime: string; - filename?: string; - url: string; - source?: FilePartSource; - }>; +export type V2IntegrationGetResponse = V2IntegrationGetResponses[keyof V2IntegrationGetResponses]; +export type V2IntegrationConnectKeyData = { + body: { + key: string; + label?: string; }; path: { - sessionID: string; + integrationID: string; }; query?: { - directory?: string; - workspace?: string; + location?: { + directory?: string; + workspace?: string; + }; }; - url: "/session/{sessionID}/command"; + url: "/api/integration/{integrationID}/connect/key"; }; -export type SessionCommandErrors = { +export type V2IntegrationConnectKeyErrors = { /** - * Bad request + * InvalidRequestError */ - 400: BadRequestError; + 400: InvalidRequestError; /** - * NotFoundError + * UnauthorizedError */ - 404: NotFoundError; + 401: UnauthorizedError; }; -export type SessionCommandError = SessionCommandErrors[keyof SessionCommandErrors]; -export type SessionCommandResponses = { +export type V2IntegrationConnectKeyError = V2IntegrationConnectKeyErrors[keyof V2IntegrationConnectKeyErrors]; +export type V2IntegrationConnectKeyResponses = { /** - * Created message + * */ - 200: { - info: AssistantMessage; - parts: Array; - }; + 204: void; }; -export type SessionCommandResponse = SessionCommandResponses[keyof SessionCommandResponses]; -export type SessionShellData = { - body?: { - messageID?: string; - agent: string; - model?: { - providerID: string; - modelID: string; +export type V2IntegrationConnectKeyResponse = V2IntegrationConnectKeyResponses[keyof V2IntegrationConnectKeyResponses]; +export type V2IntegrationConnectOauthData = { + body: { + methodID: string; + inputs: { + [key: string]: string; }; - command: string; + label?: string; }; path: { - sessionID: string; + integrationID: string; }; query?: { - directory?: string; - workspace?: string; + location?: { + directory?: string; + workspace?: string; + }; }; - url: "/session/{sessionID}/shell"; + url: "/api/integration/{integrationID}/connect/oauth"; }; -export type SessionShellErrors = { +export type V2IntegrationConnectOauthErrors = { /** - * Bad request + * InvalidRequestError */ - 400: BadRequestError; + 400: InvalidRequestError; /** - * NotFoundError + * UnauthorizedError */ - 404: NotFoundError; + 401: UnauthorizedError; }; -export type SessionShellError = SessionShellErrors[keyof SessionShellErrors]; -export type SessionShellResponses = { +export type V2IntegrationConnectOauthError = V2IntegrationConnectOauthErrors[keyof V2IntegrationConnectOauthErrors]; +export type V2IntegrationConnectOauthResponses = { /** - * Created message + * Success */ 200: { - info: Message; - parts: Array; + location: LocationInfo; + data: IntegrationAttempt; }; }; -export type SessionShellResponse = SessionShellResponses[keyof SessionShellResponses]; -export type SessionRevertData = { - body?: { - messageID: string; - partID?: string; - }; +export type V2IntegrationConnectOauthResponse = V2IntegrationConnectOauthResponses[keyof V2IntegrationConnectOauthResponses]; +export type V2IntegrationAttemptCancelData = { + body?: never; path: { - sessionID: string; + attemptID: string; }; query?: { - directory?: string; - workspace?: string; + location?: { + directory?: string; + workspace?: string; + }; }; - url: "/session/{sessionID}/revert"; + url: "/api/integration/attempt/{attemptID}"; }; -export type SessionRevertErrors = { +export type V2IntegrationAttemptCancelErrors = { /** - * Bad request + * InvalidRequestError */ - 400: BadRequestError; + 400: InvalidRequestError; /** - * NotFoundError + * UnauthorizedError */ - 404: NotFoundError; + 401: UnauthorizedError; }; -export type SessionRevertError = SessionRevertErrors[keyof SessionRevertErrors]; -export type SessionRevertResponses = { +export type V2IntegrationAttemptCancelError = V2IntegrationAttemptCancelErrors[keyof V2IntegrationAttemptCancelErrors]; +export type V2IntegrationAttemptCancelResponses = { /** - * Updated session + * */ - 200: Session; + 204: void; }; -export type SessionRevertResponse = SessionRevertResponses[keyof SessionRevertResponses]; -export type SessionUnrevertData = { +export type V2IntegrationAttemptCancelResponse = V2IntegrationAttemptCancelResponses[keyof V2IntegrationAttemptCancelResponses]; +export type V2IntegrationAttemptStatusData = { body?: never; path: { - sessionID: string; + attemptID: string; }; query?: { - directory?: string; - workspace?: string; + location?: { + directory?: string; + workspace?: string; + }; }; - url: "/session/{sessionID}/unrevert"; + url: "/api/integration/attempt/{attemptID}"; }; -export type SessionUnrevertErrors = { +export type V2IntegrationAttemptStatusErrors = { /** - * Bad request + * InvalidRequestError */ - 400: BadRequestError; + 400: InvalidRequestError; /** - * NotFoundError + * UnauthorizedError */ - 404: NotFoundError; + 401: UnauthorizedError; }; -export type SessionUnrevertError = SessionUnrevertErrors[keyof SessionUnrevertErrors]; -export type SessionUnrevertResponses = { +export type V2IntegrationAttemptStatusError = V2IntegrationAttemptStatusErrors[keyof V2IntegrationAttemptStatusErrors]; +export type V2IntegrationAttemptStatusResponses = { /** - * Updated session + * Success */ - 200: Session; + 200: { + location: LocationInfo; + data: IntegrationAttemptStatus; + }; }; -export type SessionUnrevertResponse = SessionUnrevertResponses[keyof SessionUnrevertResponses]; -export type PermissionRespondData = { - body?: { - response: "once" | "always" | "reject"; +export type V2IntegrationAttemptStatusResponse = V2IntegrationAttemptStatusResponses[keyof V2IntegrationAttemptStatusResponses]; +export type V2IntegrationAttemptCompleteData = { + body: { + code?: string; }; path: { - sessionID: string; - permissionID: string; + attemptID: string; }; query?: { - directory?: string; - workspace?: string; + location?: { + directory?: string; + workspace?: string; + }; }; - url: "/session/{sessionID}/permissions/{permissionID}"; + url: "/api/integration/attempt/{attemptID}/complete"; }; -export type PermissionRespondErrors = { +export type V2IntegrationAttemptCompleteErrors = { /** - * Bad request + * InvalidRequestError */ - 400: BadRequestError; + 400: InvalidRequestError; /** - * NotFoundError + * UnauthorizedError */ - 404: NotFoundError; + 401: UnauthorizedError; }; -export type PermissionRespondError = PermissionRespondErrors[keyof PermissionRespondErrors]; -export type PermissionRespondResponses = { +export type V2IntegrationAttemptCompleteError = V2IntegrationAttemptCompleteErrors[keyof V2IntegrationAttemptCompleteErrors]; +export type V2IntegrationAttemptCompleteResponses = { /** - * Permission processed successfully + * */ - 200: boolean; + 204: void; }; -export type PermissionRespondResponse = PermissionRespondResponses[keyof PermissionRespondResponses]; -export type PartDeleteData = { +export type V2IntegrationAttemptCompleteResponse = V2IntegrationAttemptCompleteResponses[keyof V2IntegrationAttemptCompleteResponses]; +export type V2CredentialRemoveData = { body?: never; path: { - sessionID: string; - messageID: string; - partID: string; + credentialID: string; }; query?: { - directory?: string; - workspace?: string; + location?: { + directory?: string; + workspace?: string; + }; }; - url: "/session/{sessionID}/message/{messageID}/part/{partID}"; + url: "/api/credential/{credentialID}"; }; -export type PartDeleteErrors = { +export type V2CredentialRemoveErrors = { /** - * Bad request + * InvalidRequestError */ - 400: BadRequestError; + 400: InvalidRequestError; /** - * NotFoundError + * UnauthorizedError */ - 404: NotFoundError; + 401: UnauthorizedError; }; -export type PartDeleteError = PartDeleteErrors[keyof PartDeleteErrors]; -export type PartDeleteResponses = { +export type V2CredentialRemoveError = V2CredentialRemoveErrors[keyof V2CredentialRemoveErrors]; +export type V2CredentialRemoveResponses = { /** - * Successfully deleted part + * */ - 200: boolean; + 204: void; }; -export type PartDeleteResponse = PartDeleteResponses[keyof PartDeleteResponses]; -export type PartUpdateData = { - body?: Part; - path: { - sessionID: string; - messageID: string; - partID: string; +export type V2CredentialRemoveResponse = V2CredentialRemoveResponses[keyof V2CredentialRemoveResponses]; +export type V2CredentialUpdateData = { + body: { + label: string; + }; + path: { + credentialID: string; }; query?: { - directory?: string; - workspace?: string; + location?: { + directory?: string; + workspace?: string; + }; }; - url: "/session/{sessionID}/message/{messageID}/part/{partID}"; + url: "/api/credential/{credentialID}"; }; -export type PartUpdateErrors = { +export type V2CredentialUpdateErrors = { /** - * Bad request + * InvalidRequestError */ - 400: BadRequestError; + 400: InvalidRequestError; /** - * NotFoundError + * UnauthorizedError */ - 404: NotFoundError; + 401: UnauthorizedError; }; -export type PartUpdateError = PartUpdateErrors[keyof PartUpdateErrors]; -export type PartUpdateResponses = { +export type V2CredentialUpdateError = V2CredentialUpdateErrors[keyof V2CredentialUpdateErrors]; +export type V2CredentialUpdateResponses = { /** - * Successfully updated part + * */ - 200: Part; + 204: void; }; -export type PartUpdateResponse = PartUpdateResponses[keyof PartUpdateResponses]; -export type SyncStartData = { +export type V2CredentialUpdateResponse = V2CredentialUpdateResponses[keyof V2CredentialUpdateResponses]; +export type V2PermissionRequestListData = { body?: never; path?: never; query?: { - directory?: string; - workspace?: string; + location?: { + directory?: string; + workspace?: string; + }; }; - url: "/sync/start"; + url: "/api/permission/request"; }; -export type SyncStartResponses = { +export type V2PermissionRequestListErrors = { /** - * Workspace sync started + * InvalidRequestError */ - 200: boolean; -}; -export type SyncStartResponse = SyncStartResponses[keyof SyncStartResponses]; -export type SyncReplayData = { - body?: { - directory: string; - events: Array<{ - id: string; - aggregateID: string; - seq: number; - type: string; - data: { - [key: string]: unknown; - }; - }>; - }; - path?: never; - query?: { - directory?: string; - workspace?: string; - }; - url: "/sync/replay"; -}; -export type SyncReplayErrors = { + 400: InvalidRequestError; /** - * Bad request + * UnauthorizedError */ - 400: BadRequestError; + 401: UnauthorizedError; }; -export type SyncReplayError = SyncReplayErrors[keyof SyncReplayErrors]; -export type SyncReplayResponses = { +export type V2PermissionRequestListError = V2PermissionRequestListErrors[keyof V2PermissionRequestListErrors]; +export type V2PermissionRequestListResponses = { /** - * Replayed sync events + * Success */ 200: { - sessionID: string; + location: LocationInfo; + data: Array; }; }; -export type SyncReplayResponse = SyncReplayResponses[keyof SyncReplayResponses]; -export type SyncStealData = { - body?: { - sessionID: string; - }; +export type V2PermissionRequestListResponse = V2PermissionRequestListResponses[keyof V2PermissionRequestListResponses]; +export type V2PermissionSavedListData = { + body?: never; path?: never; query?: { - directory?: string; - workspace?: string; + projectID?: string; }; - url: "/sync/steal"; + url: "/api/permission/saved"; }; -export type SyncStealErrors = { +export type V2PermissionSavedListErrors = { /** - * Bad request + * InvalidRequestError */ - 400: BadRequestError; + 400: InvalidRequestError; + /** + * UnauthorizedError + */ + 401: UnauthorizedError; }; -export type SyncStealError = SyncStealErrors[keyof SyncStealErrors]; -export type SyncStealResponses = { +export type V2PermissionSavedListError = V2PermissionSavedListErrors[keyof V2PermissionSavedListErrors]; +export type V2PermissionSavedListResponses = { /** - * Session stolen into workspace + * Success */ 200: { - sessionID: string; + data: Array; }; }; -export type SyncStealResponse = SyncStealResponses[keyof SyncStealResponses]; -export type SyncHistoryListData = { - body?: { - [key: string]: number; - }; - path?: never; - query?: { - directory?: string; - workspace?: string; +export type V2PermissionSavedListResponse = V2PermissionSavedListResponses[keyof V2PermissionSavedListResponses]; +export type V2PermissionSavedRemoveData = { + body?: never; + path: { + id: string; }; - url: "/sync/history"; + query?: never; + url: "/api/permission/saved/{id}"; }; -export type SyncHistoryListErrors = { +export type V2PermissionSavedRemoveErrors = { /** - * Bad request + * InvalidRequestError */ - 400: BadRequestError; + 400: InvalidRequestError; + /** + * UnauthorizedError + */ + 401: UnauthorizedError; }; -export type SyncHistoryListError = SyncHistoryListErrors[keyof SyncHistoryListErrors]; -export type SyncHistoryListResponses = { +export type V2PermissionSavedRemoveError = V2PermissionSavedRemoveErrors[keyof V2PermissionSavedRemoveErrors]; +export type V2PermissionSavedRemoveResponses = { /** - * Sync events + * */ - 200: Array<{ - id: string; - aggregate_id: string; - seq: number; - type: string; - data: { - [key: string]: unknown; - }; - }>; + 204: void; }; -export type SyncHistoryListResponse = SyncHistoryListResponses[keyof SyncHistoryListResponses]; -export type V2SessionListData = { +export type V2PermissionSavedRemoveResponse = V2PermissionSavedRemoveResponses[keyof V2PermissionSavedRemoveResponses]; +export type V2SessionPermissionListData = { body?: never; - path?: never; - query?: { - directory?: string; - workspace?: string; - limit?: number; - order?: "asc" | "desc"; - path?: string; - roots?: boolean | "true" | "false"; - start?: number; - search?: string; - /** - * Opaque pagination cursor returned as cursor.previous or cursor.next in the previous response. Do not combine with order or filters. - */ - cursor?: string; + path: { + sessionID: string; }; - url: "/api/session"; + query?: never; + url: "/api/session/{sessionID}/permission"; }; -export type V2SessionListErrors = { +export type V2SessionPermissionListErrors = { /** - * Bad request + * InvalidRequestError */ - 400: BadRequestError; + 400: InvalidRequestError; + /** + * UnauthorizedError + */ + 401: UnauthorizedError; + /** + * SessionNotFoundError + */ + 404: SessionNotFoundError; }; -export type V2SessionListError = V2SessionListErrors[keyof V2SessionListErrors]; -export type V2SessionListResponses = { +export type V2SessionPermissionListError = V2SessionPermissionListErrors[keyof V2SessionPermissionListErrors]; +export type V2SessionPermissionListResponses = { /** - * V2SessionsResponse + * Success */ - 200: V2SessionsResponse; + 200: { + data: Array; + }; }; -export type V2SessionListResponse = V2SessionListResponses[keyof V2SessionListResponses]; -export type V2SessionPromptData = { - body?: { - prompt: Prompt; - delivery?: SessionDelivery; +export type V2SessionPermissionListResponse = V2SessionPermissionListResponses[keyof V2SessionPermissionListResponses]; +export type V2SessionPermissionCreateData = { + body: { + id?: string; + action: string; + resources: Array; + save?: Array; + metadata?: { + [key: string]: unknown; + }; + source?: PermissionV2Source; + agent?: string; }; path: { sessionID: string; }; - query?: { - directory?: string; - workspace?: string; - }; - url: "/api/session/{sessionID}/prompt"; + query?: never; + url: "/api/session/{sessionID}/permission"; }; -export type V2SessionPromptResponses = { +export type V2SessionPermissionCreateErrors = { + /** + * InvalidRequestError + */ + 400: InvalidRequestError; + /** + * UnauthorizedError + */ + 401: UnauthorizedError; /** - * Session.Message + * SessionNotFoundError */ - 200: SessionMessage; + 404: SessionNotFoundError; }; -export type V2SessionPromptResponse = V2SessionPromptResponses[keyof V2SessionPromptResponses]; -export type V2SessionCompactData = { +export type V2SessionPermissionCreateError = V2SessionPermissionCreateErrors[keyof V2SessionPermissionCreateErrors]; +export type V2SessionPermissionCreateResponses = { + /** + * Success + */ + 200: { + data: { + id: string; + effect: PermissionV2Effect; + }; + }; +}; +export type V2SessionPermissionCreateResponse = V2SessionPermissionCreateResponses[keyof V2SessionPermissionCreateResponses]; +export type V2SessionPermissionGetData = { body?: never; path: { sessionID: string; + requestID: string; }; - query?: { - directory?: string; - workspace?: string; - }; - url: "/api/session/{sessionID}/compact"; + query?: never; + url: "/api/session/{sessionID}/permission/{requestID}"; }; -export type V2SessionCompactResponses = { +export type V2SessionPermissionGetErrors = { /** - * + * InvalidRequestError */ - 204: void; + 400: InvalidRequestError; + /** + * UnauthorizedError + */ + 401: UnauthorizedError; + /** + * SessionNotFoundError | PermissionNotFoundError + */ + 404: PermissionNotFoundError | SessionNotFoundError; }; -export type V2SessionCompactResponse = V2SessionCompactResponses[keyof V2SessionCompactResponses]; -export type V2SessionWaitData = { - body?: never; +export type V2SessionPermissionGetError = V2SessionPermissionGetErrors[keyof V2SessionPermissionGetErrors]; +export type V2SessionPermissionGetResponses = { + /** + * Success + */ + 200: { + data: PermissionV2Request; + }; +}; +export type V2SessionPermissionGetResponse = V2SessionPermissionGetResponses[keyof V2SessionPermissionGetResponses]; +export type V2SessionPermissionReplyData = { + body: { + reply: PermissionV2Reply; + message?: string; + }; path: { sessionID: string; + requestID: string; }; - query?: { - directory?: string; - workspace?: string; - }; - url: "/api/session/{sessionID}/wait"; + query?: never; + url: "/api/session/{sessionID}/permission/{requestID}/reply"; }; -export type V2SessionWaitResponses = { +export type V2SessionPermissionReplyErrors = { + /** + * InvalidRequestError + */ + 400: InvalidRequestError; + /** + * UnauthorizedError + */ + 401: UnauthorizedError; + /** + * SessionNotFoundError | PermissionNotFoundError + */ + 404: PermissionNotFoundError | SessionNotFoundError; +}; +export type V2SessionPermissionReplyError = V2SessionPermissionReplyErrors[keyof V2SessionPermissionReplyErrors]; +export type V2SessionPermissionReplyResponses = { /** * */ 204: void; }; -export type V2SessionWaitResponse = V2SessionWaitResponses[keyof V2SessionWaitResponses]; -export type V2SessionContextData = { +export type V2SessionPermissionReplyResponse = V2SessionPermissionReplyResponses[keyof V2SessionPermissionReplyResponses]; +export type V2FsReadData = { body?: never; - path: { - sessionID: string; - }; + path?: never; query?: { - directory?: string; - workspace?: string; + location?: { + directory?: string; + workspace?: string; + }; }; - url: "/api/session/{sessionID}/context"; + url: "/api/fs/read/*"; }; -export type V2SessionContextResponses = { +export type V2FsReadErrors = { /** - * Success + * InvalidRequestError */ - 200: Array; -}; -export type V2SessionContextResponse = V2SessionContextResponses[keyof V2SessionContextResponses]; -export type V2SessionMessagesData = { - body?: never; - path: { - sessionID: string; - }; - query?: { - directory?: string; - workspace?: string; - limit?: number; - order?: "asc" | "desc"; - /** - * Opaque pagination cursor returned as cursor.previous or cursor.next in the previous response. Do not combine with order. - */ - cursor?: string; - }; - url: "/api/session/{sessionID}/message"; -}; -export type V2SessionMessagesErrors = { + 400: InvalidRequestError; /** - * Bad request + * UnauthorizedError */ - 400: BadRequestError; -}; -export type V2SessionMessagesError = V2SessionMessagesErrors[keyof V2SessionMessagesErrors]; -export type V2SessionMessagesResponses = { + 401: UnauthorizedError; +}; +export type V2FsReadError = V2FsReadErrors[keyof V2FsReadErrors]; +export type V2FsReadResponses = { /** - * V2SessionMessagesResponse + * Success */ - 200: V2SessionMessagesResponse; + 200: Blob | File; }; -export type V2SessionMessagesResponse2 = V2SessionMessagesResponses[keyof V2SessionMessagesResponses]; -export type V2ModelListData = { +export type V2FsReadResponse = V2FsReadResponses[keyof V2FsReadResponses]; +export type V2FsListData = { body?: never; path?: never; query?: { @@ -5728,469 +10956,670 @@ export type V2ModelListData = { directory?: string; workspace?: string; }; + path?: string; }; - url: "/api/model"; + url: "/api/fs/list"; }; -export type V2ModelListResponses = { +export type V2FsListErrors = { + /** + * InvalidRequestError + */ + 400: InvalidRequestError; + /** + * UnauthorizedError + */ + 401: UnauthorizedError; +}; +export type V2FsListError = V2FsListErrors[keyof V2FsListErrors]; +export type V2FsListResponses = { /** * Success */ - 200: Array; + 200: { + location: LocationInfo; + data: Array; + }; }; -export type V2ModelListResponse = V2ModelListResponses[keyof V2ModelListResponses]; -export type V2ProviderListData = { +export type V2FsListResponse = V2FsListResponses[keyof V2FsListResponses]; +export type V2FsFindData = { body?: never; path?: never; - query?: { + query: { location?: { directory?: string; workspace?: string; }; + query: string; + type?: "file" | "directory"; + limit?: string; }; - url: "/api/provider"; + url: "/api/fs/find"; }; -export type V2ProviderListResponses = { +export type V2FsFindErrors = { + /** + * InvalidRequestError + */ + 400: InvalidRequestError; + /** + * UnauthorizedError + */ + 401: UnauthorizedError; +}; +export type V2FsFindError = V2FsFindErrors[keyof V2FsFindErrors]; +export type V2FsFindResponses = { /** * Success */ - 200: Array; + 200: { + location: LocationInfo; + data: Array; + }; }; -export type V2ProviderListResponse = V2ProviderListResponses[keyof V2ProviderListResponses]; -export type V2ProviderGetData = { +export type V2FsFindResponse = V2FsFindResponses[keyof V2FsFindResponses]; +export type V2CommandListData = { body?: never; - path: { - providerID: string; - }; + path?: never; query?: { location?: { directory?: string; workspace?: string; }; }; - url: "/api/provider/{providerID}"; + url: "/api/command"; }; -export type V2ProviderGetErrors = { +export type V2CommandListErrors = { /** - * NotFoundError + * InvalidRequestError */ - 404: NotFoundError; -}; -export type V2ProviderGetError = V2ProviderGetErrors[keyof V2ProviderGetErrors]; -export type V2ProviderGetResponses = { + 400: InvalidRequestError; /** - * ProviderV2.Info + * UnauthorizedError */ - 200: ProviderV2Info; + 401: UnauthorizedError; }; -export type V2ProviderGetResponse = V2ProviderGetResponses[keyof V2ProviderGetResponses]; -export type TuiAppendPromptData = { - body?: { - text: string; +export type V2CommandListError = V2CommandListErrors[keyof V2CommandListErrors]; +export type V2CommandListResponses = { + /** + * Success + */ + 200: { + location: LocationInfo; + data: Array; }; +}; +export type V2CommandListResponse = V2CommandListResponses[keyof V2CommandListResponses]; +export type V2SkillListData = { + body?: never; path?: never; query?: { - directory?: string; - workspace?: string; + location?: { + directory?: string; + workspace?: string; + }; }; - url: "/tui/append-prompt"; + url: "/api/skill"; }; -export type TuiAppendPromptErrors = { +export type V2SkillListErrors = { /** - * Bad request + * InvalidRequestError */ - 400: BadRequestError; + 400: InvalidRequestError; + /** + * UnauthorizedError + */ + 401: UnauthorizedError; }; -export type TuiAppendPromptError = TuiAppendPromptErrors[keyof TuiAppendPromptErrors]; -export type TuiAppendPromptResponses = { +export type V2SkillListError = V2SkillListErrors[keyof V2SkillListErrors]; +export type V2SkillListResponses = { /** - * Prompt processed successfully + * Success */ - 200: boolean; + 200: { + location: LocationInfo; + data: Array; + }; }; -export type TuiAppendPromptResponse = TuiAppendPromptResponses[keyof TuiAppendPromptResponses]; -export type TuiOpenHelpData = { +export type V2SkillListResponse = V2SkillListResponses[keyof V2SkillListResponses]; +export type V2EventSubscribeData = { body?: never; path?: never; - query?: { - directory?: string; - workspace?: string; - }; - url: "/tui/open-help"; + query?: never; + url: "/api/event"; }; -export type TuiOpenHelpResponses = { +export type V2EventSubscribeErrors = { /** - * Help dialog opened successfully + * InvalidRequestError */ - 200: boolean; -}; -export type TuiOpenHelpResponse = TuiOpenHelpResponses[keyof TuiOpenHelpResponses]; -export type TuiOpenSessionsData = { - body?: never; - path?: never; - query?: { - directory?: string; - workspace?: string; - }; - url: "/tui/open-sessions"; + 400: InvalidRequestError; + /** + * UnauthorizedError + */ + 401: UnauthorizedError; }; -export type TuiOpenSessionsResponses = { +export type V2EventSubscribeError = V2EventSubscribeErrors[keyof V2EventSubscribeErrors]; +export type V2EventSubscribeResponses = { /** - * Session dialog opened successfully + * Event stream */ - 200: boolean; + 200: V2Event; }; -export type TuiOpenSessionsResponse = TuiOpenSessionsResponses[keyof TuiOpenSessionsResponses]; -export type TuiOpenThemesData = { +export type V2EventSubscribeResponse = V2EventSubscribeResponses[keyof V2EventSubscribeResponses]; +export type V2PtyListData = { body?: never; path?: never; query?: { - directory?: string; - workspace?: string; + location?: { + directory?: string; + workspace?: string; + }; }; - url: "/tui/open-themes"; + url: "/api/pty"; }; -export type TuiOpenThemesResponses = { +export type V2PtyListErrors = { /** - * Theme dialog opened successfully + * InvalidRequestError */ - 200: boolean; + 400: InvalidRequestError; + /** + * UnauthorizedError + */ + 401: UnauthorizedError; }; -export type TuiOpenThemesResponse = TuiOpenThemesResponses[keyof TuiOpenThemesResponses]; -export type TuiOpenModelsData = { - body?: never; +export type V2PtyListError = V2PtyListErrors[keyof V2PtyListErrors]; +export type V2PtyListResponses = { + /** + * Success + */ + 200: { + location: LocationInfo; + data: Array; + }; +}; +export type V2PtyListResponse = V2PtyListResponses[keyof V2PtyListResponses]; +export type V2PtyCreateData = { + body: { + command?: string; + args?: Array; + cwd?: string; + title?: string; + env?: { + [key: string]: string; + }; + }; path?: never; query?: { - directory?: string; - workspace?: string; + location?: { + directory?: string; + workspace?: string; + }; }; - url: "/tui/open-models"; + url: "/api/pty"; }; -export type TuiOpenModelsResponses = { +export type V2PtyCreateErrors = { /** - * Model dialog opened successfully + * InvalidRequestError */ - 200: boolean; + 400: InvalidRequestError; + /** + * UnauthorizedError + */ + 401: UnauthorizedError; }; -export type TuiOpenModelsResponse = TuiOpenModelsResponses[keyof TuiOpenModelsResponses]; -export type TuiSubmitPromptData = { +export type V2PtyCreateError = V2PtyCreateErrors[keyof V2PtyCreateErrors]; +export type V2PtyCreateResponses = { + /** + * Success + */ + 200: { + location: LocationInfo; + data: Pty; + }; +}; +export type V2PtyCreateResponse = V2PtyCreateResponses[keyof V2PtyCreateResponses]; +export type V2PtyRemoveData = { body?: never; - path?: never; + path: { + ptyID: string; + }; query?: { - directory?: string; - workspace?: string; + location?: { + directory?: string; + workspace?: string; + }; }; - url: "/tui/submit-prompt"; + url: "/api/pty/{ptyID}"; }; -export type TuiSubmitPromptResponses = { +export type V2PtyRemoveErrors = { /** - * Prompt submitted successfully + * InvalidRequestError */ - 200: boolean; + 400: InvalidRequestError; + /** + * UnauthorizedError + */ + 401: UnauthorizedError; + /** + * PtyNotFoundError + */ + 404: PtyNotFoundError; }; -export type TuiSubmitPromptResponse = TuiSubmitPromptResponses[keyof TuiSubmitPromptResponses]; -export type TuiClearPromptData = { +export type V2PtyRemoveError = V2PtyRemoveErrors[keyof V2PtyRemoveErrors]; +export type V2PtyRemoveResponses = { + /** + * + */ + 204: void; +}; +export type V2PtyRemoveResponse = V2PtyRemoveResponses[keyof V2PtyRemoveResponses]; +export type V2PtyGetData = { body?: never; - path?: never; + path: { + ptyID: string; + }; query?: { - directory?: string; - workspace?: string; + location?: { + directory?: string; + workspace?: string; + }; }; - url: "/tui/clear-prompt"; + url: "/api/pty/{ptyID}"; }; -export type TuiClearPromptResponses = { +export type V2PtyGetErrors = { /** - * Prompt cleared successfully + * InvalidRequestError */ - 200: boolean; + 400: InvalidRequestError; + /** + * UnauthorizedError + */ + 401: UnauthorizedError; + /** + * PtyNotFoundError + */ + 404: PtyNotFoundError; }; -export type TuiClearPromptResponse = TuiClearPromptResponses[keyof TuiClearPromptResponses]; -export type TuiExecuteCommandData = { - body?: { - command: string; +export type V2PtyGetError = V2PtyGetErrors[keyof V2PtyGetErrors]; +export type V2PtyGetResponses = { + /** + * Success + */ + 200: { + location: LocationInfo; + data: Pty; + }; +}; +export type V2PtyGetResponse = V2PtyGetResponses[keyof V2PtyGetResponses]; +export type V2PtyUpdateData = { + body: { + title?: string; + size?: { + rows: number; + cols: number; + }; + }; + path: { + ptyID: string; }; - path?: never; query?: { - directory?: string; - workspace?: string; + location?: { + directory?: string; + workspace?: string; + }; }; - url: "/tui/execute-command"; + url: "/api/pty/{ptyID}"; }; -export type TuiExecuteCommandErrors = { +export type V2PtyUpdateErrors = { /** - * Bad request + * InvalidRequestError */ - 400: BadRequestError; + 400: InvalidRequestError; + /** + * UnauthorizedError + */ + 401: UnauthorizedError; + /** + * PtyNotFoundError + */ + 404: PtyNotFoundError; }; -export type TuiExecuteCommandError = TuiExecuteCommandErrors[keyof TuiExecuteCommandErrors]; -export type TuiExecuteCommandResponses = { +export type V2PtyUpdateError = V2PtyUpdateErrors[keyof V2PtyUpdateErrors]; +export type V2PtyUpdateResponses = { /** - * Command executed successfully + * Success */ - 200: boolean; + 200: { + location: LocationInfo; + data: Pty; + }; }; -export type TuiExecuteCommandResponse = TuiExecuteCommandResponses[keyof TuiExecuteCommandResponses]; -export type TuiShowToastData = { - body?: { - title?: string; - message: string; - variant: "info" | "success" | "warning" | "error"; - duration?: number; +export type V2PtyUpdateResponse = V2PtyUpdateResponses[keyof V2PtyUpdateResponses]; +export type V2PtyConnectTokenData = { + body?: never; + path: { + ptyID: string; }; - path?: never; query?: { - directory?: string; - workspace?: string; + location?: { + directory?: string; + workspace?: string; + }; }; - url: "/tui/show-toast"; + url: "/api/pty/{ptyID}/connect-token"; +}; +export type V2PtyConnectTokenErrors = { + /** + * InvalidRequestError + */ + 400: InvalidRequestError; + /** + * UnauthorizedError + */ + 401: UnauthorizedError; + /** + * ForbiddenError + */ + 403: ForbiddenError; + /** + * PtyNotFoundError + */ + 404: PtyNotFoundError; }; -export type TuiShowToastResponses = { +export type V2PtyConnectTokenError = V2PtyConnectTokenErrors[keyof V2PtyConnectTokenErrors]; +export type V2PtyConnectTokenResponses = { /** - * Toast notification shown successfully + * Success */ - 200: boolean; + 200: { + location: LocationInfo; + data: PtyTicketConnectToken; + }; }; -export type TuiShowToastResponse = TuiShowToastResponses[keyof TuiShowToastResponses]; -export type TuiPublishData = { - body?: EventTuiPromptAppend2 | EventTuiCommandExecute2 | EventTuiToastShow2 | EventTuiSessionSelect2; - path?: never; +export type V2PtyConnectTokenResponse = V2PtyConnectTokenResponses[keyof V2PtyConnectTokenResponses]; +export type V2PtyConnectData = { + body?: never; + path: { + ptyID: string; + }; query?: { - directory?: string; - workspace?: string; + "location[directory]"?: string; + "location[workspace]"?: string; + cursor?: string; + ticket?: string; }; - url: "/tui/publish"; + url: "/api/pty/{ptyID}/connect"; }; -export type TuiPublishErrors = { +export type V2PtyConnectErrors = { /** - * Bad request + * InvalidRequestError */ - 400: BadRequestError; + 400: InvalidRequestError; + /** + * UnauthorizedError + */ + 401: UnauthorizedError; + /** + * ForbiddenError + */ + 403: ForbiddenError; + /** + * PtyNotFoundError + */ + 404: PtyNotFoundError; }; -export type TuiPublishError = TuiPublishErrors[keyof TuiPublishErrors]; -export type TuiPublishResponses = { +export type V2PtyConnectError = V2PtyConnectErrors[keyof V2PtyConnectErrors]; +export type V2PtyConnectResponses = { /** - * Event published successfully + * Success */ 200: boolean; }; -export type TuiPublishResponse = TuiPublishResponses[keyof TuiPublishResponses]; -export type TuiSelectSessionData = { - body?: { - /** - * Session ID to navigate to - */ - sessionID: string; - }; +export type V2PtyConnectResponse = V2PtyConnectResponses[keyof V2PtyConnectResponses]; +export type V2QuestionRequestListData = { + body?: never; path?: never; query?: { - directory?: string; - workspace?: string; + location?: { + directory?: string; + workspace?: string; + }; }; - url: "/tui/select-session"; + url: "/api/question/request"; }; -export type TuiSelectSessionErrors = { +export type V2QuestionRequestListErrors = { /** - * Bad request + * InvalidRequestError */ - 400: BadRequestError; + 400: InvalidRequestError; /** - * NotFoundError + * UnauthorizedError */ - 404: NotFoundError; + 401: UnauthorizedError; }; -export type TuiSelectSessionError = TuiSelectSessionErrors[keyof TuiSelectSessionErrors]; -export type TuiSelectSessionResponses = { +export type V2QuestionRequestListError = V2QuestionRequestListErrors[keyof V2QuestionRequestListErrors]; +export type V2QuestionRequestListResponses = { /** - * Session selected successfully + * Success */ - 200: boolean; + 200: { + location: LocationInfo; + data: Array; + }; }; -export type TuiSelectSessionResponse = TuiSelectSessionResponses[keyof TuiSelectSessionResponses]; -export type TuiControlNextData = { +export type V2QuestionRequestListResponse = V2QuestionRequestListResponses[keyof V2QuestionRequestListResponses]; +export type V2SessionQuestionListData = { body?: never; - path?: never; - query?: { - directory?: string; - workspace?: string; + path: { + sessionID: string; }; - url: "/tui/control/next"; + query?: never; + url: "/api/session/{sessionID}/question"; }; -export type TuiControlNextResponses = { +export type V2SessionQuestionListErrors = { /** - * Next TUI request + * InvalidRequestError + */ + 400: InvalidRequestError; + /** + * UnauthorizedError + */ + 401: UnauthorizedError; + /** + * SessionNotFoundError + */ + 404: SessionNotFoundError; +}; +export type V2SessionQuestionListError = V2SessionQuestionListErrors[keyof V2SessionQuestionListErrors]; +export type V2SessionQuestionListResponses = { + /** + * Success */ 200: { - path: string; - body: unknown; + data: Array; }; }; -export type TuiControlNextResponse = TuiControlNextResponses[keyof TuiControlNextResponses]; -export type TuiControlResponseData = { - body?: unknown; - path?: never; - query?: { - directory?: string; - workspace?: string; +export type V2SessionQuestionListResponse = V2SessionQuestionListResponses[keyof V2SessionQuestionListResponses]; +export type V2SessionQuestionReplyData = { + body: QuestionV2Reply; + path: { + sessionID: string; + requestID: string; }; - url: "/tui/control/response"; + query?: never; + url: "/api/session/{sessionID}/question/{requestID}/reply"; }; -export type TuiControlResponseResponses = { +export type V2SessionQuestionReplyErrors = { /** - * Response submitted successfully + * InvalidRequestError */ - 200: boolean; -}; -export type TuiControlResponseResponse = TuiControlResponseResponses[keyof TuiControlResponseResponses]; -export type ExperimentalWorkspaceAdapterListData = { - body?: never; - path?: never; - query?: { - directory?: string; - workspace?: string; - }; - url: "/experimental/workspace/adapter"; + 400: InvalidRequestError; + /** + * UnauthorizedError + */ + 401: UnauthorizedError; + /** + * SessionNotFoundError | QuestionNotFoundError + */ + 404: QuestionNotFoundError | SessionNotFoundError; }; -export type ExperimentalWorkspaceAdapterListResponses = { +export type V2SessionQuestionReplyError = V2SessionQuestionReplyErrors[keyof V2SessionQuestionReplyErrors]; +export type V2SessionQuestionReplyResponses = { /** - * Workspace adapters + * */ - 200: Array<{ - type: string; - name: string; - description: string; - }>; + 204: void; }; -export type ExperimentalWorkspaceAdapterListResponse = ExperimentalWorkspaceAdapterListResponses[keyof ExperimentalWorkspaceAdapterListResponses]; -export type ExperimentalWorkspaceListData = { +export type V2SessionQuestionReplyResponse = V2SessionQuestionReplyResponses[keyof V2SessionQuestionReplyResponses]; +export type V2SessionQuestionRejectData = { body?: never; - path?: never; - query?: { - directory?: string; - workspace?: string; + path: { + sessionID: string; + requestID: string; }; - url: "/experimental/workspace"; + query?: never; + url: "/api/session/{sessionID}/question/{requestID}/reject"; }; -export type ExperimentalWorkspaceListResponses = { +export type V2SessionQuestionRejectErrors = { /** - * Workspaces + * InvalidRequestError */ - 200: Array; -}; -export type ExperimentalWorkspaceListResponse = ExperimentalWorkspaceListResponses[keyof ExperimentalWorkspaceListResponses]; -export type ExperimentalWorkspaceCreateData = { - body?: { - id?: string; - type: string; - branch?: string | null; - extra?: unknown | null; - }; - path?: never; - query?: { - directory?: string; - workspace?: string; - }; - url: "/experimental/workspace"; -}; -export type ExperimentalWorkspaceCreateErrors = { + 400: InvalidRequestError; /** - * Bad request + * UnauthorizedError */ - 400: BadRequestError; + 401: UnauthorizedError; + /** + * SessionNotFoundError | QuestionNotFoundError + */ + 404: QuestionNotFoundError | SessionNotFoundError; }; -export type ExperimentalWorkspaceCreateError = ExperimentalWorkspaceCreateErrors[keyof ExperimentalWorkspaceCreateErrors]; -export type ExperimentalWorkspaceCreateResponses = { +export type V2SessionQuestionRejectError = V2SessionQuestionRejectErrors[keyof V2SessionQuestionRejectErrors]; +export type V2SessionQuestionRejectResponses = { /** - * Workspace created + * */ - 200: Workspace; + 204: void; }; -export type ExperimentalWorkspaceCreateResponse = ExperimentalWorkspaceCreateResponses[keyof ExperimentalWorkspaceCreateResponses]; -export type ExperimentalWorkspaceSyncListData = { +export type V2SessionQuestionRejectResponse = V2SessionQuestionRejectResponses[keyof V2SessionQuestionRejectResponses]; +export type V2ReferenceListData = { body?: never; path?: never; query?: { - directory?: string; - workspace?: string; + location?: { + directory?: string; + workspace?: string; + }; }; - url: "/experimental/workspace/sync-list"; + url: "/api/reference"; }; -export type ExperimentalWorkspaceSyncListResponses = { +export type V2ReferenceListErrors = { /** - * Workspace list synced + * InvalidRequestError */ - 204: void; + 400: InvalidRequestError; + /** + * UnauthorizedError + */ + 401: UnauthorizedError; }; -export type ExperimentalWorkspaceSyncListResponse = ExperimentalWorkspaceSyncListResponses[keyof ExperimentalWorkspaceSyncListResponses]; -export type ExperimentalWorkspaceStatusData = { - body?: never; - path?: never; +export type V2ReferenceListError = V2ReferenceListErrors[keyof V2ReferenceListErrors]; +export type V2ReferenceListResponses = { + /** + * Success + */ + 200: { + location: LocationInfo; + data: Array; + }; +}; +export type V2ReferenceListResponse = V2ReferenceListResponses[keyof V2ReferenceListResponses]; +export type V2ProjectCopyRemoveData = { + body?: { + directory: string; + force: boolean; + }; + path: { + projectID: string; + }; query?: { - directory?: string; - workspace?: string; + location?: { + directory?: string; + workspace?: string; + }; }; - url: "/experimental/workspace/status"; + url: "/experimental/project/{projectID}/copy"; }; -export type ExperimentalWorkspaceStatusResponses = { +export type V2ProjectCopyRemoveErrors = { /** - * Workspace status + * ProjectCopyError | InvalidRequestError */ - 200: Array<{ - workspaceID: string; - status: "connected" | "connecting" | "disconnected" | "error"; - }>; + 400: ProjectCopyError | InvalidRequestError; }; -export type ExperimentalWorkspaceStatusResponse = ExperimentalWorkspaceStatusResponses[keyof ExperimentalWorkspaceStatusResponses]; -export type ExperimentalWorkspaceRemoveData = { - body?: never; +export type V2ProjectCopyRemoveError = V2ProjectCopyRemoveErrors[keyof V2ProjectCopyRemoveErrors]; +export type V2ProjectCopyRemoveResponses = { + /** + * + */ + 204: void; +}; +export type V2ProjectCopyRemoveResponse = V2ProjectCopyRemoveResponses[keyof V2ProjectCopyRemoveResponses]; +export type V2ProjectCopyCreateData = { + body?: { + strategy: string; + directory: string; + name?: string; + }; path: { - id: string; + projectID: string; }; query?: { - directory?: string; - workspace?: string; + location?: { + directory?: string; + workspace?: string; + }; }; - url: "/experimental/workspace/{id}"; + url: "/experimental/project/{projectID}/copy"; }; -export type ExperimentalWorkspaceRemoveErrors = { +export type V2ProjectCopyCreateErrors = { /** - * Bad request + * ProjectCopyError | InvalidRequestError */ - 400: BadRequestError; + 400: ProjectCopyError | InvalidRequestError; }; -export type ExperimentalWorkspaceRemoveError = ExperimentalWorkspaceRemoveErrors[keyof ExperimentalWorkspaceRemoveErrors]; -export type ExperimentalWorkspaceRemoveResponses = { +export type V2ProjectCopyCreateError = V2ProjectCopyCreateErrors[keyof V2ProjectCopyCreateErrors]; +export type V2ProjectCopyCreateResponses = { /** - * Workspace removed + * ProjectCopy.Copy */ - 200: Workspace; + 200: ProjectCopyCopy; }; -export type ExperimentalWorkspaceRemoveResponse = ExperimentalWorkspaceRemoveResponses[keyof ExperimentalWorkspaceRemoveResponses]; -export type ExperimentalWorkspaceWarpData = { - body?: { - id: string | null; - sessionID: string; - copyChanges?: boolean; +export type V2ProjectCopyCreateResponse = V2ProjectCopyCreateResponses[keyof V2ProjectCopyCreateResponses]; +export type V2ProjectCopyRefreshData = { + body?: never; + path: { + projectID: string; }; - path?: never; query?: { - directory?: string; - workspace?: string; + location?: { + directory?: string; + workspace?: string; + }; }; - url: "/experimental/workspace/warp"; + url: "/experimental/project/{projectID}/copy/refresh"; }; -export type ExperimentalWorkspaceWarpErrors = { +export type V2ProjectCopyRefreshErrors = { /** - * WorkspaceWarpError | VcsApplyError + * ProjectCopyError | InvalidRequestError */ - 400: WorkspaceWarpError | VcsApplyError; + 400: ProjectCopyError | InvalidRequestError; }; -export type ExperimentalWorkspaceWarpError = ExperimentalWorkspaceWarpErrors[keyof ExperimentalWorkspaceWarpErrors]; -export type ExperimentalWorkspaceWarpResponses = { +export type V2ProjectCopyRefreshError = V2ProjectCopyRefreshErrors[keyof V2ProjectCopyRefreshErrors]; +export type V2ProjectCopyRefreshResponses = { /** - * Session warped + * */ 204: void; }; -export type ExperimentalWorkspaceWarpResponse = ExperimentalWorkspaceWarpResponses[keyof ExperimentalWorkspaceWarpResponses]; +export type V2ProjectCopyRefreshResponse = V2ProjectCopyRefreshResponses[keyof V2ProjectCopyRefreshResponses]; export type PtyConnectData = { body?: never; path: { @@ -6199,6 +11628,8 @@ export type PtyConnectData = { query?: { directory?: string; workspace?: string; + cursor?: string; + ticket?: string; }; url: "/pty/{ptyID}/connect"; }; diff --git a/.opencode/node_modules/@opencode-ai/sdk/package.json b/.opencode/node_modules/@opencode-ai/sdk/package.json index a10b44eac2c48ef9bcb3062c33b492db302e845a..996edc68093d6dd7b5a26c8f12cd1fe4d2182349 100644 --- a/.opencode/node_modules/@opencode-ai/sdk/package.json +++ b/.opencode/node_modules/@opencode-ai/sdk/package.json @@ -1,10 +1,11 @@ { "$schema": "https://json.schemastore.org/package.json", "name": "@opencode-ai/sdk", - "version": "1.15.5", + "version": "1.18.21", "type": "module", "license": "MIT", "scripts": { + "test": "bun test", "typecheck": "tsgo --noEmit", "build": "bun ./script/build.ts" }, @@ -36,6 +37,10 @@ "./v2/server": { "import": "./dist/v2/server.js", "types": "./dist/v2/server.d.ts" + }, + "./v2/types": { + "import": "./dist/v2/gen/types.gen.js", + "types": "./dist/v2/gen/types.gen.d.ts" } }, "files": [ diff --git a/.opencode/node_modules/effect/dist/Array.d.ts b/.opencode/node_modules/effect/dist/Array.d.ts index 05683034456b396a49dcb0083680835a45259730..dcb406bb204c0c4cd371c24495453942a52e74e7 100644 --- a/.opencode/node_modules/effect/dist/Array.d.ts +++ b/.opencode/node_modules/effect/dist/Array.d.ts @@ -9,10 +9,12 @@ import * as Reducer from "./Reducer.ts"; import * as Result from "./Result.ts"; import type { NoInfer, TupleOf } from "./Types.ts"; /** - * Reference to the global `Array` constructor. + * Exposes the global array constructor. * - * Use this when you need the native `Array` constructor while the `Array` - * namespace is in scope (e.g. `Array.Array.isArray`, `Array.Array.from`). + * **When to use** + * + * Use to access native JavaScript array constructor methods such as `isArray` + * or `from` from the Effect module namespace. * * **Example** (Using the Array constructor) * @@ -39,8 +41,10 @@ export interface ReadonlyArrayTypeLambda extends TypeLambda { /** * A readonly array guaranteed to have at least one element. * - * Use this type when you need to ensure non-emptiness at the type level while - * preventing mutation. Many Array module functions accept or return this type. + * **When to use** + * + * Use when non-emptiness must be tracked at the type level while preventing mutation. + * Many Array module functions accept or return this type. * * **Example** (Typing a non-empty array) * @@ -61,6 +65,13 @@ export type NonEmptyReadonlyArray = readonly [A, ...Array]; /** * A mutable array guaranteed to have at least one element. * + * **When to use** + * + * Use when mutation is acceptable and non-emptiness must be tracked at the type + * level. + * + * **Details** + * * This is the mutable counterpart of {@link NonEmptyReadonlyArray}. Most Array * module functions return `NonEmptyArray` when the result is guaranteed * non-empty. @@ -84,9 +95,14 @@ export type NonEmptyArray = [A, ...Array]; /** * Creates a `NonEmptyArray` from one or more elements. * - * - Use when you have literal values and want a typed non-empty array. - * - The element type is inferred as the union of all arguments. - * - Always returns a `NonEmptyArray` since at least one argument is required. + * **When to use** + * + * Use when you need to create a typed non-empty array from literal values. + * + * **Details** + * + * The element type is inferred as the union of all arguments. Because at least + * one argument is required, this always returns a `NonEmptyArray`. * * **Example** (Creating an array from values) * @@ -107,9 +123,13 @@ export declare const make: >(...elements /** * Creates a new `Array` of the specified length with all slots uninitialized. * - * - Use when you need a pre-sized array and will fill it imperatively. - * - Elements are typed as `A | undefined` since slots are empty. - * - Prefer {@link makeBy} when you can compute each element from its index. + * **When to use** + * + * Use when you need a pre-sized array that will be filled imperatively. + * + * **Details** + * + * Elements are typed as `A | undefined` because the slots are empty. * * **Example** (Allocating a fixed-size array) * @@ -129,9 +149,15 @@ export declare const allocate: (n: number) => Array; /** * Creates a `NonEmptyArray` of length `n` where element `i` is computed by `f(i)`. * - * - Use when you need an array whose values depend on the index. - * - `n` is normalized to an integer >= 1 — always returns at least one element. - * - Dual: `Array.makeBy(5, f)` or `pipe(5, Array.makeBy(f))`. + * **When to use** + * + * Use when you need to compute each array element from its index. + * + * **Details** + * + * `n` is normalized to an integer greater than or equal to 1, so this function + * always returns at least one element. Supports both data-first and data-last + * usage. * * **Example** (Generating values from indices) * @@ -152,9 +178,15 @@ export declare const makeBy: { /** * Creates a `NonEmptyArray` of length `n` where element `i` is computed by `f(i)`. * - * - Use when you need an array whose values depend on the index. - * - `n` is normalized to an integer >= 1 — always returns at least one element. - * - Dual: `Array.makeBy(5, f)` or `pipe(5, Array.makeBy(f))`. + * **When to use** + * + * Use when you need to compute each array element from its index. + * + * **Details** + * + * `n` is normalized to an integer greater than or equal to 1, so this function + * always returns at least one element. Supports both data-first and data-last + * usage. * * **Example** (Generating values from indices) * @@ -175,9 +207,15 @@ export declare const makeBy: { /** * Creates a `NonEmptyArray` of length `n` where element `i` is computed by `f(i)`. * - * - Use when you need an array whose values depend on the index. - * - `n` is normalized to an integer >= 1 — always returns at least one element. - * - Dual: `Array.makeBy(5, f)` or `pipe(5, Array.makeBy(f))`. + * **When to use** + * + * Use when you need to compute each array element from its index. + * + * **Details** + * + * `n` is normalized to an integer greater than or equal to 1, so this function + * always returns at least one element. Supports both data-first and data-last + * usage. * * **Example** (Generating values from indices) * @@ -200,9 +238,13 @@ export declare const makeBy: { * Creates a `NonEmptyArray` containing a range of integers, inclusive on both * ends. * - * - Use when you need a sequence of consecutive integers. - * - If `start > end`, returns `[start]`. - * - Always returns a `NonEmptyArray`. + * **When to use** + * + * Use when you need a non-empty sequence of consecutive integers. + * + * **Details** + * + * If `start > end`, returns `[start]`. * * **Example** (Creating a range) * @@ -222,9 +264,15 @@ export declare const range: (start: number, end: number) => NonEmptyArray= 1 — always returns at least one element. - * - Dual: `Array.replicate("a", 3)` or `pipe("a", Array.replicate(3))`. + * **When to use** + * + * Use when you need a non-empty array containing repeated copies of one value. + * + * **Details** + * + * `n` is normalized to an integer greater than or equal to 1, so this function + * always returns at least one element. Supports both data-first and data-last + * usage. * * **Example** (Repeating a value) * @@ -244,9 +292,15 @@ export declare const replicate: { /** * Creates a `NonEmptyArray` containing a value repeated `n` times. * - * - Use when you need multiple copies of the same value. - * - `n` is normalized to an integer >= 1 — always returns at least one element. - * - Dual: `Array.replicate("a", 3)` or `pipe("a", Array.replicate(3))`. + * **When to use** + * + * Use when you need a non-empty array containing repeated copies of one value. + * + * **Details** + * + * `n` is normalized to an integer greater than or equal to 1, so this function + * always returns at least one element. Supports both data-first and data-last + * usage. * * **Example** (Repeating a value) * @@ -266,9 +320,15 @@ export declare const replicate: { /** * Creates a `NonEmptyArray` containing a value repeated `n` times. * - * - Use when you need multiple copies of the same value. - * - `n` is normalized to an integer >= 1 — always returns at least one element. - * - Dual: `Array.replicate("a", 3)` or `pipe("a", Array.replicate(3))`. + * **When to use** + * + * Use when you need a non-empty array containing repeated copies of one value. + * + * **Details** + * + * `n` is normalized to an integer greater than or equal to 1, so this function + * always returns at least one element. Supports both data-first and data-last + * usage. * * **Example** (Repeating a value) * @@ -289,10 +349,15 @@ export declare const replicate: { /** * Converts an `Iterable` to an `Array`. * - * - If the input is already an array, returns it **by reference** (no copy). - * - Otherwise, creates a new array from the iterable. - * - Use {@link copy} if you need a fresh array even when the input is already - * an array. + * **When to use** + * + * Use to convert any `Iterable` (Set, Generator, etc.) into an array. + * + * **Details** + * + * If the input is already an array, this returns it by reference without + * copying. Otherwise, it creates a new array from the iterable. Use `copy` if + * you need a fresh array even when the input is already an array. * * **Example** (Converting a Set to an array) * @@ -313,9 +378,16 @@ export declare const fromIterable: (collection: Iterable) => Array; /** * Normalizes a value that is either a single element or an array into an array. * - * - If the input is already an array, returns it by reference. - * - If the input is a single value, wraps it in a one-element array. - * - Useful for APIs that accept `A | Array`. + * **When to use** + * + * Use to normalize input that may be a single value or an array into a consistent + * array. + * + * **Details** + * + * If the input is already an array, this returns it by reference. If the input + * is a single value, this wraps it in a one-element array. This is useful for + * APIs that accept `A | Array`. * * **Example** (Normalizing input) * @@ -336,8 +408,15 @@ export declare const ensure: (self: ReadonlyArray | A) => Array; /** * Converts a record into an array of `[key, value]` tuples. * - * - Key order follows `Object.entries` semantics. - * - Returns an empty array for an empty record. + * **When to use** + * + * Use to convert a record into an array of key-value tuples for iteration or + * transformation. + * + * **Details** + * + * Key order follows `Object.entries` semantics. Empty records produce an empty + * array. * * **Example** (Record to entries) * @@ -348,13 +427,20 @@ export declare const ensure: (self: ReadonlyArray | A) => Array; * console.log(result) // [["a", 1], ["b", 2], ["c", 3]] * ``` * - * @category conversions + * @see {@link Record.toEntries} the equivalent function from the Record module + * @see {@link Record.fromEntries} to build a record from an array of tuples + * + * @category converting * @since 2.0.0 */ export declare const fromRecord: (self: Readonly>) => Array<[K, A]>; /** * Converts an `Option` to an array: `Some(a)` becomes `[a]`, `None` becomes `[]`. * + * **When to use** + * + * Use to convert a single `Option` into an array for downstream array operations. + * * **Example** (Option to array) * * ```ts @@ -366,16 +452,21 @@ export declare const fromRecord: (self: Readonly(self: Option.Option) => Array; /** * Pattern-matches on an array, handling empty and non-empty cases separately. * - * - Use when you need to branch on whether an array has elements. - * - `onNonEmpty` receives a `NonEmptyReadonlyArray`. - * - Dual: data-first or data-last. + * **When to use** + * + * Use when you need to branch on whether an array is empty. + * + * **Details** + * + * `onNonEmpty` receives a `NonEmptyReadonlyArray`. Supports both data-first and + * data-last usage. * * **Example** (Branching on emptiness) * @@ -400,9 +491,14 @@ export declare const match: { /** * Pattern-matches on an array, handling empty and non-empty cases separately. * - * - Use when you need to branch on whether an array has elements. - * - `onNonEmpty` receives a `NonEmptyReadonlyArray`. - * - Dual: data-first or data-last. + * **When to use** + * + * Use when you need to branch on whether an array is empty. + * + * **Details** + * + * `onNonEmpty` receives a `NonEmptyReadonlyArray`. Supports both data-first and + * data-last usage. * * **Example** (Branching on emptiness) * @@ -430,9 +526,14 @@ export declare const match: { /** * Pattern-matches on an array, handling empty and non-empty cases separately. * - * - Use when you need to branch on whether an array has elements. - * - `onNonEmpty` receives a `NonEmptyReadonlyArray`. - * - Dual: data-first or data-last. + * **When to use** + * + * Use when you need to branch on whether an array is empty. + * + * **Details** + * + * `onNonEmpty` receives a `NonEmptyReadonlyArray`. Supports both data-first and + * data-last usage. * * **Example** (Branching on emptiness) * @@ -462,8 +563,14 @@ export declare const match: { * Pattern-matches on an array from the left, providing the first element and * the remaining elements separately. * - * - `onNonEmpty` receives `(head, tail)` where `tail` is the rest of the array. - * - Use when you want to process the first element differently from the rest. + * **When to use** + * + * Use when you need to branch on an array and handle the non-empty case as the + * first element plus the remaining elements. + * + * **Details** + * + * `onNonEmpty` receives `(head, tail)` where `tail` is the rest of the array. * * **Example** (Head and tail destructuring) * @@ -489,8 +596,14 @@ export declare const matchLeft: { * Pattern-matches on an array from the left, providing the first element and * the remaining elements separately. * - * - `onNonEmpty` receives `(head, tail)` where `tail` is the rest of the array. - * - Use when you want to process the first element differently from the rest. + * **When to use** + * + * Use when you need to branch on an array and handle the non-empty case as the + * first element plus the remaining elements. + * + * **Details** + * + * `onNonEmpty` receives `(head, tail)` where `tail` is the rest of the array. * * **Example** (Head and tail destructuring) * @@ -519,8 +632,14 @@ export declare const matchLeft: { * Pattern-matches on an array from the left, providing the first element and * the remaining elements separately. * - * - `onNonEmpty` receives `(head, tail)` where `tail` is the rest of the array. - * - Use when you want to process the first element differently from the rest. + * **When to use** + * + * Use when you need to branch on an array and handle the non-empty case as the + * first element plus the remaining elements. + * + * **Details** + * + * `onNonEmpty` receives `(head, tail)` where `tail` is the rest of the array. * * **Example** (Head and tail destructuring) * @@ -550,8 +669,14 @@ export declare const matchLeft: { * Pattern-matches on an array from the right, providing all elements except the * last and the last element separately. * - * - `onNonEmpty` receives `(init, last)` where `init` is everything but the last element. - * - Use when you want to process the last element differently from the rest. + * **When to use** + * + * Use when you need to branch on an array and handle the non-empty case as the + * elements before the last plus the last element. + * + * **Details** + * + * `onNonEmpty` receives `(init, last)` where `init` is everything but the last element. * * **Example** (Init and last destructuring) * @@ -577,8 +702,14 @@ export declare const matchRight: { * Pattern-matches on an array from the right, providing all elements except the * last and the last element separately. * - * - `onNonEmpty` receives `(init, last)` where `init` is everything but the last element. - * - Use when you want to process the last element differently from the rest. + * **When to use** + * + * Use when you need to branch on an array and handle the non-empty case as the + * elements before the last plus the last element. + * + * **Details** + * + * `onNonEmpty` receives `(init, last)` where `init` is everything but the last element. * * **Example** (Init and last destructuring) * @@ -607,8 +738,14 @@ export declare const matchRight: { * Pattern-matches on an array from the right, providing all elements except the * last and the last element separately. * - * - `onNonEmpty` receives `(init, last)` where `init` is everything but the last element. - * - Use when you want to process the last element differently from the rest. + * **When to use** + * + * Use when you need to branch on an array and handle the non-empty case as the + * elements before the last plus the last element. + * + * **Details** + * + * `onNonEmpty` receives `(init, last)` where `init` is everything but the last element. * * **Example** (Init and last destructuring) * @@ -637,8 +774,10 @@ export declare const matchRight: { /** * Adds a single element to the front of an iterable, returning a `NonEmptyArray`. * - * - Always returns a non-empty array. - * - Does not mutate the input. + * **When to use** + * + * Use when you need to guarantee a non-empty result after adding a required + * leading value. * * **Example** (Prepending an element) * @@ -652,15 +791,17 @@ export declare const matchRight: { * @see {@link append} — add to the end * @see {@link prependAll} — prepend multiple elements * - * @category concatenating + * @category combining * @since 2.0.0 */ export declare const prepend: { /** * Adds a single element to the front of an iterable, returning a `NonEmptyArray`. * - * - Always returns a non-empty array. - * - Does not mutate the input. + * **When to use** + * + * Use when you need to guarantee a non-empty result after adding a required + * leading value. * * **Example** (Prepending an element) * @@ -674,15 +815,17 @@ export declare const prepend: { * @see {@link append} — add to the end * @see {@link prependAll} — prepend multiple elements * - * @category concatenating + * @category combining * @since 2.0.0 */ (head: B): (self: Iterable) => NonEmptyArray; /** * Adds a single element to the front of an iterable, returning a `NonEmptyArray`. * - * - Always returns a non-empty array. - * - Does not mutate the input. + * **When to use** + * + * Use when you need to guarantee a non-empty result after adding a required + * leading value. * * **Example** (Prepending an element) * @@ -696,7 +839,7 @@ export declare const prepend: { * @see {@link append} — add to the end * @see {@link prependAll} — prepend multiple elements * - * @category concatenating + * @category combining * @since 2.0.0 */ (self: Iterable, head: B): NonEmptyArray; @@ -704,8 +847,13 @@ export declare const prepend: { /** * Prepends all elements from a prefix iterable to the front of an array. * - * - If either input is non-empty, the result is a `NonEmptyArray`. - * - Does not mutate the input. + * **When to use** + * + * Use to prepend multiple elements from an iterable to the front of an array. + * + * **Details** + * + * If either input is non-empty, the result is a `NonEmptyArray`. * * **Example** (Prepending multiple elements) * @@ -719,15 +867,20 @@ export declare const prepend: { * @see {@link prepend} — add a single element to the front * @see {@link appendAll} — add elements to the end * - * @category concatenating + * @category combining * @since 2.0.0 */ export declare const prependAll: { /** * Prepends all elements from a prefix iterable to the front of an array. * - * - If either input is non-empty, the result is a `NonEmptyArray`. - * - Does not mutate the input. + * **When to use** + * + * Use to prepend multiple elements from an iterable to the front of an array. + * + * **Details** + * + * If either input is non-empty, the result is a `NonEmptyArray`. * * **Example** (Prepending multiple elements) * @@ -741,15 +894,20 @@ export declare const prependAll: { * @see {@link prepend} — add a single element to the front * @see {@link appendAll} — add elements to the end * - * @category concatenating + * @category combining * @since 2.0.0 */ , T extends Iterable>(that: T): (self: S) => ReadonlyArray.OrNonEmpty | ReadonlyArray.Infer>; /** * Prepends all elements from a prefix iterable to the front of an array. * - * - If either input is non-empty, the result is a `NonEmptyArray`. - * - Does not mutate the input. + * **When to use** + * + * Use to prepend multiple elements from an iterable to the front of an array. + * + * **Details** + * + * If either input is non-empty, the result is a `NonEmptyArray`. * * **Example** (Prepending multiple elements) * @@ -763,15 +921,20 @@ export declare const prependAll: { * @see {@link prepend} — add a single element to the front * @see {@link appendAll} — add elements to the end * - * @category concatenating + * @category combining * @since 2.0.0 */ (self: Iterable, that: NonEmptyReadonlyArray): NonEmptyArray; /** * Prepends all elements from a prefix iterable to the front of an array. * - * - If either input is non-empty, the result is a `NonEmptyArray`. - * - Does not mutate the input. + * **When to use** + * + * Use to prepend multiple elements from an iterable to the front of an array. + * + * **Details** + * + * If either input is non-empty, the result is a `NonEmptyArray`. * * **Example** (Prepending multiple elements) * @@ -785,15 +948,20 @@ export declare const prependAll: { * @see {@link prepend} — add a single element to the front * @see {@link appendAll} — add elements to the end * - * @category concatenating + * @category combining * @since 2.0.0 */ (self: NonEmptyReadonlyArray, that: Iterable): NonEmptyArray; /** * Prepends all elements from a prefix iterable to the front of an array. * - * - If either input is non-empty, the result is a `NonEmptyArray`. - * - Does not mutate the input. + * **When to use** + * + * Use to prepend multiple elements from an iterable to the front of an array. + * + * **Details** + * + * If either input is non-empty, the result is a `NonEmptyArray`. * * **Example** (Prepending multiple elements) * @@ -807,7 +975,7 @@ export declare const prependAll: { * @see {@link prepend} — add a single element to the front * @see {@link appendAll} — add elements to the end * - * @category concatenating + * @category combining * @since 2.0.0 */ (self: Iterable, that: Iterable): Array; @@ -815,8 +983,10 @@ export declare const prependAll: { /** * Adds a single element to the end of an iterable, returning a `NonEmptyArray`. * - * - Always returns a non-empty array. - * - Does not mutate the input. + * **When to use** + * + * Use when you need to guarantee a non-empty result after adding a required + * trailing value. * * **Example** (Appending an element) * @@ -830,15 +1000,17 @@ export declare const prependAll: { * @see {@link prepend} — add to the front * @see {@link appendAll} — append multiple elements * - * @category concatenating + * @category combining * @since 2.0.0 */ export declare const append: { /** * Adds a single element to the end of an iterable, returning a `NonEmptyArray`. * - * - Always returns a non-empty array. - * - Does not mutate the input. + * **When to use** + * + * Use when you need to guarantee a non-empty result after adding a required + * trailing value. * * **Example** (Appending an element) * @@ -852,15 +1024,17 @@ export declare const append: { * @see {@link prepend} — add to the front * @see {@link appendAll} — append multiple elements * - * @category concatenating + * @category combining * @since 2.0.0 */ (last: B): (self: Iterable) => NonEmptyArray; /** * Adds a single element to the end of an iterable, returning a `NonEmptyArray`. * - * - Always returns a non-empty array. - * - Does not mutate the input. + * **When to use** + * + * Use when you need to guarantee a non-empty result after adding a required + * trailing value. * * **Example** (Appending an element) * @@ -874,7 +1048,7 @@ export declare const append: { * @see {@link prepend} — add to the front * @see {@link appendAll} — append multiple elements * - * @category concatenating + * @category combining * @since 2.0.0 */ (self: Iterable, last: B): NonEmptyArray; @@ -882,8 +1056,14 @@ export declare const append: { /** * Concatenates two iterables into a single array. * - * - If either input is non-empty, the result is a `NonEmptyArray`. - * - Does not mutate the inputs. + * **When to use** + * + * Use to combine two iterable inputs into a new array with the second input's + * elements after the first. + * + * **Details** + * + * If either input is non-empty, the result is a `NonEmptyArray`. * * **Example** (Concatenating arrays) * @@ -897,15 +1077,21 @@ export declare const append: { * @see {@link append} — add a single element to the end * @see {@link prependAll} — add elements to the front * - * @category concatenating + * @category combining * @since 2.0.0 */ export declare const appendAll: { /** * Concatenates two iterables into a single array. * - * - If either input is non-empty, the result is a `NonEmptyArray`. - * - Does not mutate the inputs. + * **When to use** + * + * Use to combine two iterable inputs into a new array with the second input's + * elements after the first. + * + * **Details** + * + * If either input is non-empty, the result is a `NonEmptyArray`. * * **Example** (Concatenating arrays) * @@ -919,15 +1105,21 @@ export declare const appendAll: { * @see {@link append} — add a single element to the end * @see {@link prependAll} — add elements to the front * - * @category concatenating + * @category combining * @since 2.0.0 */ , T extends Iterable>(that: T): (self: S) => ReadonlyArray.OrNonEmpty | ReadonlyArray.Infer>; /** * Concatenates two iterables into a single array. * - * - If either input is non-empty, the result is a `NonEmptyArray`. - * - Does not mutate the inputs. + * **When to use** + * + * Use to combine two iterable inputs into a new array with the second input's + * elements after the first. + * + * **Details** + * + * If either input is non-empty, the result is a `NonEmptyArray`. * * **Example** (Concatenating arrays) * @@ -941,15 +1133,21 @@ export declare const appendAll: { * @see {@link append} — add a single element to the end * @see {@link prependAll} — add elements to the front * - * @category concatenating + * @category combining * @since 2.0.0 */ (self: Iterable, that: NonEmptyReadonlyArray): NonEmptyArray; /** * Concatenates two iterables into a single array. * - * - If either input is non-empty, the result is a `NonEmptyArray`. - * - Does not mutate the inputs. + * **When to use** + * + * Use to combine two iterable inputs into a new array with the second input's + * elements after the first. + * + * **Details** + * + * If either input is non-empty, the result is a `NonEmptyArray`. * * **Example** (Concatenating arrays) * @@ -963,15 +1161,21 @@ export declare const appendAll: { * @see {@link append} — add a single element to the end * @see {@link prependAll} — add elements to the front * - * @category concatenating + * @category combining * @since 2.0.0 */ (self: NonEmptyReadonlyArray, that: Iterable): NonEmptyArray; /** * Concatenates two iterables into a single array. * - * - If either input is non-empty, the result is a `NonEmptyArray`. - * - Does not mutate the inputs. + * **When to use** + * + * Use to combine two iterable inputs into a new array with the second input's + * elements after the first. + * + * **Details** + * + * If either input is non-empty, the result is a `NonEmptyArray`. * * **Example** (Concatenating arrays) * @@ -985,17 +1189,23 @@ export declare const appendAll: { * @see {@link append} — add a single element to the end * @see {@link prependAll} — add elements to the front * - * @category concatenating + * @category combining * @since 2.0.0 */ (self: Iterable, that: Iterable): Array; }; /** - * Left-to-right fold that keeps every intermediate accumulator value. + * Folds left-to-right while keeping every intermediate accumulator value. + * + * **When to use** + * + * Use to compute a running accumulator where each intermediate value is needed. * - * - The output length is `input.length + 1` (starts with the initial value). - * - Always returns a `NonEmptyArray` because the initial value is included. - * - Use {@link reduce} if you only need the final accumulated value. + * **Details** + * + * The output length is `input.length + 1` because it starts with the initial + * value. The result is always a `NonEmptyArray`. Use `reduce` if you only need + * the final accumulated value. * * **Example** (Running totals) * @@ -1014,11 +1224,17 @@ export declare const appendAll: { */ export declare const scan: { /** - * Left-to-right fold that keeps every intermediate accumulator value. + * Folds left-to-right while keeping every intermediate accumulator value. + * + * **When to use** + * + * Use to compute a running accumulator where each intermediate value is needed. + * + * **Details** * - * - The output length is `input.length + 1` (starts with the initial value). - * - Always returns a `NonEmptyArray` because the initial value is included. - * - Use {@link reduce} if you only need the final accumulated value. + * The output length is `input.length + 1` because it starts with the initial + * value. The result is always a `NonEmptyArray`. Use `reduce` if you only need + * the final accumulated value. * * **Example** (Running totals) * @@ -1037,11 +1253,17 @@ export declare const scan: { */ (b: B, f: (b: B, a: A) => B): (self: Iterable) => NonEmptyArray; /** - * Left-to-right fold that keeps every intermediate accumulator value. + * Folds left-to-right while keeping every intermediate accumulator value. * - * - The output length is `input.length + 1` (starts with the initial value). - * - Always returns a `NonEmptyArray` because the initial value is included. - * - Use {@link reduce} if you only need the final accumulated value. + * **When to use** + * + * Use to compute a running accumulator where each intermediate value is needed. + * + * **Details** + * + * The output length is `input.length + 1` because it starts with the initial + * value. The result is always a `NonEmptyArray`. Use `reduce` if you only need + * the final accumulated value. * * **Example** (Running totals) * @@ -1061,10 +1283,17 @@ export declare const scan: { (self: Iterable, b: B, f: (b: B, a: A) => B): NonEmptyArray; }; /** - * Right-to-left fold that keeps every intermediate accumulator value. + * Folds right-to-left while keeping every intermediate accumulator value. + * + * **When to use** * - * - The output length is `input.length + 1` (ends with the initial value). - * - Always returns a `NonEmptyArray`. + * Use to compute a running accumulator from right to left where each intermediate + * value is needed. + * + * **Details** + * + * The output length is `input.length + 1` because it ends with the initial + * value. The result is always a `NonEmptyArray`. * * **Example** (Reverse running totals) * @@ -1083,10 +1312,17 @@ export declare const scan: { */ export declare const scanRight: { /** - * Right-to-left fold that keeps every intermediate accumulator value. + * Folds right-to-left while keeping every intermediate accumulator value. + * + * **When to use** + * + * Use to compute a running accumulator from right to left where each intermediate + * value is needed. * - * - The output length is `input.length + 1` (ends with the initial value). - * - Always returns a `NonEmptyArray`. + * **Details** + * + * The output length is `input.length + 1` because it ends with the initial + * value. The result is always a `NonEmptyArray`. * * **Example** (Reverse running totals) * @@ -1105,10 +1341,17 @@ export declare const scanRight: { */ (b: B, f: (b: B, a: A) => B): (self: Iterable) => NonEmptyArray; /** - * Right-to-left fold that keeps every intermediate accumulator value. + * Folds right-to-left while keeping every intermediate accumulator value. + * + * **When to use** + * + * Use to compute a running accumulator from right to left where each intermediate + * value is needed. * - * - The output length is `input.length + 1` (ends with the initial value). - * - Always returns a `NonEmptyArray`. + * **Details** + * + * The output length is `input.length + 1` because it ends with the initial + * value. The result is always a `NonEmptyArray`. * * **Example** (Reverse running totals) * @@ -1128,10 +1371,16 @@ export declare const scanRight: { (self: Iterable, b: B, f: (b: B, a: A) => B): NonEmptyArray; }; /** - * Tests whether a value is an `Array`. + * Checks whether a value is an `Array`. + * + * **When to use** + * + * Use to verify a value is a mutable array, narrowing its type to `Array`. + * + * **Details** * - * - Acts as a type guard narrowing the input to `Array`. - * - Delegates to `globalThis.Array.isArray`. + * Acts as a type guard narrowing the input to `Array` and delegates to + * `globalThis.Array.isArray`. * * **Example** (Type-guarding an unknown value) * @@ -1150,10 +1399,16 @@ export declare const scanRight: { */ export declare const isArray: { /** - * Tests whether a value is an `Array`. + * Checks whether a value is an `Array`. * - * - Acts as a type guard narrowing the input to `Array`. - * - Delegates to `globalThis.Array.isArray`. + * **When to use** + * + * Use to verify a value is a mutable array, narrowing its type to `Array`. + * + * **Details** + * + * Acts as a type guard narrowing the input to `Array` and delegates to + * `globalThis.Array.isArray`. * * **Example** (Type-guarding an unknown value) * @@ -1172,10 +1427,16 @@ export declare const isArray: { */ (self: unknown): self is Array; /** - * Tests whether a value is an `Array`. + * Checks whether a value is an `Array`. + * + * **When to use** * - * - Acts as a type guard narrowing the input to `Array`. - * - Delegates to `globalThis.Array.isArray`. + * Use to verify a value is a mutable array, narrowing its type to `Array`. + * + * **Details** + * + * Acts as a type guard narrowing the input to `Array` and delegates to + * `globalThis.Array.isArray`. * * **Example** (Type-guarding an unknown value) * @@ -1195,7 +1456,7 @@ export declare const isArray: { (self: T): self is Extract>; }; /** - * Tests whether a mutable `Array` is empty, narrowing the type to `[]`. + * Checks whether a mutable `Array` is empty, narrowing the type to `[]`. * * **Example** (Checking for an empty array) * @@ -1210,11 +1471,11 @@ export declare const isArray: { * @see {@link isArrayNonEmpty} — opposite check * * @category guards - * @since 2.0.0 + * @since 4.0.0 */ export declare const isArrayEmpty: (self: Array) => self is []; /** - * Tests whether a `ReadonlyArray` is empty, narrowing the type to `readonly []`. + * Checks whether a `ReadonlyArray` is empty, narrowing the type to `readonly []`. * * **Example** (Checking for an empty readonly array) * @@ -1229,13 +1490,18 @@ export declare const isArrayEmpty: (self: Array) => self is []; * @see {@link isReadonlyArrayNonEmpty} — opposite check * * @category guards - * @since 2.0.0 + * @since 4.0.0 */ export declare const isReadonlyArrayEmpty: (self: ReadonlyArray) => self is readonly []; /** - * Tests whether a mutable `Array` is non-empty, narrowing the type to + * Checks whether a mutable `Array` is non-empty, narrowing the type to * `NonEmptyArray`. * + * **When to use** + * + * Use when you need the narrowed value to remain a mutable `Array` after proving + * it has at least one element. + * * **Example** (Checking for a non-empty array) * * ```ts @@ -1249,13 +1515,18 @@ export declare const isReadonlyArrayEmpty: (self: ReadonlyArray) => self i * @see {@link isArrayEmpty} — opposite check * * @category guards - * @since 2.0.0 + * @since 4.0.0 */ export declare const isArrayNonEmpty: (self: Array) => self is NonEmptyArray; /** - * Tests whether a `ReadonlyArray` is non-empty, narrowing the type to + * Checks whether a `ReadonlyArray` is non-empty, narrowing the type to * `NonEmptyReadonlyArray`. * + * **When to use** + * + * Use when you need to prove a readonly array has at least one element without + * requiring mutable array methods afterward. + * * **Example** (Checking for a non-empty readonly array) * * ```ts @@ -1269,12 +1540,16 @@ export declare const isArrayNonEmpty: (self: Array) => self is NonEmptyArr * @see {@link isReadonlyArrayEmpty} — opposite check * * @category guards - * @since 2.0.0 + * @since 4.0.0 */ export declare const isReadonlyArrayNonEmpty: (self: ReadonlyArray) => self is NonEmptyReadonlyArray; /** * Returns the number of elements in a `ReadonlyArray`. * + * **When to use** + * + * Use when you need length as a composable function rather than a property access. + * * **Example** (Getting the length) * * ```ts @@ -1288,11 +1563,17 @@ export declare const isReadonlyArrayNonEmpty: (self: ReadonlyArray) => sel */ export declare const length: (self: ReadonlyArray) => number; /** - * Safely reads an element at the given index, returning `Option.some` or + * Reads an element at the given index safely, returning `Option.some` or * `Option.none` if the index is out of bounds. * - * - The index is floored to an integer. - * - Never throws. + * **When to use** + * + * Use when you need to read an array element by index and handle an + * out-of-bounds index as `Option.none`. + * + * **Details** + * + * The index is floored to an integer. This never throws. * * **Example** (Safe index access) * @@ -1303,20 +1584,26 @@ export declare const length: (self: ReadonlyArray) => number; * console.log(Array.get([1, 2, 3], 10)) // None * ``` * - * @see {@link getUnsafe} — throws on out of bounds - * @see {@link head} — get the first element - * @see {@link last} — get the last element + * @see {@link getUnsafe} for indexed access that throws when the index is out of bounds + * @see {@link head} for reading the first element as an `Option` + * @see {@link last} for reading the last element as an `Option` * * @category getters * @since 2.0.0 */ export declare const get: { /** - * Safely reads an element at the given index, returning `Option.some` or + * Reads an element at the given index safely, returning `Option.some` or * `Option.none` if the index is out of bounds. * - * - The index is floored to an integer. - * - Never throws. + * **When to use** + * + * Use when you need to read an array element by index and handle an + * out-of-bounds index as `Option.none`. + * + * **Details** + * + * The index is floored to an integer. This never throws. * * **Example** (Safe index access) * @@ -1327,20 +1614,26 @@ export declare const get: { * console.log(Array.get([1, 2, 3], 10)) // None * ``` * - * @see {@link getUnsafe} — throws on out of bounds - * @see {@link head} — get the first element - * @see {@link last} — get the last element + * @see {@link getUnsafe} for indexed access that throws when the index is out of bounds + * @see {@link head} for reading the first element as an `Option` + * @see {@link last} for reading the last element as an `Option` * * @category getters * @since 2.0.0 */ (index: number): (self: ReadonlyArray) => Option.Option; /** - * Safely reads an element at the given index, returning `Option.some` or + * Reads an element at the given index safely, returning `Option.some` or * `Option.none` if the index is out of bounds. * - * - The index is floored to an integer. - * - Never throws. + * **When to use** + * + * Use when you need to read an array element by index and handle an + * out-of-bounds index as `Option.none`. + * + * **Details** + * + * The index is floored to an integer. This never throws. * * **Example** (Safe index access) * @@ -1351,9 +1644,9 @@ export declare const get: { * console.log(Array.get([1, 2, 3], 10)) // None * ``` * - * @see {@link getUnsafe} — throws on out of bounds - * @see {@link head} — get the first element - * @see {@link last} — get the last element + * @see {@link getUnsafe} for indexed access that throws when the index is out of bounds + * @see {@link head} for reading the first element as an `Option` + * @see {@link last} for reading the last element as an `Option` * * @category getters * @since 2.0.0 @@ -1363,8 +1656,15 @@ export declare const get: { /** * Reads an element at the given index, throwing if the index is out of bounds. * - * - Throws an `Error` with the message `"Index out of bounds: "`. - * - Prefer {@link get} for safe access. + * **When to use** + * + * Use to read an array element at a known valid index when out-of-bounds would + * be a programming error. + * + * **Details** + * + * Throws an `Error` with the message `"Index out of bounds: "`. Prefer + * `get` for safe access. * * **Example** (Unsafe index access) * @@ -1377,15 +1677,22 @@ export declare const get: { * * @see {@link get} — safe version returning `Option` * - * @since 2.0.0 * @category unsafe + * @since 4.0.0 */ export declare const getUnsafe: { /** * Reads an element at the given index, throwing if the index is out of bounds. * - * - Throws an `Error` with the message `"Index out of bounds: "`. - * - Prefer {@link get} for safe access. + * **When to use** + * + * Use to read an array element at a known valid index when out-of-bounds would + * be a programming error. + * + * **Details** + * + * Throws an `Error` with the message `"Index out of bounds: "`. Prefer + * `get` for safe access. * * **Example** (Unsafe index access) * @@ -1398,15 +1705,22 @@ export declare const getUnsafe: { * * @see {@link get} — safe version returning `Option` * - * @since 2.0.0 * @category unsafe + * @since 4.0.0 */ (index: number): (self: ReadonlyArray) => A; /** * Reads an element at the given index, throwing if the index is out of bounds. * - * - Throws an `Error` with the message `"Index out of bounds: "`. - * - Prefer {@link get} for safe access. + * **When to use** + * + * Use to read an array element at a known valid index when out-of-bounds would + * be a programming error. + * + * **Details** + * + * Throws an `Error` with the message `"Index out of bounds: "`. Prefer + * `get` for safe access. * * **Example** (Unsafe index access) * @@ -1419,16 +1733,22 @@ export declare const getUnsafe: { * * @see {@link get} — safe version returning `Option` * - * @since 2.0.0 * @category unsafe + * @since 4.0.0 */ (self: ReadonlyArray, index: number): A; }; /** * Splits a non-empty array into its first element and the remaining elements. * - * - Returns a tuple `[head, tail]`. - * - Requires a `NonEmptyReadonlyArray`. + * **When to use** + * + * Use when you have a `NonEmptyReadonlyArray` and need both its first element + * and the remaining elements as separate values. + * + * **Details** + * + * Returns a tuple `[head, tail]` and requires a `NonEmptyReadonlyArray`. * * **Example** (Destructuring head and tail) * @@ -1439,9 +1759,9 @@ export declare const getUnsafe: { * console.log(result) // [1, [2, 3, 4]] * ``` * - * @see {@link unappend} — split into init + last - * @see {@link headNonEmpty} — get only the head - * @see {@link tailNonEmpty} — get only the tail + * @see {@link unappend} for splitting a non-empty array into init and last + * @see {@link headNonEmpty} for getting only the first element + * @see {@link tailNonEmpty} for getting only the elements after the first * * @category splitting * @since 2.0.0 @@ -1451,8 +1771,14 @@ export declare const unprepend: (self: NonEmptyReadonlyArray) => [firstEle * Splits a non-empty array into all elements except the last, and the last * element. * - * - Returns a tuple `[init, last]`. - * - Requires a `NonEmptyReadonlyArray`. + * **When to use** + * + * Use when you need to split a non-empty array into the elements before the + * last element and the last element. + * + * **Details** + * + * Returns a tuple `[init, last]` and requires a `NonEmptyReadonlyArray`. * * **Example** (Destructuring init and last) * @@ -1463,18 +1789,22 @@ export declare const unprepend: (self: NonEmptyReadonlyArray) => [firstEle * console.log(result) // [[1, 2, 3], 4] * ``` * - * @see {@link unprepend} — split into head + tail - * @see {@link initNonEmpty} — get only the init - * @see {@link lastNonEmpty} — get only the last + * @see {@link unprepend} for splitting a non-empty array into head and tail + * @see {@link initNonEmpty} for getting only the elements before the last + * @see {@link lastNonEmpty} for getting only the last element * * @category splitting * @since 2.0.0 */ export declare const unappend: (self: NonEmptyReadonlyArray) => [arrayWithoutLastElement: Array, lastElement: A]; /** - * Returns the first element of an array wrapped in `Option.some`, or + * Returns the first element of an array safely wrapped in `Option.some`, or * `Option.none` if the array is empty. * + * **When to use** + * + * Use to safely get the first element of an array that may be empty. + * * **Example** (Getting the first element) * * ```ts @@ -1495,6 +1825,11 @@ export declare const head: (self: ReadonlyArray) => Option.Option; * Returns the first element of a `NonEmptyReadonlyArray` directly (no `Option` * wrapper). * + * **When to use** + * + * Use to get the first element without `Option` wrapping when the array is known + * to be non-empty. + * * **Example** (Getting the head of a non-empty array) * * ```ts @@ -1510,9 +1845,13 @@ export declare const head: (self: ReadonlyArray) => Option.Option; */ export declare const headNonEmpty: (self: NonEmptyReadonlyArray) => A; /** - * Returns the last element of an array wrapped in `Option.some`, or + * Returns the last element of an array safely wrapped in `Option.some`, or * `Option.none` if the array is empty. * + * **When to use** + * + * Use to safely get the last element of an array that may be empty. + * * **Example** (Getting the last element) * * ```ts @@ -1533,6 +1872,11 @@ export declare const last: (self: ReadonlyArray) => Option.Option; * Returns the last element of a `NonEmptyReadonlyArray` directly (no `Option` * wrapper). * + * **When to use** + * + * Use to get the last element without `Option` wrapping when the array is known + * to be non-empty. + * * **Example** (Getting the last of a non-empty array) * * ```ts @@ -1548,10 +1892,15 @@ export declare const last: (self: ReadonlyArray) => Option.Option; */ export declare const lastNonEmpty: (self: NonEmptyReadonlyArray) => A; /** - * Returns all elements except the first, wrapped in an `Option`. + * Returns all elements except the first safely, wrapped in an `Option`. + * + * **When to use** + * + * Use to safely get all elements after the first when the iterable may be empty. * - * - Allocates a new array via `slice(1)`. - * - Returns `Option.none()` for empty inputs. + * **Details** + * + * Allocates a new array via `slice(1)`. Empty inputs return `Option.none()`. * * **Example** (Getting the tail) * @@ -1572,6 +1921,10 @@ export declare function tail(self: Iterable): Option.Option>; /** * Returns all elements except the first of a `NonEmptyReadonlyArray`. * + * **When to use** + * + * Use to get all elements after the first when the array is known to be non-empty. + * * **Example** (Getting the tail of a non-empty array) * * ```ts @@ -1588,10 +1941,16 @@ export declare function tail(self: Iterable): Option.Option>; */ export declare const tailNonEmpty: (self: NonEmptyReadonlyArray) => Array; /** - * Returns all elements except the last, wrapped in an `Option`. + * Returns all elements except the last safely, wrapped in an `Option`. + * + * **When to use** * - * - Allocates a new array via `slice(0, -1)`. - * - Returns `Option.none()` for empty inputs. + * Use to safely get all elements before the last when the iterable may be empty. + * + * **Details** + * + * Allocates a new array via `slice(0, -1)`. Empty inputs return + * `Option.none()`. * * **Example** (Getting init) * @@ -1612,6 +1971,10 @@ export declare function init(self: Iterable): Option.Option>; /** * Returns all elements except the last of a `NonEmptyReadonlyArray`. * + * **When to use** + * + * Use to get all elements before the last when the array is known to be non-empty. + * * **Example** (Getting init of a non-empty array) * * ```ts @@ -1630,8 +1993,13 @@ export declare const initNonEmpty: (self: NonEmptyReadonlyArray) => Array< /** * Keeps the first `n` elements, creating a new array. * - * - `n` is clamped to `[0, length]`. - * - Returns an empty array when `n <= 0`. + * **When to use** + * + * Use to keep up to the first `n` elements from an iterable as a new array. + * + * **Details** + * + * `n` is clamped to `[0, length]`. Returns an empty array when `n <= 0`. * * **Example** (Taking from the start) * @@ -1641,9 +2009,9 @@ export declare const initNonEmpty: (self: NonEmptyReadonlyArray) => Array< * console.log(Array.take([1, 2, 3, 4, 5], 3)) // [1, 2, 3] * ``` * - * @see {@link takeRight} — keep from the end - * @see {@link takeWhile} — keep while predicate holds - * @see {@link drop} — remove from the start + * @see {@link takeRight} for keeping elements from the end + * @see {@link takeWhile} for keeping an initial prefix while a predicate holds + * @see {@link drop} for removing elements from the start * * @category getters * @since 2.0.0 @@ -1652,8 +2020,13 @@ export declare const take: { /** * Keeps the first `n` elements, creating a new array. * - * - `n` is clamped to `[0, length]`. - * - Returns an empty array when `n <= 0`. + * **When to use** + * + * Use to keep up to the first `n` elements from an iterable as a new array. + * + * **Details** + * + * `n` is clamped to `[0, length]`. Returns an empty array when `n <= 0`. * * **Example** (Taking from the start) * @@ -1663,9 +2036,9 @@ export declare const take: { * console.log(Array.take([1, 2, 3, 4, 5], 3)) // [1, 2, 3] * ``` * - * @see {@link takeRight} — keep from the end - * @see {@link takeWhile} — keep while predicate holds - * @see {@link drop} — remove from the start + * @see {@link takeRight} for keeping elements from the end + * @see {@link takeWhile} for keeping an initial prefix while a predicate holds + * @see {@link drop} for removing elements from the start * * @category getters * @since 2.0.0 @@ -1674,8 +2047,13 @@ export declare const take: { /** * Keeps the first `n` elements, creating a new array. * - * - `n` is clamped to `[0, length]`. - * - Returns an empty array when `n <= 0`. + * **When to use** + * + * Use to keep up to the first `n` elements from an iterable as a new array. + * + * **Details** + * + * `n` is clamped to `[0, length]`. Returns an empty array when `n <= 0`. * * **Example** (Taking from the start) * @@ -1685,9 +2063,9 @@ export declare const take: { * console.log(Array.take([1, 2, 3, 4, 5], 3)) // [1, 2, 3] * ``` * - * @see {@link takeRight} — keep from the end - * @see {@link takeWhile} — keep while predicate holds - * @see {@link drop} — remove from the start + * @see {@link takeRight} for keeping elements from the end + * @see {@link takeWhile} for keeping an initial prefix while a predicate holds + * @see {@link drop} for removing elements from the start * * @category getters * @since 2.0.0 @@ -1697,8 +2075,13 @@ export declare const take: { /** * Keeps the last `n` elements, creating a new array. * - * - `n` is clamped to `[0, length]`. - * - Returns an empty array when `n <= 0`. + * **When to use** + * + * Use to keep the last `n` elements of an iterable. + * + * **Details** + * + * `n` is clamped to `[0, length]`. Returns an empty array when `n <= 0`. * * **Example** (Taking from the end) * @@ -1718,8 +2101,13 @@ export declare const takeRight: { /** * Keeps the last `n` elements, creating a new array. * - * - `n` is clamped to `[0, length]`. - * - Returns an empty array when `n <= 0`. + * **When to use** + * + * Use to keep the last `n` elements of an iterable. + * + * **Details** + * + * `n` is clamped to `[0, length]`. Returns an empty array when `n <= 0`. * * **Example** (Taking from the end) * @@ -1739,8 +2127,13 @@ export declare const takeRight: { /** * Keeps the last `n` elements, creating a new array. * - * - `n` is clamped to `[0, length]`. - * - Returns an empty array when `n <= 0`. + * **When to use** + * + * Use to keep the last `n` elements of an iterable. + * + * **Details** + * + * `n` is clamped to `[0, length]`. Returns an empty array when `n <= 0`. * * **Example** (Taking from the end) * @@ -1762,8 +2155,15 @@ export declare const takeRight: { * Takes elements from the start while the predicate holds, stopping at the * first element that fails. * - * - Supports refinements for type narrowing. - * - The predicate receives `(element, index)`. + * **When to use** + * + * Use to keep the leading elements of an iterable while each element satisfies + * a predicate, returning the retained prefix as an array. + * + * **Details** + * + * Supports refinements for type narrowing. The predicate receives + * `(element, index)`. * * **Example** (Taking while condition holds) * @@ -1773,9 +2173,9 @@ export declare const takeRight: { * console.log(Array.takeWhile([1, 3, 2, 4, 1, 2], (x) => x < 4)) // [1, 3, 2] * ``` * - * @see {@link take} — take a fixed count - * @see {@link dropWhile} — drop while predicate holds - * @see {@link span} — split into matching prefix + rest + * @see {@link take} for keeping a fixed number of leading elements + * @see {@link dropWhile} for removing the matching prefix and keeping the rest + * @see {@link span} for splitting the matching prefix from the remaining elements * * @category getters * @since 2.0.0 @@ -1785,8 +2185,15 @@ export declare const takeWhile: { * Takes elements from the start while the predicate holds, stopping at the * first element that fails. * - * - Supports refinements for type narrowing. - * - The predicate receives `(element, index)`. + * **When to use** + * + * Use to keep the leading elements of an iterable while each element satisfies + * a predicate, returning the retained prefix as an array. + * + * **Details** + * + * Supports refinements for type narrowing. The predicate receives + * `(element, index)`. * * **Example** (Taking while condition holds) * @@ -1796,9 +2203,9 @@ export declare const takeWhile: { * console.log(Array.takeWhile([1, 3, 2, 4, 1, 2], (x) => x < 4)) // [1, 3, 2] * ``` * - * @see {@link take} — take a fixed count - * @see {@link dropWhile} — drop while predicate holds - * @see {@link span} — split into matching prefix + rest + * @see {@link take} for keeping a fixed number of leading elements + * @see {@link dropWhile} for removing the matching prefix and keeping the rest + * @see {@link span} for splitting the matching prefix from the remaining elements * * @category getters * @since 2.0.0 @@ -1808,8 +2215,15 @@ export declare const takeWhile: { * Takes elements from the start while the predicate holds, stopping at the * first element that fails. * - * - Supports refinements for type narrowing. - * - The predicate receives `(element, index)`. + * **When to use** + * + * Use to keep the leading elements of an iterable while each element satisfies + * a predicate, returning the retained prefix as an array. + * + * **Details** + * + * Supports refinements for type narrowing. The predicate receives + * `(element, index)`. * * **Example** (Taking while condition holds) * @@ -1819,9 +2233,9 @@ export declare const takeWhile: { * console.log(Array.takeWhile([1, 3, 2, 4, 1, 2], (x) => x < 4)) // [1, 3, 2] * ``` * - * @see {@link take} — take a fixed count - * @see {@link dropWhile} — drop while predicate holds - * @see {@link span} — split into matching prefix + rest + * @see {@link take} for keeping a fixed number of leading elements + * @see {@link dropWhile} for removing the matching prefix and keeping the rest + * @see {@link span} for splitting the matching prefix from the remaining elements * * @category getters * @since 2.0.0 @@ -1831,8 +2245,15 @@ export declare const takeWhile: { * Takes elements from the start while the predicate holds, stopping at the * first element that fails. * - * - Supports refinements for type narrowing. - * - The predicate receives `(element, index)`. + * **When to use** + * + * Use to keep the leading elements of an iterable while each element satisfies + * a predicate, returning the retained prefix as an array. + * + * **Details** + * + * Supports refinements for type narrowing. The predicate receives + * `(element, index)`. * * **Example** (Taking while condition holds) * @@ -1842,9 +2263,9 @@ export declare const takeWhile: { * console.log(Array.takeWhile([1, 3, 2, 4, 1, 2], (x) => x < 4)) // [1, 3, 2] * ``` * - * @see {@link take} — take a fixed count - * @see {@link dropWhile} — drop while predicate holds - * @see {@link span} — split into matching prefix + rest + * @see {@link take} for keeping a fixed number of leading elements + * @see {@link dropWhile} for removing the matching prefix and keeping the rest + * @see {@link span} for splitting the matching prefix from the remaining elements * * @category getters * @since 2.0.0 @@ -1854,8 +2275,15 @@ export declare const takeWhile: { * Takes elements from the start while the predicate holds, stopping at the * first element that fails. * - * - Supports refinements for type narrowing. - * - The predicate receives `(element, index)`. + * **When to use** + * + * Use to keep the leading elements of an iterable while each element satisfies + * a predicate, returning the retained prefix as an array. + * + * **Details** + * + * Supports refinements for type narrowing. The predicate receives + * `(element, index)`. * * **Example** (Taking while condition holds) * @@ -1865,9 +2293,9 @@ export declare const takeWhile: { * console.log(Array.takeWhile([1, 3, 2, 4, 1, 2], (x) => x < 4)) // [1, 3, 2] * ``` * - * @see {@link take} — take a fixed count - * @see {@link dropWhile} — drop while predicate holds - * @see {@link span} — split into matching prefix + rest + * @see {@link take} for keeping a fixed number of leading elements + * @see {@link dropWhile} for removing the matching prefix and keeping the rest + * @see {@link span} for splitting the matching prefix from the remaining elements * * @category getters * @since 2.0.0 @@ -1877,8 +2305,18 @@ export declare const takeWhile: { /** * Takes elements from the start while a `Filter` succeeds, collecting transformed values. * - * - The filter receives `(element, index)`. - * - Stops at the first filter failure. + * **When to use** + * + * Use when you need to take a prefix from an iterable while a function can + * successfully extract or transform elements, stopping at the first element + * that produces a failure result. + * + * **Details** + * + * The filter receives `(element, index)` and processing stops at the first + * filter failure. + * + * @see {@link takeWhile} for taking a prefix based on a boolean predicate * * @category getters * @since 4.0.0 @@ -1887,8 +2325,18 @@ export declare const takeWhileFilter: { /** * Takes elements from the start while a `Filter` succeeds, collecting transformed values. * - * - The filter receives `(element, index)`. - * - Stops at the first filter failure. + * **When to use** + * + * Use when you need to take a prefix from an iterable while a function can + * successfully extract or transform elements, stopping at the first element + * that produces a failure result. + * + * **Details** + * + * The filter receives `(element, index)` and processing stops at the first + * filter failure. + * + * @see {@link takeWhile} for taking a prefix based on a boolean predicate * * @category getters * @since 4.0.0 @@ -1897,8 +2345,18 @@ export declare const takeWhileFilter: { /** * Takes elements from the start while a `Filter` succeeds, collecting transformed values. * - * - The filter receives `(element, index)`. - * - Stops at the first filter failure. + * **When to use** + * + * Use when you need to take a prefix from an iterable while a function can + * successfully extract or transform elements, stopping at the first element + * that produces a failure result. + * + * **Details** + * + * The filter receives `(element, index)` and processing stops at the first + * filter failure. + * + * @see {@link takeWhile} for taking a prefix based on a boolean predicate * * @category getters * @since 4.0.0 @@ -1909,9 +2367,16 @@ export declare const takeWhileFilter: { * Splits an iterable into two arrays: the longest prefix where the predicate * holds, and the remaining elements. * - * - Equivalent to `[takeWhile(pred), dropWhile(pred)]` but more efficient - * (single pass). - * - Supports refinements for type narrowing of the prefix. + * **When to use** + * + * Use when you need both the longest predicate-matching prefix and the + * remaining elements. + * + * **Details** + * + * Equivalent to `[takeWhile(pred), dropWhile(pred)]`, but more efficient + * because it runs in a single pass. Supports refinements for type narrowing of + * the prefix. * * **Example** (Splitting at predicate boundary) * @@ -1921,9 +2386,9 @@ export declare const takeWhileFilter: { * console.log(Array.span([1, 3, 2, 4, 5], (x) => x % 2 === 1)) // [[1, 3], [2, 4, 5]] * ``` * - * @see {@link takeWhile} — keep only the matching prefix - * @see {@link dropWhile} — keep only the rest - * @see {@link splitWhere} — split at the first element matching a predicate + * @see {@link takeWhile} for keeping only the matching prefix + * @see {@link dropWhile} for keeping only the elements after the matching prefix + * @see {@link splitWhere} for splitting at the first element that satisfies a predicate * * @category splitting * @since 2.0.0 @@ -1933,9 +2398,16 @@ export declare const span: { * Splits an iterable into two arrays: the longest prefix where the predicate * holds, and the remaining elements. * - * - Equivalent to `[takeWhile(pred), dropWhile(pred)]` but more efficient - * (single pass). - * - Supports refinements for type narrowing of the prefix. + * **When to use** + * + * Use when you need both the longest predicate-matching prefix and the + * remaining elements. + * + * **Details** + * + * Equivalent to `[takeWhile(pred), dropWhile(pred)]`, but more efficient + * because it runs in a single pass. Supports refinements for type narrowing of + * the prefix. * * **Example** (Splitting at predicate boundary) * @@ -1945,9 +2417,9 @@ export declare const span: { * console.log(Array.span([1, 3, 2, 4, 5], (x) => x % 2 === 1)) // [[1, 3], [2, 4, 5]] * ``` * - * @see {@link takeWhile} — keep only the matching prefix - * @see {@link dropWhile} — keep only the rest - * @see {@link splitWhere} — split at the first element matching a predicate + * @see {@link takeWhile} for keeping only the matching prefix + * @see {@link dropWhile} for keeping only the elements after the matching prefix + * @see {@link splitWhere} for splitting at the first element that satisfies a predicate * * @category splitting * @since 2.0.0 @@ -1957,9 +2429,16 @@ export declare const span: { * Splits an iterable into two arrays: the longest prefix where the predicate * holds, and the remaining elements. * - * - Equivalent to `[takeWhile(pred), dropWhile(pred)]` but more efficient - * (single pass). - * - Supports refinements for type narrowing of the prefix. + * **When to use** + * + * Use when you need both the longest predicate-matching prefix and the + * remaining elements. + * + * **Details** + * + * Equivalent to `[takeWhile(pred), dropWhile(pred)]`, but more efficient + * because it runs in a single pass. Supports refinements for type narrowing of + * the prefix. * * **Example** (Splitting at predicate boundary) * @@ -1969,9 +2448,9 @@ export declare const span: { * console.log(Array.span([1, 3, 2, 4, 5], (x) => x % 2 === 1)) // [[1, 3], [2, 4, 5]] * ``` * - * @see {@link takeWhile} — keep only the matching prefix - * @see {@link dropWhile} — keep only the rest - * @see {@link splitWhere} — split at the first element matching a predicate + * @see {@link takeWhile} for keeping only the matching prefix + * @see {@link dropWhile} for keeping only the elements after the matching prefix + * @see {@link splitWhere} for splitting at the first element that satisfies a predicate * * @category splitting * @since 2.0.0 @@ -1981,9 +2460,16 @@ export declare const span: { * Splits an iterable into two arrays: the longest prefix where the predicate * holds, and the remaining elements. * - * - Equivalent to `[takeWhile(pred), dropWhile(pred)]` but more efficient - * (single pass). - * - Supports refinements for type narrowing of the prefix. + * **When to use** + * + * Use when you need both the longest predicate-matching prefix and the + * remaining elements. + * + * **Details** + * + * Equivalent to `[takeWhile(pred), dropWhile(pred)]`, but more efficient + * because it runs in a single pass. Supports refinements for type narrowing of + * the prefix. * * **Example** (Splitting at predicate boundary) * @@ -1993,9 +2479,9 @@ export declare const span: { * console.log(Array.span([1, 3, 2, 4, 5], (x) => x % 2 === 1)) // [[1, 3], [2, 4, 5]] * ``` * - * @see {@link takeWhile} — keep only the matching prefix - * @see {@link dropWhile} — keep only the rest - * @see {@link splitWhere} — split at the first element matching a predicate + * @see {@link takeWhile} for keeping only the matching prefix + * @see {@link dropWhile} for keeping only the elements after the matching prefix + * @see {@link splitWhere} for splitting at the first element that satisfies a predicate * * @category splitting * @since 2.0.0 @@ -2005,9 +2491,16 @@ export declare const span: { * Splits an iterable into two arrays: the longest prefix where the predicate * holds, and the remaining elements. * - * - Equivalent to `[takeWhile(pred), dropWhile(pred)]` but more efficient - * (single pass). - * - Supports refinements for type narrowing of the prefix. + * **When to use** + * + * Use when you need both the longest predicate-matching prefix and the + * remaining elements. + * + * **Details** + * + * Equivalent to `[takeWhile(pred), dropWhile(pred)]`, but more efficient + * because it runs in a single pass. Supports refinements for type narrowing of + * the prefix. * * **Example** (Splitting at predicate boundary) * @@ -2017,9 +2510,9 @@ export declare const span: { * console.log(Array.span([1, 3, 2, 4, 5], (x) => x % 2 === 1)) // [[1, 3], [2, 4, 5]] * ``` * - * @see {@link takeWhile} — keep only the matching prefix - * @see {@link dropWhile} — keep only the rest - * @see {@link splitWhere} — split at the first element matching a predicate + * @see {@link takeWhile} for keeping only the matching prefix + * @see {@link dropWhile} for keeping only the elements after the matching prefix + * @see {@link splitWhere} for splitting at the first element that satisfies a predicate * * @category splitting * @since 2.0.0 @@ -2029,8 +2522,15 @@ export declare const span: { /** * Removes the first `n` elements, creating a new array. * - * - `n` is clamped to `[0, length]`. - * - Returns a copy of the full array when `n <= 0`. + * **When to use** + * + * Use to keep the suffix of an iterable after skipping a fixed number of + * leading elements. + * + * **Details** + * + * `n` is clamped to `[0, length]`. When `n <= 0`, this returns a copy of the + * full array. * * **Example** (Dropping from the start) * @@ -2040,9 +2540,9 @@ export declare const span: { * console.log(Array.drop([1, 2, 3, 4, 5], 2)) // [3, 4, 5] * ``` * - * @see {@link dropRight} — remove from the end - * @see {@link dropWhile} — remove while predicate holds - * @see {@link take} — keep from the start + * @see {@link dropRight} for removing a fixed number of elements from the end + * @see {@link dropWhile} for removing a prefix based on a predicate instead of a fixed count + * @see {@link take} for keeping a fixed number of elements from the start * * @category getters * @since 2.0.0 @@ -2051,8 +2551,15 @@ export declare const drop: { /** * Removes the first `n` elements, creating a new array. * - * - `n` is clamped to `[0, length]`. - * - Returns a copy of the full array when `n <= 0`. + * **When to use** + * + * Use to keep the suffix of an iterable after skipping a fixed number of + * leading elements. + * + * **Details** + * + * `n` is clamped to `[0, length]`. When `n <= 0`, this returns a copy of the + * full array. * * **Example** (Dropping from the start) * @@ -2062,9 +2569,9 @@ export declare const drop: { * console.log(Array.drop([1, 2, 3, 4, 5], 2)) // [3, 4, 5] * ``` * - * @see {@link dropRight} — remove from the end - * @see {@link dropWhile} — remove while predicate holds - * @see {@link take} — keep from the start + * @see {@link dropRight} for removing a fixed number of elements from the end + * @see {@link dropWhile} for removing a prefix based on a predicate instead of a fixed count + * @see {@link take} for keeping a fixed number of elements from the start * * @category getters * @since 2.0.0 @@ -2073,8 +2580,15 @@ export declare const drop: { /** * Removes the first `n` elements, creating a new array. * - * - `n` is clamped to `[0, length]`. - * - Returns a copy of the full array when `n <= 0`. + * **When to use** + * + * Use to keep the suffix of an iterable after skipping a fixed number of + * leading elements. + * + * **Details** + * + * `n` is clamped to `[0, length]`. When `n <= 0`, this returns a copy of the + * full array. * * **Example** (Dropping from the start) * @@ -2084,9 +2598,9 @@ export declare const drop: { * console.log(Array.drop([1, 2, 3, 4, 5], 2)) // [3, 4, 5] * ``` * - * @see {@link dropRight} — remove from the end - * @see {@link dropWhile} — remove while predicate holds - * @see {@link take} — keep from the start + * @see {@link dropRight} for removing a fixed number of elements from the end + * @see {@link dropWhile} for removing a prefix based on a predicate instead of a fixed count + * @see {@link take} for keeping a fixed number of elements from the start * * @category getters * @since 2.0.0 @@ -2096,7 +2610,13 @@ export declare const drop: { /** * Removes the last `n` elements, creating a new array. * - * - `n` is clamped to `[0, length]`. + * **When to use** + * + * Use to remove the last `n` elements from an iterable. + * + * **Details** + * + * `n` is clamped to `[0, length]`. * * **Example** (Dropping from the end) * @@ -2116,7 +2636,13 @@ export declare const dropRight: { /** * Removes the last `n` elements, creating a new array. * - * - `n` is clamped to `[0, length]`. + * **When to use** + * + * Use to remove the last `n` elements from an iterable. + * + * **Details** + * + * `n` is clamped to `[0, length]`. * * **Example** (Dropping from the end) * @@ -2136,7 +2662,13 @@ export declare const dropRight: { /** * Removes the last `n` elements, creating a new array. * - * - `n` is clamped to `[0, length]`. + * **When to use** + * + * Use to remove the last `n` elements from an iterable. + * + * **Details** + * + * `n` is clamped to `[0, length]`. * * **Example** (Dropping from the end) * @@ -2157,7 +2689,13 @@ export declare const dropRight: { /** * Drops elements from the start while the predicate holds, returning the rest. * - * - The predicate receives `(element, index)`. + * **When to use** + * + * Use to remove a leading prefix of elements that satisfy a predicate. + * + * **Details** + * + * The predicate receives `(element, index)`. * * **Example** (Dropping while condition holds) * @@ -2177,7 +2715,13 @@ export declare const dropWhile: { /** * Drops elements from the start while the predicate holds, returning the rest. * - * - The predicate receives `(element, index)`. + * **When to use** + * + * Use to remove a leading prefix of elements that satisfy a predicate. + * + * **Details** + * + * The predicate receives `(element, index)`. * * **Example** (Dropping while condition holds) * @@ -2197,7 +2741,13 @@ export declare const dropWhile: { /** * Drops elements from the start while the predicate holds, returning the rest. * - * - The predicate receives `(element, index)`. + * **When to use** + * + * Use to remove a leading prefix of elements that satisfy a predicate. + * + * **Details** + * + * The predicate receives `(element, index)`. * * **Example** (Dropping while condition holds) * @@ -2218,8 +2768,18 @@ export declare const dropWhile: { /** * Drops elements from the start while a `Filter` succeeds. * - * - The filter receives `(element, index)`. - * - Returns the remaining original elements after the first filter failure. + * **When to use** + * + * Use when you need to drop a prefix from an iterable by computing a `Result` + * per element instead of using a simple boolean predicate. + * + * **Details** + * + * The filter receives `(element, index)`. The result contains the remaining + * original elements after the first filter failure. + * + * @see {@link dropWhile} for dropping a prefix with a simple boolean predicate + * @see {@link takeWhileFilter} for keeping only the matching prefix * * @category getters * @since 4.0.0 @@ -2228,8 +2788,18 @@ export declare const dropWhileFilter: { /** * Drops elements from the start while a `Filter` succeeds. * - * - The filter receives `(element, index)`. - * - Returns the remaining original elements after the first filter failure. + * **When to use** + * + * Use when you need to drop a prefix from an iterable by computing a `Result` + * per element instead of using a simple boolean predicate. + * + * **Details** + * + * The filter receives `(element, index)`. The result contains the remaining + * original elements after the first filter failure. + * + * @see {@link dropWhile} for dropping a prefix with a simple boolean predicate + * @see {@link takeWhileFilter} for keeping only the matching prefix * * @category getters * @since 4.0.0 @@ -2238,8 +2808,18 @@ export declare const dropWhileFilter: { /** * Drops elements from the start while a `Filter` succeeds. * - * - The filter receives `(element, index)`. - * - Returns the remaining original elements after the first filter failure. + * **When to use** + * + * Use when you need to drop a prefix from an iterable by computing a `Result` + * per element instead of using a simple boolean predicate. + * + * **Details** + * + * The filter receives `(element, index)`. The result contains the remaining + * original elements after the first filter failure. + * + * @see {@link dropWhile} for dropping a prefix with a simple boolean predicate + * @see {@link takeWhileFilter} for keeping only the matching prefix * * @category getters * @since 4.0.0 @@ -2250,6 +2830,11 @@ export declare const dropWhileFilter: { * Returns the index of the first element matching the predicate, wrapped in an * `Option`. * + * **When to use** + * + * Use to find the index of the first matching element from the start of an + * iterable. + * * **Example** (Finding an index) * * ```ts @@ -2269,6 +2854,11 @@ export declare const findFirstIndex: { * Returns the index of the first element matching the predicate, wrapped in an * `Option`. * + * **When to use** + * + * Use to find the index of the first matching element from the start of an + * iterable. + * * **Example** (Finding an index) * * ```ts @@ -2288,6 +2878,11 @@ export declare const findFirstIndex: { * Returns the index of the first element matching the predicate, wrapped in an * `Option`. * + * **When to use** + * + * Use to find the index of the first matching element from the start of an + * iterable. + * * **Example** (Finding an index) * * ```ts @@ -2308,6 +2903,10 @@ export declare const findFirstIndex: { * Returns the index of the last element matching the predicate, wrapped in an * `Option`. * + * **When to use** + * + * Use to find the index of the last matching element from the end of an array. + * * **Example** (Finding the last matching index) * * ```ts @@ -2327,6 +2926,10 @@ export declare const findLastIndex: { * Returns the index of the last element matching the predicate, wrapped in an * `Option`. * + * **When to use** + * + * Use to find the index of the last matching element from the end of an array. + * * **Example** (Finding the last matching index) * * ```ts @@ -2346,6 +2949,10 @@ export declare const findLastIndex: { * Returns the index of the last element matching the predicate, wrapped in an * `Option`. * + * **When to use** + * + * Use to find the index of the last matching element from the end of an array. + * * **Example** (Finding the last matching index) * * ```ts @@ -2366,9 +2973,16 @@ export declare const findLastIndex: { * Returns the first element matching a predicate, refinement, or mapping * function, wrapped in `Option`. * - * - Accepts a predicate `(a, i) => boolean`, a refinement, or a function - * `(a, i) => Option` for simultaneous find-and-transform. - * - Returns `Option.none()` if no element matches. + * **When to use** + * + * Use to scan an iterable in iteration order and return the first selected + * element or mapped value as an `Option`. + * + * **Details** + * + * Accepts a predicate `(a, i) => boolean`, a refinement, or a function + * `(a, i) => Option` for simultaneous find-and-transform. If no element + * matches, this returns `Option.none()`. * * **Example** (Finding the first match) * @@ -2390,9 +3004,16 @@ export declare const findFirst: { * Returns the first element matching a predicate, refinement, or mapping * function, wrapped in `Option`. * - * - Accepts a predicate `(a, i) => boolean`, a refinement, or a function - * `(a, i) => Option` for simultaneous find-and-transform. - * - Returns `Option.none()` if no element matches. + * **When to use** + * + * Use to scan an iterable in iteration order and return the first selected + * element or mapped value as an `Option`. + * + * **Details** + * + * Accepts a predicate `(a, i) => boolean`, a refinement, or a function + * `(a, i) => Option` for simultaneous find-and-transform. If no element + * matches, this returns `Option.none()`. * * **Example** (Finding the first match) * @@ -2414,9 +3035,16 @@ export declare const findFirst: { * Returns the first element matching a predicate, refinement, or mapping * function, wrapped in `Option`. * - * - Accepts a predicate `(a, i) => boolean`, a refinement, or a function - * `(a, i) => Option` for simultaneous find-and-transform. - * - Returns `Option.none()` if no element matches. + * **When to use** + * + * Use to scan an iterable in iteration order and return the first selected + * element or mapped value as an `Option`. + * + * **Details** + * + * Accepts a predicate `(a, i) => boolean`, a refinement, or a function + * `(a, i) => Option` for simultaneous find-and-transform. If no element + * matches, this returns `Option.none()`. * * **Example** (Finding the first match) * @@ -2438,9 +3066,16 @@ export declare const findFirst: { * Returns the first element matching a predicate, refinement, or mapping * function, wrapped in `Option`. * - * - Accepts a predicate `(a, i) => boolean`, a refinement, or a function - * `(a, i) => Option` for simultaneous find-and-transform. - * - Returns `Option.none()` if no element matches. + * **When to use** + * + * Use to scan an iterable in iteration order and return the first selected + * element or mapped value as an `Option`. + * + * **Details** + * + * Accepts a predicate `(a, i) => boolean`, a refinement, or a function + * `(a, i) => Option` for simultaneous find-and-transform. If no element + * matches, this returns `Option.none()`. * * **Example** (Finding the first match) * @@ -2462,9 +3097,16 @@ export declare const findFirst: { * Returns the first element matching a predicate, refinement, or mapping * function, wrapped in `Option`. * - * - Accepts a predicate `(a, i) => boolean`, a refinement, or a function - * `(a, i) => Option` for simultaneous find-and-transform. - * - Returns `Option.none()` if no element matches. + * **When to use** + * + * Use to scan an iterable in iteration order and return the first selected + * element or mapped value as an `Option`. + * + * **Details** + * + * Accepts a predicate `(a, i) => boolean`, a refinement, or a function + * `(a, i) => Option` for simultaneous find-and-transform. If no element + * matches, this returns `Option.none()`. * * **Example** (Finding the first match) * @@ -2486,9 +3128,16 @@ export declare const findFirst: { * Returns the first element matching a predicate, refinement, or mapping * function, wrapped in `Option`. * - * - Accepts a predicate `(a, i) => boolean`, a refinement, or a function - * `(a, i) => Option` for simultaneous find-and-transform. - * - Returns `Option.none()` if no element matches. + * **When to use** + * + * Use to scan an iterable in iteration order and return the first selected + * element or mapped value as an `Option`. + * + * **Details** + * + * Accepts a predicate `(a, i) => boolean`, a refinement, or a function + * `(a, i) => Option` for simultaneous find-and-transform. If no element + * matches, this returns `Option.none()`. * * **Example** (Finding the first match) * @@ -2510,9 +3159,16 @@ export declare const findFirst: { * Returns the first element matching a predicate, refinement, or mapping * function, wrapped in `Option`. * - * - Accepts a predicate `(a, i) => boolean`, a refinement, or a function - * `(a, i) => Option` for simultaneous find-and-transform. - * - Returns `Option.none()` if no element matches. + * **When to use** + * + * Use to scan an iterable in iteration order and return the first selected + * element or mapped value as an `Option`. + * + * **Details** + * + * Accepts a predicate `(a, i) => boolean`, a refinement, or a function + * `(a, i) => Option` for simultaneous find-and-transform. If no element + * matches, this returns `Option.none()`. * * **Example** (Finding the first match) * @@ -2532,8 +3188,18 @@ export declare const findFirst: { (self: Iterable, predicate: (a: A, i: number) => boolean): Option.Option; }; /** - * Returns a tuple `[element, index]` of the first element matching a - * predicate, wrapped in an `Option`. + * Returns the first selected value together with its index, wrapped in an + * `Option`. + * + * **When to use** + * + * Use to find both the first matching element and its index in one pass. + * + * **Details** + * + * Accepts a predicate, a refinement, or a function returning `Option`. For an + * `Option`-returning function, returns `[mappedValue, index]` for the first + * `Some`, or `Option.none()` if no element is selected. * * **Example** (Finding element with its index) * @@ -2551,8 +3217,18 @@ export declare const findFirst: { */ export declare const findFirstWithIndex: { /** - * Returns a tuple `[element, index]` of the first element matching a - * predicate, wrapped in an `Option`. + * Returns the first selected value together with its index, wrapped in an + * `Option`. + * + * **When to use** + * + * Use to find both the first matching element and its index in one pass. + * + * **Details** + * + * Accepts a predicate, a refinement, or a function returning `Option`. For an + * `Option`-returning function, returns `[mappedValue, index]` for the first + * `Some`, or `Option.none()` if no element is selected. * * **Example** (Finding element with its index) * @@ -2570,8 +3246,18 @@ export declare const findFirstWithIndex: { */ (f: (a: NoInfer, i: number) => Option.Option): (self: Iterable) => Option.Option<[B, number]>; /** - * Returns a tuple `[element, index]` of the first element matching a - * predicate, wrapped in an `Option`. + * Returns the first selected value together with its index, wrapped in an + * `Option`. + * + * **When to use** + * + * Use to find both the first matching element and its index in one pass. + * + * **Details** + * + * Accepts a predicate, a refinement, or a function returning `Option`. For an + * `Option`-returning function, returns `[mappedValue, index]` for the first + * `Some`, or `Option.none()` if no element is selected. * * **Example** (Finding element with its index) * @@ -2589,8 +3275,18 @@ export declare const findFirstWithIndex: { */ (refinement: (a: NoInfer, i: number) => a is B): (self: Iterable) => Option.Option<[B, number]>; /** - * Returns a tuple `[element, index]` of the first element matching a - * predicate, wrapped in an `Option`. + * Returns the first selected value together with its index, wrapped in an + * `Option`. + * + * **When to use** + * + * Use to find both the first matching element and its index in one pass. + * + * **Details** + * + * Accepts a predicate, a refinement, or a function returning `Option`. For an + * `Option`-returning function, returns `[mappedValue, index]` for the first + * `Some`, or `Option.none()` if no element is selected. * * **Example** (Finding element with its index) * @@ -2608,8 +3304,18 @@ export declare const findFirstWithIndex: { */ (predicate: (a: NoInfer, i: number) => boolean): (self: Iterable) => Option.Option<[A, number]>; /** - * Returns a tuple `[element, index]` of the first element matching a - * predicate, wrapped in an `Option`. + * Returns the first selected value together with its index, wrapped in an + * `Option`. + * + * **When to use** + * + * Use to find both the first matching element and its index in one pass. + * + * **Details** + * + * Accepts a predicate, a refinement, or a function returning `Option`. For an + * `Option`-returning function, returns `[mappedValue, index]` for the first + * `Some`, or `Option.none()` if no element is selected. * * **Example** (Finding element with its index) * @@ -2627,8 +3333,18 @@ export declare const findFirstWithIndex: { */ (self: Iterable, f: (a: A, i: number) => Option.Option): Option.Option<[B, number]>; /** - * Returns a tuple `[element, index]` of the first element matching a - * predicate, wrapped in an `Option`. + * Returns the first selected value together with its index, wrapped in an + * `Option`. + * + * **When to use** + * + * Use to find both the first matching element and its index in one pass. + * + * **Details** + * + * Accepts a predicate, a refinement, or a function returning `Option`. For an + * `Option`-returning function, returns `[mappedValue, index]` for the first + * `Some`, or `Option.none()` if no element is selected. * * **Example** (Finding element with its index) * @@ -2646,8 +3362,18 @@ export declare const findFirstWithIndex: { */ (self: Iterable, refinement: (a: A, i: number) => a is B): Option.Option<[B, number]>; /** - * Returns a tuple `[element, index]` of the first element matching a - * predicate, wrapped in an `Option`. + * Returns the first selected value together with its index, wrapped in an + * `Option`. + * + * **When to use** + * + * Use to find both the first matching element and its index in one pass. + * + * **Details** + * + * Accepts a predicate, a refinement, or a function returning `Option`. For an + * `Option`-returning function, returns `[mappedValue, index]` for the first + * `Some`, or `Option.none()` if no element is selected. * * **Example** (Finding element with its index) * @@ -2669,8 +3395,14 @@ export declare const findFirstWithIndex: { * Returns the last element matching a predicate, refinement, or mapping * function, wrapped in `Option`. * - * - Searches from the end of the array. - * - Returns `Option.none()` if no element matches. + * **When to use** + * + * Use to find the last matching element from the end of an array. + * + * **Details** + * + * Searches from the end of the array. If no element matches, this returns + * `Option.none()`. * * **Example** (Finding the last match) * @@ -2691,8 +3423,14 @@ export declare const findLast: { * Returns the last element matching a predicate, refinement, or mapping * function, wrapped in `Option`. * - * - Searches from the end of the array. - * - Returns `Option.none()` if no element matches. + * **When to use** + * + * Use to find the last matching element from the end of an array. + * + * **Details** + * + * Searches from the end of the array. If no element matches, this returns + * `Option.none()`. * * **Example** (Finding the last match) * @@ -2713,8 +3451,14 @@ export declare const findLast: { * Returns the last element matching a predicate, refinement, or mapping * function, wrapped in `Option`. * - * - Searches from the end of the array. - * - Returns `Option.none()` if no element matches. + * **When to use** + * + * Use to find the last matching element from the end of an array. + * + * **Details** + * + * Searches from the end of the array. If no element matches, this returns + * `Option.none()`. * * **Example** (Finding the last match) * @@ -2735,8 +3479,14 @@ export declare const findLast: { * Returns the last element matching a predicate, refinement, or mapping * function, wrapped in `Option`. * - * - Searches from the end of the array. - * - Returns `Option.none()` if no element matches. + * **When to use** + * + * Use to find the last matching element from the end of an array. + * + * **Details** + * + * Searches from the end of the array. If no element matches, this returns + * `Option.none()`. * * **Example** (Finding the last match) * @@ -2757,8 +3507,14 @@ export declare const findLast: { * Returns the last element matching a predicate, refinement, or mapping * function, wrapped in `Option`. * - * - Searches from the end of the array. - * - Returns `Option.none()` if no element matches. + * **When to use** + * + * Use to find the last matching element from the end of an array. + * + * **Details** + * + * Searches from the end of the array. If no element matches, this returns + * `Option.none()`. * * **Example** (Finding the last match) * @@ -2779,8 +3535,14 @@ export declare const findLast: { * Returns the last element matching a predicate, refinement, or mapping * function, wrapped in `Option`. * - * - Searches from the end of the array. - * - Returns `Option.none()` if no element matches. + * **When to use** + * + * Use to find the last matching element from the end of an array. + * + * **Details** + * + * Searches from the end of the array. If no element matches, this returns + * `Option.none()`. * * **Example** (Finding the last match) * @@ -2801,8 +3563,14 @@ export declare const findLast: { * Returns the last element matching a predicate, refinement, or mapping * function, wrapped in `Option`. * - * - Searches from the end of the array. - * - Returns `Option.none()` if no element matches. + * **When to use** + * + * Use to find the last matching element from the end of an array. + * + * **Details** + * + * Searches from the end of the array. If no element matches, this returns + * `Option.none()`. * * **Example** (Finding the last match) * @@ -2821,11 +3589,16 @@ export declare const findLast: { (self: Iterable, predicate: (a: A, i: number) => boolean): Option.Option; }; /** - * Inserts an element at the specified index, returning a new `NonEmptyArray` + * Inserts an element at the specified index safely, returning a new `NonEmptyArray` * wrapped in an `Option`. * - * - Valid indices: `0` to `length` (inclusive — inserting at `length` appends). - * - Does not mutate the input. + * **When to use** + * + * Use to insert a single element at a specific position in an array. + * + * **Details** + * + * Valid indices are `0` to `length`, inclusive. Inserting at `length` appends. * * **Example** (Inserting at an index) * @@ -2843,11 +3616,16 @@ export declare const findLast: { */ export declare const insertAt: { /** - * Inserts an element at the specified index, returning a new `NonEmptyArray` + * Inserts an element at the specified index safely, returning a new `NonEmptyArray` * wrapped in an `Option`. * - * - Valid indices: `0` to `length` (inclusive — inserting at `length` appends). - * - Does not mutate the input. + * **When to use** + * + * Use to insert a single element at a specific position in an array. + * + * **Details** + * + * Valid indices are `0` to `length`, inclusive. Inserting at `length` appends. * * **Example** (Inserting at an index) * @@ -2865,11 +3643,16 @@ export declare const insertAt: { */ (i: number, b: B): (self: Iterable) => Option.Option>; /** - * Inserts an element at the specified index, returning a new `NonEmptyArray` + * Inserts an element at the specified index safely, returning a new `NonEmptyArray` * wrapped in an `Option`. * - * - Valid indices: `0` to `length` (inclusive — inserting at `length` appends). - * - Does not mutate the input. + * **When to use** + * + * Use to insert a single element at a specific position in an array. + * + * **Details** + * + * Valid indices are `0` to `length`, inclusive. Inserting at `length` appends. * * **Example** (Inserting at an index) * @@ -2888,10 +3671,16 @@ export declare const insertAt: { (self: Iterable, i: number, b: B): Option.Option>; }; /** - * Replaces the element at the specified index with a new value, returning a new - * array, wrapped in an `Option`. + * Replaces the element at the specified index safely with a new value, returning the + * updated array in `Option.some`. + * + * **When to use** + * + * Use to set a fixed replacement value at a specific index. + * + * **Details** * - * - Does not mutate the input. + * Returns `Option.none()` when the index is out of bounds. * * **Example** (Replacing an element) * @@ -2909,10 +3698,16 @@ export declare const insertAt: { */ export declare const replace: { /** - * Replaces the element at the specified index with a new value, returning a new - * array, wrapped in an `Option`. + * Replaces the element at the specified index safely with a new value, returning the + * updated array in `Option.some`. * - * - Does not mutate the input. + * **When to use** + * + * Use to set a fixed replacement value at a specific index. + * + * **Details** + * + * Returns `Option.none()` when the index is out of bounds. * * **Example** (Replacing an element) * @@ -2930,10 +3725,16 @@ export declare const replace: { */ (i: number, b: B): = Iterable>(self: S) => Option.Option | B>>; /** - * Replaces the element at the specified index with a new value, returning a new - * array, wrapped in an `Option`. + * Replaces the element at the specified index safely with a new value, returning the + * updated array in `Option.some`. + * + * **When to use** * - * - Does not mutate the input. + * Use to set a fixed replacement value at a specific index. + * + * **Details** + * + * Returns `Option.none()` when the index is out of bounds. * * **Example** (Replacing an element) * @@ -2952,10 +3753,17 @@ export declare const replace: { = Iterable>(self: S, i: number, b: B): Option.Option | B>>; }; /** - * Applies a function to the element at the specified index, returning a new - * array, wrapped in an `Option`. + * Applies a function to the element at the specified index safely, returning the + * updated array in `Option.some`. + * + * **When to use** + * + * Use to derive a replacement value from an array element at a specific index + * while leaving the other elements unchanged. * - * - Does not mutate the input. + * **Details** + * + * Returns `Option.none()` when the index is out of bounds. * * **Example** (Modifying an element) * @@ -2975,10 +3783,17 @@ export declare const replace: { */ export declare const modify: { /** - * Applies a function to the element at the specified index, returning a new - * array, wrapped in an `Option`. + * Applies a function to the element at the specified index safely, returning the + * updated array in `Option.some`. + * + * **When to use** + * + * Use to derive a replacement value from an array element at a specific index + * while leaving the other elements unchanged. + * + * **Details** * - * - Does not mutate the input. + * Returns `Option.none()` when the index is out of bounds. * * **Example** (Modifying an element) * @@ -2998,10 +3813,17 @@ export declare const modify: { */ = Iterable>(i: number, f: (a: ReadonlyArray.Infer) => B): (self: S) => Option.Option | B>>; /** - * Applies a function to the element at the specified index, returning a new - * array, wrapped in an `Option`. + * Applies a function to the element at the specified index safely, returning the + * updated array in `Option.some`. * - * - Does not mutate the input. + * **When to use** + * + * Use to derive a replacement value from an array element at a specific index + * while leaving the other elements unchanged. + * + * **Details** + * + * Returns `Option.none()` when the index is out of bounds. * * **Example** (Modifying an element) * @@ -3025,7 +3847,10 @@ export declare const modify: { * Removes the element at the specified index, returning a new array. If the * index is out of bounds, returns a copy of the original. * - * - Does not mutate the input. + * **When to use** + * + * Use when you want a missing index to be a no-op and need a fresh array result + * instead of an optional failure. * * **Example** (Removing an element) * @@ -3047,7 +3872,10 @@ export declare const remove: { * Removes the element at the specified index, returning a new array. If the * index is out of bounds, returns a copy of the original. * - * - Does not mutate the input. + * **When to use** + * + * Use when you want a missing index to be a no-op and need a fresh array result + * instead of an optional failure. * * **Example** (Removing an element) * @@ -3069,7 +3897,10 @@ export declare const remove: { * Removes the element at the specified index, returning a new array. If the * index is out of bounds, returns a copy of the original. * - * - Does not mutate the input. + * **When to use** + * + * Use when you want a missing index to be a no-op and need a fresh array result + * instead of an optional failure. * * **Example** (Removing an element) * @@ -3091,8 +3922,14 @@ export declare const remove: { /** * Reverses an iterable into a new array. * - * - Does not mutate the input. - * - Preserves `NonEmptyArray` in the return type. + * **When to use** + * + * Use to reverse an iterable into a new array without mutating the original + * input. + * + * **Details** + * + * Preserves `NonEmptyArray` in the return type. * * **Example** (Reversing an array) * @@ -3109,10 +3946,14 @@ export declare const reverse: >(self: S) => S extends No /** * Sorts an array by the given `Order`, returning a new array. * - * - Does not mutate the input. - * - Preserves `NonEmptyArray` in the return type. - * - Use {@link sortWith} to sort by a derived key, or {@link sortBy} for - * multi-key sorting. + * **When to use** + * + * Use to sort an array using a single `Order` comparator. + * + * **Details** + * + * Preserves `NonEmptyArray` in the return type. Use `sortWith` to sort by a + * derived key, or `sortBy` for multi-key sorting. * * **Example** (Sorting numbers) * @@ -3132,10 +3973,14 @@ export declare const sort: { /** * Sorts an array by the given `Order`, returning a new array. * - * - Does not mutate the input. - * - Preserves `NonEmptyArray` in the return type. - * - Use {@link sortWith} to sort by a derived key, or {@link sortBy} for - * multi-key sorting. + * **When to use** + * + * Use to sort an array using a single `Order` comparator. + * + * **Details** + * + * Preserves `NonEmptyArray` in the return type. Use `sortWith` to sort by a + * derived key, or `sortBy` for multi-key sorting. * * **Example** (Sorting numbers) * @@ -3155,10 +4000,14 @@ export declare const sort: { /** * Sorts an array by the given `Order`, returning a new array. * - * - Does not mutate the input. - * - Preserves `NonEmptyArray` in the return type. - * - Use {@link sortWith} to sort by a derived key, or {@link sortBy} for - * multi-key sorting. + * **When to use** + * + * Use to sort an array using a single `Order` comparator. + * + * **Details** + * + * Preserves `NonEmptyArray` in the return type. Use `sortWith` to sort by a + * derived key, or `sortBy` for multi-key sorting. * * **Example** (Sorting numbers) * @@ -3178,10 +4027,14 @@ export declare const sort: { /** * Sorts an array by the given `Order`, returning a new array. * - * - Does not mutate the input. - * - Preserves `NonEmptyArray` in the return type. - * - Use {@link sortWith} to sort by a derived key, or {@link sortBy} for - * multi-key sorting. + * **When to use** + * + * Use to sort an array using a single `Order` comparator. + * + * **Details** + * + * Preserves `NonEmptyArray` in the return type. Use `sortWith` to sort by a + * derived key, or `sortBy` for multi-key sorting. * * **Example** (Sorting numbers) * @@ -3203,8 +4056,14 @@ export declare const sort: { * Sorts an array by a derived key using a mapping function and an `Order` for * that key. * - * - Equivalent to `sort(Order.mapInput(order, f))` but more convenient. - * - Does not mutate the input. + * **When to use** + * + * Use when you need to sort values by a derived key, such as a string length or + * object field, while keeping the original values. + * + * **Details** + * + * Equivalent to `sort(Order.mapInput(order, f))`, but more convenient. * * **Example** (Sorting strings by length) * @@ -3215,19 +4074,25 @@ export declare const sort: { * // ["b", "cc", "aaa"] * ``` * - * @see {@link sort} — sort by a direct `Order` - * @see {@link sortBy} — sort by multiple orders + * @see {@link sort} for sorting with an `Order` that compares the elements directly + * @see {@link sortBy} for sorting with multiple `Order`s applied in sequence * - * @since 2.0.0 * @category elements + * @since 2.0.0 */ export declare const sortWith: { /** * Sorts an array by a derived key using a mapping function and an `Order` for * that key. * - * - Equivalent to `sort(Order.mapInput(order, f))` but more convenient. - * - Does not mutate the input. + * **When to use** + * + * Use when you need to sort values by a derived key, such as a string length or + * object field, while keeping the original values. + * + * **Details** + * + * Equivalent to `sort(Order.mapInput(order, f))`, but more convenient. * * **Example** (Sorting strings by length) * @@ -3238,19 +4103,25 @@ export declare const sortWith: { * // ["b", "cc", "aaa"] * ``` * - * @see {@link sort} — sort by a direct `Order` - * @see {@link sortBy} — sort by multiple orders + * @see {@link sort} for sorting with an `Order` that compares the elements directly + * @see {@link sortBy} for sorting with multiple `Order`s applied in sequence * - * @since 2.0.0 * @category elements + * @since 2.0.0 */ , B>(f: (a: ReadonlyArray.Infer) => B, order: Order.Order): (self: S) => ReadonlyArray.With>; /** * Sorts an array by a derived key using a mapping function and an `Order` for * that key. * - * - Equivalent to `sort(Order.mapInput(order, f))` but more convenient. - * - Does not mutate the input. + * **When to use** + * + * Use when you need to sort values by a derived key, such as a string length or + * object field, while keeping the original values. + * + * **Details** + * + * Equivalent to `sort(Order.mapInput(order, f))`, but more convenient. * * **Example** (Sorting strings by length) * @@ -3261,19 +4132,25 @@ export declare const sortWith: { * // ["b", "cc", "aaa"] * ``` * - * @see {@link sort} — sort by a direct `Order` - * @see {@link sortBy} — sort by multiple orders + * @see {@link sort} for sorting with an `Order` that compares the elements directly + * @see {@link sortBy} for sorting with multiple `Order`s applied in sequence * - * @since 2.0.0 * @category elements + * @since 2.0.0 */ (self: NonEmptyReadonlyArray, f: (a: A) => B, O: Order.Order): NonEmptyArray; /** * Sorts an array by a derived key using a mapping function and an `Order` for * that key. * - * - Equivalent to `sort(Order.mapInput(order, f))` but more convenient. - * - Does not mutate the input. + * **When to use** + * + * Use when you need to sort values by a derived key, such as a string length or + * object field, while keeping the original values. + * + * **Details** + * + * Equivalent to `sort(Order.mapInput(order, f))`, but more convenient. * * **Example** (Sorting strings by length) * @@ -3284,11 +4161,11 @@ export declare const sortWith: { * // ["b", "cc", "aaa"] * ``` * - * @see {@link sort} — sort by a direct `Order` - * @see {@link sortBy} — sort by multiple orders + * @see {@link sort} for sorting with an `Order` that compares the elements directly + * @see {@link sortBy} for sorting with multiple `Order`s applied in sequence * - * @since 2.0.0 * @category elements + * @since 2.0.0 */ (self: Iterable, f: (a: A) => B, order: Order.Order): Array; }; @@ -3296,8 +4173,15 @@ export declare const sortWith: { * Sorts an array by multiple `Order`s applied in sequence: the first order is * used first; ties are broken by the second order, and so on. * - * - Data-last only (returns a function). - * - Preserves `NonEmptyArray` in the return type. + * **When to use** + * + * Use to sort by multiple criteria where later orders break ties from earlier + * ones. + * + * **Details** + * + * This is data-last only and returns a function. The return type preserves + * `NonEmptyArray`. * * **Example** (Multi-key sorting) * @@ -3332,7 +4216,13 @@ export declare const sortBy: >(...orders: ReadonlyArray< * Pairs elements from two iterables by position. If the iterables differ in * length, the extra elements from the longer one are discarded. * - * - Returns `NonEmptyArray` when both inputs are non-empty. + * **When to use** + * + * Use when you need simple pairs of corresponding elements from two iterables. + * + * **Details** + * + * Returns `NonEmptyArray` when both inputs are non-empty. * * **Example** (Zipping two arrays) * @@ -3353,7 +4243,13 @@ export declare const zip: { * Pairs elements from two iterables by position. If the iterables differ in * length, the extra elements from the longer one are discarded. * - * - Returns `NonEmptyArray` when both inputs are non-empty. + * **When to use** + * + * Use when you need simple pairs of corresponding elements from two iterables. + * + * **Details** + * + * Returns `NonEmptyArray` when both inputs are non-empty. * * **Example** (Zipping two arrays) * @@ -3374,7 +4270,13 @@ export declare const zip: { * Pairs elements from two iterables by position. If the iterables differ in * length, the extra elements from the longer one are discarded. * - * - Returns `NonEmptyArray` when both inputs are non-empty. + * **When to use** + * + * Use when you need simple pairs of corresponding elements from two iterables. + * + * **Details** + * + * Returns `NonEmptyArray` when both inputs are non-empty. * * **Example** (Zipping two arrays) * @@ -3395,7 +4297,13 @@ export declare const zip: { * Pairs elements from two iterables by position. If the iterables differ in * length, the extra elements from the longer one are discarded. * - * - Returns `NonEmptyArray` when both inputs are non-empty. + * **When to use** + * + * Use when you need simple pairs of corresponding elements from two iterables. + * + * **Details** + * + * Returns `NonEmptyArray` when both inputs are non-empty. * * **Example** (Zipping two arrays) * @@ -3416,7 +4324,13 @@ export declare const zip: { * Pairs elements from two iterables by position. If the iterables differ in * length, the extra elements from the longer one are discarded. * - * - Returns `NonEmptyArray` when both inputs are non-empty. + * **When to use** + * + * Use when you need simple pairs of corresponding elements from two iterables. + * + * **Details** + * + * Returns `NonEmptyArray` when both inputs are non-empty. * * **Example** (Zipping two arrays) * @@ -3438,6 +4352,11 @@ export declare const zip: { * Combines elements from two iterables pairwise using a function. If the * iterables differ in length, extra elements are discarded. * + * **When to use** + * + * Use when zipping two iterables in an array pipeline and each pair should + * become a computed array element instead of a tuple. + * * **Example** (Zipping with addition) * * ```ts @@ -3456,6 +4375,11 @@ export declare const zipWith: { * Combines elements from two iterables pairwise using a function. If the * iterables differ in length, extra elements are discarded. * + * **When to use** + * + * Use when zipping two iterables in an array pipeline and each pair should + * become a computed array element instead of a tuple. + * * **Example** (Zipping with addition) * * ```ts @@ -3474,6 +4398,11 @@ export declare const zipWith: { * Combines elements from two iterables pairwise using a function. If the * iterables differ in length, extra elements are discarded. * + * **When to use** + * + * Use when zipping two iterables in an array pipeline and each pair should + * become a computed array element instead of a tuple. + * * **Example** (Zipping with addition) * * ```ts @@ -3492,6 +4421,11 @@ export declare const zipWith: { * Combines elements from two iterables pairwise using a function. If the * iterables differ in length, extra elements are discarded. * + * **When to use** + * + * Use when zipping two iterables in an array pipeline and each pair should + * become a computed array element instead of a tuple. + * * **Example** (Zipping with addition) * * ```ts @@ -3510,6 +4444,11 @@ export declare const zipWith: { * Combines elements from two iterables pairwise using a function. If the * iterables differ in length, extra elements are discarded. * + * **When to use** + * + * Use when zipping two iterables in an array pipeline and each pair should + * become a computed array element instead of a tuple. + * * **Example** (Zipping with addition) * * ```ts @@ -3545,8 +4484,14 @@ export declare const unzip: >(self: S) = /** * Places a separator element between every pair of elements. * - * - Preserves `NonEmptyArray` in the return type. - * - An empty input produces an empty result. + * **When to use** + * + * Use to insert a separator between elements, for example when preparing data for display or concatenation. + * + * **Details** + * + * The return type preserves `NonEmptyArray`. Empty inputs produce an empty + * result. * * **Example** (Interspersing a separator) * @@ -3565,8 +4510,14 @@ export declare const intersperse: { /** * Places a separator element between every pair of elements. * - * - Preserves `NonEmptyArray` in the return type. - * - An empty input produces an empty result. + * **When to use** + * + * Use to insert a separator between elements, for example when preparing data for display or concatenation. + * + * **Details** + * + * The return type preserves `NonEmptyArray`. Empty inputs produce an empty + * result. * * **Example** (Interspersing a separator) * @@ -3585,8 +4536,14 @@ export declare const intersperse: { /** * Places a separator element between every pair of elements. * - * - Preserves `NonEmptyArray` in the return type. - * - An empty input produces an empty result. + * **When to use** + * + * Use to insert a separator between elements, for example when preparing data for display or concatenation. + * + * **Details** + * + * The return type preserves `NonEmptyArray`. Empty inputs produce an empty + * result. * * **Example** (Interspersing a separator) * @@ -3605,8 +4562,14 @@ export declare const intersperse: { /** * Places a separator element between every pair of elements. * - * - Preserves `NonEmptyArray` in the return type. - * - An empty input produces an empty result. + * **When to use** + * + * Use to insert a separator between elements, for example when preparing data for display or concatenation. + * + * **Details** + * + * The return type preserves `NonEmptyArray`. Empty inputs produce an empty + * result. * * **Example** (Interspersing a separator) * @@ -3627,6 +4590,10 @@ export declare const intersperse: { * Applies a function to the first element of a non-empty array, returning a * new array. * + * **When to use** + * + * Use to transform the first element of a non-empty array while preserving the rest. + * * **Example** (Modifying the head) * * ```ts @@ -3639,13 +4606,17 @@ export declare const intersperse: { * @see {@link modifyLastNonEmpty} — modify the last element * * @category elements - * @since 2.0.0 + * @since 4.0.0 */ export declare const modifyHeadNonEmpty: { /** * Applies a function to the first element of a non-empty array, returning a * new array. * + * **When to use** + * + * Use to transform the first element of a non-empty array while preserving the rest. + * * **Example** (Modifying the head) * * ```ts @@ -3658,13 +4629,17 @@ export declare const modifyHeadNonEmpty: { * @see {@link modifyLastNonEmpty} — modify the last element * * @category elements - * @since 2.0.0 + * @since 4.0.0 */ (f: (a: A) => B): (self: NonEmptyReadonlyArray) => NonEmptyArray; /** * Applies a function to the first element of a non-empty array, returning a * new array. * + * **When to use** + * + * Use to transform the first element of a non-empty array while preserving the rest. + * * **Example** (Modifying the head) * * ```ts @@ -3677,13 +4652,18 @@ export declare const modifyHeadNonEmpty: { * @see {@link modifyLastNonEmpty} — modify the last element * * @category elements - * @since 2.0.0 + * @since 4.0.0 */ (self: NonEmptyReadonlyArray, f: (a: A) => B): NonEmptyArray; }; /** * Replaces the first element of a non-empty array with a new value. * + * **When to use** + * + * Use when you already know the array is non-empty and the replacement value + * does not depend on the current first element. + * * **Example** (Setting the head) * * ```ts @@ -3696,12 +4676,17 @@ export declare const modifyHeadNonEmpty: { * @see {@link setLastNonEmpty} — replace the last element * * @category elements - * @since 2.0.0 + * @since 4.0.0 */ export declare const setHeadNonEmpty: { /** * Replaces the first element of a non-empty array with a new value. * + * **When to use** + * + * Use when you already know the array is non-empty and the replacement value + * does not depend on the current first element. + * * **Example** (Setting the head) * * ```ts @@ -3714,12 +4699,17 @@ export declare const setHeadNonEmpty: { * @see {@link setLastNonEmpty} — replace the last element * * @category elements - * @since 2.0.0 + * @since 4.0.0 */ (b: B): (self: NonEmptyReadonlyArray) => NonEmptyArray; /** * Replaces the first element of a non-empty array with a new value. * + * **When to use** + * + * Use when you already know the array is non-empty and the replacement value + * does not depend on the current first element. + * * **Example** (Setting the head) * * ```ts @@ -3732,7 +4722,7 @@ export declare const setHeadNonEmpty: { * @see {@link setLastNonEmpty} — replace the last element * * @category elements - * @since 2.0.0 + * @since 4.0.0 */ (self: NonEmptyReadonlyArray, b: B): NonEmptyArray; }; @@ -3740,6 +4730,11 @@ export declare const setHeadNonEmpty: { * Applies a function to the last element of a non-empty array, returning a * new array. * + * **When to use** + * + * Use when you already know the array is non-empty and the new last element + * depends on the current last element. + * * **Example** (Modifying the last element) * * ```ts @@ -3752,13 +4747,18 @@ export declare const setHeadNonEmpty: { * @see {@link modifyHeadNonEmpty} — modify the first element * * @category elements - * @since 2.0.0 + * @since 4.0.0 */ export declare const modifyLastNonEmpty: { /** * Applies a function to the last element of a non-empty array, returning a * new array. * + * **When to use** + * + * Use when you already know the array is non-empty and the new last element + * depends on the current last element. + * * **Example** (Modifying the last element) * * ```ts @@ -3771,13 +4771,18 @@ export declare const modifyLastNonEmpty: { * @see {@link modifyHeadNonEmpty} — modify the first element * * @category elements - * @since 2.0.0 + * @since 4.0.0 */ (f: (a: A) => B): (self: NonEmptyReadonlyArray) => NonEmptyArray; /** * Applies a function to the last element of a non-empty array, returning a * new array. * + * **When to use** + * + * Use when you already know the array is non-empty and the new last element + * depends on the current last element. + * * **Example** (Modifying the last element) * * ```ts @@ -3790,13 +4795,18 @@ export declare const modifyLastNonEmpty: { * @see {@link modifyHeadNonEmpty} — modify the first element * * @category elements - * @since 2.0.0 + * @since 4.0.0 */ (self: NonEmptyReadonlyArray, f: (a: A) => B): NonEmptyArray; }; /** * Replaces the last element of a non-empty array with a new value. * + * **When to use** + * + * Use when you already know the array is non-empty and the replacement value + * does not depend on the current last element. + * * **Example** (Setting the last element) * * ```ts @@ -3809,12 +4819,17 @@ export declare const modifyLastNonEmpty: { * @see {@link setHeadNonEmpty} — replace the first element * * @category elements - * @since 2.0.0 + * @since 4.0.0 */ export declare const setLastNonEmpty: { /** * Replaces the last element of a non-empty array with a new value. * + * **When to use** + * + * Use when you already know the array is non-empty and the replacement value + * does not depend on the current last element. + * * **Example** (Setting the last element) * * ```ts @@ -3827,12 +4842,17 @@ export declare const setLastNonEmpty: { * @see {@link setHeadNonEmpty} — replace the first element * * @category elements - * @since 2.0.0 + * @since 4.0.0 */ (b: B): (self: NonEmptyReadonlyArray) => NonEmptyArray; /** * Replaces the last element of a non-empty array with a new value. * + * **When to use** + * + * Use when you already know the array is non-empty and the replacement value + * does not depend on the current last element. + * * **Example** (Setting the last element) * * ```ts @@ -3845,16 +4865,24 @@ export declare const setLastNonEmpty: { * @see {@link setHeadNonEmpty} — replace the first element * * @category elements - * @since 2.0.0 + * @since 4.0.0 */ (self: NonEmptyReadonlyArray, b: B): NonEmptyArray; }; /** - * Rotates an array by `n` steps. Positive `n` rotates left (front elements - * move to the back). + * Transforms an array by rotating it `n` steps. Positive `n` rotates right; negative `n` + * rotates left. + * + * **When to use** + * + * Use when elements should wrap around the end of the array rather than being + * dropped. * - * - Preserves `NonEmptyArray` in the return type. - * - Returns a copy for empty arrays or `n === 0`. + * **Details** + * + * `n` is rounded to the nearest integer before rotating. The return type + * preserves `NonEmptyArray`. Empty arrays, or rotations normalized to `0`, + * return a copy. * * **Example** (Rotating elements) * @@ -3864,16 +4892,27 @@ export declare const setLastNonEmpty: { * console.log(Array.rotate(["a", "b", "c", "d"], 2)) // ["c", "d", "a", "b"] * ``` * + * @see {@link take} for taking a fixed number of elements from the start + * @see {@link drop} for dropping a fixed number of elements from the start + * * @category elements * @since 2.0.0 */ export declare const rotate: { /** - * Rotates an array by `n` steps. Positive `n` rotates left (front elements - * move to the back). + * Transforms an array by rotating it `n` steps. Positive `n` rotates right; negative `n` + * rotates left. + * + * **When to use** + * + * Use when elements should wrap around the end of the array rather than being + * dropped. * - * - Preserves `NonEmptyArray` in the return type. - * - Returns a copy for empty arrays or `n === 0`. + * **Details** + * + * `n` is rounded to the nearest integer before rotating. The return type + * preserves `NonEmptyArray`. Empty arrays, or rotations normalized to `0`, + * return a copy. * * **Example** (Rotating elements) * @@ -3883,16 +4922,27 @@ export declare const rotate: { * console.log(Array.rotate(["a", "b", "c", "d"], 2)) // ["c", "d", "a", "b"] * ``` * + * @see {@link take} for taking a fixed number of elements from the start + * @see {@link drop} for dropping a fixed number of elements from the start + * * @category elements * @since 2.0.0 */ (n: number): >(self: S) => ReadonlyArray.With>; /** - * Rotates an array by `n` steps. Positive `n` rotates left (front elements - * move to the back). + * Transforms an array by rotating it `n` steps. Positive `n` rotates right; negative `n` + * rotates left. + * + * **When to use** + * + * Use when elements should wrap around the end of the array rather than being + * dropped. * - * - Preserves `NonEmptyArray` in the return type. - * - Returns a copy for empty arrays or `n === 0`. + * **Details** + * + * `n` is rounded to the nearest integer before rotating. The return type + * preserves `NonEmptyArray`. Empty arrays, or rotations normalized to `0`, + * return a copy. * * **Example** (Rotating elements) * @@ -3902,16 +4952,27 @@ export declare const rotate: { * console.log(Array.rotate(["a", "b", "c", "d"], 2)) // ["c", "d", "a", "b"] * ``` * + * @see {@link take} for taking a fixed number of elements from the start + * @see {@link drop} for dropping a fixed number of elements from the start + * * @category elements * @since 2.0.0 */ (self: NonEmptyReadonlyArray, n: number): NonEmptyArray; /** - * Rotates an array by `n` steps. Positive `n` rotates left (front elements - * move to the back). + * Transforms an array by rotating it `n` steps. Positive `n` rotates right; negative `n` + * rotates left. + * + * **When to use** + * + * Use when elements should wrap around the end of the array rather than being + * dropped. * - * - Preserves `NonEmptyArray` in the return type. - * - Returns a copy for empty arrays or `n === 0`. + * **Details** + * + * `n` is rounded to the nearest integer before rotating. The return type + * preserves `NonEmptyArray`. Empty arrays, or rotations normalized to `0`, + * return a copy. * * **Example** (Rotating elements) * @@ -3921,6 +4982,9 @@ export declare const rotate: { * console.log(Array.rotate(["a", "b", "c", "d"], 2)) // ["c", "d", "a", "b"] * ``` * + * @see {@link take} for taking a fixed number of elements from the start + * @see {@link drop} for dropping a fixed number of elements from the start + * * @category elements * @since 2.0.0 */ @@ -3929,6 +4993,11 @@ export declare const rotate: { /** * Returns a membership-test function using a custom equivalence. * + * **When to use** + * + * Use when checking membership with caller-provided equality instead of + * `Equal.equivalence()`. + * * **Example** (Custom equality check) * * ```ts @@ -3938,7 +5007,7 @@ export declare const rotate: { * console.log(pipe([1, 2, 3, 4], containsNumber(3))) // true * ``` * - * @see {@link contains} — uses default `Equal.equivalence()` + * @see {@link contains} for the `Equal.equivalence()` variant * * @category elements * @since 2.0.0 @@ -3948,9 +5017,14 @@ export declare const containsWith: (isEquivalent: (self: A, that: A) => boole (self: Iterable, a: A): boolean; }; /** - * Tests whether an array contains a value, using `Equal.equivalence()` for + * Checks whether an array contains a value, using `Equal.equivalence()` for * comparison. * + * **When to use** + * + * Use to check whether an iterable contains a value using Effect's default + * equality instead of providing a comparison function. + * * **Example** (Checking membership) * * ```ts @@ -3966,9 +5040,14 @@ export declare const containsWith: (isEquivalent: (self: A, that: A) => boole */ export declare const contains: { /** - * Tests whether an array contains a value, using `Equal.equivalence()` for + * Checks whether an array contains a value, using `Equal.equivalence()` for * comparison. * + * **When to use** + * + * Use to check whether an iterable contains a value using Effect's default + * equality instead of providing a comparison function. + * * **Example** (Checking membership) * * ```ts @@ -3984,9 +5063,14 @@ export declare const contains: { */ (a: A): (self: Iterable) => boolean; /** - * Tests whether an array contains a value, using `Equal.equivalence()` for + * Checks whether an array contains a value, using `Equal.equivalence()` for * comparison. * + * **When to use** + * + * Use to check whether an iterable contains a value using Effect's default + * equality instead of providing a comparison function. + * * **Example** (Checking membership) * * ```ts @@ -4003,13 +5087,18 @@ export declare const contains: { (self: Iterable, a: A): boolean; }; /** - * Repeatedly applies a function that consumes a prefix of the array and - * produces a value plus the remaining elements, collecting the values. + * Applies a function repeatedly to consume prefixes of the array and collect + * the values it produces. + * + * **When to use** * - * - The function receives a `NonEmptyReadonlyArray` and returns - * `[value, rest]`. - * - Continues until the remaining array is empty. - * - Useful for custom splitting/grouping logic. + * Use when you need custom grouping logic where each step returns both a value + * and the remaining input. + * + * **Details** + * + * The function receives a `NonEmptyReadonlyArray` and returns `[value, rest]`. + * Processing continues until the remaining array is empty. * * **Example** (Chopping an array) * @@ -4031,13 +5120,18 @@ export declare const contains: { */ export declare const chop: { /** - * Repeatedly applies a function that consumes a prefix of the array and - * produces a value plus the remaining elements, collecting the values. + * Applies a function repeatedly to consume prefixes of the array and collect + * the values it produces. + * + * **When to use** + * + * Use when you need custom grouping logic where each step returns both a value + * and the remaining input. * - * - The function receives a `NonEmptyReadonlyArray` and returns - * `[value, rest]`. - * - Continues until the remaining array is empty. - * - Useful for custom splitting/grouping logic. + * **Details** + * + * The function receives a `NonEmptyReadonlyArray` and returns `[value, rest]`. + * Processing continues until the remaining array is empty. * * **Example** (Chopping an array) * @@ -4059,13 +5153,18 @@ export declare const chop: { */ , B>(f: (as: NonEmptyReadonlyArray>) => readonly [B, ReadonlyArray>]): (self: S) => ReadonlyArray.With>; /** - * Repeatedly applies a function that consumes a prefix of the array and - * produces a value plus the remaining elements, collecting the values. + * Applies a function repeatedly to consume prefixes of the array and collect + * the values it produces. + * + * **When to use** + * + * Use when you need custom grouping logic where each step returns both a value + * and the remaining input. + * + * **Details** * - * - The function receives a `NonEmptyReadonlyArray` and returns - * `[value, rest]`. - * - Continues until the remaining array is empty. - * - Useful for custom splitting/grouping logic. + * The function receives a `NonEmptyReadonlyArray` and returns `[value, rest]`. + * Processing continues until the remaining array is empty. * * **Example** (Chopping an array) * @@ -4087,13 +5186,18 @@ export declare const chop: { */ (self: NonEmptyReadonlyArray, f: (as: NonEmptyReadonlyArray) => readonly [B, ReadonlyArray]): NonEmptyArray; /** - * Repeatedly applies a function that consumes a prefix of the array and - * produces a value plus the remaining elements, collecting the values. + * Applies a function repeatedly to consume prefixes of the array and collect + * the values it produces. * - * - The function receives a `NonEmptyReadonlyArray` and returns - * `[value, rest]`. - * - Continues until the remaining array is empty. - * - Useful for custom splitting/grouping logic. + * **When to use** + * + * Use when you need custom grouping logic where each step returns both a value + * and the remaining input. + * + * **Details** + * + * The function receives a `NonEmptyReadonlyArray` and returns `[value, rest]`. + * Processing continues until the remaining array is empty. * * **Example** (Chopping an array) * @@ -4118,8 +5222,14 @@ export declare const chop: { /** * Splits an iterable into two arrays at the given index. * - * - `n` can be `0` (all elements in the second array). - * - `n` is floored to an integer. + * **When to use** + * + * Use to divide an array into a prefix and suffix at a specific position. + * + * **Details** + * + * `n` can be `0`, in which case all elements are placed in the second array. + * The index is floored to an integer. * * **Example** (Splitting at an index) * @@ -4139,8 +5249,14 @@ export declare const splitAt: { /** * Splits an iterable into two arrays at the given index. * - * - `n` can be `0` (all elements in the second array). - * - `n` is floored to an integer. + * **When to use** + * + * Use to divide an array into a prefix and suffix at a specific position. + * + * **Details** + * + * `n` can be `0`, in which case all elements are placed in the second array. + * The index is floored to an integer. * * **Example** (Splitting at an index) * @@ -4160,8 +5276,14 @@ export declare const splitAt: { /** * Splits an iterable into two arrays at the given index. * - * - `n` can be `0` (all elements in the second array). - * - `n` is floored to an integer. + * **When to use** + * + * Use to divide an array into a prefix and suffix at a specific position. + * + * **Details** + * + * `n` can be `0`, in which case all elements are placed in the second array. + * The index is floored to an integer. * * **Example** (Splitting at an index) * @@ -4183,6 +5305,11 @@ export declare const splitAt: { * Splits a non-empty array into two parts at the given index. The first part * is guaranteed to be non-empty (`n` is clamped to >= 1). * + * **When to use** + * + * Use when downstream code requires the left side of the split to contain at + * least one element. + * * **Example** (Splitting a non-empty array) * * ```ts @@ -4195,13 +5322,18 @@ export declare const splitAt: { * @see {@link splitAt} — for possibly-empty arrays * * @category splitting - * @since 2.0.0 + * @since 4.0.0 */ export declare const splitAtNonEmpty: { /** * Splits a non-empty array into two parts at the given index. The first part * is guaranteed to be non-empty (`n` is clamped to >= 1). * + * **When to use** + * + * Use when downstream code requires the left side of the split to contain at + * least one element. + * * **Example** (Splitting a non-empty array) * * ```ts @@ -4214,13 +5346,18 @@ export declare const splitAtNonEmpty: { * @see {@link splitAt} — for possibly-empty arrays * * @category splitting - * @since 2.0.0 + * @since 4.0.0 */ (n: number): (self: NonEmptyReadonlyArray) => [beforeIndex: NonEmptyArray, fromIndex: Array]; /** * Splits a non-empty array into two parts at the given index. The first part * is guaranteed to be non-empty (`n` is clamped to >= 1). * + * **When to use** + * + * Use when downstream code requires the left side of the split to contain at + * least one element. + * * **Example** (Splitting a non-empty array) * * ```ts @@ -4233,15 +5370,20 @@ export declare const splitAtNonEmpty: { * @see {@link splitAt} — for possibly-empty arrays * * @category splitting - * @since 2.0.0 + * @since 4.0.0 */ (self: NonEmptyReadonlyArray, n: number): [beforeIndex: NonEmptyArray, fromIndex: Array]; }; /** * Splits an iterable into `n` roughly equal-sized chunks. * - * - Uses `chunksOf(ceil(length / n))` internally. - * - The last chunk may be shorter. + * **When to use** + * + * Use to distribute elements across a fixed number of groups, such as when splitting work across threads. + * + * **Details** + * + * Uses `chunksOf(ceil(length / n))` internally. The last chunk may be shorter. * * **Example** (Splitting into groups) * @@ -4253,15 +5395,20 @@ export declare const splitAtNonEmpty: { * * @see {@link chunksOf} — split into fixed-size chunks * - * @since 2.0.0 * @category splitting + * @since 2.0.0 */ export declare const split: { /** * Splits an iterable into `n` roughly equal-sized chunks. * - * - Uses `chunksOf(ceil(length / n))` internally. - * - The last chunk may be shorter. + * **When to use** + * + * Use to distribute elements across a fixed number of groups, such as when splitting work across threads. + * + * **Details** + * + * Uses `chunksOf(ceil(length / n))` internally. The last chunk may be shorter. * * **Example** (Splitting into groups) * @@ -4273,15 +5420,20 @@ export declare const split: { * * @see {@link chunksOf} — split into fixed-size chunks * - * @since 2.0.0 * @category splitting + * @since 2.0.0 */ (n: number): (self: Iterable) => Array>; /** * Splits an iterable into `n` roughly equal-sized chunks. * - * - Uses `chunksOf(ceil(length / n))` internally. - * - The last chunk may be shorter. + * **When to use** + * + * Use to distribute elements across a fixed number of groups, such as when splitting work across threads. + * + * **Details** + * + * Uses `chunksOf(ceil(length / n))` internally. The last chunk may be shorter. * * **Example** (Splitting into groups) * @@ -4293,8 +5445,8 @@ export declare const split: { * * @see {@link chunksOf} — split into fixed-size chunks * - * @since 2.0.0 * @category splitting + * @since 2.0.0 */ (self: Iterable, n: number): Array>; }; @@ -4302,6 +5454,11 @@ export declare const split: { * Splits an iterable at the first element matching the predicate. The matching * element is included in the second array. * + * **When to use** + * + * Use when you need to split an array at the first element that marks a + * condition boundary. + * * **Example** (Splitting at a condition) * * ```ts @@ -4321,6 +5478,11 @@ export declare const splitWhere: { * Splits an iterable at the first element matching the predicate. The matching * element is included in the second array. * + * **When to use** + * + * Use when you need to split an array at the first element that marks a + * condition boundary. + * * **Example** (Splitting at a condition) * * ```ts @@ -4340,6 +5502,11 @@ export declare const splitWhere: { * Splits an iterable at the first element matching the predicate. The matching * element is included in the second array. * + * **When to use** + * + * Use when you need to split an array at the first element that marks a + * condition boundary. + * * **Example** (Splitting at a condition) * * ```ts @@ -4359,8 +5526,15 @@ export declare const splitWhere: { /** * Creates a shallow copy of an array. * - * - Preserves `NonEmptyArray` in the return type. - * - Useful when you need a distinct reference (e.g. before mutating). + * **When to use** + * + * Use to create a distinct array reference for an existing array, for example + * before mutating the returned array. + * + * **Details** + * + * The return type preserves `NonEmptyArray`. Use this when you need a distinct + * reference, for example before mutating the returned array. * * **Example** (Copying an array) * @@ -4382,8 +5556,15 @@ export declare const copy: { /** * Creates a shallow copy of an array. * - * - Preserves `NonEmptyArray` in the return type. - * - Useful when you need a distinct reference (e.g. before mutating). + * **When to use** + * + * Use to create a distinct array reference for an existing array, for example + * before mutating the returned array. + * + * **Details** + * + * The return type preserves `NonEmptyArray`. Use this when you need a distinct + * reference, for example before mutating the returned array. * * **Example** (Copying an array) * @@ -4405,8 +5586,15 @@ export declare const copy: { /** * Creates a shallow copy of an array. * - * - Preserves `NonEmptyArray` in the return type. - * - Useful when you need a distinct reference (e.g. before mutating). + * **When to use** + * + * Use to create a distinct array reference for an existing array, for example + * before mutating the returned array. + * + * **Details** + * + * The return type preserves `NonEmptyArray`. Use this when you need a distinct + * reference, for example before mutating the returned array. * * **Example** (Copying an array) * @@ -4430,7 +5618,13 @@ export declare const copy: { * Pads or truncates an array to exactly `n` elements, filling with `fill` * if the array is shorter, or slicing if longer. * - * - Returns an empty array when `n <= 0`. + * **When to use** + * + * Use to ensure an array has a specific length, padding with a fill value or truncating as needed. + * + * **Details** + * + * Returns an empty array when `n <= 0`. * * **Example** (Padding an array) * @@ -4451,7 +5645,13 @@ export declare const pad: { * Pads or truncates an array to exactly `n` elements, filling with `fill` * if the array is shorter, or slicing if longer. * - * - Returns an empty array when `n <= 0`. + * **When to use** + * + * Use to ensure an array has a specific length, padding with a fill value or truncating as needed. + * + * **Details** + * + * Returns an empty array when `n <= 0`. * * **Example** (Padding an array) * @@ -4472,7 +5672,13 @@ export declare const pad: { * Pads or truncates an array to exactly `n` elements, filling with `fill` * if the array is shorter, or slicing if longer. * - * - Returns an empty array when `n <= 0`. + * **When to use** + * + * Use to ensure an array has a specific length, padding with a fill value or truncating as needed. + * + * **Details** + * + * Returns an empty array when `n <= 0`. * * **Example** (Padding an array) * @@ -4494,9 +5700,15 @@ export declare const pad: { * Splits an iterable into chunks of length `n`. The last chunk may be shorter * if `n` does not evenly divide the length. * - * - `chunksOf(n)([])` is `[]`, not `[[]]`. - * - Each chunk is a `NonEmptyArray`. - * - Preserves `NonEmptyArray` in the outer return type. + * **When to use** + * + * Use to divide an iterable into a new array of non-overlapping chunks with a + * maximum chunk size. + * + * **Details** + * + * `chunksOf(n)([])` is `[]`, not `[[]]`. Each chunk is a `NonEmptyArray`, and + * the outer return type preserves `NonEmptyArray`. * * **Example** (Chunking an array) * @@ -4517,9 +5729,15 @@ export declare const chunksOf: { * Splits an iterable into chunks of length `n`. The last chunk may be shorter * if `n` does not evenly divide the length. * - * - `chunksOf(n)([])` is `[]`, not `[[]]`. - * - Each chunk is a `NonEmptyArray`. - * - Preserves `NonEmptyArray` in the outer return type. + * **When to use** + * + * Use to divide an iterable into a new array of non-overlapping chunks with a + * maximum chunk size. + * + * **Details** + * + * `chunksOf(n)([])` is `[]`, not `[[]]`. Each chunk is a `NonEmptyArray`, and + * the outer return type preserves `NonEmptyArray`. * * **Example** (Chunking an array) * @@ -4540,9 +5758,15 @@ export declare const chunksOf: { * Splits an iterable into chunks of length `n`. The last chunk may be shorter * if `n` does not evenly divide the length. * - * - `chunksOf(n)([])` is `[]`, not `[[]]`. - * - Each chunk is a `NonEmptyArray`. - * - Preserves `NonEmptyArray` in the outer return type. + * **When to use** + * + * Use to divide an iterable into a new array of non-overlapping chunks with a + * maximum chunk size. + * + * **Details** + * + * `chunksOf(n)([])` is `[]`, not `[[]]`. Each chunk is a `NonEmptyArray`, and + * the outer return type preserves `NonEmptyArray`. * * **Example** (Chunking an array) * @@ -4563,9 +5787,15 @@ export declare const chunksOf: { * Splits an iterable into chunks of length `n`. The last chunk may be shorter * if `n` does not evenly divide the length. * - * - `chunksOf(n)([])` is `[]`, not `[[]]`. - * - Each chunk is a `NonEmptyArray`. - * - Preserves `NonEmptyArray` in the outer return type. + * **When to use** + * + * Use to divide an iterable into a new array of non-overlapping chunks with a + * maximum chunk size. + * + * **Details** + * + * `chunksOf(n)([])` is `[]`, not `[[]]`. Each chunk is a `NonEmptyArray`, and + * the outer return type preserves `NonEmptyArray`. * * **Example** (Chunking an array) * @@ -4586,8 +5816,14 @@ export declare const chunksOf: { /** * Creates overlapping sliding windows of size `n`. * - * - Returns an empty array if `n <= 0` or the array has fewer than `n` elements. - * - Each window is a tuple of exactly `n` elements. + * **When to use** + * + * Use to process sequences with a moving window, such as for computing running averages or detecting patterns. + * + * **Details** + * + * Returns an empty array if `n <= 0` or the array has fewer than `n` elements. + * Each window is a tuple of exactly `n` elements. * * **Example** (Sliding windows) * @@ -4607,8 +5843,14 @@ export declare const window: { /** * Creates overlapping sliding windows of size `n`. * - * - Returns an empty array if `n <= 0` or the array has fewer than `n` elements. - * - Each window is a tuple of exactly `n` elements. + * **When to use** + * + * Use to process sequences with a moving window, such as for computing running averages or detecting patterns. + * + * **Details** + * + * Returns an empty array if `n <= 0` or the array has fewer than `n` elements. + * Each window is a tuple of exactly `n` elements. * * **Example** (Sliding windows) * @@ -4628,8 +5870,14 @@ export declare const window: { /** * Creates overlapping sliding windows of size `n`. * - * - Returns an empty array if `n <= 0` or the array has fewer than `n` elements. - * - Each window is a tuple of exactly `n` elements. + * **When to use** + * + * Use to process sequences with a moving window, such as for computing running averages or detecting patterns. + * + * **Details** + * + * Returns an empty array if `n <= 0` or the array has fewer than `n` elements. + * Each window is a tuple of exactly `n` elements. * * **Example** (Sliding windows) * @@ -4650,8 +5898,15 @@ export declare const window: { /** * Groups consecutive equal elements using a custom equivalence function. * - * - Only groups **adjacent** elements — non-adjacent duplicates stay separate. - * - Requires a `NonEmptyReadonlyArray`. + * **When to use** + * + * Use when you already have a non-empty array arranged so matching elements are + * adjacent and need a custom equivalence function. + * + * **Details** + * + * Only adjacent elements are grouped. Non-adjacent duplicates stay separate. + * Requires a `NonEmptyReadonlyArray`. * * **Example** (Grouping consecutive equal elements) * @@ -4662,8 +5917,8 @@ export declare const window: { * // [["a", "a"], ["b", "b", "b"], ["c"], ["a"]] * ``` * - * @see {@link group} — uses default equality - * @see {@link groupBy} — group by a key function into a record + * @see {@link group} for grouping adjacent elements with `Equal.equivalence()` + * @see {@link groupBy} for grouping all elements into a record by key, regardless of adjacency * * @category grouping * @since 2.0.0 @@ -4672,8 +5927,15 @@ export declare const groupWith: { /** * Groups consecutive equal elements using a custom equivalence function. * - * - Only groups **adjacent** elements — non-adjacent duplicates stay separate. - * - Requires a `NonEmptyReadonlyArray`. + * **When to use** + * + * Use when you already have a non-empty array arranged so matching elements are + * adjacent and need a custom equivalence function. + * + * **Details** + * + * Only adjacent elements are grouped. Non-adjacent duplicates stay separate. + * Requires a `NonEmptyReadonlyArray`. * * **Example** (Grouping consecutive equal elements) * @@ -4684,8 +5946,8 @@ export declare const groupWith: { * // [["a", "a"], ["b", "b", "b"], ["c"], ["a"]] * ``` * - * @see {@link group} — uses default equality - * @see {@link groupBy} — group by a key function into a record + * @see {@link group} for grouping adjacent elements with `Equal.equivalence()` + * @see {@link groupBy} for grouping all elements into a record by key, regardless of adjacency * * @category grouping * @since 2.0.0 @@ -4694,8 +5956,15 @@ export declare const groupWith: { /** * Groups consecutive equal elements using a custom equivalence function. * - * - Only groups **adjacent** elements — non-adjacent duplicates stay separate. - * - Requires a `NonEmptyReadonlyArray`. + * **When to use** + * + * Use when you already have a non-empty array arranged so matching elements are + * adjacent and need a custom equivalence function. + * + * **Details** + * + * Only adjacent elements are grouped. Non-adjacent duplicates stay separate. + * Requires a `NonEmptyReadonlyArray`. * * **Example** (Grouping consecutive equal elements) * @@ -4706,8 +5975,8 @@ export declare const groupWith: { * // [["a", "a"], ["b", "b", "b"], ["c"], ["a"]] * ``` * - * @see {@link group} — uses default equality - * @see {@link groupBy} — group by a key function into a record + * @see {@link group} for grouping adjacent elements with `Equal.equivalence()` + * @see {@link groupBy} for grouping all elements into a record by key, regardless of adjacency * * @category grouping * @since 2.0.0 @@ -4717,7 +5986,14 @@ export declare const groupWith: { /** * Groups consecutive equal elements using `Equal.equivalence()`. * - * - Only groups **adjacent** elements. + * **When to use** + * + * Use when you already have adjacent equal values and Effect's default equality + * is the right comparison. + * + * **Details** + * + * Only adjacent elements are grouped. * * **Example** (Grouping adjacent equal elements) * @@ -4738,9 +6014,14 @@ export declare const group: (self: NonEmptyReadonlyArray) => NonEmptyArray * Groups elements into a record by a key-returning function. Each key maps * to a `NonEmptyArray` of elements that produced that key. * - * - Unlike {@link group}/{@link groupWith}, elements do not need to be - * adjacent to be grouped together. - * - Key function must return a `string` or `symbol`. + * **When to use** + * + * Use to build buckets of elements indexed by a computed string or symbol key. + * + * **Details** + * + * Unlike `group` and `groupWith`, elements do not need to be adjacent to be + * grouped together. The key function must return a `string` or `symbol`. * * **Example** (Grouping by a property) * @@ -4769,9 +6050,14 @@ export declare const groupBy: { * Groups elements into a record by a key-returning function. Each key maps * to a `NonEmptyArray` of elements that produced that key. * - * - Unlike {@link group}/{@link groupWith}, elements do not need to be - * adjacent to be grouped together. - * - Key function must return a `string` or `symbol`. + * **When to use** + * + * Use to build buckets of elements indexed by a computed string or symbol key. + * + * **Details** + * + * Unlike `group` and `groupWith`, elements do not need to be adjacent to be + * grouped together. The key function must return a `string` or `symbol`. * * **Example** (Grouping by a property) * @@ -4800,9 +6086,14 @@ export declare const groupBy: { * Groups elements into a record by a key-returning function. Each key maps * to a `NonEmptyArray` of elements that produced that key. * - * - Unlike {@link group}/{@link groupWith}, elements do not need to be - * adjacent to be grouped together. - * - Key function must return a `string` or `symbol`. + * **When to use** + * + * Use to build buckets of elements indexed by a computed string or symbol key. + * + * **Details** + * + * Unlike `group` and `groupWith`, elements do not need to be adjacent to be + * grouped together. The key function must return a `string` or `symbol`. * * **Example** (Grouping by a property) * @@ -4832,6 +6123,11 @@ export declare const groupBy: { * Computes the union of two arrays using a custom equivalence, removing * duplicates. * + * **When to use** + * + * Use when you need the union of two arrays but duplicate detection must use a + * custom equivalence instead of the default `Equal.equivalence()`. + * * **Example** (Union with custom equality) * * ```ts @@ -4840,9 +6136,9 @@ export declare const groupBy: { * console.log(Array.unionWith([1, 2], [2, 3], (a, b) => a === b)) // [1, 2, 3] * ``` * - * @see {@link union} — uses default equality - * @see {@link intersection} — elements in both arrays - * @see {@link difference} — elements only in the first array + * @see {@link union} for the `Equal.equivalence()` variant + * @see {@link intersectionWith} for keeping elements present in both arrays + * @see {@link differenceWith} for keeping elements present only in the first array * * @category elements * @since 2.0.0 @@ -4852,6 +6148,11 @@ export declare const unionWith: { * Computes the union of two arrays using a custom equivalence, removing * duplicates. * + * **When to use** + * + * Use when you need the union of two arrays but duplicate detection must use a + * custom equivalence instead of the default `Equal.equivalence()`. + * * **Example** (Union with custom equality) * * ```ts @@ -4860,9 +6161,9 @@ export declare const unionWith: { * console.log(Array.unionWith([1, 2], [2, 3], (a, b) => a === b)) // [1, 2, 3] * ``` * - * @see {@link union} — uses default equality - * @see {@link intersection} — elements in both arrays - * @see {@link difference} — elements only in the first array + * @see {@link union} for the `Equal.equivalence()` variant + * @see {@link intersectionWith} for keeping elements present in both arrays + * @see {@link differenceWith} for keeping elements present only in the first array * * @category elements * @since 2.0.0 @@ -4872,6 +6173,11 @@ export declare const unionWith: { * Computes the union of two arrays using a custom equivalence, removing * duplicates. * + * **When to use** + * + * Use when you need the union of two arrays but duplicate detection must use a + * custom equivalence instead of the default `Equal.equivalence()`. + * * **Example** (Union with custom equality) * * ```ts @@ -4880,9 +6186,9 @@ export declare const unionWith: { * console.log(Array.unionWith([1, 2], [2, 3], (a, b) => a === b)) // [1, 2, 3] * ``` * - * @see {@link union} — uses default equality - * @see {@link intersection} — elements in both arrays - * @see {@link difference} — elements only in the first array + * @see {@link union} for the `Equal.equivalence()` variant + * @see {@link intersectionWith} for keeping elements present in both arrays + * @see {@link differenceWith} for keeping elements present only in the first array * * @category elements * @since 2.0.0 @@ -4892,6 +6198,11 @@ export declare const unionWith: { * Computes the union of two arrays using a custom equivalence, removing * duplicates. * + * **When to use** + * + * Use when you need the union of two arrays but duplicate detection must use a + * custom equivalence instead of the default `Equal.equivalence()`. + * * **Example** (Union with custom equality) * * ```ts @@ -4900,9 +6211,9 @@ export declare const unionWith: { * console.log(Array.unionWith([1, 2], [2, 3], (a, b) => a === b)) // [1, 2, 3] * ``` * - * @see {@link union} — uses default equality - * @see {@link intersection} — elements in both arrays - * @see {@link difference} — elements only in the first array + * @see {@link union} for the `Equal.equivalence()` variant + * @see {@link intersectionWith} for keeping elements present in both arrays + * @see {@link differenceWith} for keeping elements present only in the first array * * @category elements * @since 2.0.0 @@ -4912,6 +6223,11 @@ export declare const unionWith: { * Computes the union of two arrays using a custom equivalence, removing * duplicates. * + * **When to use** + * + * Use when you need the union of two arrays but duplicate detection must use a + * custom equivalence instead of the default `Equal.equivalence()`. + * * **Example** (Union with custom equality) * * ```ts @@ -4920,9 +6236,9 @@ export declare const unionWith: { * console.log(Array.unionWith([1, 2], [2, 3], (a, b) => a === b)) // [1, 2, 3] * ``` * - * @see {@link union} — uses default equality - * @see {@link intersection} — elements in both arrays - * @see {@link difference} — elements only in the first array + * @see {@link union} for the `Equal.equivalence()` variant + * @see {@link intersectionWith} for keeping elements present in both arrays + * @see {@link differenceWith} for keeping elements present only in the first array * * @category elements * @since 2.0.0 @@ -5034,6 +6350,11 @@ export declare const union: { * Computes the intersection of two arrays using a custom equivalence. Order is * determined by the first array. * + * **When to use** + * + * Use when you need to keep only values present in both arrays and equality + * must be defined by a custom comparator, such as matching objects by id. + * * **Example** (Intersection with custom equality) * * ```ts @@ -5045,9 +6366,9 @@ export declare const union: { * console.log(Array.intersectionWith(isEquivalent)(array2)(array1)) // [{ id: 1 }, { id: 3 }] * ``` * - * @see {@link intersection} — uses default equality - * @see {@link union} — elements in either array - * @see {@link difference} — elements only in the first array + * @see {@link intersection} for the `Equal.equivalence()` variant + * @see {@link unionWith} for keeping values from either array with custom equality + * @see {@link differenceWith} for keeping values only from the first array with custom equality * * @category elements * @since 2.0.0 @@ -5060,6 +6381,11 @@ export declare const intersectionWith: (isEquivalent: (self: A, that: A) => b * Computes the intersection of two arrays using `Equal.equivalence()`. Order is * determined by the first array. * + * **When to use** + * + * Use when Effect equality is the right membership test and you want to keep + * values present in both inputs while preserving the first input's order. + * * **Example** (Array intersection) * * ```ts @@ -5080,6 +6406,11 @@ export declare const intersection: { * Computes the intersection of two arrays using `Equal.equivalence()`. Order is * determined by the first array. * + * **When to use** + * + * Use when Effect equality is the right membership test and you want to keep + * values present in both inputs while preserving the first input's order. + * * **Example** (Array intersection) * * ```ts @@ -5100,6 +6431,11 @@ export declare const intersection: { * Computes the intersection of two arrays using `Equal.equivalence()`. Order is * determined by the first array. * + * **When to use** + * + * Use when Effect equality is the right membership test and you want to keep + * values present in both inputs while preserving the first input's order. + * * **Example** (Array intersection) * * ```ts @@ -5121,6 +6457,11 @@ export declare const intersection: { * Computes elements in the first array that are not in the second, using a * custom equivalence. * + * **When to use** + * + * Use when you need to keep only values from the first array and equality must + * be defined by a custom comparator, such as matching objects by id. + * * **Example** (Difference with custom equality) * * ```ts @@ -5130,9 +6471,9 @@ export declare const intersection: { * console.log(diff) // [1] * ``` * - * @see {@link difference} — uses default equality - * @see {@link union} — elements in either array - * @see {@link intersection} — elements in both arrays + * @see {@link difference} for the `Equal.equivalence()` variant + * @see {@link unionWith} for keeping values from either array with custom equality + * @see {@link intersectionWith} for keeping values present in both arrays with custom equality * * @category elements * @since 2.0.0 @@ -5145,6 +6486,11 @@ export declare const differenceWith: (isEquivalent: (self: A, that: A) => boo * Computes elements in the first array that are not in the second, using * `Equal.equivalence()`. * + * **When to use** + * + * Use when you need to keep values from the first array that are absent from + * the second and the default `Equal.equivalence()` comparison is appropriate. + * * **Example** (Array difference) * * ```ts @@ -5165,6 +6511,11 @@ export declare const difference: { * Computes elements in the first array that are not in the second, using * `Equal.equivalence()`. * + * **When to use** + * + * Use when you need to keep values from the first array that are absent from + * the second and the default `Equal.equivalence()` comparison is appropriate. + * * **Example** (Array difference) * * ```ts @@ -5185,6 +6536,11 @@ export declare const difference: { * Computes elements in the first array that are not in the second, using * `Equal.equivalence()`. * + * **When to use** + * + * Use when you need to keep values from the first array that are absent from + * the second and the default `Equal.equivalence()` comparison is appropriate. + * * **Example** (Array difference) * * ```ts @@ -5205,6 +6561,10 @@ export declare const difference: { /** * Creates an empty array. * + * **When to use** + * + * Use to create a typed empty array without allocating placeholder elements. + * * **Example** (Creating an empty array) * * ```ts @@ -5243,14 +6603,14 @@ export declare const of: (a: A) => NonEmptyArray; * Utility types for working with `ReadonlyArray` at the type level. Use these * to infer element types, preserve non-emptiness, and flatten nested arrays. * - * @category types * @since 2.0.0 */ export declare namespace ReadonlyArray { /** * Infers the element type of an iterable. * - * @example + * **Example** (Inferring an element type) + * * ```ts * import type { Array } from "effect" * @@ -5265,7 +6625,8 @@ export declare namespace ReadonlyArray { /** * Constructs an array type preserving non-emptiness. * - * @example + * **Example** (Preserving non-emptiness) + * * ```ts * import type { Array } from "effect" * @@ -5280,7 +6641,8 @@ export declare namespace ReadonlyArray { /** * Creates a non-empty array if either input is non-empty. * - * @example + * **Example** (Preserving non-emptiness from either input) + * * ```ts * import type { Array } from "effect" * @@ -5299,7 +6661,8 @@ export declare namespace ReadonlyArray { /** * Creates a non-empty array only if both inputs are non-empty. * - * @example + * **Example** (Preserving non-emptiness from both inputs) + * * ```ts * import type { Array } from "effect" * @@ -5318,7 +6681,8 @@ export declare namespace ReadonlyArray { /** * Flattens a nested array type. * - * @example + * **Example** (Flattening nested array types) + * * ```ts * import type { Array } from "effect" * @@ -5335,8 +6699,14 @@ export declare namespace ReadonlyArray { /** * Transforms each element using a function, returning a new array. * - * - The function receives `(element, index)`. - * - Preserves `NonEmptyArray` in the return type. + * **When to use** + * + * Use to transform each element independently while preserving the array shape. + * + * **Details** + * + * The function receives `(element, index)`. The return type preserves + * `NonEmptyArray`. * * **Example** (Doubling values) * @@ -5355,8 +6725,14 @@ export declare const map: { /** * Transforms each element using a function, returning a new array. * - * - The function receives `(element, index)`. - * - Preserves `NonEmptyArray` in the return type. + * **When to use** + * + * Use to transform each element independently while preserving the array shape. + * + * **Details** + * + * The function receives `(element, index)`. The return type preserves + * `NonEmptyArray`. * * **Example** (Doubling values) * @@ -5375,8 +6751,14 @@ export declare const map: { /** * Transforms each element using a function, returning a new array. * - * - The function receives `(element, index)`. - * - Preserves `NonEmptyArray` in the return type. + * **When to use** + * + * Use to transform each element independently while preserving the array shape. + * + * **Details** + * + * The function receives `(element, index)`. The return type preserves + * `NonEmptyArray`. * * **Example** (Doubling values) * @@ -5396,8 +6778,15 @@ export declare const map: { /** * Maps each element to an array and flattens the results into a single array. * - * - The function receives `(element, index)`. - * - Returns `NonEmptyArray` when both input and mapped arrays are non-empty. + * **When to use** + * + * Use to map each array element to zero or more values and concatenate the + * results in one pass. + * + * **Details** + * + * The function receives `(element, index)`. This returns `NonEmptyArray` when + * both the input and mapped arrays are non-empty. * * **Example** (FlatMapping an array) * @@ -5417,8 +6806,15 @@ export declare const flatMap: { /** * Maps each element to an array and flattens the results into a single array. * - * - The function receives `(element, index)`. - * - Returns `NonEmptyArray` when both input and mapped arrays are non-empty. + * **When to use** + * + * Use to map each array element to zero or more values and concatenate the + * results in one pass. + * + * **Details** + * + * The function receives `(element, index)`. This returns `NonEmptyArray` when + * both the input and mapped arrays are non-empty. * * **Example** (FlatMapping an array) * @@ -5438,8 +6834,15 @@ export declare const flatMap: { /** * Maps each element to an array and flattens the results into a single array. * - * - The function receives `(element, index)`. - * - Returns `NonEmptyArray` when both input and mapped arrays are non-empty. + * **When to use** + * + * Use to map each array element to zero or more values and concatenate the + * results in one pass. + * + * **Details** + * + * The function receives `(element, index)`. This returns `NonEmptyArray` when + * both the input and mapped arrays are non-empty. * * **Example** (FlatMapping an array) * @@ -5459,8 +6862,15 @@ export declare const flatMap: { /** * Maps each element to an array and flattens the results into a single array. * - * - The function receives `(element, index)`. - * - Returns `NonEmptyArray` when both input and mapped arrays are non-empty. + * **When to use** + * + * Use to map each array element to zero or more values and concatenate the + * results in one pass. + * + * **Details** + * + * The function receives `(element, index)`. This returns `NonEmptyArray` when + * both the input and mapped arrays are non-empty. * * **Example** (FlatMapping an array) * @@ -5481,6 +6891,11 @@ export declare const flatMap: { /** * Flattens a nested array of arrays into a single array. * + * **When to use** + * + * Use to collapse one level of nested arrays when no per-element mapping is + * needed. + * * **Example** (Flattening nested arrays) * * ```ts @@ -5498,6 +6913,11 @@ export declare const flatten: > /** * Extracts all `Some` values from an iterable of `Option`s, discarding `None`s. * + * **When to use** + * + * Use to collect only present values from an iterable of `Option` values while + * discarding `None` values. + * * **Example** (Extracting Some values) * * ```ts @@ -5517,6 +6937,11 @@ export declare const getSomes: >, X = any>(s * Extracts all failure values from an iterable of `Result`s, discarding * successes. * + * **When to use** + * + * Use when you can drop the success channel and only need the failure + * payloads, not the original result wrappers. + * * **Example** (Extracting failures) * * ```ts @@ -5530,13 +6955,18 @@ export declare const getSomes: >, X = any>(s * @see {@link separate} — split into failures and successes * * @category filtering - * @since 2.0.0 + * @since 4.0.0 */ export declare const getFailures: >>(self: T) => Array>>; /** * Extracts all success values from an iterable of `Result`s, discarding * failures. * + * **When to use** + * + * Use when you can drop the failure channel and only need the success + * payloads, not the original result wrappers. + * * **Example** (Extracting successes) * * ```ts @@ -5550,14 +6980,20 @@ export declare const getFailures: >>( * @see {@link separate} — split into failures and successes * * @category filtering - * @since 2.0.0 + * @since 4.0.0 */ export declare const getSuccesses: >>(self: T) => Array>>; /** * Keeps transformed values for elements where a `Filter` succeeds. * - * - The filter receives `(element, index)`. - * - Failures are discarded. + * **When to use** + * + * Use to filter an iterable with a `Result`-returning transformation while + * discarding failures. + * + * **Details** + * + * The filter receives `(element, index)`. Failures are discarded. * * **Example** (Filter and transform) * @@ -5569,16 +7005,23 @@ export declare const getSuccesses: >> * ``` * * @see {@link filter} — keep original elements matching a predicate + * @see {@link partition} for keeping both failures and successes * * @category filtering - * @since 4.0.0 + * @since 2.0.0 */ export declare const filterMap: { /** * Keeps transformed values for elements where a `Filter` succeeds. * - * - The filter receives `(element, index)`. - * - Failures are discarded. + * **When to use** + * + * Use to filter an iterable with a `Result`-returning transformation while + * discarding failures. + * + * **Details** + * + * The filter receives `(element, index)`. Failures are discarded. * * **Example** (Filter and transform) * @@ -5590,16 +7033,23 @@ export declare const filterMap: { * ``` * * @see {@link filter} — keep original elements matching a predicate + * @see {@link partition} for keeping both failures and successes * * @category filtering - * @since 4.0.0 + * @since 2.0.0 */ (f: (input: NoInfer, i: number) => Result.Result): (self: Iterable) => Array; /** * Keeps transformed values for elements where a `Filter` succeeds. * - * - The filter receives `(element, index)`. - * - Failures are discarded. + * **When to use** + * + * Use to filter an iterable with a `Result`-returning transformation while + * discarding failures. + * + * **Details** + * + * The filter receives `(element, index)`. Failures are discarded. * * **Example** (Filter and transform) * @@ -5611,17 +7061,25 @@ export declare const filterMap: { * ``` * * @see {@link filter} — keep original elements matching a predicate + * @see {@link partition} for keeping both failures and successes * * @category filtering - * @since 4.0.0 + * @since 2.0.0 */ (self: Iterable, f: (input: A, i: number) => Result.Result): Array; }; /** * Keeps only elements satisfying a predicate (or refinement). * - * - The predicate receives `(element, index)`. - * - Supports refinements for type narrowing. + * **When to use** + * + * Use to filter an iterable into a new array of original elements that satisfy + * a boolean predicate or refinement. + * + * **Details** + * + * The predicate receives `(element, index)`. Refinements are supported for type + * narrowing. * * **Example** (Filtering even numbers) * @@ -5632,6 +7090,7 @@ export declare const filterMap: { * ``` * * @see {@link partition} — split into matching and non-matching + * @see {@link filterMap} for transforming while filtering * * @category filtering * @since 2.0.0 @@ -5640,8 +7099,15 @@ export declare const filter: { /** * Keeps only elements satisfying a predicate (or refinement). * - * - The predicate receives `(element, index)`. - * - Supports refinements for type narrowing. + * **When to use** + * + * Use to filter an iterable into a new array of original elements that satisfy + * a boolean predicate or refinement. + * + * **Details** + * + * The predicate receives `(element, index)`. Refinements are supported for type + * narrowing. * * **Example** (Filtering even numbers) * @@ -5652,6 +7118,7 @@ export declare const filter: { * ``` * * @see {@link partition} — split into matching and non-matching + * @see {@link filterMap} for transforming while filtering * * @category filtering * @since 2.0.0 @@ -5660,8 +7127,15 @@ export declare const filter: { /** * Keeps only elements satisfying a predicate (or refinement). * - * - The predicate receives `(element, index)`. - * - Supports refinements for type narrowing. + * **When to use** + * + * Use to filter an iterable into a new array of original elements that satisfy + * a boolean predicate or refinement. + * + * **Details** + * + * The predicate receives `(element, index)`. Refinements are supported for type + * narrowing. * * **Example** (Filtering even numbers) * @@ -5672,6 +7146,7 @@ export declare const filter: { * ``` * * @see {@link partition} — split into matching and non-matching + * @see {@link filterMap} for transforming while filtering * * @category filtering * @since 2.0.0 @@ -5680,8 +7155,15 @@ export declare const filter: { /** * Keeps only elements satisfying a predicate (or refinement). * - * - The predicate receives `(element, index)`. - * - Supports refinements for type narrowing. + * **When to use** + * + * Use to filter an iterable into a new array of original elements that satisfy + * a boolean predicate or refinement. + * + * **Details** + * + * The predicate receives `(element, index)`. Refinements are supported for type + * narrowing. * * **Example** (Filtering even numbers) * @@ -5692,6 +7174,7 @@ export declare const filter: { * ``` * * @see {@link partition} — split into matching and non-matching + * @see {@link filterMap} for transforming while filtering * * @category filtering * @since 2.0.0 @@ -5700,8 +7183,15 @@ export declare const filter: { /** * Keeps only elements satisfying a predicate (or refinement). * - * - The predicate receives `(element, index)`. - * - Supports refinements for type narrowing. + * **When to use** + * + * Use to filter an iterable into a new array of original elements that satisfy + * a boolean predicate or refinement. + * + * **Details** + * + * The predicate receives `(element, index)`. Refinements are supported for type + * narrowing. * * **Example** (Filtering even numbers) * @@ -5712,6 +7202,7 @@ export declare const filter: { * ``` * * @see {@link partition} — split into matching and non-matching + * @see {@link filterMap} for transforming while filtering * * @category filtering * @since 2.0.0 @@ -5721,8 +7212,14 @@ export declare const filter: { /** * Splits an iterable using a `Filter` into failures and successes. * - * - Returns `[excluded, satisfying]`. - * - The filter receives `(element, index)`. + * **When to use** + * + * Use to partition an iterable by evaluating each element with a + * `Result`-returning filter and keeping both failure and success values. + * + * **Details** + * + * Returns `[excluded, satisfying]`. The filter receives `(element, index)`. * * **Example** (Partitioning with a filter) * @@ -5736,7 +7233,8 @@ export declare const filter: { * ``` * * @see {@link filter} — keep only matching elements - * @see {@link partitionMap} — partition using a Result-returning function + * @see {@link filterMap} for discarding failures + * @see {@link separate} — split an iterable of `Result` values * * @category filtering * @since 2.0.0 @@ -5745,8 +7243,14 @@ export declare const partition: { /** * Splits an iterable using a `Filter` into failures and successes. * - * - Returns `[excluded, satisfying]`. - * - The filter receives `(element, index)`. + * **When to use** + * + * Use to partition an iterable by evaluating each element with a + * `Result`-returning filter and keeping both failure and success values. + * + * **Details** + * + * Returns `[excluded, satisfying]`. The filter receives `(element, index)`. * * **Example** (Partitioning with a filter) * @@ -5760,7 +7264,8 @@ export declare const partition: { * ``` * * @see {@link filter} — keep only matching elements - * @see {@link partitionMap} — partition using a Result-returning function + * @see {@link filterMap} for discarding failures + * @see {@link separate} — split an iterable of `Result` values * * @category filtering * @since 2.0.0 @@ -5769,8 +7274,14 @@ export declare const partition: { /** * Splits an iterable using a `Filter` into failures and successes. * - * - Returns `[excluded, satisfying]`. - * - The filter receives `(element, index)`. + * **When to use** + * + * Use to partition an iterable by evaluating each element with a + * `Result`-returning filter and keeping both failure and success values. + * + * **Details** + * + * Returns `[excluded, satisfying]`. The filter receives `(element, index)`. * * **Example** (Partitioning with a filter) * @@ -5784,7 +7295,8 @@ export declare const partition: { * ``` * * @see {@link filter} — keep only matching elements - * @see {@link partitionMap} — partition using a Result-returning function + * @see {@link filterMap} for discarding failures + * @see {@link separate} — split an iterable of `Result` values * * @category filtering * @since 2.0.0 @@ -5792,9 +7304,16 @@ export declare const partition: { (self: Iterable, f: (input: A, i: number) => Result.Result): [excluded: Array, satisfying: Array]; }; /** - * Separates an iterable of `Result`s into two arrays: failures and successes. + * Separates an iterable of `Result`s into failure values and success values. + * + * **When to use** + * + * Use to split an iterable of `Result` values into failure and success arrays. * - * - Equivalent to `partitionMap(identity)`. + * **Details** + * + * Returns `[failures, successes]`. This is equivalent to + * `partition(identity)`. * * **Example** (Separating Results) * @@ -5810,6 +7329,7 @@ export declare const partition: { * * @see {@link getFailures} — extract only failures * @see {@link getSuccesses} — extract only successes + * @see {@link partition} for computing `Result` values while splitting * * @category filtering * @since 2.0.0 @@ -5821,7 +7341,13 @@ export declare const separate: >>(sel /** * Folds an iterable from left to right into a single value. * - * - The function receives `(accumulator, element, index)`. + * **When to use** + * + * Use to combine all elements into one accumulated value from left to right. + * + * **Details** + * + * The function receives `(accumulator, element, index)`. * * **Example** (Summing an array) * @@ -5841,7 +7367,13 @@ export declare const reduce: { /** * Folds an iterable from left to right into a single value. * - * - The function receives `(accumulator, element, index)`. + * **When to use** + * + * Use to combine all elements into one accumulated value from left to right. + * + * **Details** + * + * The function receives `(accumulator, element, index)`. * * **Example** (Summing an array) * @@ -5861,7 +7393,13 @@ export declare const reduce: { /** * Folds an iterable from left to right into a single value. * - * - The function receives `(accumulator, element, index)`. + * **When to use** + * + * Use to combine all elements into one accumulated value from left to right. + * + * **Details** + * + * The function receives `(accumulator, element, index)`. * * **Example** (Summing an array) * @@ -5882,7 +7420,13 @@ export declare const reduce: { /** * Folds an iterable from right to left into a single value. * - * - The function receives `(accumulator, element, index)`. + * **When to use** + * + * Use when you need to fold values from right to left. + * + * **Details** + * + * The function receives `(accumulator, element, index)`. * * **Example** (Right-to-left fold) * @@ -5902,7 +7446,13 @@ export declare const reduceRight: { /** * Folds an iterable from right to left into a single value. * - * - The function receives `(accumulator, element, index)`. + * **When to use** + * + * Use when you need to fold values from right to left. + * + * **Details** + * + * The function receives `(accumulator, element, index)`. * * **Example** (Right-to-left fold) * @@ -5922,7 +7472,13 @@ export declare const reduceRight: { /** * Folds an iterable from right to left into a single value. * - * - The function receives `(accumulator, element, index)`. + * **When to use** + * + * Use when you need to fold values from right to left. + * + * **Details** + * + * The function receives `(accumulator, element, index)`. * * **Example** (Right-to-left fold) * @@ -5988,6 +7544,11 @@ export declare const liftPredicate: { * Lifts an `Option`-returning function into one that returns an array: * `Some(a)` becomes `[a]`, `None` becomes `[]`. * + * **When to use** + * + * Use when an optional parser or lookup should participate in array pipelines + * as zero-or-one results. + * * **Example** (Lifting an Option function) * * ```ts @@ -6012,6 +7573,10 @@ export declare const liftOption: , B>(f: (...a: A) => O * Converts a nullable value to an array: `null`/`undefined` becomes `[]`, * anything else becomes `[value]`. * + * **When to use** + * + * Use to treat a nullable single value as zero or one array element. + * * **Example** (Nullable to array) * * ```ts @@ -6025,8 +7590,8 @@ export declare const liftOption: , B>(f: (...a: A) => O * @see {@link liftNullishOr} — lift a nullable-returning function * @see {@link fromOption} — convert from Option * - * @category conversions - * @since 2.0.0 + * @category converting + * @since 4.0.0 */ export declare const fromNullishOr: (a: A) => Array>; /** @@ -6050,13 +7615,18 @@ export declare const fromNullishOr: (a: A) => Array>; * @see {@link liftOption} — lift an Option-returning function * * @category lifting - * @since 2.0.0 + * @since 4.0.0 */ export declare const liftNullishOr: , B>(f: (...a: A) => B) => (...a: A) => Array>; /** * Maps each element with a nullable-returning function, keeping only non-null / * non-undefined results. * + * **When to use** + * + * Use when you need to map and filter in one step, where the mapper can return + * `null` or `undefined` to skip elements. + * * **Example** (FlatMapping with nullable) * * ```ts @@ -6066,14 +7636,22 @@ export declare const liftNullishOr: , B>(f: (...a: A) = * // [1, 3] * ``` * + * @see {@link flatMap} for mapping each element to an array and flattening + * @see {@link fromNullishOr} for converting a single nullable value to an array + * * @category sequencing - * @since 2.0.0 + * @since 4.0.0 */ export declare const flatMapNullishOr: { /** * Maps each element with a nullable-returning function, keeping only non-null / * non-undefined results. * + * **When to use** + * + * Use when you need to map and filter in one step, where the mapper can return + * `null` or `undefined` to skip elements. + * * **Example** (FlatMapping with nullable) * * ```ts @@ -6083,14 +7661,22 @@ export declare const flatMapNullishOr: { * // [1, 3] * ``` * + * @see {@link flatMap} for mapping each element to an array and flattening + * @see {@link fromNullishOr} for converting a single nullable value to an array + * * @category sequencing - * @since 2.0.0 + * @since 4.0.0 */ (f: (a: A) => B): (self: ReadonlyArray) => Array>; /** * Maps each element with a nullable-returning function, keeping only non-null / * non-undefined results. * + * **When to use** + * + * Use when you need to map and filter in one step, where the mapper can return + * `null` or `undefined` to skip elements. + * * **Example** (FlatMapping with nullable) * * ```ts @@ -6100,8 +7686,11 @@ export declare const flatMapNullishOr: { * // [1, 3] * ``` * + * @see {@link flatMap} for mapping each element to an array and flattening + * @see {@link fromNullishOr} for converting a single nullable value to an array + * * @category sequencing - * @since 2.0.0 + * @since 4.0.0 */ (self: ReadonlyArray, f: (a: A) => B): Array>; }; @@ -6109,6 +7698,11 @@ export declare const flatMapNullishOr: { * Lifts a `Result`-returning function into one that returns an array: failures * produce `[]`, successes produce `[value]`. * + * **When to use** + * + * Use when a fallible parser or lookup should participate in array pipelines as + * zero-or-one results and the failure value should be discarded. + * * **Example** (Lifting a Result function) * * ```ts @@ -6128,13 +7722,18 @@ export declare const flatMapNullishOr: { * @see {@link liftPredicate} — lift a boolean predicate * * @category lifting - * @since 2.0.0 + * @since 4.0.0 */ export declare const liftResult: , E, B>(f: (...a: A) => Result.Result) => (...a: A) => Array; /** - * Tests whether all elements satisfy the predicate. Supports refinements for + * Checks whether all elements satisfy the predicate. Supports refinements for * type narrowing. * + * **When to use** + * + * Use to check whether every array element satisfies a predicate, including + * refinement-based type narrowing. + * * **Example** (Testing all elements) * * ```ts @@ -6151,9 +7750,14 @@ export declare const liftResult: , E, B>(f: (...a: A) = */ export declare const every: { /** - * Tests whether all elements satisfy the predicate. Supports refinements for + * Checks whether all elements satisfy the predicate. Supports refinements for * type narrowing. * + * **When to use** + * + * Use to check whether every array element satisfies a predicate, including + * refinement-based type narrowing. + * * **Example** (Testing all elements) * * ```ts @@ -6170,9 +7774,14 @@ export declare const every: { */ (refinement: (a: NoInfer, i: number) => a is B): (self: ReadonlyArray) => self is ReadonlyArray; /** - * Tests whether all elements satisfy the predicate. Supports refinements for + * Checks whether all elements satisfy the predicate. Supports refinements for * type narrowing. * + * **When to use** + * + * Use to check whether every array element satisfies a predicate, including + * refinement-based type narrowing. + * * **Example** (Testing all elements) * * ```ts @@ -6189,9 +7798,14 @@ export declare const every: { */ (predicate: (a: NoInfer, i: number) => boolean): (self: ReadonlyArray) => boolean; /** - * Tests whether all elements satisfy the predicate. Supports refinements for + * Checks whether all elements satisfy the predicate. Supports refinements for * type narrowing. * + * **When to use** + * + * Use to check whether every array element satisfies a predicate, including + * refinement-based type narrowing. + * * **Example** (Testing all elements) * * ```ts @@ -6208,9 +7822,14 @@ export declare const every: { */ (self: ReadonlyArray, refinement: (a: A, i: number) => a is B): self is ReadonlyArray; /** - * Tests whether all elements satisfy the predicate. Supports refinements for + * Checks whether all elements satisfy the predicate. Supports refinements for * type narrowing. * + * **When to use** + * + * Use to check whether every array element satisfies a predicate, including + * refinement-based type narrowing. + * * **Example** (Testing all elements) * * ```ts @@ -6228,7 +7847,7 @@ export declare const every: { (self: ReadonlyArray, predicate: (a: A, i: number) => boolean): boolean; }; /** - * Tests whether at least one element satisfies the predicate. Narrows the type + * Checks whether at least one element satisfies the predicate. Narrows the type * to `NonEmptyReadonlyArray` on success. * * **Example** (Testing for any match) @@ -6248,7 +7867,7 @@ export declare const every: { */ export declare const some: { /** - * Tests whether at least one element satisfies the predicate. Narrows the type + * Checks whether at least one element satisfies the predicate. Narrows the type * to `NonEmptyReadonlyArray` on success. * * **Example** (Testing for any match) @@ -6268,7 +7887,7 @@ export declare const some: { */ (predicate: (a: NoInfer, i: number) => boolean): (self: ReadonlyArray) => self is NonEmptyReadonlyArray; /** - * Tests whether at least one element satisfies the predicate. Narrows the type + * Checks whether at least one element satisfies the predicate. Narrows the type * to `NonEmptyReadonlyArray` on success. * * **Example** (Testing for any match) @@ -6292,7 +7911,14 @@ export declare const some: { * Applies a function to each suffix of the array (starting from each index), * collecting the results. * - * - For index `i`, the function receives `self.slice(i)`. + * **When to use** + * + * Use when you need to compute a result from every suffix of an array, such as + * cumulative aggregations from each position. + * + * **Details** + * + * For index `i`, the function receives `self.slice(i)`. * * **Example** (Suffix lengths) * @@ -6302,6 +7928,8 @@ export declare const some: { * console.log(Array.extend([1, 2, 3], (as) => as.length)) // [3, 2, 1] * ``` * + * @see {@link scan} for keeping intermediate accumulator values during a fold + * * @category mapping * @since 2.0.0 */ @@ -6310,7 +7938,14 @@ export declare const extend: { * Applies a function to each suffix of the array (starting from each index), * collecting the results. * - * - For index `i`, the function receives `self.slice(i)`. + * **When to use** + * + * Use when you need to compute a result from every suffix of an array, such as + * cumulative aggregations from each position. + * + * **Details** + * + * For index `i`, the function receives `self.slice(i)`. * * **Example** (Suffix lengths) * @@ -6320,6 +7955,8 @@ export declare const extend: { * console.log(Array.extend([1, 2, 3], (as) => as.length)) // [3, 2, 1] * ``` * + * @see {@link scan} for keeping intermediate accumulator values during a fold + * * @category mapping * @since 2.0.0 */ @@ -6328,7 +7965,14 @@ export declare const extend: { * Applies a function to each suffix of the array (starting from each index), * collecting the results. * - * - For index `i`, the function receives `self.slice(i)`. + * **When to use** + * + * Use when you need to compute a result from every suffix of an array, such as + * cumulative aggregations from each position. + * + * **Details** + * + * For index `i`, the function receives `self.slice(i)`. * * **Example** (Suffix lengths) * @@ -6338,6 +7982,8 @@ export declare const extend: { * console.log(Array.extend([1, 2, 3], (as) => as.length)) // [3, 2, 1] * ``` * + * @see {@link scan} for keeping intermediate accumulator values during a fold + * * @category mapping * @since 2.0.0 */ @@ -6497,7 +8143,7 @@ export declare const unfold: (b: B, f: (b: B) => Option.Option(O: Order.Order) => Order.Order>; /** @@ -6517,12 +8163,17 @@ export declare const makeOrder: (O: Order.Order) => Order.Order(isEquivalent: Equivalence.Equivalence) => Equivalence.Equivalence>; /** * Runs a side-effect for each element. The callback receives `(element, index)`. * + * **When to use** + * + * Use to iterate over an array for side-effects only, when no transformed + * result is needed. + * * **Example** (Iterating with side-effects) * * ```ts @@ -6531,6 +8182,8 @@ export declare const makeEquivalence: (isEquivalent: Equivalence.Equivalence< * Array.forEach([1, 2, 3], (n) => console.log(n)) // 1, 2, 3 * ``` * + * @see {@link map} for transforming each element into a new array + * * @category elements * @since 2.0.0 */ @@ -6538,6 +8191,11 @@ export declare const forEach: { /** * Runs a side-effect for each element. The callback receives `(element, index)`. * + * **When to use** + * + * Use to iterate over an array for side-effects only, when no transformed + * result is needed. + * * **Example** (Iterating with side-effects) * * ```ts @@ -6546,6 +8204,8 @@ export declare const forEach: { * Array.forEach([1, 2, 3], (n) => console.log(n)) // 1, 2, 3 * ``` * + * @see {@link map} for transforming each element into a new array + * * @category elements * @since 2.0.0 */ @@ -6553,6 +8213,11 @@ export declare const forEach: { /** * Runs a side-effect for each element. The callback receives `(element, index)`. * + * **When to use** + * + * Use to iterate over an array for side-effects only, when no transformed + * result is needed. + * * **Example** (Iterating with side-effects) * * ```ts @@ -6561,6 +8226,8 @@ export declare const forEach: { * Array.forEach([1, 2, 3], (n) => console.log(n)) // 1, 2, 3 * ``` * + * @see {@link map} for transforming each element into a new array + * * @category elements * @since 2.0.0 */ @@ -6570,6 +8237,11 @@ export declare const forEach: { * Removes duplicates using a custom equivalence, preserving the order of the * first occurrence. * + * **When to use** + * + * Use to remove all duplicate elements with a custom equivalence when default + * equality is not appropriate. + * * **Example** (Deduplicating with custom equality) * * ```ts @@ -6589,6 +8261,11 @@ export declare const dedupeWith: { * Removes duplicates using a custom equivalence, preserving the order of the * first occurrence. * + * **When to use** + * + * Use to remove all duplicate elements with a custom equivalence when default + * equality is not appropriate. + * * **Example** (Deduplicating with custom equality) * * ```ts @@ -6608,6 +8285,11 @@ export declare const dedupeWith: { * Removes duplicates using a custom equivalence, preserving the order of the * first occurrence. * + * **When to use** + * + * Use to remove all duplicate elements with a custom equivalence when default + * equality is not appropriate. + * * **Example** (Deduplicating with custom equality) * * ```ts @@ -6627,6 +8309,11 @@ export declare const dedupeWith: { * Removes duplicates using a custom equivalence, preserving the order of the * first occurrence. * + * **When to use** + * + * Use to remove all duplicate elements with a custom equivalence when default + * equality is not appropriate. + * * **Example** (Deduplicating with custom equality) * * ```ts @@ -6647,6 +8334,11 @@ export declare const dedupeWith: { * Removes duplicates using `Equal.equivalence()`, preserving the order of the * first occurrence. * + * **When to use** + * + * Use to remove repeated values from an iterable when Effect's default equality + * is the right comparison, preserving the first occurrence. + * * **Example** (Removing duplicates) * * ```ts @@ -6665,7 +8357,15 @@ export declare const dedupe: >(self: S) => S extends Non /** * Removes consecutive duplicate elements using a custom equivalence. * - * - Non-adjacent duplicates are preserved. + * **When to use** + * + * Use when consecutive duplicates should be collapsed using a custom + * equivalence, while equivalent values that appear later should remain in the + * result. + * + * **Details** + * + * Non-adjacent duplicates are preserved. * * **Example** (Deduplicating adjacent elements) * @@ -6686,7 +8386,15 @@ export declare const dedupeAdjacentWith: { /** * Removes consecutive duplicate elements using a custom equivalence. * - * - Non-adjacent duplicates are preserved. + * **When to use** + * + * Use when consecutive duplicates should be collapsed using a custom + * equivalence, while equivalent values that appear later should remain in the + * result. + * + * **Details** + * + * Non-adjacent duplicates are preserved. * * **Example** (Deduplicating adjacent elements) * @@ -6707,7 +8415,15 @@ export declare const dedupeAdjacentWith: { /** * Removes consecutive duplicate elements using a custom equivalence. * - * - Non-adjacent duplicates are preserved. + * **When to use** + * + * Use when consecutive duplicates should be collapsed using a custom + * equivalence, while equivalent values that appear later should remain in the + * result. + * + * **Details** + * + * Non-adjacent duplicates are preserved. * * **Example** (Deduplicating adjacent elements) * @@ -6729,6 +8445,11 @@ export declare const dedupeAdjacentWith: { /** * Removes consecutive duplicate elements using `Equal.equivalence()`. * + * **When to use** + * + * Use when you need to collapse consecutive duplicates while preserving later + * non-consecutive repeats, and the default equality is sufficient. + * * **Example** (Removing adjacent duplicates) * * ```ts @@ -6757,8 +8478,8 @@ export declare const dedupeAdjacent: (self: Iterable) => Array; * * @see {@link intersperse} — insert separator elements without joining * - * @since 2.0.0 * @category folding + * @since 2.0.0 */ export declare const join: { /** @@ -6774,8 +8495,8 @@ export declare const join: { * * @see {@link intersperse} — insert separator elements without joining * - * @since 2.0.0 * @category folding + * @since 2.0.0 */ (sep: string): (self: Iterable) => string; /** @@ -6791,18 +8512,25 @@ export declare const join: { * * @see {@link intersperse} — insert separator elements without joining * - * @since 2.0.0 * @category folding + * @since 2.0.0 */ (self: Iterable, sep: string): string; }; /** * Maps over an array while threading an accumulator through each step, returning both the final state and the mapped array. * - * - Combines `map` and `reduce` in a single pass. - * - The callback receives the current state, element, and index, and returns `[nextState, mappedValue]`. - * - Returns `[finalState, mappedArray]`. - * - Dual: can be used in both data-first and data-last style. + * **When to use** + * + * Use when you need to map while threading state through each element and keep + * the final state. + * + * **Details** + * + * Combines `map` and `reduce` in a single pass. The callback receives the + * current state, element, and index, and returns `[nextState, mappedValue]`. + * The result is `[finalState, mappedArray]`. This can be used in both + * data-first and data-last style. * * **Example** (Running sum alongside mapped values) * @@ -6816,17 +8544,24 @@ export declare const join: { * @see {@link scan} — when you only need the accumulated results (not the final state) * @see {@link reduce} — when you only need the final accumulated value * - * @since 2.0.0 * @category folding + * @since 2.0.0 */ export declare const mapAccum: { /** * Maps over an array while threading an accumulator through each step, returning both the final state and the mapped array. * - * - Combines `map` and `reduce` in a single pass. - * - The callback receives the current state, element, and index, and returns `[nextState, mappedValue]`. - * - Returns `[finalState, mappedArray]`. - * - Dual: can be used in both data-first and data-last style. + * **When to use** + * + * Use when you need to map while threading state through each element and keep + * the final state. + * + * **Details** + * + * Combines `map` and `reduce` in a single pass. The callback receives the + * current state, element, and index, and returns `[nextState, mappedValue]`. + * The result is `[finalState, mappedArray]`. This can be used in both + * data-first and data-last style. * * **Example** (Running sum alongside mapped values) * @@ -6840,17 +8575,24 @@ export declare const mapAccum: { * @see {@link scan} — when you only need the accumulated results (not the final state) * @see {@link reduce} — when you only need the final accumulated value * - * @since 2.0.0 * @category folding + * @since 2.0.0 */ = Iterable>(s: S, f: (s: S, a: ReadonlyArray.Infer, i: number) => readonly [S, B]): (self: I) => [state: S, mappedArray: ReadonlyArray.With]; /** * Maps over an array while threading an accumulator through each step, returning both the final state and the mapped array. * - * - Combines `map` and `reduce` in a single pass. - * - The callback receives the current state, element, and index, and returns `[nextState, mappedValue]`. - * - Returns `[finalState, mappedArray]`. - * - Dual: can be used in both data-first and data-last style. + * **When to use** + * + * Use when you need to map while threading state through each element and keep + * the final state. + * + * **Details** + * + * Combines `map` and `reduce` in a single pass. The callback receives the + * current state, element, and index, and returns `[nextState, mappedValue]`. + * The result is `[finalState, mappedArray]`. This can be used in both + * data-first and data-last style. * * **Example** (Running sum alongside mapped values) * @@ -6864,17 +8606,24 @@ export declare const mapAccum: { * @see {@link scan} — when you only need the accumulated results (not the final state) * @see {@link reduce} — when you only need the final accumulated value * - * @since 2.0.0 * @category folding + * @since 2.0.0 */ = Iterable>(self: I, s: S, f: (s: S, a: ReadonlyArray.Infer, i: number) => readonly [S, B]): [state: S, mappedArray: ReadonlyArray.With]; }; /** * Computes the cartesian product of two arrays, applying a combiner to each pair. * - * - Produces every combination of an element from `self` with an element from `that`. - * - Result length is `self.length * that.length`. - * - Order: iterates `that` for each element of `self`. + * **When to use** + * + * Use to compute every combination from two arrays and immediately transform + * each pair into a custom result. + * + * **Details** + * + * Produces every combination of an element from `self` with an element from + * `that`, so the result length is `self.length * that.length`. Iteration visits + * every element of `that` for each element of `self`. * * **Example** (Combining numbers and letters) * @@ -6885,18 +8634,25 @@ export declare const mapAccum: { * console.log(result) // ["1-a", "1-b", "2-a", "2-b"] * ``` * - * @see {@link cartesian} — returns tuples instead of applying a combiner + * @see {@link cartesian} for returning tuples instead of applying a combiner * - * @since 2.0.0 * @category elements + * @since 2.0.0 */ export declare const cartesianWith: { /** * Computes the cartesian product of two arrays, applying a combiner to each pair. * - * - Produces every combination of an element from `self` with an element from `that`. - * - Result length is `self.length * that.length`. - * - Order: iterates `that` for each element of `self`. + * **When to use** + * + * Use to compute every combination from two arrays and immediately transform + * each pair into a custom result. + * + * **Details** + * + * Produces every combination of an element from `self` with an element from + * `that`, so the result length is `self.length * that.length`. Iteration visits + * every element of `that` for each element of `self`. * * **Example** (Combining numbers and letters) * @@ -6907,18 +8663,25 @@ export declare const cartesianWith: { * console.log(result) // ["1-a", "1-b", "2-a", "2-b"] * ``` * - * @see {@link cartesian} — returns tuples instead of applying a combiner + * @see {@link cartesian} for returning tuples instead of applying a combiner * - * @since 2.0.0 * @category elements + * @since 2.0.0 */ (that: ReadonlyArray, f: (a: A, b: B) => C): (self: ReadonlyArray) => Array; /** * Computes the cartesian product of two arrays, applying a combiner to each pair. * - * - Produces every combination of an element from `self` with an element from `that`. - * - Result length is `self.length * that.length`. - * - Order: iterates `that` for each element of `self`. + * **When to use** + * + * Use to compute every combination from two arrays and immediately transform + * each pair into a custom result. + * + * **Details** + * + * Produces every combination of an element from `self` with an element from + * `that`, so the result length is `self.length * that.length`. Iteration visits + * every element of `that` for each element of `self`. * * **Example** (Combining numbers and letters) * @@ -6929,18 +8692,24 @@ export declare const cartesianWith: { * console.log(result) // ["1-a", "1-b", "2-a", "2-b"] * ``` * - * @see {@link cartesian} — returns tuples instead of applying a combiner + * @see {@link cartesian} for returning tuples instead of applying a combiner * - * @since 2.0.0 * @category elements + * @since 2.0.0 */ (self: ReadonlyArray, that: ReadonlyArray, f: (a: A, b: B) => C): Array; }; /** * Computes the cartesian product of two arrays, returning all pairs as tuples. * - * - Produces every `[a, b]` combination of an element from `self` with an element from `that`. - * - Result length is `self.length * that.length`. + * **When to use** + * + * Use when you need every `[a, b]` pair from two arrays as tuples. + * + * **Details** + * + * Produces every `[a, b]` combination of an element from `self` with an element + * from `that`, so the result length is `self.length * that.length`. * * **Example** (All pairs of two arrays) * @@ -6953,15 +8722,21 @@ export declare const cartesianWith: { * * @see {@link cartesianWith} — apply a combiner to each pair * - * @since 2.0.0 * @category elements + * @since 2.0.0 */ export declare const cartesian: { /** * Computes the cartesian product of two arrays, returning all pairs as tuples. * - * - Produces every `[a, b]` combination of an element from `self` with an element from `that`. - * - Result length is `self.length * that.length`. + * **When to use** + * + * Use when you need every `[a, b]` pair from two arrays as tuples. + * + * **Details** + * + * Produces every `[a, b]` combination of an element from `self` with an element + * from `that`, so the result length is `self.length * that.length`. * * **Example** (All pairs of two arrays) * @@ -6974,15 +8749,21 @@ export declare const cartesian: { * * @see {@link cartesianWith} — apply a combiner to each pair * - * @since 2.0.0 * @category elements + * @since 2.0.0 */ (that: ReadonlyArray): (self: ReadonlyArray) => Array<[A, B]>; /** * Computes the cartesian product of two arrays, returning all pairs as tuples. * - * - Produces every `[a, b]` combination of an element from `self` with an element from `that`. - * - Result length is `self.length * that.length`. + * **When to use** + * + * Use when you need every `[a, b]` pair from two arrays as tuples. + * + * **Details** + * + * Produces every `[a, b]` combination of an element from `self` with an element + * from `that`, so the result length is `self.length * that.length`. * * **Example** (All pairs of two arrays) * @@ -6995,17 +8776,24 @@ export declare const cartesian: { * * @see {@link cartesianWith} — apply a combiner to each pair * - * @since 2.0.0 * @category elements + * @since 2.0.0 */ (self: ReadonlyArray, that: ReadonlyArray): Array<[A, B]>; }; /** - * Starting point for the "do simulation" — an array comprehension pattern. + * Provides the starting point for the "do simulation" — an array comprehension pattern. + * + * **When to use** + * + * Use when you want array-comprehension style code with do notation. + * + * **Details** * - * - Begin a pipeline with `Do`, then use {@link bind} to introduce array variables and {@link let_ let} for plain values. - * - Each `bind` produces the cartesian product of all bound variables (like nested loops). - * - Use `filter` and `map` in the pipeline to add conditions and transformations. + * Use {@link bind} to introduce array variables and {@link let_ let} for plain + * values. Each `bind` produces the cartesian product of all bound variables, + * like nested loops. Use `filter` and `map` in the pipeline to add conditions + * and transformations. * * **Example** (Array comprehension with do notation) * @@ -7031,11 +8819,18 @@ export declare const cartesian: { */ export declare const Do: ReadonlyArray<{}>; /** - * Introduces a new array variable into a do-notation scope, producing the cartesian product with all previous bindings. + * Adds a new array variable to a do-notation scope, producing the cartesian product with all previous bindings. * - * - Each `bind` call adds a named property to the accumulated object. - * - The callback receives the current scope and must return an array. - * - Equivalent to `flatMap` + merging the new value into the scope object. + * **When to use** + * + * Use to add another array-producing binding to an `Array.Do` pipeline, pairing + * each existing scope with every value returned by the callback. + * + * **Details** + * + * Each `bind` call adds a named property to the accumulated object. The + * callback receives the current scope and must return an array. This is + * equivalent to `flatMap` plus merging the new value into the scope object. * * **Example** (Binding two arrays) * @@ -7060,11 +8855,18 @@ export declare const Do: ReadonlyArray<{}>; */ export declare const bind: { /** - * Introduces a new array variable into a do-notation scope, producing the cartesian product with all previous bindings. + * Adds a new array variable to a do-notation scope, producing the cartesian product with all previous bindings. + * + * **When to use** * - * - Each `bind` call adds a named property to the accumulated object. - * - The callback receives the current scope and must return an array. - * - Equivalent to `flatMap` + merging the new value into the scope object. + * Use to add another array-producing binding to an `Array.Do` pipeline, pairing + * each existing scope with every value returned by the callback. + * + * **Details** + * + * Each `bind` call adds a named property to the accumulated object. The + * callback receives the current scope and must return an array. This is + * equivalent to `flatMap` plus merging the new value into the scope object. * * **Example** (Binding two arrays) * @@ -7091,11 +8893,18 @@ export declare const bind: { [K in N | keyof A]: K extends keyof A ? A[K] : B; }>; /** - * Introduces a new array variable into a do-notation scope, producing the cartesian product with all previous bindings. + * Adds a new array variable to a do-notation scope, producing the cartesian product with all previous bindings. + * + * **When to use** + * + * Use to add another array-producing binding to an `Array.Do` pipeline, pairing + * each existing scope with every value returned by the callback. * - * - Each `bind` call adds a named property to the accumulated object. - * - The callback receives the current scope and must return an array. - * - Equivalent to `flatMap` + merging the new value into the scope object. + * **Details** + * + * Each `bind` call adds a named property to the accumulated object. The + * callback receives the current scope and must return an array. This is + * equivalent to `flatMap` plus merging the new value into the scope object. * * **Example** (Binding two arrays) * @@ -7123,10 +8932,17 @@ export declare const bind: { }>; }; /** - * Names the elements of an array by wrapping each in an object with the given key, starting a do-notation scope. + * Wraps each array element in an object with the given key, starting a do-notation scope. + * + * **When to use** + * + * Use when you already have an array and want to start a do-notation pipeline + * by naming each element. + * + * **Details** * - * - Equivalent to `Array.map(self, (a) => ({ [tag]: a }))`. - * - Alternative to starting with `Do` + `bind`; useful when you already have an array. + * Equivalent to `Array.map(self, (a) => ({ [tag]: a }))`. This is an + * alternative to starting with `Do` plus `bind` when you already have an array. * * **Example** (Naming an existing array) * @@ -7148,10 +8964,17 @@ export declare const bind: { */ export declare const bindTo: { /** - * Names the elements of an array by wrapping each in an object with the given key, starting a do-notation scope. + * Wraps each array element in an object with the given key, starting a do-notation scope. * - * - Equivalent to `Array.map(self, (a) => ({ [tag]: a }))`. - * - Alternative to starting with `Do` + `bind`; useful when you already have an array. + * **When to use** + * + * Use when you already have an array and want to start a do-notation pipeline + * by naming each element. + * + * **Details** + * + * Equivalent to `Array.map(self, (a) => ({ [tag]: a }))`. This is an + * alternative to starting with `Do` plus `bind` when you already have an array. * * **Example** (Naming an existing array) * @@ -7175,10 +8998,17 @@ export declare const bindTo: { [K in N]: A; }>; /** - * Names the elements of an array by wrapping each in an object with the given key, starting a do-notation scope. + * Wraps each array element in an object with the given key, starting a do-notation scope. + * + * **When to use** * - * - Equivalent to `Array.map(self, (a) => ({ [tag]: a }))`. - * - Alternative to starting with `Do` + `bind`; useful when you already have an array. + * Use when you already have an array and want to start a do-notation pipeline + * by naming each element. + * + * **Details** + * + * Equivalent to `Array.map(self, (a) => ({ [tag]: a }))`. This is an + * alternative to starting with `Do` plus `bind` when you already have an array. * * **Example** (Naming an existing array) * @@ -7214,8 +9044,16 @@ export { /** * Adds a computed plain value to the do-notation scope without introducing a new array dimension. * - * - Unlike {@link bind}, the callback returns a single value (not an array), so no cartesian product occurs. - * - Useful for derived or intermediate values that depend on previously bound variables. + * **When to use** + * + * Use when each do-notation branch needs a derived field from the current + * bindings without multiplying the number of branches. + * + * **Details** + * + * Unlike `bind`, the callback returns a single value instead of an array, so + * no cartesian product occurs. Use this for derived or intermediate values + * that depend on previously bound variables. * * **Example** (Adding a computed value) * @@ -7243,6 +9081,7 @@ let_ as let }; * * @see {@link makeReducerConcat} — mutable `Array` variant * + * @category folding * @since 4.0.0 */ export declare function getReadonlyReducerConcat(): Reducer.Reducer>; @@ -7251,14 +9090,22 @@ export declare function getReadonlyReducerConcat(): Reducer.Reducer(): Reducer.Reducer>; /** - * Counts the elements in an iterable that satisfy a predicate. + * Computes the number of elements in an iterable that satisfy a predicate. + * + * **When to use** * - * - The predicate receives both the element and its index. - * - Returns `0` for an empty iterable. + * Use when you need to count how many elements of an iterable satisfy a + * predicate. + * + * **Details** + * + * The predicate receives both the element and its index. Empty iterables return + * `0`. * * **Example** (Counting even numbers) * @@ -7276,10 +9123,17 @@ export declare function makeReducerConcat(): Reducer.Reducer>; */ export declare const countBy: { /** - * Counts the elements in an iterable that satisfy a predicate. + * Computes the number of elements in an iterable that satisfy a predicate. + * + * **When to use** + * + * Use when you need to count how many elements of an iterable satisfy a + * predicate. * - * - The predicate receives both the element and its index. - * - Returns `0` for an empty iterable. + * **Details** + * + * The predicate receives both the element and its index. Empty iterables return + * `0`. * * **Example** (Counting even numbers) * @@ -7297,10 +9151,17 @@ export declare const countBy: { */ (predicate: (a: NoInfer, i: number) => boolean): (self: Iterable) => number; /** - * Counts the elements in an iterable that satisfy a predicate. + * Computes the number of elements in an iterable that satisfy a predicate. + * + * **When to use** + * + * Use when you need to count how many elements of an iterable satisfy a + * predicate. + * + * **Details** * - * - The predicate receives both the element and its index. - * - Returns `0` for an empty iterable. + * The predicate receives both the element and its index. Empty iterables return + * `0`. * * **Example** (Counting even numbers) * diff --git a/.opencode/node_modules/effect/dist/Array.d.ts.map b/.opencode/node_modules/effect/dist/Array.d.ts.map index ef5089baa0623f65311c4f786a9bcf5b23acc608..01af6dba87dcbdc23796ed2c3910eff4235ae45d 100644 --- a/.opencode/node_modules/effect/dist/Array.d.ts.map +++ b/.opencode/node_modules/effect/dist/Array.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Array.d.ts","sourceRoot":"","sources":["../src/Array.ts"],"names":[],"mappings":"AAsFA,OAAO,KAAK,WAAW,MAAM,kBAAkB,CAAA;AAC/C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAE5C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAI1C,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,KAAK,SAAS,MAAM,gBAAgB,CAAA;AAChD,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,OAAO,MAAM,cAAc,CAAA;AACvC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AAErC,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAElD;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,KAAK,kBAAmB,CAAA;AAErC;;;;;GAKG;AACH,MAAM,WAAW,uBAAwB,SAAQ,UAAU;IACzD,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAA;CAC7C;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,MAAM,qBAAqB,CAAC,CAAC,IAAI,SAAS,CAAC,CAAC,EAAE,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAA;AAEhE;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAA;AAE/C;;;;;;;;;;;;;;;;;;;;;GAqBG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,EAAE,MAAM,CAAC,CAAC,EACxB,CAAC,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,GACtB,KAAK,CAAC;SAAG,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;KAAE,CAAC,CAAA;CACA,CAAA;AAEhE,OAAO;AACL;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,IAAI,IAAI,GAAG,EACZ,CAAA;AAID;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CAAC,CAAC,KAAK,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAE/E;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,KAAK,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAEhE;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,OAAO,EAAE;IACpB;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IACH,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,KAAK,OAAO,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,KAAK,MAAM,CAAA;IACpF;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IACH,CAAC,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,KAAK,OAAO,GAAG,MAAM,CAAA;CAiBxE,CAAA"} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Array.js b/.opencode/node_modules/effect/dist/Array.js index 14eb0505cf82684271afacb10a2e5214df94c101..63a620a252d89c402b34627f7811c187ed30d8fc 100644 --- a/.opencode/node_modules/effect/dist/Array.js +++ b/.opencode/node_modules/effect/dist/Array.js @@ -1,85 +1,11 @@ /** - * Utilities for working with immutable arrays (and non-empty arrays) in a - * functional style. All functions treat arrays as immutable — they return new - * arrays rather than mutating the input. - * - * ## Mental model - * - * - **`Array`** is a standard JS array. All functions in this module return - * new arrays; the input is never mutated. - * - **`NonEmptyReadonlyArray`** (`readonly [A, ...Array]`) is a readonly - * array guaranteed to have at least one element. Many functions preserve or - * require this guarantee at the type level. - * - **`NonEmptyArray`** is the mutable counterpart: `[A, ...Array]`. - * - Most functions are **dual** — they can be called either as - * `Array.fn(array, arg)` (data-first) or piped as - * `pipe(array, Array.fn(arg))` (data-last). - * - Functions that access elements by index return `Option` for safety; use - * the `*NonEmpty` variants (e.g. {@link headNonEmpty}) when you already know - * the array is non-empty. - * - Set-like operations ({@link union}, {@link intersection}, - * {@link difference}) use `Equal.equivalence()` by default; use the `*With` - * variants for custom equality. - * - * ## Common tasks - * - * - **Create** an array: {@link make}, {@link of}, {@link empty}, - * {@link fromIterable}, {@link range}, {@link makeBy}, {@link replicate}, - * {@link unfold} - * - **Access** elements: {@link head}, {@link last}, {@link get}, {@link tail}, - * {@link init} - * - **Transform**: {@link map}, {@link flatMap}, {@link flatten} - * - **Filter**: {@link filter}, {@link partition}, {@link dedupe} - * - **Combine**: {@link append}, {@link prepend}, {@link appendAll}, - * {@link prependAll}, {@link zip}, {@link cartesian} - * - **Split**: {@link splitAt}, {@link chunksOf}, {@link span}, {@link window} - * - **Search**: {@link findFirst}, {@link findLast}, {@link contains} - * - **Sort**: {@link sort}, {@link sortBy}, {@link sortWith} - * - **Fold**: {@link reduce}, {@link scan}, {@link join} - * - **Group**: {@link groupBy}, {@link group}, {@link groupWith} - * - **Set operations**: {@link union}, {@link intersection}, - * {@link difference} - * - **Match** on empty vs non-empty: {@link match}, {@link matchLeft}, - * {@link matchRight} - * - **Check** properties: {@link isArray}, {@link isArrayNonEmpty}, - * {@link every}, {@link some} - * - * ## Gotchas - * - * - {@link fromIterable} returns the original array reference when given an - * array; if you need a copy, use {@link copy}. - * - `sort`, `reverse`, etc. always allocate a new array — the input is never - * mutated. - * - {@link makeBy} and {@link replicate} normalize `n` to an integer >= 1 — - * they never produce an empty array. - * - {@link range}`(start, end)` is inclusive on both ends. If `start > end` it - * returns `[start]`. - * - Functions returning `Option` (e.g. {@link head}, {@link findFirst}) return - * `Option.none()` for empty inputs — they never throw. - * - * ## Quickstart - * - * **Example** (Basic array operations) - * - * ```ts - * import { Array } from "effect" - * - * const numbers = Array.make(1, 2, 3, 4, 5) - * - * const doubled = Array.map(numbers, (n) => n * 2) - * console.log(doubled) // [2, 4, 6, 8, 10] - * - * const evens = Array.filter(numbers, (n) => n % 2 === 0) - * console.log(evens) // [2, 4] - * - * const sum = Array.reduce(numbers, 0, (acc, n) => acc + n) - * console.log(sum) // 15 - * ``` - * - * @see {@link make} — create a non-empty array from elements - * @see {@link map} — transform each element - * @see {@link filter} — keep elements matching a predicate - * @see {@link reduce} — fold an array to a single value + * Works with JavaScript arrays, readonly arrays, and non-empty arrays. + * + * The helpers cover common collection work such as creating arrays, reading + * elements, transforming values, sorting, grouping, splitting, combining, and + * reducing many values to one result. Helpers that change contents return new + * arrays and preserve non-empty array types when the result is guaranteed to + * contain values. * * @since 2.0.0 */ @@ -96,10 +22,12 @@ import * as Reducer from "./Reducer.js"; import * as Result from "./Result.js"; import * as Tuple from "./Tuple.js"; /** - * Reference to the global `Array` constructor. + * Exposes the global array constructor. + * + * **When to use** * - * Use this when you need the native `Array` constructor while the `Array` - * namespace is in scope (e.g. `Array.Array.isArray`, `Array.Array.from`). + * Use to access native JavaScript array constructor methods such as `isArray` + * or `from` from the Effect module namespace. * * **Example** (Using the Array constructor) * @@ -117,9 +45,14 @@ export const Array = globalThis.Array; /** * Creates a `NonEmptyArray` from one or more elements. * - * - Use when you have literal values and want a typed non-empty array. - * - The element type is inferred as the union of all arguments. - * - Always returns a `NonEmptyArray` since at least one argument is required. + * **When to use** + * + * Use when you need to create a typed non-empty array from literal values. + * + * **Details** + * + * The element type is inferred as the union of all arguments. Because at least + * one argument is required, this always returns a `NonEmptyArray`. * * **Example** (Creating an array from values) * @@ -140,9 +73,13 @@ export const make = (...elements) => elements; /** * Creates a new `Array` of the specified length with all slots uninitialized. * - * - Use when you need a pre-sized array and will fill it imperatively. - * - Elements are typed as `A | undefined` since slots are empty. - * - Prefer {@link makeBy} when you can compute each element from its index. + * **When to use** + * + * Use when you need a pre-sized array that will be filled imperatively. + * + * **Details** + * + * Elements are typed as `A | undefined` because the slots are empty. * * **Example** (Allocating a fixed-size array) * @@ -162,9 +99,15 @@ export const allocate = n => new Array(n); /** * Creates a `NonEmptyArray` of length `n` where element `i` is computed by `f(i)`. * - * - Use when you need an array whose values depend on the index. - * - `n` is normalized to an integer >= 1 — always returns at least one element. - * - Dual: `Array.makeBy(5, f)` or `pipe(5, Array.makeBy(f))`. + * **When to use** + * + * Use when you need to compute each array element from its index. + * + * **Details** + * + * `n` is normalized to an integer greater than or equal to 1, so this function + * always returns at least one element. Supports both data-first and data-last + * usage. * * **Example** (Generating values from indices) * @@ -193,9 +136,13 @@ export const makeBy = /*#__PURE__*/dual(2, (n, f) => { * Creates a `NonEmptyArray` containing a range of integers, inclusive on both * ends. * - * - Use when you need a sequence of consecutive integers. - * - If `start > end`, returns `[start]`. - * - Always returns a `NonEmptyArray`. + * **When to use** + * + * Use when you need a non-empty sequence of consecutive integers. + * + * **Details** + * + * If `start > end`, returns `[start]`. * * **Example** (Creating a range) * @@ -215,9 +162,15 @@ export const range = (start, end) => start <= end ? makeBy(end - start + 1, i => /** * Creates a `NonEmptyArray` containing a value repeated `n` times. * - * - Use when you need multiple copies of the same value. - * - `n` is normalized to an integer >= 1 — always returns at least one element. - * - Dual: `Array.replicate("a", 3)` or `pipe("a", Array.replicate(3))`. + * **When to use** + * + * Use when you need a non-empty array containing repeated copies of one value. + * + * **Details** + * + * `n` is normalized to an integer greater than or equal to 1, so this function + * always returns at least one element. Supports both data-first and data-last + * usage. * * **Example** (Repeating a value) * @@ -237,10 +190,15 @@ export const replicate = /*#__PURE__*/dual(2, (a, n) => makeBy(n, () => a)); /** * Converts an `Iterable` to an `Array`. * - * - If the input is already an array, returns it **by reference** (no copy). - * - Otherwise, creates a new array from the iterable. - * - Use {@link copy} if you need a fresh array even when the input is already - * an array. + * **When to use** + * + * Use to convert any `Iterable` (Set, Generator, etc.) into an array. + * + * **Details** + * + * If the input is already an array, this returns it by reference without + * copying. Otherwise, it creates a new array from the iterable. Use `copy` if + * you need a fresh array even when the input is already an array. * * **Example** (Converting a Set to an array) * @@ -261,9 +219,16 @@ export const fromIterable = collection => Array.isArray(collection) ? collection /** * Normalizes a value that is either a single element or an array into an array. * - * - If the input is already an array, returns it by reference. - * - If the input is a single value, wraps it in a one-element array. - * - Useful for APIs that accept `A | Array`. + * **When to use** + * + * Use to normalize input that may be a single value or an array into a consistent + * array. + * + * **Details** + * + * If the input is already an array, this returns it by reference. If the input + * is a single value, this wraps it in a one-element array. This is useful for + * APIs that accept `A | Array`. * * **Example** (Normalizing input) * @@ -284,8 +249,15 @@ export const ensure = self => Array.isArray(self) ? self : [self]; /** * Converts a record into an array of `[key, value]` tuples. * - * - Key order follows `Object.entries` semantics. - * - Returns an empty array for an empty record. + * **When to use** + * + * Use to convert a record into an array of key-value tuples for iteration or + * transformation. + * + * **Details** + * + * Key order follows `Object.entries` semantics. Empty records produce an empty + * array. * * **Example** (Record to entries) * @@ -296,13 +268,20 @@ export const ensure = self => Array.isArray(self) ? self : [self]; * console.log(result) // [["a", 1], ["b", 2], ["c", 3]] * ``` * - * @category conversions + * @see {@link Record.toEntries} the equivalent function from the Record module + * @see {@link Record.fromEntries} to build a record from an array of tuples + * + * @category converting * @since 2.0.0 */ export const fromRecord = Record.toEntries; /** * Converts an `Option` to an array: `Some(a)` becomes `[a]`, `None` becomes `[]`. * + * **When to use** + * + * Use to convert a single `Option` into an array for downstream array operations. + * * **Example** (Option to array) * * ```ts @@ -314,16 +293,21 @@ export const fromRecord = Record.toEntries; * * @see {@link getSomes} — extract `Some` values from an array of Options * - * @category conversions + * @category converting * @since 2.0.0 */ export const fromOption = Option.toArray; /** * Pattern-matches on an array, handling empty and non-empty cases separately. * - * - Use when you need to branch on whether an array has elements. - * - `onNonEmpty` receives a `NonEmptyReadonlyArray`. - * - Dual: data-first or data-last. + * **When to use** + * + * Use when you need to branch on whether an array is empty. + * + * **Details** + * + * `onNonEmpty` receives a `NonEmptyReadonlyArray`. Supports both data-first and + * data-last usage. * * **Example** (Branching on emptiness) * @@ -352,8 +336,14 @@ export const match = /*#__PURE__*/dual(2, (self, { * Pattern-matches on an array from the left, providing the first element and * the remaining elements separately. * - * - `onNonEmpty` receives `(head, tail)` where `tail` is the rest of the array. - * - Use when you want to process the first element differently from the rest. + * **When to use** + * + * Use when you need to branch on an array and handle the non-empty case as the + * first element plus the remaining elements. + * + * **Details** + * + * `onNonEmpty` receives `(head, tail)` where `tail` is the rest of the array. * * **Example** (Head and tail destructuring) * @@ -382,8 +372,14 @@ export const matchLeft = /*#__PURE__*/dual(2, (self, { * Pattern-matches on an array from the right, providing all elements except the * last and the last element separately. * - * - `onNonEmpty` receives `(init, last)` where `init` is everything but the last element. - * - Use when you want to process the last element differently from the rest. + * **When to use** + * + * Use when you need to branch on an array and handle the non-empty case as the + * elements before the last plus the last element. + * + * **Details** + * + * `onNonEmpty` receives `(init, last)` where `init` is everything but the last element. * * **Example** (Init and last destructuring) * @@ -411,8 +407,10 @@ export const matchRight = /*#__PURE__*/dual(2, (self, { /** * Adds a single element to the front of an iterable, returning a `NonEmptyArray`. * - * - Always returns a non-empty array. - * - Does not mutate the input. + * **When to use** + * + * Use when you need to guarantee a non-empty result after adding a required + * leading value. * * **Example** (Prepending an element) * @@ -426,15 +424,20 @@ export const matchRight = /*#__PURE__*/dual(2, (self, { * @see {@link append} — add to the end * @see {@link prependAll} — prepend multiple elements * - * @category concatenating + * @category combining * @since 2.0.0 */ export const prepend = /*#__PURE__*/dual(2, (self, head) => [head, ...self]); /** * Prepends all elements from a prefix iterable to the front of an array. * - * - If either input is non-empty, the result is a `NonEmptyArray`. - * - Does not mutate the input. + * **When to use** + * + * Use to prepend multiple elements from an iterable to the front of an array. + * + * **Details** + * + * If either input is non-empty, the result is a `NonEmptyArray`. * * **Example** (Prepending multiple elements) * @@ -448,15 +451,17 @@ export const prepend = /*#__PURE__*/dual(2, (self, head) => [head, ...self]); * @see {@link prepend} — add a single element to the front * @see {@link appendAll} — add elements to the end * - * @category concatenating + * @category combining * @since 2.0.0 */ export const prependAll = /*#__PURE__*/dual(2, (self, that) => fromIterable(that).concat(fromIterable(self))); /** * Adds a single element to the end of an iterable, returning a `NonEmptyArray`. * - * - Always returns a non-empty array. - * - Does not mutate the input. + * **When to use** + * + * Use when you need to guarantee a non-empty result after adding a required + * trailing value. * * **Example** (Appending an element) * @@ -470,15 +475,21 @@ export const prependAll = /*#__PURE__*/dual(2, (self, that) => fromIterable(that * @see {@link prepend} — add to the front * @see {@link appendAll} — append multiple elements * - * @category concatenating + * @category combining * @since 2.0.0 */ export const append = /*#__PURE__*/dual(2, (self, last) => [...self, last]); /** * Concatenates two iterables into a single array. * - * - If either input is non-empty, the result is a `NonEmptyArray`. - * - Does not mutate the inputs. + * **When to use** + * + * Use to combine two iterable inputs into a new array with the second input's + * elements after the first. + * + * **Details** + * + * If either input is non-empty, the result is a `NonEmptyArray`. * * **Example** (Concatenating arrays) * @@ -492,16 +503,22 @@ export const append = /*#__PURE__*/dual(2, (self, last) => [...self, last]); * @see {@link append} — add a single element to the end * @see {@link prependAll} — add elements to the front * - * @category concatenating + * @category combining * @since 2.0.0 */ export const appendAll = /*#__PURE__*/dual(2, (self, that) => fromIterable(self).concat(fromIterable(that))); /** - * Left-to-right fold that keeps every intermediate accumulator value. + * Folds left-to-right while keeping every intermediate accumulator value. + * + * **When to use** + * + * Use to compute a running accumulator where each intermediate value is needed. * - * - The output length is `input.length + 1` (starts with the initial value). - * - Always returns a `NonEmptyArray` because the initial value is included. - * - Use {@link reduce} if you only need the final accumulated value. + * **Details** + * + * The output length is `input.length + 1` because it starts with the initial + * value. The result is always a `NonEmptyArray`. Use `reduce` if you only need + * the final accumulated value. * * **Example** (Running totals) * @@ -528,10 +545,17 @@ export const scan = /*#__PURE__*/dual(3, (self, b, f) => { return out; }); /** - * Right-to-left fold that keeps every intermediate accumulator value. + * Folds right-to-left while keeping every intermediate accumulator value. + * + * **When to use** + * + * Use to compute a running accumulator from right to left where each intermediate + * value is needed. * - * - The output length is `input.length + 1` (ends with the initial value). - * - Always returns a `NonEmptyArray`. + * **Details** + * + * The output length is `input.length + 1` because it ends with the initial + * value. The result is always a `NonEmptyArray`. * * **Example** (Reverse running totals) * @@ -558,10 +582,16 @@ export const scanRight = /*#__PURE__*/dual(3, (self, b, f) => { return out; }); /** - * Tests whether a value is an `Array`. + * Checks whether a value is an `Array`. + * + * **When to use** + * + * Use to verify a value is a mutable array, narrowing its type to `Array`. * - * - Acts as a type guard narrowing the input to `Array`. - * - Delegates to `globalThis.Array.isArray`. + * **Details** + * + * Acts as a type guard narrowing the input to `Array` and delegates to + * `globalThis.Array.isArray`. * * **Example** (Type-guarding an unknown value) * @@ -580,7 +610,7 @@ export const scanRight = /*#__PURE__*/dual(3, (self, b, f) => { */ export const isArray = Array.isArray; /** - * Tests whether a mutable `Array` is empty, narrowing the type to `[]`. + * Checks whether a mutable `Array` is empty, narrowing the type to `[]`. * * **Example** (Checking for an empty array) * @@ -595,11 +625,11 @@ export const isArray = Array.isArray; * @see {@link isArrayNonEmpty} — opposite check * * @category guards - * @since 2.0.0 + * @since 4.0.0 */ export const isArrayEmpty = self => self.length === 0; /** - * Tests whether a `ReadonlyArray` is empty, narrowing the type to `readonly []`. + * Checks whether a `ReadonlyArray` is empty, narrowing the type to `readonly []`. * * **Example** (Checking for an empty readonly array) * @@ -614,13 +644,18 @@ export const isArrayEmpty = self => self.length === 0; * @see {@link isReadonlyArrayNonEmpty} — opposite check * * @category guards - * @since 2.0.0 + * @since 4.0.0 */ export const isReadonlyArrayEmpty = isArrayEmpty; /** - * Tests whether a mutable `Array` is non-empty, narrowing the type to + * Checks whether a mutable `Array` is non-empty, narrowing the type to * `NonEmptyArray`. * + * **When to use** + * + * Use when you need the narrowed value to remain a mutable `Array` after proving + * it has at least one element. + * * **Example** (Checking for a non-empty array) * * ```ts @@ -634,13 +669,18 @@ export const isReadonlyArrayEmpty = isArrayEmpty; * @see {@link isArrayEmpty} — opposite check * * @category guards - * @since 2.0.0 + * @since 4.0.0 */ export const isArrayNonEmpty = internalArray.isArrayNonEmpty; /** - * Tests whether a `ReadonlyArray` is non-empty, narrowing the type to + * Checks whether a `ReadonlyArray` is non-empty, narrowing the type to * `NonEmptyReadonlyArray`. * + * **When to use** + * + * Use when you need to prove a readonly array has at least one element without + * requiring mutable array methods afterward. + * * **Example** (Checking for a non-empty readonly array) * * ```ts @@ -654,12 +694,16 @@ export const isArrayNonEmpty = internalArray.isArrayNonEmpty; * @see {@link isReadonlyArrayEmpty} — opposite check * * @category guards - * @since 2.0.0 + * @since 4.0.0 */ export const isReadonlyArrayNonEmpty = internalArray.isArrayNonEmpty; /** * Returns the number of elements in a `ReadonlyArray`. * + * **When to use** + * + * Use when you need length as a composable function rather than a property access. + * * **Example** (Getting the length) * * ```ts @@ -678,11 +722,17 @@ export function isOutOfBounds(i, as) { } const clamp = (i, as) => Math.floor(Math.min(Math.max(0, i), as.length)); /** - * Safely reads an element at the given index, returning `Option.some` or + * Reads an element at the given index safely, returning `Option.some` or * `Option.none` if the index is out of bounds. * - * - The index is floored to an integer. - * - Never throws. + * **When to use** + * + * Use when you need to read an array element by index and handle an + * out-of-bounds index as `Option.none`. + * + * **Details** + * + * The index is floored to an integer. This never throws. * * **Example** (Safe index access) * @@ -693,9 +743,9 @@ const clamp = (i, as) => Math.floor(Math.min(Math.max(0, i), as.length)); * console.log(Array.get([1, 2, 3], 10)) // None * ``` * - * @see {@link getUnsafe} — throws on out of bounds - * @see {@link head} — get the first element - * @see {@link last} — get the last element + * @see {@link getUnsafe} for indexed access that throws when the index is out of bounds + * @see {@link head} for reading the first element as an `Option` + * @see {@link last} for reading the last element as an `Option` * * @category getters * @since 2.0.0 @@ -707,8 +757,15 @@ export const get = /*#__PURE__*/dual(2, (self, index) => { /** * Reads an element at the given index, throwing if the index is out of bounds. * - * - Throws an `Error` with the message `"Index out of bounds: "`. - * - Prefer {@link get} for safe access. + * **When to use** + * + * Use to read an array element at a known valid index when out-of-bounds would + * be a programming error. + * + * **Details** + * + * Throws an `Error` with the message `"Index out of bounds: "`. Prefer + * `get` for safe access. * * **Example** (Unsafe index access) * @@ -721,8 +778,8 @@ export const get = /*#__PURE__*/dual(2, (self, index) => { * * @see {@link get} — safe version returning `Option` * - * @since 2.0.0 * @category unsafe + * @since 4.0.0 */ export const getUnsafe = /*#__PURE__*/dual(2, (self, index) => { const i = Math.floor(index); @@ -734,8 +791,14 @@ export const getUnsafe = /*#__PURE__*/dual(2, (self, index) => { /** * Splits a non-empty array into its first element and the remaining elements. * - * - Returns a tuple `[head, tail]`. - * - Requires a `NonEmptyReadonlyArray`. + * **When to use** + * + * Use when you have a `NonEmptyReadonlyArray` and need both its first element + * and the remaining elements as separate values. + * + * **Details** + * + * Returns a tuple `[head, tail]` and requires a `NonEmptyReadonlyArray`. * * **Example** (Destructuring head and tail) * @@ -746,9 +809,9 @@ export const getUnsafe = /*#__PURE__*/dual(2, (self, index) => { * console.log(result) // [1, [2, 3, 4]] * ``` * - * @see {@link unappend} — split into init + last - * @see {@link headNonEmpty} — get only the head - * @see {@link tailNonEmpty} — get only the tail + * @see {@link unappend} for splitting a non-empty array into init and last + * @see {@link headNonEmpty} for getting only the first element + * @see {@link tailNonEmpty} for getting only the elements after the first * * @category splitting * @since 2.0.0 @@ -758,8 +821,14 @@ export const unprepend = self => [headNonEmpty(self), tailNonEmpty(self)]; * Splits a non-empty array into all elements except the last, and the last * element. * - * - Returns a tuple `[init, last]`. - * - Requires a `NonEmptyReadonlyArray`. + * **When to use** + * + * Use when you need to split a non-empty array into the elements before the + * last element and the last element. + * + * **Details** + * + * Returns a tuple `[init, last]` and requires a `NonEmptyReadonlyArray`. * * **Example** (Destructuring init and last) * @@ -770,18 +839,22 @@ export const unprepend = self => [headNonEmpty(self), tailNonEmpty(self)]; * console.log(result) // [[1, 2, 3], 4] * ``` * - * @see {@link unprepend} — split into head + tail - * @see {@link initNonEmpty} — get only the init - * @see {@link lastNonEmpty} — get only the last + * @see {@link unprepend} for splitting a non-empty array into head and tail + * @see {@link initNonEmpty} for getting only the elements before the last + * @see {@link lastNonEmpty} for getting only the last element * * @category splitting * @since 2.0.0 */ export const unappend = self => [initNonEmpty(self), lastNonEmpty(self)]; /** - * Returns the first element of an array wrapped in `Option.some`, or + * Returns the first element of an array safely wrapped in `Option.some`, or * `Option.none` if the array is empty. * + * **When to use** + * + * Use to safely get the first element of an array that may be empty. + * * **Example** (Getting the first element) * * ```ts @@ -802,6 +875,11 @@ export const head = /*#__PURE__*/get(0); * Returns the first element of a `NonEmptyReadonlyArray` directly (no `Option` * wrapper). * + * **When to use** + * + * Use to get the first element without `Option` wrapping when the array is known + * to be non-empty. + * * **Example** (Getting the head of a non-empty array) * * ```ts @@ -817,9 +895,13 @@ export const head = /*#__PURE__*/get(0); */ export const headNonEmpty = /*#__PURE__*/getUnsafe(0); /** - * Returns the last element of an array wrapped in `Option.some`, or + * Returns the last element of an array safely wrapped in `Option.some`, or * `Option.none` if the array is empty. * + * **When to use** + * + * Use to safely get the last element of an array that may be empty. + * * **Example** (Getting the last element) * * ```ts @@ -840,6 +922,11 @@ export const last = self => isReadonlyArrayNonEmpty(self) ? Option.some(lastNonE * Returns the last element of a `NonEmptyReadonlyArray` directly (no `Option` * wrapper). * + * **When to use** + * + * Use to get the last element without `Option` wrapping when the array is known + * to be non-empty. + * * **Example** (Getting the last of a non-empty array) * * ```ts @@ -855,10 +942,15 @@ export const last = self => isReadonlyArrayNonEmpty(self) ? Option.some(lastNonE */ export const lastNonEmpty = self => self[self.length - 1]; /** - * Returns all elements except the first, wrapped in an `Option`. + * Returns all elements except the first safely, wrapped in an `Option`. + * + * **When to use** + * + * Use to safely get all elements after the first when the iterable may be empty. * - * - Allocates a new array via `slice(1)`. - * - Returns `Option.none()` for empty inputs. + * **Details** + * + * Allocates a new array via `slice(1)`. Empty inputs return `Option.none()`. * * **Example** (Getting the tail) * @@ -882,6 +974,10 @@ export function tail(self) { /** * Returns all elements except the first of a `NonEmptyReadonlyArray`. * + * **When to use** + * + * Use to get all elements after the first when the array is known to be non-empty. + * * **Example** (Getting the tail of a non-empty array) * * ```ts @@ -898,10 +994,16 @@ export function tail(self) { */ export const tailNonEmpty = self => self.slice(1); /** - * Returns all elements except the last, wrapped in an `Option`. + * Returns all elements except the last safely, wrapped in an `Option`. + * + * **When to use** + * + * Use to safely get all elements before the last when the iterable may be empty. + * + * **Details** * - * - Allocates a new array via `slice(0, -1)`. - * - Returns `Option.none()` for empty inputs. + * Allocates a new array via `slice(0, -1)`. Empty inputs return + * `Option.none()`. * * **Example** (Getting init) * @@ -925,6 +1027,10 @@ export function init(self) { /** * Returns all elements except the last of a `NonEmptyReadonlyArray`. * + * **When to use** + * + * Use to get all elements before the last when the array is known to be non-empty. + * * **Example** (Getting init of a non-empty array) * * ```ts @@ -943,8 +1049,13 @@ export const initNonEmpty = self => self.slice(0, -1); /** * Keeps the first `n` elements, creating a new array. * - * - `n` is clamped to `[0, length]`. - * - Returns an empty array when `n <= 0`. + * **When to use** + * + * Use to keep up to the first `n` elements from an iterable as a new array. + * + * **Details** + * + * `n` is clamped to `[0, length]`. Returns an empty array when `n <= 0`. * * **Example** (Taking from the start) * @@ -954,9 +1065,9 @@ export const initNonEmpty = self => self.slice(0, -1); * console.log(Array.take([1, 2, 3, 4, 5], 3)) // [1, 2, 3] * ``` * - * @see {@link takeRight} — keep from the end - * @see {@link takeWhile} — keep while predicate holds - * @see {@link drop} — remove from the start + * @see {@link takeRight} for keeping elements from the end + * @see {@link takeWhile} for keeping an initial prefix while a predicate holds + * @see {@link drop} for removing elements from the start * * @category getters * @since 2.0.0 @@ -968,8 +1079,13 @@ export const take = /*#__PURE__*/dual(2, (self, n) => { /** * Keeps the last `n` elements, creating a new array. * - * - `n` is clamped to `[0, length]`. - * - Returns an empty array when `n <= 0`. + * **When to use** + * + * Use to keep the last `n` elements of an iterable. + * + * **Details** + * + * `n` is clamped to `[0, length]`. Returns an empty array when `n <= 0`. * * **Example** (Taking from the end) * @@ -994,8 +1110,15 @@ export const takeRight = /*#__PURE__*/dual(2, (self, n) => { * Takes elements from the start while the predicate holds, stopping at the * first element that fails. * - * - Supports refinements for type narrowing. - * - The predicate receives `(element, index)`. + * **When to use** + * + * Use to keep the leading elements of an iterable while each element satisfies + * a predicate, returning the retained prefix as an array. + * + * **Details** + * + * Supports refinements for type narrowing. The predicate receives + * `(element, index)`. * * **Example** (Taking while condition holds) * @@ -1005,9 +1128,9 @@ export const takeRight = /*#__PURE__*/dual(2, (self, n) => { * console.log(Array.takeWhile([1, 3, 2, 4, 1, 2], (x) => x < 4)) // [1, 3, 2] * ``` * - * @see {@link take} — take a fixed count - * @see {@link dropWhile} — drop while predicate holds - * @see {@link span} — split into matching prefix + rest + * @see {@link take} for keeping a fixed number of leading elements + * @see {@link dropWhile} for removing the matching prefix and keeping the rest + * @see {@link span} for splitting the matching prefix from the remaining elements * * @category getters * @since 2.0.0 @@ -1027,8 +1150,18 @@ export const takeWhile = /*#__PURE__*/dual(2, (self, predicate) => { /** * Takes elements from the start while a `Filter` succeeds, collecting transformed values. * - * - The filter receives `(element, index)`. - * - Stops at the first filter failure. + * **When to use** + * + * Use when you need to take a prefix from an iterable while a function can + * successfully extract or transform elements, stopping at the first element + * that produces a failure result. + * + * **Details** + * + * The filter receives `(element, index)` and processing stops at the first + * filter failure. + * + * @see {@link takeWhile} for taking a prefix based on a boolean predicate * * @category getters * @since 4.0.0 @@ -1060,9 +1193,16 @@ const spanIndex = (self, predicate) => { * Splits an iterable into two arrays: the longest prefix where the predicate * holds, and the remaining elements. * - * - Equivalent to `[takeWhile(pred), dropWhile(pred)]` but more efficient - * (single pass). - * - Supports refinements for type narrowing of the prefix. + * **When to use** + * + * Use when you need both the longest predicate-matching prefix and the + * remaining elements. + * + * **Details** + * + * Equivalent to `[takeWhile(pred), dropWhile(pred)]`, but more efficient + * because it runs in a single pass. Supports refinements for type narrowing of + * the prefix. * * **Example** (Splitting at predicate boundary) * @@ -1072,9 +1212,9 @@ const spanIndex = (self, predicate) => { * console.log(Array.span([1, 3, 2, 4, 5], (x) => x % 2 === 1)) // [[1, 3], [2, 4, 5]] * ``` * - * @see {@link takeWhile} — keep only the matching prefix - * @see {@link dropWhile} — keep only the rest - * @see {@link splitWhere} — split at the first element matching a predicate + * @see {@link takeWhile} for keeping only the matching prefix + * @see {@link dropWhile} for keeping only the elements after the matching prefix + * @see {@link splitWhere} for splitting at the first element that satisfies a predicate * * @category splitting * @since 2.0.0 @@ -1086,8 +1226,15 @@ export const span = /*#__PURE__*/dual(2, (self, predicate) => { /** * Removes the first `n` elements, creating a new array. * - * - `n` is clamped to `[0, length]`. - * - Returns a copy of the full array when `n <= 0`. + * **When to use** + * + * Use to keep the suffix of an iterable after skipping a fixed number of + * leading elements. + * + * **Details** + * + * `n` is clamped to `[0, length]`. When `n <= 0`, this returns a copy of the + * full array. * * **Example** (Dropping from the start) * @@ -1097,9 +1244,9 @@ export const span = /*#__PURE__*/dual(2, (self, predicate) => { * console.log(Array.drop([1, 2, 3, 4, 5], 2)) // [3, 4, 5] * ``` * - * @see {@link dropRight} — remove from the end - * @see {@link dropWhile} — remove while predicate holds - * @see {@link take} — keep from the start + * @see {@link dropRight} for removing a fixed number of elements from the end + * @see {@link dropWhile} for removing a prefix based on a predicate instead of a fixed count + * @see {@link take} for keeping a fixed number of elements from the start * * @category getters * @since 2.0.0 @@ -1111,7 +1258,13 @@ export const drop = /*#__PURE__*/dual(2, (self, n) => { /** * Removes the last `n` elements, creating a new array. * - * - `n` is clamped to `[0, length]`. + * **When to use** + * + * Use to remove the last `n` elements from an iterable. + * + * **Details** + * + * `n` is clamped to `[0, length]`. * * **Example** (Dropping from the end) * @@ -1134,7 +1287,13 @@ export const dropRight = /*#__PURE__*/dual(2, (self, n) => { /** * Drops elements from the start while the predicate holds, returning the rest. * - * - The predicate receives `(element, index)`. + * **When to use** + * + * Use to remove a leading prefix of elements that satisfy a predicate. + * + * **Details** + * + * The predicate receives `(element, index)`. * * **Example** (Dropping while condition holds) * @@ -1164,8 +1323,18 @@ export const dropWhile = /*#__PURE__*/dual(2, (self, predicate) => { /** * Drops elements from the start while a `Filter` succeeds. * - * - The filter receives `(element, index)`. - * - Returns the remaining original elements after the first filter failure. + * **When to use** + * + * Use when you need to drop a prefix from an iterable by computing a `Result` + * per element instead of using a simple boolean predicate. + * + * **Details** + * + * The filter receives `(element, index)`. The result contains the remaining + * original elements after the first filter failure. + * + * @see {@link dropWhile} for dropping a prefix with a simple boolean predicate + * @see {@link takeWhileFilter} for keeping only the matching prefix * * @category getters * @since 4.0.0 @@ -1185,6 +1354,11 @@ export const dropWhileFilter = /*#__PURE__*/dual(2, (self, f) => { * Returns the index of the first element matching the predicate, wrapped in an * `Option`. * + * **When to use** + * + * Use to find the index of the first matching element from the start of an + * iterable. + * * **Example** (Finding an index) * * ```ts @@ -1213,6 +1387,10 @@ export const findFirstIndex = /*#__PURE__*/dual(2, (self, predicate) => { * Returns the index of the last element matching the predicate, wrapped in an * `Option`. * + * **When to use** + * + * Use to find the index of the last matching element from the end of an array. + * * **Example** (Finding the last matching index) * * ```ts @@ -1240,9 +1418,16 @@ export const findLastIndex = /*#__PURE__*/dual(2, (self, predicate) => { * Returns the first element matching a predicate, refinement, or mapping * function, wrapped in `Option`. * - * - Accepts a predicate `(a, i) => boolean`, a refinement, or a function - * `(a, i) => Option` for simultaneous find-and-transform. - * - Returns `Option.none()` if no element matches. + * **When to use** + * + * Use to scan an iterable in iteration order and return the first selected + * element or mapped value as an `Option`. + * + * **Details** + * + * Accepts a predicate `(a, i) => boolean`, a refinement, or a function + * `(a, i) => Option` for simultaneous find-and-transform. If no element + * matches, this returns `Option.none()`. * * **Example** (Finding the first match) * @@ -1261,8 +1446,18 @@ export const findLastIndex = /*#__PURE__*/dual(2, (self, predicate) => { */ export const findFirst = moduleIterable.findFirst; /** - * Returns a tuple `[element, index]` of the first element matching a - * predicate, wrapped in an `Option`. + * Returns the first selected value together with its index, wrapped in an + * `Option`. + * + * **When to use** + * + * Use to find both the first matching element and its index in one pass. + * + * **Details** + * + * Accepts a predicate, a refinement, or a function returning `Option`. For an + * `Option`-returning function, returns `[mappedValue, index]` for the first + * `Some`, or `Option.none()` if no element is selected. * * **Example** (Finding element with its index) * @@ -1299,8 +1494,14 @@ export const findFirstWithIndex = /*#__PURE__*/dual(2, (self, f) => { * Returns the last element matching a predicate, refinement, or mapping * function, wrapped in `Option`. * - * - Searches from the end of the array. - * - Returns `Option.none()` if no element matches. + * **When to use** + * + * Use to find the last matching element from the end of an array. + * + * **Details** + * + * Searches from the end of the array. If no element matches, this returns + * `Option.none()`. * * **Example** (Finding the last match) * @@ -1334,11 +1535,16 @@ export const findLast = /*#__PURE__*/dual(2, (self, f) => { return Option.none(); }); /** - * Inserts an element at the specified index, returning a new `NonEmptyArray` + * Inserts an element at the specified index safely, returning a new `NonEmptyArray` * wrapped in an `Option`. * - * - Valid indices: `0` to `length` (inclusive — inserting at `length` appends). - * - Does not mutate the input. + * **When to use** + * + * Use to insert a single element at a specific position in an array. + * + * **Details** + * + * Valid indices are `0` to `length`, inclusive. Inserting at `length` appends. * * **Example** (Inserting at an index) * @@ -1363,10 +1569,16 @@ export const insertAt = /*#__PURE__*/dual(3, (self, i, b) => { return Option.some(out); }); /** - * Replaces the element at the specified index with a new value, returning a new - * array, wrapped in an `Option`. + * Replaces the element at the specified index safely with a new value, returning the + * updated array in `Option.some`. + * + * **When to use** * - * - Does not mutate the input. + * Use to set a fixed replacement value at a specific index. + * + * **Details** + * + * Returns `Option.none()` when the index is out of bounds. * * **Example** (Replacing an element) * @@ -1384,10 +1596,17 @@ export const insertAt = /*#__PURE__*/dual(3, (self, i, b) => { */ export const replace = /*#__PURE__*/dual(3, (self, i, b) => modify(self, i, () => b)); /** - * Applies a function to the element at the specified index, returning a new - * array, wrapped in an `Option`. + * Applies a function to the element at the specified index safely, returning the + * updated array in `Option.some`. + * + * **When to use** * - * - Does not mutate the input. + * Use to derive a replacement value from an array element at a specific index + * while leaving the other elements unchanged. + * + * **Details** + * + * Returns `Option.none()` when the index is out of bounds. * * **Example** (Modifying an element) * @@ -1419,7 +1638,10 @@ export const modify = /*#__PURE__*/dual(3, (self, i, f) => { * Removes the element at the specified index, returning a new array. If the * index is out of bounds, returns a copy of the original. * - * - Does not mutate the input. + * **When to use** + * + * Use when you want a missing index to be a no-op and need a fresh array result + * instead of an optional failure. * * **Example** (Removing an element) * @@ -1447,8 +1669,14 @@ export const remove = /*#__PURE__*/dual(2, (self, i) => { /** * Reverses an iterable into a new array. * - * - Does not mutate the input. - * - Preserves `NonEmptyArray` in the return type. + * **When to use** + * + * Use to reverse an iterable into a new array without mutating the original + * input. + * + * **Details** + * + * Preserves `NonEmptyArray` in the return type. * * **Example** (Reversing an array) * @@ -1465,10 +1693,14 @@ export const reverse = self => Array.from(self).reverse(); /** * Sorts an array by the given `Order`, returning a new array. * - * - Does not mutate the input. - * - Preserves `NonEmptyArray` in the return type. - * - Use {@link sortWith} to sort by a derived key, or {@link sortBy} for - * multi-key sorting. + * **When to use** + * + * Use to sort an array using a single `Order` comparator. + * + * **Details** + * + * Preserves `NonEmptyArray` in the return type. Use `sortWith` to sort by a + * derived key, or `sortBy` for multi-key sorting. * * **Example** (Sorting numbers) * @@ -1493,8 +1725,14 @@ export const sort = /*#__PURE__*/dual(2, (self, O) => { * Sorts an array by a derived key using a mapping function and an `Order` for * that key. * - * - Equivalent to `sort(Order.mapInput(order, f))` but more convenient. - * - Does not mutate the input. + * **When to use** + * + * Use when you need to sort values by a derived key, such as a string length or + * object field, while keeping the original values. + * + * **Details** + * + * Equivalent to `sort(Order.mapInput(order, f))`, but more convenient. * * **Example** (Sorting strings by length) * @@ -1505,19 +1743,26 @@ export const sort = /*#__PURE__*/dual(2, (self, O) => { * // ["b", "cc", "aaa"] * ``` * - * @see {@link sort} — sort by a direct `Order` - * @see {@link sortBy} — sort by multiple orders + * @see {@link sort} for sorting with an `Order` that compares the elements directly + * @see {@link sortBy} for sorting with multiple `Order`s applied in sequence * - * @since 2.0.0 * @category elements + * @since 2.0.0 */ export const sortWith = /*#__PURE__*/dual(3, (self, f, order) => Array.from(self).map(a => [a, f(a)]).sort(([, a], [, b]) => order(a, b)).map(([_]) => _)); /** * Sorts an array by multiple `Order`s applied in sequence: the first order is * used first; ties are broken by the second order, and so on. * - * - Data-last only (returns a function). - * - Preserves `NonEmptyArray` in the return type. + * **When to use** + * + * Use to sort by multiple criteria where later orders break ties from earlier + * ones. + * + * **Details** + * + * This is data-last only and returns a function. The return type preserves + * `NonEmptyArray`. * * **Example** (Multi-key sorting) * @@ -1561,7 +1806,13 @@ export const sortBy = (...orders) => { * Pairs elements from two iterables by position. If the iterables differ in * length, the extra elements from the longer one are discarded. * - * - Returns `NonEmptyArray` when both inputs are non-empty. + * **When to use** + * + * Use when you need simple pairs of corresponding elements from two iterables. + * + * **Details** + * + * Returns `NonEmptyArray` when both inputs are non-empty. * * **Example** (Zipping two arrays) * @@ -1582,6 +1833,11 @@ export const zip = /*#__PURE__*/dual(2, (self, that) => zipWith(self, that, Tupl * Combines elements from two iterables pairwise using a function. If the * iterables differ in length, extra elements are discarded. * + * **When to use** + * + * Use when zipping two iterables in an array pipeline and each pair should + * become a computed array element instead of a tuple. + * * **Example** (Zipping with addition) * * ```ts @@ -1640,8 +1896,14 @@ export const unzip = self => { /** * Places a separator element between every pair of elements. * - * - Preserves `NonEmptyArray` in the return type. - * - An empty input produces an empty result. + * **When to use** + * + * Use to insert a separator between elements, for example when preparing data for display or concatenation. + * + * **Details** + * + * The return type preserves `NonEmptyArray`. Empty inputs produce an empty + * result. * * **Example** (Interspersing a separator) * @@ -1675,6 +1937,10 @@ export const intersperse = /*#__PURE__*/dual(2, (self, middle) => { * Applies a function to the first element of a non-empty array, returning a * new array. * + * **When to use** + * + * Use to transform the first element of a non-empty array while preserving the rest. + * * **Example** (Modifying the head) * * ```ts @@ -1687,12 +1953,17 @@ export const intersperse = /*#__PURE__*/dual(2, (self, middle) => { * @see {@link modifyLastNonEmpty} — modify the last element * * @category elements - * @since 2.0.0 + * @since 4.0.0 */ export const modifyHeadNonEmpty = /*#__PURE__*/dual(2, (self, f) => [f(headNonEmpty(self)), ...tailNonEmpty(self)]); /** * Replaces the first element of a non-empty array with a new value. * + * **When to use** + * + * Use when you already know the array is non-empty and the replacement value + * does not depend on the current first element. + * * **Example** (Setting the head) * * ```ts @@ -1705,13 +1976,18 @@ export const modifyHeadNonEmpty = /*#__PURE__*/dual(2, (self, f) => [f(headNonEm * @see {@link setLastNonEmpty} — replace the last element * * @category elements - * @since 2.0.0 + * @since 4.0.0 */ export const setHeadNonEmpty = /*#__PURE__*/dual(2, (self, b) => modifyHeadNonEmpty(self, () => b)); /** * Applies a function to the last element of a non-empty array, returning a * new array. * + * **When to use** + * + * Use when you already know the array is non-empty and the new last element + * depends on the current last element. + * * **Example** (Modifying the last element) * * ```ts @@ -1724,12 +2000,17 @@ export const setHeadNonEmpty = /*#__PURE__*/dual(2, (self, b) => modifyHeadNonEm * @see {@link modifyHeadNonEmpty} — modify the first element * * @category elements - * @since 2.0.0 + * @since 4.0.0 */ export const modifyLastNonEmpty = /*#__PURE__*/dual(2, (self, f) => append(initNonEmpty(self), f(lastNonEmpty(self)))); /** * Replaces the last element of a non-empty array with a new value. * + * **When to use** + * + * Use when you already know the array is non-empty and the replacement value + * does not depend on the current last element. + * * **Example** (Setting the last element) * * ```ts @@ -1742,15 +2023,23 @@ export const modifyLastNonEmpty = /*#__PURE__*/dual(2, (self, f) => append(initN * @see {@link setHeadNonEmpty} — replace the first element * * @category elements - * @since 2.0.0 + * @since 4.0.0 */ export const setLastNonEmpty = /*#__PURE__*/dual(2, (self, b) => modifyLastNonEmpty(self, () => b)); /** - * Rotates an array by `n` steps. Positive `n` rotates left (front elements - * move to the back). + * Transforms an array by rotating it `n` steps. Positive `n` rotates right; negative `n` + * rotates left. + * + * **When to use** * - * - Preserves `NonEmptyArray` in the return type. - * - Returns a copy for empty arrays or `n === 0`. + * Use when elements should wrap around the end of the array rather than being + * dropped. + * + * **Details** + * + * `n` is rounded to the nearest integer before rotating. The return type + * preserves `NonEmptyArray`. Empty arrays, or rotations normalized to `0`, + * return a copy. * * **Example** (Rotating elements) * @@ -1760,6 +2049,9 @@ export const setLastNonEmpty = /*#__PURE__*/dual(2, (self, b) => modifyLastNonEm * console.log(Array.rotate(["a", "b", "c", "d"], 2)) // ["c", "d", "a", "b"] * ``` * + * @see {@link take} for taking a fixed number of elements from the start + * @see {@link drop} for dropping a fixed number of elements from the start + * * @category elements * @since 2.0.0 */ @@ -1783,6 +2075,11 @@ export const rotate = /*#__PURE__*/dual(2, (self, n) => { /** * Returns a membership-test function using a custom equivalence. * + * **When to use** + * + * Use when checking membership with caller-provided equality instead of + * `Equal.equivalence()`. + * * **Example** (Custom equality check) * * ```ts @@ -1792,7 +2089,7 @@ export const rotate = /*#__PURE__*/dual(2, (self, n) => { * console.log(pipe([1, 2, 3, 4], containsNumber(3))) // true * ``` * - * @see {@link contains} — uses default `Equal.equivalence()` + * @see {@link contains} for the `Equal.equivalence()` variant * * @category elements * @since 2.0.0 @@ -1806,9 +2103,14 @@ export const containsWith = isEquivalent => dual(2, (self, a) => { return false; }); /** - * Tests whether an array contains a value, using `Equal.equivalence()` for + * Checks whether an array contains a value, using `Equal.equivalence()` for * comparison. * + * **When to use** + * + * Use to check whether an iterable contains a value using Effect's default + * equality instead of providing a comparison function. + * * **Example** (Checking membership) * * ```ts @@ -1824,13 +2126,18 @@ export const containsWith = isEquivalent => dual(2, (self, a) => { */ export const contains = /*#__PURE__*/containsWith(/*#__PURE__*/Equal.asEquivalence()); /** - * Repeatedly applies a function that consumes a prefix of the array and - * produces a value plus the remaining elements, collecting the values. + * Applies a function repeatedly to consume prefixes of the array and collect + * the values it produces. + * + * **When to use** * - * - The function receives a `NonEmptyReadonlyArray` and returns - * `[value, rest]`. - * - Continues until the remaining array is empty. - * - Useful for custom splitting/grouping logic. + * Use when you need custom grouping logic where each step returns both a value + * and the remaining input. + * + * **Details** + * + * The function receives a `NonEmptyReadonlyArray` and returns `[value, rest]`. + * Processing continues until the remaining array is empty. * * **Example** (Chopping an array) * @@ -1868,8 +2175,14 @@ export const chop = /*#__PURE__*/dual(2, (self, f) => { /** * Splits an iterable into two arrays at the given index. * - * - `n` can be `0` (all elements in the second array). - * - `n` is floored to an integer. + * **When to use** + * + * Use to divide an array into a prefix and suffix at a specific position. + * + * **Details** + * + * `n` can be `0`, in which case all elements are placed in the second array. + * The index is floored to an integer. * * **Example** (Splitting at an index) * @@ -1900,6 +2213,11 @@ export const splitAt = /*#__PURE__*/dual(2, (self, n) => { * Splits a non-empty array into two parts at the given index. The first part * is guaranteed to be non-empty (`n` is clamped to >= 1). * + * **When to use** + * + * Use when downstream code requires the left side of the split to contain at + * least one element. + * * **Example** (Splitting a non-empty array) * * ```ts @@ -1912,7 +2230,7 @@ export const splitAt = /*#__PURE__*/dual(2, (self, n) => { * @see {@link splitAt} — for possibly-empty arrays * * @category splitting - * @since 2.0.0 + * @since 4.0.0 */ export const splitAtNonEmpty = /*#__PURE__*/dual(2, (self, n) => { const _n = Math.max(1, Math.floor(n)); @@ -1921,8 +2239,13 @@ export const splitAtNonEmpty = /*#__PURE__*/dual(2, (self, n) => { /** * Splits an iterable into `n` roughly equal-sized chunks. * - * - Uses `chunksOf(ceil(length / n))` internally. - * - The last chunk may be shorter. + * **When to use** + * + * Use to distribute elements across a fixed number of groups, such as when splitting work across threads. + * + * **Details** + * + * Uses `chunksOf(ceil(length / n))` internally. The last chunk may be shorter. * * **Example** (Splitting into groups) * @@ -1934,8 +2257,8 @@ export const splitAtNonEmpty = /*#__PURE__*/dual(2, (self, n) => { * * @see {@link chunksOf} — split into fixed-size chunks * - * @since 2.0.0 * @category splitting + * @since 2.0.0 */ export const split = /*#__PURE__*/dual(2, (self, n) => { const input = fromIterable(self); @@ -1945,6 +2268,11 @@ export const split = /*#__PURE__*/dual(2, (self, n) => { * Splits an iterable at the first element matching the predicate. The matching * element is included in the second array. * + * **When to use** + * + * Use when you need to split an array at the first element that marks a + * condition boundary. + * * **Example** (Splitting at a condition) * * ```ts @@ -1963,8 +2291,15 @@ export const splitWhere = /*#__PURE__*/dual(2, (self, predicate) => span(self, ( /** * Creates a shallow copy of an array. * - * - Preserves `NonEmptyArray` in the return type. - * - Useful when you need a distinct reference (e.g. before mutating). + * **When to use** + * + * Use to create a distinct array reference for an existing array, for example + * before mutating the returned array. + * + * **Details** + * + * The return type preserves `NonEmptyArray`. Use this when you need a distinct + * reference, for example before mutating the returned array. * * **Example** (Copying an array) * @@ -1987,7 +2322,13 @@ export const copy = self => self.slice(); * Pads or truncates an array to exactly `n` elements, filling with `fill` * if the array is shorter, or slicing if longer. * - * - Returns an empty array when `n <= 0`. + * **When to use** + * + * Use to ensure an array has a specific length, padding with a fill value or truncating as needed. + * + * **Details** + * + * Returns an empty array when `n <= 0`. * * **Example** (Padding an array) * @@ -2013,9 +2354,15 @@ export const pad = /*#__PURE__*/dual(3, (self, n, fill) => { * Splits an iterable into chunks of length `n`. The last chunk may be shorter * if `n` does not evenly divide the length. * - * - `chunksOf(n)([])` is `[]`, not `[[]]`. - * - Each chunk is a `NonEmptyArray`. - * - Preserves `NonEmptyArray` in the outer return type. + * **When to use** + * + * Use to divide an iterable into a new array of non-overlapping chunks with a + * maximum chunk size. + * + * **Details** + * + * `chunksOf(n)([])` is `[]`, not `[[]]`. Each chunk is a `NonEmptyArray`, and + * the outer return type preserves `NonEmptyArray`. * * **Example** (Chunking an array) * @@ -2041,8 +2388,14 @@ export const chunksOf = /*#__PURE__*/dual(2, (self, n) => { /** * Creates overlapping sliding windows of size `n`. * - * - Returns an empty array if `n <= 0` or the array has fewer than `n` elements. - * - Each window is a tuple of exactly `n` elements. + * **When to use** + * + * Use to process sequences with a moving window, such as for computing running averages or detecting patterns. + * + * **Details** + * + * Returns an empty array if `n <= 0` or the array has fewer than `n` elements. + * Each window is a tuple of exactly `n` elements. * * **Example** (Sliding windows) * @@ -2070,8 +2423,15 @@ export const window = /*#__PURE__*/dual(2, (self, n) => { /** * Groups consecutive equal elements using a custom equivalence function. * - * - Only groups **adjacent** elements — non-adjacent duplicates stay separate. - * - Requires a `NonEmptyReadonlyArray`. + * **When to use** + * + * Use when you already have a non-empty array arranged so matching elements are + * adjacent and need a custom equivalence function. + * + * **Details** + * + * Only adjacent elements are grouped. Non-adjacent duplicates stay separate. + * Requires a `NonEmptyReadonlyArray`. * * **Example** (Grouping consecutive equal elements) * @@ -2082,8 +2442,8 @@ export const window = /*#__PURE__*/dual(2, (self, n) => { * // [["a", "a"], ["b", "b", "b"], ["c"], ["a"]] * ``` * - * @see {@link group} — uses default equality - * @see {@link groupBy} — group by a key function into a record + * @see {@link group} for grouping adjacent elements with `Equal.equivalence()` + * @see {@link groupBy} for grouping all elements into a record by key, regardless of adjacency * * @category grouping * @since 2.0.0 @@ -2105,7 +2465,14 @@ export const groupWith = /*#__PURE__*/dual(2, (self, isEquivalent) => chop(self, /** * Groups consecutive equal elements using `Equal.equivalence()`. * - * - Only groups **adjacent** elements. + * **When to use** + * + * Use when you already have adjacent equal values and Effect's default equality + * is the right comparison. + * + * **Details** + * + * Only adjacent elements are grouped. * * **Example** (Grouping adjacent equal elements) * @@ -2126,9 +2493,14 @@ export const group = /*#__PURE__*/groupWith(/*#__PURE__*/Equal.asEquivalence()); * Groups elements into a record by a key-returning function. Each key maps * to a `NonEmptyArray` of elements that produced that key. * - * - Unlike {@link group}/{@link groupWith}, elements do not need to be - * adjacent to be grouped together. - * - Key function must return a `string` or `symbol`. + * **When to use** + * + * Use to build buckets of elements indexed by a computed string or symbol key. + * + * **Details** + * + * Unlike `group` and `groupWith`, elements do not need to be adjacent to be + * grouped together. The key function must return a `string` or `symbol`. * * **Example** (Grouping by a property) * @@ -2168,6 +2540,11 @@ export const groupBy = /*#__PURE__*/dual(2, (self, f) => { * Computes the union of two arrays using a custom equivalence, removing * duplicates. * + * **When to use** + * + * Use when you need the union of two arrays but duplicate detection must use a + * custom equivalence instead of the default `Equal.equivalence()`. + * * **Example** (Union with custom equality) * * ```ts @@ -2176,9 +2553,9 @@ export const groupBy = /*#__PURE__*/dual(2, (self, f) => { * console.log(Array.unionWith([1, 2], [2, 3], (a, b) => a === b)) // [1, 2, 3] * ``` * - * @see {@link union} — uses default equality - * @see {@link intersection} — elements in both arrays - * @see {@link difference} — elements only in the first array + * @see {@link union} for the `Equal.equivalence()` variant + * @see {@link intersectionWith} for keeping elements present in both arrays + * @see {@link differenceWith} for keeping elements present only in the first array * * @category elements * @since 2.0.0 @@ -2219,6 +2596,11 @@ export const union = /*#__PURE__*/dual(2, (self, that) => unionWith(self, that, * Computes the intersection of two arrays using a custom equivalence. Order is * determined by the first array. * + * **When to use** + * + * Use when you need to keep only values present in both arrays and equality + * must be defined by a custom comparator, such as matching objects by id. + * * **Example** (Intersection with custom equality) * * ```ts @@ -2230,9 +2612,9 @@ export const union = /*#__PURE__*/dual(2, (self, that) => unionWith(self, that, * console.log(Array.intersectionWith(isEquivalent)(array2)(array1)) // [{ id: 1 }, { id: 3 }] * ``` * - * @see {@link intersection} — uses default equality - * @see {@link union} — elements in either array - * @see {@link difference} — elements only in the first array + * @see {@link intersection} for the `Equal.equivalence()` variant + * @see {@link unionWith} for keeping values from either array with custom equality + * @see {@link differenceWith} for keeping values only from the first array with custom equality * * @category elements * @since 2.0.0 @@ -2248,6 +2630,11 @@ export const intersectionWith = isEquivalent => { * Computes the intersection of two arrays using `Equal.equivalence()`. Order is * determined by the first array. * + * **When to use** + * + * Use when Effect equality is the right membership test and you want to keep + * values present in both inputs while preserving the first input's order. + * * **Example** (Array intersection) * * ```ts @@ -2268,6 +2655,11 @@ export const intersection = /*#__PURE__*/intersectionWith(/*#__PURE__*/Equal.asE * Computes elements in the first array that are not in the second, using a * custom equivalence. * + * **When to use** + * + * Use when you need to keep only values from the first array and equality must + * be defined by a custom comparator, such as matching objects by id. + * * **Example** (Difference with custom equality) * * ```ts @@ -2277,9 +2669,9 @@ export const intersection = /*#__PURE__*/intersectionWith(/*#__PURE__*/Equal.asE * console.log(diff) // [1] * ``` * - * @see {@link difference} — uses default equality - * @see {@link union} — elements in either array - * @see {@link intersection} — elements in both arrays + * @see {@link difference} for the `Equal.equivalence()` variant + * @see {@link unionWith} for keeping values from either array with custom equality + * @see {@link intersectionWith} for keeping values present in both arrays with custom equality * * @category elements * @since 2.0.0 @@ -2295,6 +2687,11 @@ export const differenceWith = isEquivalent => { * Computes elements in the first array that are not in the second, using * `Equal.equivalence()`. * + * **When to use** + * + * Use when you need to keep values from the first array that are absent from + * the second and the default `Equal.equivalence()` comparison is appropriate. + * * **Example** (Array difference) * * ```ts @@ -2314,6 +2711,10 @@ export const difference = /*#__PURE__*/differenceWith(/*#__PURE__*/Equal.asEquiv /** * Creates an empty array. * + * **When to use** + * + * Use to create a typed empty array without allocating placeholder elements. + * * **Example** (Creating an empty array) * * ```ts @@ -2351,8 +2752,14 @@ export const of = a => [a]; /** * Transforms each element using a function, returning a new array. * - * - The function receives `(element, index)`. - * - Preserves `NonEmptyArray` in the return type. + * **When to use** + * + * Use to transform each element independently while preserving the array shape. + * + * **Details** + * + * The function receives `(element, index)`. The return type preserves + * `NonEmptyArray`. * * **Example** (Doubling values) * @@ -2371,8 +2778,15 @@ export const map = /*#__PURE__*/dual(2, (self, f) => self.map(f)); /** * Maps each element to an array and flattens the results into a single array. * - * - The function receives `(element, index)`. - * - Returns `NonEmptyArray` when both input and mapped arrays are non-empty. + * **When to use** + * + * Use to map each array element to zero or more values and concatenate the + * results in one pass. + * + * **Details** + * + * The function receives `(element, index)`. This returns `NonEmptyArray` when + * both the input and mapped arrays are non-empty. * * **Example** (FlatMapping an array) * @@ -2404,6 +2818,11 @@ export const flatMap = /*#__PURE__*/dual(2, (self, f) => { /** * Flattens a nested array of arrays into a single array. * + * **When to use** + * + * Use to collapse one level of nested arrays when no per-element mapping is + * needed. + * * **Example** (Flattening nested arrays) * * ```ts @@ -2421,6 +2840,11 @@ export const flatten = /*#__PURE__*/flatMap(identity); /** * Extracts all `Some` values from an iterable of `Option`s, discarding `None`s. * + * **When to use** + * + * Use to collect only present values from an iterable of `Option` values while + * discarding `None` values. + * * **Example** (Extracting Some values) * * ```ts @@ -2448,6 +2872,11 @@ export const getSomes = self => { * Extracts all failure values from an iterable of `Result`s, discarding * successes. * + * **When to use** + * + * Use when you can drop the success channel and only need the failure + * payloads, not the original result wrappers. + * * **Example** (Extracting failures) * * ```ts @@ -2461,7 +2890,7 @@ export const getSomes = self => { * @see {@link separate} — split into failures and successes * * @category filtering - * @since 2.0.0 + * @since 4.0.0 */ export const getFailures = self => { const out = []; @@ -2476,6 +2905,11 @@ export const getFailures = self => { * Extracts all success values from an iterable of `Result`s, discarding * failures. * + * **When to use** + * + * Use when you can drop the failure channel and only need the success + * payloads, not the original result wrappers. + * * **Example** (Extracting successes) * * ```ts @@ -2489,7 +2923,7 @@ export const getFailures = self => { * @see {@link separate} — split into failures and successes * * @category filtering - * @since 2.0.0 + * @since 4.0.0 */ export const getSuccesses = self => { const out = []; @@ -2503,8 +2937,14 @@ export const getSuccesses = self => { /** * Keeps transformed values for elements where a `Filter` succeeds. * - * - The filter receives `(element, index)`. - * - Failures are discarded. + * **When to use** + * + * Use to filter an iterable with a `Result`-returning transformation while + * discarding failures. + * + * **Details** + * + * The filter receives `(element, index)`. Failures are discarded. * * **Example** (Filter and transform) * @@ -2516,9 +2956,10 @@ export const getSuccesses = self => { * ``` * * @see {@link filter} — keep original elements matching a predicate + * @see {@link partition} for keeping both failures and successes * * @category filtering - * @since 4.0.0 + * @since 2.0.0 */ export const filterMap = /*#__PURE__*/dual(2, (self, f) => { const as = fromIterable(self); @@ -2534,8 +2975,15 @@ export const filterMap = /*#__PURE__*/dual(2, (self, f) => { /** * Keeps only elements satisfying a predicate (or refinement). * - * - The predicate receives `(element, index)`. - * - Supports refinements for type narrowing. + * **When to use** + * + * Use to filter an iterable into a new array of original elements that satisfy + * a boolean predicate or refinement. + * + * **Details** + * + * The predicate receives `(element, index)`. Refinements are supported for type + * narrowing. * * **Example** (Filtering even numbers) * @@ -2546,6 +2994,7 @@ export const filterMap = /*#__PURE__*/dual(2, (self, f) => { * ``` * * @see {@link partition} — split into matching and non-matching + * @see {@link filterMap} for transforming while filtering * * @category filtering * @since 2.0.0 @@ -2563,8 +3012,14 @@ export const filter = /*#__PURE__*/dual(2, (self, predicate) => { /** * Splits an iterable using a `Filter` into failures and successes. * - * - Returns `[excluded, satisfying]`. - * - The filter receives `(element, index)`. + * **When to use** + * + * Use to partition an iterable by evaluating each element with a + * `Result`-returning filter and keeping both failure and success values. + * + * **Details** + * + * Returns `[excluded, satisfying]`. The filter receives `(element, index)`. * * **Example** (Partitioning with a filter) * @@ -2578,7 +3033,8 @@ export const filter = /*#__PURE__*/dual(2, (self, predicate) => { * ``` * * @see {@link filter} — keep only matching elements - * @see {@link partitionMap} — partition using a Result-returning function + * @see {@link filterMap} for discarding failures + * @see {@link separate} — split an iterable of `Result` values * * @category filtering * @since 2.0.0 @@ -2598,9 +3054,16 @@ export const partition = /*#__PURE__*/dual(2, (self, f) => { return [excluded, satisfying]; }); /** - * Separates an iterable of `Result`s into two arrays: failures and successes. + * Separates an iterable of `Result`s into failure values and success values. * - * - Equivalent to `partitionMap(identity)`. + * **When to use** + * + * Use to split an iterable of `Result` values into failure and success arrays. + * + * **Details** + * + * Returns `[failures, successes]`. This is equivalent to + * `partition(identity)`. * * **Example** (Separating Results) * @@ -2616,6 +3079,7 @@ export const partition = /*#__PURE__*/dual(2, (self, f) => { * * @see {@link getFailures} — extract only failures * @see {@link getSuccesses} — extract only successes + * @see {@link partition} for computing `Result` values while splitting * * @category filtering * @since 2.0.0 @@ -2624,7 +3088,13 @@ export const separate = /*#__PURE__*/partition(identity); /** * Folds an iterable from left to right into a single value. * - * - The function receives `(accumulator, element, index)`. + * **When to use** + * + * Use to combine all elements into one accumulated value from left to right. + * + * **Details** + * + * The function receives `(accumulator, element, index)`. * * **Example** (Summing an array) * @@ -2644,7 +3114,13 @@ export const reduce = /*#__PURE__*/dual(3, (self, b, f) => fromIterable(self).re /** * Folds an iterable from right to left into a single value. * - * - The function receives `(accumulator, element, index)`. + * **When to use** + * + * Use when you need to fold values from right to left. + * + * **Details** + * + * The function receives `(accumulator, element, index)`. * * **Example** (Right-to-left fold) * @@ -2686,6 +3162,11 @@ export const liftPredicate = predicate => b => predicate(b) ? [b] : []; * Lifts an `Option`-returning function into one that returns an array: * `Some(a)` becomes `[a]`, `None` becomes `[]`. * + * **When to use** + * + * Use when an optional parser or lookup should participate in array pipelines + * as zero-or-one results. + * * **Example** (Lifting an Option function) * * ```ts @@ -2710,6 +3191,10 @@ export const liftOption = f => (...a) => fromOption(f(...a)); * Converts a nullable value to an array: `null`/`undefined` becomes `[]`, * anything else becomes `[value]`. * + * **When to use** + * + * Use to treat a nullable single value as zero or one array element. + * * **Example** (Nullable to array) * * ```ts @@ -2723,8 +3208,8 @@ export const liftOption = f => (...a) => fromOption(f(...a)); * @see {@link liftNullishOr} — lift a nullable-returning function * @see {@link fromOption} — convert from Option * - * @category conversions - * @since 2.0.0 + * @category converting + * @since 4.0.0 */ export const fromNullishOr = a => a == null ? empty() : [a]; /** @@ -2748,13 +3233,18 @@ export const fromNullishOr = a => a == null ? empty() : [a]; * @see {@link liftOption} — lift an Option-returning function * * @category lifting - * @since 2.0.0 + * @since 4.0.0 */ export const liftNullishOr = f => (...a) => fromNullishOr(f(...a)); /** * Maps each element with a nullable-returning function, keeping only non-null / * non-undefined results. * + * **When to use** + * + * Use when you need to map and filter in one step, where the mapper can return + * `null` or `undefined` to skip elements. + * * **Example** (FlatMapping with nullable) * * ```ts @@ -2764,14 +3254,22 @@ export const liftNullishOr = f => (...a) => fromNullishOr(f(...a)); * // [1, 3] * ``` * + * @see {@link flatMap} for mapping each element to an array and flattening + * @see {@link fromNullishOr} for converting a single nullable value to an array + * * @category sequencing - * @since 2.0.0 + * @since 4.0.0 */ export const flatMapNullishOr = /*#__PURE__*/dual(2, (self, f) => flatMap(self, a => fromNullishOr(f(a)))); /** * Lifts a `Result`-returning function into one that returns an array: failures * produce `[]`, successes produce `[value]`. * + * **When to use** + * + * Use when a fallible parser or lookup should participate in array pipelines as + * zero-or-one results and the failure value should be discarded. + * * **Example** (Lifting a Result function) * * ```ts @@ -2791,16 +3289,21 @@ export const flatMapNullishOr = /*#__PURE__*/dual(2, (self, f) => flatMap(self, * @see {@link liftPredicate} — lift a boolean predicate * * @category lifting - * @since 2.0.0 + * @since 4.0.0 */ export const liftResult = f => (...a) => { const e = f(...a); return Result.isFailure(e) ? [] : [e.success]; }; /** - * Tests whether all elements satisfy the predicate. Supports refinements for + * Checks whether all elements satisfy the predicate. Supports refinements for * type narrowing. * + * **When to use** + * + * Use to check whether every array element satisfies a predicate, including + * refinement-based type narrowing. + * * **Example** (Testing all elements) * * ```ts @@ -2817,7 +3320,7 @@ export const liftResult = f => (...a) => { */ export const every = /*#__PURE__*/dual(2, (self, refinement) => self.every(refinement)); /** - * Tests whether at least one element satisfies the predicate. Narrows the type + * Checks whether at least one element satisfies the predicate. Narrows the type * to `NonEmptyReadonlyArray` on success. * * **Example** (Testing for any match) @@ -2840,7 +3343,14 @@ export const some = /*#__PURE__*/dual(2, (self, predicate) => self.some(predicat * Applies a function to each suffix of the array (starting from each index), * collecting the results. * - * - For index `i`, the function receives `self.slice(i)`. + * **When to use** + * + * Use when you need to compute a result from every suffix of an array, such as + * cumulative aggregations from each position. + * + * **Details** + * + * For index `i`, the function receives `self.slice(i)`. * * **Example** (Suffix lengths) * @@ -2850,6 +3360,8 @@ export const some = /*#__PURE__*/dual(2, (self, predicate) => self.some(predicat * console.log(Array.extend([1, 2, 3], (as) => as.length)) // [3, 2, 1] * ``` * + * @see {@link scan} for keeping intermediate accumulator values during a fold + * * @category mapping * @since 2.0.0 */ @@ -2943,7 +3455,7 @@ export const unfold = (b, f) => { * @see {@link makeEquivalence} — create an equivalence for arrays * * @category instances - * @since 2.0.0 + * @since 4.0.0 */ export const makeOrder = Order.Array; /** @@ -2963,12 +3475,17 @@ export const makeOrder = Order.Array; * @see {@link makeOrder} — create an ordering for arrays * * @category instances - * @since 2.0.0 + * @since 4.0.0 */ export const makeEquivalence = Equivalence.Array; /** * Runs a side-effect for each element. The callback receives `(element, index)`. * + * **When to use** + * + * Use to iterate over an array for side-effects only, when no transformed + * result is needed. + * * **Example** (Iterating with side-effects) * * ```ts @@ -2977,6 +3494,8 @@ export const makeEquivalence = Equivalence.Array; * Array.forEach([1, 2, 3], (n) => console.log(n)) // 1, 2, 3 * ``` * + * @see {@link map} for transforming each element into a new array + * * @category elements * @since 2.0.0 */ @@ -2985,6 +3504,11 @@ export const forEach = /*#__PURE__*/dual(2, (self, f) => fromIterable(self).forE * Removes duplicates using a custom equivalence, preserving the order of the * first occurrence. * + * **When to use** + * + * Use to remove all duplicate elements with a custom equivalence when default + * equality is not appropriate. + * * **Example** (Deduplicating with custom equality) * * ```ts @@ -3017,6 +3541,11 @@ export const dedupeWith = /*#__PURE__*/dual(2, (self, isEquivalent) => { * Removes duplicates using `Equal.equivalence()`, preserving the order of the * first occurrence. * + * **When to use** + * + * Use to remove repeated values from an iterable when Effect's default equality + * is the right comparison, preserving the first occurrence. + * * **Example** (Removing duplicates) * * ```ts @@ -3035,7 +3564,15 @@ export const dedupe = self => dedupeWith(self, Equal.asEquivalence()); /** * Removes consecutive duplicate elements using a custom equivalence. * - * - Non-adjacent duplicates are preserved. + * **When to use** + * + * Use when consecutive duplicates should be collapsed using a custom + * equivalence, while equivalent values that appear later should remain in the + * result. + * + * **Details** + * + * Non-adjacent duplicates are preserved. * * **Example** (Deduplicating adjacent elements) * @@ -3066,6 +3603,11 @@ export const dedupeAdjacentWith = /*#__PURE__*/dual(2, (self, isEquivalent) => { /** * Removes consecutive duplicate elements using `Equal.equivalence()`. * + * **When to use** + * + * Use when you need to collapse consecutive duplicates while preserving later + * non-consecutive repeats, and the default equality is sufficient. + * * **Example** (Removing adjacent duplicates) * * ```ts @@ -3094,17 +3636,24 @@ export const dedupeAdjacent = /*#__PURE__*/dedupeAdjacentWith(/*#__PURE__*/Equal * * @see {@link intersperse} — insert separator elements without joining * - * @since 2.0.0 * @category folding + * @since 2.0.0 */ export const join = /*#__PURE__*/dual(2, (self, sep) => fromIterable(self).join(sep)); /** * Maps over an array while threading an accumulator through each step, returning both the final state and the mapped array. * - * - Combines `map` and `reduce` in a single pass. - * - The callback receives the current state, element, and index, and returns `[nextState, mappedValue]`. - * - Returns `[finalState, mappedArray]`. - * - Dual: can be used in both data-first and data-last style. + * **When to use** + * + * Use when you need to map while threading state through each element and keep + * the final state. + * + * **Details** + * + * Combines `map` and `reduce` in a single pass. The callback receives the + * current state, element, and index, and returns `[nextState, mappedValue]`. + * The result is `[finalState, mappedArray]`. This can be used in both + * data-first and data-last style. * * **Example** (Running sum alongside mapped values) * @@ -3118,8 +3667,8 @@ export const join = /*#__PURE__*/dual(2, (self, sep) => fromIterable(self).join( * @see {@link scan} — when you only need the accumulated results (not the final state) * @see {@link reduce} — when you only need the final accumulated value * - * @since 2.0.0 * @category folding + * @since 2.0.0 */ export const mapAccum = /*#__PURE__*/dual(3, (self, s, f) => { let i = 0; @@ -3136,9 +3685,16 @@ export const mapAccum = /*#__PURE__*/dual(3, (self, s, f) => { /** * Computes the cartesian product of two arrays, applying a combiner to each pair. * - * - Produces every combination of an element from `self` with an element from `that`. - * - Result length is `self.length * that.length`. - * - Order: iterates `that` for each element of `self`. + * **When to use** + * + * Use to compute every combination from two arrays and immediately transform + * each pair into a custom result. + * + * **Details** + * + * Produces every combination of an element from `self` with an element from + * `that`, so the result length is `self.length * that.length`. Iteration visits + * every element of `that` for each element of `self`. * * **Example** (Combining numbers and letters) * @@ -3149,17 +3705,23 @@ export const mapAccum = /*#__PURE__*/dual(3, (self, s, f) => { * console.log(result) // ["1-a", "1-b", "2-a", "2-b"] * ``` * - * @see {@link cartesian} — returns tuples instead of applying a combiner + * @see {@link cartesian} for returning tuples instead of applying a combiner * - * @since 2.0.0 * @category elements + * @since 2.0.0 */ export const cartesianWith = /*#__PURE__*/dual(3, (self, that, f) => flatMap(self, a => map(that, b => f(a, b)))); /** * Computes the cartesian product of two arrays, returning all pairs as tuples. * - * - Produces every `[a, b]` combination of an element from `self` with an element from `that`. - * - Result length is `self.length * that.length`. + * **When to use** + * + * Use when you need every `[a, b]` pair from two arrays as tuples. + * + * **Details** + * + * Produces every `[a, b]` combination of an element from `self` with an element + * from `that`, so the result length is `self.length * that.length`. * * **Example** (All pairs of two arrays) * @@ -3172,19 +3734,26 @@ export const cartesianWith = /*#__PURE__*/dual(3, (self, that, f) => flatMap(sel * * @see {@link cartesianWith} — apply a combiner to each pair * - * @since 2.0.0 * @category elements + * @since 2.0.0 */ export const cartesian = /*#__PURE__*/dual(2, (self, that) => cartesianWith(self, that, (a, b) => [a, b])); // ------------------------------------------------------------------------------------- // do notation // ------------------------------------------------------------------------------------- /** - * Starting point for the "do simulation" — an array comprehension pattern. + * Provides the starting point for the "do simulation" — an array comprehension pattern. * - * - Begin a pipeline with `Do`, then use {@link bind} to introduce array variables and {@link let_ let} for plain values. - * - Each `bind` produces the cartesian product of all bound variables (like nested loops). - * - Use `filter` and `map` in the pipeline to add conditions and transformations. + * **When to use** + * + * Use when you want array-comprehension style code with do notation. + * + * **Details** + * + * Use {@link bind} to introduce array variables and {@link let_ let} for plain + * values. Each `bind` produces the cartesian product of all bound variables, + * like nested loops. Use `filter` and `map` in the pipeline to add conditions + * and transformations. * * **Example** (Array comprehension with do notation) * @@ -3210,11 +3779,18 @@ export const cartesian = /*#__PURE__*/dual(2, (self, that) => cartesianWith(self */ export const Do = /*#__PURE__*/of({}); /** - * Introduces a new array variable into a do-notation scope, producing the cartesian product with all previous bindings. + * Adds a new array variable to a do-notation scope, producing the cartesian product with all previous bindings. + * + * **When to use** + * + * Use to add another array-producing binding to an `Array.Do` pipeline, pairing + * each existing scope with every value returned by the callback. + * + * **Details** * - * - Each `bind` call adds a named property to the accumulated object. - * - The callback receives the current scope and must return an array. - * - Equivalent to `flatMap` + merging the new value into the scope object. + * Each `bind` call adds a named property to the accumulated object. The + * callback receives the current scope and must return an array. This is + * equivalent to `flatMap` plus merging the new value into the scope object. * * **Example** (Binding two arrays) * @@ -3239,10 +3815,17 @@ export const Do = /*#__PURE__*/of({}); */ export const bind = /*#__PURE__*/internalDoNotation.bind(map, flatMap); /** - * Names the elements of an array by wrapping each in an object with the given key, starting a do-notation scope. + * Wraps each array element in an object with the given key, starting a do-notation scope. * - * - Equivalent to `Array.map(self, (a) => ({ [tag]: a }))`. - * - Alternative to starting with `Do` + `bind`; useful when you already have an array. + * **When to use** + * + * Use when you already have an array and want to start a do-notation pipeline + * by naming each element. + * + * **Details** + * + * Equivalent to `Array.map(self, (a) => ({ [tag]: a }))`. This is an + * alternative to starting with `Do` plus `bind` when you already have an array. * * **Example** (Naming an existing array) * @@ -3268,8 +3851,16 @@ export { /** * Adds a computed plain value to the do-notation scope without introducing a new array dimension. * - * - Unlike {@link bind}, the callback returns a single value (not an array), so no cartesian product occurs. - * - Useful for derived or intermediate values that depend on previously bound variables. + * **When to use** + * + * Use when each do-notation branch needs a derived field from the current + * bindings without multiplying the number of branches. + * + * **Details** + * + * Unlike `bind`, the callback returns a single value instead of an array, so + * no cartesian product occurs. Use this for derived or intermediate values + * that depend on previously bound variables. * * **Example** (Adding a computed value) * @@ -3298,6 +3889,7 @@ const reducer = /*#__PURE__*/Reducer.make((a, b) => a.concat(b), []); * * @see {@link makeReducerConcat} — mutable `Array` variant * + * @category folding * @since 4.0.0 */ export function getReadonlyReducerConcat() { @@ -3308,16 +3900,24 @@ export function getReadonlyReducerConcat() { * * @see {@link getReadonlyReducerConcat} — readonly variant * + * @category folding * @since 4.0.0 */ export function makeReducerConcat() { return reducer; } /** - * Counts the elements in an iterable that satisfy a predicate. + * Computes the number of elements in an iterable that satisfy a predicate. + * + * **When to use** + * + * Use when you need to count how many elements of an iterable satisfy a + * predicate. + * + * **Details** * - * - The predicate receives both the element and its index. - * - Returns `0` for an empty iterable. + * The predicate receives both the element and its index. Empty iterables return + * `0`. * * **Example** (Counting even numbers) * diff --git a/.opencode/node_modules/effect/dist/Array.js.map b/.opencode/node_modules/effect/dist/Array.js.map index 095840b514c6b0842cff9502ea4a621e588b45d9..a73cb446ace9c041ff5de732a22ec9f0f221d149 100644 --- a/.opencode/node_modules/effect/dist/Array.js.map +++ b/.opencode/node_modules/effect/dist/Array.js.map @@ -1 +1 @@ -{"version":3,"file":"Array.js","names":["Equal","Equivalence","dual","identity","internalArray","internalDoNotation","moduleIterable","Option","Order","Record","Reducer","Result","Tuple","Array","globalThis","make","elements","allocate","n","makeBy","f","max","Math","floor","out","i","range","start","end","replicate","a","fromIterable","collection","isArray","from","ensure","self","fromRecord","toEntries","fromOption","toArray","match","onEmpty","onNonEmpty","isReadonlyArrayNonEmpty","matchLeft","headNonEmpty","tailNonEmpty","matchRight","initNonEmpty","lastNonEmpty","prepend","head","prependAll","that","concat","append","last","appendAll","scan","b","scanRight","input","length","isArrayEmpty","isReadonlyArrayEmpty","isArrayNonEmpty","isOutOfBounds","as","clamp","min","get","index","none","some","getUnsafe","Error","unprepend","unappend","tail","slice","init","take","takeRight","takeWhile","predicate","push","takeWhileFilter","result","isFailure","success","spanIndex","span","splitAt","drop","dropRight","dropWhile","dropWhileFilter","findFirstIndex","findLastIndex","findFirst","findFirstWithIndex","o","isSome","value","findLast","insertAt","splice","replace","modify","arr","remove","reverse","sort","O","sortWith","order","map","_","sortBy","orders","sortByAll","combineAll","zip","zipWith","bs","len","unzip","fa","fb","intersperse","middle","modifyHeadNonEmpty","setHeadNonEmpty","modifyLastNonEmpty","setLastNonEmpty","rotate","m","round","abs","copy","s","splitAtNonEmpty","containsWith","isEquivalent","contains","asEquivalence","chop","rest","next","_n","split","chunksOf","ceil","splitWhere","pad","fill","window","groupWith","h","group","groupBy","k","Object","hasOwn","unionWith","dedupe","dedupeWith","union","intersectionWith","has","thatArray","filter","intersection","differenceWith","difference","empty","of","flatMap","inner","j","flatten","getSomes","getFailures","failure","getSuccesses","isSuccess","filterMap","partition","excluded","satisfying","separate","reduce","reduceRight","liftPredicate","liftOption","fromNullishOr","liftNullishOr","flatMapNullishOr","liftResult","e","every","refinement","extend","unfold","isNone","makeOrder","makeEquivalence","forEach","r","dedupeAdjacentWith","lastA","dedupeAdjacent","join","sep","mapAccum","s1","cartesianWith","cartesian","Do","bind","bindTo","let_","let","reducer","getReadonlyReducerConcat","makeReducerConcat","countBy","count"],"sources":["../src/Array.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqFA,OAAO,KAAKA,KAAK,MAAM,YAAY;AACnC,OAAO,KAAKC,WAAW,MAAM,kBAAkB;AAE/C,SAASC,IAAI,EAAEC,QAAQ,QAAQ,eAAe;AAE9C,OAAO,KAAKC,aAAa,MAAM,qBAAqB;AACpD,OAAO,KAAKC,kBAAkB,MAAM,0BAA0B;AAC9D,OAAO,KAAKC,cAAc,MAAM,eAAe;AAC/C,OAAO,KAAKC,MAAM,MAAM,aAAa;AACrC,OAAO,KAAKC,KAAK,MAAM,YAAY;AAEnC,OAAO,KAAKC,MAAM,MAAM,aAAa;AACrC,OAAO,KAAKC,OAAO,MAAM,cAAc;AACvC,OAAO,KAAKC,MAAM,MAAM,aAAa;AACrC,OAAO,KAAKC,KAAK,MAAM,YAAY;AAGnC;;;;;;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ivalence","dual","identity","internalArray","internalDoNotation","moduleIterable","Option","Order","Record","Reducer","Result","Tuple","Array","globalThis","make","elements","allocate","n","makeBy","f","max","Math","floor","out","i","range","start","end","replicate","a","fromIterable","collection","isArray","from","ensure","self","fromRecord","toEntries","fromOption","toArray","match","onEmpty","onNonEmpty","isReadonlyArrayNonEmpty","matchLeft","headNonEmpty","tailNonEmpty","matchRight","initNonEmpty","lastNonEmpty","prepend","head","prependAll","that","concat","append","last","appendAll","scan","b","scanRight","input","length","isArrayEmpty","isReadonlyArrayEmpty","isArrayNonEmpty","isOutOfBounds","as","clamp","min","get","index","none","some","getUnsafe","Error","unprepend","unappend","tail","slice","init","take","takeRight","takeWhile","predicate","push","takeWhileFilter","result","isFailure","success","spanIndex","span","splitAt","drop","dropRight","dropWhile","dropWhileFilter","findFirstIndex","findLastIndex","findFirst","findFirstWithIndex","o","isSome","value","findLast","insertAt","splice","replace","modify","arr","remove","reverse","sort","O","sortWith","order","map","_","sortBy","orders","sortByAll","combineAll","zip","zipWith","bs","len","unzip","fa","fb","intersperse","middle","modifyHeadNonEmpty","setHeadNonEmpty","modifyLastNonEmpty","setLastNonEmpty","rotate","m","round","abs","copy","s","splitAtNonEmpty","containsWith","isEquivalent","contains","asEquivalence","chop","rest","next","_n","split","chunksOf","ceil","splitWhere","pad","fill","window","groupWith","h","group","groupBy","k","Object","hasOwn","unionWith","dedupe","dedupeWith","union","intersectionWith","has","thatArray","filter","intersection","differenceWith","difference","empty","of","flatMap","inner","j","flatten","getSomes","getFailures","failure","getSuccesses","isSuccess","filterMap","partition","excluded","satisfying","separate","reduce","reduceRight","liftPredicate","liftOption","fromNullishOr","liftNullishOr","flatMapNullishOr","liftResult","e","every","refinement","extend","unfold","isNone","makeOrder","makeEquivalence","forEach","r","dedupeAdjacentWith","lastA","dedupeAdjacent","join","sep","mapAccum","s1","cartesianWith","cartesian","Do","bind","bindTo","let_","let","reducer","getReadonlyReducerConcat","makeReducerConcat","countBy","count"],"sources":["../src/Array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MACX2M,KAAK,EAAE;IACT;EACF;EACA,OAAOA,KAAK;AACd,CAAC,CACF","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/BigDecimal.d.ts b/.opencode/node_modules/effect/dist/BigDecimal.d.ts index 0f967bc7acee400163487623d1aa358ee96a55ae..bdfb639561a4ff6802ccdeb40889b0951ba35fe3 100644 --- a/.opencode/node_modules/effect/dist/BigDecimal.d.ts +++ b/.opencode/node_modules/effect/dist/BigDecimal.d.ts @@ -1,15 +1,9 @@ /** - * This module provides utility functions and type class instances for working with the `BigDecimal` type in TypeScript. - * It includes functions for basic arithmetic operations. - * - * A `BigDecimal` allows storing any real number to arbitrary precision; which avoids common floating point errors - * (such as 0.1 + 0.2 ≠ 0.3) at the cost of complexity. - * - * Internally, `BigDecimal` uses a `BigInt` object, paired with a 64-bit integer which determines the position of the - * decimal point. Therefore, the precision *is not* actually arbitrary, but limited to 263 decimal places. - * - * It is not recommended to convert a floating point number to a decimal directly, as the floating point representation - * may be unexpected. + * Decimal numbers and arithmetic for cases where JavaScript `number` rounding + * is not precise enough. A `BigDecimal` stores digits as a `bigint` plus a + * decimal scale, which lets the module parse, compare, add, subtract, multiply, + * divide, round, and format decimal values such as money, quantities, and + * measurements. * * @since 2.0.0 */ @@ -24,14 +18,20 @@ declare const TypeId = "~effect/BigDecimal"; /** * Represents an arbitrary precision decimal number. * - * @example + * **When to use** + * + * Use when decimal arithmetic needs to avoid JavaScript floating point + * representation errors. + * + * **Example** (Inspecting BigDecimal storage) + * * ```ts * import { BigDecimal } from "effect" * - * const d = BigDecimal.fromNumberUnsafe(123.45) + * const d = BigDecimal.fromStringUnsafe("123.45") * - * d.value // 12345n - * d.scale // 2 + * console.log(d.value) // 12345n + * console.log(d.scale) // 2 * ``` * * @category models @@ -43,9 +43,14 @@ export interface BigDecimal extends Equal.Equal, Pipeable, Inspectable { readonly scale: number; } /** - * Checks if a given value is a `BigDecimal`. + * Checks whether a given value is a `BigDecimal`. + * + * **When to use** + * + * Use to validate unknown input and narrow it to `BigDecimal`. + * + * **Example** (Checking BigDecimal values) * - * @example * ```ts * import { BigDecimal } from "effect" * @@ -55,14 +60,20 @@ export interface BigDecimal extends Equal.Equal, Pipeable, Inspectable { * console.log(BigDecimal.isBigDecimal("123.45")) // false * ``` * - * @since 2.0.0 * @category guards + * @since 2.0.0 */ export declare const isBigDecimal: (u: unknown) => u is BigDecimal; /** * Creates a `BigDecimal` from a `bigint` value and a scale. * - * @example + * **When to use** + * + * Use to construct a decimal directly from its unscaled integer value and + * decimal scale. + * + * **Example** (Creating decimals from bigint and scale) + * * ```ts * import { BigDecimal } from "effect" * @@ -75,39 +86,57 @@ export declare const isBigDecimal: (u: unknown) => u is BigDecimal; * console.log(BigDecimal.format(integer)) // "42" * ``` * - * @since 2.0.0 + * @see {@link fromBigInt} for constructing an integer decimal from a `bigint` + * * @category constructors + * @since 2.0.0 */ export declare const make: (value: bigint, scale: number) => BigDecimal; /** * Normalizes a given `BigDecimal` by removing trailing zeros. * - * @example + * **When to use** + * + * Use to canonicalize decimals that have equivalent values but different + * internal scales. + * + * **Example** (Normalizing trailing zeros) + * * ```ts - * import { fromStringUnsafe, make, normalize } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * * assert.deepStrictEqual( - * normalize(fromStringUnsafe("123.00000")), - * normalize(make(123n, 0)) + * BigDecimal.normalize(BigDecimal.fromStringUnsafe("123.00000")), + * BigDecimal.normalize(BigDecimal.make(123n, 0)) * ) * assert.deepStrictEqual( - * normalize(fromStringUnsafe("12300000")), - * normalize(make(123n, -5)) + * BigDecimal.normalize(BigDecimal.fromStringUnsafe("12300000")), + * BigDecimal.normalize(BigDecimal.make(123n, -5)) * ) * ``` * - * @since 2.0.0 + * @see {@link format} for rendering normalized decimals as strings + * * @category scaling + * @since 2.0.0 */ export declare const normalize: (self: BigDecimal) => BigDecimal; /** - * Scales a given `BigDecimal` to the specified scale. + * Changes a `BigDecimal` to the specified scale. + * + * **When to use** * - * If the given scale is smaller than the current scale, the value will be rounded down to - * the nearest integer. + * Use to change how many decimal places are represented by a `BigDecimal`. + * + * **Details** + * + * Increasing the scale appends decimal zeros. Decreasing the scale discards + * digits beyond the target scale by `bigint` division, which truncates toward + * zero. + * + * **Example** (Scaling decimal precision) * - * @example * ```ts * import { BigDecimal } from "effect" * @@ -122,17 +151,27 @@ export declare const normalize: (self: BigDecimal) => BigDecimal; * console.log(BigDecimal.format(reduced)) // "123.4" * ``` * - * @since 2.0.0 + * @see {@link round} for changing scale with configurable rounding + * * @category scaling + * @since 2.0.0 */ export declare const scale: { /** - * Scales a given `BigDecimal` to the specified scale. + * Changes a `BigDecimal` to the specified scale. * - * If the given scale is smaller than the current scale, the value will be rounded down to - * the nearest integer. + * **When to use** + * + * Use to change how many decimal places are represented by a `BigDecimal`. + * + * **Details** + * + * Increasing the scale appends decimal zeros. Decreasing the scale discards + * digits beyond the target scale by `bigint` division, which truncates toward + * zero. + * + * **Example** (Scaling decimal precision) * - * @example * ```ts * import { BigDecimal } from "effect" * @@ -147,17 +186,27 @@ export declare const scale: { * console.log(BigDecimal.format(reduced)) // "123.4" * ``` * - * @since 2.0.0 + * @see {@link round} for changing scale with configurable rounding + * * @category scaling + * @since 2.0.0 */ (scale: number): (self: BigDecimal) => BigDecimal; /** - * Scales a given `BigDecimal` to the specified scale. + * Changes a `BigDecimal` to the specified scale. + * + * **When to use** + * + * Use to change how many decimal places are represented by a `BigDecimal`. * - * If the given scale is smaller than the current scale, the value will be rounded down to - * the nearest integer. + * **Details** + * + * Increasing the scale appends decimal zeros. Decreasing the scale discards + * digits beyond the target scale by `bigint` division, which truncates toward + * zero. + * + * **Example** (Scaling decimal precision) * - * @example * ```ts * import { BigDecimal } from "effect" * @@ -172,419 +221,553 @@ export declare const scale: { * console.log(BigDecimal.format(reduced)) // "123.4" * ``` * - * @since 2.0.0 + * @see {@link round} for changing scale with configurable rounding + * * @category scaling + * @since 2.0.0 */ (self: BigDecimal, scale: number): BigDecimal; }; /** * Provides an addition operation on `BigDecimal`s. * - * @example + * **When to use** + * + * Use when you need a decimal addition function for piping or higher-order APIs + * while preserving decimal precision. + * + * **Example** (Adding decimals) + * * ```ts - * import { fromStringUnsafe, sum } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * * assert.deepStrictEqual( - * sum(fromStringUnsafe("2"), fromStringUnsafe("3")), - * fromStringUnsafe("5") + * BigDecimal.sum(BigDecimal.fromStringUnsafe("2"), BigDecimal.fromStringUnsafe("3")), + * BigDecimal.fromStringUnsafe("5") * ) * ``` * - * @since 2.0.0 + * @see {@link sumAll} for summing an iterable of `BigDecimal` values + * * @category math + * @since 2.0.0 */ export declare const sum: { /** * Provides an addition operation on `BigDecimal`s. * - * @example + * **When to use** + * + * Use when you need a decimal addition function for piping or higher-order APIs + * while preserving decimal precision. + * + * **Example** (Adding decimals) + * * ```ts - * import { fromStringUnsafe, sum } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * * assert.deepStrictEqual( - * sum(fromStringUnsafe("2"), fromStringUnsafe("3")), - * fromStringUnsafe("5") + * BigDecimal.sum(BigDecimal.fromStringUnsafe("2"), BigDecimal.fromStringUnsafe("3")), + * BigDecimal.fromStringUnsafe("5") * ) * ``` * - * @since 2.0.0 + * @see {@link sumAll} for summing an iterable of `BigDecimal` values + * * @category math + * @since 2.0.0 */ (that: BigDecimal): (self: BigDecimal) => BigDecimal; /** * Provides an addition operation on `BigDecimal`s. * - * @example + * **When to use** + * + * Use when you need a decimal addition function for piping or higher-order APIs + * while preserving decimal precision. + * + * **Example** (Adding decimals) + * * ```ts - * import { fromStringUnsafe, sum } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * * assert.deepStrictEqual( - * sum(fromStringUnsafe("2"), fromStringUnsafe("3")), - * fromStringUnsafe("5") + * BigDecimal.sum(BigDecimal.fromStringUnsafe("2"), BigDecimal.fromStringUnsafe("3")), + * BigDecimal.fromStringUnsafe("5") * ) * ``` * - * @since 2.0.0 + * @see {@link sumAll} for summing an iterable of `BigDecimal` values + * * @category math + * @since 2.0.0 */ (self: BigDecimal, that: BigDecimal): BigDecimal; }; /** * Takes an `Iterable` of `BigDecimal`s and returns their sum as a single `BigDecimal`. * - * @example + * **When to use** + * + * Use when you need to aggregate decimal quantities with decimal precision + * instead of converting through JavaScript numbers. + * + * **Example** (Adding multiple decimals) + * * ```ts - * import { fromStringUnsafe, sumAll } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * * assert.deepStrictEqual( - * sumAll([fromStringUnsafe("2"), fromStringUnsafe("3"), fromStringUnsafe("4")]), - * fromStringUnsafe("9") + * BigDecimal.sumAll([BigDecimal.fromStringUnsafe("2"), BigDecimal.fromStringUnsafe("3"), BigDecimal.fromStringUnsafe("4")]), + * BigDecimal.fromStringUnsafe("9") * ) * ``` * - * @since 4.0.0 + * @see {@link sum} for adding two `BigDecimal` values + * * @category math + * @since 3.16.0 */ export declare const sumAll: (collection: Iterable) => BigDecimal; /** * Provides a multiplication operation on `BigDecimal`s. * - * @example + * **When to use** + * + * Use to multiply two `BigDecimal` values. + * + * **Example** (Multiplying decimals) + * * ```ts - * import { fromStringUnsafe, multiply } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * * assert.deepStrictEqual( - * multiply(fromStringUnsafe("2"), fromStringUnsafe("3")), - * fromStringUnsafe("6") + * BigDecimal.multiply(BigDecimal.fromStringUnsafe("2"), BigDecimal.fromStringUnsafe("3")), + * BigDecimal.fromStringUnsafe("6") * ) * ``` * - * @since 2.0.0 + * @see {@link multiplyAll} for multiplying an iterable of `BigDecimal` values + * * @category math + * @since 2.0.0 */ export declare const multiply: { /** * Provides a multiplication operation on `BigDecimal`s. * - * @example + * **When to use** + * + * Use to multiply two `BigDecimal` values. + * + * **Example** (Multiplying decimals) + * * ```ts - * import { fromStringUnsafe, multiply } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * * assert.deepStrictEqual( - * multiply(fromStringUnsafe("2"), fromStringUnsafe("3")), - * fromStringUnsafe("6") + * BigDecimal.multiply(BigDecimal.fromStringUnsafe("2"), BigDecimal.fromStringUnsafe("3")), + * BigDecimal.fromStringUnsafe("6") * ) * ``` * - * @since 2.0.0 + * @see {@link multiplyAll} for multiplying an iterable of `BigDecimal` values + * * @category math + * @since 2.0.0 */ (that: BigDecimal): (self: BigDecimal) => BigDecimal; /** * Provides a multiplication operation on `BigDecimal`s. * - * @example + * **When to use** + * + * Use to multiply two `BigDecimal` values. + * + * **Example** (Multiplying decimals) + * * ```ts - * import { fromStringUnsafe, multiply } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * * assert.deepStrictEqual( - * multiply(fromStringUnsafe("2"), fromStringUnsafe("3")), - * fromStringUnsafe("6") + * BigDecimal.multiply(BigDecimal.fromStringUnsafe("2"), BigDecimal.fromStringUnsafe("3")), + * BigDecimal.fromStringUnsafe("6") * ) * ``` * - * @since 2.0.0 + * @see {@link multiplyAll} for multiplying an iterable of `BigDecimal` values + * * @category math + * @since 2.0.0 */ (self: BigDecimal, that: BigDecimal): BigDecimal; }; /** * Takes an `Iterable` of `BigDecimal`s and returns their multiplication as a single `BigDecimal`. * - * @example + * **When to use** + * + * Use to multiply all `BigDecimal` values in an iterable. + * + * **Example** (Multiplying multiple decimals) + * * ```ts - * import { fromStringUnsafe, multiplyAll } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * * assert.deepStrictEqual( - * multiplyAll([fromStringUnsafe("2"), fromStringUnsafe("3"), fromStringUnsafe("4")]), - * fromStringUnsafe("24") + * BigDecimal.multiplyAll([BigDecimal.fromStringUnsafe("2"), BigDecimal.fromStringUnsafe("3"), BigDecimal.fromStringUnsafe("4")]), + * BigDecimal.fromStringUnsafe("24") * ) * ``` * - * @since 4.0.0 + * @see {@link multiply} for multiplying two `BigDecimal` values + * * @category math + * @since 4.0.0 */ export declare const multiplyAll: (collection: Iterable) => BigDecimal; /** * Provides a subtraction operation on `BigDecimal`s. * - * @example + * **When to use** + * + * Use to subtract one `BigDecimal` value from another. + * + * **Example** (Subtracting decimals) + * * ```ts - * import { fromStringUnsafe, subtract } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * * assert.deepStrictEqual( - * subtract(fromStringUnsafe("2"), fromStringUnsafe("3")), - * fromStringUnsafe("-1") + * BigDecimal.subtract(BigDecimal.fromStringUnsafe("2"), BigDecimal.fromStringUnsafe("3")), + * BigDecimal.fromStringUnsafe("-1") * ) * ``` * - * @since 2.0.0 * @category math + * @since 2.0.0 */ export declare const subtract: { /** * Provides a subtraction operation on `BigDecimal`s. * - * @example + * **When to use** + * + * Use to subtract one `BigDecimal` value from another. + * + * **Example** (Subtracting decimals) + * * ```ts - * import { fromStringUnsafe, subtract } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * * assert.deepStrictEqual( - * subtract(fromStringUnsafe("2"), fromStringUnsafe("3")), - * fromStringUnsafe("-1") + * BigDecimal.subtract(BigDecimal.fromStringUnsafe("2"), BigDecimal.fromStringUnsafe("3")), + * BigDecimal.fromStringUnsafe("-1") * ) * ``` * - * @since 2.0.0 * @category math + * @since 2.0.0 */ (that: BigDecimal): (self: BigDecimal) => BigDecimal; /** * Provides a subtraction operation on `BigDecimal`s. * - * @example + * **When to use** + * + * Use to subtract one `BigDecimal` value from another. + * + * **Example** (Subtracting decimals) + * * ```ts - * import { fromStringUnsafe, subtract } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * * assert.deepStrictEqual( - * subtract(fromStringUnsafe("2"), fromStringUnsafe("3")), - * fromStringUnsafe("-1") + * BigDecimal.subtract(BigDecimal.fromStringUnsafe("2"), BigDecimal.fromStringUnsafe("3")), + * BigDecimal.fromStringUnsafe("-1") * ) * ``` * - * @since 2.0.0 * @category math + * @since 2.0.0 */ (self: BigDecimal, that: BigDecimal): BigDecimal; }; /** - * Provides a division operation on `BigDecimal`s. + * Divides `BigDecimal`s safely. * - * If the dividend is not a multiple of the divisor the result will be a `BigDecimal` value - * which represents the integer division rounded down to the nearest integer. + * **When to use** * - * If the divisor is `0`, the result will be `Option.none()`. + * Use to divide `BigDecimal` values while representing division by zero as + * `Option.none`. + * + * **Details** + * + * If the dividend is not a multiple of the divisor, the result will be a `BigDecimal` value + * with up to the default division precision. If the divisor is `0`, the result + * will be `Option.none()`. + * + * **Example** (Dividing decimals safely) * - * @example * ```ts * import { BigDecimal, Option } from "effect" - * import * as assert from "node:assert" * - * assert.deepStrictEqual( - * BigDecimal.divide( - * BigDecimal.fromStringUnsafe("6"), - * BigDecimal.fromStringUnsafe("3") - * ), - * Option.some(BigDecimal.fromStringUnsafe("2")) - * ) - * assert.deepStrictEqual( - * BigDecimal.divide( - * BigDecimal.fromStringUnsafe("6"), - * BigDecimal.fromStringUnsafe("4") - * ), - * Option.some(BigDecimal.fromStringUnsafe("1.5")) - * ) - * assert.deepStrictEqual( - * BigDecimal.divide( - * BigDecimal.fromStringUnsafe("6"), - * BigDecimal.fromStringUnsafe("0") - * ), - * Option.none() - * ) + * console.log( + * Option.getOrThrow( + * BigDecimal.divide( + * BigDecimal.fromStringUnsafe("6"), + * BigDecimal.fromStringUnsafe("3") + * ) + * ) + * ) // BigDecimal(2) + * console.log( + * Option.getOrThrow( + * BigDecimal.divide( + * BigDecimal.fromStringUnsafe("6"), + * BigDecimal.fromStringUnsafe("4") + * ) + * ) + * ) // BigDecimal(1.5) + * console.log( + * Option.isNone( + * BigDecimal.divide( + * BigDecimal.fromStringUnsafe("6"), + * BigDecimal.fromStringUnsafe("0") + * ) + * ) + * ) // true * ``` * - * @since 2.0.0 + * @see {@link divideUnsafe} for division that throws when the divisor is zero + * @see {@link remainder} for the decimal remainder operation + * * @category math + * @since 2.0.0 */ export declare const divide: { /** - * Provides a division operation on `BigDecimal`s. + * Divides `BigDecimal`s safely. * - * If the dividend is not a multiple of the divisor the result will be a `BigDecimal` value - * which represents the integer division rounded down to the nearest integer. + * **When to use** * - * If the divisor is `0`, the result will be `Option.none()`. + * Use to divide `BigDecimal` values while representing division by zero as + * `Option.none`. + * + * **Details** + * + * If the dividend is not a multiple of the divisor, the result will be a `BigDecimal` value + * with up to the default division precision. If the divisor is `0`, the result + * will be `Option.none()`. + * + * **Example** (Dividing decimals safely) * - * @example * ```ts * import { BigDecimal, Option } from "effect" - * import * as assert from "node:assert" * - * assert.deepStrictEqual( - * BigDecimal.divide( - * BigDecimal.fromStringUnsafe("6"), - * BigDecimal.fromStringUnsafe("3") - * ), - * Option.some(BigDecimal.fromStringUnsafe("2")) - * ) - * assert.deepStrictEqual( - * BigDecimal.divide( - * BigDecimal.fromStringUnsafe("6"), - * BigDecimal.fromStringUnsafe("4") - * ), - * Option.some(BigDecimal.fromStringUnsafe("1.5")) - * ) - * assert.deepStrictEqual( - * BigDecimal.divide( - * BigDecimal.fromStringUnsafe("6"), - * BigDecimal.fromStringUnsafe("0") - * ), - * Option.none() - * ) + * console.log( + * Option.getOrThrow( + * BigDecimal.divide( + * BigDecimal.fromStringUnsafe("6"), + * BigDecimal.fromStringUnsafe("3") + * ) + * ) + * ) // BigDecimal(2) + * console.log( + * Option.getOrThrow( + * BigDecimal.divide( + * BigDecimal.fromStringUnsafe("6"), + * BigDecimal.fromStringUnsafe("4") + * ) + * ) + * ) // BigDecimal(1.5) + * console.log( + * Option.isNone( + * BigDecimal.divide( + * BigDecimal.fromStringUnsafe("6"), + * BigDecimal.fromStringUnsafe("0") + * ) + * ) + * ) // true * ``` * - * @since 2.0.0 + * @see {@link divideUnsafe} for division that throws when the divisor is zero + * @see {@link remainder} for the decimal remainder operation + * * @category math + * @since 2.0.0 */ (that: BigDecimal): (self: BigDecimal) => Option.Option; /** - * Provides a division operation on `BigDecimal`s. + * Divides `BigDecimal`s safely. * - * If the dividend is not a multiple of the divisor the result will be a `BigDecimal` value - * which represents the integer division rounded down to the nearest integer. + * **When to use** * - * If the divisor is `0`, the result will be `Option.none()`. + * Use to divide `BigDecimal` values while representing division by zero as + * `Option.none`. + * + * **Details** + * + * If the dividend is not a multiple of the divisor, the result will be a `BigDecimal` value + * with up to the default division precision. If the divisor is `0`, the result + * will be `Option.none()`. + * + * **Example** (Dividing decimals safely) * - * @example * ```ts * import { BigDecimal, Option } from "effect" - * import * as assert from "node:assert" * - * assert.deepStrictEqual( - * BigDecimal.divide( - * BigDecimal.fromStringUnsafe("6"), - * BigDecimal.fromStringUnsafe("3") - * ), - * Option.some(BigDecimal.fromStringUnsafe("2")) - * ) - * assert.deepStrictEqual( - * BigDecimal.divide( - * BigDecimal.fromStringUnsafe("6"), - * BigDecimal.fromStringUnsafe("4") - * ), - * Option.some(BigDecimal.fromStringUnsafe("1.5")) - * ) - * assert.deepStrictEqual( - * BigDecimal.divide( - * BigDecimal.fromStringUnsafe("6"), - * BigDecimal.fromStringUnsafe("0") - * ), - * Option.none() - * ) + * console.log( + * Option.getOrThrow( + * BigDecimal.divide( + * BigDecimal.fromStringUnsafe("6"), + * BigDecimal.fromStringUnsafe("3") + * ) + * ) + * ) // BigDecimal(2) + * console.log( + * Option.getOrThrow( + * BigDecimal.divide( + * BigDecimal.fromStringUnsafe("6"), + * BigDecimal.fromStringUnsafe("4") + * ) + * ) + * ) // BigDecimal(1.5) + * console.log( + * Option.isNone( + * BigDecimal.divide( + * BigDecimal.fromStringUnsafe("6"), + * BigDecimal.fromStringUnsafe("0") + * ) + * ) + * ) // true * ``` * - * @since 2.0.0 + * @see {@link divideUnsafe} for division that throws when the divisor is zero + * @see {@link remainder} for the decimal remainder operation + * * @category math + * @since 2.0.0 */ (self: BigDecimal, that: BigDecimal): Option.Option; }; /** * Provides an unsafe division operation on `BigDecimal`s. * - * If the dividend is not a multiple of the divisor the result will be a `BigDecimal` value - * which represents the integer division rounded down to the nearest integer. + * **When to use** + * + * Use when you need to divide `BigDecimal` values where the divisor is known + * to be non-zero, so division by zero should be a thrown exception. + * + * **Details** + * + * If the dividend is not a multiple of the divisor, the result will be a `BigDecimal` value + * with up to the default division precision. + * + * **Gotchas** * * Throws a `RangeError` if the divisor is `0`. * - * @example + * **Example** (Dividing decimals unsafely) + * * ```ts - * import { divideUnsafe, fromStringUnsafe } from "effect/BigDecimal" - * import * as assert from "node:assert" + * import { BigDecimal } from "effect" * - * assert.deepStrictEqual( - * divideUnsafe(fromStringUnsafe("6"), fromStringUnsafe("3")), - * fromStringUnsafe("2") - * ) - * assert.deepStrictEqual( - * divideUnsafe(fromStringUnsafe("6"), fromStringUnsafe("4")), - * fromStringUnsafe("1.5") - * ) + * console.log(BigDecimal.divideUnsafe(BigDecimal.fromStringUnsafe("6"), BigDecimal.fromStringUnsafe("3"))) // BigDecimal(2) + * console.log(BigDecimal.divideUnsafe(BigDecimal.fromStringUnsafe("6"), BigDecimal.fromStringUnsafe("4"))) // BigDecimal(1.5) * ``` * - * @since 2.0.0 + * @see {@link divide} for division that returns `Option.none` when the divisor is zero + * * @category math + * @since 4.0.0 */ export declare const divideUnsafe: { /** * Provides an unsafe division operation on `BigDecimal`s. * - * If the dividend is not a multiple of the divisor the result will be a `BigDecimal` value - * which represents the integer division rounded down to the nearest integer. + * **When to use** + * + * Use when you need to divide `BigDecimal` values where the divisor is known + * to be non-zero, so division by zero should be a thrown exception. + * + * **Details** + * + * If the dividend is not a multiple of the divisor, the result will be a `BigDecimal` value + * with up to the default division precision. + * + * **Gotchas** * * Throws a `RangeError` if the divisor is `0`. * - * @example + * **Example** (Dividing decimals unsafely) + * * ```ts - * import { divideUnsafe, fromStringUnsafe } from "effect/BigDecimal" - * import * as assert from "node:assert" + * import { BigDecimal } from "effect" * - * assert.deepStrictEqual( - * divideUnsafe(fromStringUnsafe("6"), fromStringUnsafe("3")), - * fromStringUnsafe("2") - * ) - * assert.deepStrictEqual( - * divideUnsafe(fromStringUnsafe("6"), fromStringUnsafe("4")), - * fromStringUnsafe("1.5") - * ) + * console.log(BigDecimal.divideUnsafe(BigDecimal.fromStringUnsafe("6"), BigDecimal.fromStringUnsafe("3"))) // BigDecimal(2) + * console.log(BigDecimal.divideUnsafe(BigDecimal.fromStringUnsafe("6"), BigDecimal.fromStringUnsafe("4"))) // BigDecimal(1.5) * ``` * - * @since 2.0.0 + * @see {@link divide} for division that returns `Option.none` when the divisor is zero + * * @category math + * @since 4.0.0 */ (that: BigDecimal): (self: BigDecimal) => BigDecimal; /** * Provides an unsafe division operation on `BigDecimal`s. * - * If the dividend is not a multiple of the divisor the result will be a `BigDecimal` value - * which represents the integer division rounded down to the nearest integer. + * **When to use** + * + * Use when you need to divide `BigDecimal` values where the divisor is known + * to be non-zero, so division by zero should be a thrown exception. + * + * **Details** + * + * If the dividend is not a multiple of the divisor, the result will be a `BigDecimal` value + * with up to the default division precision. + * + * **Gotchas** * * Throws a `RangeError` if the divisor is `0`. * - * @example + * **Example** (Dividing decimals unsafely) + * * ```ts - * import { divideUnsafe, fromStringUnsafe } from "effect/BigDecimal" - * import * as assert from "node:assert" + * import { BigDecimal } from "effect" * - * assert.deepStrictEqual( - * divideUnsafe(fromStringUnsafe("6"), fromStringUnsafe("3")), - * fromStringUnsafe("2") - * ) - * assert.deepStrictEqual( - * divideUnsafe(fromStringUnsafe("6"), fromStringUnsafe("4")), - * fromStringUnsafe("1.5") - * ) + * console.log(BigDecimal.divideUnsafe(BigDecimal.fromStringUnsafe("6"), BigDecimal.fromStringUnsafe("3"))) // BigDecimal(2) + * console.log(BigDecimal.divideUnsafe(BigDecimal.fromStringUnsafe("6"), BigDecimal.fromStringUnsafe("4"))) // BigDecimal(1.5) * ``` * - * @since 2.0.0 + * @see {@link divide} for division that returns `Option.none` when the divisor is zero + * * @category math + * @since 4.0.0 */ (self: BigDecimal, that: BigDecimal): BigDecimal; }; /** * Provides an `Order` instance for `BigDecimal` that allows comparing and sorting BigDecimal values. * - * @example + * **When to use** + * + * Use when you need to sort or compare decimal values through APIs that accept + * an ordering instance. + * + * **Example** (Comparing decimals) + * * ```ts * import { BigDecimal } from "effect" * @@ -597,330 +780,395 @@ export declare const divideUnsafe: { * console.log(BigDecimal.Order(a, c)) // 0 (a === c) * ``` * - * @since 2.0.0 * @category instances + * @since 2.0.0 */ export declare const Order: order.Order; /** * Returns `true` if the first argument is less than the second, otherwise `false`. * - * @example + * **When to use** + * + * Use to test whether one `BigDecimal` is strictly less than another. + * + * **Example** (Checking less-than comparisons) + * * ```ts - * import { fromStringUnsafe, isLessThan } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * * assert.deepStrictEqual( - * isLessThan(fromStringUnsafe("2"), fromStringUnsafe("3")), + * BigDecimal.isLessThan(BigDecimal.fromStringUnsafe("2"), BigDecimal.fromStringUnsafe("3")), * true * ) * assert.deepStrictEqual( - * isLessThan(fromStringUnsafe("3"), fromStringUnsafe("3")), + * BigDecimal.isLessThan(BigDecimal.fromStringUnsafe("3"), BigDecimal.fromStringUnsafe("3")), * false * ) * assert.deepStrictEqual( - * isLessThan(fromStringUnsafe("4"), fromStringUnsafe("3")), + * BigDecimal.isLessThan(BigDecimal.fromStringUnsafe("4"), BigDecimal.fromStringUnsafe("3")), * false * ) * ``` * - * @since 2.0.0 * @category predicates + * @since 4.0.0 */ export declare const isLessThan: { /** * Returns `true` if the first argument is less than the second, otherwise `false`. * - * @example + * **When to use** + * + * Use to test whether one `BigDecimal` is strictly less than another. + * + * **Example** (Checking less-than comparisons) + * * ```ts - * import { fromStringUnsafe, isLessThan } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * * assert.deepStrictEqual( - * isLessThan(fromStringUnsafe("2"), fromStringUnsafe("3")), + * BigDecimal.isLessThan(BigDecimal.fromStringUnsafe("2"), BigDecimal.fromStringUnsafe("3")), * true * ) * assert.deepStrictEqual( - * isLessThan(fromStringUnsafe("3"), fromStringUnsafe("3")), + * BigDecimal.isLessThan(BigDecimal.fromStringUnsafe("3"), BigDecimal.fromStringUnsafe("3")), * false * ) * assert.deepStrictEqual( - * isLessThan(fromStringUnsafe("4"), fromStringUnsafe("3")), + * BigDecimal.isLessThan(BigDecimal.fromStringUnsafe("4"), BigDecimal.fromStringUnsafe("3")), * false * ) * ``` * - * @since 2.0.0 * @category predicates + * @since 4.0.0 */ (that: BigDecimal): (self: BigDecimal) => boolean; /** * Returns `true` if the first argument is less than the second, otherwise `false`. * - * @example + * **When to use** + * + * Use to test whether one `BigDecimal` is strictly less than another. + * + * **Example** (Checking less-than comparisons) + * * ```ts - * import { fromStringUnsafe, isLessThan } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * * assert.deepStrictEqual( - * isLessThan(fromStringUnsafe("2"), fromStringUnsafe("3")), + * BigDecimal.isLessThan(BigDecimal.fromStringUnsafe("2"), BigDecimal.fromStringUnsafe("3")), * true * ) * assert.deepStrictEqual( - * isLessThan(fromStringUnsafe("3"), fromStringUnsafe("3")), + * BigDecimal.isLessThan(BigDecimal.fromStringUnsafe("3"), BigDecimal.fromStringUnsafe("3")), * false * ) * assert.deepStrictEqual( - * isLessThan(fromStringUnsafe("4"), fromStringUnsafe("3")), + * BigDecimal.isLessThan(BigDecimal.fromStringUnsafe("4"), BigDecimal.fromStringUnsafe("3")), * false * ) * ``` * - * @since 2.0.0 * @category predicates + * @since 4.0.0 */ (self: BigDecimal, that: BigDecimal): boolean; }; /** - * Checks if a given `BigDecimal` is less than or equal to the provided one. + * Checks whether a given `BigDecimal` is less than or equal to the provided one. + * + * **When to use** + * + * Use to test whether one `BigDecimal` is less than or equal to another. + * + * **Example** (Checking less-than-or-equal comparisons) * - * @example * ```ts - * import { fromStringUnsafe, isLessThanOrEqualTo } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * * assert.deepStrictEqual( - * isLessThanOrEqualTo(fromStringUnsafe("2"), fromStringUnsafe("3")), + * BigDecimal.isLessThanOrEqualTo(BigDecimal.fromStringUnsafe("2"), BigDecimal.fromStringUnsafe("3")), * true * ) * assert.deepStrictEqual( - * isLessThanOrEqualTo(fromStringUnsafe("3"), fromStringUnsafe("3")), + * BigDecimal.isLessThanOrEqualTo(BigDecimal.fromStringUnsafe("3"), BigDecimal.fromStringUnsafe("3")), * true * ) * assert.deepStrictEqual( - * isLessThanOrEqualTo(fromStringUnsafe("4"), fromStringUnsafe("3")), + * BigDecimal.isLessThanOrEqualTo(BigDecimal.fromStringUnsafe("4"), BigDecimal.fromStringUnsafe("3")), * false * ) * ``` * - * @since 2.0.0 * @category predicates + * @since 4.0.0 */ export declare const isLessThanOrEqualTo: { /** - * Checks if a given `BigDecimal` is less than or equal to the provided one. + * Checks whether a given `BigDecimal` is less than or equal to the provided one. + * + * **When to use** + * + * Use to test whether one `BigDecimal` is less than or equal to another. + * + * **Example** (Checking less-than-or-equal comparisons) * - * @example * ```ts - * import { fromStringUnsafe, isLessThanOrEqualTo } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * * assert.deepStrictEqual( - * isLessThanOrEqualTo(fromStringUnsafe("2"), fromStringUnsafe("3")), + * BigDecimal.isLessThanOrEqualTo(BigDecimal.fromStringUnsafe("2"), BigDecimal.fromStringUnsafe("3")), * true * ) * assert.deepStrictEqual( - * isLessThanOrEqualTo(fromStringUnsafe("3"), fromStringUnsafe("3")), + * BigDecimal.isLessThanOrEqualTo(BigDecimal.fromStringUnsafe("3"), BigDecimal.fromStringUnsafe("3")), * true * ) * assert.deepStrictEqual( - * isLessThanOrEqualTo(fromStringUnsafe("4"), fromStringUnsafe("3")), + * BigDecimal.isLessThanOrEqualTo(BigDecimal.fromStringUnsafe("4"), BigDecimal.fromStringUnsafe("3")), * false * ) * ``` * - * @since 2.0.0 * @category predicates + * @since 4.0.0 */ (that: BigDecimal): (self: BigDecimal) => boolean; /** - * Checks if a given `BigDecimal` is less than or equal to the provided one. + * Checks whether a given `BigDecimal` is less than or equal to the provided one. + * + * **When to use** + * + * Use to test whether one `BigDecimal` is less than or equal to another. + * + * **Example** (Checking less-than-or-equal comparisons) * - * @example * ```ts - * import { fromStringUnsafe, isLessThanOrEqualTo } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * * assert.deepStrictEqual( - * isLessThanOrEqualTo(fromStringUnsafe("2"), fromStringUnsafe("3")), + * BigDecimal.isLessThanOrEqualTo(BigDecimal.fromStringUnsafe("2"), BigDecimal.fromStringUnsafe("3")), * true * ) * assert.deepStrictEqual( - * isLessThanOrEqualTo(fromStringUnsafe("3"), fromStringUnsafe("3")), + * BigDecimal.isLessThanOrEqualTo(BigDecimal.fromStringUnsafe("3"), BigDecimal.fromStringUnsafe("3")), * true * ) * assert.deepStrictEqual( - * isLessThanOrEqualTo(fromStringUnsafe("4"), fromStringUnsafe("3")), + * BigDecimal.isLessThanOrEqualTo(BigDecimal.fromStringUnsafe("4"), BigDecimal.fromStringUnsafe("3")), * false * ) * ``` * - * @since 2.0.0 * @category predicates + * @since 4.0.0 */ (self: BigDecimal, that: BigDecimal): boolean; }; /** * Returns `true` if the first argument is greater than the second, otherwise `false`. * - * @example + * **When to use** + * + * Use to test whether one `BigDecimal` is strictly greater than another. + * + * **Example** (Checking greater-than comparisons) + * * ```ts - * import { fromStringUnsafe, isGreaterThan } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * * assert.deepStrictEqual( - * isGreaterThan(fromStringUnsafe("2"), fromStringUnsafe("3")), + * BigDecimal.isGreaterThan(BigDecimal.fromStringUnsafe("2"), BigDecimal.fromStringUnsafe("3")), * false * ) * assert.deepStrictEqual( - * isGreaterThan(fromStringUnsafe("3"), fromStringUnsafe("3")), + * BigDecimal.isGreaterThan(BigDecimal.fromStringUnsafe("3"), BigDecimal.fromStringUnsafe("3")), * false * ) * assert.deepStrictEqual( - * isGreaterThan(fromStringUnsafe("4"), fromStringUnsafe("3")), + * BigDecimal.isGreaterThan(BigDecimal.fromStringUnsafe("4"), BigDecimal.fromStringUnsafe("3")), * true * ) * ``` * - * @since 2.0.0 * @category predicates + * @since 4.0.0 */ export declare const isGreaterThan: { /** * Returns `true` if the first argument is greater than the second, otherwise `false`. * - * @example + * **When to use** + * + * Use to test whether one `BigDecimal` is strictly greater than another. + * + * **Example** (Checking greater-than comparisons) + * * ```ts - * import { fromStringUnsafe, isGreaterThan } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * * assert.deepStrictEqual( - * isGreaterThan(fromStringUnsafe("2"), fromStringUnsafe("3")), + * BigDecimal.isGreaterThan(BigDecimal.fromStringUnsafe("2"), BigDecimal.fromStringUnsafe("3")), * false * ) * assert.deepStrictEqual( - * isGreaterThan(fromStringUnsafe("3"), fromStringUnsafe("3")), + * BigDecimal.isGreaterThan(BigDecimal.fromStringUnsafe("3"), BigDecimal.fromStringUnsafe("3")), * false * ) * assert.deepStrictEqual( - * isGreaterThan(fromStringUnsafe("4"), fromStringUnsafe("3")), + * BigDecimal.isGreaterThan(BigDecimal.fromStringUnsafe("4"), BigDecimal.fromStringUnsafe("3")), * true * ) * ``` * - * @since 2.0.0 * @category predicates + * @since 4.0.0 */ (that: BigDecimal): (self: BigDecimal) => boolean; /** * Returns `true` if the first argument is greater than the second, otherwise `false`. * - * @example + * **When to use** + * + * Use to test whether one `BigDecimal` is strictly greater than another. + * + * **Example** (Checking greater-than comparisons) + * * ```ts - * import { fromStringUnsafe, isGreaterThan } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * * assert.deepStrictEqual( - * isGreaterThan(fromStringUnsafe("2"), fromStringUnsafe("3")), + * BigDecimal.isGreaterThan(BigDecimal.fromStringUnsafe("2"), BigDecimal.fromStringUnsafe("3")), * false * ) * assert.deepStrictEqual( - * isGreaterThan(fromStringUnsafe("3"), fromStringUnsafe("3")), + * BigDecimal.isGreaterThan(BigDecimal.fromStringUnsafe("3"), BigDecimal.fromStringUnsafe("3")), * false * ) * assert.deepStrictEqual( - * isGreaterThan(fromStringUnsafe("4"), fromStringUnsafe("3")), + * BigDecimal.isGreaterThan(BigDecimal.fromStringUnsafe("4"), BigDecimal.fromStringUnsafe("3")), * true * ) * ``` * - * @since 2.0.0 * @category predicates + * @since 4.0.0 */ (self: BigDecimal, that: BigDecimal): boolean; }; /** - * Checks if a given `BigDecimal` is greater than or equal to the provided one. + * Checks whether a given `BigDecimal` is greater than or equal to the provided one. + * + * **When to use** + * + * Use to test whether one `BigDecimal` is greater than or equal to another. + * + * **Example** (Checking greater-than-or-equal comparisons) * - * @example * ```ts - * import { fromStringUnsafe, isGreaterThanOrEqualTo } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * * assert.deepStrictEqual( - * isGreaterThanOrEqualTo(fromStringUnsafe("2"), fromStringUnsafe("3")), + * BigDecimal.isGreaterThanOrEqualTo(BigDecimal.fromStringUnsafe("2"), BigDecimal.fromStringUnsafe("3")), * false * ) * assert.deepStrictEqual( - * isGreaterThanOrEqualTo(fromStringUnsafe("3"), fromStringUnsafe("3")), + * BigDecimal.isGreaterThanOrEqualTo(BigDecimal.fromStringUnsafe("3"), BigDecimal.fromStringUnsafe("3")), * true * ) * assert.deepStrictEqual( - * isGreaterThanOrEqualTo(fromStringUnsafe("4"), fromStringUnsafe("3")), + * BigDecimal.isGreaterThanOrEqualTo(BigDecimal.fromStringUnsafe("4"), BigDecimal.fromStringUnsafe("3")), * true * ) * ``` * - * @since 2.0.0 * @category predicates + * @since 4.0.0 */ export declare const isGreaterThanOrEqualTo: { /** - * Checks if a given `BigDecimal` is greater than or equal to the provided one. + * Checks whether a given `BigDecimal` is greater than or equal to the provided one. + * + * **When to use** + * + * Use to test whether one `BigDecimal` is greater than or equal to another. + * + * **Example** (Checking greater-than-or-equal comparisons) * - * @example * ```ts - * import { fromStringUnsafe, isGreaterThanOrEqualTo } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * * assert.deepStrictEqual( - * isGreaterThanOrEqualTo(fromStringUnsafe("2"), fromStringUnsafe("3")), + * BigDecimal.isGreaterThanOrEqualTo(BigDecimal.fromStringUnsafe("2"), BigDecimal.fromStringUnsafe("3")), * false * ) * assert.deepStrictEqual( - * isGreaterThanOrEqualTo(fromStringUnsafe("3"), fromStringUnsafe("3")), + * BigDecimal.isGreaterThanOrEqualTo(BigDecimal.fromStringUnsafe("3"), BigDecimal.fromStringUnsafe("3")), * true * ) * assert.deepStrictEqual( - * isGreaterThanOrEqualTo(fromStringUnsafe("4"), fromStringUnsafe("3")), + * BigDecimal.isGreaterThanOrEqualTo(BigDecimal.fromStringUnsafe("4"), BigDecimal.fromStringUnsafe("3")), * true * ) * ``` * - * @since 2.0.0 * @category predicates + * @since 4.0.0 */ (that: BigDecimal): (self: BigDecimal) => boolean; /** - * Checks if a given `BigDecimal` is greater than or equal to the provided one. + * Checks whether a given `BigDecimal` is greater than or equal to the provided one. + * + * **When to use** + * + * Use to test whether one `BigDecimal` is greater than or equal to another. + * + * **Example** (Checking greater-than-or-equal comparisons) * - * @example * ```ts - * import { fromStringUnsafe, isGreaterThanOrEqualTo } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * * assert.deepStrictEqual( - * isGreaterThanOrEqualTo(fromStringUnsafe("2"), fromStringUnsafe("3")), + * BigDecimal.isGreaterThanOrEqualTo(BigDecimal.fromStringUnsafe("2"), BigDecimal.fromStringUnsafe("3")), * false * ) * assert.deepStrictEqual( - * isGreaterThanOrEqualTo(fromStringUnsafe("3"), fromStringUnsafe("3")), + * BigDecimal.isGreaterThanOrEqualTo(BigDecimal.fromStringUnsafe("3"), BigDecimal.fromStringUnsafe("3")), * true * ) * assert.deepStrictEqual( - * isGreaterThanOrEqualTo(fromStringUnsafe("4"), fromStringUnsafe("3")), + * BigDecimal.isGreaterThanOrEqualTo(BigDecimal.fromStringUnsafe("4"), BigDecimal.fromStringUnsafe("3")), * true * ) * ``` * - * @since 2.0.0 * @category predicates + * @since 4.0.0 */ (self: BigDecimal, that: BigDecimal): boolean; }; /** - * Checks if a `BigDecimal` is between a `minimum` and `maximum` value (inclusive). + * Checks whether a `BigDecimal` is between a `minimum` and `maximum` value (inclusive). + * + * **When to use** + * + * Use to test whether a `BigDecimal` falls inside an inclusive range. + * + * **Example** (Checking decimal ranges) * - * @example * ```ts * import { BigDecimal } from "effect" * import * as assert from "node:assert" @@ -935,14 +1183,21 @@ export declare const isGreaterThanOrEqualTo: { * assert.deepStrictEqual(between(BigDecimal.fromStringUnsafe("6")), false) * ``` * - * @since 2.0.0 + * @see {@link clamp} for forcing a `BigDecimal` into an inclusive range + * * @category predicates + * @since 2.0.0 */ export declare const between: { /** - * Checks if a `BigDecimal` is between a `minimum` and `maximum` value (inclusive). + * Checks whether a `BigDecimal` is between a `minimum` and `maximum` value (inclusive). + * + * **When to use** + * + * Use to test whether a `BigDecimal` falls inside an inclusive range. + * + * **Example** (Checking decimal ranges) * - * @example * ```ts * import { BigDecimal } from "effect" * import * as assert from "node:assert" @@ -957,17 +1212,24 @@ export declare const between: { * assert.deepStrictEqual(between(BigDecimal.fromStringUnsafe("6")), false) * ``` * - * @since 2.0.0 + * @see {@link clamp} for forcing a `BigDecimal` into an inclusive range + * * @category predicates + * @since 2.0.0 */ (options: { minimum: BigDecimal; maximum: BigDecimal; }): (self: BigDecimal) => boolean; /** - * Checks if a `BigDecimal` is between a `minimum` and `maximum` value (inclusive). + * Checks whether a `BigDecimal` is between a `minimum` and `maximum` value (inclusive). + * + * **When to use** + * + * Use to test whether a `BigDecimal` falls inside an inclusive range. + * + * **Example** (Checking decimal ranges) * - * @example * ```ts * import { BigDecimal } from "effect" * import * as assert from "node:assert" @@ -982,8 +1244,10 @@ export declare const between: { * assert.deepStrictEqual(between(BigDecimal.fromStringUnsafe("6")), false) * ``` * - * @since 2.0.0 + * @see {@link clamp} for forcing a `BigDecimal` into an inclusive range + * * @category predicates + * @since 2.0.0 */ (self: BigDecimal, options: { minimum: BigDecimal; @@ -993,11 +1257,18 @@ export declare const between: { /** * Restricts the given `BigDecimal` to be within the range specified by the `minimum` and `maximum` values. * - * - If the `BigDecimal` is less than the `minimum` value, the function returns the `minimum` value. - * - If the `BigDecimal` is greater than the `maximum` value, the function returns the `maximum` value. - * - Otherwise, it returns the original `BigDecimal`. + * **When to use** + * + * Use to force a `BigDecimal` into an inclusive range. + * + * **Details** + * + * If the `BigDecimal` is less than the `minimum` value, the function returns + * the `minimum` value. If it is greater than the `maximum` value, the function + * returns the `maximum` value. Otherwise, it returns the original `BigDecimal`. + * + * **Example** (Clamping decimals to a range) * - * @example * ```ts * import { BigDecimal } from "effect" * import * as assert from "node:assert" @@ -1021,18 +1292,27 @@ export declare const between: { * ) * ``` * - * @since 2.0.0 + * @see {@link between} for checking whether a `BigDecimal` is already inside a range + * * @category math + * @since 2.0.0 */ export declare const clamp: { /** * Restricts the given `BigDecimal` to be within the range specified by the `minimum` and `maximum` values. * - * - If the `BigDecimal` is less than the `minimum` value, the function returns the `minimum` value. - * - If the `BigDecimal` is greater than the `maximum` value, the function returns the `maximum` value. - * - Otherwise, it returns the original `BigDecimal`. + * **When to use** + * + * Use to force a `BigDecimal` into an inclusive range. + * + * **Details** + * + * If the `BigDecimal` is less than the `minimum` value, the function returns + * the `minimum` value. If it is greater than the `maximum` value, the function + * returns the `maximum` value. Otherwise, it returns the original `BigDecimal`. + * + * **Example** (Clamping decimals to a range) * - * @example * ```ts * import { BigDecimal } from "effect" * import * as assert from "node:assert" @@ -1056,8 +1336,10 @@ export declare const clamp: { * ) * ``` * - * @since 2.0.0 + * @see {@link between} for checking whether a `BigDecimal` is already inside a range + * * @category math + * @since 2.0.0 */ (options: { minimum: BigDecimal; @@ -1066,11 +1348,18 @@ export declare const clamp: { /** * Restricts the given `BigDecimal` to be within the range specified by the `minimum` and `maximum` values. * - * - If the `BigDecimal` is less than the `minimum` value, the function returns the `minimum` value. - * - If the `BigDecimal` is greater than the `maximum` value, the function returns the `maximum` value. - * - Otherwise, it returns the original `BigDecimal`. + * **When to use** + * + * Use to force a `BigDecimal` into an inclusive range. + * + * **Details** + * + * If the `BigDecimal` is less than the `minimum` value, the function returns + * the `minimum` value. If it is greater than the `maximum` value, the function + * returns the `maximum` value. Otherwise, it returns the original `BigDecimal`. + * + * **Example** (Clamping decimals to a range) * - * @example * ```ts * import { BigDecimal } from "effect" * import * as assert from "node:assert" @@ -1094,8 +1383,10 @@ export declare const clamp: { * ) * ``` * - * @since 2.0.0 + * @see {@link between} for checking whether a `BigDecimal` is already inside a range + * * @category math + * @since 2.0.0 */ (self: BigDecimal, options: { minimum: BigDecimal; @@ -1105,169 +1396,235 @@ export declare const clamp: { /** * Returns the minimum between two `BigDecimal`s. * - * @example + * **When to use** + * + * Use to select the smaller of two `BigDecimal` values. + * + * **Example** (Selecting the smaller decimal) + * * ```ts - * import { fromStringUnsafe, min } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * * assert.deepStrictEqual( - * min(fromStringUnsafe("2"), fromStringUnsafe("3")), - * fromStringUnsafe("2") + * BigDecimal.min(BigDecimal.fromStringUnsafe("2"), BigDecimal.fromStringUnsafe("3")), + * BigDecimal.fromStringUnsafe("2") * ) * ``` * - * @since 2.0.0 + * @see {@link max} for selecting the larger value + * * @category math + * @since 2.0.0 */ export declare const min: { /** * Returns the minimum between two `BigDecimal`s. * - * @example + * **When to use** + * + * Use to select the smaller of two `BigDecimal` values. + * + * **Example** (Selecting the smaller decimal) + * * ```ts - * import { fromStringUnsafe, min } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * * assert.deepStrictEqual( - * min(fromStringUnsafe("2"), fromStringUnsafe("3")), - * fromStringUnsafe("2") + * BigDecimal.min(BigDecimal.fromStringUnsafe("2"), BigDecimal.fromStringUnsafe("3")), + * BigDecimal.fromStringUnsafe("2") * ) * ``` * - * @since 2.0.0 + * @see {@link max} for selecting the larger value + * * @category math + * @since 2.0.0 */ (that: BigDecimal): (self: BigDecimal) => BigDecimal; /** * Returns the minimum between two `BigDecimal`s. * - * @example + * **When to use** + * + * Use to select the smaller of two `BigDecimal` values. + * + * **Example** (Selecting the smaller decimal) + * * ```ts - * import { fromStringUnsafe, min } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * * assert.deepStrictEqual( - * min(fromStringUnsafe("2"), fromStringUnsafe("3")), - * fromStringUnsafe("2") + * BigDecimal.min(BigDecimal.fromStringUnsafe("2"), BigDecimal.fromStringUnsafe("3")), + * BigDecimal.fromStringUnsafe("2") * ) * ``` * - * @since 2.0.0 + * @see {@link max} for selecting the larger value + * * @category math + * @since 2.0.0 */ (self: BigDecimal, that: BigDecimal): BigDecimal; }; /** * Returns the maximum between two `BigDecimal`s. * - * @example + * **When to use** + * + * Use to select the larger of two `BigDecimal` values. + * + * **Example** (Selecting the larger decimal) + * * ```ts - * import { fromStringUnsafe, max } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * * assert.deepStrictEqual( - * max(fromStringUnsafe("2"), fromStringUnsafe("3")), - * fromStringUnsafe("3") + * BigDecimal.max(BigDecimal.fromStringUnsafe("2"), BigDecimal.fromStringUnsafe("3")), + * BigDecimal.fromStringUnsafe("3") * ) * ``` * - * @since 2.0.0 + * @see {@link min} for selecting the smaller value + * * @category math + * @since 2.0.0 */ export declare const max: { /** * Returns the maximum between two `BigDecimal`s. * - * @example + * **When to use** + * + * Use to select the larger of two `BigDecimal` values. + * + * **Example** (Selecting the larger decimal) + * * ```ts - * import { fromStringUnsafe, max } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * * assert.deepStrictEqual( - * max(fromStringUnsafe("2"), fromStringUnsafe("3")), - * fromStringUnsafe("3") + * BigDecimal.max(BigDecimal.fromStringUnsafe("2"), BigDecimal.fromStringUnsafe("3")), + * BigDecimal.fromStringUnsafe("3") * ) * ``` * - * @since 2.0.0 + * @see {@link min} for selecting the smaller value + * * @category math + * @since 2.0.0 */ (that: BigDecimal): (self: BigDecimal) => BigDecimal; /** * Returns the maximum between two `BigDecimal`s. * - * @example + * **When to use** + * + * Use to select the larger of two `BigDecimal` values. + * + * **Example** (Selecting the larger decimal) + * * ```ts - * import { fromStringUnsafe, max } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * * assert.deepStrictEqual( - * max(fromStringUnsafe("2"), fromStringUnsafe("3")), - * fromStringUnsafe("3") + * BigDecimal.max(BigDecimal.fromStringUnsafe("2"), BigDecimal.fromStringUnsafe("3")), + * BigDecimal.fromStringUnsafe("3") * ) * ``` * - * @since 2.0.0 + * @see {@link min} for selecting the smaller value + * * @category math + * @since 2.0.0 */ (self: BigDecimal, that: BigDecimal): BigDecimal; }; /** * Determines the sign of a given `BigDecimal`. * - * @example + * **When to use** + * + * Use to classify a `BigDecimal` as negative, zero, or positive. + * + * **Example** (Reading decimal signs) + * * ```ts - * import { fromStringUnsafe, sign } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(sign(fromStringUnsafe("-5")), -1) - * assert.deepStrictEqual(sign(fromStringUnsafe("0")), 0) - * assert.deepStrictEqual(sign(fromStringUnsafe("5")), 1) + * assert.deepStrictEqual(BigDecimal.sign(BigDecimal.fromStringUnsafe("-5")), -1) + * assert.deepStrictEqual(BigDecimal.sign(BigDecimal.fromStringUnsafe("0")), 0) + * assert.deepStrictEqual(BigDecimal.sign(BigDecimal.fromStringUnsafe("5")), 1) * ``` * - * @since 2.0.0 * @category math + * @since 2.0.0 */ export declare const sign: (n: BigDecimal) => Ordering; /** * Determines the absolute value of a given `BigDecimal`. * - * @example + * **When to use** + * + * Use to remove the sign from a `BigDecimal` while preserving its magnitude. + * + * **Example** (Calculating absolute values) + * * ```ts - * import { abs, fromStringUnsafe } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(abs(fromStringUnsafe("-5")), fromStringUnsafe("5")) - * assert.deepStrictEqual(abs(fromStringUnsafe("0")), fromStringUnsafe("0")) - * assert.deepStrictEqual(abs(fromStringUnsafe("5")), fromStringUnsafe("5")) + * assert.deepStrictEqual(BigDecimal.abs(BigDecimal.fromStringUnsafe("-5")), BigDecimal.fromStringUnsafe("5")) + * assert.deepStrictEqual(BigDecimal.abs(BigDecimal.fromStringUnsafe("0")), BigDecimal.fromStringUnsafe("0")) + * assert.deepStrictEqual(BigDecimal.abs(BigDecimal.fromStringUnsafe("5")), BigDecimal.fromStringUnsafe("5")) * ``` * - * @since 2.0.0 * @category math + * @since 2.0.0 */ export declare const abs: (n: BigDecimal) => BigDecimal; /** * Provides a negate operation on `BigDecimal`s. * - * @example + * **When to use** + * + * Use to flip the sign of a `BigDecimal`. + * + * **Example** (Negating decimals) + * * ```ts - * import { fromStringUnsafe, negate } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(negate(fromStringUnsafe("3")), fromStringUnsafe("-3")) - * assert.deepStrictEqual(negate(fromStringUnsafe("-6")), fromStringUnsafe("6")) + * assert.deepStrictEqual(BigDecimal.negate(BigDecimal.fromStringUnsafe("3")), BigDecimal.fromStringUnsafe("-3")) + * assert.deepStrictEqual(BigDecimal.negate(BigDecimal.fromStringUnsafe("-6")), BigDecimal.fromStringUnsafe("6")) * ``` * - * @since 2.0.0 * @category math + * @since 2.0.0 */ export declare const negate: (n: BigDecimal) => BigDecimal; /** - * Returns the remainder left over when one operand is divided by a second operand. + * Computes the decimal remainder safely when one operand is divided by a second + * operand. + * + * **When to use** + * + * Use to compute a decimal remainder while representing division by zero as + * `Option.none`. + * + * **Details** * * If the divisor is `0`, the result will be `Option.none()`. * - * @example + * **Example** (Computing remainders safely) + * * ```ts * import { BigDecimal, Option } from "effect" * import * as assert from "node:assert" @@ -1295,16 +1652,28 @@ export declare const negate: (n: BigDecimal) => BigDecimal; * ) * ``` * - * @since 2.0.0 + * @see {@link remainderUnsafe} for remainder calculation that throws when the divisor is zero + * @see {@link divide} for decimal quotient calculation + * * @category math + * @since 2.0.0 */ export declare const remainder: { /** - * Returns the remainder left over when one operand is divided by a second operand. + * Computes the decimal remainder safely when one operand is divided by a second + * operand. + * + * **When to use** + * + * Use to compute a decimal remainder while representing division by zero as + * `Option.none`. + * + * **Details** * * If the divisor is `0`, the result will be `Option.none()`. * - * @example + * **Example** (Computing remainders safely) + * * ```ts * import { BigDecimal, Option } from "effect" * import * as assert from "node:assert" @@ -1332,16 +1701,28 @@ export declare const remainder: { * ) * ``` * - * @since 2.0.0 + * @see {@link remainderUnsafe} for remainder calculation that throws when the divisor is zero + * @see {@link divide} for decimal quotient calculation + * * @category math + * @since 2.0.0 */ (divisor: BigDecimal): (self: BigDecimal) => Option.Option; /** - * Returns the remainder left over when one operand is divided by a second operand. + * Computes the decimal remainder safely when one operand is divided by a second + * operand. + * + * **When to use** + * + * Use to compute a decimal remainder while representing division by zero as + * `Option.none`. + * + * **Details** * * If the divisor is `0`, the result will be `Option.none()`. * - * @example + * **Example** (Computing remainders safely) + * * ```ts * import { BigDecimal, Option } from "effect" * import * as assert from "node:assert" @@ -1369,106 +1750,148 @@ export declare const remainder: { * ) * ``` * - * @since 2.0.0 + * @see {@link remainderUnsafe} for remainder calculation that throws when the divisor is zero + * @see {@link divide} for decimal quotient calculation + * * @category math + * @since 2.0.0 */ (self: BigDecimal, divisor: BigDecimal): Option.Option; }; /** - * Returns the remainder left over when one operand is divided by a second operand. + * Returns the decimal remainder left over when one operand is divided by a + * non-zero second operand. + * + * **When to use** + * + * Use when you need to compute a `BigDecimal` remainder with a divisor known to + * be non-zero and want a plain `BigDecimal` result instead of an `Option`. + * + * **Gotchas** * * Throws a `RangeError` if the divisor is `0`. * - * @example + * **Example** (Computing remainders unsafely) + * * ```ts - * import { fromStringUnsafe, remainderUnsafe } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * * assert.deepStrictEqual( - * remainderUnsafe(fromStringUnsafe("2"), fromStringUnsafe("2")), - * fromStringUnsafe("0") + * BigDecimal.remainderUnsafe(BigDecimal.fromStringUnsafe("2"), BigDecimal.fromStringUnsafe("2")), + * BigDecimal.fromStringUnsafe("0") * ) * assert.deepStrictEqual( - * remainderUnsafe(fromStringUnsafe("3"), fromStringUnsafe("2")), - * fromStringUnsafe("1") + * BigDecimal.remainderUnsafe(BigDecimal.fromStringUnsafe("3"), BigDecimal.fromStringUnsafe("2")), + * BigDecimal.fromStringUnsafe("1") * ) * assert.deepStrictEqual( - * remainderUnsafe(fromStringUnsafe("-4"), fromStringUnsafe("2")), - * fromStringUnsafe("0") + * BigDecimal.remainderUnsafe(BigDecimal.fromStringUnsafe("-4"), BigDecimal.fromStringUnsafe("2")), + * BigDecimal.fromStringUnsafe("0") * ) * ``` * - * @since 2.0.0 + * @see {@link remainder} for returning `Option.none` when the divisor is zero + * * @category math + * @since 4.0.0 */ export declare const remainderUnsafe: { /** - * Returns the remainder left over when one operand is divided by a second operand. + * Returns the decimal remainder left over when one operand is divided by a + * non-zero second operand. + * + * **When to use** + * + * Use when you need to compute a `BigDecimal` remainder with a divisor known to + * be non-zero and want a plain `BigDecimal` result instead of an `Option`. + * + * **Gotchas** * * Throws a `RangeError` if the divisor is `0`. * - * @example + * **Example** (Computing remainders unsafely) + * * ```ts - * import { fromStringUnsafe, remainderUnsafe } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * * assert.deepStrictEqual( - * remainderUnsafe(fromStringUnsafe("2"), fromStringUnsafe("2")), - * fromStringUnsafe("0") + * BigDecimal.remainderUnsafe(BigDecimal.fromStringUnsafe("2"), BigDecimal.fromStringUnsafe("2")), + * BigDecimal.fromStringUnsafe("0") * ) * assert.deepStrictEqual( - * remainderUnsafe(fromStringUnsafe("3"), fromStringUnsafe("2")), - * fromStringUnsafe("1") + * BigDecimal.remainderUnsafe(BigDecimal.fromStringUnsafe("3"), BigDecimal.fromStringUnsafe("2")), + * BigDecimal.fromStringUnsafe("1") * ) * assert.deepStrictEqual( - * remainderUnsafe(fromStringUnsafe("-4"), fromStringUnsafe("2")), - * fromStringUnsafe("0") + * BigDecimal.remainderUnsafe(BigDecimal.fromStringUnsafe("-4"), BigDecimal.fromStringUnsafe("2")), + * BigDecimal.fromStringUnsafe("0") * ) * ``` * - * @since 2.0.0 + * @see {@link remainder} for returning `Option.none` when the divisor is zero + * * @category math + * @since 4.0.0 */ (divisor: BigDecimal): (self: BigDecimal) => BigDecimal; /** - * Returns the remainder left over when one operand is divided by a second operand. + * Returns the decimal remainder left over when one operand is divided by a + * non-zero second operand. + * + * **When to use** + * + * Use when you need to compute a `BigDecimal` remainder with a divisor known to + * be non-zero and want a plain `BigDecimal` result instead of an `Option`. + * + * **Gotchas** * * Throws a `RangeError` if the divisor is `0`. * - * @example + * **Example** (Computing remainders unsafely) + * * ```ts - * import { fromStringUnsafe, remainderUnsafe } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * * assert.deepStrictEqual( - * remainderUnsafe(fromStringUnsafe("2"), fromStringUnsafe("2")), - * fromStringUnsafe("0") + * BigDecimal.remainderUnsafe(BigDecimal.fromStringUnsafe("2"), BigDecimal.fromStringUnsafe("2")), + * BigDecimal.fromStringUnsafe("0") * ) * assert.deepStrictEqual( - * remainderUnsafe(fromStringUnsafe("3"), fromStringUnsafe("2")), - * fromStringUnsafe("1") + * BigDecimal.remainderUnsafe(BigDecimal.fromStringUnsafe("3"), BigDecimal.fromStringUnsafe("2")), + * BigDecimal.fromStringUnsafe("1") * ) * assert.deepStrictEqual( - * remainderUnsafe(fromStringUnsafe("-4"), fromStringUnsafe("2")), - * fromStringUnsafe("0") + * BigDecimal.remainderUnsafe(BigDecimal.fromStringUnsafe("-4"), BigDecimal.fromStringUnsafe("2")), + * BigDecimal.fromStringUnsafe("0") * ) * ``` * - * @since 2.0.0 + * @see {@link remainder} for returning `Option.none` when the divisor is zero + * * @category math + * @since 4.0.0 */ (self: BigDecimal, divisor: BigDecimal): BigDecimal; }; /** * Provides an `Equivalence` instance for `BigDecimal` that determines equality between BigDecimal values. * - * @example + * **When to use** + * + * Use when comparing decimal values through APIs that accept an equivalence + * relation. + * + * **Example** (Checking decimal equivalence) + * * ```ts * import { BigDecimal } from "effect" * - * const a = BigDecimal.fromNumberUnsafe(1.50) - * const b = BigDecimal.fromNumberUnsafe(1.5) - * const c = BigDecimal.fromNumberUnsafe(2.0) + * const a = BigDecimal.fromStringUnsafe("1.50") + * const b = BigDecimal.fromStringUnsafe("1.5") + * const c = BigDecimal.fromStringUnsafe("2.0") * * console.log(BigDecimal.Equivalence(a, b)) // true (1.50 === 1.5) * console.log(BigDecimal.Equivalence(a, c)) // false (1.50 !== 2.0) @@ -1479,67 +1902,93 @@ export declare const remainderUnsafe: { */ export declare const Equivalence: Equ.Equivalence; /** - * Checks if two `BigDecimal`s are equal. + * Checks whether two `BigDecimal`s are equal. + * + * **When to use** + * + * Use to compare two `BigDecimal` values for numeric equality. + * + * **Example** (Checking decimal equality) * - * @example * ```ts * import { BigDecimal } from "effect" * - * const a = BigDecimal.fromNumberUnsafe(1.5) - * const b = BigDecimal.fromNumberUnsafe(1.50) - * const c = BigDecimal.fromNumberUnsafe(2.0) + * const a = BigDecimal.fromStringUnsafe("1.5") + * const b = BigDecimal.fromStringUnsafe("1.50") + * const c = BigDecimal.fromStringUnsafe("2.0") * * console.log(BigDecimal.equals(a, b)) // true * console.log(BigDecimal.equals(a, c)) // false * ``` * - * @since 2.0.0 + * @see {@link Equivalence} for passing decimal equality to APIs that require an `Equivalence` + * * @category predicates + * @since 2.0.0 */ export declare const equals: { /** - * Checks if two `BigDecimal`s are equal. + * Checks whether two `BigDecimal`s are equal. + * + * **When to use** + * + * Use to compare two `BigDecimal` values for numeric equality. + * + * **Example** (Checking decimal equality) * - * @example * ```ts * import { BigDecimal } from "effect" * - * const a = BigDecimal.fromNumberUnsafe(1.5) - * const b = BigDecimal.fromNumberUnsafe(1.50) - * const c = BigDecimal.fromNumberUnsafe(2.0) + * const a = BigDecimal.fromStringUnsafe("1.5") + * const b = BigDecimal.fromStringUnsafe("1.50") + * const c = BigDecimal.fromStringUnsafe("2.0") * * console.log(BigDecimal.equals(a, b)) // true * console.log(BigDecimal.equals(a, c)) // false * ``` * - * @since 2.0.0 + * @see {@link Equivalence} for passing decimal equality to APIs that require an `Equivalence` + * * @category predicates + * @since 2.0.0 */ (that: BigDecimal): (self: BigDecimal) => boolean; /** - * Checks if two `BigDecimal`s are equal. + * Checks whether two `BigDecimal`s are equal. + * + * **When to use** + * + * Use to compare two `BigDecimal` values for numeric equality. + * + * **Example** (Checking decimal equality) * - * @example * ```ts * import { BigDecimal } from "effect" * - * const a = BigDecimal.fromNumberUnsafe(1.5) - * const b = BigDecimal.fromNumberUnsafe(1.50) - * const c = BigDecimal.fromNumberUnsafe(2.0) + * const a = BigDecimal.fromStringUnsafe("1.5") + * const b = BigDecimal.fromStringUnsafe("1.50") + * const c = BigDecimal.fromStringUnsafe("2.0") * * console.log(BigDecimal.equals(a, b)) // true * console.log(BigDecimal.equals(a, c)) // false * ``` * - * @since 2.0.0 + * @see {@link Equivalence} for passing decimal equality to APIs that require an `Equivalence` + * * @category predicates + * @since 2.0.0 */ (self: BigDecimal, that: BigDecimal): boolean; }; /** * Creates a `BigDecimal` from a `bigint` value. * - * @example + * **When to use** + * + * Use to construct an integer `BigDecimal` from a `bigint`. + * + * **Example** (Creating decimals from bigint) + * * ```ts * import { BigDecimal } from "effect" * @@ -1550,40 +1999,61 @@ export declare const equals: { * console.log(BigDecimal.format(largeBigInt)) // "9007199254740991" * ``` * - * @since 2.0.0 + * @see {@link make} for constructing a decimal with an explicit scale + * * @category constructors + * @since 2.0.0 */ export declare const fromBigInt: (n: bigint) => BigDecimal; /** - * Creates a `BigDecimal` from a `number` value. + * Creates a `BigDecimal` from a finite `number`. + * + * **When to use** + * + * Use when you need to convert a trusted finite JavaScript number to a + * `BigDecimal` and want a plain result instead of an `Option`. * - * It is not recommended to convert a floating point number to a decimal directly, - * as the floating point representation may be unexpected. + * **Gotchas** * - * Throws a `RangeError` if the number is not finite (`NaN`, `+Infinity` or `-Infinity`). + * It is not recommended to convert a floating point number to a decimal + * directly, as the floating point representation may be unexpected. Throws a + * `RangeError` if the number is not finite (`NaN`, `+Infinity` or `-Infinity`). + * + * **Example** (Creating decimals from finite numbers) * - * @example * ```ts - * import { fromNumberUnsafe, make } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(fromNumberUnsafe(123), make(123n, 0)) - * assert.deepStrictEqual(fromNumberUnsafe(123.456), make(123456n, 3)) + * assert.deepStrictEqual(BigDecimal.fromNumberUnsafe(123), BigDecimal.make(123n, 0)) + * assert.deepStrictEqual(BigDecimal.fromNumberUnsafe(123.456), BigDecimal.make(123456n, 3)) * ``` * - * @since 4.0.0 + * @see {@link fromNumber} for returning `Option.none` when the number is not finite + * * @category constructors + * @since 4.0.0 */ export declare const fromNumberUnsafe: (n: number) => BigDecimal; /** - * Creates a `BigDecimal` from a `number` value. + * Creates a `BigDecimal` safely from a finite `number`. + * + * **When to use** * - * It is not recommended to convert a floating point number to a decimal directly, - * as the floating point representation may be unexpected. + * Use to convert a finite JavaScript number to a `BigDecimal` without throwing + * on invalid input. + * + * **Details** * * Returns `Option.none()` for `NaN`, `+Infinity` or `-Infinity`. * - * @example + * **Gotchas** + * + * It is not recommended to convert a floating point number to a decimal + * directly, as the floating point representation may be unexpected. + * + * **Example** (Creating decimals from numbers safely) + * * ```ts * import { BigDecimal, Option } from "effect" * import * as assert from "node:assert" @@ -1596,14 +2066,28 @@ export declare const fromNumberUnsafe: (n: number) => BigDecimal; * assert.deepStrictEqual(BigDecimal.fromNumber(Infinity), Option.none()) * ``` * - * @since 4.0.0 + * @see {@link fromNumberUnsafe} for throwing when the number is not finite + * @see {@link fromString} for parsing decimal strings directly + * * @category constructors + * @since 2.0.0 */ export declare const fromNumber: (n: number) => Option.Option; /** - * Parses a numerical `string` into a `BigDecimal`. + * Parses a decimal string into a `BigDecimal` safely. + * + * **When to use** + * + * Use to parse external decimal text without throwing on invalid input. + * + * **Details** + * + * Returns `Option.some` for valid decimal or exponent notation and + * `Option.none` when the string cannot be parsed or would produce an unsafe + * scale. The empty string parses as zero. + * + * **Example** (Parsing decimal strings safely) * - * @example * ```ts * import { BigDecimal, Option } from "effect" * import * as assert from "node:assert" @@ -1616,231 +2100,335 @@ export declare const fromNumber: (n: number) => Option.Option; * assert.deepStrictEqual(BigDecimal.fromString("123.abc"), Option.none()) * ``` * - * @since 2.0.0 + * @see {@link fromStringUnsafe} for parsing that throws on invalid input + * @see {@link fromNumber} for converting finite JavaScript numbers + * * @category constructors + * @since 2.0.0 */ export declare const fromString: (s: string) => Option.Option; /** - * Parses a numerical `string` into a `BigDecimal`. + * Parses a decimal string into a `BigDecimal`, throwing if the string is + * invalid. + * + * **When to use** + * + * Use when you expect decimal text to be valid and want parse errors to throw. + * + * **Details** + * + * Accepts the same syntax as `fromString`. Use `fromString` when invalid input + * should be represented as `Option.none` instead of throwing. + * + * **Example** (Parsing decimal strings unsafely) * - * @example * ```ts - * import { fromStringUnsafe, make } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(fromStringUnsafe("123"), make(123n, 0)) - * assert.deepStrictEqual(fromStringUnsafe("123.456"), make(123456n, 3)) - * assert.throws(() => fromStringUnsafe("123.abc")) + * assert.deepStrictEqual(BigDecimal.fromStringUnsafe("123"), BigDecimal.make(123n, 0)) + * assert.deepStrictEqual(BigDecimal.fromStringUnsafe("123.456"), BigDecimal.make(123456n, 3)) + * assert.throws(() => BigDecimal.fromStringUnsafe("123.abc")) * ``` * - * @since 2.0.0 + * @see {@link fromString} for returning `Option.none` on invalid input + * * @category constructors + * @since 4.0.0 */ export declare const fromStringUnsafe: (s: string) => BigDecimal; /** - * Formats a given `BigDecimal` as a `string`. + * Formats a `BigDecimal` as a string. + * + * **When to use** + * + * Use to render a `BigDecimal` as plain decimal text when possible. * - * If the scale of the `BigDecimal` is greater than or equal to 16, the `BigDecimal` will - * be formatted in scientific notation. + * **Details** + * + * The value is normalized before formatting. Scientific notation is used when + * the absolute value of the normalized scale is at least `16`; otherwise plain + * decimal notation is used. + * + * **Example** (Formatting decimals) * - * @example * ```ts - * import { format, fromStringUnsafe } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(format(fromStringUnsafe("-5")), "-5") - * assert.deepStrictEqual(format(fromStringUnsafe("123.456")), "123.456") - * assert.deepStrictEqual(format(fromStringUnsafe("-0.00000123")), "-0.00000123") + * assert.deepStrictEqual(BigDecimal.format(BigDecimal.fromStringUnsafe("-5")), "-5") + * assert.deepStrictEqual(BigDecimal.format(BigDecimal.fromStringUnsafe("123.456")), "123.456") + * assert.deepStrictEqual(BigDecimal.format(BigDecimal.fromStringUnsafe("-0.00000123")), "-0.00000123") * ``` * + * @see {@link toExponential} for always rendering scientific notation + * + * @category converting * @since 2.0.0 - * @category conversions */ export declare const format: (n: BigDecimal) => string; /** * Formats a given `BigDecimal` as a `string` in scientific notation. * - * @example + * **When to use** + * + * Use to render a `BigDecimal` in scientific notation. + * + * **Example** (Formatting decimals exponentially) + * * ```ts - * import { make, toExponential } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(toExponential(make(123456n, -5)), "1.23456e+10") + * assert.deepStrictEqual(BigDecimal.toExponential(BigDecimal.make(123456n, -5)), "1.23456e+10") * ``` * - * @since 4.0.0 - * @category conversions + * @see {@link format} for plain decimal formatting when possible + * + * @category converting + * @since 3.11.0 */ export declare const toExponential: (n: BigDecimal) => string; /** - * Converts a `BigDecimal` to a `number`. + * Converts a `BigDecimal` to a JavaScript `number`. + * + * **When to use** + * + * Use when you need a JavaScript number at an interop boundary where precision + * loss is acceptable. * - * This function will produce incorrect results if the `BigDecimal` exceeds the 64-bit range of a `number`. + * **Gotchas** + * + * This conversion is unsafe because the result can lose integer or fractional + * precision, round to a nearby representable value, or become `Infinity` when + * the decimal cannot be represented as a finite JavaScript `number`. + * + * **Example** (Converting decimals to numbers) * - * @example * ```ts - * import { fromStringUnsafe, toNumberUnsafe } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(toNumberUnsafe(fromStringUnsafe("123.456")), 123.456) + * assert.deepStrictEqual(BigDecimal.toNumberUnsafe(BigDecimal.fromStringUnsafe("123.456")), 123.456) * ``` * - * @since 2.0.0 - * @category conversions + * @see {@link format} for preserving decimal precision as text + * + * @category converting + * @since 4.0.0 */ export declare const toNumberUnsafe: (n: BigDecimal) => number; /** - * Checks if a given `BigDecimal` is an integer. + * Checks whether a given `BigDecimal` is an integer. + * + * **When to use** + * + * Use to test whether a `BigDecimal` has no fractional decimal part. + * + * **Example** (Checking integer decimals) * - * @example * ```ts - * import { fromStringUnsafe, isInteger } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(isInteger(fromStringUnsafe("0")), true) - * assert.deepStrictEqual(isInteger(fromStringUnsafe("1")), true) - * assert.deepStrictEqual(isInteger(fromStringUnsafe("1.1")), false) + * assert.deepStrictEqual(BigDecimal.isInteger(BigDecimal.fromStringUnsafe("0")), true) + * assert.deepStrictEqual(BigDecimal.isInteger(BigDecimal.fromStringUnsafe("1")), true) + * assert.deepStrictEqual(BigDecimal.isInteger(BigDecimal.fromStringUnsafe("1.1")), false) * ``` * - * @since 2.0.0 * @category predicates + * @since 2.0.0 */ export declare const isInteger: (n: BigDecimal) => boolean; /** - * Checks if a given `BigDecimal` is `0`. + * Checks whether a given `BigDecimal` is `0`. + * + * **When to use** + * + * Use to test whether a `BigDecimal` is exactly zero. + * + * **Example** (Checking zero decimals) * - * @example * ```ts - * import { fromStringUnsafe, isZero } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(isZero(fromStringUnsafe("0")), true) - * assert.deepStrictEqual(isZero(fromStringUnsafe("1")), false) + * assert.deepStrictEqual(BigDecimal.isZero(BigDecimal.fromStringUnsafe("0")), true) + * assert.deepStrictEqual(BigDecimal.isZero(BigDecimal.fromStringUnsafe("1")), false) * ``` * - * @since 2.0.0 * @category predicates + * @since 2.0.0 */ export declare const isZero: (n: BigDecimal) => boolean; /** - * Checks if a given `BigDecimal` is negative. + * Checks whether a given `BigDecimal` is negative. + * + * **When to use** + * + * Use to test whether a `BigDecimal` is less than zero. + * + * **Example** (Checking negative decimals) * - * @example * ```ts - * import { fromStringUnsafe, isNegative } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(isNegative(fromStringUnsafe("-1")), true) - * assert.deepStrictEqual(isNegative(fromStringUnsafe("0")), false) - * assert.deepStrictEqual(isNegative(fromStringUnsafe("1")), false) + * assert.deepStrictEqual(BigDecimal.isNegative(BigDecimal.fromStringUnsafe("-1")), true) + * assert.deepStrictEqual(BigDecimal.isNegative(BigDecimal.fromStringUnsafe("0")), false) + * assert.deepStrictEqual(BigDecimal.isNegative(BigDecimal.fromStringUnsafe("1")), false) * ``` * - * @since 2.0.0 * @category predicates + * @since 2.0.0 */ export declare const isNegative: (n: BigDecimal) => boolean; /** - * Checks if a given `BigDecimal` is positive. + * Checks whether a given `BigDecimal` is positive. + * + * **When to use** + * + * Use to test whether a `BigDecimal` is greater than zero. + * + * **Example** (Checking positive decimals) * - * @example * ```ts - * import { fromStringUnsafe, isPositive } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(isPositive(fromStringUnsafe("-1")), false) - * assert.deepStrictEqual(isPositive(fromStringUnsafe("0")), false) - * assert.deepStrictEqual(isPositive(fromStringUnsafe("1")), true) + * assert.deepStrictEqual(BigDecimal.isPositive(BigDecimal.fromStringUnsafe("-1")), false) + * assert.deepStrictEqual(BigDecimal.isPositive(BigDecimal.fromStringUnsafe("0")), false) + * assert.deepStrictEqual(BigDecimal.isPositive(BigDecimal.fromStringUnsafe("1")), true) * ``` * - * @since 2.0.0 * @category predicates + * @since 2.0.0 */ export declare const isPositive: (n: BigDecimal) => boolean; /** * Rounding modes for `BigDecimal`. * - * `ceil`: round towards positive infinity - * `floor`: round towards negative infinity - * `to-zero`: round towards zero - * `from-zero`: round away from zero - * `half-ceil`: round to the nearest neighbor; if equidistant round towards positive infinity - * `half-floor`: round to the nearest neighbor; if equidistant round towards negative infinity - * `half-to-zero`: round to the nearest neighbor; if equidistant round towards zero - * `half-from-zero`: round to the nearest neighbor; if equidistant round away from zero - * `half-even`: round to the nearest neighbor; if equidistant round to the neighbor with an even digit - * `half-odd`: round to the nearest neighbor; if equidistant round to the neighbor with an odd digit + * **When to use** + * + * Use with `round` to choose how discarded digits affect a `BigDecimal` + * rounded to a target scale. + * + * **Details** + * + * - `ceil`: round towards positive infinity + * - `floor`: round towards negative infinity + * - `to-zero`: round towards zero + * - `from-zero`: round away from zero + * - `half-ceil`: round to the nearest neighbor; if equidistant round towards positive infinity + * - `half-floor`: round to the nearest neighbor; if equidistant round towards negative infinity + * - `half-to-zero`: round to the nearest neighbor; if equidistant round towards zero + * - `half-from-zero`: round to the nearest neighbor; if equidistant round away from zero + * - `half-even`: round to the nearest neighbor; if equidistant round to the neighbor with an even digit + * - `half-odd`: round to the nearest neighbor; if equidistant round to the neighbor with an odd digit + * + * @see {@link round} for configurable rounding with a `RoundingMode` + * @see {@link ceil} for fixed rounding toward positive infinity + * @see {@link floor} for fixed rounding toward negative infinity + * @see {@link truncate} for fixed rounding toward zero * - * @since 4.0.0 * @category math + * @since 3.16.0 */ export type RoundingMode = "ceil" | "floor" | "to-zero" | "from-zero" | "half-ceil" | "half-floor" | "half-to-zero" | "half-from-zero" | "half-even" | "half-odd"; /** - * Rounds a `BigDecimal` at the given scale with the specified rounding mode. + * Computes a rounded `BigDecimal` at the given scale with the specified rounding mode. + * + * **When to use** + * + * Use to round a decimal at a requested scale with an explicit rounding mode. + * + * **Example** (Rounding decimals) * - * @example * ```ts - * import { fromStringUnsafe, round } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * * assert.deepStrictEqual( - * round(fromStringUnsafe("145"), { mode: "from-zero", scale: -1 }), - * fromStringUnsafe("150") + * BigDecimal.round(BigDecimal.fromStringUnsafe("145"), { mode: "from-zero", scale: -1 }), + * BigDecimal.fromStringUnsafe("150") * ) * assert.deepStrictEqual( - * round(fromStringUnsafe("-14.5")), - * fromStringUnsafe("-15") + * BigDecimal.round(BigDecimal.fromStringUnsafe("-14.5")), + * BigDecimal.fromStringUnsafe("-15") * ) * ``` * - * @since 4.0.0 + * @see {@link ceil} for fixed rounding toward positive infinity + * @see {@link floor} for fixed rounding toward negative infinity + * @see {@link truncate} for fixed rounding toward zero + * * @category math + * @since 3.16.0 */ export declare const round: { /** - * Rounds a `BigDecimal` at the given scale with the specified rounding mode. + * Computes a rounded `BigDecimal` at the given scale with the specified rounding mode. + * + * **When to use** + * + * Use to round a decimal at a requested scale with an explicit rounding mode. + * + * **Example** (Rounding decimals) * - * @example * ```ts - * import { fromStringUnsafe, round } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * * assert.deepStrictEqual( - * round(fromStringUnsafe("145"), { mode: "from-zero", scale: -1 }), - * fromStringUnsafe("150") + * BigDecimal.round(BigDecimal.fromStringUnsafe("145"), { mode: "from-zero", scale: -1 }), + * BigDecimal.fromStringUnsafe("150") * ) * assert.deepStrictEqual( - * round(fromStringUnsafe("-14.5")), - * fromStringUnsafe("-15") + * BigDecimal.round(BigDecimal.fromStringUnsafe("-14.5")), + * BigDecimal.fromStringUnsafe("-15") * ) * ``` * - * @since 4.0.0 + * @see {@link ceil} for fixed rounding toward positive infinity + * @see {@link floor} for fixed rounding toward negative infinity + * @see {@link truncate} for fixed rounding toward zero + * * @category math + * @since 3.16.0 */ (options: { scale?: number; mode?: RoundingMode; }): (self: BigDecimal) => BigDecimal; /** - * Rounds a `BigDecimal` at the given scale with the specified rounding mode. + * Computes a rounded `BigDecimal` at the given scale with the specified rounding mode. + * + * **When to use** + * + * Use to round a decimal at a requested scale with an explicit rounding mode. + * + * **Example** (Rounding decimals) * - * @example * ```ts - * import { fromStringUnsafe, round } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * * assert.deepStrictEqual( - * round(fromStringUnsafe("145"), { mode: "from-zero", scale: -1 }), - * fromStringUnsafe("150") + * BigDecimal.round(BigDecimal.fromStringUnsafe("145"), { mode: "from-zero", scale: -1 }), + * BigDecimal.fromStringUnsafe("150") * ) * assert.deepStrictEqual( - * round(fromStringUnsafe("-14.5")), - * fromStringUnsafe("-15") + * BigDecimal.round(BigDecimal.fromStringUnsafe("-14.5")), + * BigDecimal.fromStringUnsafe("-15") * ) * ``` * - * @since 4.0.0 + * @see {@link ceil} for fixed rounding toward positive infinity + * @see {@link floor} for fixed rounding toward negative infinity + * @see {@link truncate} for fixed rounding toward zero + * * @category math + * @since 3.16.0 */ (n: BigDecimal, options?: { scale?: number; @@ -1848,194 +2436,278 @@ export declare const round: { }): BigDecimal; }; /** - * Truncate a `BigDecimal` at the given scale. This is the same operation as rounding away from zero. + * Computes a truncated `BigDecimal` at the given scale. This removes fractional digits beyond the scale, + * rounding toward zero. + * + * **When to use** + * + * Use when you need to discard fractional digits beyond a scale rather than + * round half up, half down, or toward an infinity. + * + * **Example** (Truncating decimals) * - * @example * ```ts - * import { fromStringUnsafe, truncate } from "effect/BigDecimal" - * import * as assert from "node:assert" + * import { BigDecimal } from "effect" * - * assert.deepStrictEqual( - * truncate(fromStringUnsafe("145"), -1), - * fromStringUnsafe("140") - * ) - * assert.deepStrictEqual( - * truncate(fromStringUnsafe("-14.5")), - * fromStringUnsafe("-14") - * ) + * console.log(BigDecimal.truncate(BigDecimal.fromStringUnsafe("145"), -1)) // BigDecimal(140) + * console.log(BigDecimal.truncate(BigDecimal.fromStringUnsafe("-14.5"))) // BigDecimal(-14) * ``` * - * @since 4.0.0 + * @see {@link round} for configurable rounding modes + * @see {@link ceil} for rounding toward positive infinity + * @see {@link floor} for rounding toward negative infinity + * * @category math + * @since 3.16.0 */ export declare const truncate: { /** - * Truncate a `BigDecimal` at the given scale. This is the same operation as rounding away from zero. + * Computes a truncated `BigDecimal` at the given scale. This removes fractional digits beyond the scale, + * rounding toward zero. + * + * **When to use** + * + * Use when you need to discard fractional digits beyond a scale rather than + * round half up, half down, or toward an infinity. + * + * **Example** (Truncating decimals) * - * @example * ```ts - * import { fromStringUnsafe, truncate } from "effect/BigDecimal" - * import * as assert from "node:assert" + * import { BigDecimal } from "effect" * - * assert.deepStrictEqual( - * truncate(fromStringUnsafe("145"), -1), - * fromStringUnsafe("140") - * ) - * assert.deepStrictEqual( - * truncate(fromStringUnsafe("-14.5")), - * fromStringUnsafe("-14") - * ) + * console.log(BigDecimal.truncate(BigDecimal.fromStringUnsafe("145"), -1)) // BigDecimal(140) + * console.log(BigDecimal.truncate(BigDecimal.fromStringUnsafe("-14.5"))) // BigDecimal(-14) * ``` * - * @since 4.0.0 + * @see {@link round} for configurable rounding modes + * @see {@link ceil} for rounding toward positive infinity + * @see {@link floor} for rounding toward negative infinity + * * @category math + * @since 3.16.0 */ (scale: number): (self: BigDecimal) => BigDecimal; /** - * Truncate a `BigDecimal` at the given scale. This is the same operation as rounding away from zero. + * Computes a truncated `BigDecimal` at the given scale. This removes fractional digits beyond the scale, + * rounding toward zero. + * + * **When to use** + * + * Use when you need to discard fractional digits beyond a scale rather than + * round half up, half down, or toward an infinity. + * + * **Example** (Truncating decimals) * - * @example * ```ts - * import { fromStringUnsafe, truncate } from "effect/BigDecimal" - * import * as assert from "node:assert" + * import { BigDecimal } from "effect" * - * assert.deepStrictEqual( - * truncate(fromStringUnsafe("145"), -1), - * fromStringUnsafe("140") - * ) - * assert.deepStrictEqual( - * truncate(fromStringUnsafe("-14.5")), - * fromStringUnsafe("-14") - * ) + * console.log(BigDecimal.truncate(BigDecimal.fromStringUnsafe("145"), -1)) // BigDecimal(140) + * console.log(BigDecimal.truncate(BigDecimal.fromStringUnsafe("-14.5"))) // BigDecimal(-14) * ``` * - * @since 4.0.0 + * @see {@link round} for configurable rounding modes + * @see {@link ceil} for rounding toward positive infinity + * @see {@link floor} for rounding toward negative infinity + * * @category math + * @since 3.16.0 */ (self: BigDecimal, scale?: number): BigDecimal; }; /** - * Calculate the ceiling of a `BigDecimal` at the given scale. + * Computes the ceiling of a `BigDecimal` at the given scale. + * + * **When to use** + * + * Use to round a decimal toward positive infinity at a requested scale. + * + * **Details** + * + * The default scale is `0`. Positive scales keep digits to the right of the + * decimal point, and negative scales round positions to the left of the decimal + * point. + * + * @see {@link floor} for rounding toward negative infinity + * @see {@link truncate} for rounding toward zero + * @see {@link round} for configurable rounding modes + * + * **Example** (Rounding decimals up) * - * @example * ```ts - * import { ceil, fromStringUnsafe } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * * assert.deepStrictEqual( - * ceil(fromStringUnsafe("145"), -1), - * fromStringUnsafe("150") + * BigDecimal.ceil(BigDecimal.fromStringUnsafe("145"), -1), + * BigDecimal.fromStringUnsafe("150") * ) - * assert.deepStrictEqual(ceil(fromStringUnsafe("-14.5")), fromStringUnsafe("-14")) + * assert.deepStrictEqual(BigDecimal.ceil(BigDecimal.fromStringUnsafe("-14.5")), BigDecimal.fromStringUnsafe("-14")) * ``` * - * @since 4.0.0 * @category math + * @since 3.16.0 */ export declare const ceil: { /** - * Calculate the ceiling of a `BigDecimal` at the given scale. + * Computes the ceiling of a `BigDecimal` at the given scale. + * + * **When to use** + * + * Use to round a decimal toward positive infinity at a requested scale. + * + * **Details** + * + * The default scale is `0`. Positive scales keep digits to the right of the + * decimal point, and negative scales round positions to the left of the decimal + * point. + * + * @see {@link floor} for rounding toward negative infinity + * @see {@link truncate} for rounding toward zero + * @see {@link round} for configurable rounding modes + * + * **Example** (Rounding decimals up) * - * @example * ```ts - * import { ceil, fromStringUnsafe } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * * assert.deepStrictEqual( - * ceil(fromStringUnsafe("145"), -1), - * fromStringUnsafe("150") + * BigDecimal.ceil(BigDecimal.fromStringUnsafe("145"), -1), + * BigDecimal.fromStringUnsafe("150") * ) - * assert.deepStrictEqual(ceil(fromStringUnsafe("-14.5")), fromStringUnsafe("-14")) + * assert.deepStrictEqual(BigDecimal.ceil(BigDecimal.fromStringUnsafe("-14.5")), BigDecimal.fromStringUnsafe("-14")) * ``` * - * @since 4.0.0 * @category math + * @since 3.16.0 */ (scale: number): (self: BigDecimal) => BigDecimal; /** - * Calculate the ceiling of a `BigDecimal` at the given scale. + * Computes the ceiling of a `BigDecimal` at the given scale. + * + * **When to use** + * + * Use to round a decimal toward positive infinity at a requested scale. + * + * **Details** + * + * The default scale is `0`. Positive scales keep digits to the right of the + * decimal point, and negative scales round positions to the left of the decimal + * point. + * + * @see {@link floor} for rounding toward negative infinity + * @see {@link truncate} for rounding toward zero + * @see {@link round} for configurable rounding modes + * + * **Example** (Rounding decimals up) * - * @example * ```ts - * import { ceil, fromStringUnsafe } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * * assert.deepStrictEqual( - * ceil(fromStringUnsafe("145"), -1), - * fromStringUnsafe("150") + * BigDecimal.ceil(BigDecimal.fromStringUnsafe("145"), -1), + * BigDecimal.fromStringUnsafe("150") * ) - * assert.deepStrictEqual(ceil(fromStringUnsafe("-14.5")), fromStringUnsafe("-14")) + * assert.deepStrictEqual(BigDecimal.ceil(BigDecimal.fromStringUnsafe("-14.5")), BigDecimal.fromStringUnsafe("-14")) * ``` * - * @since 4.0.0 * @category math + * @since 3.16.0 */ (self: BigDecimal, scale?: number): BigDecimal; }; /** - * Calculate the floor of a `BigDecimal` at the given scale. + * Computes the floor of a `BigDecimal` at the given scale. + * + * **When to use** + * + * Use to round a decimal toward negative infinity at a requested scale. + * + * **Example** (Rounding decimals down) * - * @example * ```ts - * import { floor, fromStringUnsafe } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * * assert.deepStrictEqual( - * floor(fromStringUnsafe("145"), -1), - * fromStringUnsafe("140") + * BigDecimal.floor(BigDecimal.fromStringUnsafe("145"), -1), + * BigDecimal.fromStringUnsafe("140") * ) * assert.deepStrictEqual( - * floor(fromStringUnsafe("-14.5")), - * fromStringUnsafe("-15") + * BigDecimal.floor(BigDecimal.fromStringUnsafe("-14.5")), + * BigDecimal.fromStringUnsafe("-15") * ) * ``` * - * @since 4.0.0 + * @see {@link ceil} for rounding toward positive infinity + * @see {@link truncate} for rounding toward zero + * @see {@link round} for configurable rounding modes + * * @category math + * @since 3.16.0 */ export declare const floor: { /** - * Calculate the floor of a `BigDecimal` at the given scale. + * Computes the floor of a `BigDecimal` at the given scale. + * + * **When to use** + * + * Use to round a decimal toward negative infinity at a requested scale. + * + * **Example** (Rounding decimals down) * - * @example * ```ts - * import { floor, fromStringUnsafe } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * * assert.deepStrictEqual( - * floor(fromStringUnsafe("145"), -1), - * fromStringUnsafe("140") + * BigDecimal.floor(BigDecimal.fromStringUnsafe("145"), -1), + * BigDecimal.fromStringUnsafe("140") * ) * assert.deepStrictEqual( - * floor(fromStringUnsafe("-14.5")), - * fromStringUnsafe("-15") + * BigDecimal.floor(BigDecimal.fromStringUnsafe("-14.5")), + * BigDecimal.fromStringUnsafe("-15") * ) * ``` * - * @since 4.0.0 + * @see {@link ceil} for rounding toward positive infinity + * @see {@link truncate} for rounding toward zero + * @see {@link round} for configurable rounding modes + * * @category math + * @since 3.16.0 */ (scale: number): (self: BigDecimal) => BigDecimal; /** - * Calculate the floor of a `BigDecimal` at the given scale. + * Computes the floor of a `BigDecimal` at the given scale. + * + * **When to use** + * + * Use to round a decimal toward negative infinity at a requested scale. + * + * **Example** (Rounding decimals down) * - * @example * ```ts - * import { floor, fromStringUnsafe } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * * assert.deepStrictEqual( - * floor(fromStringUnsafe("145"), -1), - * fromStringUnsafe("140") + * BigDecimal.floor(BigDecimal.fromStringUnsafe("145"), -1), + * BigDecimal.fromStringUnsafe("140") * ) * assert.deepStrictEqual( - * floor(fromStringUnsafe("-14.5")), - * fromStringUnsafe("-15") + * BigDecimal.floor(BigDecimal.fromStringUnsafe("-14.5")), + * BigDecimal.fromStringUnsafe("-15") * ) * ``` * - * @since 4.0.0 + * @see {@link ceil} for rounding toward positive infinity + * @see {@link truncate} for rounding toward zero + * @see {@link round} for configurable rounding modes + * * @category math + * @since 3.16.0 */ (self: BigDecimal, scale?: number): BigDecimal; }; diff --git a/.opencode/node_modules/effect/dist/BigDecimal.d.ts.map b/.opencode/node_modules/effect/dist/BigDecimal.d.ts.map index de250b835e145f700f0dbc7c4d8e0a404fb17a1e..9cdf45857af1b75c8ee199520359466e1fa4a014 100644 --- a/.opencode/node_modules/effect/dist/BigDecimal.d.ts.map +++ b/.opencode/node_modules/effect/dist/BigDecimal.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"BigDecimal.d.ts","sourceRoot":"","sources":["../src/BigDecimal.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,GAAG,MAAM,kBAAkB,CAAA;AAGvC,OAAO,EAAE,KAAK,WAAW,EAAqB,MAAM,kBAAkB,CAAA;AACtE,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAC7C,OAAO,EAAE,KAAK,QAAQ,EAAiB,MAAM,eAAe,CAAA;AAM5D,QAAA,MAAM,MAAM,uBAAuB,CAAA;AAEnC;;;;;;;;;;;;;;;GAeG;AACH,MAAM,WAAW,UAAW,SAAQ,KAAK,CAAC,KAAK,EAA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EF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,eAAO,MAAM,IAAI,EAAE;IACjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgCG;IACH,CAAC,KAAK,EAAE,MAAM,GAAG,CAAC,IAAI,EAAE,UAAU,KAAK,UAAU,CAAA;IACjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgCG;IACH,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,UAAU,CAAA;CAS9C,CAAA;AAmCF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,eAAO,MAAM,KAAK,EAAE;IAClB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,CAAC,KAAK,EAAE,MAAM,GAAG,CAAC,IAAI,EAAE,UAAU,KAAK,UAAU,CAAA;IACjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,UAAU,CAAA;CAS9C,CAAA"} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/BigDecimal.js b/.opencode/node_modules/effect/dist/BigDecimal.js index 2d8a9f8f272030b0a86698f9839b9dd12a90e3c0..5a830b9d636b16f9399ccf6c2666b8c210edc511 100644 --- a/.opencode/node_modules/effect/dist/BigDecimal.js +++ b/.opencode/node_modules/effect/dist/BigDecimal.js @@ -1,15 +1,9 @@ /** - * This module provides utility functions and type class instances for working with the `BigDecimal` type in TypeScript. - * It includes functions for basic arithmetic operations. - * - * A `BigDecimal` allows storing any real number to arbitrary precision; which avoids common floating point errors - * (such as 0.1 + 0.2 ≠ 0.3) at the cost of complexity. - * - * Internally, `BigDecimal` uses a `BigInt` object, paired with a 64-bit integer which determines the position of the - * decimal point. Therefore, the precision *is not* actually arbitrary, but limited to 263 decimal places. - * - * It is not recommended to convert a floating point number to a decimal directly, as the floating point representation - * may be unexpected. + * Decimal numbers and arithmetic for cases where JavaScript `number` rounding + * is not precise enough. A `BigDecimal` stores digits as a `bigint` plus a + * decimal scale, which lets the module parse, compare, add, subtract, multiply, + * divide, round, and format decimal values such as money, quantities, and + * measurements. * * @since 2.0.0 */ @@ -52,9 +46,14 @@ const BigDecimalProto = { } }; /** - * Checks if a given value is a `BigDecimal`. + * Checks whether a given value is a `BigDecimal`. + * + * **When to use** + * + * Use to validate unknown input and narrow it to `BigDecimal`. + * + * **Example** (Checking BigDecimal values) * - * @example * ```ts * import { BigDecimal } from "effect" * @@ -64,14 +63,20 @@ const BigDecimalProto = { * console.log(BigDecimal.isBigDecimal("123.45")) // false * ``` * - * @since 2.0.0 * @category guards + * @since 2.0.0 */ export const isBigDecimal = u => hasProperty(u, TypeId); /** * Creates a `BigDecimal` from a `bigint` value and a scale. * - * @example + * **When to use** + * + * Use to construct a decimal directly from its unscaled integer value and + * decimal scale. + * + * **Example** (Creating decimals from bigint and scale) + * * ```ts * import { BigDecimal } from "effect" * @@ -84,8 +89,10 @@ export const isBigDecimal = u => hasProperty(u, TypeId); * console.log(BigDecimal.format(integer)) // "42" * ``` * - * @since 2.0.0 + * @see {@link fromBigInt} for constructing an integer decimal from a `bigint` + * * @category constructors + * @since 2.0.0 */ export const make = (value, scale) => { const o = Object.create(BigDecimalProto); @@ -118,23 +125,31 @@ const one = /*#__PURE__*/makeNormalizedUnsafe(bigint1, 0); /** * Normalizes a given `BigDecimal` by removing trailing zeros. * - * @example + * **When to use** + * + * Use to canonicalize decimals that have equivalent values but different + * internal scales. + * + * **Example** (Normalizing trailing zeros) + * * ```ts - * import { fromStringUnsafe, make, normalize } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * * assert.deepStrictEqual( - * normalize(fromStringUnsafe("123.00000")), - * normalize(make(123n, 0)) + * BigDecimal.normalize(BigDecimal.fromStringUnsafe("123.00000")), + * BigDecimal.normalize(BigDecimal.make(123n, 0)) * ) * assert.deepStrictEqual( - * normalize(fromStringUnsafe("12300000")), - * normalize(make(123n, -5)) + * BigDecimal.normalize(BigDecimal.fromStringUnsafe("12300000")), + * BigDecimal.normalize(BigDecimal.make(123n, -5)) * ) * ``` * - * @since 2.0.0 + * @see {@link format} for rendering normalized decimals as strings + * * @category scaling + * @since 2.0.0 */ export const normalize = self => { if (self.normalized === undefined) { @@ -161,12 +176,20 @@ export const normalize = self => { return self.normalized; }; /** - * Scales a given `BigDecimal` to the specified scale. + * Changes a `BigDecimal` to the specified scale. + * + * **When to use** + * + * Use to change how many decimal places are represented by a `BigDecimal`. + * + * **Details** + * + * Increasing the scale appends decimal zeros. Decreasing the scale discards + * digits beyond the target scale by `bigint` division, which truncates toward + * zero. * - * If the given scale is smaller than the current scale, the value will be rounded down to - * the nearest integer. + * **Example** (Scaling decimal precision) * - * @example * ```ts * import { BigDecimal } from "effect" * @@ -181,8 +204,10 @@ export const normalize = self => { * console.log(BigDecimal.format(reduced)) // "123.4" * ``` * - * @since 2.0.0 + * @see {@link round} for changing scale with configurable rounding + * * @category scaling + * @since 2.0.0 */ export const scale = /*#__PURE__*/dual(2, (self, scale) => { if (scale > self.scale) { @@ -196,19 +221,27 @@ export const scale = /*#__PURE__*/dual(2, (self, scale) => { /** * Provides an addition operation on `BigDecimal`s. * - * @example + * **When to use** + * + * Use when you need a decimal addition function for piping or higher-order APIs + * while preserving decimal precision. + * + * **Example** (Adding decimals) + * * ```ts - * import { fromStringUnsafe, sum } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * * assert.deepStrictEqual( - * sum(fromStringUnsafe("2"), fromStringUnsafe("3")), - * fromStringUnsafe("5") + * BigDecimal.sum(BigDecimal.fromStringUnsafe("2"), BigDecimal.fromStringUnsafe("3")), + * BigDecimal.fromStringUnsafe("5") * ) * ``` * - * @since 2.0.0 + * @see {@link sumAll} for summing an iterable of `BigDecimal` values + * * @category math + * @since 2.0.0 */ export const sum = /*#__PURE__*/dual(2, (self, that) => { if (that.value === bigint0) { @@ -228,19 +261,27 @@ export const sum = /*#__PURE__*/dual(2, (self, that) => { /** * Takes an `Iterable` of `BigDecimal`s and returns their sum as a single `BigDecimal`. * - * @example + * **When to use** + * + * Use when you need to aggregate decimal quantities with decimal precision + * instead of converting through JavaScript numbers. + * + * **Example** (Adding multiple decimals) + * * ```ts - * import { fromStringUnsafe, sumAll } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * * assert.deepStrictEqual( - * sumAll([fromStringUnsafe("2"), fromStringUnsafe("3"), fromStringUnsafe("4")]), - * fromStringUnsafe("9") + * BigDecimal.sumAll([BigDecimal.fromStringUnsafe("2"), BigDecimal.fromStringUnsafe("3"), BigDecimal.fromStringUnsafe("4")]), + * BigDecimal.fromStringUnsafe("9") * ) * ``` * - * @since 4.0.0 + * @see {@link sum} for adding two `BigDecimal` values + * * @category math + * @since 3.16.0 */ export const sumAll = collection => { let out = zero; @@ -252,19 +293,26 @@ export const sumAll = collection => { /** * Provides a multiplication operation on `BigDecimal`s. * - * @example + * **When to use** + * + * Use to multiply two `BigDecimal` values. + * + * **Example** (Multiplying decimals) + * * ```ts - * import { fromStringUnsafe, multiply } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * * assert.deepStrictEqual( - * multiply(fromStringUnsafe("2"), fromStringUnsafe("3")), - * fromStringUnsafe("6") + * BigDecimal.multiply(BigDecimal.fromStringUnsafe("2"), BigDecimal.fromStringUnsafe("3")), + * BigDecimal.fromStringUnsafe("6") * ) * ``` * - * @since 2.0.0 + * @see {@link multiplyAll} for multiplying an iterable of `BigDecimal` values + * * @category math + * @since 2.0.0 */ export const multiply = /*#__PURE__*/dual(2, (self, that) => { if (that.value === bigint0 || self.value === bigint0) { @@ -275,19 +323,26 @@ export const multiply = /*#__PURE__*/dual(2, (self, that) => { /** * Takes an `Iterable` of `BigDecimal`s and returns their multiplication as a single `BigDecimal`. * - * @example + * **When to use** + * + * Use to multiply all `BigDecimal` values in an iterable. + * + * **Example** (Multiplying multiple decimals) + * * ```ts - * import { fromStringUnsafe, multiplyAll } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * * assert.deepStrictEqual( - * multiplyAll([fromStringUnsafe("2"), fromStringUnsafe("3"), fromStringUnsafe("4")]), - * fromStringUnsafe("24") + * BigDecimal.multiplyAll([BigDecimal.fromStringUnsafe("2"), BigDecimal.fromStringUnsafe("3"), BigDecimal.fromStringUnsafe("4")]), + * BigDecimal.fromStringUnsafe("24") * ) * ``` * - * @since 4.0.0 + * @see {@link multiply} for multiplying two `BigDecimal` values + * * @category math + * @since 4.0.0 */ export const multiplyAll = collection => { let out = one; @@ -302,19 +357,24 @@ export const multiplyAll = collection => { /** * Provides a subtraction operation on `BigDecimal`s. * - * @example + * **When to use** + * + * Use to subtract one `BigDecimal` value from another. + * + * **Example** (Subtracting decimals) + * * ```ts - * import { fromStringUnsafe, subtract } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * * assert.deepStrictEqual( - * subtract(fromStringUnsafe("2"), fromStringUnsafe("3")), - * fromStringUnsafe("-1") + * BigDecimal.subtract(BigDecimal.fromStringUnsafe("2"), BigDecimal.fromStringUnsafe("3")), + * BigDecimal.fromStringUnsafe("-1") * ) * ``` * - * @since 2.0.0 * @category math + * @since 2.0.0 */ export const subtract = /*#__PURE__*/dual(2, (self, that) => { if (that.value === bigint0) { @@ -384,43 +444,55 @@ export const roundTerminal = n => { return Number(`${n}`[pos]) < 5 ? bigint0 : bigint1; }; /** - * Provides a division operation on `BigDecimal`s. + * Divides `BigDecimal`s safely. * - * If the dividend is not a multiple of the divisor the result will be a `BigDecimal` value - * which represents the integer division rounded down to the nearest integer. + * **When to use** * - * If the divisor is `0`, the result will be `Option.none()`. + * Use to divide `BigDecimal` values while representing division by zero as + * `Option.none`. + * + * **Details** + * + * If the dividend is not a multiple of the divisor, the result will be a `BigDecimal` value + * with up to the default division precision. If the divisor is `0`, the result + * will be `Option.none()`. + * + * **Example** (Dividing decimals safely) * - * @example * ```ts * import { BigDecimal, Option } from "effect" - * import * as assert from "node:assert" * - * assert.deepStrictEqual( - * BigDecimal.divide( - * BigDecimal.fromStringUnsafe("6"), - * BigDecimal.fromStringUnsafe("3") - * ), - * Option.some(BigDecimal.fromStringUnsafe("2")) - * ) - * assert.deepStrictEqual( - * BigDecimal.divide( - * BigDecimal.fromStringUnsafe("6"), - * BigDecimal.fromStringUnsafe("4") - * ), - * Option.some(BigDecimal.fromStringUnsafe("1.5")) - * ) - * assert.deepStrictEqual( - * BigDecimal.divide( - * BigDecimal.fromStringUnsafe("6"), - * BigDecimal.fromStringUnsafe("0") - * ), - * Option.none() - * ) + * console.log( + * Option.getOrThrow( + * BigDecimal.divide( + * BigDecimal.fromStringUnsafe("6"), + * BigDecimal.fromStringUnsafe("3") + * ) + * ) + * ) // BigDecimal(2) + * console.log( + * Option.getOrThrow( + * BigDecimal.divide( + * BigDecimal.fromStringUnsafe("6"), + * BigDecimal.fromStringUnsafe("4") + * ) + * ) + * ) // BigDecimal(1.5) + * console.log( + * Option.isNone( + * BigDecimal.divide( + * BigDecimal.fromStringUnsafe("6"), + * BigDecimal.fromStringUnsafe("0") + * ) + * ) + * ) // true * ``` * - * @since 2.0.0 + * @see {@link divideUnsafe} for division that throws when the divisor is zero + * @see {@link remainder} for the decimal remainder operation + * * @category math + * @since 2.0.0 */ export const divide = /*#__PURE__*/dual(2, (self, that) => { if (that.value === bigint0) { @@ -438,28 +510,33 @@ export const divide = /*#__PURE__*/dual(2, (self, that) => { /** * Provides an unsafe division operation on `BigDecimal`s. * - * If the dividend is not a multiple of the divisor the result will be a `BigDecimal` value - * which represents the integer division rounded down to the nearest integer. + * **When to use** + * + * Use when you need to divide `BigDecimal` values where the divisor is known + * to be non-zero, so division by zero should be a thrown exception. + * + * **Details** + * + * If the dividend is not a multiple of the divisor, the result will be a `BigDecimal` value + * with up to the default division precision. + * + * **Gotchas** * * Throws a `RangeError` if the divisor is `0`. * - * @example + * **Example** (Dividing decimals unsafely) + * * ```ts - * import { divideUnsafe, fromStringUnsafe } from "effect/BigDecimal" - * import * as assert from "node:assert" + * import { BigDecimal } from "effect" * - * assert.deepStrictEqual( - * divideUnsafe(fromStringUnsafe("6"), fromStringUnsafe("3")), - * fromStringUnsafe("2") - * ) - * assert.deepStrictEqual( - * divideUnsafe(fromStringUnsafe("6"), fromStringUnsafe("4")), - * fromStringUnsafe("1.5") - * ) + * console.log(BigDecimal.divideUnsafe(BigDecimal.fromStringUnsafe("6"), BigDecimal.fromStringUnsafe("3"))) // BigDecimal(2) + * console.log(BigDecimal.divideUnsafe(BigDecimal.fromStringUnsafe("6"), BigDecimal.fromStringUnsafe("4"))) // BigDecimal(1.5) * ``` * - * @since 2.0.0 + * @see {@link divide} for division that returns `Option.none` when the divisor is zero + * * @category math + * @since 4.0.0 */ export const divideUnsafe = /*#__PURE__*/dual(2, (self, that) => { if (that.value === bigint0) { @@ -477,7 +554,13 @@ export const divideUnsafe = /*#__PURE__*/dual(2, (self, that) => { /** * Provides an `Order` instance for `BigDecimal` that allows comparing and sorting BigDecimal values. * - * @example + * **When to use** + * + * Use when you need to sort or compare decimal values through APIs that accept + * an ordering instance. + * + * **Example** (Comparing decimals) + * * ```ts * import { BigDecimal } from "effect" * @@ -490,8 +573,8 @@ export const divideUnsafe = /*#__PURE__*/dual(2, (self, that) => { * console.log(BigDecimal.Order(a, c)) // 0 (a === c) * ``` * - * @since 2.0.0 * @category instances + * @since 2.0.0 */ export const Order = /*#__PURE__*/order.make((self, that) => { const scmp = order.Number(sign(self), sign(that)); @@ -509,111 +592,136 @@ export const Order = /*#__PURE__*/order.make((self, that) => { /** * Returns `true` if the first argument is less than the second, otherwise `false`. * - * @example + * **When to use** + * + * Use to test whether one `BigDecimal` is strictly less than another. + * + * **Example** (Checking less-than comparisons) + * * ```ts - * import { fromStringUnsafe, isLessThan } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * * assert.deepStrictEqual( - * isLessThan(fromStringUnsafe("2"), fromStringUnsafe("3")), + * BigDecimal.isLessThan(BigDecimal.fromStringUnsafe("2"), BigDecimal.fromStringUnsafe("3")), * true * ) * assert.deepStrictEqual( - * isLessThan(fromStringUnsafe("3"), fromStringUnsafe("3")), + * BigDecimal.isLessThan(BigDecimal.fromStringUnsafe("3"), BigDecimal.fromStringUnsafe("3")), * false * ) * assert.deepStrictEqual( - * isLessThan(fromStringUnsafe("4"), fromStringUnsafe("3")), + * BigDecimal.isLessThan(BigDecimal.fromStringUnsafe("4"), BigDecimal.fromStringUnsafe("3")), * false * ) * ``` * - * @since 2.0.0 * @category predicates + * @since 4.0.0 */ export const isLessThan = /*#__PURE__*/order.isLessThan(Order); /** - * Checks if a given `BigDecimal` is less than or equal to the provided one. + * Checks whether a given `BigDecimal` is less than or equal to the provided one. + * + * **When to use** + * + * Use to test whether one `BigDecimal` is less than or equal to another. + * + * **Example** (Checking less-than-or-equal comparisons) * - * @example * ```ts - * import { fromStringUnsafe, isLessThanOrEqualTo } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * * assert.deepStrictEqual( - * isLessThanOrEqualTo(fromStringUnsafe("2"), fromStringUnsafe("3")), + * BigDecimal.isLessThanOrEqualTo(BigDecimal.fromStringUnsafe("2"), BigDecimal.fromStringUnsafe("3")), * true * ) * assert.deepStrictEqual( - * isLessThanOrEqualTo(fromStringUnsafe("3"), fromStringUnsafe("3")), + * BigDecimal.isLessThanOrEqualTo(BigDecimal.fromStringUnsafe("3"), BigDecimal.fromStringUnsafe("3")), * true * ) * assert.deepStrictEqual( - * isLessThanOrEqualTo(fromStringUnsafe("4"), fromStringUnsafe("3")), + * BigDecimal.isLessThanOrEqualTo(BigDecimal.fromStringUnsafe("4"), BigDecimal.fromStringUnsafe("3")), * false * ) * ``` * - * @since 2.0.0 * @category predicates + * @since 4.0.0 */ export const isLessThanOrEqualTo = /*#__PURE__*/order.isLessThanOrEqualTo(Order); /** * Returns `true` if the first argument is greater than the second, otherwise `false`. * - * @example + * **When to use** + * + * Use to test whether one `BigDecimal` is strictly greater than another. + * + * **Example** (Checking greater-than comparisons) + * * ```ts - * import { fromStringUnsafe, isGreaterThan } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * * assert.deepStrictEqual( - * isGreaterThan(fromStringUnsafe("2"), fromStringUnsafe("3")), + * BigDecimal.isGreaterThan(BigDecimal.fromStringUnsafe("2"), BigDecimal.fromStringUnsafe("3")), * false * ) * assert.deepStrictEqual( - * isGreaterThan(fromStringUnsafe("3"), fromStringUnsafe("3")), + * BigDecimal.isGreaterThan(BigDecimal.fromStringUnsafe("3"), BigDecimal.fromStringUnsafe("3")), * false * ) * assert.deepStrictEqual( - * isGreaterThan(fromStringUnsafe("4"), fromStringUnsafe("3")), + * BigDecimal.isGreaterThan(BigDecimal.fromStringUnsafe("4"), BigDecimal.fromStringUnsafe("3")), * true * ) * ``` * - * @since 2.0.0 * @category predicates + * @since 4.0.0 */ export const isGreaterThan = /*#__PURE__*/order.isGreaterThan(Order); /** - * Checks if a given `BigDecimal` is greater than or equal to the provided one. + * Checks whether a given `BigDecimal` is greater than or equal to the provided one. + * + * **When to use** + * + * Use to test whether one `BigDecimal` is greater than or equal to another. + * + * **Example** (Checking greater-than-or-equal comparisons) * - * @example * ```ts - * import { fromStringUnsafe, isGreaterThanOrEqualTo } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * * assert.deepStrictEqual( - * isGreaterThanOrEqualTo(fromStringUnsafe("2"), fromStringUnsafe("3")), + * BigDecimal.isGreaterThanOrEqualTo(BigDecimal.fromStringUnsafe("2"), BigDecimal.fromStringUnsafe("3")), * false * ) * assert.deepStrictEqual( - * isGreaterThanOrEqualTo(fromStringUnsafe("3"), fromStringUnsafe("3")), + * BigDecimal.isGreaterThanOrEqualTo(BigDecimal.fromStringUnsafe("3"), BigDecimal.fromStringUnsafe("3")), * true * ) * assert.deepStrictEqual( - * isGreaterThanOrEqualTo(fromStringUnsafe("4"), fromStringUnsafe("3")), + * BigDecimal.isGreaterThanOrEqualTo(BigDecimal.fromStringUnsafe("4"), BigDecimal.fromStringUnsafe("3")), * true * ) * ``` * - * @since 2.0.0 * @category predicates + * @since 4.0.0 */ export const isGreaterThanOrEqualTo = /*#__PURE__*/order.isGreaterThanOrEqualTo(Order); /** - * Checks if a `BigDecimal` is between a `minimum` and `maximum` value (inclusive). + * Checks whether a `BigDecimal` is between a `minimum` and `maximum` value (inclusive). + * + * **When to use** + * + * Use to test whether a `BigDecimal` falls inside an inclusive range. + * + * **Example** (Checking decimal ranges) * - * @example * ```ts * import { BigDecimal } from "effect" * import * as assert from "node:assert" @@ -628,18 +736,27 @@ export const isGreaterThanOrEqualTo = /*#__PURE__*/order.isGreaterThanOrEqualTo( * assert.deepStrictEqual(between(BigDecimal.fromStringUnsafe("6")), false) * ``` * - * @since 2.0.0 + * @see {@link clamp} for forcing a `BigDecimal` into an inclusive range + * * @category predicates + * @since 2.0.0 */ export const between = /*#__PURE__*/order.isBetween(Order); /** * Restricts the given `BigDecimal` to be within the range specified by the `minimum` and `maximum` values. * - * - If the `BigDecimal` is less than the `minimum` value, the function returns the `minimum` value. - * - If the `BigDecimal` is greater than the `maximum` value, the function returns the `maximum` value. - * - Otherwise, it returns the original `BigDecimal`. + * **When to use** + * + * Use to force a `BigDecimal` into an inclusive range. + * + * **Details** + * + * If the `BigDecimal` is less than the `minimum` value, the function returns + * the `minimum` value. If it is greater than the `maximum` value, the function + * returns the `maximum` value. Otherwise, it returns the original `BigDecimal`. + * + * **Example** (Clamping decimals to a range) * - * @example * ```ts * import { BigDecimal } from "effect" * import * as assert from "node:assert" @@ -663,102 +780,142 @@ export const between = /*#__PURE__*/order.isBetween(Order); * ) * ``` * - * @since 2.0.0 + * @see {@link between} for checking whether a `BigDecimal` is already inside a range + * * @category math + * @since 2.0.0 */ export const clamp = /*#__PURE__*/order.clamp(Order); /** * Returns the minimum between two `BigDecimal`s. * - * @example + * **When to use** + * + * Use to select the smaller of two `BigDecimal` values. + * + * **Example** (Selecting the smaller decimal) + * * ```ts - * import { fromStringUnsafe, min } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * * assert.deepStrictEqual( - * min(fromStringUnsafe("2"), fromStringUnsafe("3")), - * fromStringUnsafe("2") + * BigDecimal.min(BigDecimal.fromStringUnsafe("2"), BigDecimal.fromStringUnsafe("3")), + * BigDecimal.fromStringUnsafe("2") * ) * ``` * - * @since 2.0.0 + * @see {@link max} for selecting the larger value + * * @category math + * @since 2.0.0 */ export const min = /*#__PURE__*/order.min(Order); /** * Returns the maximum between two `BigDecimal`s. * - * @example + * **When to use** + * + * Use to select the larger of two `BigDecimal` values. + * + * **Example** (Selecting the larger decimal) + * * ```ts - * import { fromStringUnsafe, max } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * * assert.deepStrictEqual( - * max(fromStringUnsafe("2"), fromStringUnsafe("3")), - * fromStringUnsafe("3") + * BigDecimal.max(BigDecimal.fromStringUnsafe("2"), BigDecimal.fromStringUnsafe("3")), + * BigDecimal.fromStringUnsafe("3") * ) * ``` * - * @since 2.0.0 + * @see {@link min} for selecting the smaller value + * * @category math + * @since 2.0.0 */ export const max = /*#__PURE__*/order.max(Order); /** * Determines the sign of a given `BigDecimal`. * - * @example + * **When to use** + * + * Use to classify a `BigDecimal` as negative, zero, or positive. + * + * **Example** (Reading decimal signs) + * * ```ts - * import { fromStringUnsafe, sign } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(sign(fromStringUnsafe("-5")), -1) - * assert.deepStrictEqual(sign(fromStringUnsafe("0")), 0) - * assert.deepStrictEqual(sign(fromStringUnsafe("5")), 1) + * assert.deepStrictEqual(BigDecimal.sign(BigDecimal.fromStringUnsafe("-5")), -1) + * assert.deepStrictEqual(BigDecimal.sign(BigDecimal.fromStringUnsafe("0")), 0) + * assert.deepStrictEqual(BigDecimal.sign(BigDecimal.fromStringUnsafe("5")), 1) * ``` * - * @since 2.0.0 * @category math + * @since 2.0.0 */ export const sign = n => n.value === bigint0 ? 0 : n.value < bigint0 ? -1 : 1; /** * Determines the absolute value of a given `BigDecimal`. * - * @example + * **When to use** + * + * Use to remove the sign from a `BigDecimal` while preserving its magnitude. + * + * **Example** (Calculating absolute values) + * * ```ts - * import { abs, fromStringUnsafe } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(abs(fromStringUnsafe("-5")), fromStringUnsafe("5")) - * assert.deepStrictEqual(abs(fromStringUnsafe("0")), fromStringUnsafe("0")) - * assert.deepStrictEqual(abs(fromStringUnsafe("5")), fromStringUnsafe("5")) + * assert.deepStrictEqual(BigDecimal.abs(BigDecimal.fromStringUnsafe("-5")), BigDecimal.fromStringUnsafe("5")) + * assert.deepStrictEqual(BigDecimal.abs(BigDecimal.fromStringUnsafe("0")), BigDecimal.fromStringUnsafe("0")) + * assert.deepStrictEqual(BigDecimal.abs(BigDecimal.fromStringUnsafe("5")), BigDecimal.fromStringUnsafe("5")) * ``` * - * @since 2.0.0 * @category math + * @since 2.0.0 */ export const abs = n => n.value < bigint0 ? make(-n.value, n.scale) : n; /** * Provides a negate operation on `BigDecimal`s. * - * @example + * **When to use** + * + * Use to flip the sign of a `BigDecimal`. + * + * **Example** (Negating decimals) + * * ```ts - * import { fromStringUnsafe, negate } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(negate(fromStringUnsafe("3")), fromStringUnsafe("-3")) - * assert.deepStrictEqual(negate(fromStringUnsafe("-6")), fromStringUnsafe("6")) + * assert.deepStrictEqual(BigDecimal.negate(BigDecimal.fromStringUnsafe("3")), BigDecimal.fromStringUnsafe("-3")) + * assert.deepStrictEqual(BigDecimal.negate(BigDecimal.fromStringUnsafe("-6")), BigDecimal.fromStringUnsafe("6")) * ``` * - * @since 2.0.0 * @category math + * @since 2.0.0 */ export const negate = n => make(-n.value, n.scale); /** - * Returns the remainder left over when one operand is divided by a second operand. + * Computes the decimal remainder safely when one operand is divided by a second + * operand. + * + * **When to use** + * + * Use to compute a decimal remainder while representing division by zero as + * `Option.none`. + * + * **Details** * * If the divisor is `0`, the result will be `Option.none()`. * - * @example + * **Example** (Computing remainders safely) + * * ```ts * import { BigDecimal, Option } from "effect" * import * as assert from "node:assert" @@ -786,8 +943,11 @@ export const negate = n => make(-n.value, n.scale); * ) * ``` * - * @since 2.0.0 + * @see {@link remainderUnsafe} for remainder calculation that throws when the divisor is zero + * @see {@link divide} for decimal quotient calculation + * * @category math + * @since 2.0.0 */ export const remainder = /*#__PURE__*/dual(2, (self, divisor) => { if (divisor.value === bigint0) { @@ -797,31 +957,42 @@ export const remainder = /*#__PURE__*/dual(2, (self, divisor) => { return Option.some(make(scale(self, max).value % scale(divisor, max).value, max)); }); /** - * Returns the remainder left over when one operand is divided by a second operand. + * Returns the decimal remainder left over when one operand is divided by a + * non-zero second operand. + * + * **When to use** + * + * Use when you need to compute a `BigDecimal` remainder with a divisor known to + * be non-zero and want a plain `BigDecimal` result instead of an `Option`. + * + * **Gotchas** * * Throws a `RangeError` if the divisor is `0`. * - * @example + * **Example** (Computing remainders unsafely) + * * ```ts - * import { fromStringUnsafe, remainderUnsafe } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * * assert.deepStrictEqual( - * remainderUnsafe(fromStringUnsafe("2"), fromStringUnsafe("2")), - * fromStringUnsafe("0") + * BigDecimal.remainderUnsafe(BigDecimal.fromStringUnsafe("2"), BigDecimal.fromStringUnsafe("2")), + * BigDecimal.fromStringUnsafe("0") * ) * assert.deepStrictEqual( - * remainderUnsafe(fromStringUnsafe("3"), fromStringUnsafe("2")), - * fromStringUnsafe("1") + * BigDecimal.remainderUnsafe(BigDecimal.fromStringUnsafe("3"), BigDecimal.fromStringUnsafe("2")), + * BigDecimal.fromStringUnsafe("1") * ) * assert.deepStrictEqual( - * remainderUnsafe(fromStringUnsafe("-4"), fromStringUnsafe("2")), - * fromStringUnsafe("0") + * BigDecimal.remainderUnsafe(BigDecimal.fromStringUnsafe("-4"), BigDecimal.fromStringUnsafe("2")), + * BigDecimal.fromStringUnsafe("0") * ) * ``` * - * @since 2.0.0 + * @see {@link remainder} for returning `Option.none` when the divisor is zero + * * @category math + * @since 4.0.0 */ export const remainderUnsafe = /*#__PURE__*/dual(2, (self, divisor) => { if (divisor.value === bigint0) { @@ -833,13 +1004,19 @@ export const remainderUnsafe = /*#__PURE__*/dual(2, (self, divisor) => { /** * Provides an `Equivalence` instance for `BigDecimal` that determines equality between BigDecimal values. * - * @example + * **When to use** + * + * Use when comparing decimal values through APIs that accept an equivalence + * relation. + * + * **Example** (Checking decimal equivalence) + * * ```ts * import { BigDecimal } from "effect" * - * const a = BigDecimal.fromNumberUnsafe(1.50) - * const b = BigDecimal.fromNumberUnsafe(1.5) - * const c = BigDecimal.fromNumberUnsafe(2.0) + * const a = BigDecimal.fromStringUnsafe("1.50") + * const b = BigDecimal.fromStringUnsafe("1.5") + * const c = BigDecimal.fromStringUnsafe("2.0") * * console.log(BigDecimal.Equivalence(a, b)) // true (1.50 === 1.5) * console.log(BigDecimal.Equivalence(a, c)) // false (1.50 !== 2.0) @@ -858,28 +1035,40 @@ export const Equivalence = /*#__PURE__*/Equ.make((self, that) => { return self.value === that.value; }); /** - * Checks if two `BigDecimal`s are equal. + * Checks whether two `BigDecimal`s are equal. + * + * **When to use** + * + * Use to compare two `BigDecimal` values for numeric equality. + * + * **Example** (Checking decimal equality) * - * @example * ```ts * import { BigDecimal } from "effect" * - * const a = BigDecimal.fromNumberUnsafe(1.5) - * const b = BigDecimal.fromNumberUnsafe(1.50) - * const c = BigDecimal.fromNumberUnsafe(2.0) + * const a = BigDecimal.fromStringUnsafe("1.5") + * const b = BigDecimal.fromStringUnsafe("1.50") + * const c = BigDecimal.fromStringUnsafe("2.0") * * console.log(BigDecimal.equals(a, b)) // true * console.log(BigDecimal.equals(a, c)) // false * ``` * - * @since 2.0.0 + * @see {@link Equivalence} for passing decimal equality to APIs that require an `Equivalence` + * * @category predicates + * @since 2.0.0 */ export const equals = /*#__PURE__*/dual(2, (self, that) => Equivalence(self, that)); /** * Creates a `BigDecimal` from a `bigint` value. * - * @example + * **When to use** + * + * Use to construct an integer `BigDecimal` from a `bigint`. + * + * **Example** (Creating decimals from bigint) + * * ```ts * import { BigDecimal } from "effect" * @@ -890,42 +1079,63 @@ export const equals = /*#__PURE__*/dual(2, (self, that) => Equivalence(self, tha * console.log(BigDecimal.format(largeBigInt)) // "9007199254740991" * ``` * - * @since 2.0.0 + * @see {@link make} for constructing a decimal with an explicit scale + * * @category constructors + * @since 2.0.0 */ export const fromBigInt = n => make(n, 0); /** - * Creates a `BigDecimal` from a `number` value. + * Creates a `BigDecimal` from a finite `number`. + * + * **When to use** + * + * Use when you need to convert a trusted finite JavaScript number to a + * `BigDecimal` and want a plain result instead of an `Option`. + * + * **Gotchas** * - * It is not recommended to convert a floating point number to a decimal directly, - * as the floating point representation may be unexpected. + * It is not recommended to convert a floating point number to a decimal + * directly, as the floating point representation may be unexpected. Throws a + * `RangeError` if the number is not finite (`NaN`, `+Infinity` or `-Infinity`). * - * Throws a `RangeError` if the number is not finite (`NaN`, `+Infinity` or `-Infinity`). + * **Example** (Creating decimals from finite numbers) * - * @example * ```ts - * import { fromNumberUnsafe, make } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(fromNumberUnsafe(123), make(123n, 0)) - * assert.deepStrictEqual(fromNumberUnsafe(123.456), make(123456n, 3)) + * assert.deepStrictEqual(BigDecimal.fromNumberUnsafe(123), BigDecimal.make(123n, 0)) + * assert.deepStrictEqual(BigDecimal.fromNumberUnsafe(123.456), BigDecimal.make(123456n, 3)) * ``` * - * @since 4.0.0 + * @see {@link fromNumber} for returning `Option.none` when the number is not finite + * * @category constructors + * @since 4.0.0 */ export const fromNumberUnsafe = n => { return Option.getOrThrowWith(fromNumber(n), () => new RangeError(`Number must be finite, got ${n}`)); }; /** - * Creates a `BigDecimal` from a `number` value. + * Creates a `BigDecimal` safely from a finite `number`. + * + * **When to use** * - * It is not recommended to convert a floating point number to a decimal directly, - * as the floating point representation may be unexpected. + * Use to convert a finite JavaScript number to a `BigDecimal` without throwing + * on invalid input. + * + * **Details** * * Returns `Option.none()` for `NaN`, `+Infinity` or `-Infinity`. * - * @example + * **Gotchas** + * + * It is not recommended to convert a floating point number to a decimal + * directly, as the floating point representation may be unexpected. + * + * **Example** (Creating decimals from numbers safely) + * * ```ts * import { BigDecimal, Option } from "effect" * import * as assert from "node:assert" @@ -938,8 +1148,11 @@ export const fromNumberUnsafe = n => { * assert.deepStrictEqual(BigDecimal.fromNumber(Infinity), Option.none()) * ``` * - * @since 4.0.0 + * @see {@link fromNumberUnsafe} for throwing when the number is not finite + * @see {@link fromString} for parsing decimal strings directly + * * @category constructors + * @since 2.0.0 */ export const fromNumber = n => { if (!Number.isFinite(n)) { @@ -953,9 +1166,20 @@ export const fromNumber = n => { return Option.some(make(BigInt(`${lead}${trail}`), trail.length)); }; /** - * Parses a numerical `string` into a `BigDecimal`. + * Parses a decimal string into a `BigDecimal` safely. + * + * **When to use** + * + * Use to parse external decimal text without throwing on invalid input. + * + * **Details** + * + * Returns `Option.some` for valid decimal or exponent notation and + * `Option.none` when the string cannot be parsed or would produce an unsafe + * scale. The empty string parses as zero. + * + * **Example** (Parsing decimal strings safely) * - * @example * ```ts * import { BigDecimal, Option } from "effect" * import * as assert from "node:assert" @@ -968,8 +1192,11 @@ export const fromNumber = n => { * assert.deepStrictEqual(BigDecimal.fromString("123.abc"), Option.none()) * ``` * - * @since 2.0.0 + * @see {@link fromStringUnsafe} for parsing that throws on invalid input + * @see {@link fromNumber} for converting finite JavaScript numbers + * * @category constructors + * @since 2.0.0 */ export const fromString = s => { if (s === "") { @@ -1011,42 +1238,65 @@ export const fromString = s => { return Option.some(make(BigInt(digits), scale)); }; /** - * Parses a numerical `string` into a `BigDecimal`. + * Parses a decimal string into a `BigDecimal`, throwing if the string is + * invalid. + * + * **When to use** + * + * Use when you expect decimal text to be valid and want parse errors to throw. + * + * **Details** + * + * Accepts the same syntax as `fromString`. Use `fromString` when invalid input + * should be represented as `Option.none` instead of throwing. + * + * **Example** (Parsing decimal strings unsafely) * - * @example * ```ts - * import { fromStringUnsafe, make } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(fromStringUnsafe("123"), make(123n, 0)) - * assert.deepStrictEqual(fromStringUnsafe("123.456"), make(123456n, 3)) - * assert.throws(() => fromStringUnsafe("123.abc")) + * assert.deepStrictEqual(BigDecimal.fromStringUnsafe("123"), BigDecimal.make(123n, 0)) + * assert.deepStrictEqual(BigDecimal.fromStringUnsafe("123.456"), BigDecimal.make(123456n, 3)) + * assert.throws(() => BigDecimal.fromStringUnsafe("123.abc")) * ``` * - * @since 2.0.0 + * @see {@link fromString} for returning `Option.none` on invalid input + * * @category constructors + * @since 4.0.0 */ export const fromStringUnsafe = s => { return Option.getOrThrowWith(fromString(s), () => new Error(`Invalid numerical string: ${s}`)); }; /** - * Formats a given `BigDecimal` as a `string`. + * Formats a `BigDecimal` as a string. + * + * **When to use** + * + * Use to render a `BigDecimal` as plain decimal text when possible. + * + * **Details** + * + * The value is normalized before formatting. Scientific notation is used when + * the absolute value of the normalized scale is at least `16`; otherwise plain + * decimal notation is used. * - * If the scale of the `BigDecimal` is greater than or equal to 16, the `BigDecimal` will - * be formatted in scientific notation. + * **Example** (Formatting decimals) * - * @example * ```ts - * import { format, fromStringUnsafe } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(format(fromStringUnsafe("-5")), "-5") - * assert.deepStrictEqual(format(fromStringUnsafe("123.456")), "123.456") - * assert.deepStrictEqual(format(fromStringUnsafe("-0.00000123")), "-0.00000123") + * assert.deepStrictEqual(BigDecimal.format(BigDecimal.fromStringUnsafe("-5")), "-5") + * assert.deepStrictEqual(BigDecimal.format(BigDecimal.fromStringUnsafe("123.456")), "123.456") + * assert.deepStrictEqual(BigDecimal.format(BigDecimal.fromStringUnsafe("-0.00000123")), "-0.00000123") * ``` * + * @see {@link toExponential} for always rendering scientific notation + * + * @category converting * @since 2.0.0 - * @category conversions */ export const format = n => { const normalized = normalize(n); @@ -1077,16 +1327,23 @@ export const format = n => { /** * Formats a given `BigDecimal` as a `string` in scientific notation. * - * @example + * **When to use** + * + * Use to render a `BigDecimal` in scientific notation. + * + * **Example** (Formatting decimals exponentially) + * * ```ts - * import { make, toExponential } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(toExponential(make(123456n, -5)), "1.23456e+10") + * assert.deepStrictEqual(BigDecimal.toExponential(BigDecimal.make(123456n, -5)), "1.23456e+10") * ``` * - * @since 4.0.0 - * @category conversions + * @see {@link format} for plain decimal formatting when possible + * + * @category converting + * @since 3.11.0 */ export const toExponential = n => { if (isZero(n)) { @@ -1104,110 +1361,151 @@ export const toExponential = n => { return `${output}e${exp >= 0 ? "+" : ""}${exp}`; }; /** - * Converts a `BigDecimal` to a `number`. + * Converts a `BigDecimal` to a JavaScript `number`. + * + * **When to use** + * + * Use when you need a JavaScript number at an interop boundary where precision + * loss is acceptable. * - * This function will produce incorrect results if the `BigDecimal` exceeds the 64-bit range of a `number`. + * **Gotchas** + * + * This conversion is unsafe because the result can lose integer or fractional + * precision, round to a nearby representable value, or become `Infinity` when + * the decimal cannot be represented as a finite JavaScript `number`. + * + * **Example** (Converting decimals to numbers) * - * @example * ```ts - * import { fromStringUnsafe, toNumberUnsafe } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(toNumberUnsafe(fromStringUnsafe("123.456")), 123.456) + * assert.deepStrictEqual(BigDecimal.toNumberUnsafe(BigDecimal.fromStringUnsafe("123.456")), 123.456) * ``` * - * @since 2.0.0 - * @category conversions + * @see {@link format} for preserving decimal precision as text + * + * @category converting + * @since 4.0.0 */ export const toNumberUnsafe = n => Number(format(n)); /** - * Checks if a given `BigDecimal` is an integer. + * Checks whether a given `BigDecimal` is an integer. + * + * **When to use** + * + * Use to test whether a `BigDecimal` has no fractional decimal part. + * + * **Example** (Checking integer decimals) * - * @example * ```ts - * import { fromStringUnsafe, isInteger } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(isInteger(fromStringUnsafe("0")), true) - * assert.deepStrictEqual(isInteger(fromStringUnsafe("1")), true) - * assert.deepStrictEqual(isInteger(fromStringUnsafe("1.1")), false) + * assert.deepStrictEqual(BigDecimal.isInteger(BigDecimal.fromStringUnsafe("0")), true) + * assert.deepStrictEqual(BigDecimal.isInteger(BigDecimal.fromStringUnsafe("1")), true) + * assert.deepStrictEqual(BigDecimal.isInteger(BigDecimal.fromStringUnsafe("1.1")), false) * ``` * - * @since 2.0.0 * @category predicates + * @since 2.0.0 */ export const isInteger = n => normalize(n).scale <= 0; /** - * Checks if a given `BigDecimal` is `0`. + * Checks whether a given `BigDecimal` is `0`. + * + * **When to use** + * + * Use to test whether a `BigDecimal` is exactly zero. + * + * **Example** (Checking zero decimals) * - * @example * ```ts - * import { fromStringUnsafe, isZero } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(isZero(fromStringUnsafe("0")), true) - * assert.deepStrictEqual(isZero(fromStringUnsafe("1")), false) + * assert.deepStrictEqual(BigDecimal.isZero(BigDecimal.fromStringUnsafe("0")), true) + * assert.deepStrictEqual(BigDecimal.isZero(BigDecimal.fromStringUnsafe("1")), false) * ``` * - * @since 2.0.0 * @category predicates + * @since 2.0.0 */ export const isZero = n => n.value === bigint0; /** - * Checks if a given `BigDecimal` is negative. + * Checks whether a given `BigDecimal` is negative. + * + * **When to use** + * + * Use to test whether a `BigDecimal` is less than zero. + * + * **Example** (Checking negative decimals) * - * @example * ```ts - * import { fromStringUnsafe, isNegative } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(isNegative(fromStringUnsafe("-1")), true) - * assert.deepStrictEqual(isNegative(fromStringUnsafe("0")), false) - * assert.deepStrictEqual(isNegative(fromStringUnsafe("1")), false) + * assert.deepStrictEqual(BigDecimal.isNegative(BigDecimal.fromStringUnsafe("-1")), true) + * assert.deepStrictEqual(BigDecimal.isNegative(BigDecimal.fromStringUnsafe("0")), false) + * assert.deepStrictEqual(BigDecimal.isNegative(BigDecimal.fromStringUnsafe("1")), false) * ``` * - * @since 2.0.0 * @category predicates + * @since 2.0.0 */ export const isNegative = n => n.value < bigint0; /** - * Checks if a given `BigDecimal` is positive. + * Checks whether a given `BigDecimal` is positive. + * + * **When to use** + * + * Use to test whether a `BigDecimal` is greater than zero. + * + * **Example** (Checking positive decimals) * - * @example * ```ts - * import { fromStringUnsafe, isPositive } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(isPositive(fromStringUnsafe("-1")), false) - * assert.deepStrictEqual(isPositive(fromStringUnsafe("0")), false) - * assert.deepStrictEqual(isPositive(fromStringUnsafe("1")), true) + * assert.deepStrictEqual(BigDecimal.isPositive(BigDecimal.fromStringUnsafe("-1")), false) + * assert.deepStrictEqual(BigDecimal.isPositive(BigDecimal.fromStringUnsafe("0")), false) + * assert.deepStrictEqual(BigDecimal.isPositive(BigDecimal.fromStringUnsafe("1")), true) * ``` * - * @since 2.0.0 * @category predicates + * @since 2.0.0 */ export const isPositive = n => n.value > bigint0; const isBigDecimalArgs = args => isBigDecimal(args[0]); /** - * Rounds a `BigDecimal` at the given scale with the specified rounding mode. + * Computes a rounded `BigDecimal` at the given scale with the specified rounding mode. + * + * **When to use** + * + * Use to round a decimal at a requested scale with an explicit rounding mode. + * + * **Example** (Rounding decimals) * - * @example * ```ts - * import { fromStringUnsafe, round } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * * assert.deepStrictEqual( - * round(fromStringUnsafe("145"), { mode: "from-zero", scale: -1 }), - * fromStringUnsafe("150") + * BigDecimal.round(BigDecimal.fromStringUnsafe("145"), { mode: "from-zero", scale: -1 }), + * BigDecimal.fromStringUnsafe("150") * ) * assert.deepStrictEqual( - * round(fromStringUnsafe("-14.5")), - * fromStringUnsafe("-15") + * BigDecimal.round(BigDecimal.fromStringUnsafe("-14.5")), + * BigDecimal.fromStringUnsafe("-15") * ) * ``` * - * @since 4.0.0 + * @see {@link ceil} for fixed rounding toward positive infinity + * @see {@link floor} for fixed rounding toward negative infinity + * @see {@link truncate} for fixed rounding toward zero + * * @category math + * @since 3.16.0 */ export const round = /*#__PURE__*/dual(isBigDecimalArgs, (self, options) => { const mode = options?.mode ?? "half-from-zero"; @@ -1241,25 +1539,29 @@ export const round = /*#__PURE__*/dual(isBigDecimalArgs, (self, options) => { } }); /** - * Truncate a `BigDecimal` at the given scale. This is the same operation as rounding away from zero. + * Computes a truncated `BigDecimal` at the given scale. This removes fractional digits beyond the scale, + * rounding toward zero. + * + * **When to use** + * + * Use when you need to discard fractional digits beyond a scale rather than + * round half up, half down, or toward an infinity. + * + * **Example** (Truncating decimals) * - * @example * ```ts - * import { fromStringUnsafe, truncate } from "effect/BigDecimal" - * import * as assert from "node:assert" + * import { BigDecimal } from "effect" * - * assert.deepStrictEqual( - * truncate(fromStringUnsafe("145"), -1), - * fromStringUnsafe("140") - * ) - * assert.deepStrictEqual( - * truncate(fromStringUnsafe("-14.5")), - * fromStringUnsafe("-14") - * ) + * console.log(BigDecimal.truncate(BigDecimal.fromStringUnsafe("145"), -1)) // BigDecimal(140) + * console.log(BigDecimal.truncate(BigDecimal.fromStringUnsafe("-14.5"))) // BigDecimal(-14) * ``` * - * @since 4.0.0 + * @see {@link round} for configurable rounding modes + * @see {@link ceil} for rounding toward positive infinity + * @see {@link floor} for rounding toward negative infinity + * * @category math + * @since 3.16.0 */ export const truncate = /*#__PURE__*/dual(isBigDecimalArgs, (self, scale = 0) => { if (self.scale <= scale) { @@ -1269,22 +1571,37 @@ export const truncate = /*#__PURE__*/dual(isBigDecimalArgs, (self, scale = 0) => return make(self.value / bigint10 ** BigInt(self.scale - scale), scale); }); /** - * Calculate the ceiling of a `BigDecimal` at the given scale. + * Computes the ceiling of a `BigDecimal` at the given scale. + * + * **When to use** + * + * Use to round a decimal toward positive infinity at a requested scale. + * + * **Details** + * + * The default scale is `0`. Positive scales keep digits to the right of the + * decimal point, and negative scales round positions to the left of the decimal + * point. + * + * @see {@link floor} for rounding toward negative infinity + * @see {@link truncate} for rounding toward zero + * @see {@link round} for configurable rounding modes + * + * **Example** (Rounding decimals up) * - * @example * ```ts - * import { ceil, fromStringUnsafe } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * * assert.deepStrictEqual( - * ceil(fromStringUnsafe("145"), -1), - * fromStringUnsafe("150") + * BigDecimal.ceil(BigDecimal.fromStringUnsafe("145"), -1), + * BigDecimal.fromStringUnsafe("150") * ) - * assert.deepStrictEqual(ceil(fromStringUnsafe("-14.5")), fromStringUnsafe("-14")) + * assert.deepStrictEqual(BigDecimal.ceil(BigDecimal.fromStringUnsafe("-14.5")), BigDecimal.fromStringUnsafe("-14")) * ``` * - * @since 4.0.0 * @category math + * @since 3.16.0 */ export const ceil = /*#__PURE__*/dual(isBigDecimalArgs, (self, scale = 0) => { const truncated = truncate(self, scale); @@ -1308,25 +1625,34 @@ export const digitAt = /*#__PURE__*/dual(2, (self, scale) => { return scaled % bigint10; }); /** - * Calculate the floor of a `BigDecimal` at the given scale. + * Computes the floor of a `BigDecimal` at the given scale. + * + * **When to use** + * + * Use to round a decimal toward negative infinity at a requested scale. + * + * **Example** (Rounding decimals down) * - * @example * ```ts - * import { floor, fromStringUnsafe } from "effect/BigDecimal" + * import { BigDecimal } from "effect" * import * as assert from "node:assert" * * assert.deepStrictEqual( - * floor(fromStringUnsafe("145"), -1), - * fromStringUnsafe("140") + * BigDecimal.floor(BigDecimal.fromStringUnsafe("145"), -1), + * BigDecimal.fromStringUnsafe("140") * ) * assert.deepStrictEqual( - * floor(fromStringUnsafe("-14.5")), - * fromStringUnsafe("-15") + * BigDecimal.floor(BigDecimal.fromStringUnsafe("-14.5")), + * BigDecimal.fromStringUnsafe("-15") * ) * ``` * - * @since 4.0.0 + * @see {@link ceil} for rounding toward positive infinity + * @see {@link truncate} for rounding toward zero + * @see {@link round} for configurable rounding modes + * * @category math + * @since 3.16.0 */ export const floor = /*#__PURE__*/dual(isBigDecimalArgs, (self, scale = 0) => { const truncated = truncate(self, scale); diff --git a/.opencode/node_modules/effect/dist/BigDecimal.js.map b/.opencode/node_modules/effect/dist/BigDecimal.js.map index 107f5a9e24c12b45f89b0189a244ae48dd801df6..f396a666599a01774b87918eb29fc6cdc872851d 100644 --- a/.opencode/node_modules/effect/dist/BigDecimal.js.map +++ b/.opencode/node_modules/effect/dist/BigDecimal.js.map @@ -1 +1 @@ -{"version":3,"file":"BigDecimal.js","names":["Equal","Equ","dual","Hash","NodeInspectSymbol","Option","order","pipeArguments","hasProperty","DEFAULT_PRECISION","FINITE_INT_REGEXP","TypeId","BigDecimalProto","symbol","normalized","normalize","combine","hash","value","number","scale","that","isBigDecimal","equals","toString","format","toJSON","_id","String","pipe","arguments","u","make","o","Object","create","makeNormalizedUnsafe","bigint0","bigint10","RangeError","BigInt","bigint1","bigint_1","bigint2","bigint5","bigint_5","zero","one","self","undefined","digits","trail","i","length","substring","sum","sumAll","collection","out","n","multiply","multiplyAll","subtract","divideWithPrecision","num","den","precision","numNegative","denNegative","negateResult","quotient","remainder","count","q","r","roundTerminal","pos","Number","divide","none","some","divideUnsafe","Order","scmp","sign","isLessThan","isLessThanOrEqualTo","isGreaterThan","isGreaterThanOrEqualTo","between","isBetween","clamp","min","max","abs","negate","divisor","Math","remainderUnsafe","Equivalence","fromBigInt","fromNumberUnsafe","getOrThrowWith","fromNumber","isFinite","string","includes","fromString","lead","split","s","base","exp","seperator","search","slice","isSafeInteger","test","offset","dot","fromStringUnsafe","Error","toExponential","negative","absolute","before","after","repeat","location","zeros","complete","isZero","head","tail","output","isNegative","toNumberUnsafe","isInteger","isPositive","isBigDecimalArgs","args","round","options","mode","ceil","floor","truncate","halfCeil","halfFloor","digit","digitAt","truncated","scaled"],"sources":["../src/BigDecimal.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;;;;;;AAgBA,OAAO,KAAKA,KAAK,MAAM,YAAY;AACnC,OAAO,KAAKC,GAAG,MAAM,kBAAkB;AACvC,SAASC,IAAI,QAAQ,eAAe;AACpC,OAAO,KAAKC,IAAI,MAAM,WAAW;AACjC,SAA2BC,iBAAiB,QAAQ,kBAAkB;AACtE,OAAO,KAAKC,MAAM,MAAM,aAAa;AACrC,OAAO,KAAKC,KAAK,MAAM,YAAY;AAEnC,SAAwBC,aAAa,QAAQ,eAAe;AAC5D,SAASC,WAAW,QAAQ,gBAAgB;AAE5C,MAAMC,iBAAiB,GAAG,GAAG;AAC7B,MAAMC,iBAAiB,GAAG,YAAY;AAEtC,MAAMC,MAAM,GAAG,oBAAoB;AA0BnC,MAAMC,eAAe,GAAuD;EAC1E,CAACD,MAAM,GAAGA,MAAM;EAChB,CAACR,IAAI,CAACU,MAAM,IAAC;IACX,MAAMC,UAAU,GAAGC,SAAS,CAAC,IAAI,CAAC;IAClC,OAAOZ,IAAI,CAACa,OAAO,CAACb,IAAI,CAACc,IAAI,CAACH,UAAU,CAACI,KAAK,CAAC,EAAEf,IAAI,CAACgB,MAAM,CAACL,UAAU,CAACM,KAAK,CAAC,CAAC;EACjF,CAAC;EACD,CAACpB,KAAK,CAACa,MAAM,EAAoBQ,IAAa;IAC5C,OAAOC,YAAY,CAACD,IAAI,CAAC,IAAIE,MAAM,CAAC,IAAI,EAAEF,IAAI,CAAC;EACjD,CAAC;EACDG,QAAQA,CAAA;IACN,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gBA6Cd/I,IAAI,CAACyI,gBAAgB,EAAE,CAAC3F,IAAgB,EAAE5B,KAAA,GAAgB,CAAC,KAAgB;EAC7E,MAAMmI,SAAS,GAAGL,QAAQ,CAAClG,IAAI,EAAE5B,KAAK,CAAC;EAEvC,IAAImH,UAAU,CAACvF,IAAI,CAAC,IAAIuC,aAAa,CAACgE,SAAS,EAAEvG,IAAI,CAAC,EAAE;IACtD,OAAOO,GAAG,CAACgG,SAAS,EAAEvH,IAAI,CAACU,QAAQ,EAAEtB,KAAK,CAAC,CAAC;EAC9C;EAEA,OAAOmI,SAAS;AAClB,CAAC,CAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"BigDecimal.js","names":["Equal","Equ","dual","Hash","NodeInspectSymbol","Option","order","pipeArguments","hasProperty","DEFAULT_PRECISION","FINITE_INT_REGEXP","TypeId","BigDecimalProto","symbol","normalized","normalize","combine","hash","value","number","scale","that","isBigDecimal","equals","toString","format","toJSON","_id","String","pipe","arguments","u","make","o","Object","create","makeNormalizedUnsafe","bigint0","bigint10","RangeError","BigInt","bigint1","bigint_1","bigint2","bigint5","bigint_5","zero","one","self","undefined","digits","trail","i","length","substring","sum","sumAll","collection","out","n","multiply","multiplyAll","subtract","divideWithPrecision","num","den","precision","numNegative","denNegative","negateResult","quotient","remainder","count","q","r","roundTerminal","pos","Number","divide","none","some","divideUnsafe","Order","scmp","sign","isLessThan","isLessThanOrEqualTo","isGreaterThan","isGreaterThanOrEqualTo","between","isBetween","clamp","min","max","abs","negate","divisor","Math","remainderUnsafe","Equivalence","fromBigInt","fromNumberUnsafe","getOrThrowWith","fromNumber","isFinite","string","includes","fromString","lead","split","s","base","exp","seperator","search","slice","isSafeInteger","test","offset","dot","fromStringUnsafe","Error","toExponential","negative","absolute","before","after","repeat","location","zeros","complete","isZero","head","tail","output","isNegative","toNumberUnsafe","isInteger","isPositive","isBigDecimalArgs","args","round","options","mode","ceil","floor","truncate","halfCeil","halfFloor","digit","digitAt","truncated","scaled"],"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AK,CAAE;EACpE,OAAOoI,MAAM,GAAGlH,QAAQ;AAC1B,CAAC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BA,OAAO,MAAM2G,KAAK,gBA+Dd/I,IAAI,CAACyI,gBAAgB,EAAE,CAAC3F,IAAgB,EAAE5B,KAAA,GAAgB,CAAC,KAAgB;EAC7E,MAAMmI,SAAS,GAAGL,QAAQ,CAAClG,IAAI,EAAE5B,KAAK,CAAC;EAEvC,IAAImH,UAAU,CAACvF,IAAI,CAAC,IAAIuC,aAAa,CAACgE,SAAS,EAAEvG,IAAI,CAAC,EAAE;IACtD,OAAOO,GAAG,CAACgG,SAAS,EAAEvH,IAAI,CAACU,QAAQ,EAAEtB,KAAK,CAAC,CAAC;EAC9C;EAEA,OAAOmI,SAAS;AAClB,CAAC,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/BigInt.d.ts b/.opencode/node_modules/effect/dist/BigInt.d.ts index 29c7b5de2f385485a514ae954d44e9ae86cde145..94ec6371d1987c25236c5105136e3dccd5a3fddb 100644 --- a/.opencode/node_modules/effect/dist/BigInt.d.ts +++ b/.opencode/node_modules/effect/dist/BigInt.d.ts @@ -1,6 +1,10 @@ /** - * This module provides utility functions and type class instances for working with the `bigint` type in TypeScript. - * It includes functions for basic arithmetic operations. + * Works with JavaScript `bigint` values. + * + * This module exposes the native `BigInt` constructor together with helpers for + * checking, arithmetic, comparison, range checks, safe parsing and conversions + * that return `Option`, integer square roots, aggregation, ordering, + * equivalence, reducers, and combiners. * * @since 2.0.0 */ @@ -11,11 +15,25 @@ import * as order from "./Order.ts"; import type { Ordering } from "./Ordering.ts"; import * as Reducer from "./Reducer.ts"; /** - * Reference to the global BigInt constructor. + * Exposes the global bigint constructor for JavaScript bigint coercion. + * + * **When to use** + * + * Use to access native JavaScript bigint constructor coercion from the Effect + * module namespace. + * + * **Gotchas** + * + * This follows native `BigInt` coercion rules. It throws for invalid strings or + * non-integral numbers, and whitespace-only strings coerce to `0n`. + * + * @see {@link fromString} for parsing strings into an `Option` + * @see {@link fromNumber} for converting safe integers into an `Option` + * + * **Example** (Constructing bigints) * - * @example * ```ts - * import * as BigInt from "effect/BigInt" + * import { BigInt } from "effect" * * const bigInt = BigInt.BigInt(123) * console.log(bigInt) // 123n @@ -29,15 +47,20 @@ import * as Reducer from "./Reducer.ts"; */ export declare const BigInt: BigIntConstructor; /** - * Tests if a value is a `bigint`. + * Checks whether a value is a `bigint`. + * + * **When to use** + * + * Use to validate unknown input and narrow it to `bigint`. + * + * **Example** (Checking for bigints) * - * @example * ```ts - * import { isBigInt } from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(isBigInt(1n), true) - * assert.deepStrictEqual(isBigInt(1), false) + * assert.deepStrictEqual(BigInt.isBigInt(1n), true) + * assert.deepStrictEqual(BigInt.isBigInt(1), false) * ``` * * @category guards @@ -47,14 +70,22 @@ export declare const isBigInt: (u: unknown) => u is bigint; /** * Provides an addition operation on `bigint`s. * - * @example + * **When to use** + * + * Use when you need a binary addition function for piping or higher-order APIs + * instead of the infix addition operator. + * + * **Example** (Adding bigints) + * * ```ts - * import { sum } from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(sum(2n, 3n), 5n) + * assert.deepStrictEqual(BigInt.sum(2n, 3n), 5n) * ``` * + * @see {@link sumAll} for summing an iterable of `bigint` values + * * @category math * @since 2.0.0 */ @@ -62,14 +93,22 @@ export declare const sum: { /** * Provides an addition operation on `bigint`s. * - * @example + * **When to use** + * + * Use when you need a binary addition function for piping or higher-order APIs + * instead of the infix addition operator. + * + * **Example** (Adding bigints) + * * ```ts - * import { sum } from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(sum(2n, 3n), 5n) + * assert.deepStrictEqual(BigInt.sum(2n, 3n), 5n) * ``` * + * @see {@link sumAll} for summing an iterable of `bigint` values + * * @category math * @since 2.0.0 */ @@ -77,14 +116,22 @@ export declare const sum: { /** * Provides an addition operation on `bigint`s. * - * @example + * **When to use** + * + * Use when you need a binary addition function for piping or higher-order APIs + * instead of the infix addition operator. + * + * **Example** (Adding bigints) + * * ```ts - * import { sum } from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(sum(2n, 3n), 5n) + * assert.deepStrictEqual(BigInt.sum(2n, 3n), 5n) * ``` * + * @see {@link sumAll} for summing an iterable of `bigint` values + * * @category math * @since 2.0.0 */ @@ -93,14 +140,21 @@ export declare const sum: { /** * Provides a multiplication operation on `bigint`s. * - * @example + * **When to use** + * + * Use to multiply two `bigint` values. + * + * **Example** (Multiplying bigints) + * * ```ts - * import { multiply } from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(multiply(2n, 3n), 6n) + * assert.deepStrictEqual(BigInt.multiply(2n, 3n), 6n) * ``` * + * @see {@link multiplyAll} for multiplying an iterable of `bigint` values + * * @category math * @since 2.0.0 */ @@ -108,14 +162,21 @@ export declare const multiply: { /** * Provides a multiplication operation on `bigint`s. * - * @example + * **When to use** + * + * Use to multiply two `bigint` values. + * + * **Example** (Multiplying bigints) + * * ```ts - * import { multiply } from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(multiply(2n, 3n), 6n) + * assert.deepStrictEqual(BigInt.multiply(2n, 3n), 6n) * ``` * + * @see {@link multiplyAll} for multiplying an iterable of `bigint` values + * * @category math * @since 2.0.0 */ @@ -123,14 +184,21 @@ export declare const multiply: { /** * Provides a multiplication operation on `bigint`s. * - * @example + * **When to use** + * + * Use to multiply two `bigint` values. + * + * **Example** (Multiplying bigints) + * * ```ts - * import { multiply } from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(multiply(2n, 3n), 6n) + * assert.deepStrictEqual(BigInt.multiply(2n, 3n), 6n) * ``` * + * @see {@link multiplyAll} for multiplying an iterable of `bigint` values + * * @category math * @since 2.0.0 */ @@ -139,12 +207,17 @@ export declare const multiply: { /** * Provides a subtraction operation on `bigint`s. * - * @example + * **When to use** + * + * Use to subtract one `bigint` value from another. + * + * **Example** (Subtracting bigints) + * * ```ts - * import { subtract } from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(subtract(2n, 3n), -1n) + * assert.deepStrictEqual(BigInt.subtract(2n, 3n), -1n) * ``` * * @category math @@ -154,12 +227,17 @@ export declare const subtract: { /** * Provides a subtraction operation on `bigint`s. * - * @example + * **When to use** + * + * Use to subtract one `bigint` value from another. + * + * **Example** (Subtracting bigints) + * * ```ts - * import { subtract } from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(subtract(2n, 3n), -1n) + * assert.deepStrictEqual(BigInt.subtract(2n, 3n), -1n) * ``` * * @category math @@ -169,12 +247,17 @@ export declare const subtract: { /** * Provides a subtraction operation on `bigint`s. * - * @example + * **When to use** + * + * Use to subtract one `bigint` value from another. + * + * **Example** (Subtracting bigints) + * * ```ts - * import { subtract } from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(subtract(2n, 3n), -1n) + * assert.deepStrictEqual(BigInt.subtract(2n, 3n), -1n) * ``` * * @category math @@ -183,148 +266,210 @@ export declare const subtract: { (self: bigint, that: bigint): bigint; }; /** - * Provides a division operation on `bigint`s. + * Divides one `bigint` by another safely. + * + * **When to use** * - * If the dividend is not a multiple of the divisor the result will be a `bigint` value - * which represents the integer division rounded down to the nearest integer. + * Use to divide `bigint` values while representing division by zero as + * `Option.none`. * - * Returns `Option.none()` if the divisor is `0n`. + * **Details** + * + * Uses JavaScript `bigint` division, so non-exact quotients are truncated + * toward zero. Returns `Option.none()` when the divisor is `0n`. + * + * **Example** (Dividing bigints safely) * - * @example * ```ts - * import { divide } from "effect/BigInt" + * import { BigInt, Option } from "effect" * import * as assert from "node:assert" * - * import { Option } from "effect" - * - * assert.deepStrictEqual(divide(6n, 3n), Option.some(2n)) - * assert.deepStrictEqual(divide(6n, 0n), Option.none()) + * assert.deepStrictEqual(BigInt.divide(6n, 3n), Option.some(2n)) + * assert.deepStrictEqual(BigInt.divide(6n, 0n), Option.none()) * ``` * + * @see {@link divideUnsafe} for division that throws when the divisor is `0n` + * @see {@link remainder} for the JavaScript remainder operation + * * @category math * @since 2.0.0 */ export declare const divide: { /** - * Provides a division operation on `bigint`s. + * Divides one `bigint` by another safely. + * + * **When to use** + * + * Use to divide `bigint` values while representing division by zero as + * `Option.none`. * - * If the dividend is not a multiple of the divisor the result will be a `bigint` value - * which represents the integer division rounded down to the nearest integer. + * **Details** * - * Returns `Option.none()` if the divisor is `0n`. + * Uses JavaScript `bigint` division, so non-exact quotients are truncated + * toward zero. Returns `Option.none()` when the divisor is `0n`. + * + * **Example** (Dividing bigints safely) * - * @example * ```ts - * import { divide } from "effect/BigInt" + * import { BigInt, Option } from "effect" * import * as assert from "node:assert" * - * import { Option } from "effect" - * - * assert.deepStrictEqual(divide(6n, 3n), Option.some(2n)) - * assert.deepStrictEqual(divide(6n, 0n), Option.none()) + * assert.deepStrictEqual(BigInt.divide(6n, 3n), Option.some(2n)) + * assert.deepStrictEqual(BigInt.divide(6n, 0n), Option.none()) * ``` * + * @see {@link divideUnsafe} for division that throws when the divisor is `0n` + * @see {@link remainder} for the JavaScript remainder operation + * * @category math * @since 2.0.0 */ (that: bigint): (self: bigint) => Option.Option; /** - * Provides a division operation on `bigint`s. + * Divides one `bigint` by another safely. * - * If the dividend is not a multiple of the divisor the result will be a `bigint` value - * which represents the integer division rounded down to the nearest integer. + * **When to use** * - * Returns `Option.none()` if the divisor is `0n`. + * Use to divide `bigint` values while representing division by zero as + * `Option.none`. + * + * **Details** + * + * Uses JavaScript `bigint` division, so non-exact quotients are truncated + * toward zero. Returns `Option.none()` when the divisor is `0n`. + * + * **Example** (Dividing bigints safely) * - * @example * ```ts - * import { divide } from "effect/BigInt" + * import { BigInt, Option } from "effect" * import * as assert from "node:assert" * - * import { Option } from "effect" - * - * assert.deepStrictEqual(divide(6n, 3n), Option.some(2n)) - * assert.deepStrictEqual(divide(6n, 0n), Option.none()) + * assert.deepStrictEqual(BigInt.divide(6n, 3n), Option.some(2n)) + * assert.deepStrictEqual(BigInt.divide(6n, 0n), Option.none()) * ``` * + * @see {@link divideUnsafe} for division that throws when the divisor is `0n` + * @see {@link remainder} for the JavaScript remainder operation + * * @category math * @since 2.0.0 */ (self: bigint, that: bigint): Option.Option; }; /** - * Provides a division operation on `bigint`s. + * Divides one `bigint` by another, throwing if the divisor is zero. * - * If the dividend is not a multiple of the divisor the result will be a `bigint` value - * which represents the integer division rounded down to the nearest integer. + * **When to use** * - * Throws a `RangeError` if the divisor is `0n`. + * Use to divide `bigint` values where the divisor is known to be non-zero and + * division by zero should be a thrown exception. + * + * **Details** + * + * Uses JavaScript `bigint` division, so non-exact quotients are truncated + * toward zero. + * + * **Gotchas** + * + * Throws a `RangeError` when the divisor is `0n`. + * + * **Example** (Dividing bigints unsafely) * - * @example * ```ts - * import { divideUnsafe } from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(divideUnsafe(6n, 3n), 2n) - * assert.deepStrictEqual(divideUnsafe(6n, 4n), 1n) + * assert.deepStrictEqual(BigInt.divideUnsafe(6n, 3n), 2n) + * assert.deepStrictEqual(BigInt.divideUnsafe(6n, 4n), 1n) * ``` * + * @see {@link divide} for division that returns `Option.none` when the divisor is `0n` + * * @category math - * @since 2.0.0 + * @since 4.0.0 */ export declare const divideUnsafe: { /** - * Provides a division operation on `bigint`s. + * Divides one `bigint` by another, throwing if the divisor is zero. + * + * **When to use** + * + * Use to divide `bigint` values where the divisor is known to be non-zero and + * division by zero should be a thrown exception. + * + * **Details** * - * If the dividend is not a multiple of the divisor the result will be a `bigint` value - * which represents the integer division rounded down to the nearest integer. + * Uses JavaScript `bigint` division, so non-exact quotients are truncated + * toward zero. * - * Throws a `RangeError` if the divisor is `0n`. + * **Gotchas** + * + * Throws a `RangeError` when the divisor is `0n`. + * + * **Example** (Dividing bigints unsafely) * - * @example * ```ts - * import { divideUnsafe } from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(divideUnsafe(6n, 3n), 2n) - * assert.deepStrictEqual(divideUnsafe(6n, 4n), 1n) + * assert.deepStrictEqual(BigInt.divideUnsafe(6n, 3n), 2n) + * assert.deepStrictEqual(BigInt.divideUnsafe(6n, 4n), 1n) * ``` * + * @see {@link divide} for division that returns `Option.none` when the divisor is `0n` + * * @category math - * @since 2.0.0 + * @since 4.0.0 */ (that: bigint): (self: bigint) => bigint; /** - * Provides a division operation on `bigint`s. + * Divides one `bigint` by another, throwing if the divisor is zero. + * + * **When to use** + * + * Use to divide `bigint` values where the divisor is known to be non-zero and + * division by zero should be a thrown exception. + * + * **Details** + * + * Uses JavaScript `bigint` division, so non-exact quotients are truncated + * toward zero. + * + * **Gotchas** * - * If the dividend is not a multiple of the divisor the result will be a `bigint` value - * which represents the integer division rounded down to the nearest integer. + * Throws a `RangeError` when the divisor is `0n`. * - * Throws a `RangeError` if the divisor is `0n`. + * **Example** (Dividing bigints unsafely) * - * @example * ```ts - * import { divideUnsafe } from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(divideUnsafe(6n, 3n), 2n) - * assert.deepStrictEqual(divideUnsafe(6n, 4n), 1n) + * assert.deepStrictEqual(BigInt.divideUnsafe(6n, 3n), 2n) + * assert.deepStrictEqual(BigInt.divideUnsafe(6n, 4n), 1n) * ``` * + * @see {@link divide} for division that returns `Option.none` when the divisor is `0n` + * * @category math - * @since 2.0.0 + * @since 4.0.0 */ (self: bigint, that: bigint): bigint; }; /** - * Returns the result of adding `1n` to a given number. + * Returns the result of adding `1n` to a `bigint`. + * + * **When to use** + * + * Use to increment a `bigint` counter by one. + * + * **Example** (Incrementing a bigint) * - * @example * ```ts - * import { increment } from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(increment(2n), 3n) + * assert.deepStrictEqual(BigInt.increment(2n), 3n) * ``` * * @category math @@ -332,14 +477,19 @@ export declare const divideUnsafe: { */ export declare const increment: (n: bigint) => bigint; /** - * Decrements a number by `1n`. + * Returns the result of subtracting `1n` from a `bigint`. + * + * **When to use** + * + * Use to decrement a `bigint` counter by one. + * + * **Example** (Decrementing a bigint) * - * @example * ```ts - * import { decrement } from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(decrement(3n), 2n) + * assert.deepStrictEqual(BigInt.decrement(3n), 2n) * ``` * * @category math @@ -349,9 +499,15 @@ export declare const decrement: (n: bigint) => bigint; /** * Provides an `Order` instance for `bigint` that allows comparing and sorting BigInt values. * - * @example + * **When to use** + * + * Use when you need to sort or compare bigint values through APIs that accept + * an ordering instance. + * + * **Example** (Comparing bigints with Order) + * * ```ts - * import * as BigInt from "effect/BigInt" + * import { BigInt } from "effect" * * const a = 123n * const b = 456n @@ -367,9 +523,15 @@ export declare const decrement: (n: bigint) => bigint; */ export declare const Order: order.Order; /** - * An `Equivalence` instance for bigints using strict equality (`===`). + * Equivalence instance for bigints using strict equality (`===`). + * + * **When to use** + * + * Use when checking bigint equality through APIs that accept an equivalence + * relation. + * + * **Example** (Comparing bigints for equivalence) * - * @example * ```ts * import { BigInt } from "effect" * @@ -378,223 +540,288 @@ export declare const Order: order.Order; * ``` * * @category instances - * @since 4.0.0 + * @since 2.0.0 */ export declare const Equivalence: Equ.Equivalence; /** * Returns `true` if the first argument is less than the second, otherwise `false`. * - * @example + * **When to use** + * + * Use to test whether one `bigint` is strictly less than another. + * + * **Example** (Checking less-than comparisons) + * * ```ts - * import { isLessThan } from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(isLessThan(2n, 3n), true) - * assert.deepStrictEqual(isLessThan(3n, 3n), false) - * assert.deepStrictEqual(isLessThan(4n, 3n), false) + * assert.deepStrictEqual(BigInt.isLessThan(2n, 3n), true) + * assert.deepStrictEqual(BigInt.isLessThan(3n, 3n), false) + * assert.deepStrictEqual(BigInt.isLessThan(4n, 3n), false) * ``` * * @category predicates - * @since 2.0.0 + * @since 4.0.0 */ export declare const isLessThan: { /** * Returns `true` if the first argument is less than the second, otherwise `false`. * - * @example + * **When to use** + * + * Use to test whether one `bigint` is strictly less than another. + * + * **Example** (Checking less-than comparisons) + * * ```ts - * import { isLessThan } from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(isLessThan(2n, 3n), true) - * assert.deepStrictEqual(isLessThan(3n, 3n), false) - * assert.deepStrictEqual(isLessThan(4n, 3n), false) + * assert.deepStrictEqual(BigInt.isLessThan(2n, 3n), true) + * assert.deepStrictEqual(BigInt.isLessThan(3n, 3n), false) + * assert.deepStrictEqual(BigInt.isLessThan(4n, 3n), false) * ``` * * @category predicates - * @since 2.0.0 + * @since 4.0.0 */ (that: bigint): (self: bigint) => boolean; /** * Returns `true` if the first argument is less than the second, otherwise `false`. * - * @example + * **When to use** + * + * Use to test whether one `bigint` is strictly less than another. + * + * **Example** (Checking less-than comparisons) + * * ```ts - * import { isLessThan } from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(isLessThan(2n, 3n), true) - * assert.deepStrictEqual(isLessThan(3n, 3n), false) - * assert.deepStrictEqual(isLessThan(4n, 3n), false) + * assert.deepStrictEqual(BigInt.isLessThan(2n, 3n), true) + * assert.deepStrictEqual(BigInt.isLessThan(3n, 3n), false) + * assert.deepStrictEqual(BigInt.isLessThan(4n, 3n), false) * ``` * * @category predicates - * @since 2.0.0 + * @since 4.0.0 */ (self: bigint, that: bigint): boolean; }; /** * Returns a function that checks if a given `bigint` is less than or equal to the provided one. * - * @example + * **When to use** + * + * Use to test whether one `bigint` is less than or equal to another. + * + * **Example** (Checking less-than-or-equal comparisons) + * * ```ts - * import { isLessThanOrEqualTo } from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(isLessThanOrEqualTo(2n, 3n), true) - * assert.deepStrictEqual(isLessThanOrEqualTo(3n, 3n), true) - * assert.deepStrictEqual(isLessThanOrEqualTo(4n, 3n), false) + * assert.deepStrictEqual(BigInt.isLessThanOrEqualTo(2n, 3n), true) + * assert.deepStrictEqual(BigInt.isLessThanOrEqualTo(3n, 3n), true) + * assert.deepStrictEqual(BigInt.isLessThanOrEqualTo(4n, 3n), false) * ``` * * @category predicates - * @since 2.0.0 + * @since 4.0.0 */ export declare const isLessThanOrEqualTo: { /** * Returns a function that checks if a given `bigint` is less than or equal to the provided one. * - * @example + * **When to use** + * + * Use to test whether one `bigint` is less than or equal to another. + * + * **Example** (Checking less-than-or-equal comparisons) + * * ```ts - * import { isLessThanOrEqualTo } from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(isLessThanOrEqualTo(2n, 3n), true) - * assert.deepStrictEqual(isLessThanOrEqualTo(3n, 3n), true) - * assert.deepStrictEqual(isLessThanOrEqualTo(4n, 3n), false) + * assert.deepStrictEqual(BigInt.isLessThanOrEqualTo(2n, 3n), true) + * assert.deepStrictEqual(BigInt.isLessThanOrEqualTo(3n, 3n), true) + * assert.deepStrictEqual(BigInt.isLessThanOrEqualTo(4n, 3n), false) * ``` * * @category predicates - * @since 2.0.0 + * @since 4.0.0 */ (that: bigint): (self: bigint) => boolean; /** * Returns a function that checks if a given `bigint` is less than or equal to the provided one. * - * @example + * **When to use** + * + * Use to test whether one `bigint` is less than or equal to another. + * + * **Example** (Checking less-than-or-equal comparisons) + * * ```ts - * import { isLessThanOrEqualTo } from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(isLessThanOrEqualTo(2n, 3n), true) - * assert.deepStrictEqual(isLessThanOrEqualTo(3n, 3n), true) - * assert.deepStrictEqual(isLessThanOrEqualTo(4n, 3n), false) + * assert.deepStrictEqual(BigInt.isLessThanOrEqualTo(2n, 3n), true) + * assert.deepStrictEqual(BigInt.isLessThanOrEqualTo(3n, 3n), true) + * assert.deepStrictEqual(BigInt.isLessThanOrEqualTo(4n, 3n), false) * ``` * * @category predicates - * @since 2.0.0 + * @since 4.0.0 */ (self: bigint, that: bigint): boolean; }; /** * Returns `true` if the first argument is greater than the second, otherwise `false`. * - * @example + * **When to use** + * + * Use to test whether one `bigint` is strictly greater than another. + * + * **Example** (Checking greater-than comparisons) + * * ```ts - * import { isGreaterThan } from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(isGreaterThan(2n, 3n), false) - * assert.deepStrictEqual(isGreaterThan(3n, 3n), false) - * assert.deepStrictEqual(isGreaterThan(4n, 3n), true) + * assert.deepStrictEqual(BigInt.isGreaterThan(2n, 3n), false) + * assert.deepStrictEqual(BigInt.isGreaterThan(3n, 3n), false) + * assert.deepStrictEqual(BigInt.isGreaterThan(4n, 3n), true) * ``` * * @category predicates - * @since 2.0.0 + * @since 4.0.0 */ export declare const isGreaterThan: { /** * Returns `true` if the first argument is greater than the second, otherwise `false`. * - * @example + * **When to use** + * + * Use to test whether one `bigint` is strictly greater than another. + * + * **Example** (Checking greater-than comparisons) + * * ```ts - * import { isGreaterThan } from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(isGreaterThan(2n, 3n), false) - * assert.deepStrictEqual(isGreaterThan(3n, 3n), false) - * assert.deepStrictEqual(isGreaterThan(4n, 3n), true) + * assert.deepStrictEqual(BigInt.isGreaterThan(2n, 3n), false) + * assert.deepStrictEqual(BigInt.isGreaterThan(3n, 3n), false) + * assert.deepStrictEqual(BigInt.isGreaterThan(4n, 3n), true) * ``` * * @category predicates - * @since 2.0.0 + * @since 4.0.0 */ (that: bigint): (self: bigint) => boolean; /** * Returns `true` if the first argument is greater than the second, otherwise `false`. * - * @example + * **When to use** + * + * Use to test whether one `bigint` is strictly greater than another. + * + * **Example** (Checking greater-than comparisons) + * * ```ts - * import { isGreaterThan } from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(isGreaterThan(2n, 3n), false) - * assert.deepStrictEqual(isGreaterThan(3n, 3n), false) - * assert.deepStrictEqual(isGreaterThan(4n, 3n), true) + * assert.deepStrictEqual(BigInt.isGreaterThan(2n, 3n), false) + * assert.deepStrictEqual(BigInt.isGreaterThan(3n, 3n), false) + * assert.deepStrictEqual(BigInt.isGreaterThan(4n, 3n), true) * ``` * * @category predicates - * @since 2.0.0 + * @since 4.0.0 */ (self: bigint, that: bigint): boolean; }; /** * Returns a function that checks if a given `bigint` is greater than or equal to the provided one. * - * @example + * **When to use** + * + * Use to test whether one `bigint` is greater than or equal to another. + * + * **Example** (Checking greater-than-or-equal comparisons) + * * ```ts - * import { isGreaterThanOrEqualTo } from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(isGreaterThanOrEqualTo(2n, 3n), false) - * assert.deepStrictEqual(isGreaterThanOrEqualTo(3n, 3n), true) - * assert.deepStrictEqual(isGreaterThanOrEqualTo(4n, 3n), true) + * assert.deepStrictEqual(BigInt.isGreaterThanOrEqualTo(2n, 3n), false) + * assert.deepStrictEqual(BigInt.isGreaterThanOrEqualTo(3n, 3n), true) + * assert.deepStrictEqual(BigInt.isGreaterThanOrEqualTo(4n, 3n), true) * ``` * * @category predicates - * @since 2.0.0 + * @since 4.0.0 */ export declare const isGreaterThanOrEqualTo: { /** * Returns a function that checks if a given `bigint` is greater than or equal to the provided one. * - * @example + * **When to use** + * + * Use to test whether one `bigint` is greater than or equal to another. + * + * **Example** (Checking greater-than-or-equal comparisons) + * * ```ts - * import { isGreaterThanOrEqualTo } from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(isGreaterThanOrEqualTo(2n, 3n), false) - * assert.deepStrictEqual(isGreaterThanOrEqualTo(3n, 3n), true) - * assert.deepStrictEqual(isGreaterThanOrEqualTo(4n, 3n), true) + * assert.deepStrictEqual(BigInt.isGreaterThanOrEqualTo(2n, 3n), false) + * assert.deepStrictEqual(BigInt.isGreaterThanOrEqualTo(3n, 3n), true) + * assert.deepStrictEqual(BigInt.isGreaterThanOrEqualTo(4n, 3n), true) * ``` * * @category predicates - * @since 2.0.0 + * @since 4.0.0 */ (that: bigint): (self: bigint) => boolean; /** * Returns a function that checks if a given `bigint` is greater than or equal to the provided one. * - * @example + * **When to use** + * + * Use to test whether one `bigint` is greater than or equal to another. + * + * **Example** (Checking greater-than-or-equal comparisons) + * * ```ts - * import { isGreaterThanOrEqualTo } from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(isGreaterThanOrEqualTo(2n, 3n), false) - * assert.deepStrictEqual(isGreaterThanOrEqualTo(3n, 3n), true) - * assert.deepStrictEqual(isGreaterThanOrEqualTo(4n, 3n), true) + * assert.deepStrictEqual(BigInt.isGreaterThanOrEqualTo(2n, 3n), false) + * assert.deepStrictEqual(BigInt.isGreaterThanOrEqualTo(3n, 3n), true) + * assert.deepStrictEqual(BigInt.isGreaterThanOrEqualTo(4n, 3n), true) * ``` * * @category predicates - * @since 2.0.0 + * @since 4.0.0 */ (self: bigint, that: bigint): boolean; }; /** - * Checks if a `bigint` is between a `minimum` and `maximum` value (inclusive). + * Checks whether a `bigint` is between a `minimum` and `maximum` value (inclusive). + * + * **When to use** + * + * Use to test whether a `bigint` falls inside an inclusive range. + * + * **Example** (Checking whether a bigint is within bounds) * - * @example * ```ts - * import * as BigInt from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * * const between = BigInt.between({ minimum: 0n, maximum: 5n }) @@ -604,16 +831,23 @@ export declare const isGreaterThanOrEqualTo: { * assert.deepStrictEqual(between(6n), false) * ``` * + * @see {@link clamp} for forcing a `bigint` into an inclusive range + * * @category predicates * @since 2.0.0 */ export declare const between: { /** - * Checks if a `bigint` is between a `minimum` and `maximum` value (inclusive). + * Checks whether a `bigint` is between a `minimum` and `maximum` value (inclusive). + * + * **When to use** + * + * Use to test whether a `bigint` falls inside an inclusive range. + * + * **Example** (Checking whether a bigint is within bounds) * - * @example * ```ts - * import * as BigInt from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * * const between = BigInt.between({ minimum: 0n, maximum: 5n }) @@ -623,6 +857,8 @@ export declare const between: { * assert.deepStrictEqual(between(6n), false) * ``` * + * @see {@link clamp} for forcing a `bigint` into an inclusive range + * * @category predicates * @since 2.0.0 */ @@ -631,11 +867,16 @@ export declare const between: { maximum: bigint; }): (self: bigint) => boolean; /** - * Checks if a `bigint` is between a `minimum` and `maximum` value (inclusive). + * Checks whether a `bigint` is between a `minimum` and `maximum` value (inclusive). + * + * **When to use** + * + * Use to test whether a `bigint` falls inside an inclusive range. + * + * **Example** (Checking whether a bigint is within bounds) * - * @example * ```ts - * import * as BigInt from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * * const between = BigInt.between({ minimum: 0n, maximum: 5n }) @@ -645,6 +886,8 @@ export declare const between: { * assert.deepStrictEqual(between(6n), false) * ``` * + * @see {@link clamp} for forcing a `bigint` into an inclusive range + * * @category predicates * @since 2.0.0 */ @@ -656,13 +899,20 @@ export declare const between: { /** * Restricts the given `bigint` to be within the range specified by the `minimum` and `maximum` values. * - * - If the `bigint` is less than the `minimum` value, the function returns the `minimum` value. - * - If the `bigint` is greater than the `maximum` value, the function returns the `maximum` value. - * - Otherwise, it returns the original `bigint`. + * **When to use** + * + * Use to force a `bigint` into an inclusive range. + * + * **Details** + * + * If the `bigint` is less than the minimum, the function returns the minimum. + * If the `bigint` is greater than the maximum, the function returns the + * maximum. Otherwise, it returns the original `bigint`. + * + * **Example** (Clamping a bigint to bounds) * - * @example * ```ts - * import * as BigInt from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * * const clamp = BigInt.clamp({ minimum: 1n, maximum: 5n }) @@ -672,6 +922,8 @@ export declare const between: { * assert.equal(clamp(6n), 5n) * ``` * + * @see {@link between} for checking whether a `bigint` is already inside a range + * * @category math * @since 2.0.0 */ @@ -679,13 +931,20 @@ export declare const clamp: { /** * Restricts the given `bigint` to be within the range specified by the `minimum` and `maximum` values. * - * - If the `bigint` is less than the `minimum` value, the function returns the `minimum` value. - * - If the `bigint` is greater than the `maximum` value, the function returns the `maximum` value. - * - Otherwise, it returns the original `bigint`. + * **When to use** + * + * Use to force a `bigint` into an inclusive range. + * + * **Details** + * + * If the `bigint` is less than the minimum, the function returns the minimum. + * If the `bigint` is greater than the maximum, the function returns the + * maximum. Otherwise, it returns the original `bigint`. + * + * **Example** (Clamping a bigint to bounds) * - * @example * ```ts - * import * as BigInt from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * * const clamp = BigInt.clamp({ minimum: 1n, maximum: 5n }) @@ -695,6 +954,8 @@ export declare const clamp: { * assert.equal(clamp(6n), 5n) * ``` * + * @see {@link between} for checking whether a `bigint` is already inside a range + * * @category math * @since 2.0.0 */ @@ -705,13 +966,20 @@ export declare const clamp: { /** * Restricts the given `bigint` to be within the range specified by the `minimum` and `maximum` values. * - * - If the `bigint` is less than the `minimum` value, the function returns the `minimum` value. - * - If the `bigint` is greater than the `maximum` value, the function returns the `maximum` value. - * - Otherwise, it returns the original `bigint`. + * **When to use** + * + * Use to force a `bigint` into an inclusive range. + * + * **Details** + * + * If the `bigint` is less than the minimum, the function returns the minimum. + * If the `bigint` is greater than the maximum, the function returns the + * maximum. Otherwise, it returns the original `bigint`. + * + * **Example** (Clamping a bigint to bounds) * - * @example * ```ts - * import * as BigInt from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * * const clamp = BigInt.clamp({ minimum: 1n, maximum: 5n }) @@ -721,6 +989,8 @@ export declare const clamp: { * assert.equal(clamp(6n), 5n) * ``` * + * @see {@link between} for checking whether a `bigint` is already inside a range + * * @category math * @since 2.0.0 */ @@ -732,14 +1002,21 @@ export declare const clamp: { /** * Returns the minimum between two `bigint`s. * - * @example + * **When to use** + * + * Use to select the smaller of two `bigint` values. + * + * **Example** (Finding the minimum bigint) + * * ```ts - * import { min } from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(min(2n, 3n), 2n) + * assert.deepStrictEqual(BigInt.min(2n, 3n), 2n) * ``` * + * @see {@link max} for selecting the larger value + * * @category math * @since 2.0.0 */ @@ -747,14 +1024,21 @@ export declare const min: { /** * Returns the minimum between two `bigint`s. * - * @example + * **When to use** + * + * Use to select the smaller of two `bigint` values. + * + * **Example** (Finding the minimum bigint) + * * ```ts - * import { min } from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(min(2n, 3n), 2n) + * assert.deepStrictEqual(BigInt.min(2n, 3n), 2n) * ``` * + * @see {@link max} for selecting the larger value + * * @category math * @since 2.0.0 */ @@ -762,14 +1046,21 @@ export declare const min: { /** * Returns the minimum between two `bigint`s. * - * @example + * **When to use** + * + * Use to select the smaller of two `bigint` values. + * + * **Example** (Finding the minimum bigint) + * * ```ts - * import { min } from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(min(2n, 3n), 2n) + * assert.deepStrictEqual(BigInt.min(2n, 3n), 2n) * ``` * + * @see {@link max} for selecting the larger value + * * @category math * @since 2.0.0 */ @@ -778,14 +1069,21 @@ export declare const min: { /** * Returns the maximum between two `bigint`s. * - * @example + * **When to use** + * + * Use to select the larger of two `bigint` values. + * + * **Example** (Finding the maximum bigint) + * * ```ts - * import { max } from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(max(2n, 3n), 3n) + * assert.deepStrictEqual(BigInt.max(2n, 3n), 3n) * ``` * + * @see {@link min} for selecting the smaller value + * * @category math * @since 2.0.0 */ @@ -793,14 +1091,21 @@ export declare const max: { /** * Returns the maximum between two `bigint`s. * - * @example + * **When to use** + * + * Use to select the larger of two `bigint` values. + * + * **Example** (Finding the maximum bigint) + * * ```ts - * import { max } from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(max(2n, 3n), 3n) + * assert.deepStrictEqual(BigInt.max(2n, 3n), 3n) * ``` * + * @see {@link min} for selecting the smaller value + * * @category math * @since 2.0.0 */ @@ -808,14 +1113,21 @@ export declare const max: { /** * Returns the maximum between two `bigint`s. * - * @example + * **When to use** + * + * Use to select the larger of two `bigint` values. + * + * **Example** (Finding the maximum bigint) + * * ```ts - * import { max } from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(max(2n, 3n), 3n) + * assert.deepStrictEqual(BigInt.max(2n, 3n), 3n) * ``` * + * @see {@link min} for selecting the smaller value + * * @category math * @since 2.0.0 */ @@ -824,14 +1136,19 @@ export declare const max: { /** * Determines the sign of a given `bigint`. * - * @example + * **When to use** + * + * Use to classify a `bigint` as negative, zero, or positive. + * + * **Example** (Determining bigint signs) + * * ```ts - * import { sign } from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(sign(-5n), -1) - * assert.deepStrictEqual(sign(0n), 0) - * assert.deepStrictEqual(sign(5n), 1) + * assert.deepStrictEqual(BigInt.sign(-5n), -1) + * assert.deepStrictEqual(BigInt.sign(0n), 0) + * assert.deepStrictEqual(BigInt.sign(5n), 1) * ``` * * @category math @@ -841,14 +1158,19 @@ export declare const sign: (n: bigint) => Ordering; /** * Determines the absolute value of a given `bigint`. * - * @example + * **When to use** + * + * Use to remove the sign from a `bigint` while preserving its magnitude. + * + * **Example** (Calculating absolute values) + * * ```ts - * import { abs } from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(abs(-5n), 5n) - * assert.deepStrictEqual(abs(0n), 0n) - * assert.deepStrictEqual(abs(5n), 5n) + * assert.deepStrictEqual(BigInt.abs(-5n), 5n) + * assert.deepStrictEqual(BigInt.abs(0n), 0n) + * assert.deepStrictEqual(BigInt.abs(5n), 5n) * ``` * * @category math @@ -858,16 +1180,23 @@ export declare const abs: (n: bigint) => bigint; /** * Determines the greatest common divisor of two `bigint`s. * - * @example + * **When to use** + * + * Use to compute the greatest common divisor of two integer values. + * + * **Example** (Calculating greatest common divisors) + * * ```ts - * import { gcd } from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(gcd(2n, 3n), 1n) - * assert.deepStrictEqual(gcd(2n, 4n), 2n) - * assert.deepStrictEqual(gcd(16n, 24n), 8n) + * assert.deepStrictEqual(BigInt.gcd(2n, 3n), 1n) + * assert.deepStrictEqual(BigInt.gcd(2n, 4n), 2n) + * assert.deepStrictEqual(BigInt.gcd(16n, 24n), 8n) * ``` * + * @see {@link lcm} for computing the least common multiple + * * @category math * @since 2.0.0 */ @@ -875,16 +1204,23 @@ export declare const gcd: { /** * Determines the greatest common divisor of two `bigint`s. * - * @example + * **When to use** + * + * Use to compute the greatest common divisor of two integer values. + * + * **Example** (Calculating greatest common divisors) + * * ```ts - * import { gcd } from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(gcd(2n, 3n), 1n) - * assert.deepStrictEqual(gcd(2n, 4n), 2n) - * assert.deepStrictEqual(gcd(16n, 24n), 8n) + * assert.deepStrictEqual(BigInt.gcd(2n, 3n), 1n) + * assert.deepStrictEqual(BigInt.gcd(2n, 4n), 2n) + * assert.deepStrictEqual(BigInt.gcd(16n, 24n), 8n) * ``` * + * @see {@link lcm} for computing the least common multiple + * * @category math * @since 2.0.0 */ @@ -892,16 +1228,23 @@ export declare const gcd: { /** * Determines the greatest common divisor of two `bigint`s. * - * @example + * **When to use** + * + * Use to compute the greatest common divisor of two integer values. + * + * **Example** (Calculating greatest common divisors) + * * ```ts - * import { gcd } from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(gcd(2n, 3n), 1n) - * assert.deepStrictEqual(gcd(2n, 4n), 2n) - * assert.deepStrictEqual(gcd(16n, 24n), 8n) + * assert.deepStrictEqual(BigInt.gcd(2n, 3n), 1n) + * assert.deepStrictEqual(BigInt.gcd(2n, 4n), 2n) + * assert.deepStrictEqual(BigInt.gcd(16n, 24n), 8n) * ``` * + * @see {@link lcm} for computing the least common multiple + * * @category math * @since 2.0.0 */ @@ -910,16 +1253,23 @@ export declare const gcd: { /** * Determines the least common multiple of two `bigint`s. * - * @example + * **When to use** + * + * Use to compute the least common multiple of two integer values. + * + * **Example** (Calculating least common multiples) + * * ```ts - * import { lcm } from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(lcm(2n, 3n), 6n) - * assert.deepStrictEqual(lcm(2n, 4n), 4n) - * assert.deepStrictEqual(lcm(16n, 24n), 48n) + * assert.deepStrictEqual(BigInt.lcm(2n, 3n), 6n) + * assert.deepStrictEqual(BigInt.lcm(2n, 4n), 4n) + * assert.deepStrictEqual(BigInt.lcm(16n, 24n), 48n) * ``` * + * @see {@link gcd} for computing the greatest common divisor + * * @category math * @since 2.0.0 */ @@ -927,16 +1277,23 @@ export declare const lcm: { /** * Determines the least common multiple of two `bigint`s. * - * @example + * **When to use** + * + * Use to compute the least common multiple of two integer values. + * + * **Example** (Calculating least common multiples) + * * ```ts - * import { lcm } from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(lcm(2n, 3n), 6n) - * assert.deepStrictEqual(lcm(2n, 4n), 4n) - * assert.deepStrictEqual(lcm(16n, 24n), 48n) + * assert.deepStrictEqual(BigInt.lcm(2n, 3n), 6n) + * assert.deepStrictEqual(BigInt.lcm(2n, 4n), 4n) + * assert.deepStrictEqual(BigInt.lcm(16n, 24n), 48n) * ``` * + * @see {@link gcd} for computing the greatest common divisor + * * @category math * @since 2.0.0 */ @@ -944,43 +1301,78 @@ export declare const lcm: { /** * Determines the least common multiple of two `bigint`s. * - * @example + * **When to use** + * + * Use to compute the least common multiple of two integer values. + * + * **Example** (Calculating least common multiples) + * * ```ts - * import { lcm } from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(lcm(2n, 3n), 6n) - * assert.deepStrictEqual(lcm(2n, 4n), 4n) - * assert.deepStrictEqual(lcm(16n, 24n), 48n) + * assert.deepStrictEqual(BigInt.lcm(2n, 3n), 6n) + * assert.deepStrictEqual(BigInt.lcm(2n, 4n), 4n) + * assert.deepStrictEqual(BigInt.lcm(16n, 24n), 48n) * ``` * + * @see {@link gcd} for computing the greatest common divisor + * * @category math * @since 2.0.0 */ (self: bigint, that: bigint): bigint; }; /** - * Determines the square root of a given `bigint` unsafely. Throws if the given `bigint` is negative. + * Returns the integer square root of a non-negative `bigint`. + * + * **When to use** + * + * Use when you need to compute an integer square root for a `bigint` that has + * already been validated as non-negative, and you want negative input to throw + * instead of returning `Option.none`. + * + * **Details** + * + * For non-perfect squares, returns the largest `bigint` whose square is less + * than or equal to the input. + * + * **Gotchas** + * + * Throws a `RangeError` if the input is negative. + * + * **Example** (Calculating square roots unsafely) * - * @example * ```ts - * import { sqrtUnsafe } from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(sqrtUnsafe(4n), 2n) - * assert.deepStrictEqual(sqrtUnsafe(9n), 3n) - * assert.deepStrictEqual(sqrtUnsafe(16n), 4n) + * assert.deepStrictEqual(BigInt.sqrtUnsafe(4n), 2n) + * assert.deepStrictEqual(BigInt.sqrtUnsafe(9n), 3n) + * assert.deepStrictEqual(BigInt.sqrtUnsafe(16n), 4n) * ``` * + * @see {@link sqrt} for returning `Option.none` when the input is negative + * * @category math - * @since 2.0.0 + * @since 4.0.0 */ export declare const sqrtUnsafe: (n: bigint) => bigint; /** - * Determines the square root of a given `bigint` safely. Returns `Option.none()` if - * the given `bigint` is negative. + * Computes the integer square root of a `bigint` safely. * - * **Example** + * **When to use** + * + * Use to compute an integer square root while representing negative input as + * `Option.none`. + * + * **Details** + * + * For non-perfect squares, returns the largest `bigint` whose square is less + * than or equal to the input. Returns `Option.none()` when the input is + * negative. + * + * **Example** (Calculating square roots safely) * * ```ts * import { BigInt } from "effect" @@ -991,47 +1383,74 @@ export declare const sqrtUnsafe: (n: bigint) => bigint; * BigInt.sqrt(-1n) // Option.none() * ``` * + * @see {@link sqrtUnsafe} for square root computation that throws on negative input + * * @category math * @since 2.0.0 */ export declare const sqrt: (n: bigint) => Option.Option; /** - * Takes an `Iterable` of `bigint`s and returns their sum as a single `bigint + * Takes an `Iterable` of `bigint`s and returns their sum as a single `bigint`. Returns `0n` for an empty iterable. + * + * **When to use** + * + * Use when you want an immediate aggregate from an iterable instead of a + * folding reducer owned by another API. + * + * **Example** (Summing iterable bigints) * - * @example * ```ts - * import { sumAll } from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(sumAll([2n, 3n, 4n]), 9n) + * assert.deepStrictEqual(BigInt.sumAll([2n, 3n, 4n]), 9n) * ``` * + * @see {@link sum} for adding two `bigint` values + * @see {@link ReducerSum} for summing through APIs that consume a `Reducer` + * * @category math * @since 2.0.0 */ export declare const sumAll: (collection: Iterable) => bigint; /** - * Takes an `Iterable` of `bigint`s and returns their multiplication as a single `number`. + * Takes an `Iterable` of `bigint`s and returns their product as a single `bigint`. Returns `1n` for an empty iterable. + * + * **When to use** + * + * Use to multiply all `bigint` values in an iterable. + * + * **Example** (Multiplying iterable bigints) * - * @example * ```ts - * import { multiplyAll } from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(multiplyAll([2n, 3n, 4n]), 24n) + * assert.deepStrictEqual(BigInt.multiplyAll([2n, 3n, 4n]), 24n) * ``` * + * @see {@link multiply} for multiplying two `bigint` values + * @see {@link ReducerMultiply} for multiplying through APIs that consume a `Reducer` + * * @category math * @since 2.0.0 */ export declare const multiplyAll: (collection: Iterable) => bigint; /** - * Converts a `bigint` to a `number`. + * Converts a `bigint` to a `number` safely. + * + * **When to use** + * + * Use to convert a `bigint` to a JavaScript number only when it is a safe + * integer. + * + * **Details** * * If the `bigint` is outside the safe integer range for JavaScript (`Number.MAX_SAFE_INTEGER` * and `Number.MIN_SAFE_INTEGER`), it returns `Option.none()`. * - * @example + * **Example** (Converting bigints to numbers) + * * ```ts * import { BigInt as BI } from "effect" * @@ -1040,17 +1459,26 @@ export declare const multiplyAll: (collection: Iterable) => bigint; * BI.toNumber(BigInt(Number.MIN_SAFE_INTEGER) - 1n) // Option.none() * ``` * - * @category conversions + * @see {@link fromNumber} for converting a safe integer number to `bigint` + * + * @category converting * @since 2.0.0 */ export declare const toNumber: (b: bigint) => Option.Option; /** - * Converts a string to a `bigint`. + * Parses a string into a `bigint` safely. + * + * **When to use** + * + * Use to parse a string as a `bigint` without throwing on invalid input. + * + * **Details** * * If the string is empty or contains characters that cannot be converted into a * `bigint`, it returns `Option.none()`. * - * @example + * **Example** (Parsing strings as bigints) + * * ```ts * import { BigInt } from "effect" * @@ -1059,18 +1487,27 @@ export declare const toNumber: (b: bigint) => Option.Option; * BigInt.fromString("a") // Option.none() * ``` * - * @category conversions + * @see {@link BigInt} for native constructor coercion that throws on invalid input + * + * @category converting * @since 2.4.12 */ export declare const fromString: (s: string) => Option.Option; /** * Converts a number to a `bigint`. * + * **When to use** + * + * Use to convert a JavaScript number to `bigint` only when it is a safe integer. + * + * **Details** + * * If the number is outside the safe integer range for JavaScript * (`Number.MAX_SAFE_INTEGER` and `Number.MIN_SAFE_INTEGER`) or if the number is * not a valid `bigint`, it returns `Option.none()`. * - * @example + * **Example** (Converting numbers to bigints) + * * ```ts * import { BigInt } from "effect" * @@ -1080,14 +1517,27 @@ export declare const fromString: (s: string) => Option.Option; * BigInt.fromNumber(Number.MIN_SAFE_INTEGER - 1) // Option.none() * ``` * - * @category conversions + * @see {@link toNumber} for converting `bigint` values back to safe integer numbers + * @see {@link BigInt} for native constructor coercion + * + * @category converting * @since 2.4.12 */ export declare function fromNumber(n: number): Option.Option; /** - * Returns the remainder of dividing the first `bigint` by the second `bigint`. + * Returns the JavaScript remainder of dividing one `bigint` by another. + * + * **When to use** + * + * Use when you want native remainder semantics, including signed remainders and + * a thrown division-by-zero error. + * + * **Gotchas** + * + * Throws a `RangeError` when the divisor is `0n`. + * + * **Example** (Calculating remainders) * - * @example * ```ts * import { BigInt } from "effect" * @@ -1096,14 +1546,26 @@ export declare function fromNumber(n: number): Option.Option; * BigInt.remainder(15n, 4n) // 3n * ``` * + * @see {@link divide} for quotient calculation with division-by-zero represented as `Option.none` + * * @category math * @since 4.0.0 */ export declare const remainder: { /** - * Returns the remainder of dividing the first `bigint` by the second `bigint`. + * Returns the JavaScript remainder of dividing one `bigint` by another. + * + * **When to use** + * + * Use when you want native remainder semantics, including signed remainders and + * a thrown division-by-zero error. + * + * **Gotchas** + * + * Throws a `RangeError` when the divisor is `0n`. + * + * **Example** (Calculating remainders) * - * @example * ```ts * import { BigInt } from "effect" * @@ -1112,14 +1574,26 @@ export declare const remainder: { * BigInt.remainder(15n, 4n) // 3n * ``` * + * @see {@link divide} for quotient calculation with division-by-zero represented as `Option.none` + * * @category math * @since 4.0.0 */ (divisor: bigint): (self: bigint) => bigint; /** - * Returns the remainder of dividing the first `bigint` by the second `bigint`. + * Returns the JavaScript remainder of dividing one `bigint` by another. + * + * **When to use** + * + * Use when you want native remainder semantics, including signed remainders and + * a thrown division-by-zero error. + * + * **Gotchas** + * + * Throws a `RangeError` when the divisor is `0n`. + * + * **Example** (Calculating remainders) * - * @example * ```ts * import { BigInt } from "effect" * @@ -1128,32 +1602,74 @@ export declare const remainder: { * BigInt.remainder(15n, 4n) // 3n * ``` * + * @see {@link divide} for quotient calculation with division-by-zero represented as `Option.none` + * * @category math * @since 4.0.0 */ (self: bigint, divisor: bigint): bigint; }; /** - * A `Reducer` for combining `bigint`s using addition. + * Reducer for combining `bigint`s using addition. + * + * **When to use** + * + * Use to sum many `bigint` values through APIs that consume a `Reducer`. + * + * **Details** + * + * The initial value is `0n`, so `combineAll([])` returns `0n`. * + * @see {@link sumAll} for summing an iterable directly + * @see {@link ReducerMultiply} for multiplying `bigint` values + * + * @category math * @since 4.0.0 */ export declare const ReducerSum: Reducer.Reducer; /** - * A `Reducer` for combining `bigint`s using multiplication. + * Reducer for combining `bigint`s using multiplication. + * + * **When to use** + * + * Use to multiply many `bigint` values through APIs that consume a `Reducer`. + * + * **Details** * + * The initial value is `1n`, so `combineAll([])` returns `1n`. + * + * @see {@link multiplyAll} for multiplying an iterable directly + * @see {@link ReducerSum} for summing `bigint` values + * + * @category math * @since 4.0.0 */ export declare const ReducerMultiply: Reducer.Reducer; /** - * A `Combiner` that returns the maximum `bigint`. + * Combiner that returns the maximum `bigint`. + * + * **When to use** + * + * Use to keep the largest `bigint` when an API consumes a `Combiner`. + * + * @see {@link CombinerMin} for keeping the smallest `bigint` + * @see {@link max} for comparing two `bigint` values directly * + * @category math * @since 4.0.0 */ export declare const CombinerMax: Combiner.Combiner; /** - * A `Combiner` that returns the minimum `bigint`. + * Combiner that returns the minimum `bigint`. + * + * **When to use** + * + * Use to keep the smallest `bigint` through APIs that consume a `Combiner`. * + * @see {@link CombinerMax} for keeping the largest `bigint` + * @see {@link min} for comparing two `bigint` values directly + * + * @category math * @since 4.0.0 */ export declare const CombinerMin: Combiner.Combiner; diff --git a/.opencode/node_modules/effect/dist/BigInt.d.ts.map b/.opencode/node_modules/effect/dist/BigInt.d.ts.map index 3fc85b7818d0f80412aaff21d4e808ecc4876f20..bddeff4d0708eabba6cbdf3dbd6bf91f465a961a 100644 --- a/.opencode/node_modules/effect/dist/BigInt.d.ts.map +++ b/.opencode/node_modules/effect/dist/BigInt.d.ts.map @@ -1 +1 @@ -{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BigInt.js index 88ea20c5cf275dc5ae8487f766474265e971871a..8a4b7a23d88392cd233708ea505bc7a3749a44f9 100644 --- a/.opencode/node_modules/effect/dist/BigInt.js +++ b/.opencode/node_modules/effect/dist/BigInt.js @@ -1,6 +1,10 @@ /** - * This module provides utility functions and type class instances for working with the `bigint` type in TypeScript. - * It includes functions for basic arithmetic operations. + * Works with JavaScript `bigint` values. + * + * This module exposes the native `BigInt` constructor together with helpers for + * checking, arithmetic, comparison, range checks, safe parsing and conversions + * that return `Option`, integer square roots, aggregation, ordering, + * equivalence, reducers, and combiners. * * @since 2.0.0 */ @@ -12,11 +16,25 @@ import * as order from "./Order.js"; import * as predicate from "./Predicate.js"; import * as Reducer from "./Reducer.js"; /** - * Reference to the global BigInt constructor. + * Exposes the global bigint constructor for JavaScript bigint coercion. + * + * **When to use** + * + * Use to access native JavaScript bigint constructor coercion from the Effect + * module namespace. + * + * **Gotchas** + * + * This follows native `BigInt` coercion rules. It throws for invalid strings or + * non-integral numbers, and whitespace-only strings coerce to `0n`. + * + * @see {@link fromString} for parsing strings into an `Option` + * @see {@link fromNumber} for converting safe integers into an `Option` + * + * **Example** (Constructing bigints) * - * @example * ```ts - * import * as BigInt from "effect/BigInt" + * import { BigInt } from "effect" * * const bigInt = BigInt.BigInt(123) * console.log(bigInt) // 123n @@ -33,15 +51,20 @@ const bigint0 = /*#__PURE__*/BigInt(0); const bigint1 = /*#__PURE__*/BigInt(1); const bigint2 = /*#__PURE__*/BigInt(2); /** - * Tests if a value is a `bigint`. + * Checks whether a value is a `bigint`. + * + * **When to use** + * + * Use to validate unknown input and narrow it to `bigint`. + * + * **Example** (Checking for bigints) * - * @example * ```ts - * import { isBigInt } from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(isBigInt(1n), true) - * assert.deepStrictEqual(isBigInt(1), false) + * assert.deepStrictEqual(BigInt.isBigInt(1n), true) + * assert.deepStrictEqual(BigInt.isBigInt(1), false) * ``` * * @category guards @@ -51,14 +74,22 @@ export const isBigInt = predicate.isBigInt; /** * Provides an addition operation on `bigint`s. * - * @example + * **When to use** + * + * Use when you need a binary addition function for piping or higher-order APIs + * instead of the infix addition operator. + * + * **Example** (Adding bigints) + * * ```ts - * import { sum } from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(sum(2n, 3n), 5n) + * assert.deepStrictEqual(BigInt.sum(2n, 3n), 5n) * ``` * + * @see {@link sumAll} for summing an iterable of `bigint` values + * * @category math * @since 2.0.0 */ @@ -66,14 +97,21 @@ export const sum = /*#__PURE__*/dual(2, (self, that) => self + that); /** * Provides a multiplication operation on `bigint`s. * - * @example + * **When to use** + * + * Use to multiply two `bigint` values. + * + * **Example** (Multiplying bigints) + * * ```ts - * import { multiply } from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(multiply(2n, 3n), 6n) + * assert.deepStrictEqual(BigInt.multiply(2n, 3n), 6n) * ``` * + * @see {@link multiplyAll} for multiplying an iterable of `bigint` values + * * @category math * @since 2.0.0 */ @@ -81,12 +119,17 @@ export const multiply = /*#__PURE__*/dual(2, (self, that) => self * that); /** * Provides a subtraction operation on `bigint`s. * - * @example + * **When to use** + * + * Use to subtract one `bigint` value from another. + * + * **Example** (Subtracting bigints) + * * ```ts - * import { subtract } from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(subtract(2n, 3n), -1n) + * assert.deepStrictEqual(BigInt.subtract(2n, 3n), -1n) * ``` * * @category math @@ -94,58 +137,82 @@ export const multiply = /*#__PURE__*/dual(2, (self, that) => self * that); */ export const subtract = /*#__PURE__*/dual(2, (self, that) => self - that); /** - * Provides a division operation on `bigint`s. + * Divides one `bigint` by another safely. + * + * **When to use** * - * If the dividend is not a multiple of the divisor the result will be a `bigint` value - * which represents the integer division rounded down to the nearest integer. + * Use to divide `bigint` values while representing division by zero as + * `Option.none`. * - * Returns `Option.none()` if the divisor is `0n`. + * **Details** + * + * Uses JavaScript `bigint` division, so non-exact quotients are truncated + * toward zero. Returns `Option.none()` when the divisor is `0n`. + * + * **Example** (Dividing bigints safely) * - * @example * ```ts - * import { divide } from "effect/BigInt" + * import { BigInt, Option } from "effect" * import * as assert from "node:assert" * - * import { Option } from "effect" - * - * assert.deepStrictEqual(divide(6n, 3n), Option.some(2n)) - * assert.deepStrictEqual(divide(6n, 0n), Option.none()) + * assert.deepStrictEqual(BigInt.divide(6n, 3n), Option.some(2n)) + * assert.deepStrictEqual(BigInt.divide(6n, 0n), Option.none()) * ``` * + * @see {@link divideUnsafe} for division that throws when the divisor is `0n` + * @see {@link remainder} for the JavaScript remainder operation + * * @category math * @since 2.0.0 */ export const divide = /*#__PURE__*/dual(2, (self, that) => that === bigint0 ? Option.none() : Option.some(self / that)); /** - * Provides a division operation on `bigint`s. + * Divides one `bigint` by another, throwing if the divisor is zero. + * + * **When to use** + * + * Use to divide `bigint` values where the divisor is known to be non-zero and + * division by zero should be a thrown exception. + * + * **Details** + * + * Uses JavaScript `bigint` division, so non-exact quotients are truncated + * toward zero. + * + * **Gotchas** * - * If the dividend is not a multiple of the divisor the result will be a `bigint` value - * which represents the integer division rounded down to the nearest integer. + * Throws a `RangeError` when the divisor is `0n`. * - * Throws a `RangeError` if the divisor is `0n`. + * **Example** (Dividing bigints unsafely) * - * @example * ```ts - * import { divideUnsafe } from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(divideUnsafe(6n, 3n), 2n) - * assert.deepStrictEqual(divideUnsafe(6n, 4n), 1n) + * assert.deepStrictEqual(BigInt.divideUnsafe(6n, 3n), 2n) + * assert.deepStrictEqual(BigInt.divideUnsafe(6n, 4n), 1n) * ``` * + * @see {@link divide} for division that returns `Option.none` when the divisor is `0n` + * * @category math - * @since 2.0.0 + * @since 4.0.0 */ export const divideUnsafe = /*#__PURE__*/dual(2, (self, that) => self / that); /** - * Returns the result of adding `1n` to a given number. + * Returns the result of adding `1n` to a `bigint`. + * + * **When to use** + * + * Use to increment a `bigint` counter by one. + * + * **Example** (Incrementing a bigint) * - * @example * ```ts - * import { increment } from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(increment(2n), 3n) + * assert.deepStrictEqual(BigInt.increment(2n), 3n) * ``` * * @category math @@ -153,14 +220,19 @@ export const divideUnsafe = /*#__PURE__*/dual(2, (self, that) => self / that); */ export const increment = n => n + bigint1; /** - * Decrements a number by `1n`. + * Returns the result of subtracting `1n` from a `bigint`. + * + * **When to use** + * + * Use to decrement a `bigint` counter by one. + * + * **Example** (Decrementing a bigint) * - * @example * ```ts - * import { decrement } from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(decrement(3n), 2n) + * assert.deepStrictEqual(BigInt.decrement(3n), 2n) * ``` * * @category math @@ -170,9 +242,15 @@ export const decrement = n => n - bigint1; /** * Provides an `Order` instance for `bigint` that allows comparing and sorting BigInt values. * - * @example + * **When to use** + * + * Use when you need to sort or compare bigint values through APIs that accept + * an ordering instance. + * + * **Example** (Comparing bigints with Order) + * * ```ts - * import * as BigInt from "effect/BigInt" + * import { BigInt } from "effect" * * const a = 123n * const b = 456n @@ -188,9 +266,15 @@ export const decrement = n => n - bigint1; */ export const Order = order.BigInt; /** - * An `Equivalence` instance for bigints using strict equality (`===`). + * Equivalence instance for bigints using strict equality (`===`). + * + * **When to use** + * + * Use when checking bigint equality through APIs that accept an equivalence + * relation. + * + * **Example** (Comparing bigints for equivalence) * - * @example * ```ts * import { BigInt } from "effect" * @@ -199,83 +283,108 @@ export const Order = order.BigInt; * ``` * * @category instances - * @since 4.0.0 + * @since 2.0.0 */ export const Equivalence = Equ.BigInt; /** * Returns `true` if the first argument is less than the second, otherwise `false`. * - * @example + * **When to use** + * + * Use to test whether one `bigint` is strictly less than another. + * + * **Example** (Checking less-than comparisons) + * * ```ts - * import { isLessThan } from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(isLessThan(2n, 3n), true) - * assert.deepStrictEqual(isLessThan(3n, 3n), false) - * assert.deepStrictEqual(isLessThan(4n, 3n), false) + * assert.deepStrictEqual(BigInt.isLessThan(2n, 3n), true) + * assert.deepStrictEqual(BigInt.isLessThan(3n, 3n), false) + * assert.deepStrictEqual(BigInt.isLessThan(4n, 3n), false) * ``` * * @category predicates - * @since 2.0.0 + * @since 4.0.0 */ export const isLessThan = /*#__PURE__*/order.isLessThan(Order); /** * Returns a function that checks if a given `bigint` is less than or equal to the provided one. * - * @example + * **When to use** + * + * Use to test whether one `bigint` is less than or equal to another. + * + * **Example** (Checking less-than-or-equal comparisons) + * * ```ts - * import { isLessThanOrEqualTo } from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(isLessThanOrEqualTo(2n, 3n), true) - * assert.deepStrictEqual(isLessThanOrEqualTo(3n, 3n), true) - * assert.deepStrictEqual(isLessThanOrEqualTo(4n, 3n), false) + * assert.deepStrictEqual(BigInt.isLessThanOrEqualTo(2n, 3n), true) + * assert.deepStrictEqual(BigInt.isLessThanOrEqualTo(3n, 3n), true) + * assert.deepStrictEqual(BigInt.isLessThanOrEqualTo(4n, 3n), false) * ``` * * @category predicates - * @since 2.0.0 + * @since 4.0.0 */ export const isLessThanOrEqualTo = /*#__PURE__*/order.isLessThanOrEqualTo(Order); /** * Returns `true` if the first argument is greater than the second, otherwise `false`. * - * @example + * **When to use** + * + * Use to test whether one `bigint` is strictly greater than another. + * + * **Example** (Checking greater-than comparisons) + * * ```ts - * import { isGreaterThan } from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(isGreaterThan(2n, 3n), false) - * assert.deepStrictEqual(isGreaterThan(3n, 3n), false) - * assert.deepStrictEqual(isGreaterThan(4n, 3n), true) + * assert.deepStrictEqual(BigInt.isGreaterThan(2n, 3n), false) + * assert.deepStrictEqual(BigInt.isGreaterThan(3n, 3n), false) + * assert.deepStrictEqual(BigInt.isGreaterThan(4n, 3n), true) * ``` * * @category predicates - * @since 2.0.0 + * @since 4.0.0 */ export const isGreaterThan = /*#__PURE__*/order.isGreaterThan(Order); /** * Returns a function that checks if a given `bigint` is greater than or equal to the provided one. * - * @example + * **When to use** + * + * Use to test whether one `bigint` is greater than or equal to another. + * + * **Example** (Checking greater-than-or-equal comparisons) + * * ```ts - * import { isGreaterThanOrEqualTo } from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(isGreaterThanOrEqualTo(2n, 3n), false) - * assert.deepStrictEqual(isGreaterThanOrEqualTo(3n, 3n), true) - * assert.deepStrictEqual(isGreaterThanOrEqualTo(4n, 3n), true) + * assert.deepStrictEqual(BigInt.isGreaterThanOrEqualTo(2n, 3n), false) + * assert.deepStrictEqual(BigInt.isGreaterThanOrEqualTo(3n, 3n), true) + * assert.deepStrictEqual(BigInt.isGreaterThanOrEqualTo(4n, 3n), true) * ``` * * @category predicates - * @since 2.0.0 + * @since 4.0.0 */ export const isGreaterThanOrEqualTo = /*#__PURE__*/order.isGreaterThanOrEqualTo(Order); /** - * Checks if a `bigint` is between a `minimum` and `maximum` value (inclusive). + * Checks whether a `bigint` is between a `minimum` and `maximum` value (inclusive). + * + * **When to use** + * + * Use to test whether a `bigint` falls inside an inclusive range. + * + * **Example** (Checking whether a bigint is within bounds) * - * @example * ```ts - * import * as BigInt from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * * const between = BigInt.between({ minimum: 0n, maximum: 5n }) @@ -285,6 +394,8 @@ export const isGreaterThanOrEqualTo = /*#__PURE__*/order.isGreaterThanOrEqualTo( * assert.deepStrictEqual(between(6n), false) * ``` * + * @see {@link clamp} for forcing a `bigint` into an inclusive range + * * @category predicates * @since 2.0.0 */ @@ -292,13 +403,20 @@ export const between = /*#__PURE__*/order.isBetween(Order); /** * Restricts the given `bigint` to be within the range specified by the `minimum` and `maximum` values. * - * - If the `bigint` is less than the `minimum` value, the function returns the `minimum` value. - * - If the `bigint` is greater than the `maximum` value, the function returns the `maximum` value. - * - Otherwise, it returns the original `bigint`. + * **When to use** + * + * Use to force a `bigint` into an inclusive range. + * + * **Details** + * + * If the `bigint` is less than the minimum, the function returns the minimum. + * If the `bigint` is greater than the maximum, the function returns the + * maximum. Otherwise, it returns the original `bigint`. + * + * **Example** (Clamping a bigint to bounds) * - * @example * ```ts - * import * as BigInt from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * * const clamp = BigInt.clamp({ minimum: 1n, maximum: 5n }) @@ -308,6 +426,8 @@ export const between = /*#__PURE__*/order.isBetween(Order); * assert.equal(clamp(6n), 5n) * ``` * + * @see {@link between} for checking whether a `bigint` is already inside a range + * * @category math * @since 2.0.0 */ @@ -315,14 +435,21 @@ export const clamp = /*#__PURE__*/order.clamp(Order); /** * Returns the minimum between two `bigint`s. * - * @example + * **When to use** + * + * Use to select the smaller of two `bigint` values. + * + * **Example** (Finding the minimum bigint) + * * ```ts - * import { min } from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(min(2n, 3n), 2n) + * assert.deepStrictEqual(BigInt.min(2n, 3n), 2n) * ``` * + * @see {@link max} for selecting the larger value + * * @category math * @since 2.0.0 */ @@ -330,14 +457,21 @@ export const min = /*#__PURE__*/order.min(Order); /** * Returns the maximum between two `bigint`s. * - * @example + * **When to use** + * + * Use to select the larger of two `bigint` values. + * + * **Example** (Finding the maximum bigint) + * * ```ts - * import { max } from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(max(2n, 3n), 3n) + * assert.deepStrictEqual(BigInt.max(2n, 3n), 3n) * ``` * + * @see {@link min} for selecting the smaller value + * * @category math * @since 2.0.0 */ @@ -345,14 +479,19 @@ export const max = /*#__PURE__*/order.max(Order); /** * Determines the sign of a given `bigint`. * - * @example + * **When to use** + * + * Use to classify a `bigint` as negative, zero, or positive. + * + * **Example** (Determining bigint signs) + * * ```ts - * import { sign } from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(sign(-5n), -1) - * assert.deepStrictEqual(sign(0n), 0) - * assert.deepStrictEqual(sign(5n), 1) + * assert.deepStrictEqual(BigInt.sign(-5n), -1) + * assert.deepStrictEqual(BigInt.sign(0n), 0) + * assert.deepStrictEqual(BigInt.sign(5n), 1) * ``` * * @category math @@ -362,14 +501,19 @@ export const sign = n => order.BigInt(n, bigint0); /** * Determines the absolute value of a given `bigint`. * - * @example + * **When to use** + * + * Use to remove the sign from a `bigint` while preserving its magnitude. + * + * **Example** (Calculating absolute values) + * * ```ts - * import { abs } from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(abs(-5n), 5n) - * assert.deepStrictEqual(abs(0n), 0n) - * assert.deepStrictEqual(abs(5n), 5n) + * assert.deepStrictEqual(BigInt.abs(-5n), 5n) + * assert.deepStrictEqual(BigInt.abs(0n), 0n) + * assert.deepStrictEqual(BigInt.abs(5n), 5n) * ``` * * @category math @@ -379,16 +523,23 @@ export const abs = n => n < bigint0 ? -n : n; /** * Determines the greatest common divisor of two `bigint`s. * - * @example + * **When to use** + * + * Use to compute the greatest common divisor of two integer values. + * + * **Example** (Calculating greatest common divisors) + * * ```ts - * import { gcd } from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(gcd(2n, 3n), 1n) - * assert.deepStrictEqual(gcd(2n, 4n), 2n) - * assert.deepStrictEqual(gcd(16n, 24n), 8n) + * assert.deepStrictEqual(BigInt.gcd(2n, 3n), 1n) + * assert.deepStrictEqual(BigInt.gcd(2n, 4n), 2n) + * assert.deepStrictEqual(BigInt.gcd(16n, 24n), 8n) * ``` * + * @see {@link lcm} for computing the least common multiple + * * @category math * @since 2.0.0 */ @@ -403,35 +554,60 @@ export const gcd = /*#__PURE__*/dual(2, (self, that) => { /** * Determines the least common multiple of two `bigint`s. * - * @example + * **When to use** + * + * Use to compute the least common multiple of two integer values. + * + * **Example** (Calculating least common multiples) + * * ```ts - * import { lcm } from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(lcm(2n, 3n), 6n) - * assert.deepStrictEqual(lcm(2n, 4n), 4n) - * assert.deepStrictEqual(lcm(16n, 24n), 48n) + * assert.deepStrictEqual(BigInt.lcm(2n, 3n), 6n) + * assert.deepStrictEqual(BigInt.lcm(2n, 4n), 4n) + * assert.deepStrictEqual(BigInt.lcm(16n, 24n), 48n) * ``` * + * @see {@link gcd} for computing the greatest common divisor + * * @category math * @since 2.0.0 */ export const lcm = /*#__PURE__*/dual(2, (self, that) => self * that / gcd(self, that)); /** - * Determines the square root of a given `bigint` unsafely. Throws if the given `bigint` is negative. + * Returns the integer square root of a non-negative `bigint`. + * + * **When to use** + * + * Use when you need to compute an integer square root for a `bigint` that has + * already been validated as non-negative, and you want negative input to throw + * instead of returning `Option.none`. + * + * **Details** + * + * For non-perfect squares, returns the largest `bigint` whose square is less + * than or equal to the input. + * + * **Gotchas** + * + * Throws a `RangeError` if the input is negative. + * + * **Example** (Calculating square roots unsafely) * - * @example * ```ts - * import { sqrtUnsafe } from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(sqrtUnsafe(4n), 2n) - * assert.deepStrictEqual(sqrtUnsafe(9n), 3n) - * assert.deepStrictEqual(sqrtUnsafe(16n), 4n) + * assert.deepStrictEqual(BigInt.sqrtUnsafe(4n), 2n) + * assert.deepStrictEqual(BigInt.sqrtUnsafe(9n), 3n) + * assert.deepStrictEqual(BigInt.sqrtUnsafe(16n), 4n) * ``` * + * @see {@link sqrt} for returning `Option.none` when the input is negative + * * @category math - * @since 2.0.0 + * @since 4.0.0 */ export const sqrtUnsafe = n => { if (n < bigint0) { @@ -447,10 +623,20 @@ export const sqrtUnsafe = n => { return x; }; /** - * Determines the square root of a given `bigint` safely. Returns `Option.none()` if - * the given `bigint` is negative. + * Computes the integer square root of a `bigint` safely. + * + * **When to use** + * + * Use to compute an integer square root while representing negative input as + * `Option.none`. * - * **Example** + * **Details** + * + * For non-perfect squares, returns the largest `bigint` whose square is less + * than or equal to the input. Returns `Option.none()` when the input is + * negative. + * + * **Example** (Calculating square roots safely) * * ```ts * import { BigInt } from "effect" @@ -461,21 +647,32 @@ export const sqrtUnsafe = n => { * BigInt.sqrt(-1n) // Option.none() * ``` * + * @see {@link sqrtUnsafe} for square root computation that throws on negative input + * * @category math * @since 2.0.0 */ export const sqrt = n => isGreaterThanOrEqualTo(n, bigint0) ? Option.some(sqrtUnsafe(n)) : Option.none(); /** - * Takes an `Iterable` of `bigint`s and returns their sum as a single `bigint + * Takes an `Iterable` of `bigint`s and returns their sum as a single `bigint`. Returns `0n` for an empty iterable. + * + * **When to use** + * + * Use when you want an immediate aggregate from an iterable instead of a + * folding reducer owned by another API. + * + * **Example** (Summing iterable bigints) * - * @example * ```ts - * import { sumAll } from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(sumAll([2n, 3n, 4n]), 9n) + * assert.deepStrictEqual(BigInt.sumAll([2n, 3n, 4n]), 9n) * ``` * + * @see {@link sum} for adding two `bigint` values + * @see {@link ReducerSum} for summing through APIs that consume a `Reducer` + * * @category math * @since 2.0.0 */ @@ -487,16 +684,24 @@ export const sumAll = collection => { return out; }; /** - * Takes an `Iterable` of `bigint`s and returns their multiplication as a single `number`. + * Takes an `Iterable` of `bigint`s and returns their product as a single `bigint`. Returns `1n` for an empty iterable. + * + * **When to use** + * + * Use to multiply all `bigint` values in an iterable. + * + * **Example** (Multiplying iterable bigints) * - * @example * ```ts - * import { multiplyAll } from "effect/BigInt" + * import { BigInt } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(multiplyAll([2n, 3n, 4n]), 24n) + * assert.deepStrictEqual(BigInt.multiplyAll([2n, 3n, 4n]), 24n) * ``` * + * @see {@link multiply} for multiplying two `bigint` values + * @see {@link ReducerMultiply} for multiplying through APIs that consume a `Reducer` + * * @category math * @since 2.0.0 */ @@ -511,12 +716,20 @@ export const multiplyAll = collection => { return out; }; /** - * Converts a `bigint` to a `number`. + * Converts a `bigint` to a `number` safely. + * + * **When to use** + * + * Use to convert a `bigint` to a JavaScript number only when it is a safe + * integer. + * + * **Details** * * If the `bigint` is outside the safe integer range for JavaScript (`Number.MAX_SAFE_INTEGER` * and `Number.MIN_SAFE_INTEGER`), it returns `Option.none()`. * - * @example + * **Example** (Converting bigints to numbers) + * * ```ts * import { BigInt as BI } from "effect" * @@ -525,7 +738,9 @@ export const multiplyAll = collection => { * BI.toNumber(BigInt(Number.MIN_SAFE_INTEGER) - 1n) // Option.none() * ``` * - * @category conversions + * @see {@link fromNumber} for converting a safe integer number to `bigint` + * + * @category converting * @since 2.0.0 */ export const toNumber = b => { @@ -535,12 +750,19 @@ export const toNumber = b => { return Option.some(Number(b)); }; /** - * Converts a string to a `bigint`. + * Parses a string into a `bigint` safely. + * + * **When to use** + * + * Use to parse a string as a `bigint` without throwing on invalid input. + * + * **Details** * * If the string is empty or contains characters that cannot be converted into a * `bigint`, it returns `Option.none()`. * - * @example + * **Example** (Parsing strings as bigints) + * * ```ts * import { BigInt } from "effect" * @@ -549,7 +771,9 @@ export const toNumber = b => { * BigInt.fromString("a") // Option.none() * ``` * - * @category conversions + * @see {@link BigInt} for native constructor coercion that throws on invalid input + * + * @category converting * @since 2.4.12 */ export const fromString = s => { @@ -562,11 +786,18 @@ export const fromString = s => { /** * Converts a number to a `bigint`. * + * **When to use** + * + * Use to convert a JavaScript number to `bigint` only when it is a safe integer. + * + * **Details** + * * If the number is outside the safe integer range for JavaScript * (`Number.MAX_SAFE_INTEGER` and `Number.MIN_SAFE_INTEGER`) or if the number is * not a valid `bigint`, it returns `Option.none()`. * - * @example + * **Example** (Converting numbers to bigints) + * * ```ts * import { BigInt } from "effect" * @@ -576,7 +807,10 @@ export const fromString = s => { * BigInt.fromNumber(Number.MIN_SAFE_INTEGER - 1) // Option.none() * ``` * - * @category conversions + * @see {@link toNumber} for converting `bigint` values back to safe integer numbers + * @see {@link BigInt} for native constructor coercion + * + * @category converting * @since 2.4.12 */ export function fromNumber(n) { @@ -590,9 +824,19 @@ export function fromNumber(n) { } } /** - * Returns the remainder of dividing the first `bigint` by the second `bigint`. + * Returns the JavaScript remainder of dividing one `bigint` by another. + * + * **When to use** + * + * Use when you want native remainder semantics, including signed remainders and + * a thrown division-by-zero error. + * + * **Gotchas** + * + * Throws a `RangeError` when the divisor is `0n`. + * + * **Example** (Calculating remainders) * - * @example * ```ts * import { BigInt } from "effect" * @@ -601,19 +845,45 @@ export function fromNumber(n) { * BigInt.remainder(15n, 4n) // 3n * ``` * + * @see {@link divide} for quotient calculation with division-by-zero represented as `Option.none` + * * @category math * @since 4.0.0 */ export const remainder = /*#__PURE__*/dual(2, (self, divisor) => self % divisor); /** - * A `Reducer` for combining `bigint`s using addition. + * Reducer for combining `bigint`s using addition. + * + * **When to use** + * + * Use to sum many `bigint` values through APIs that consume a `Reducer`. + * + * **Details** * + * The initial value is `0n`, so `combineAll([])` returns `0n`. + * + * @see {@link sumAll} for summing an iterable directly + * @see {@link ReducerMultiply} for multiplying `bigint` values + * + * @category math * @since 4.0.0 */ export const ReducerSum = /*#__PURE__*/Reducer.make((a, b) => a + b, bigint0); /** - * A `Reducer` for combining `bigint`s using multiplication. + * Reducer for combining `bigint`s using multiplication. + * + * **When to use** + * + * Use to multiply many `bigint` values through APIs that consume a `Reducer`. + * + * **Details** * + * The initial value is `1n`, so `combineAll([])` returns `1n`. + * + * @see {@link multiplyAll} for multiplying an iterable directly + * @see {@link ReducerSum} for summing `bigint` values + * + * @category math * @since 4.0.0 */ export const ReducerMultiply = /*#__PURE__*/Reducer.make((a, b) => a * b, bigint1, collection => { @@ -625,14 +895,30 @@ export const ReducerMultiply = /*#__PURE__*/Reducer.make((a, b) => a * b, bigint return acc; }); /** - * A `Combiner` that returns the maximum `bigint`. + * Combiner that returns the maximum `bigint`. + * + * **When to use** + * + * Use to keep the largest `bigint` when an API consumes a `Combiner`. + * + * @see {@link CombinerMin} for keeping the smallest `bigint` + * @see {@link max} for comparing two `bigint` values directly * + * @category math * @since 4.0.0 */ export const CombinerMax = /*#__PURE__*/Combiner.max(Order); /** - * A `Combiner` that returns the minimum `bigint`. + * Combiner that returns the minimum `bigint`. + * + * **When to use** + * + * Use to keep the smallest `bigint` through APIs that consume a `Combiner`. * + * @see {@link CombinerMax} for keeping the largest `bigint` + * @see {@link min} for comparing two `bigint` values directly + * + * @category math * @since 4.0.0 */ export const CombinerMin = /*#__PURE__*/Combiner.min(Order); diff --git a/.opencode/node_modules/effect/dist/BigInt.js.map b/.opencode/node_modules/effect/dist/BigInt.js.map index f74d234ef2c061846cedb0ae6c9510da41383a0f..f32be26ff1cdbb70584c30a48e87e7e52a5a6640 100644 --- a/.opencode/node_modules/effect/dist/BigInt.js.map +++ b/.opencode/node_modules/effect/dist/BigInt.js.map @@ -1 +1 @@ -{"version":3,"file":"BigInt.js","names":["Combiner","Equ","dual","Option","order","predicate","Reducer","BigInt","globalThis","bigint0","bigint1","bigint2","isBigInt","sum","self","that","multiply","subtract","divide","none","some","divideUnsafe","increment","n","decrement","Order","Equivalence","isLessThan","isLessThanOrEqualTo","isGreaterThan","isGreaterThanOrEqualTo","between","isBetween","clamp","min","max","sign","abs","gcd","t","lcm","sqrtUnsafe","RangeError","x","sqrt","sumAll","collection","out","multiplyAll","toNumber","b","Number","MAX_SAFE_INTEGER","MIN_SAFE_INTEGER","fromString","s","trim","fromNumber","remainder","divisor","ReducerSum","make","a","ReducerMultiply","acc","CombinerMax","CombinerMin"],"sources":["../src/BigInt.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;AAOA,OAAO,KAAKA,QAAQ,MAAM,eAAe;AACzC,OAAO,KAAKC,GAAG,MAAM,kBAA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MyC,WAAW,gBAA8BlE,QAAQ,CAACkC,GAAG,CAACT,KAAK,CAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"BigInt.js","names":["Combiner","Equ","dual","Option","order","predicate","Reducer","BigInt","globalThis","bigint0","bigint1","bigint2","isBigInt","sum","self","that","multiply","subtract","divide","none","some","divideUnsafe","increment","n","decrement","Order","Equivalence","isLessThan","isLessThanOrEqualTo","isGreaterThan","isGreaterThanOrEqualTo","between","isBetween","clamp","min","max","sign","abs","gcd","t","lcm","sqrtUnsafe","RangeError","x","sqrt","sumAll","collection","out","multiplyAll","toNumber","b","Number","MAX_SAFE_INTEGER","MIN_SAFE_INTEGER","fromString","s","trim","fromNumber","remainder","divisor","ReducerSum","make","a","ReducerMultiply","acc","CombinerMax","CombinerMin"],"sources":["../src/BigInt.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;AAWA,OAAO,KAAKA,QAAQ,MAAM,eAAe;AACzC,OAAO,KAAKC,GAAG,MAAM,kBAAkB;AACvC,SAASC,IAAI,QAAQ,eAAe;AACpC,OAAO,KAAKC,MAAM,MAAM,aAAa;AACrC,OAAO,KAAKC,KAAK,MAAM,YAAY;AAEnC,OAAO,KAAKC,SAAS,MAAM,gBAAgB;AAC3C,OAAO,KAAKC,OAAO,MAAM,cAAc;AAEvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BA,OAAO,MAAMC,MAAM,GAAGC,UAAU,CAACD,MAAM;AAEvC,MAAME,OAAO,gBAAGF,MAAM,CAAC,CAAC,CAAC;AACzB,MAAMG,OAAO,gBAAGH,MAAM,CAAC,CAAC,CAAC;AACzB,MAAMI,OAAO,gBAAGJ,MAAM,CAAC,CAAC,CAAC;AAEzB;;;;;;;;;;;;;;;;;;;;AAoBA,OAAO,MAAMK,QAAQ,GAAgCP,SAAS,CAACO,QAAQ;AAEvE;;;;;;;;;;;;;;;;;;;;;;AAsBA,OAAO,MAAMC,GAAG,gBA+CZX,IAAI,CAAC,CAA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hB,MAAM,CAACiB,IAAI,CAACb,MAAM,CAACgB,CAAC,CAAC,CAAC;EAC/B,CAAC,CAAC,MAAM;IACN,OAAOpB,MAAM,CAACgB,IAAI,EAAE;EACtB;AACF;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BA,OAAO,MAAMuC,SAAS,gBAyDlBxD,IAAI,CAAC,CAAC,EAAE,CAACY,IAAY,EAAE6C,OAAe,KAAa7C,IAAI,GAAG6C,OAAO,CAAC;AAEtE;;;;;;;;;;;;;;;;;AAiBA,OAAO,MAAMC,UAAU,gBAA4BtD,OAAO,CAACuD,IAAI,CAAC,CAACC,CAAC,EAAEZ,CAAC,KAAKY,CAAC,GAAGZ,CAAC,EAAEzC,OAAO,CAAC;AAEzF;;;;;;;;;;;;;;;;;AAiBA,OAAO,MAAMsD,eAAe,gBAA4BzD,OAAO,CAACuD,IAAI,CAAC,CAACC,CAAC,EAAEZ,CAAC,KAAKY,CAAC,GAAGZ,CAAC,EAAExC,OAAO,EAAGoC,UAAU,IAAI;EAC5G,IAAIkB,GAAG,GAAGtD,OAAO;EACjB,KAAK,MAAMa,CAAC,IAAIuB,UAAU,EAAE;IAC1B,IAAIvB,CAAC,KAAKd,OAAO,EAAE,OAAOA,OAAO;IACjCuD,GAAG,IAAIzC,CAAC;EACV;EACA,OAAOyC,GAAG;AACZ,CAAC,CAAC;AAEF;;;;;;;;;;;;;AAaA,OAAO,MAAMC,WAAW,gBAA8BjE,QAAQ,CAACmC,GAAG,CAACV,KAAK,CAAC;AAEzE;;;;;;;;;;;;;AAaA,OAAO,MAAMyC,WAAW,gBAA8BlE,QAAQ,CAACkC,GAAG,CAACT,KAAK,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Boolean.d.ts b/.opencode/node_modules/effect/dist/Boolean.d.ts index 4889e7f13a60244d0448290375b88d584d0fa978..788c268a0aca3098b886eecb139ffc21143d19e0 100644 --- a/.opencode/node_modules/effect/dist/Boolean.d.ts +++ b/.opencode/node_modules/effect/dist/Boolean.d.ts @@ -1,6 +1,10 @@ /** - * This module provides utility functions and type class instances for working with the `boolean` type in TypeScript. - * It includes functions for basic boolean operations. + * Works with TypeScript `boolean` values. + * + * This module exposes the native `Boolean` constructor together with helpers + * for checking values, choosing between lazy branches, combining booleans with + * logical operations, checking collections with `every` or `some`, ordering + * booleans, and reducing boolean values. * * @since 2.0.0 */ @@ -9,11 +13,23 @@ import type { LazyArg } from "./Function.ts"; import * as order from "./Order.ts"; import * as Reducer from "./Reducer.ts"; /** - * Reference to the global Boolean constructor. + * Exposes the global boolean constructor for JavaScript truthiness + * coercion. + * + * **When to use** + * + * Use to access native JavaScript truthiness coercion from the Effect module + * namespace. + * + * **Gotchas** + * + * This follows native truthiness rules. For example, non-empty strings such as + * `"false"` coerce to `true`. + * + * **Example** (Coercing values to booleans) * - * @example * ```ts - * import * as Boolean from "effect/Boolean" + * import { Boolean } from "effect" * * const bool = Boolean.Boolean(1) * console.log(bool) // true @@ -30,15 +46,20 @@ import * as Reducer from "./Reducer.ts"; */ export declare const Boolean: BooleanConstructor; /** - * Tests if a value is a `boolean`. + * Checks whether a value is a `boolean`. + * + * **When to use** + * + * Use to validate unknown input and narrow it to `boolean`. + * + * **Example** (Checking for booleans) * - * @example * ```ts - * import { isBoolean } from "effect/Boolean" + * import { Boolean } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(isBoolean(true), true) - * assert.deepStrictEqual(isBoolean("true"), false) + * assert.deepStrictEqual(Boolean.isBoolean(true), true) + * assert.deepStrictEqual(Boolean.isBoolean("true"), false) * ``` * * @category guards @@ -46,12 +67,16 @@ export declare const Boolean: BooleanConstructor; */ export declare const isBoolean: (input: unknown) => input is boolean; /** - * This function returns the result of either of the given functions depending on the value of the boolean parameter. - * It is useful when you have to run one of two functions depending on the boolean value. + * Chooses between two lazy branches based on a boolean value. + * + * **When to use** + * + * Use to choose between two lazy branches based on a boolean value. + * + * **Example** (Pattern matching on booleans) * - * @example * ```ts - * import * as Boolean from "effect/Boolean" + * import { Boolean } from "effect" * import * as assert from "node:assert" * * assert.deepStrictEqual( @@ -68,12 +93,16 @@ export declare const isBoolean: (input: unknown) => input is boolean; */ export declare const match: { /** - * This function returns the result of either of the given functions depending on the value of the boolean parameter. - * It is useful when you have to run one of two functions depending on the boolean value. + * Chooses between two lazy branches based on a boolean value. + * + * **When to use** + * + * Use to choose between two lazy branches based on a boolean value. + * + * **Example** (Pattern matching on booleans) * - * @example * ```ts - * import * as Boolean from "effect/Boolean" + * import { Boolean } from "effect" * import * as assert from "node:assert" * * assert.deepStrictEqual( @@ -93,12 +122,16 @@ export declare const match: { readonly onTrue: LazyArg; }): (value: boolean) => A | B; /** - * This function returns the result of either of the given functions depending on the value of the boolean parameter. - * It is useful when you have to run one of two functions depending on the boolean value. + * Chooses between two lazy branches based on a boolean value. + * + * **When to use** + * + * Use to choose between two lazy branches based on a boolean value. + * + * **Example** (Pattern matching on booleans) * - * @example * ```ts - * import * as Boolean from "effect/Boolean" + * import { Boolean } from "effect" * import * as assert from "node:assert" * * assert.deepStrictEqual( @@ -122,9 +155,15 @@ export declare const match: { * Provides an `Order` instance for `boolean` that allows comparing and sorting boolean values. * In this ordering, `false` is considered less than `true`. * - * @example + * **When to use** + * + * Use when you need to sort or compare boolean values through APIs that accept + * an ordering instance where `false` comes before `true`. + * + * **Example** (Comparing booleans) + * * ```ts - * import * as Boolean from "effect/Boolean" + * import { Boolean } from "effect" * * console.log(Boolean.Order(false, true)) // -1 (false < true) * console.log(Boolean.Order(true, false)) // 1 (true > false) @@ -136,9 +175,15 @@ export declare const match: { */ export declare const Order: order.Order; /** - * An `Equivalence` instance for booleans using strict equality (`===`). + * Equivalence instance for booleans using strict equality (`===`). + * + * **When to use** + * + * Use when checking boolean equality through APIs that accept an equivalence + * relation. + * + * **Example** (Comparing booleans for equivalence) * - * @example * ```ts * import { Boolean } from "effect" * @@ -147,19 +192,24 @@ export declare const Order: order.Order; * ``` * * @category instances - * @since 4.0.0 + * @since 2.0.0 */ export declare const Equivalence: Equ.Equivalence; /** * Negates the given boolean: `!self` * - * @example + * **When to use** + * + * Use to invert a boolean value. + * + * **Example** (Negating booleans) + * * ```ts - * import { not } from "effect/Boolean" + * import { Boolean } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(not(true), false) - * assert.deepStrictEqual(not(false), true) + * assert.deepStrictEqual(Boolean.not(true), false) + * assert.deepStrictEqual(Boolean.not(false), true) * ``` * * @category combinators @@ -167,17 +217,26 @@ export declare const Equivalence: Equ.Equivalence; */ export declare const not: (self: boolean) => boolean; /** - * Combines two boolean using AND: `self && that`. + * Combines two booleans using logical AND: `self && that`. + * + * **When to use** + * + * Use to require both boolean operands to be `true`. + * + * **Details** + * + * Supports both data-first and data-last forms. + * + * **Example** (Combining booleans with AND) * - * @example * ```ts - * import { and } from "effect/Boolean" + * import { Boolean } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(and(true, true), true) - * assert.deepStrictEqual(and(true, false), false) - * assert.deepStrictEqual(and(false, true), false) - * assert.deepStrictEqual(and(false, false), false) + * assert.deepStrictEqual(Boolean.and(true, true), true) + * assert.deepStrictEqual(Boolean.and(true, false), false) + * assert.deepStrictEqual(Boolean.and(false, true), false) + * assert.deepStrictEqual(Boolean.and(false, false), false) * ``` * * @category combinators @@ -185,17 +244,26 @@ export declare const not: (self: boolean) => boolean; */ export declare const and: { /** - * Combines two boolean using AND: `self && that`. + * Combines two booleans using logical AND: `self && that`. + * + * **When to use** + * + * Use to require both boolean operands to be `true`. + * + * **Details** + * + * Supports both data-first and data-last forms. + * + * **Example** (Combining booleans with AND) * - * @example * ```ts - * import { and } from "effect/Boolean" + * import { Boolean } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(and(true, true), true) - * assert.deepStrictEqual(and(true, false), false) - * assert.deepStrictEqual(and(false, true), false) - * assert.deepStrictEqual(and(false, false), false) + * assert.deepStrictEqual(Boolean.and(true, true), true) + * assert.deepStrictEqual(Boolean.and(true, false), false) + * assert.deepStrictEqual(Boolean.and(false, true), false) + * assert.deepStrictEqual(Boolean.and(false, false), false) * ``` * * @category combinators @@ -203,17 +271,26 @@ export declare const and: { */ (that: boolean): (self: boolean) => boolean; /** - * Combines two boolean using AND: `self && that`. + * Combines two booleans using logical AND: `self && that`. + * + * **When to use** + * + * Use to require both boolean operands to be `true`. + * + * **Details** + * + * Supports both data-first and data-last forms. + * + * **Example** (Combining booleans with AND) * - * @example * ```ts - * import { and } from "effect/Boolean" + * import { Boolean } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(and(true, true), true) - * assert.deepStrictEqual(and(true, false), false) - * assert.deepStrictEqual(and(false, true), false) - * assert.deepStrictEqual(and(false, false), false) + * assert.deepStrictEqual(Boolean.and(true, true), true) + * assert.deepStrictEqual(Boolean.and(true, false), false) + * assert.deepStrictEqual(Boolean.and(false, true), false) + * assert.deepStrictEqual(Boolean.and(false, false), false) * ``` * * @category combinators @@ -222,17 +299,22 @@ export declare const and: { (self: boolean, that: boolean): boolean; }; /** - * Combines two boolean using NAND: `!(self && that)`. + * Combines two booleans using NAND: `!(self && that)`. + * + * **When to use** + * + * Use to negate a logical AND result. + * + * **Example** (Combining booleans with NAND) * - * @example * ```ts - * import { nand } from "effect/Boolean" + * import { Boolean } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(nand(true, true), false) - * assert.deepStrictEqual(nand(true, false), true) - * assert.deepStrictEqual(nand(false, true), true) - * assert.deepStrictEqual(nand(false, false), true) + * assert.deepStrictEqual(Boolean.nand(true, true), false) + * assert.deepStrictEqual(Boolean.nand(true, false), true) + * assert.deepStrictEqual(Boolean.nand(false, true), true) + * assert.deepStrictEqual(Boolean.nand(false, false), true) * ``` * * @category combinators @@ -240,17 +322,22 @@ export declare const and: { */ export declare const nand: { /** - * Combines two boolean using NAND: `!(self && that)`. + * Combines two booleans using NAND: `!(self && that)`. + * + * **When to use** + * + * Use to negate a logical AND result. + * + * **Example** (Combining booleans with NAND) * - * @example * ```ts - * import { nand } from "effect/Boolean" + * import { Boolean } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(nand(true, true), false) - * assert.deepStrictEqual(nand(true, false), true) - * assert.deepStrictEqual(nand(false, true), true) - * assert.deepStrictEqual(nand(false, false), true) + * assert.deepStrictEqual(Boolean.nand(true, true), false) + * assert.deepStrictEqual(Boolean.nand(true, false), true) + * assert.deepStrictEqual(Boolean.nand(false, true), true) + * assert.deepStrictEqual(Boolean.nand(false, false), true) * ``` * * @category combinators @@ -258,17 +345,22 @@ export declare const nand: { */ (that: boolean): (self: boolean) => boolean; /** - * Combines two boolean using NAND: `!(self && that)`. + * Combines two booleans using NAND: `!(self && that)`. + * + * **When to use** + * + * Use to negate a logical AND result. + * + * **Example** (Combining booleans with NAND) * - * @example * ```ts - * import { nand } from "effect/Boolean" + * import { Boolean } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(nand(true, true), false) - * assert.deepStrictEqual(nand(true, false), true) - * assert.deepStrictEqual(nand(false, true), true) - * assert.deepStrictEqual(nand(false, false), true) + * assert.deepStrictEqual(Boolean.nand(true, true), false) + * assert.deepStrictEqual(Boolean.nand(true, false), true) + * assert.deepStrictEqual(Boolean.nand(false, true), true) + * assert.deepStrictEqual(Boolean.nand(false, false), true) * ``` * * @category combinators @@ -277,17 +369,22 @@ export declare const nand: { (self: boolean, that: boolean): boolean; }; /** - * Combines two boolean using OR: `self || that`. + * Combines two booleans using OR: `self || that`. + * + * **When to use** + * + * Use to accept when either boolean operand is `true`. + * + * **Example** (Combining booleans with OR) * - * @example * ```ts - * import { or } from "effect/Boolean" + * import { Boolean } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(or(true, true), true) - * assert.deepStrictEqual(or(true, false), true) - * assert.deepStrictEqual(or(false, true), true) - * assert.deepStrictEqual(or(false, false), false) + * assert.deepStrictEqual(Boolean.or(true, true), true) + * assert.deepStrictEqual(Boolean.or(true, false), true) + * assert.deepStrictEqual(Boolean.or(false, true), true) + * assert.deepStrictEqual(Boolean.or(false, false), false) * ``` * * @category combinators @@ -295,17 +392,22 @@ export declare const nand: { */ export declare const or: { /** - * Combines two boolean using OR: `self || that`. + * Combines two booleans using OR: `self || that`. + * + * **When to use** + * + * Use to accept when either boolean operand is `true`. + * + * **Example** (Combining booleans with OR) * - * @example * ```ts - * import { or } from "effect/Boolean" + * import { Boolean } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(or(true, true), true) - * assert.deepStrictEqual(or(true, false), true) - * assert.deepStrictEqual(or(false, true), true) - * assert.deepStrictEqual(or(false, false), false) + * assert.deepStrictEqual(Boolean.or(true, true), true) + * assert.deepStrictEqual(Boolean.or(true, false), true) + * assert.deepStrictEqual(Boolean.or(false, true), true) + * assert.deepStrictEqual(Boolean.or(false, false), false) * ``` * * @category combinators @@ -313,17 +415,22 @@ export declare const or: { */ (that: boolean): (self: boolean) => boolean; /** - * Combines two boolean using OR: `self || that`. + * Combines two booleans using OR: `self || that`. + * + * **When to use** + * + * Use to accept when either boolean operand is `true`. + * + * **Example** (Combining booleans with OR) * - * @example * ```ts - * import { or } from "effect/Boolean" + * import { Boolean } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(or(true, true), true) - * assert.deepStrictEqual(or(true, false), true) - * assert.deepStrictEqual(or(false, true), true) - * assert.deepStrictEqual(or(false, false), false) + * assert.deepStrictEqual(Boolean.or(true, true), true) + * assert.deepStrictEqual(Boolean.or(true, false), true) + * assert.deepStrictEqual(Boolean.or(false, true), true) + * assert.deepStrictEqual(Boolean.or(false, false), false) * ``` * * @category combinators @@ -334,15 +441,20 @@ export declare const or: { /** * Combines two booleans using NOR: `!(self || that)`. * - * @example + * **When to use** + * + * Use to accept only when both boolean operands are `false`. + * + * **Example** (Combining booleans with NOR) + * * ```ts - * import { nor } from "effect/Boolean" + * import { Boolean } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(nor(true, true), false) - * assert.deepStrictEqual(nor(true, false), false) - * assert.deepStrictEqual(nor(false, true), false) - * assert.deepStrictEqual(nor(false, false), true) + * assert.deepStrictEqual(Boolean.nor(true, true), false) + * assert.deepStrictEqual(Boolean.nor(true, false), false) + * assert.deepStrictEqual(Boolean.nor(false, true), false) + * assert.deepStrictEqual(Boolean.nor(false, false), true) * ``` * * @category combinators @@ -352,15 +464,20 @@ export declare const nor: { /** * Combines two booleans using NOR: `!(self || that)`. * - * @example + * **When to use** + * + * Use to accept only when both boolean operands are `false`. + * + * **Example** (Combining booleans with NOR) + * * ```ts - * import { nor } from "effect/Boolean" + * import { Boolean } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(nor(true, true), false) - * assert.deepStrictEqual(nor(true, false), false) - * assert.deepStrictEqual(nor(false, true), false) - * assert.deepStrictEqual(nor(false, false), true) + * assert.deepStrictEqual(Boolean.nor(true, true), false) + * assert.deepStrictEqual(Boolean.nor(true, false), false) + * assert.deepStrictEqual(Boolean.nor(false, true), false) + * assert.deepStrictEqual(Boolean.nor(false, false), true) * ``` * * @category combinators @@ -370,15 +487,20 @@ export declare const nor: { /** * Combines two booleans using NOR: `!(self || that)`. * - * @example + * **When to use** + * + * Use to accept only when both boolean operands are `false`. + * + * **Example** (Combining booleans with NOR) + * * ```ts - * import { nor } from "effect/Boolean" + * import { Boolean } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(nor(true, true), false) - * assert.deepStrictEqual(nor(true, false), false) - * assert.deepStrictEqual(nor(false, true), false) - * assert.deepStrictEqual(nor(false, false), true) + * assert.deepStrictEqual(Boolean.nor(true, true), false) + * assert.deepStrictEqual(Boolean.nor(true, false), false) + * assert.deepStrictEqual(Boolean.nor(false, true), false) + * assert.deepStrictEqual(Boolean.nor(false, false), true) * ``` * * @category combinators @@ -389,15 +511,20 @@ export declare const nor: { /** * Combines two booleans using XOR: `(!self && that) || (self && !that)`. * - * @example + * **When to use** + * + * Use to accept when exactly one boolean operand is `true`. + * + * **Example** (Combining booleans with XOR) + * * ```ts - * import { xor } from "effect/Boolean" + * import { Boolean } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(xor(true, true), false) - * assert.deepStrictEqual(xor(true, false), true) - * assert.deepStrictEqual(xor(false, true), true) - * assert.deepStrictEqual(xor(false, false), false) + * assert.deepStrictEqual(Boolean.xor(true, true), false) + * assert.deepStrictEqual(Boolean.xor(true, false), true) + * assert.deepStrictEqual(Boolean.xor(false, true), true) + * assert.deepStrictEqual(Boolean.xor(false, false), false) * ``` * * @category combinators @@ -407,15 +534,20 @@ export declare const xor: { /** * Combines two booleans using XOR: `(!self && that) || (self && !that)`. * - * @example + * **When to use** + * + * Use to accept when exactly one boolean operand is `true`. + * + * **Example** (Combining booleans with XOR) + * * ```ts - * import { xor } from "effect/Boolean" + * import { Boolean } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(xor(true, true), false) - * assert.deepStrictEqual(xor(true, false), true) - * assert.deepStrictEqual(xor(false, true), true) - * assert.deepStrictEqual(xor(false, false), false) + * assert.deepStrictEqual(Boolean.xor(true, true), false) + * assert.deepStrictEqual(Boolean.xor(true, false), true) + * assert.deepStrictEqual(Boolean.xor(false, true), true) + * assert.deepStrictEqual(Boolean.xor(false, false), false) * ``` * * @category combinators @@ -425,15 +557,20 @@ export declare const xor: { /** * Combines two booleans using XOR: `(!self && that) || (self && !that)`. * - * @example + * **When to use** + * + * Use to accept when exactly one boolean operand is `true`. + * + * **Example** (Combining booleans with XOR) + * * ```ts - * import { xor } from "effect/Boolean" + * import { Boolean } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(xor(true, true), false) - * assert.deepStrictEqual(xor(true, false), true) - * assert.deepStrictEqual(xor(false, true), true) - * assert.deepStrictEqual(xor(false, false), false) + * assert.deepStrictEqual(Boolean.xor(true, true), false) + * assert.deepStrictEqual(Boolean.xor(true, false), true) + * assert.deepStrictEqual(Boolean.xor(false, true), true) + * assert.deepStrictEqual(Boolean.xor(false, false), false) * ``` * * @category combinators @@ -444,15 +581,20 @@ export declare const xor: { /** * Combines two booleans using EQV (aka XNOR): `!xor(self, that)`. * - * @example + * **When to use** + * + * Use to accept when both boolean operands have the same truth value. + * + * **Example** (Checking boolean equivalence) + * * ```ts - * import { eqv } from "effect/Boolean" + * import { Boolean } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(eqv(true, true), true) - * assert.deepStrictEqual(eqv(true, false), false) - * assert.deepStrictEqual(eqv(false, true), false) - * assert.deepStrictEqual(eqv(false, false), true) + * assert.deepStrictEqual(Boolean.eqv(true, true), true) + * assert.deepStrictEqual(Boolean.eqv(true, false), false) + * assert.deepStrictEqual(Boolean.eqv(false, true), false) + * assert.deepStrictEqual(Boolean.eqv(false, false), true) * ``` * * @category combinators @@ -462,15 +604,20 @@ export declare const eqv: { /** * Combines two booleans using EQV (aka XNOR): `!xor(self, that)`. * - * @example + * **When to use** + * + * Use to accept when both boolean operands have the same truth value. + * + * **Example** (Checking boolean equivalence) + * * ```ts - * import { eqv } from "effect/Boolean" + * import { Boolean } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(eqv(true, true), true) - * assert.deepStrictEqual(eqv(true, false), false) - * assert.deepStrictEqual(eqv(false, true), false) - * assert.deepStrictEqual(eqv(false, false), true) + * assert.deepStrictEqual(Boolean.eqv(true, true), true) + * assert.deepStrictEqual(Boolean.eqv(true, false), false) + * assert.deepStrictEqual(Boolean.eqv(false, true), false) + * assert.deepStrictEqual(Boolean.eqv(false, false), true) * ``` * * @category combinators @@ -480,15 +627,20 @@ export declare const eqv: { /** * Combines two booleans using EQV (aka XNOR): `!xor(self, that)`. * - * @example + * **When to use** + * + * Use to accept when both boolean operands have the same truth value. + * + * **Example** (Checking boolean equivalence) + * * ```ts - * import { eqv } from "effect/Boolean" + * import { Boolean } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(eqv(true, true), true) - * assert.deepStrictEqual(eqv(true, false), false) - * assert.deepStrictEqual(eqv(false, true), false) - * assert.deepStrictEqual(eqv(false, false), true) + * assert.deepStrictEqual(Boolean.eqv(true, true), true) + * assert.deepStrictEqual(Boolean.eqv(true, false), false) + * assert.deepStrictEqual(Boolean.eqv(false, true), false) + * assert.deepStrictEqual(Boolean.eqv(false, false), true) * ``` * * @category combinators @@ -499,15 +651,20 @@ export declare const eqv: { /** * Combines two booleans using an implication: `(!self || that)`. * - * @example + * **When to use** + * + * Use to model logical implication between a condition and a consequence. + * + * **Example** (Checking boolean implication) + * * ```ts - * import { implies } from "effect/Boolean" + * import { Boolean } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(implies(true, true), true) - * assert.deepStrictEqual(implies(true, false), false) - * assert.deepStrictEqual(implies(false, true), true) - * assert.deepStrictEqual(implies(false, false), true) + * assert.deepStrictEqual(Boolean.implies(true, true), true) + * assert.deepStrictEqual(Boolean.implies(true, false), false) + * assert.deepStrictEqual(Boolean.implies(false, true), true) + * assert.deepStrictEqual(Boolean.implies(false, false), true) * ``` * * @category combinators @@ -517,15 +674,20 @@ export declare const implies: { /** * Combines two booleans using an implication: `(!self || that)`. * - * @example + * **When to use** + * + * Use to model logical implication between a condition and a consequence. + * + * **Example** (Checking boolean implication) + * * ```ts - * import { implies } from "effect/Boolean" + * import { Boolean } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(implies(true, true), true) - * assert.deepStrictEqual(implies(true, false), false) - * assert.deepStrictEqual(implies(false, true), true) - * assert.deepStrictEqual(implies(false, false), true) + * assert.deepStrictEqual(Boolean.implies(true, true), true) + * assert.deepStrictEqual(Boolean.implies(true, false), false) + * assert.deepStrictEqual(Boolean.implies(false, true), true) + * assert.deepStrictEqual(Boolean.implies(false, false), true) * ``` * * @category combinators @@ -535,15 +697,20 @@ export declare const implies: { /** * Combines two booleans using an implication: `(!self || that)`. * - * @example + * **When to use** + * + * Use to model logical implication between a condition and a consequence. + * + * **Example** (Checking boolean implication) + * * ```ts - * import { implies } from "effect/Boolean" + * import { Boolean } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(implies(true, true), true) - * assert.deepStrictEqual(implies(true, false), false) - * assert.deepStrictEqual(implies(false, true), true) - * assert.deepStrictEqual(implies(false, false), true) + * assert.deepStrictEqual(Boolean.implies(true, true), true) + * assert.deepStrictEqual(Boolean.implies(true, false), false) + * assert.deepStrictEqual(Boolean.implies(false, true), true) + * assert.deepStrictEqual(Boolean.implies(false, false), true) * ``` * * @category combinators @@ -552,50 +719,93 @@ export declare const implies: { (self: boolean, that: boolean): boolean; }; /** - * This utility function is used to check if all the elements in a collection of boolean values are `true`. + * Checks whether every boolean in a collection is `true`. + * + * **When to use** + * + * Use to check that every boolean in an iterable is `true`. + * + * **Example** (Checking every boolean) * - * @example * ```ts - * import { every } from "effect/Boolean" + * import { Boolean } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(every([true, true, true]), true) - * assert.deepStrictEqual(every([true, false, true]), false) + * assert.deepStrictEqual(Boolean.every([true, true, true]), true) + * assert.deepStrictEqual(Boolean.every([true, false, true]), false) * ``` * - * @category utilities + * @see {@link some} for checking whether at least one value is `true` + * @see {@link ReducerAnd} for reducing booleans with AND through a `Reducer` + * + * @category predicates * @since 2.0.0 */ export declare const every: (collection: Iterable) => boolean; /** - * This utility function is used to check if at least one of the elements in a collection of boolean values is `true`. + * Checks whether at least one boolean in a collection is `true`. + * + * **When to use** + * + * Use to check that at least one boolean in an iterable is `true`. + * + * **Example** (Checking some booleans) * - * @example * ```ts - * import { some } from "effect/Boolean" + * import { Boolean } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(some([true, false, true]), true) - * assert.deepStrictEqual(some([false, false, false]), false) + * assert.deepStrictEqual(Boolean.some([true, false, true]), true) + * assert.deepStrictEqual(Boolean.some([false, false, false]), false) * ``` * - * @category utilities + * @see {@link every} for checking whether all values are `true` + * @see {@link ReducerOr} for reducing booleans with OR through a `Reducer` + * + * @category predicates * @since 2.0.0 */ export declare const some: (collection: Iterable) => boolean; /** - * A `Reducer` for combining `boolean`s using AND. + * Reducer for combining `boolean`s using AND. + * + * **When to use** + * + * Use to require every accumulated boolean to be `true` through APIs that + * consume a `Reducer`. * - * The `initialValue` is `true`. + * **Details** * + * The `initialValue` is `true`, so `combineAll([])` returns `true`. + * + * **Gotchas** + * + * `combineAll` uses the default left-to-right `Reducer.make` fold and does not + * short-circuit on `false`. + * + * @see {@link ReducerOr} for reducing with OR semantics + * @see {@link every} for checking an iterable directly + * + * @category math * @since 4.0.0 */ export declare const ReducerAnd: Reducer.Reducer; /** - * A `Reducer` for combining `boolean`s using OR. + * Reducer for combining `boolean`s using OR. + * + * **When to use** + * + * Use to reduce boolean values where the result should be `true` if any + * combined value is `true`. + * + * **Details** * * The `initialValue` is `false`. * + * @see {@link ReducerAnd} for reducing with AND semantics + * @see {@link some} for checking an iterable directly + * + * @category math * @since 4.0.0 */ export declare const ReducerOr: Reducer.Reducer; diff --git a/.opencode/node_modules/effect/dist/Boolean.d.ts.map b/.opencode/node_modules/effect/dist/Boolean.d.ts.map index 1bf59f6e24b8c2918a36d6550361b73f0acc4f5e..b56036c07bc976274d93490469c8c095de3dec77 100644 --- a/.opencode/node_modules/effect/dist/Boolean.d.ts.map +++ b/.opencode/node_modules/effect/dist/Boolean.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Boolean.d.ts","sourceRoot":"","sources":["../src/Boolean.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,GAAG,MAAM,kBAAkB,CAAA;AACvC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAE5C,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA;AAEnC,OAAO,KAAK,OAAO,MAAM,cAAc,CAAA;AAEvC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,OAAO,oBAAqB,CAAA;AAEzC;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,SAAS,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,KAAK,IAAI,OAA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Boolean.js b/.opencode/node_modules/effect/dist/Boolean.js index 8d71c4d8f7cb535785e7861b2dd90283766144f9..49181367b1a623d4e59f25bd7487060c594eb00c 100644 --- a/.opencode/node_modules/effect/dist/Boolean.js +++ b/.opencode/node_modules/effect/dist/Boolean.js @@ -1,6 +1,10 @@ /** - * This module provides utility functions and type class instances for working with the `boolean` type in TypeScript. - * It includes functions for basic boolean operations. + * Works with TypeScript `boolean` values. + * + * This module exposes the native `Boolean` constructor together with helpers + * for checking values, choosing between lazy branches, combining booleans with + * logical operations, checking collections with `every` or `some`, ordering + * booleans, and reducing boolean values. * * @since 2.0.0 */ @@ -10,11 +14,23 @@ import * as order from "./Order.js"; import * as predicate from "./Predicate.js"; import * as Reducer from "./Reducer.js"; /** - * Reference to the global Boolean constructor. + * Exposes the global boolean constructor for JavaScript truthiness + * coercion. + * + * **When to use** + * + * Use to access native JavaScript truthiness coercion from the Effect module + * namespace. + * + * **Gotchas** + * + * This follows native truthiness rules. For example, non-empty strings such as + * `"false"` coerce to `true`. + * + * **Example** (Coercing values to booleans) * - * @example * ```ts - * import * as Boolean from "effect/Boolean" + * import { Boolean } from "effect" * * const bool = Boolean.Boolean(1) * console.log(bool) // true @@ -31,15 +47,20 @@ import * as Reducer from "./Reducer.js"; */ export const Boolean = globalThis.Boolean; /** - * Tests if a value is a `boolean`. + * Checks whether a value is a `boolean`. + * + * **When to use** + * + * Use to validate unknown input and narrow it to `boolean`. + * + * **Example** (Checking for booleans) * - * @example * ```ts - * import { isBoolean } from "effect/Boolean" + * import { Boolean } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(isBoolean(true), true) - * assert.deepStrictEqual(isBoolean("true"), false) + * assert.deepStrictEqual(Boolean.isBoolean(true), true) + * assert.deepStrictEqual(Boolean.isBoolean("true"), false) * ``` * * @category guards @@ -47,12 +68,16 @@ export const Boolean = globalThis.Boolean; */ export const isBoolean = predicate.isBoolean; /** - * This function returns the result of either of the given functions depending on the value of the boolean parameter. - * It is useful when you have to run one of two functions depending on the boolean value. + * Chooses between two lazy branches based on a boolean value. + * + * **When to use** + * + * Use to choose between two lazy branches based on a boolean value. + * + * **Example** (Pattern matching on booleans) * - * @example * ```ts - * import * as Boolean from "effect/Boolean" + * import { Boolean } from "effect" * import * as assert from "node:assert" * * assert.deepStrictEqual( @@ -72,9 +97,15 @@ export const match = /*#__PURE__*/dual(2, (value, options) => value ? options.on * Provides an `Order` instance for `boolean` that allows comparing and sorting boolean values. * In this ordering, `false` is considered less than `true`. * - * @example + * **When to use** + * + * Use when you need to sort or compare boolean values through APIs that accept + * an ordering instance where `false` comes before `true`. + * + * **Example** (Comparing booleans) + * * ```ts - * import * as Boolean from "effect/Boolean" + * import { Boolean } from "effect" * * console.log(Boolean.Order(false, true)) // -1 (false < true) * console.log(Boolean.Order(true, false)) // 1 (true > false) @@ -86,9 +117,15 @@ export const match = /*#__PURE__*/dual(2, (value, options) => value ? options.on */ export const Order = order.Boolean; /** - * An `Equivalence` instance for booleans using strict equality (`===`). + * Equivalence instance for booleans using strict equality (`===`). + * + * **When to use** + * + * Use when checking boolean equality through APIs that accept an equivalence + * relation. + * + * **Example** (Comparing booleans for equivalence) * - * @example * ```ts * import { Boolean } from "effect" * @@ -97,19 +134,24 @@ export const Order = order.Boolean; * ``` * * @category instances - * @since 4.0.0 + * @since 2.0.0 */ export const Equivalence = Equ.Boolean; /** * Negates the given boolean: `!self` * - * @example + * **When to use** + * + * Use to invert a boolean value. + * + * **Example** (Negating booleans) + * * ```ts - * import { not } from "effect/Boolean" + * import { Boolean } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(not(true), false) - * assert.deepStrictEqual(not(false), true) + * assert.deepStrictEqual(Boolean.not(true), false) + * assert.deepStrictEqual(Boolean.not(false), true) * ``` * * @category combinators @@ -117,17 +159,26 @@ export const Equivalence = Equ.Boolean; */ export const not = self => !self; /** - * Combines two boolean using AND: `self && that`. + * Combines two booleans using logical AND: `self && that`. + * + * **When to use** + * + * Use to require both boolean operands to be `true`. + * + * **Details** + * + * Supports both data-first and data-last forms. + * + * **Example** (Combining booleans with AND) * - * @example * ```ts - * import { and } from "effect/Boolean" + * import { Boolean } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(and(true, true), true) - * assert.deepStrictEqual(and(true, false), false) - * assert.deepStrictEqual(and(false, true), false) - * assert.deepStrictEqual(and(false, false), false) + * assert.deepStrictEqual(Boolean.and(true, true), true) + * assert.deepStrictEqual(Boolean.and(true, false), false) + * assert.deepStrictEqual(Boolean.and(false, true), false) + * assert.deepStrictEqual(Boolean.and(false, false), false) * ``` * * @category combinators @@ -135,17 +186,22 @@ export const not = self => !self; */ export const and = /*#__PURE__*/dual(2, (self, that) => self && that); /** - * Combines two boolean using NAND: `!(self && that)`. + * Combines two booleans using NAND: `!(self && that)`. + * + * **When to use** + * + * Use to negate a logical AND result. + * + * **Example** (Combining booleans with NAND) * - * @example * ```ts - * import { nand } from "effect/Boolean" + * import { Boolean } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(nand(true, true), false) - * assert.deepStrictEqual(nand(true, false), true) - * assert.deepStrictEqual(nand(false, true), true) - * assert.deepStrictEqual(nand(false, false), true) + * assert.deepStrictEqual(Boolean.nand(true, true), false) + * assert.deepStrictEqual(Boolean.nand(true, false), true) + * assert.deepStrictEqual(Boolean.nand(false, true), true) + * assert.deepStrictEqual(Boolean.nand(false, false), true) * ``` * * @category combinators @@ -153,17 +209,22 @@ export const and = /*#__PURE__*/dual(2, (self, that) => self && that); */ export const nand = /*#__PURE__*/dual(2, (self, that) => !(self && that)); /** - * Combines two boolean using OR: `self || that`. + * Combines two booleans using OR: `self || that`. + * + * **When to use** + * + * Use to accept when either boolean operand is `true`. + * + * **Example** (Combining booleans with OR) * - * @example * ```ts - * import { or } from "effect/Boolean" + * import { Boolean } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(or(true, true), true) - * assert.deepStrictEqual(or(true, false), true) - * assert.deepStrictEqual(or(false, true), true) - * assert.deepStrictEqual(or(false, false), false) + * assert.deepStrictEqual(Boolean.or(true, true), true) + * assert.deepStrictEqual(Boolean.or(true, false), true) + * assert.deepStrictEqual(Boolean.or(false, true), true) + * assert.deepStrictEqual(Boolean.or(false, false), false) * ``` * * @category combinators @@ -173,15 +234,20 @@ export const or = /*#__PURE__*/dual(2, (self, that) => self || that); /** * Combines two booleans using NOR: `!(self || that)`. * - * @example + * **When to use** + * + * Use to accept only when both boolean operands are `false`. + * + * **Example** (Combining booleans with NOR) + * * ```ts - * import { nor } from "effect/Boolean" + * import { Boolean } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(nor(true, true), false) - * assert.deepStrictEqual(nor(true, false), false) - * assert.deepStrictEqual(nor(false, true), false) - * assert.deepStrictEqual(nor(false, false), true) + * assert.deepStrictEqual(Boolean.nor(true, true), false) + * assert.deepStrictEqual(Boolean.nor(true, false), false) + * assert.deepStrictEqual(Boolean.nor(false, true), false) + * assert.deepStrictEqual(Boolean.nor(false, false), true) * ``` * * @category combinators @@ -191,15 +257,20 @@ export const nor = /*#__PURE__*/dual(2, (self, that) => !(self || that)); /** * Combines two booleans using XOR: `(!self && that) || (self && !that)`. * - * @example + * **When to use** + * + * Use to accept when exactly one boolean operand is `true`. + * + * **Example** (Combining booleans with XOR) + * * ```ts - * import { xor } from "effect/Boolean" + * import { Boolean } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(xor(true, true), false) - * assert.deepStrictEqual(xor(true, false), true) - * assert.deepStrictEqual(xor(false, true), true) - * assert.deepStrictEqual(xor(false, false), false) + * assert.deepStrictEqual(Boolean.xor(true, true), false) + * assert.deepStrictEqual(Boolean.xor(true, false), true) + * assert.deepStrictEqual(Boolean.xor(false, true), true) + * assert.deepStrictEqual(Boolean.xor(false, false), false) * ``` * * @category combinators @@ -209,15 +280,20 @@ export const xor = /*#__PURE__*/dual(2, (self, that) => !self && that || self && /** * Combines two booleans using EQV (aka XNOR): `!xor(self, that)`. * - * @example + * **When to use** + * + * Use to accept when both boolean operands have the same truth value. + * + * **Example** (Checking boolean equivalence) + * * ```ts - * import { eqv } from "effect/Boolean" + * import { Boolean } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(eqv(true, true), true) - * assert.deepStrictEqual(eqv(true, false), false) - * assert.deepStrictEqual(eqv(false, true), false) - * assert.deepStrictEqual(eqv(false, false), true) + * assert.deepStrictEqual(Boolean.eqv(true, true), true) + * assert.deepStrictEqual(Boolean.eqv(true, false), false) + * assert.deepStrictEqual(Boolean.eqv(false, true), false) + * assert.deepStrictEqual(Boolean.eqv(false, false), true) * ``` * * @category combinators @@ -227,15 +303,20 @@ export const eqv = /*#__PURE__*/dual(2, (self, that) => !xor(self, that)); /** * Combines two booleans using an implication: `(!self || that)`. * - * @example + * **When to use** + * + * Use to model logical implication between a condition and a consequence. + * + * **Example** (Checking boolean implication) + * * ```ts - * import { implies } from "effect/Boolean" + * import { Boolean } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(implies(true, true), true) - * assert.deepStrictEqual(implies(true, false), false) - * assert.deepStrictEqual(implies(false, true), true) - * assert.deepStrictEqual(implies(false, false), true) + * assert.deepStrictEqual(Boolean.implies(true, true), true) + * assert.deepStrictEqual(Boolean.implies(true, false), false) + * assert.deepStrictEqual(Boolean.implies(false, true), true) + * assert.deepStrictEqual(Boolean.implies(false, false), true) * ``` * * @category combinators @@ -243,18 +324,26 @@ export const eqv = /*#__PURE__*/dual(2, (self, that) => !xor(self, that)); */ export const implies = /*#__PURE__*/dual(2, (self, that) => self ? that : true); /** - * This utility function is used to check if all the elements in a collection of boolean values are `true`. + * Checks whether every boolean in a collection is `true`. + * + * **When to use** + * + * Use to check that every boolean in an iterable is `true`. + * + * **Example** (Checking every boolean) * - * @example * ```ts - * import { every } from "effect/Boolean" + * import { Boolean } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(every([true, true, true]), true) - * assert.deepStrictEqual(every([true, false, true]), false) + * assert.deepStrictEqual(Boolean.every([true, true, true]), true) + * assert.deepStrictEqual(Boolean.every([true, false, true]), false) * ``` * - * @category utilities + * @see {@link some} for checking whether at least one value is `true` + * @see {@link ReducerAnd} for reducing booleans with AND through a `Reducer` + * + * @category predicates * @since 2.0.0 */ export const every = collection => { @@ -266,18 +355,26 @@ export const every = collection => { return true; }; /** - * This utility function is used to check if at least one of the elements in a collection of boolean values is `true`. + * Checks whether at least one boolean in a collection is `true`. + * + * **When to use** + * + * Use to check that at least one boolean in an iterable is `true`. + * + * **Example** (Checking some booleans) * - * @example * ```ts - * import { some } from "effect/Boolean" + * import { Boolean } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(some([true, false, true]), true) - * assert.deepStrictEqual(some([false, false, false]), false) + * assert.deepStrictEqual(Boolean.some([true, false, true]), true) + * assert.deepStrictEqual(Boolean.some([false, false, false]), false) * ``` * - * @category utilities + * @see {@link every} for checking whether all values are `true` + * @see {@link ReducerOr} for reducing booleans with OR through a `Reducer` + * + * @category predicates * @since 2.0.0 */ export const some = collection => { @@ -289,18 +386,45 @@ export const some = collection => { return false; }; /** - * A `Reducer` for combining `boolean`s using AND. + * Reducer for combining `boolean`s using AND. + * + * **When to use** * - * The `initialValue` is `true`. + * Use to require every accumulated boolean to be `true` through APIs that + * consume a `Reducer`. * + * **Details** + * + * The `initialValue` is `true`, so `combineAll([])` returns `true`. + * + * **Gotchas** + * + * `combineAll` uses the default left-to-right `Reducer.make` fold and does not + * short-circuit on `false`. + * + * @see {@link ReducerOr} for reducing with OR semantics + * @see {@link every} for checking an iterable directly + * + * @category math * @since 4.0.0 */ export const ReducerAnd = /*#__PURE__*/Reducer.make((a, b) => a && b, true); /** - * A `Reducer` for combining `boolean`s using OR. + * Reducer for combining `boolean`s using OR. + * + * **When to use** + * + * Use to reduce boolean values where the result should be `true` if any + * combined value is `true`. + * + * **Details** * * The `initialValue` is `false`. * + * @see {@link ReducerAnd} for reducing with AND semantics + * @see {@link some} for checking an iterable directly + * + * @category math * @since 4.0.0 */ export const ReducerOr = /*#__PURE__*/Reducer.make((a, b) => a || b, false); diff --git a/.opencode/node_modules/effect/dist/Boolean.js.map b/.opencode/node_modules/effect/dist/Boolean.js.map index f1c7c2d038f37c2217906c5b9644b81390379446..035765e5dca714a944573ba98f0ca519248f3f69 100644 --- a/.opencode/node_modules/effect/dist/Boolean.js.map +++ b/.opencode/node_modules/effect/dist/Boolean.js.map @@ -1 +1 @@ -{"version":3,"file":"Boolean.js","names":["Equ","dual","order","predicate","Reducer","Boolean","globalThis","isBoolean","match","value","options","onTrue","onFalse","Order","Equivalence","not","self","and","that","nand","or","nor","xor","eqv","implies","every","collection","b","some","ReducerAnd","make","a","ReducerOr"],"sources":["../src/Boolean.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;AAMA,OAAO,KAAKA,GAAG,MAAM,kBAAkB;AAEvC,SAASC,IAAI,QAAQ,eAAe;AACpC,OAAO,KAAKC,KAAK,MAAM,YAAY;AACnC,OAAO,KAAKC,SAAS,MAAM,gBAAgB;AAC3C,OAAO,KAAKC,OAAO,MAAM,cAAc;AAEvC;;;;;;;;;;;;;;;;;;;;AAoBA,OAAO,MAAMC,OAAO,GAAGC,UAAU,CAACD,OAAO;AAEzC;;;;;;;;;;;;;;;AAeA,OAAO,MAAME,SAAS,GAAyCJ,SAAS,CAACI,SAAS;AAElF;;;;;;;;;;;;;;;;;;;;;AAqBA,OAAO,MAAMC,KAAK,gBAwDdP,IAAI,CAAC,CAAC,EAAE,CAAOQ,KAAc,EAAEC,OAGlC,KAAYD,KAAK,GAAGC,OAAO,CAACC,MAAM,EAAE,GAAGD,OAAO,CAACE,OAAO,EAAE,CAAC;AAE1D;;;;;;;;;;;;;;;;AAgBA,OAAO,MAAMC,KAAK,GAAyBX,KAAK,CAACG,OAAO;AAExD;;;;;;;;;;;;;;AAcA,OAAO,MAAMS,WAAW,GAA6Bd,GAAG,CAACK,OAAO;AAEhE;;;;;;;;;;;;;;;AAeA,OAAO,MAAMU,GAAG,GAA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C,IAAID,UAAU,EAAE;IAC1B,IAAI,CAACC,CAAC,EAAE;MACN,OAAO,KAAK;IACd;EACF;EACA,OAAO,IAAI;AACb,CAAC;AAED;;;;;;;;;;;;;;;AAeA,OAAO,MAAMC,IAAI,GAAIF,UAA6B,IAAa;EAC7D,KAAK,MAAMC,CAAC,IAAID,UAAU,EAAE;IAC1B,IAAIC,CAAC,EAAE;MACL,OAAO,IAAI;IACb;EACF;EACA,OAAO,KAAK;AACd,CAAC;AAED;;;;;;;AAOA,OAAO,MAAME,UAAU,gBAA6BzB,OAAO,CAAC0B,IAAI,CAAC,CAACC,CAAC,EAAEJ,CAAC,KAAKI,CAAC,IAAIJ,CAAC,EAAE,IAAI,CAAC;AAExF;;;;;;;AAOA,OAAO,MAAMK,SAAS,gBAA6B5B,OAAO,CAAC0B,IAAI,CAAC,CAACC,CAAC,EAAEJ,CAAC,KAAKI,CAAC,IAAIJ,CAAC,EAAE,KAAK,CAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"Boolean.js","names":["Equ","dual","order","predicate","Reducer","Boolean","globalThis","isBoolean","match","value","options","onTrue","onFalse","Order","Equivalence","not","self","and","that","nand","or","nor","xor","eqv","implies","every","collection","b","some","ReducerAnd","make","a","ReducerOr"],"sources":["../src/Boolean.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;AAUA,OAAO,KAAKA,GAAG,MAAM,kBAAkB;AAEvC,SAASC,IAAI,QAAQ,eAAe;AACpC,OAAO,KAAKC,KAAK,MAAM,YAAY;AACnC,OAAO,KAAKC,SAAS,MAAM,gBAAgB;AAC3C,OAAO,KAAKC,OAAO,MAAM,cAAc;AAEvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCA,OAAO,MAAMC,OAAO,GAAGC,UAAU,CAACD,OAAO;AAEzC;;;;;;;;;;;;;;;;;;;;AAoBA,OAAO,MAAME,SAAS,GAAyCJ,SAAS,CAACI,SAAS;AAElF;;;;;;;;;;;;;;;;;;;;;;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,CAACE,IAAK,CAAC;AAE1F;;;;;;;;;;;;;;;;;;;;;;AAsBA,OAAO,MAAMK,GAAG,gBA+CZtB,IAAI,CAAC,CAAC,EAAE,CAACe,IAAa,EAAEE,IAAa,KAAc,CAACI,GAAG,CAACN,IAAI,EAAEE,IAAI,CAAC,CAAC;AAExE;;;;;;;;;;;;;;;;;;;;;;AAsBA,OAAO,MAAMM,OAAO,gBA+ChBvB,IAAI,CAAC,CAAC,EAAE,CAACe,IAAI,EAAEE,IAAI,KAAKF,IAAI,GAAGE,IAAI,GAAG,IAAI,CAAC;AAE/C;;;;;;;;;;;;;;;;;;;;;;;AAuBA,OAAO,MAAMO,KAAK,GAAIC,UAA6B,IAAa;EAC9D,KAAK,MAAMC,CAAC,IAAID,UAAU,EAAE;IAC1B,IAAI,CAACC,CAAC,EAAE;MACN,OAAO,KAAK;IACd;EACF;EACA,OAAO,IAAI;AACb,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;AAuBA,OAAO,MAAMC,IAAI,GAAIF,UAA6B,IAAa;EAC7D,KAAK,MAAMC,CAAC,IAAID,UAAU,EAAE;IAC1B,IAAIC,CAAC,EAAE;MACL,OAAO,IAAI;IACb;EACF;EACA,OAAO,KAAK;AACd,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;AAuBA,OAAO,MAAME,UAAU,gBAA6BzB,OAAO,CAAC0B,IAAI,CAAC,CAACC,CAAC,EAAEJ,CAAC,KAAKI,CAAC,IAAIJ,CAAC,EAAE,IAAI,CAAC;AAExF;;;;;;;;;;;;;;;;;;AAkBA,OAAO,MAAMK,SAAS,gBAA6B5B,OAAO,CAAC0B,IAAI,CAAC,CAACC,CAAC,EAAEJ,CAAC,KAAKI,CAAC,IAAIJ,CAAC,EAAE,KAAK,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Brand.d.ts b/.opencode/node_modules/effect/dist/Brand.d.ts index 0268f139df0d4ac55bf45a6f7a3bfe85871cde6f..177d0893fb263704a3d074ed94dcc0a0a65df5f3 100644 --- a/.opencode/node_modules/effect/dist/Brand.d.ts +++ b/.opencode/node_modules/effect/dist/Brand.d.ts @@ -1,15 +1,24 @@ import * as Option from "./Option.ts"; import * as Result from "./Result.ts"; import type * as Schema from "./Schema.ts"; -import * as AST from "./SchemaAST.ts"; -import type * as Issue from "./SchemaIssue.ts"; +import * as SchemaAST from "./SchemaAST.ts"; +import type * as SchemaIssue from "./SchemaIssue.ts"; import type * as Types from "./Types.ts"; declare const TypeId = "~effect/Brand"; /** * A generic interface that defines a branded type. * - * @since 2.0.0 + * **When to use** + * + * Use to define a branded type such as `number & Brand<"Positive">` when + * TypeScript should keep structurally identical values separate without + * changing their runtime value. + * + * @see {@link Branded} for applying a brand key to a base type + * @see {@link Constructor} for validating or constructing branded values + * * @category models + * @since 2.0.0 */ export interface Brand { readonly [TypeId]: { @@ -20,6 +29,17 @@ export interface Brand { * A constructor for a branded type that provides validation and safe * construction methods. * + * **When to use** + * + * Use as the shared callable interface for branded values when an API accepts + * or returns a brand constructor and callers need throwing, `Option`, `Result`, + * or type-guard validation forms. + * + * @see {@link nominal} for a constructor without runtime validation + * @see {@link make} for creating a constructor from a validation predicate + * @see {@link check} for creating a constructor from schema checks + * @see {@link all} for combining brand constructors + * * @category models * @since 2.0.0 */ @@ -47,60 +67,86 @@ export interface Constructor> { is(unbranded: Brand.Unbranded): unbranded is Brand.Unbranded & B; } /** - * A `BrandError` is returned when a branded type is constructed from an invalid - * value. + * Error returned when a branded type is constructed from an invalid value. * - * @category models + * **Details** + * + * The error wraps a `SchemaIssue.Issue`, exposes `message` through + * `issue.toString()`, and formats as `BrandError()`. + * + * **Gotchas** + * + * `BrandError` is an error-like model with `_tag`, `name`, `message`, and + * `toString`; it does not extend JavaScript `Error`. + * + * @category errors * @since 4.0.0 */ export declare class BrandError { - constructor(issue: Issue.Issue); + constructor(issue: SchemaIssue.Issue); /** + * Discriminant used to identify brand construction failures. + * * @since 4.0.0 */ readonly _tag = "BrandError"; /** + * Error name used by tools that inspect JavaScript error-like objects. + * * @since 4.0.0 */ readonly name: string; /** + * Schema issue describing why brand validation failed. + * * @since 4.0.0 */ - readonly issue: Issue.Issue; + readonly issue: SchemaIssue.Issue; /** + * Human-readable rendering of the validation issue. + * * @since 4.0.0 */ get message(): string; /** + * Formats the brand error together with its validation message. + * * @since 4.0.0 */ toString(): string; } /** + * Namespace containing type-level helpers for working with branded types and + * brand constructors. + * * @since 2.0.0 */ export declare namespace Brand { /** * A utility type to extract a branded type from a `Constructor`. * + * @category utility types * @since 2.0.0 */ type FromConstructor = C extends Constructor ? B : never; /** * A utility type to extract the unbranded value type from a brand. * + * @category utility types * @since 2.0.0 */ type Unbranded> = B extends infer U & Brands ? U : B; /** * A utility type to extract the keys of a branded type. * - * @since 2.0.0 + * @category utility types + * @since 4.0.0 */ type Keys> = keyof B[typeof TypeId]; /** * A utility type to extract the brands from a branded type. * + * @category utility types * @since 2.0.0 */ type Brands> = Types.UnionToIntersection<{ @@ -109,6 +155,7 @@ export declare namespace Brand { /** * A utility type that checks that all brands have the same base type. * + * @category utility types * @since 2.0.0 */ type EnsureCommonBase, ...Array>]> = { @@ -118,46 +165,76 @@ export declare namespace Brand { /** * A type alias for creating branded types more concisely. * - * @category alias + * @category utility types * @since 2.0.0 */ export type Branded = A & Brand; /** - * This function returns a `Constructor` that **does not apply any runtime - * checks**, it just returns the provided value. It can be used to create - * nominal types that allow distinguishing between two values of the same type - * but with different meanings. + * Returns a `Constructor` that **does not apply any runtime checks** and just + * returns the provided value. + * + * **When to use** * - * If you also want to perform some validation, see {@link make} or - * {@link check} or {@link refine}. + * Use to create nominal types that allow distinguishing between two values + * of the same type but with different meanings. + * + * @see {@link make} for constructing branded values with validation. + * @see {@link check} for constructing branded values from schema checks. * * @category constructors * @since 2.0.0 */ export declare function nominal>(): Constructor; /** - * Returns a `Constructor` that can construct a branded type from an - * unbranded value using the provided `filter` predicate as validation of - * the input data. + * Returns a `Constructor` that can construct a branded type from an unbranded + * value using the provided `filter` predicate as validation of the input data. + * + * **When to use** * - * If you don't want to perform any validation but only distinguish between two - * values of the same type but with different meanings, see {@link nominal}. + * Use when you want validation while constructing the branded type. + * + * @see {@link nominal} for a brand constructor that performs no validation. * * @category constructors - * @since 2.0.0 + * @since 4.0.0 */ export declare function make>(filter: (unbranded: Brand.Unbranded) => Schema.FilterOutput): Constructor; /** + * Creates a branded type `Constructor` from one or more schema checks. + * + * **When to use** + * + * Use when you need a branded type constructor that performs runtime validation + * via schema checks. + * + * **Details** + * + * Calling the returned constructor validates the unbranded value and throws on + * failure. Use the returned `option`, `result`, or `is` methods for + * non-throwing validation. + * + * @see {@link nominal} for a brand constructor without runtime validation + * @see {@link all} for combining multiple brand constructors + * @category constructors * @since 4.0.0 */ export declare function check>(...checks: readonly [ - AST.Check>, - ...Array>> + SchemaAST.Check>, + ...Array>> ]): Constructor; /** - * Combines two or more brands together to form a single branded type. This API - * is useful when you want to validate that the input data passes multiple brand - * validators. + * Combines one or more brand constructors to form a single branded type. + * + * **When to use** + * + * Use to require an input to satisfy every runtime check collected by the + * provided brand constructors. + * + * **Details** + * + * If the provided constructors contain runtime checks, the combined + * constructor succeeds only when all checks pass. If no runtime checks are + * present, it behaves as a nominal constructor. * * @category combining * @since 2.0.0 diff --git a/.opencode/node_modules/effect/dist/Brand.d.ts.map b/.opencode/node_modules/effect/dist/Brand.d.ts.map index b49e9e37a5ad1830fdea951b7b5d5996f14c75e7..cada5fd5cfc1dfc4798b95746cdadad8b9301b58 100644 --- a/.opencode/node_modules/effect/dist/Brand.d.ts.map +++ b/.opencode/node_modules/effect/dist/Brand.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Brand.d.ts","sourceRoot":"","sources":["../src/Brand.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,KAAK,MAAM,MAAM,aAAa,CAAA;AA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;;;;;;;;;;GAkBG;AACH,wBAAgB,KAAK,CAAC,CAAC,SAAS,KAAK,CAAC,GAAG,CAAC,EACxC,GAAG,MAAM,EAAE,SAAS;IAClB,SAAS,CAAC,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;IACnC,GAAG,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;CAC9C,GACA,WAAW,CAAC,CAAC,CAAC,CAUhB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,GAAG,CAAC,MAAM,SAAS,SAAS,CAAC,WAAW,CAAC,GAAG,CAAC,EAAE,GAAG,KAAK,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,EACxF,GAAG,MAAM,EAAE,KAAK,CAAC,gBAAgB,CAAC,MAAM,CAAC,GACxC,WAAW,CACZ,KAAK,CAAC,mBAAmB,CAAC;KAAG,CAAC,IAAI,MAAM,MAAM,GAAG,KAAK,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;CAAE,CAAC,MAAM,CAAC,CAAC,SAC1F,MAAM,CAAC,SAAS,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC,CAC9C,CAKA"} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Brand.js b/.opencode/node_modules/effect/dist/Brand.js index e1880501fc5be6a65533313a732794da696aca24..4a33e63e7afba2784a2a4d1428f95e48563593e6 100644 --- a/.opencode/node_modules/effect/dist/Brand.js +++ b/.opencode/node_modules/effect/dist/Brand.js @@ -1,20 +1,31 @@ /** - * This module provides types and utility functions to create and work with - * branded types, which are TypeScript types with an added type tag to prevent - * accidental usage of a value in the wrong context. + * The `Brand` module adds compile-time names to ordinary TypeScript values so + * structurally identical values cannot be mixed accidentally. A branded value + * has the same runtime representation as its unbranded value; the extra + * information lives in the type system unless you choose a validating + * constructor. * * @since 2.0.0 */ import * as Arr from "./Array.js"; import * as Option from "./Option.js"; import * as Result from "./Result.js"; -import * as AST from "./SchemaAST.js"; +import * as SchemaAST from "./SchemaAST.js"; const TypeId = "~effect/Brand"; /** - * A `BrandError` is returned when a branded type is constructed from an invalid - * value. + * Error returned when a branded type is constructed from an invalid value. * - * @category models + * **Details** + * + * The error wraps a `SchemaIssue.Issue`, exposes `message` through + * `issue.toString()`, and formats as `BrandError()`. + * + * **Gotchas** + * + * `BrandError` is an error-like model with `_tag`, `name`, `message`, and + * `toString`; it does not extend JavaScript `Error`. + * + * @category errors * @since 4.0.0 */ export class BrandError { @@ -22,24 +33,34 @@ export class BrandError { this.issue = issue; } /** + * Discriminant used to identify brand construction failures. + * * @since 4.0.0 */ _tag = "BrandError"; /** + * Error name used by tools that inspect JavaScript error-like objects. + * * @since 4.0.0 */ name = "BrandError"; /** + * Schema issue describing why brand validation failed. + * * @since 4.0.0 */ issue; /** + * Human-readable rendering of the validation issue. + * * @since 4.0.0 */ get message() { return this.issue.toString(); } /** + * Formats the brand error together with its validation message. + * * @since 4.0.0 */ toString() { @@ -47,13 +68,16 @@ export class BrandError { } } /** - * This function returns a `Constructor` that **does not apply any runtime - * checks**, it just returns the provided value. It can be used to create - * nominal types that allow distinguishing between two values of the same type - * but with different meanings. + * Returns a `Constructor` that **does not apply any runtime checks** and just + * returns the provided value. + * + * **When to use** * - * If you also want to perform some validation, see {@link make} or - * {@link check} or {@link refine}. + * Use to create nominal types that allow distinguishing between two values + * of the same type but with different meanings. + * + * @see {@link make} for constructing branded values with validation. + * @see {@link check} for constructing branded values from schema checks. * * @category constructors * @since 2.0.0 @@ -66,25 +90,43 @@ export function nominal() { }); } /** - * Returns a `Constructor` that can construct a branded type from an - * unbranded value using the provided `filter` predicate as validation of - * the input data. + * Returns a `Constructor` that can construct a branded type from an unbranded + * value using the provided `filter` predicate as validation of the input data. + * + * **When to use** + * + * Use when you want validation while constructing the branded type. * - * If you don't want to perform any validation but only distinguish between two - * values of the same type but with different meanings, see {@link nominal}. + * @see {@link nominal} for a brand constructor that performs no validation. * * @category constructors - * @since 2.0.0 + * @since 4.0.0 */ export function make(filter) { - return check(AST.makeFilter(filter)); + return check(SchemaAST.makeFilter(filter)); } /** + * Creates a branded type `Constructor` from one or more schema checks. + * + * **When to use** + * + * Use when you need a branded type constructor that performs runtime validation + * via schema checks. + * + * **Details** + * + * Calling the returned constructor validates the unbranded value and throws on + * failure. Use the returned `option`, `result`, or `is` methods for + * non-throwing validation. + * + * @see {@link nominal} for a brand constructor without runtime validation + * @see {@link all} for combining multiple brand constructors + * @category constructors * @since 4.0.0 */ export function check(...checks) { const result = input => { - return Result.mapError(AST.runChecks(checks, input), issue => new BrandError(issue)); + return Result.mapError(SchemaAST.runChecks(checks, input), issue => new BrandError(issue)); }; return Object.assign(input => Result.getOrThrow(result(input)), { option: input => Option.getSuccess(result(input)), @@ -94,9 +136,18 @@ export function check(...checks) { }); } /** - * Combines two or more brands together to form a single branded type. This API - * is useful when you want to validate that the input data passes multiple brand - * validators. + * Combines one or more brand constructors to form a single branded type. + * + * **When to use** + * + * Use to require an input to satisfy every runtime check collected by the + * provided brand constructors. + * + * **Details** + * + * If the provided constructors contain runtime checks, the combined + * constructor succeeds only when all checks pass. If no runtime checks are + * present, it behaves as a nominal constructor. * * @category combining * @since 2.0.0 diff --git a/.opencode/node_modules/effect/dist/Brand.js.map b/.opencode/node_modules/effect/dist/Brand.js.map index c2e5b221a7ea63cb6f2cbf79dd93e41c5d6ff8d4..47962bbd0ee6b5a03c6fc76678c682f6dd0c7641 100644 --- a/.opencode/node_modules/effect/dist/Brand.js.map +++ b/.opencode/node_modules/effect/dist/Brand.js.map @@ -1 +1 @@ -{"version":3,"file":"Brand.js","names":["Arr","Option","Result","AST","TypeId","BrandError","constructor","issue","_tag","name","message","toString","nominal","Object","assign","input","option","some","result","succeed","is","_","make","filter","check","makeFilter","checks","mapError","runChecks","getOrThrow","getSuccess","isSuccess","all","brands","flatMap","brand","isArrayNon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X,KAAK,CAAC,EAAGR,KAAK,IAAK,IAAIF,UAAU,CAACE,KAAK,CAAC,CAAQ;EAC/F,CAAC;EACD,OAAOM,MAAM,CAACC,MAAM,CAAEC,KAAyB,IAAKb,MAAM,CAAC2B,UAAU,CAACX,MAAM,CAACH,KAAK,CAAC,CAAC,EAAE;IACpFC,MAAM,EAAGD,KAAyB,IAAKd,MAAM,CAAC6B,UAAU,CAACZ,MAAM,CAACH,KAAK,CAAC,CAAC;IACvEG,MAAM;IACNE,EAAE,EAAGL,KAAyB,IAAsCb,MAAM,CAAC6B,SAAS,CAACb,MAAM,CAACH,KAAK,CAAC,CAAC;IACnGW;GACD,CAAC;AACJ;AAEA;;;;;;;;AAQA,OAAM,SAAUM,GAAGA,CACjB,GAAGC,MAAsC;EAKzC,MAAMP,MAAM,GAAGO,MAAM,CAACC,OAAO,CAAEC,KAAK,IAAKA,KAAK,CAACT,MAAM,IAAI,EAAE,CAAC;EAC5D,OAAO1B,GAAG,CAACoC,eAAe,CAACV,MAAM,CAAC,GAChCF,KAAK,CAAC,GAAGE,MAAM,CAAC,GAChBd,OAAO,EAAE;AACb","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"Brand.js","names":["Arr","Option","Result","SchemaAST","TypeId","BrandError","constructor","issue","_tag","name","message","toString","nominal","Object","assign","input","option","some","result","succeed","is","_","make","filter","check","makeFilter","checks","mapError","runChecks","getOrThrow","getSuccess","isSuccess","all","brands","flatMap","brand","isArrayNonEmpty"],"sources":["../src/Brand.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;AASA,OAAO,KAAKA,GAAG,MAAM,YAAY;AACjC,OAAO,KAAKC,MAAM,MAAM,aAAa;AACrC,OAAO,KAAKC,MAAM,MAAM,aAAa;AAErC,OAAO,KAAKC,SAAS,MAAM,gBAAgB;AAI3C,MAAMC,MAAM,GAAG,eAAe;AAwE9B;;;;;;;;;;;;;;;;AAgBA,OAAM,MAAOC,UAAU;EACrBC,YAAYC,KAAwB;IAClC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KAAK,CAAC,CAAC;IACvEG,MAAM;IACNE,EAAE,EAAGL,KAAyB,IAAsCb,MAAM,CAAC6B,SAAS,CAACb,MAAM,CAACH,KAAK,CAAC,CAAC;IACnGW;GACD,CAAC;AACJ;AAEA;;;;;;;;;;;;;;;;;AAiBA,OAAM,SAAUM,GAAGA,CACjB,GAAGC,MAAsC;EAKzC,MAAMP,MAAM,GAAGO,MAAM,CAACC,OAAO,CAAEC,KAAK,IAAKA,KAAK,CAACT,MAAM,IAAI,EAAE,CAAC;EAC5D,OAAO1B,GAAG,CAACoC,eAAe,CAACV,MAAM,CAAC,GAChCF,KAAK,CAAC,GAAGE,MAAM,CAAC,GAChBd,OAAO,EAAE;AACb","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Cache.d.ts b/.opencode/node_modules/effect/dist/Cache.d.ts index 6698500fc7a593c7f1b0d88188098aabfc99caf0..c0bd287813180bee6364e6a21ced52a549eda800 100644 --- a/.opencode/node_modules/effect/dist/Cache.d.ts +++ b/.opencode/node_modules/effect/dist/Cache.d.ts @@ -11,7 +11,8 @@ declare const TypeId = "~effect/Cache"; * A cache interface that provides a mutable key-value store with automatic TTL management, * capacity limits, and lookup functions for cache misses. * - * @example + * **Example** (Creating a basic cache) + * * ```ts * import { Cache, Effect } from "effect" * @@ -31,7 +32,8 @@ declare const TypeId = "~effect/Cache"; * }) * ``` * - * @example + * **Example** (Handling lookup failures) + * * ```ts * import { Cache, Effect } from "effect" * @@ -53,7 +55,8 @@ declare const TypeId = "~effect/Cache"; * }) * ``` * - * @example + * **Example** (Using complex keys with TTL) + * * ```ts * import { Cache, Data, Duration, Effect } from "effect" * @@ -74,8 +77,8 @@ declare const TypeId = "~effect/Cache"; * }) * ``` * - * @since 4.0.0 - * @category Models + * @category models + * @since 2.0.0 */ export interface Cache extends Pipeable { readonly [TypeId]: typeof TypeId; @@ -85,11 +88,23 @@ export interface Cache ex readonly timeToLive: (exit: Exit.Exit, key: Key) => Duration.Duration; } /** - * Represents a cache entry containing a deferred value and optional expiration time. - * This is used internally by the cache implementation to track cached values and their lifetimes. + * Represents a low-level cache entry containing a deferred lookup result and + * an optional expiration timestamp. + * + * **When to use** + * + * Use when inspecting a `Cache`'s low-level map and you need the stored + * deferred lookup result or expiration timestamp for a key. + * + * **Details** * + * An `expiresAt` value of `undefined` means the entry does not expire. + * + * @see {@link Cache} for the public cache API that manages entries through + * combinators + * + * @category models * @since 4.0.0 - * @category Models */ export interface Entry { expiresAt: number | undefined; @@ -98,10 +113,18 @@ export interface Entry { /** * Creates a cache with dynamic time-to-live based on the result and key. * + * **When to use** + * + * Use when you need different cache entry lifetimes based on the lookup result + * or key characteristics. + * + * **Details** + * * The timeToLive function receives both the exit result and the key, allowing * for flexible TTL policies based on success/failure state and key characteristics. * - * @example + * **Example** (Using dynamic time to live) + * * ```ts * import { Cache, Effect, Exit } from "effect" * @@ -125,8 +148,9 @@ export interface Entry { * }) * ``` * - * @since 4.0.0 - * @category Constructors + * @see {@link make} for a simpler cache constructor with a fixed time-to-live for all entries + * @category constructors + * @since 2.0.0 */ export declare const makeWith: (lookup: (key: Key) => Effect.Effect, options: { readonly capacity: number; @@ -136,10 +160,13 @@ export declare const makeWith: ({ * capacity: 500, * lookup: (userId) => - * Effect.tryPromise({ - * try: () => fetch(`/api/users/${userId}`).then((r) => r.json()), - * catch: () => "Failed to fetch user" + * Effect.suspend(() => { + * const user = users.get(userId) + * return user === undefined + * ? Effect.fail(`User ${userId} not found`) + * : Effect.succeed(user) * }), * timeToLive: "15 minutes" * }) * - * // First call fetches from API, second call returns cached result * const user1 = yield* Cache.get(cache, 123) - * const user2 = yield* Cache.get(cache, 123) // From cache - * return { user1, user2 } + * console.log(user1) // { name: "Ada", email: "ada@example.com" } + * + * const user2 = yield* Cache.get(cache, 123) + * console.log(user2) // { name: "Ada", email: "ada@example.com" } * }) * ``` * - * @since 4.0.0 - * @category Constructors + * @category constructors + * @since 2.0.0 */ export declare const make: (options: { readonly lookup: (key: Key) => Effect.Effect; @@ -193,12 +228,17 @@ export declare const make: Effect.Effect, never, "lookup" extends ServiceMode ? never : R>; /** - * Retrieves the value associated with the specified key from the cache. + * Retrieves the value for a key, invoking the lookup function on a cache miss + * or expired entry. * - * If the key is not present or has expired, it will invoke the lookup function - * to construct the value, store it in the cache, and return it. + * **Details** + * + * Concurrent `get` calls for the same missing key share the same pending + * lookup. The cache stores the lookup `Exit`, so failed lookups are cached and + * will fail again until the entry expires, is invalidated, or is refreshed. + * + * **Example** (Getting cached values) * - * @example * ```ts * import { Cache, Effect } from "effect" * @@ -220,7 +260,8 @@ export declare const make: (key: Key): (self: Cache) => Effect.Effect; /** - * Retrieves the value associated with the specified key from the cache. + * Retrieves the value for a key, invoking the lookup function on a cache miss + * or expired entry. + * + * **Details** * - * If the key is not present or has expired, it will invoke the lookup function - * to construct the value, store it in the cache, and return it. + * Concurrent `get` calls for the same missing key share the same pending + * lookup. The cache stores the lookup `Exit`, so failed lookups are cached and + * will fail again until the entry expires, is invalidated, or is refreshed. + * + * **Example** (Getting cached values) * - * @example * ```ts * import { Cache, Effect } from "effect" * @@ -388,7 +442,8 @@ export declare const get: { * }) * ``` * - * @example + * **Example** (Handling lookup failures) + * * ```ts * import { Cache, Effect } from "effect" * @@ -412,7 +467,8 @@ export declare const get: { * }) * ``` * - * @example + * **Example** (Sharing concurrent lookups) + * * ```ts * import { Cache, Effect } from "effect" * @@ -440,20 +496,23 @@ export declare const get: { * }) * ``` * + * @category combinators * @since 4.0.0 - * @category Combinators */ (self: Cache, key: Key): Effect.Effect; }; /** - * Retrieves the value associated with the specified key from the cache, - * returning an `Option` that is `Some` if the key exists and has not expired, - * or `None` if the key does not exist or has expired. + * Reads an existing cache entry without invoking the lookup function. + * + * **Details** + * + * Returns `Option.none()` when the key is missing or expired, and `Option.some` + * when a cached lookup has succeeded. If the entry is still pending, waits for + * it to complete. If the cached or pending lookup fails, this effect fails with + * the same error. * - * Unlike `get`, this function will not invoke the lookup function if the key - * is missing or expired. + * **Example** (Reading cached values without lookup) * - * @example * ```ts * import { Cache, Effect } from "effect" * @@ -478,7 +537,8 @@ export declare const get: { * }) * ``` * - * @example + * **Example** (Skipping expired entries) + * * ```ts * import { Cache, Effect } from "effect" * import { TestClock } from "effect/testing" @@ -507,7 +567,8 @@ export declare const get: { * }) * ``` * - * @example + * **Example** (Waiting for pending lookups) + * * ```ts * import { Cache, Deferred, Effect, Fiber } from "effect" * @@ -530,22 +591,28 @@ export declare const get: { * * const result = yield* Fiber.join(optionFiber) * console.log(result) // Option.some(42) + * + * const value = yield* Fiber.join(getFiber) + * console.log(value) // 42 * }) * ``` * + * @category combinators * @since 4.0.0 - * @category Combinators */ export declare const getOption: { /** - * Retrieves the value associated with the specified key from the cache, - * returning an `Option` that is `Some` if the key exists and has not expired, - * or `None` if the key does not exist or has expired. + * Reads an existing cache entry without invoking the lookup function. + * + * **Details** * - * Unlike `get`, this function will not invoke the lookup function if the key - * is missing or expired. + * Returns `Option.none()` when the key is missing or expired, and `Option.some` + * when a cached lookup has succeeded. If the entry is still pending, waits for + * it to complete. If the cached or pending lookup fails, this effect fails with + * the same error. + * + * **Example** (Reading cached values without lookup) * - * @example * ```ts * import { Cache, Effect } from "effect" * @@ -570,7 +637,8 @@ export declare const getOption: { * }) * ``` * - * @example + * **Example** (Skipping expired entries) + * * ```ts * import { Cache, Effect } from "effect" * import { TestClock } from "effect/testing" @@ -599,7 +667,8 @@ export declare const getOption: { * }) * ``` * - * @example + * **Example** (Waiting for pending lookups) + * * ```ts * import { Cache, Deferred, Effect, Fiber } from "effect" * @@ -622,22 +691,28 @@ export declare const getOption: { * * const result = yield* Fiber.join(optionFiber) * console.log(result) // Option.some(42) + * + * const value = yield* Fiber.join(getFiber) + * console.log(value) // 42 * }) * ``` * + * @category combinators * @since 4.0.0 - * @category Combinators */ (key: Key): (self: Cache) => Effect.Effect, E>; /** - * Retrieves the value associated with the specified key from the cache, - * returning an `Option` that is `Some` if the key exists and has not expired, - * or `None` if the key does not exist or has expired. + * Reads an existing cache entry without invoking the lookup function. + * + * **Details** * - * Unlike `get`, this function will not invoke the lookup function if the key - * is missing or expired. + * Returns `Option.none()` when the key is missing or expired, and `Option.some` + * when a cached lookup has succeeded. If the entry is still pending, waits for + * it to complete. If the cached or pending lookup fails, this effect fails with + * the same error. + * + * **Example** (Reading cached values without lookup) * - * @example * ```ts * import { Cache, Effect } from "effect" * @@ -662,7 +737,8 @@ export declare const getOption: { * }) * ``` * - * @example + * **Example** (Skipping expired entries) + * * ```ts * import { Cache, Effect } from "effect" * import { TestClock } from "effect/testing" @@ -691,7 +767,8 @@ export declare const getOption: { * }) * ``` * - * @example + * **Example** (Waiting for pending lookups) + * * ```ts * import { Cache, Deferred, Effect, Fiber } from "effect" * @@ -714,11 +791,14 @@ export declare const getOption: { * * const result = yield* Fiber.join(optionFiber) * console.log(result) // Option.some(42) + * + * const value = yield* Fiber.join(getFiber) + * console.log(value) // 42 * }) * ``` * + * @category combinators * @since 4.0.0 - * @category Combinators */ (self: Cache, key: Key): Effect.Effect, E>; }; @@ -726,24 +806,51 @@ export declare const getOption: { * Retrieves the value associated with the specified key from the cache, only if * it contains a resolved successful value. * + * **Details** + * + * This checks only an existing non-expired entry. It returns `Option.some` when + * the entry has already resolved successfully, and `Option.none` for missing, + * expired, failed, or still-pending entries. + * + * @see {@link get} for triggering or awaiting the cache lookup + * @see {@link getOption} for reading an existing entry as an optional effect + * + * @category combinators * @since 4.0.0 - * @category Combinators */ export declare const getSuccess: { /** * Retrieves the value associated with the specified key from the cache, only if * it contains a resolved successful value. * + * **Details** + * + * This checks only an existing non-expired entry. It returns `Option.some` when + * the entry has already resolved successfully, and `Option.none` for missing, + * expired, failed, or still-pending entries. + * + * @see {@link get} for triggering or awaiting the cache lookup + * @see {@link getOption} for reading an existing entry as an optional effect + * + * @category combinators * @since 4.0.0 - * @category Combinators */ (key: Key): (self: Cache) => Effect.Effect>; /** * Retrieves the value associated with the specified key from the cache, only if * it contains a resolved successful value. * + * **Details** + * + * This checks only an existing non-expired entry. It returns `Option.some` when + * the entry has already resolved successfully, and `Option.none` for missing, + * expired, failed, or still-pending entries. + * + * @see {@link get} for triggering or awaiting the cache lookup + * @see {@link getOption} for reading an existing entry as an optional effect + * + * @category combinators * @since 4.0.0 - * @category Combinators */ (self: Cache, key: Key): Effect.Effect>; }; @@ -751,7 +858,8 @@ export declare const getSuccess: { * Sets the value associated with the specified key in the cache. This will * overwrite any existing value for that key, skipping the lookup function. * - * @example + * **Example** (Setting values directly) + * * ```ts * import { Cache, Effect } from "effect" * @@ -768,7 +876,8 @@ export declare const getSuccess: { * }) * ``` * - * @example + * **Example** (Overwriting cached values) + * * ```ts * import { Cache, Effect } from "effect" * @@ -790,7 +899,8 @@ export declare const getSuccess: { * }) * ``` * - * @example + * **Example** (Applying TTL to set values) + * * ```ts * import { Cache, Effect } from "effect" * import { TestClock } from "effect/testing" @@ -813,7 +923,8 @@ export declare const getSuccess: { * }) * ``` * - * @example + * **Example** (Enforcing capacity when setting values) + * * ```ts * import { Cache, Effect } from "effect" * @@ -837,15 +948,16 @@ export declare const getSuccess: { * }) * ``` * + * @category combinators * @since 4.0.0 - * @category Combinators */ export declare const set: { /** * Sets the value associated with the specified key in the cache. This will * overwrite any existing value for that key, skipping the lookup function. * - * @example + * **Example** (Setting values directly) + * * ```ts * import { Cache, Effect } from "effect" * @@ -862,7 +974,8 @@ export declare const set: { * }) * ``` * - * @example + * **Example** (Overwriting cached values) + * * ```ts * import { Cache, Effect } from "effect" * @@ -884,7 +997,8 @@ export declare const set: { * }) * ``` * - * @example + * **Example** (Applying TTL to set values) + * * ```ts * import { Cache, Effect } from "effect" * import { TestClock } from "effect/testing" @@ -907,7 +1021,8 @@ export declare const set: { * }) * ``` * - * @example + * **Example** (Enforcing capacity when setting values) + * * ```ts * import { Cache, Effect } from "effect" * @@ -931,15 +1046,16 @@ export declare const set: { * }) * ``` * + * @category combinators * @since 4.0.0 - * @category Combinators */ (key: Key, value: A): (self: Cache) => Effect.Effect; /** * Sets the value associated with the specified key in the cache. This will * overwrite any existing value for that key, skipping the lookup function. * - * @example + * **Example** (Setting values directly) + * * ```ts * import { Cache, Effect } from "effect" * @@ -956,7 +1072,8 @@ export declare const set: { * }) * ``` * - * @example + * **Example** (Overwriting cached values) + * * ```ts * import { Cache, Effect } from "effect" * @@ -978,7 +1095,8 @@ export declare const set: { * }) * ``` * - * @example + * **Example** (Applying TTL to set values) + * * ```ts * import { Cache, Effect } from "effect" * import { TestClock } from "effect/testing" @@ -1001,7 +1119,8 @@ export declare const set: { * }) * ``` * - * @example + * **Example** (Enforcing capacity when setting values) + * * ```ts * import { Cache, Effect } from "effect" * @@ -1025,15 +1144,21 @@ export declare const set: { * }) * ``` * + * @category combinators * @since 4.0.0 - * @category Combinators */ (self: Cache, key: Key, value: A): Effect.Effect; }; /** - * Checks if the cache contains an entry for the specified key. + * Checks whether the cache contains an entry for the specified key. + * + * **Details** + * + * This checks for an existing non-expired entry without invoking the cache + * lookup function. Expired entries are treated as absent. + * + * **Example** (Checking for cached keys) * - * @example * ```ts * import { Cache, Effect } from "effect" * @@ -1052,7 +1177,8 @@ export declare const set: { * }) * ``` * - * @example + * **Example** (Checking TTL expiration) + * * ```ts * import { Cache, Effect } from "effect" * import { TestClock } from "effect/testing" @@ -1079,7 +1205,8 @@ export declare const set: { * }) * ``` * - * @example + * **Example** (Checking multiple keys) + * * ```ts * import { Cache, Effect } from "effect" * @@ -1108,14 +1235,20 @@ export declare const set: { * }) * ``` * + * @category combinators * @since 4.0.0 - * @category Combinators */ export declare const has: { /** - * Checks if the cache contains an entry for the specified key. + * Checks whether the cache contains an entry for the specified key. + * + * **Details** + * + * This checks for an existing non-expired entry without invoking the cache + * lookup function. Expired entries are treated as absent. + * + * **Example** (Checking for cached keys) * - * @example * ```ts * import { Cache, Effect } from "effect" * @@ -1134,7 +1267,8 @@ export declare const has: { * }) * ``` * - * @example + * **Example** (Checking TTL expiration) + * * ```ts * import { Cache, Effect } from "effect" * import { TestClock } from "effect/testing" @@ -1161,7 +1295,8 @@ export declare const has: { * }) * ``` * - * @example + * **Example** (Checking multiple keys) + * * ```ts * import { Cache, Effect } from "effect" * @@ -1190,14 +1325,20 @@ export declare const has: { * }) * ``` * + * @category combinators * @since 4.0.0 - * @category Combinators */ (key: Key): (self: Cache) => Effect.Effect; /** - * Checks if the cache contains an entry for the specified key. + * Checks whether the cache contains an entry for the specified key. + * + * **Details** + * + * This checks for an existing non-expired entry without invoking the cache + * lookup function. Expired entries are treated as absent. + * + * **Example** (Checking for cached keys) * - * @example * ```ts * import { Cache, Effect } from "effect" * @@ -1216,7 +1357,8 @@ export declare const has: { * }) * ``` * - * @example + * **Example** (Checking TTL expiration) + * * ```ts * import { Cache, Effect } from "effect" * import { TestClock } from "effect/testing" @@ -1243,7 +1385,8 @@ export declare const has: { * }) * ``` * - * @example + * **Example** (Checking multiple keys) + * * ```ts * import { Cache, Effect } from "effect" * @@ -1272,15 +1415,16 @@ export declare const has: { * }) * ``` * + * @category combinators * @since 4.0.0 - * @category Combinators */ (self: Cache, key: Key): Effect.Effect; }; /** * Invalidates the entry associated with the specified key in the cache. * - * @example + * **Example** (Invalidating cached entries) + * * ```ts * import { Cache, Effect } from "effect" * @@ -1318,14 +1462,15 @@ export declare const has: { * }) * ``` * + * @category combinators * @since 4.0.0 - * @category Combinators */ export declare const invalidate: { /** * Invalidates the entry associated with the specified key in the cache. * - * @example + * **Example** (Invalidating cached entries) + * * ```ts * import { Cache, Effect } from "effect" * @@ -1363,14 +1508,15 @@ export declare const invalidate: { * }) * ``` * + * @category combinators * @since 4.0.0 - * @category Combinators */ (key: Key): (self: Cache) => Effect.Effect; /** * Invalidates the entry associated with the specified key in the cache. * - * @example + * **Example** (Invalidating cached entries) + * * ```ts * import { Cache, Effect } from "effect" * @@ -1408,16 +1554,17 @@ export declare const invalidate: { * }) * ``` * + * @category combinators * @since 4.0.0 - * @category Combinators */ (self: Cache, key: Key): Effect.Effect; }; /** - * Conditionally invalidates the entry associated with the specified key in the cache - * if the predicate returns true for the cached value. + * Invalidates the entry associated with the specified key in the cache when the + * predicate returns true for the cached value. + * + * **Example** (Invalidating entries conditionally) * - * @example * ```ts * import { Cache, Effect } from "effect" * @@ -1474,15 +1621,16 @@ export declare const invalidate: { * }) * ``` * + * @category combinators * @since 4.0.0 - * @category Combinators */ export declare const invalidateWhen: { /** - * Conditionally invalidates the entry associated with the specified key in the cache - * if the predicate returns true for the cached value. + * Invalidates the entry associated with the specified key in the cache when the + * predicate returns true for the cached value. + * + * **Example** (Invalidating entries conditionally) * - * @example * ```ts * import { Cache, Effect } from "effect" * @@ -1539,15 +1687,16 @@ export declare const invalidateWhen: { * }) * ``` * + * @category combinators * @since 4.0.0 - * @category Combinators */ (key: Key, f: Predicate): (self: Cache) => Effect.Effect; /** - * Conditionally invalidates the entry associated with the specified key in the cache - * if the predicate returns true for the cached value. + * Invalidates the entry associated with the specified key in the cache when the + * predicate returns true for the cached value. + * + * **Example** (Invalidating entries conditionally) * - * @example * ```ts * import { Cache, Effect } from "effect" * @@ -1604,18 +1753,21 @@ export declare const invalidateWhen: { * }) * ``` * + * @category combinators * @since 4.0.0 - * @category Combinators */ (self: Cache, key: Key, f: Predicate): Effect.Effect; }; /** * Forces a refresh of the value associated with the specified key in the cache. * + * **Details** + * * It will always invoke the lookup function to construct a new value, * overwriting any existing value for that key. * - * @example + * **Example** (Refreshing cached values) + * * ```ts * import { Cache, Effect } from "effect" * @@ -1645,7 +1797,8 @@ export declare const invalidateWhen: { * }) * ``` * - * @example + * **Example** (Resetting TTL on refresh) + * * ```ts * import { Cache, Effect } from "effect" * import { TestClock } from "effect/testing" @@ -1673,7 +1826,8 @@ export declare const invalidateWhen: { * }) * ``` * - * @example + * **Example** (Refreshing missing keys) + * * ```ts * import { Cache, Effect } from "effect" * @@ -1693,17 +1847,20 @@ export declare const invalidateWhen: { * }) * ``` * + * @category combinators * @since 4.0.0 - * @category Combinators */ export declare const refresh: { /** * Forces a refresh of the value associated with the specified key in the cache. * + * **Details** + * * It will always invoke the lookup function to construct a new value, * overwriting any existing value for that key. * - * @example + * **Example** (Refreshing cached values) + * * ```ts * import { Cache, Effect } from "effect" * @@ -1733,7 +1890,8 @@ export declare const refresh: { * }) * ``` * - * @example + * **Example** (Resetting TTL on refresh) + * * ```ts * import { Cache, Effect } from "effect" * import { TestClock } from "effect/testing" @@ -1761,7 +1919,8 @@ export declare const refresh: { * }) * ``` * - * @example + * **Example** (Refreshing missing keys) + * * ```ts * import { Cache, Effect } from "effect" * @@ -1781,17 +1940,20 @@ export declare const refresh: { * }) * ``` * + * @category combinators * @since 4.0.0 - * @category Combinators */ (key: Key): (self: Cache) => Effect.Effect; /** * Forces a refresh of the value associated with the specified key in the cache. * + * **Details** + * * It will always invoke the lookup function to construct a new value, * overwriting any existing value for that key. * - * @example + * **Example** (Refreshing cached values) + * * ```ts * import { Cache, Effect } from "effect" * @@ -1821,7 +1983,8 @@ export declare const refresh: { * }) * ``` * - * @example + * **Example** (Resetting TTL on refresh) + * * ```ts * import { Cache, Effect } from "effect" * import { TestClock } from "effect/testing" @@ -1849,7 +2012,8 @@ export declare const refresh: { * }) * ``` * - * @example + * **Example** (Refreshing missing keys) + * * ```ts * import { Cache, Effect } from "effect" * @@ -1869,15 +2033,16 @@ export declare const refresh: { * }) * ``` * + * @category combinators * @since 4.0.0 - * @category Combinators */ (self: Cache, key: Key): Effect.Effect; }; /** * Invalidates all entries in the cache. * - * @example + * **Example** (Invalidating all entries) + * * ```ts * import { Cache, Effect } from "effect" * @@ -1907,18 +2072,21 @@ export declare const refresh: { * }) * ``` * + * @category combinators * @since 4.0.0 - * @category Combinators */ export declare const invalidateAll: (self: Cache) => Effect.Effect; /** * Retrieves the approximate number of entries in the cache. * + * **Details** + * * Note that expired entries are counted until they are accessed and removed. * The size reflects the current number of entries stored, not the number * of valid entries. * - * @example + * **Example** (Reading cache size) + * * ```ts * import { Cache, Effect } from "effect" * @@ -1945,14 +2113,15 @@ export declare const invalidateAll: (self: Cache) => * }) * ``` * + * @category combinators * @since 4.0.0 - * @category Combinators */ export declare const size: (self: Cache) => Effect.Effect; /** * Retrieves all active keys from the cache, automatically filtering out expired entries. * - * @example + * **Example** (Reading active keys) + * * ```ts * import { Cache, Effect } from "effect" * @@ -1971,19 +2140,20 @@ export declare const size: (self: Cache) => Effect.E * // Retrieve all active keys * const keys = yield* Cache.keys(cache) * - * console.log(Array.from(keys)) // ["hello", "world", "cache"] + * console.log(Array.from(keys).sort()) // ["cache", "hello", "world"] * }) * ``` * + * @category combinators * @since 4.0.0 - * @category Combinators */ export declare const keys: (self: Cache) => Effect.Effect>; /** * Retrieves all successfully cached values from the cache, excluding failed * lookups and expired entries. * - * @example + * **Example** (Reading all cached values) + * * ```ts * import { Cache, Effect } from "effect" * @@ -2006,8 +2176,8 @@ export declare const keys: (self: Cache) => Effect.E * }) * ``` * + * @category combinators * @since 4.0.0 - * @category Combinators */ export declare const values: (self: Cache) => Effect.Effect>; /** @@ -2015,8 +2185,15 @@ export declare const values: (self: Cache) => Effect * only returns entries with successfully resolved values, filtering out any * failed lookups or expired entries. * + * **Gotchas** + * + * Expired entries are removed from the cache while `entries` filters them out. + * + * @see {@link keys} for retrieving only cached keys + * @see {@link values} for retrieving only cached values + * + * @category combinators * @since 4.0.0 - * @category Combinators */ export declare const entries: (self: Cache) => Effect.Effect>; export {}; diff --git a/.opencode/node_modules/effect/dist/Cache.d.ts.map b/.opencode/node_modules/effect/dist/Cache.d.ts.map index 5505a7a44c93d11ac4429873c6e385c2b05ac425..16743771b0f98ddfd5e75f92c5b98e2b2d8ac87c 100644 --- a/.opencode/node_modules/effect/dist/Cache.d.ts.map +++ b/.opencode/node_modules/effect/dist/Cache.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Cache.d.ts","sourceRoot":"","sources":["../src/Cache.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAA;AACzC,OAAO,KAAK,QAAQ,MAAM,eAAe,CAA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CAAC,CAAC,CAC3B,CAAA;AAE/D;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,OAAO,GAAI,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,KAAG,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,CAa9F,CAAA"} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Cache.js b/.opencode/node_modules/effect/dist/Cache.js index 01d808ba719c8f3a2a2d58be4e67b3d69223a1cc..f02d8e375ae1617e7c5ff7049e043516069e1f1d 100644 --- a/.opencode/node_modules/effect/dist/Cache.js +++ b/.opencode/node_modules/effect/dist/Cache.js @@ -1,4 +1,11 @@ /** + * Caches values loaded by an Effect lookup function. + * + * A cache stores successful and failed lookup results, shares an in-progress + * lookup when multiple callers request the same missing key, and limits entries + * by capacity and optional time-to-live rules. This module includes helpers for + * reading, setting, refreshing, invalidating, and inspecting cache contents. + * * @since 4.0.0 */ import * as Context from "./Context.js"; @@ -16,10 +23,18 @@ const TypeId = "~effect/Cache"; /** * Creates a cache with dynamic time-to-live based on the result and key. * + * **When to use** + * + * Use when you need different cache entry lifetimes based on the lookup result + * or key characteristics. + * + * **Details** + * * The timeToLive function receives both the exit result and the key, allowing * for flexible TTL policies based on success/failure state and key characteristics. * - * @example + * **Example** (Using dynamic time to live) + * * ```ts * import { Cache, Effect, Exit } from "effect" * @@ -43,8 +58,9 @@ const TypeId = "~effect/Cache"; * }) * ``` * - * @since 4.0.0 - * @category Constructors + * @see {@link make} for a simpler cache constructor with a fixed time-to-live for all entries + * @category constructors + * @since 2.0.0 */ export const makeWith = (lookup, options) => effect.contextWith(context => { const self = Object.create(Proto); @@ -57,10 +73,13 @@ export const makeWith = (lookup, options) => effect.contextWith(context => { /** * Creates a cache with a fixed time-to-live for all entries. * + * **Details** + * * This is the basic cache constructor where all entries share the same TTL. * The lookup function will be called when a key is not found or has expired. * - * @example + * **Example** (Creating a basic cache) + * * ```ts * import { Cache, Effect } from "effect" * @@ -77,12 +96,17 @@ export const makeWith = (lookup, options) => effect.contextWith(context => { * }) * ``` * - * @example + * **Example** (Creating a cache with TTL) + * * ```ts * import { Cache, Effect } from "effect" * - * // Cache with TTL and async lookup - * const fetchUserCache = Effect.gen(function*() { + * const program = Effect.gen(function*() { + * const users = new Map([ + * [123, { name: "Ada", email: "ada@example.com" }], + * [456, { name: "Grace", email: "grace@example.com" }] + * ]) + * * const cache = yield* Cache.make< * number, * { name: string; email: string }, @@ -90,22 +114,25 @@ export const makeWith = (lookup, options) => effect.contextWith(context => { * >({ * capacity: 500, * lookup: (userId) => - * Effect.tryPromise({ - * try: () => fetch(`/api/users/${userId}`).then((r) => r.json()), - * catch: () => "Failed to fetch user" + * Effect.suspend(() => { + * const user = users.get(userId) + * return user === undefined + * ? Effect.fail(`User ${userId} not found`) + * : Effect.succeed(user) * }), * timeToLive: "15 minutes" * }) * - * // First call fetches from API, second call returns cached result * const user1 = yield* Cache.get(cache, 123) - * const user2 = yield* Cache.get(cache, 123) // From cache - * return { user1, user2 } + * console.log(user1) // { name: "Ada", email: "ada@example.com" } + * + * const user2 = yield* Cache.get(cache, 123) + * console.log(user2) // { name: "Ada", email: "ada@example.com" } * }) * ``` * - * @since 4.0.0 - * @category Constructors + * @category constructors + * @since 2.0.0 */ export const make = options => makeWith(options.lookup, { ...options, @@ -124,12 +151,17 @@ const Proto = { }; const defaultTimeToLive = (_, _key) => Duration.infinity; /** - * Retrieves the value associated with the specified key from the cache. + * Retrieves the value for a key, invoking the lookup function on a cache miss + * or expired entry. + * + * **Details** + * + * Concurrent `get` calls for the same missing key share the same pending + * lookup. The cache stores the lookup `Exit`, so failed lookups are cached and + * will fail again until the entry expires, is invalidated, or is refreshed. * - * If the key is not present or has expired, it will invoke the lookup function - * to construct the value, store it in the cache, and return it. + * **Example** (Getting cached values) * - * @example * ```ts * import { Cache, Effect } from "effect" * @@ -151,7 +183,8 @@ const defaultTimeToLive = (_, _key) => Duration.infinity; * }) * ``` * - * @example + * **Example** (Handling lookup failures) + * * ```ts * import { Cache, Effect } from "effect" * @@ -175,7 +208,8 @@ const defaultTimeToLive = (_, _key) => Duration.infinity; * }) * ``` * - * @example + * **Example** (Sharing concurrent lookups) + * * ```ts * import { Cache, Effect } from "effect" * @@ -203,8 +237,8 @@ const defaultTimeToLive = (_, _key) => Duration.infinity; * }) * ``` * + * @category combinators * @since 4.0.0 - * @category Combinators */ export const get = /*#__PURE__*/dual(2, (self, key) => core.withFiber(fiber => { const oentry = MutableHashMap.get(self.map, key); @@ -251,14 +285,17 @@ const checkCapacity = self => { } }; /** - * Retrieves the value associated with the specified key from the cache, - * returning an `Option` that is `Some` if the key exists and has not expired, - * or `None` if the key does not exist or has expired. + * Reads an existing cache entry without invoking the lookup function. + * + * **Details** * - * Unlike `get`, this function will not invoke the lookup function if the key - * is missing or expired. + * Returns `Option.none()` when the key is missing or expired, and `Option.some` + * when a cached lookup has succeeded. If the entry is still pending, waits for + * it to complete. If the cached or pending lookup fails, this effect fails with + * the same error. + * + * **Example** (Reading cached values without lookup) * - * @example * ```ts * import { Cache, Effect } from "effect" * @@ -283,7 +320,8 @@ const checkCapacity = self => { * }) * ``` * - * @example + * **Example** (Skipping expired entries) + * * ```ts * import { Cache, Effect } from "effect" * import { TestClock } from "effect/testing" @@ -312,7 +350,8 @@ const checkCapacity = self => { * }) * ``` * - * @example + * **Example** (Waiting for pending lookups) + * * ```ts * import { Cache, Deferred, Effect, Fiber } from "effect" * @@ -335,11 +374,14 @@ const checkCapacity = self => { * * const result = yield* Fiber.join(optionFiber) * console.log(result) // Option.some(42) + * + * const value = yield* Fiber.join(getFiber) + * console.log(value) // 42 * }) * ``` * + * @category combinators * @since 4.0.0 - * @category Combinators */ export const getOption = /*#__PURE__*/dual(2, (self, key) => core.withFiber(fiber => { const entry = getImpl(self, key, fiber); @@ -362,8 +404,17 @@ const getImpl = (self, key, fiber, isRead = true) => { * Retrieves the value associated with the specified key from the cache, only if * it contains a resolved successful value. * + * **Details** + * + * This checks only an existing non-expired entry. It returns `Option.some` when + * the entry has already resolved successfully, and `Option.none` for missing, + * expired, failed, or still-pending entries. + * + * @see {@link get} for triggering or awaiting the cache lookup + * @see {@link getOption} for reading an existing entry as an optional effect + * + * @category combinators * @since 4.0.0 - * @category Combinators */ export const getSuccess = /*#__PURE__*/dual(2, (self, key) => core.withFiber(fiber => { const exit = getImpl(self, key, fiber)?.deferred.effect; @@ -376,7 +427,8 @@ export const getSuccess = /*#__PURE__*/dual(2, (self, key) => core.withFiber(fib * Sets the value associated with the specified key in the cache. This will * overwrite any existing value for that key, skipping the lookup function. * - * @example + * **Example** (Setting values directly) + * * ```ts * import { Cache, Effect } from "effect" * @@ -393,7 +445,8 @@ export const getSuccess = /*#__PURE__*/dual(2, (self, key) => core.withFiber(fib * }) * ``` * - * @example + * **Example** (Overwriting cached values) + * * ```ts * import { Cache, Effect } from "effect" * @@ -415,7 +468,8 @@ export const getSuccess = /*#__PURE__*/dual(2, (self, key) => core.withFiber(fib * }) * ``` * - * @example + * **Example** (Applying TTL to set values) + * * ```ts * import { Cache, Effect } from "effect" * import { TestClock } from "effect/testing" @@ -438,7 +492,8 @@ export const getSuccess = /*#__PURE__*/dual(2, (self, key) => core.withFiber(fib * }) * ``` * - * @example + * **Example** (Enforcing capacity when setting values) + * * ```ts * import { Cache, Effect } from "effect" * @@ -462,8 +517,8 @@ export const getSuccess = /*#__PURE__*/dual(2, (self, key) => core.withFiber(fib * }) * ``` * + * @category combinators * @since 4.0.0 - * @category Combinators */ export const set = /*#__PURE__*/dual(3, (self, key, value) => core.withFiber(fiber => { const exit = core.exitSucceed(value); @@ -482,9 +537,15 @@ export const set = /*#__PURE__*/dual(3, (self, key, value) => core.withFiber(fib return effect.void; })); /** - * Checks if the cache contains an entry for the specified key. + * Checks whether the cache contains an entry for the specified key. + * + * **Details** + * + * This checks for an existing non-expired entry without invoking the cache + * lookup function. Expired entries are treated as absent. + * + * **Example** (Checking for cached keys) * - * @example * ```ts * import { Cache, Effect } from "effect" * @@ -503,7 +564,8 @@ export const set = /*#__PURE__*/dual(3, (self, key, value) => core.withFiber(fib * }) * ``` * - * @example + * **Example** (Checking TTL expiration) + * * ```ts * import { Cache, Effect } from "effect" * import { TestClock } from "effect/testing" @@ -530,7 +592,8 @@ export const set = /*#__PURE__*/dual(3, (self, key, value) => core.withFiber(fib * }) * ``` * - * @example + * **Example** (Checking multiple keys) + * * ```ts * import { Cache, Effect } from "effect" * @@ -559,8 +622,8 @@ export const set = /*#__PURE__*/dual(3, (self, key, value) => core.withFiber(fib * }) * ``` * + * @category combinators * @since 4.0.0 - * @category Combinators */ export const has = /*#__PURE__*/dual(2, (self, key) => core.withFiber(fiber => { const oentry = getImpl(self, key, fiber, false); @@ -569,7 +632,8 @@ export const has = /*#__PURE__*/dual(2, (self, key) => core.withFiber(fiber => { /** * Invalidates the entry associated with the specified key in the cache. * - * @example + * **Example** (Invalidating cached entries) + * * ```ts * import { Cache, Effect } from "effect" * @@ -607,17 +671,18 @@ export const has = /*#__PURE__*/dual(2, (self, key) => core.withFiber(fiber => { * }) * ``` * + * @category combinators * @since 4.0.0 - * @category Combinators */ export const invalidate = /*#__PURE__*/dual(2, (self, key) => effect.sync(() => { MutableHashMap.remove(self.map, key); })); /** - * Conditionally invalidates the entry associated with the specified key in the cache - * if the predicate returns true for the cached value. + * Invalidates the entry associated with the specified key in the cache when the + * predicate returns true for the cached value. + * + * **Example** (Invalidating entries conditionally) * - * @example * ```ts * import { Cache, Effect } from "effect" * @@ -674,8 +739,8 @@ export const invalidate = /*#__PURE__*/dual(2, (self, key) => effect.sync(() => * }) * ``` * + * @category combinators * @since 4.0.0 - * @category Combinators */ export const invalidateWhen = /*#__PURE__*/dual(3, (self, key, f) => core.withFiber(fiber => { const oentry = getImpl(self, key, fiber, false); @@ -693,10 +758,13 @@ export const invalidateWhen = /*#__PURE__*/dual(3, (self, key, f) => core.withFi /** * Forces a refresh of the value associated with the specified key in the cache. * + * **Details** + * * It will always invoke the lookup function to construct a new value, * overwriting any existing value for that key. * - * @example + * **Example** (Refreshing cached values) + * * ```ts * import { Cache, Effect } from "effect" * @@ -726,7 +794,8 @@ export const invalidateWhen = /*#__PURE__*/dual(3, (self, key, f) => core.withFi * }) * ``` * - * @example + * **Example** (Resetting TTL on refresh) + * * ```ts * import { Cache, Effect } from "effect" * import { TestClock } from "effect/testing" @@ -754,7 +823,8 @@ export const invalidateWhen = /*#__PURE__*/dual(3, (self, key, f) => core.withFi * }) * ``` * - * @example + * **Example** (Refreshing missing keys) + * * ```ts * import { Cache, Effect } from "effect" * @@ -774,8 +844,8 @@ export const invalidateWhen = /*#__PURE__*/dual(3, (self, key, f) => core.withFi * }) * ``` * + * @category combinators * @since 4.0.0 - * @category Combinators */ export const refresh = /*#__PURE__*/dual(2, (self, key) => core.withFiber(fiber => { const deferred = Deferred.makeUnsafe(); @@ -805,7 +875,8 @@ export const refresh = /*#__PURE__*/dual(2, (self, key) => core.withFiber(fiber /** * Invalidates all entries in the cache. * - * @example + * **Example** (Invalidating all entries) + * * ```ts * import { Cache, Effect } from "effect" * @@ -835,8 +906,8 @@ export const refresh = /*#__PURE__*/dual(2, (self, key) => core.withFiber(fiber * }) * ``` * + * @category combinators * @since 4.0.0 - * @category Combinators */ export const invalidateAll = self => effect.sync(() => { MutableHashMap.clear(self.map); @@ -844,11 +915,14 @@ export const invalidateAll = self => effect.sync(() => { /** * Retrieves the approximate number of entries in the cache. * + * **Details** + * * Note that expired entries are counted until they are accessed and removed. * The size reflects the current number of entries stored, not the number * of valid entries. * - * @example + * **Example** (Reading cache size) + * * ```ts * import { Cache, Effect } from "effect" * @@ -875,14 +949,15 @@ export const invalidateAll = self => effect.sync(() => { * }) * ``` * + * @category combinators * @since 4.0.0 - * @category Combinators */ export const size = self => effect.sync(() => MutableHashMap.size(self.map)); /** * Retrieves all active keys from the cache, automatically filtering out expired entries. * - * @example + * **Example** (Reading active keys) + * * ```ts * import { Cache, Effect } from "effect" * @@ -901,12 +976,12 @@ export const size = self => effect.sync(() => MutableHashMap.size(self.map)); * // Retrieve all active keys * const keys = yield* Cache.keys(cache) * - * console.log(Array.from(keys)) // ["hello", "world", "cache"] + * console.log(Array.from(keys).sort()) // ["cache", "hello", "world"] * }) * ``` * + * @category combinators * @since 4.0.0 - * @category Combinators */ export const keys = self => core.withFiber(fiber => { const now = fiber.getRef(effect.ClockRef).currentTimeMillisUnsafe(); @@ -922,7 +997,8 @@ export const keys = self => core.withFiber(fiber => { * Retrieves all successfully cached values from the cache, excluding failed * lookups and expired entries. * - * @example + * **Example** (Reading all cached values) + * * ```ts * import { Cache, Effect } from "effect" * @@ -945,8 +1021,8 @@ export const keys = self => core.withFiber(fiber => { * }) * ``` * + * @category combinators * @since 4.0.0 - * @category Combinators */ export const values = self => effect.map(entries(self), Iterable.map(([, value]) => value)); /** @@ -954,8 +1030,15 @@ export const values = self => effect.map(entries(self), Iterable.map(([, value]) * only returns entries with successfully resolved values, filtering out any * failed lookups or expired entries. * + * **Gotchas** + * + * Expired entries are removed from the cache while `entries` filters them out. + * + * @see {@link keys} for retrieving only cached keys + * @see {@link values} for retrieving only cached values + * + * @category combinators * @since 4.0.0 - * @category Combinators */ export const entries = self => core.withFiber(fiber => { const now = fiber.getRef(effect.ClockRef).currentTimeMillisUnsafe(); diff --git a/.opencode/node_modules/effect/dist/Cache.js.map b/.opencode/node_modules/effect/dist/Cache.js.map index 4dd742b7780cf217092c932609c142411b3f99b1..505afbab2c43e9866bd9fe993919b665ab4b7357 100644 --- a/.opencode/node_modules/effect/dist/Cache.js.map +++ b/.opencode/node_modules/effect/dist/Cache.js.map @@ -1 +1 @@ -{"version":3,"file":"Cache.js","names":["Context","Deferred","Duration","dual","core","PipeInspectableProto","effect","Iterable","MutableHashMap","Option","Result","TypeId","makeWith","lookup","options","contextWith","context","self","Object","create","Proto","key","updateContext","input","merge","map","make","capacity","timeToLive","exit","fromInputUnsafe","defaultTimeToLive","succeed","toJSON","_id","_","_key","infinity","get","withFiber","fiber","oentry","isSome","hasExpired","value","remove","set","await","deferred","makeUnsafe","entry","expiresAt","undefined","Number","isFinite","checkCapacity","onExit","doneUnsafe","ttl","getRef","ClockRef","currentTimeMillisUnsafe","toMillis","isZero","void","diff","size","getOption","getImpl","asSome","succeedNone","isRead","isNone","getSuccess","exitIsSuccess","succeedSome","exitSucceed","has","invalidate","sync","invalidateWhen","f","pipe","catchCause","refresh","existing","invalidateAll","clear","keys","now","filterMap","failVoid","values","entries","isExit","exitIsFailure"],"sources":["../src/Cache.ts"],"sourcesContent":[null],"mappings":"AAAA;;;AAGA,OAAO,KAAKA,OAAO,MAAM,cAAc;AACvC,OAAO,KAAKC,QAAQ,MAAM,eAAe;AACzC,OAAO,KAAKC,QAAQ,MAAM,eAAe;AAIzC,SAASC,IAAI,QAAQ,eAAe;AACpC,OAAO,KAAKC,IAAI,MAAM,oBAAoB;AAC1C,SAASC,oBAAoB,QAAQ,oBAAoB;AACzD,OAAO,KAAKC,MAAM,MAAM,sBAAsB;AAC9C,OAAO,KAAKC,QAAQ,MAAM,eAAe;AACzC,OAAO,KAAKC,cAAc,MAAM,qBAAqB;AACrD,OAAO,KAAKC,MAAM,MAAM,aAAa;AAGrC,OAAO,KAAKC,MAAM,MAAM,aAAa;AAErC,MAAMC,MAAM,GAAG,eAAe;AA4F9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCA,OAAO,MAAMC,QAAQ,GAAGA,CAMtBC,MAA4C,EAAEC,OAI/C,KAKCR,MAAM,CAACS,WAAW,CAAEC,OAA6B,IAAI;EACnD,MAAMC,IAAI,GAAGC,MAAM,CAACC,MAAM,CAACC,KAAK,CAAC;EACjCH,IAAI,CAACJ,MAAM,GAAIQ,GAAQ,IACrBf,MAAM,CAACgB,aAAa,CAClBT,MAAM,CAACQ,GAAG,CAAC,EACVE,KAAK,IAAKvB,OA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aAAa,CAAClE,IAAI,CAAC,GACnDnB,MAAM,CAACiF,QAAQ,GACfjF,MAAM,CAACsB,OAAO,CAAC,CAACX,GAAG,EAAEQ,IAAI,CAACe,KAAU,CAAC,CAAC;IAC5C;IACApC,cAAc,CAACqC,MAAM,CAAC5B,IAAI,CAACQ,GAAG,EAAEJ,GAAG,CAAC;IACpC,OAAOX,MAAM,CAACiF,QAAQ;EACxB,CAAC,CAAC,CAAC;AACL,CAAC,CAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"Cache.js","names":["Context","Deferred","Duration","dual","core","PipeInspectableProto","effect","Iterable","MutableHashMap","Option","Result","TypeId","makeWith","lookup","options","contextWith","context","self","Object","create","Proto","key","updateContext","input","merge","map","make","capacity","timeToLive","exit","fromInputUnsafe","defaultTimeToLive","succeed","toJSON","_id","_","_key","infinity","get","withFiber","fiber","oentry","isSome","hasExpired","value","remove","set","await","deferred","makeUnsafe","entry","expiresAt","undefined","Number","isFinite","checkCapacity","onExit","doneUnsafe","ttl","getRef","ClockRef","currentTimeMillisUnsafe","toMillis","isZero","void","diff","size","getOption","getImpl","asSome","succeedNone","isRead","isNone","getSuccess","exitIsSuccess","succeedSome","exitSucceed","has","invalidate","sync","invalidateWhen","f","pipe","catchCause","refresh","existing","invalidateAll","clear","keys","now","filterMap","failVoid","values","entries","isExit","exitIsFailure"],"sources":["../src/Cache.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;AAUA,OAAO,KAAKA,OAAO,MAAM,cAAc;AACvC,OAAO,KAAKC,QAAQ,MAAM,eAAe;AACzC,OAAO,KAAKC,QAAQ,MAAM,eAAe;AAIzC,SAASC,IAAI,QAAQ,eAAe;AACpC,OAAO,KAAKC,IAAI,MAAM,oBAAoB;AAC1C,SAASC,oBAAoB,QAAQ,oBAAoB;AACzD,OAAO,KAAKC,MAAM,MAAM,sBAAsB;AAC9C,OAAO,KAAKC,QAAQ,MAAM,eAAe;AACzC,OAAO,KAAKC,cAAc,MAAM,q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MiD,OAAO,GAAkB5E,IAAyB,IAC7Db,IAAI,CAACmC,SAAS,CAAEC,KAAK,IAAI;EACvB,MAAMiD,GAAG,GAAGjD,KAAK,CAACmB,MAAM,CAACrD,MAAM,CAACsD,QAAQ,CAAC,CAACC,uBAAuB,EAAE;EACnE,OAAOvD,MAAM,CAAC0B,OAAO,CAACzB,QAAQ,CAACmF,SAAS,CAACzE,IAAI,CAACQ,GAAG,EAAE,CAAC,CAACJ,GAAG,EAAE6B,KAAK,CAAC,KAAI;IAClE,IAAIA,KAAK,CAACC,SAAS,KAAKC,SAAS,IAAIF,KAAK,CAACC,SAAS,GAAGsC,GAAG,EAAE;MAC1D,MAAM5D,IAAI,GAAGqB,KAAK,CAACF,QAAQ,CAAC1C,MAAM;MAClC,OAAO,CAACF,IAAI,CAAC0F,MAAM,CAACjE,IAAI,CAAC,IAAIvB,MAAM,CAACyF,aAAa,CAAClE,IAAI,CAAC,GACnDnB,MAAM,CAACiF,QAAQ,GACfjF,MAAM,CAACsB,OAAO,CAAC,CAACX,GAAG,EAAEQ,IAAI,CAACe,KAAU,CAAC,CAAC;IAC5C;IACApC,cAAc,CAACqC,MAAM,CAAC5B,IAAI,CAACQ,GAAG,EAAEJ,GAAG,CAAC;IACpC,OAAOX,MAAM,CAACiF,QAAQ;EACxB,CAAC,CAAC,CAAC;AACL,CAAC,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Cause.d.ts b/.opencode/node_modules/effect/dist/Cause.d.ts index 118fa465f1d590cb1d2a335e6cc8b07b67d5c262..86effaba2dd1a65bc17f27ab4c792a307fe74cb8 100644 --- a/.opencode/node_modules/effect/dist/Cause.d.ts +++ b/.opencode/node_modules/effect/dist/Cause.d.ts @@ -1,79 +1,11 @@ /** - * Structured representation of how an Effect can fail. - * - * A `Cause` holds a flat array of `Reason` values, where each reason is one of: - * - * - **Fail** — a typed, expected error `E` (created by `Effect.fail`) - * - **Die** — an untyped defect (`unknown`) from `Effect.die` or uncaught throws - * - **Interrupt** — a fiber interruption, optionally carrying the interrupting fiber's ID - * - * ## Mental model - * - * - A `Cause` is always flat: concurrent and sequential failures are stored together - * in `cause.reasons` (a `ReadonlyArray>`). - * - Each `Reason` carries an `annotations` map with tracing metadata (stack frames, spans). - * - An empty `reasons` array means the computation succeeded or the cause was empty - * ({@link empty}). - * - `Cause` implements `Equal`, so two causes with identical reasons compare as equal. - * - * ## Common tasks - * - * | Intent | API | - * |--------|-----| - * | Create a cause | {@link fail}, {@link die}, {@link interrupt}, {@link fromReasons} | - * | Test for reason types | {@link hasFails}, {@link hasDies}, {@link hasInterrupts} | - * | Extract the first error/defect | {@link findError}, {@link findDefect}, {@link findFail}, {@link findDie} | - * | Iterate over reasons manually | `cause.reasons.filter(Cause.isFailReason)` | - * | Combine two causes | {@link combine} | - * | Transform errors | {@link map} | - * | Collapse to a single thrown value | {@link squash} | - * | Render for logging | {@link pretty}, {@link prettyErrors} | - * | Attach/read tracing metadata | {@link annotate}, {@link annotations}, {@link reasonAnnotations} | - * - * ## Gotchas - * - * - `findError`/`findDefect` return `Filter.fail` (not `Option.none`) when no match is - * found. Use {@link findErrorOption} if you need an `Option`. - * - `squash` picks the first `Fail` error, then the first `Die` defect, then falls back - * to a generic "interrupted" / "empty" error. It is lossy — use `prettyErrors` or - * iterate `reasons` directly when you need all failures. - * - The module also exports several built-in error classes (`NoSuchElementError`, - * `TimeoutError`, `IllegalArgumentError`, `ExceededCapacityError`, `UnknownError`) - * and the `Done` completion signal. These all implement `YieldableError` and can be - * yielded directly inside `Effect.gen`. - * - * **Example** (inspecting a concurrent failure) + * Records the full reason an `Effect` failed. * - * ```ts - * import { Cause, Effect } from "effect" - * - * const program = Effect.gen(function*() { - * const cause = yield* Effect.sandbox( - * Effect.all([ - * Effect.fail("err1"), - * Effect.die("defect"), - * Effect.fail("err2") - * ], { concurrency: "unbounded" }) - * ).pipe(Effect.flip) - * - * const errors = cause.reasons - * .filter(Cause.isFailReason) - * .map((r) => r.error) - * - * const defects = cause.reasons - * .filter(Cause.isDieReason) - * .map((r) => r.defect) - * - * console.log(errors) // ["err1", "err2"] (order may vary) - * console.log(defects) // ["defect"] - * }) - * - * Effect.runPromise(program) - * ``` - * - * @see {@link Cause} — the core interface - * @see {@link Reason} — the union of failure kinds - * @see {@link pretty} — human-readable rendering + * A `Cause` can contain typed failures, unexpected defects, interruptions, + * and annotations. Keeping those details together lets code inspect or format + * failures without first collapsing them to a single error value. This module + * includes the `Cause` and `Reason` data types, helpers for building and + * checking causes, and small error types used by several Effect APIs. * * @since 2.0.0 */ @@ -90,20 +22,27 @@ import type * as Types from "./Types.ts"; /** * Unique brand for `Cause` values, used for runtime type checks via {@link isCause}. * - * @since 2.0.0 - * @category symbols + * @category type IDs + * @since 4.0.0 */ export declare const TypeId: "~effect/Cause"; /** * Unique brand for `Reason` values, used for runtime type checks via {@link isReason}. * - * @since 2.0.0 - * @category symbols + * @category type IDs + * @since 4.0.0 */ export declare const ReasonTypeId: "~effect/Cause/Reason"; /** * A structured representation of how an Effect failed. * + * **When to use** + * + * Use to preserve the full structured failure information for an effect instead + * of collapsing it to a single error value. + * + * **Details** + * * Access the individual failure entries through the `reasons` array, then * narrow each entry with {@link isFailReason}, {@link isDieReason}, or * {@link isInterruptReason}. @@ -127,17 +66,15 @@ export declare const ReasonTypeId: "~effect/Cause/Reason"; * console.log(Cause.isFailReason(cause.reasons[0])) // true * ``` * - * @see {@link Reason} — the union type stored in `reasons` - * - * @since 2.0.0 * @category models + * @since 2.0.0 */ export interface Cause extends Pipeable, Inspectable, Equal { readonly [TypeId]: typeof TypeId; readonly reasons: ReadonlyArray>; } /** - * Tests if an arbitrary value is a {@link Cause}. + * Checks whether an arbitrary value is a `Cause`. * * **Example** (runtime type check) * @@ -153,7 +90,7 @@ export interface Cause extends Pipeable, Inspectable, Equal { */ export declare const isCause: (self: unknown) => self is Cause; /** - * Tests if an arbitrary value is a {@link Reason} (`Fail`, `Die`, or `Interrupt`). + * Checks whether an arbitrary value is a `Reason` (`Fail`, `Die`, or `Interrupt`). * * **Example** (runtime type check) * @@ -166,11 +103,13 @@ export declare const isCause: (self: unknown) => self is Cause; * ``` * * @category guards - * @since 2.0.0 + * @since 4.0.0 */ export declare const isReason: (self: unknown) => self is Reason; /** - * A single entry inside a {@link Cause}'s `reasons` array. + * A single entry inside a `Cause`'s `reasons` array. + * + * **Details** * * Narrow to a concrete type with {@link isFailReason}, {@link isDieReason}, * or {@link isInterruptReason}. @@ -193,18 +132,17 @@ export declare const isReason: (self: unknown) => self is Reason; * } * ``` * - * @see {@link Fail} — typed error reason - * @see {@link Die} — untyped defect reason - * @see {@link Interrupt} — interruption reason - * - * @since 4.0.0 * @category models + * @since 4.0.0 */ export type Reason = Fail | Die | Interrupt; /** - * Narrows a {@link Reason} to {@link Fail}. + * Narrows a `Reason` to `Fail`. + * + * **When to use** * - * Useful as a predicate for `Array.filter` when iterating over `cause.reasons`. + * Use as a predicate for `Array.filter` to pick out typed `Fail` reasons when + * iterating over `cause.reasons`. * * **Example** (filtering fail reasons) * @@ -224,9 +162,12 @@ export type Reason = Fail | Die | Interrupt; */ export declare const isFailReason: (self: Reason) => self is Fail; /** - * Narrows a {@link Reason} to {@link Die}. + * Narrows a `Reason` to `Die`. * - * Useful as a predicate for `Array.filter` when iterating over `cause.reasons`. + * **When to use** + * + * Use as a predicate for `Array.filter` to pick out `Die` (defect) reasons when + * iterating over `cause.reasons`. * * **Example** (filtering die reasons) * @@ -246,9 +187,12 @@ export declare const isFailReason: (self: Reason) => self is Fail; */ export declare const isDieReason: (self: Reason) => self is Die; /** - * Narrows a {@link Reason} to {@link Interrupt}. + * Narrows a `Reason` to `Interrupt`. + * + * **When to use** * - * Useful as a predicate for `Array.filter` when iterating over `cause.reasons`. + * Use as a predicate for `Array.filter` to pick out `Interrupt` reasons when + * iterating over `cause.reasons`. * * **Example** (filtering interrupt reasons) * @@ -268,10 +212,9 @@ export declare const isDieReason: (self: Reason) => self is Die; */ export declare const isInterruptReason: (self: Reason) => self is Interrupt; /** - * Companion namespace for the {@link Cause} interface. + * Companion namespace for the `Cause` interface. * * @since 2.0.0 - * @category models */ export declare namespace Cause { /** @@ -286,21 +229,22 @@ export declare namespace Cause { * type E = Cause.Cause.Error> * ``` * - * @since 4.0.0 * @category models + * @since 4.0.0 */ type Error = T extends Cause ? E : never; /** - * Base interface shared by all reason types ({@link Fail}, {@link Die}, - * {@link Interrupt}). + * Base interface shared by all reason types (`Fail`, `Die`, `Interrupt`). + * + * **Details** * * Every reason carries: * - `_tag` — discriminant string (`"Fail"`, `"Die"`, or `"Interrupt"`) * - `annotations` — tracing metadata attached by the runtime * - `annotate()` — returns a copy with additional annotations * - * @since 4.0.0 * @category models + * @since 4.0.0 */ interface ReasonProto extends Inspectable, Equal { readonly [ReasonTypeId]: typeof ReasonTypeId; @@ -312,10 +256,9 @@ export declare namespace Cause { } } /** - * Companion namespace for the {@link Reason} type. + * Companion namespace for the `Reason` type. * - * @since 2.0.0 - * @category models + * @since 4.0.0 */ export declare namespace Reason { /** @@ -330,16 +273,23 @@ export declare namespace Reason { * type E = Cause.Reason.Error> * ``` * - * @since 4.0.0 * @category models + * @since 4.0.0 */ type Error = T extends Reason ? E : never; } /** * An untyped defect — typically a programming error or an uncaught exception. * + * **When to use** + * + * Use when inspecting `Cause` reasons that represent defects instead of typed + * failures or interruptions. + * + * **Details** + * * The `defect` property is `unknown` because defects are not part of the - * typed error channel. Use {@link isDieReason} to narrow a {@link Reason} + * typed error channel. Use {@link isDieReason} to narrow a `Reason` * to this type. * * **Example** (accessing the defect) @@ -347,18 +297,18 @@ export declare namespace Reason { * ```ts * import { Cause } from "effect" * - * const cause = Cause.die(new Error("Unexpected")) + * const cause = Cause.die("Unexpected") * const reason = cause.reasons[0] * if (Cause.isDieReason(reason)) { - * console.log(reason.defect) // Error: Unexpected + * console.log(reason.defect) // "Unexpected" * } * ``` * - * @see {@link die} — create a `Cause` containing a single `Die` - * @see {@link isDieReason} — type guard + * @see {@link die} for constructing a cause with a single `Die` reason + * @see {@link isDieReason} for narrowing a `Reason` to `Die` * - * @since 2.0.0 * @category models + * @since 2.0.0 */ export interface Die extends Cause.ReasonProto<"Die"> { readonly defect: unknown; @@ -366,8 +316,15 @@ export interface Die extends Cause.ReasonProto<"Die"> { /** * A typed, expected error produced by `Effect.fail`. * + * **When to use** + * + * Use when inspecting `Cause` reasons that represent expected failures from the + * typed error channel. + * + * **Details** + * * The `error` property carries the typed value `E`. Use {@link isFailReason} - * to narrow a {@link Reason} to this type. + * to narrow a `Reason` to this type. * * **Example** (accessing the error) * @@ -381,11 +338,11 @@ export interface Die extends Cause.ReasonProto<"Die"> { * } * ``` * - * @see {@link fail} — create a `Cause` containing a single `Fail` - * @see {@link isFailReason} — type guard + * @see {@link fail} for constructing a cause with a single `Fail` reason + * @see {@link isFailReason} for narrowing a `Reason` to `Fail` * - * @since 2.0.0 * @category models + * @since 2.0.0 */ export interface Fail extends Cause.ReasonProto<"Fail"> { readonly error: E; @@ -394,7 +351,9 @@ export interface Fail extends Cause.ReasonProto<"Fail"> { * A fiber interruption signal, optionally carrying the ID of the fiber that * initiated the interruption. * - * Use {@link isInterruptReason} to narrow a {@link Reason} to this type. + * **Details** + * + * Use {@link isInterruptReason} to narrow a `Reason` to this type. * * **Example** (accessing the fiber ID) * @@ -408,24 +367,30 @@ export interface Fail extends Cause.ReasonProto<"Fail"> { * } * ``` * - * @see {@link interrupt} — create a `Cause` containing a single `Interrupt` - * @see {@link isInterruptReason} — type guard - * - * @since 2.0.0 * @category models + * @since 2.0.0 */ export interface Interrupt extends Cause.ReasonProto<"Interrupt"> { readonly fiberId: number | undefined; } /** - * Creates a {@link Cause} from an array of {@link Reason} values. + * Creates a `Cause` from an array of `Reason` values. * - * Use this when you already have individual reasons (e.g. from filtering or + * **When to use** + * + * Use when you already have individual reasons (e.g. from filtering or * transforming another cause's `reasons` array) and need to wrap them back * into a `Cause`. * - * - Returns a new `Cause`; does not mutate the input array. - * - An empty array produces a cause equivalent to {@link empty}. + * **Details** + * + * - Returns a new `Cause`. + * - An empty array produces a cause equivalent to `empty`. + * + * **Gotchas** + * + * The `reasons` array is stored as provided. Treat the array as immutable + * after passing it to this function. * * **Example** (building a cause from reasons) * @@ -443,25 +408,47 @@ export interface Interrupt extends Cause.ReasonProto<"Interrupt"> { * @see {@link combine} — merge two existing causes * * @category constructors - * @since 2.0.0 + * @since 4.0.0 */ export declare const fromReasons: (reasons: ReadonlyArray>) => Cause; /** - * A {@link Cause} with an empty `reasons` array. + * Represents a `Cause` with an empty `reasons` array. + * + * **When to use** + * + * Use to represent the absence of failure when constructing or combining + * causes. + * + * **Details** * * Represents the absence of failure. Combining any cause with `empty` via * {@link combine} returns the original cause unchanged. * - * @see {@link combine} + * **Example** (combining with the empty cause) + * + * ```ts + * import { Cause } from "effect" + * + * const cause = Cause.combine(Cause.empty, Cause.fail("boom")) + * + * console.log(cause.reasons.length) // 1 + * console.log(Cause.hasFails(cause)) // true + * ``` + * + * @see {@link combine} for merging causes where `empty` acts as the identity * * @category constructors * @since 2.0.0 */ export declare const empty: Cause; /** - * Creates a {@link Cause} containing a single {@link Fail} reason with the + * Creates a `Cause` containing a single `Fail` reason with the * given typed error. * + * **When to use** + * + * Use to construct a cause from an expected typed error. + * * **Example** (creating a fail cause) * * ```ts @@ -480,15 +467,19 @@ export declare const empty: Cause; */ export declare const fail: (error: E) => Cause; /** - * Creates a {@link Cause} containing a single {@link Die} reason with the + * Creates a `Cause` containing a single `Die` reason with the * given defect. * + * **When to use** + * + * Use to construct a cause from an untyped defect or unexpected thrown value. + * * **Example** (creating a die cause) * * ```ts * import { Cause } from "effect" * - * const cause = Cause.die(new Error("Unexpected")) + * const cause = Cause.die("Unexpected") * console.log(cause.reasons.length) // 1 * console.log(Cause.isDieReason(cause.reasons[0])) // true * ``` @@ -501,7 +492,7 @@ export declare const fail: (error: E) => Cause; */ export declare const die: (defect: unknown) => Cause; /** - * Creates a {@link Cause} containing a single {@link Interrupt} reason, + * Creates a `Cause` containing a single `Interrupt` reason, * optionally carrying the interrupting fiber's ID. * * **Example** (creating an interrupt cause) @@ -522,10 +513,12 @@ export declare const die: (defect: unknown) => Cause; */ export declare const interrupt: (fiberId?: number | undefined) => Cause; /** - * Creates a standalone {@link Fail} reason (not wrapped in a {@link Cause}). + * Creates a standalone `Fail` reason (not wrapped in a `Cause`). + * + * **When to use** * - * Use this when you need to construct individual reasons for - * {@link fromReasons} or for direct comparison. + * Use when constructing a standalone typed failure reason for + * {@link fromReasons} or direct comparison. * * **Example** (creating a Fail reason) * @@ -545,15 +538,21 @@ export declare const interrupt: (fiberId?: number | undefined) => Cause; */ export declare const makeFailReason: (error: E) => Fail; /** - * Creates a standalone {@link Die} reason (not wrapped in a {@link Cause}). + * Creates a standalone `Die` reason (not wrapped in a `Cause`). + * + * **When to use** + * + * Use when constructing a standalone defect reason for {@link fromReasons} or + * direct comparison. * * **Example** (creating a Die reason) * * ```ts * import { Cause } from "effect" * - * const reason = Cause.makeDieReason(new Error("bug")) + * const reason = Cause.makeDieReason("bug") * console.log(reason._tag) // "Die" + * console.log(reason.defect) // "bug" * ``` * * @see {@link makeFailReason} — create a `Fail` reason @@ -564,9 +563,14 @@ export declare const makeFailReason: (error: E) => Fail; */ export declare const makeDieReason: (defect: unknown) => Die; /** - * Creates a standalone {@link Interrupt} reason (not wrapped in a {@link Cause}), + * Creates a standalone `Interrupt` reason (not wrapped in a `Cause`), * optionally carrying the interrupting fiber's ID. * + * **When to use** + * + * Use when constructing a standalone interrupt reason for {@link fromReasons} + * or direct comparison. + * * **Example** (creating an Interrupt reason) * * ```ts @@ -585,11 +589,12 @@ export declare const makeDieReason: (defect: unknown) => Die; */ export declare const makeInterruptReason: (fiberId?: number | undefined) => Interrupt; /** - * Returns `true` if every reason in the cause is an {@link Interrupt} (and + * Returns `true` if every reason in the cause is an `Interrupt` (and * there is at least one reason). * - * Useful for deciding whether a failure was entirely due to interruption and - * can be silently discarded. + * **When to use** + * + * Use when you need to detect failures caused only by interruption. * * **Example** (checking interrupt-only causes) * @@ -604,15 +609,24 @@ export declare const makeInterruptReason: (fiberId?: number | undefined) => Inte * @see {@link hasInterrupts} — `true` if the cause contains *any* interrupts * * @category predicates - * @since 2.0.0 + * @since 4.0.0 */ export declare const hasInterruptsOnly: (self: Cause) => boolean; /** - * Transforms the typed error values inside a {@link Cause} using the - * provided function. Only {@link Fail} reasons are affected; {@link Die} - * and {@link Interrupt} reasons pass through unchanged. + * Transforms the typed error values inside a `Cause` using the + * provided function. Only `Fail` reasons are affected; `Die` and `Interrupt` + * reasons pass through unchanged. + * + * **When to use** + * + * Use to transform expected typed failures while preserving defects and + * interruptions unchanged. * - * Returns a new `Cause`; does not mutate the original. + * **Details** + * + * If at least one `Fail` reason exists, this returns a new `Cause` + * containing the mapped failures. If the cause has no `Fail` reasons, the + * original cause is returned unchanged. * * **Example** (mapping errors to uppercase) * @@ -628,15 +642,24 @@ export declare const hasInterruptsOnly: (self: Cause) => boolean; * ``` * * @category mapping - * @since 4.0.0 + * @since 2.0.0 */ export declare const map: { /** - * Transforms the typed error values inside a {@link Cause} using the - * provided function. Only {@link Fail} reasons are affected; {@link Die} - * and {@link Interrupt} reasons pass through unchanged. + * Transforms the typed error values inside a `Cause` using the + * provided function. Only `Fail` reasons are affected; `Die` and `Interrupt` + * reasons pass through unchanged. + * + * **When to use** * - * Returns a new `Cause`; does not mutate the original. + * Use to transform expected typed failures while preserving defects and + * interruptions unchanged. + * + * **Details** + * + * If at least one `Fail` reason exists, this returns a new `Cause` + * containing the mapped failures. If the cause has no `Fail` reasons, the + * original cause is returned unchanged. * * **Example** (mapping errors to uppercase) * @@ -652,15 +675,24 @@ export declare const map: { * ``` * * @category mapping - * @since 4.0.0 + * @since 2.0.0 */ (f: (error: Types.NoInfer) => E2): (self: Cause) => Cause; /** - * Transforms the typed error values inside a {@link Cause} using the - * provided function. Only {@link Fail} reasons are affected; {@link Die} - * and {@link Interrupt} reasons pass through unchanged. + * Transforms the typed error values inside a `Cause` using the + * provided function. Only `Fail` reasons are affected; `Die` and `Interrupt` + * reasons pass through unchanged. + * + * **When to use** + * + * Use to transform expected typed failures while preserving defects and + * interruptions unchanged. * - * Returns a new `Cause`; does not mutate the original. + * **Details** + * + * If at least one `Fail` reason exists, this returns a new `Cause` + * containing the mapped failures. If the cause has no `Fail` reasons, the + * original cause is returned unchanged. * * **Example** (mapping errors to uppercase) * @@ -676,7 +708,7 @@ export declare const map: { * ``` * * @category mapping - * @since 4.0.0 + * @since 2.0.0 */ (self: Cause, f: (error: Types.NoInfer) => E2): Cause; }; @@ -684,7 +716,13 @@ export declare const map: { * Merges two causes into a single cause whose `reasons` array is the union * of both inputs (de-duplicated by value equality). * - * - Combining with {@link empty} returns the other cause unchanged. + * **When to use** + * + * Use to merge independent causes into one structured failure value. + * + * **Details** + * + * - Combining with `empty` returns the other cause unchanged. * - If the result is structurally equal to `self`, `self` is returned * (referential shortcut). * @@ -700,6 +738,7 @@ export declare const map: { * ``` * * @see {@link fromReasons} — build a cause from an array of reasons + * @see {@link empty} for the identity cause used when combining * * @category combining * @since 4.0.0 @@ -709,7 +748,13 @@ export declare const combine: { * Merges two causes into a single cause whose `reasons` array is the union * of both inputs (de-duplicated by value equality). * - * - Combining with {@link empty} returns the other cause unchanged. + * **When to use** + * + * Use to merge independent causes into one structured failure value. + * + * **Details** + * + * - Combining with `empty` returns the other cause unchanged. * - If the result is structurally equal to `self`, `self` is returned * (referential shortcut). * @@ -725,6 +770,7 @@ export declare const combine: { * ``` * * @see {@link fromReasons} — build a cause from an array of reasons + * @see {@link empty} for the identity cause used when combining * * @category combining * @since 4.0.0 @@ -734,7 +780,13 @@ export declare const combine: { * Merges two causes into a single cause whose `reasons` array is the union * of both inputs (de-duplicated by value equality). * - * - Combining with {@link empty} returns the other cause unchanged. + * **When to use** + * + * Use to merge independent causes into one structured failure value. + * + * **Details** + * + * - Combining with `empty` returns the other cause unchanged. * - If the result is structurally equal to `self`, `self` is returned * (referential shortcut). * @@ -750,6 +802,7 @@ export declare const combine: { * ``` * * @see {@link fromReasons} — build a cause from an array of reasons + * @see {@link empty} for the identity cause used when combining * * @category combining * @since 4.0.0 @@ -757,17 +810,28 @@ export declare const combine: { (self: Cause, that: Cause): Cause; }; /** - * Collapses a {@link Cause} into a single `unknown` value, picking the "most + * Collapses a `Cause` into a single `unknown` value, picking the "most * important" failure in this order: * - * 1. First {@link Fail} error (the `E` value) - * 2. First {@link Die} defect + * **When to use** + * + * Use to collapse a structured cause to the single value that synchronous and + * promise runners would throw. + * + * **Details** + * + * 1. First `Fail` error (the `E` value) + * 2. First `Die` defect * 3. A generic `Error("All fibers interrupted without error")` for interrupt-only causes - * 4. A generic `Error("Empty cause")` for {@link empty} + * 4. A generic `Error("Empty cause")` for `empty` * * This is the function used by `Effect.runPromise` and `Effect.runSync` to - * decide what to throw. It is lossy — use {@link prettyErrors} or iterate - * `cause.reasons` when you need all failures. + * decide what to throw. + * + * **Gotchas** + * + * This function is lossy. Use {@link prettyErrors} or iterate `cause.reasons` + * when you need all failures. * * **Example** (squashing a cause) * @@ -786,7 +850,12 @@ export declare const combine: { */ export declare const squash: (self: Cause) => unknown; /** - * Returns `true` if the cause contains at least one {@link Fail} reason. + * Returns `true` if the cause contains at least one `Fail` reason. + * + * **When to use** + * + * Use to check whether a cause includes typed failures before extracting, + * mapping, or rendering them. * * **Example** (checking for typed errors) * @@ -801,15 +870,19 @@ export declare const squash: (self: Cause) => unknown; * @see {@link hasInterrupts} — check for interruptions * * @category predicates - * @since 2.0.0 + * @since 4.0.0 */ export declare const hasFails: (self: Cause) => boolean; /** - * Returns the first {@link Fail} reason from a cause, including its - * annotations. Returns `Filter.fail` with the remaining cause when no - * `Fail` is found. + * Returns a `Result` whose success value is the first `Fail` reason in + * the cause, including its annotations. If the cause has no `Fail` reason, the + * failure value is the original cause narrowed to `Cause`, because it + * contains no typed error reasons. + * + * **When to use** * - * Use {@link findError} if you only need the unwrapped error value `E`. + * Use when you need the full `Fail` reason from a `Cause`, including + * annotations. * * **Example** (extracting the first Fail reason) * @@ -825,16 +898,20 @@ export declare const hasFails: (self: Cause) => boolean; * @see {@link findError} — extract the unwrapped `E` value * @see {@link findDie} — extract the first `Die` reason * - * @category filters + * @category filtering * @since 4.0.0 */ export declare const findFail: (self: Cause) => Result.Result, Cause>; /** - * Returns the first typed error value `E` from a cause. - * Returns `Filter.fail` with the remaining cause when no `Fail` is found. + * Returns a `Result` whose success value is the first typed error value `E` + * from a `Fail` reason in the cause. If the cause has no `Fail` reason, + * the failure value is the original cause narrowed to `Cause`, because + * it contains no typed error reasons. * - * Use {@link findFail} if you need the full {@link Fail} reason (including - * annotations). Use {@link findErrorOption} if you prefer an `Option`. + * **When to use** + * + * Use when you need the first typed error value from a `Cause` as a `Result` + * that preserves the original cause when no match is found. * * **Example** (extracting the first error value) * @@ -850,16 +927,18 @@ export declare const findFail: (self: Cause) => Result.Result, Cau * @see {@link findFail} — extract the full `Fail` reason * @see {@link findErrorOption} — `Option`-based variant * - * @category filters + * @category filtering * @since 4.0.0 */ export declare const findError: (self: Cause) => Result.Result>; /** * Returns the first typed error value `E` from a cause wrapped in - * `Option.some`, or `Option.none` if no {@link Fail} reason exists. + * `Option.some`, or `Option.none` if no `Fail` reason exists. + * + * **When to use** * - * This is a convenience wrapper around {@link findError} for code that - * already works with `Option` instead of `Filter`. + * Use when you need the first typed error value from a `Cause` as an `Option`, + * discarding the original cause. * * **Example** (extracting an error as Option) * @@ -873,14 +952,19 @@ export declare const findError: (self: Cause) => Result.Result(input: Cause) => Option; /** - * Returns `true` if the cause contains at least one {@link Die} reason. + * Returns `true` if the cause contains at least one `Die` reason. + * + * **When to use** + * + * Use to check whether a cause includes defects before extracting or rendering + * them. * * **Example** (checking for defects) * @@ -895,15 +979,18 @@ export declare const findErrorOption: (input: Cause) => Option; * @see {@link hasInterrupts} — check for interruptions * * @category predicates - * @since 2.0.0 + * @since 4.0.0 */ export declare const hasDies: (self: Cause) => boolean; /** - * Returns the first {@link Die} reason from a cause, including its - * annotations. Returns `Filter.fail` with the original cause when no - * `Die` is found. + * Returns a `Result` whose success value is the first `Die` reason in + * the cause, including its annotations. If the cause has no `Die` reason, the + * failure value is the original cause. * - * Use {@link findDefect} if you only need the unwrapped defect value. + * **When to use** + * + * Use when you need the full `Die` reason from a `Cause`, including + * annotations. * * **Example** (extracting the first Die reason) * @@ -919,17 +1006,19 @@ export declare const hasDies: (self: Cause) => boolean; * @see {@link findDefect} — extract the unwrapped defect value * @see {@link findFail} — extract the first `Fail` reason * - * @category filters + * @category filtering * @since 4.0.0 */ export declare const findDie: (self: Cause) => Result.Result>; /** - * Returns the first defect value (`unknown`) from a cause. - * Returns `Filter.fail` with the original cause when no {@link Die} reason - * is found. + * Returns a `Result` whose success value is the first defect value from a + * `Die` reason in the cause. If the cause has no `Die` reason, the + * failure value is the original cause. + * + * **When to use** * - * Use {@link findDie} if you need the full `Die` reason (including - * annotations). + * Use when you need the first defect value from a `Cause` as a `Result`, + * without the full `Die` reason. * * **Example** (extracting the first defect) * @@ -945,12 +1034,12 @@ export declare const findDie: (self: Cause) => Result.Result * @see {@link findDie} — extract the full `Die` reason * @see {@link findError} — extract the first typed error * - * @category filters + * @category filtering * @since 4.0.0 */ export declare const findDefect: (self: Cause) => Result.Result>; /** - * Returns `true` if the cause contains at least one {@link Interrupt} reason. + * Returns `true` if the cause contains at least one `Interrupt` reason. * * **Example** (checking for interruptions) * @@ -966,13 +1055,18 @@ export declare const findDefect: (self: Cause) => Result.Result(self: Cause) => boolean; /** - * Returns the first {@link Interrupt} reason from a cause, including its - * annotations. Returns `Filter.fail` with the original cause when no - * `Interrupt` is found. + * Returns a `Result` whose success value is the first `Interrupt` reason + * in the cause, including its annotations. If the cause has no `Interrupt` + * reason, the failure value is the original cause. + * + * **When to use** + * + * Use when you need the first `Interrupt` reason from a `Cause`, including the + * fiber ID and annotations. * * **Example** (extracting the first interrupt) * @@ -987,16 +1081,19 @@ export declare const hasInterrupts: (self: Cause) => boolean; * * @see {@link interruptors} — collect all interrupting fiber IDs as a `Set` * - * @category filters + * @category filtering * @since 4.0.0 */ export declare const findInterrupt: (self: Cause) => Result.Result>; /** - * Collects the fiber IDs of all {@link Interrupt} reasons in the cause into - * a `ReadonlySet`. Returns an empty set when the cause has no interrupts. + * Collects the defined fiber IDs from all `Interrupt` reasons in the + * cause into a `ReadonlySet`. Interrupt reasons without a `fiberId` are + * ignored. Returns an empty set when the cause has no interrupting fiber IDs. + * + * **When to use** * - * This always succeeds (no `Filter.fail`). Use {@link filterInterruptors} - * for the `Filter`-based variant. + * Use when you need interrupting fiber IDs as a set, with absence represented + * as an empty set. * * **Example** (collecting interruptors) * @@ -1007,45 +1104,61 @@ export declare const findInterrupt: (self: Cause) => Result.Result(self: Cause) => ReadonlySet; /** - * Extracts the set of interrupting fiber IDs from a cause. - * Returns `Filter.fail` with the original cause when no {@link Interrupt} - * reason is found. + * Returns a `Result` whose success value is the set of defined fiber IDs from + * the cause's `Interrupt` reasons. If the cause has no `Interrupt` + * reason, the failure value is the original cause. + * + * **When to use** * - * Use {@link interruptors} if you always want a `Set` (possibly empty) - * without `Filter` wrapping. + * Use when you need absence of interrupt reasons to fail with the original + * cause. * - * **Example** (extracting interruptors with Filter) + * **Gotchas** + * + * Interrupt reasons without a `fiberId` still count as interrupts, so the + * function succeeds with an empty `Set` when every interrupt reason has an + * undefined fiber ID. + * + * **Example** (extracting interruptors with Result) * * ```ts * import { Cause, Result } from "effect" * * const result = Cause.filterInterruptors(Cause.interrupt(1)) * if (!Result.isFailure(result)) { - * console.log(result.success) // Set { 1 } + * console.log(result.success) // Set(1) { 1 } * } * ``` * * @see {@link interruptors} — always-succeeding variant * - * @category filters + * @category filtering * @since 4.0.0 */ export declare const filterInterruptors: (self: Cause) => Result.Result, Cause>; /** - * Converts a {@link Cause} into an `Array` suitable for logging or + * Converts a `Cause` into an `Array` suitable for logging or * rethrowing. * - * Each {@link Fail} and {@link Die} reason is converted into a standard + * **When to use** + * + * Use to convert every renderable failure in a cause into individual `Error` + * values before logging or rethrowing. + * + * **Details** + * + * Each `Fail` and `Die` reason is converted into a standard * `Error`: * * - **Objects / Error instances** — `message`, `name`, `stack`, and `cause` @@ -1055,10 +1168,12 @@ export declare const filterInterruptors: (self: Cause) => Result.Result"`. * - * {@link Interrupt} reasons are collected separately. If the cause contains + * `Interrupt` reasons are collected separately. If the cause contains * **only** interrupts (no `Fail` or `Die`), a single `InterruptError` is * returned whose `cause` lists the interrupting fiber IDs. * + * An empty cause returns an empty array. + * * **Example** (converting a cause to errors) * * ```ts @@ -1072,13 +1187,19 @@ export declare const filterInterruptors: (self: Cause) => Result.Result(self: Cause) => Array; /** - * Renders a {@link Cause} as a human-readable string for logging or - * debugging. + * Formats a `Cause` as a human-readable string for logging or debugging. + * + * **When to use** + * + * Use to render a whole cause as one human-readable string for logs or + * diagnostics. + * + * **Details** * * Delegates to {@link prettyErrors} to convert each reason to an `Error`, * then joins their stack traces with newlines. Nested `Error.cause` chains @@ -1095,32 +1216,36 @@ export declare const prettyErrors: (self: Cause) => Array; * * Span annotations are appended to the relevant stack frames when available. * + * **Gotchas** + * + * Rendering an empty cause produces an empty string because there are no + * errors to render. + * * **Example** (rendering a cause) * * ```ts * import { Cause } from "effect" * - * const cause = Cause.fail("something went wrong") - * console.log(Cause.pretty(cause)) - * // Error: something went wrong - * // at ... + * const rendered = Cause.pretty(Cause.fail("something went wrong")) + * console.log(rendered.includes("something went wrong")) // true * ``` * * @see {@link prettyErrors} — get the individual `Error` instances * - * @since 4.0.0 * @category rendering + * @since 2.0.0 */ export declare const pretty: (cause: Cause) => string; /** * Base interface for error classes that can be yielded directly inside - * `Effect.gen` (via `Symbol.iterator`) or converted to a failing Effect - * via `.asEffect()`. + * `Effect.gen`. Yielding one of these errors fails the generator with that + * error as the typed failure value. + * + * **Details** * - * All built-in error classes in this module ({@link NoSuchElementError}, - * {@link TimeoutError}, {@link IllegalArgumentError}, - * {@link ExceededCapacityError}, {@link UnknownError}) extend this - * interface. + * All built-in error classes in this module (`NoSuchElementError`, + * `TimeoutError`, `IllegalArgumentError`, `ExceededCapacityError`, + * `AsyncFiberError`, and `UnknownError`) implement this interface. * * **Example** (yielding an error in Effect.gen) * @@ -1134,15 +1259,15 @@ export declare const pretty: (cause: Cause) => string; * }) * ``` * - * @since 2.0.0 * @category errors + * @since 2.0.0 */ -export interface YieldableError extends Error, Pipeable { - [Symbol.iterator](): Effect.EffectIterator; - asEffect(): Effect.Effect; +export interface YieldableError extends Error, Pipeable, Inspectable { + readonly [Effect.TypeId]: Effect.Variance; + [Symbol.iterator](): Effect.EffectIterator>; } /** - * Tests if an arbitrary value is a {@link NoSuchElementError}. + * Checks whether an arbitrary value is a `NoSuchElementError`. * * **Example** (runtime type check) * @@ -1158,19 +1283,31 @@ export interface YieldableError extends Error, Pipeable { */ export declare const isNoSuchElementError: (u: unknown) => u is NoSuchElementError; /** - * Unique brand for {@link NoSuchElementError}. + * Unique brand for `NoSuchElementError`. * + * @category type IDs * @since 4.0.0 - * @category symbols */ export declare const NoSuchElementErrorTypeId: "~effect/Cause/NoSuchElementError"; /** - * An error indicating that a requested element does not exist. + * An error indicating that an expected value was absent. * - * Thrown by APIs like `Array.head`, `Option.getOrThrow`, `Map.get`, etc. - * when no element matches. Implements {@link YieldableError} so it can be + * **When to use** + * + * Use to model APIs that intentionally turn absence into an error. + * + * **Details** + * + * Used by APIs that convert absence into an exception or effect failure, such + * as `Option.getOrThrow`. Implements `YieldableError` so it can be * yielded directly in `Effect.gen`. * + * **Gotchas** + * + * Prefer APIs that return `Option` or a typed failure when absence is an + * expected case. This error is mainly for APIs that intentionally turn absence + * into a thrown value or failed effect. + * * **Example** (creating and checking) * * ```ts @@ -1181,18 +1318,20 @@ export declare const NoSuchElementErrorTypeId: "~effect/Cause/NoSuchElementError * console.log(error.message) // "Element not found" * ``` * - * @see {@link isNoSuchElementError} — type guard - * @see {@link NoSuchElementError:var | NoSuchElementError constructor} - * - * @since 4.0.0 * @category errors + * @since 4.0.0 */ export interface NoSuchElementError extends YieldableError { readonly [NoSuchElementErrorTypeId]: typeof NoSuchElementErrorTypeId; readonly _tag: "NoSuchElementError"; } /** - * Constructs a {@link NoSuchElementError} with an optional message. + * Constructs a `NoSuchElementError` with an optional message. + * + * **When to use** + * + * Use to create the error value for APIs that intentionally fail when an + * expected element is absent. * * **Example** (creating a NoSuchElementError) * @@ -1203,12 +1342,14 @@ export interface NoSuchElementError extends YieldableError { * console.log(error.message) // "Element not found" * ``` * + * @see {@link isNoSuchElementError} for checking unknown values + * * @category constructors * @since 4.0.0 */ export declare const NoSuchElementError: new (message?: string) => NoSuchElementError; /** - * Tests if an arbitrary value is a {@link Done} signal. + * Checks whether an arbitrary value is a `Done` signal. * * **Example** (runtime type check) * @@ -1224,15 +1365,22 @@ export declare const NoSuchElementError: new (message?: string) => NoSuchElement */ export declare const isDone: (u: unknown) => u is Done; /** - * Unique brand for {@link Done} values. + * Unique brand for `Done` values. * + * @category type IDs * @since 4.0.0 - * @category symbols */ export declare const DoneTypeId: "~effect/Cause/Done"; /** * A graceful completion signal for queues and streams. * + * **When to use** + * + * Use to model normal producer completion through a stream or queue error + * channel. + * + * **Details** + * * `Done` indicates that a producer has finished normally — no more elements * will arrive. It is distinct from an error or interruption; it represents * successful completion. The optional `value` field can carry a final @@ -1253,11 +1401,8 @@ export declare const DoneTypeId: "~effect/Cause/Done"; * }) * ``` * - * @see {@link isDone} — type guard - * @see {@link done} — create a failing Effect with `Done` - * - * @since 4.0.0 * @category errors + * @since 4.0.0 */ export interface Done { readonly [DoneTypeId]: typeof DoneTypeId; @@ -1265,28 +1410,33 @@ export interface Done { readonly value: A; } /** - * Companion namespace for the {@link Done} interface. + * Companion namespace for the `Done` interface. * * @since 4.0.0 - * @category errors */ export declare namespace Done { /** * Extracts the value type `A` from a `Done` that may be nested in an * error union. * + * @category utility types * @since 4.0.0 */ type Extract = E extends Done ? L : never; /** * Filters a type union to only keep `Done` members. * + * @category filtering * @since 4.0.0 */ type Only = E extends Done ? Done : never; } /** - * Creates a {@link Done} signal with an optional value. + * Creates a `Done` signal with an optional value. + * + * **When to use** + * + * Use when you need to construct a low-level pull completion signal directly. * * @see {@link done} — create a failing `Effect` with `Done` * @@ -1295,24 +1445,40 @@ export declare namespace Done { */ export declare const Done: (value?: A) => Done; /** - * Creates an Effect that fails with a {@link Done} error. Shorthand for + * Creates an Effect that fails with a `Done` error. Shorthand for * `Effect.fail(Cause.Done(value))`. * - * @see {@link Done:var | Done} — create the signal value without an Effect + * **When to use** + * + * Use when you model stream or queue completion through the error channel. + * + * **Example** (failing with Done) + * + * ```ts + * import { Cause, Effect } from "effect" + * + * const program = Cause.done("finished") + * + * Effect.runPromiseExit(program).then((exit) => { + * console.log(exit._tag) // "Failure" + * }) + * ``` + * + * @see {@link Done} — create the signal value without an Effect * * @category constructors * @since 4.0.0 */ export declare const done: (value?: A) => Effect.Effect>; /** - * Unique brand for {@link TimeoutError}. + * Unique brand for `TimeoutError`. * + * @category type IDs * @since 4.0.0 - * @category symbols */ export declare const TimeoutErrorTypeId: "~effect/Cause/TimeoutError"; /** - * Tests if an arbitrary value is a {@link TimeoutError}. + * Checks whether an arbitrary value is a `TimeoutError`. * * **Example** (runtime type check) * @@ -1330,8 +1496,10 @@ export declare const isTimeoutError: (u: unknown) => u is TimeoutError; /** * An error indicating that an operation exceeded its time limit. * + * **Details** + * * Produced by `Effect.timeout` and related APIs. Implements - * {@link YieldableError}. + * `YieldableError`. * * **Example** (creating and checking) * @@ -1343,17 +1511,15 @@ export declare const isTimeoutError: (u: unknown) => u is TimeoutError; * console.log(error.message) // "Operation timed out" * ``` * - * @see {@link isTimeoutError} — type guard - * - * @since 4.0.0 * @category errors + * @since 4.0.0 */ export interface TimeoutError extends YieldableError { readonly [TimeoutErrorTypeId]: typeof TimeoutErrorTypeId; readonly _tag: "TimeoutError"; } /** - * Constructs a {@link TimeoutError} with an optional message. + * Constructs a `TimeoutError` with an optional message. * * **Example** (creating a TimeoutError) * @@ -1369,14 +1535,14 @@ export interface TimeoutError extends YieldableError { */ export declare const TimeoutError: new (message?: string) => TimeoutError; /** - * Unique brand for {@link IllegalArgumentError}. + * Unique brand for `IllegalArgumentError`. * + * @category type IDs * @since 4.0.0 - * @category symbols */ export declare const IllegalArgumentErrorTypeId: "~effect/Cause/IllegalArgumentError"; /** - * Tests if an arbitrary value is an {@link IllegalArgumentError}. + * Checks whether an arbitrary value is an `IllegalArgumentError`. * * **Example** (runtime type check) * @@ -1395,7 +1561,9 @@ export declare const isIllegalArgumentError: (u: unknown) => u is IllegalArgumen * An error indicating that a function received an argument that violates * its contract (e.g. negative where positive was expected). * - * Implements {@link YieldableError}. + * **Details** + * + * Implements `YieldableError`. * * **Example** (creating and checking) * @@ -1407,17 +1575,15 @@ export declare const isIllegalArgumentError: (u: unknown) => u is IllegalArgumen * console.log(error.message) // "Expected positive number" * ``` * - * @see {@link isIllegalArgumentError} — type guard - * - * @since 4.0.0 * @category errors + * @since 4.0.0 */ export interface IllegalArgumentError extends YieldableError { readonly [IllegalArgumentErrorTypeId]: typeof IllegalArgumentErrorTypeId; readonly _tag: "IllegalArgumentError"; } /** - * Constructs an {@link IllegalArgumentError} with an optional message. + * Constructs an `IllegalArgumentError` with an optional message. * * **Example** (creating an IllegalArgumentError) * @@ -1433,7 +1599,7 @@ export interface IllegalArgumentError extends YieldableError { */ export declare const IllegalArgumentError: new (message?: string) => IllegalArgumentError; /** - * Tests if an arbitrary value is an {@link ExceededCapacityError}. + * Checks whether an arbitrary value is an `ExceededCapacityError`. * * **Example** (runtime type check) * @@ -1449,17 +1615,24 @@ export declare const IllegalArgumentError: new (message?: string) => IllegalArgu */ export declare const isExceededCapacityError: (u: unknown) => u is ExceededCapacityError; /** - * Unique brand for {@link ExceededCapacityError}. + * Unique brand for `ExceededCapacityError`. * + * @category type IDs * @since 4.0.0 - * @category symbols */ export declare const ExceededCapacityErrorTypeId: "~effect/Cause/ExceededCapacityError"; /** * An error indicating that a bounded resource (queue, pool, semaphore, etc.) * has exceeded its capacity. * - * Implements {@link YieldableError}. + * **When to use** + * + * Use to model bounded-resource failures where an operation cannot proceed + * because capacity has been exhausted. + * + * **Details** + * + * Implements `YieldableError`. * * **Example** (creating and checking) * @@ -1471,17 +1644,19 @@ export declare const ExceededCapacityErrorTypeId: "~effect/Cause/ExceededCapacit * console.log(error.message) // "Queue full" * ``` * - * @see {@link isExceededCapacityError} — type guard - * - * @since 4.0.0 * @category errors + * @since 4.0.0 */ export interface ExceededCapacityError extends YieldableError { readonly [ExceededCapacityErrorTypeId]: typeof ExceededCapacityErrorTypeId; readonly _tag: "ExceededCapacityError"; } /** - * Constructs an {@link ExceededCapacityError} with an optional message. + * Constructs an `ExceededCapacityError` with an optional message. + * + * **When to use** + * + * Use to create the error value for bounded-resource capacity failures. * * **Example** (creating an ExceededCapacityError) * @@ -1492,18 +1667,36 @@ export interface ExceededCapacityError extends YieldableError { * console.log(error.message) // "Queue full" * ``` * + * @see {@link isExceededCapacityError} for checking unknown values + * * @category constructors * @since 4.0.0 */ export declare const ExceededCapacityError: new (message?: string) => ExceededCapacityError; /** - * Unique brand for {@link AsyncFiberError}. + * Unique brand present on `AsyncFiberError` values and used by + * `isAsyncFiberError` for runtime checks. * + * @category type IDs * @since 4.0.0 - * @category symbols */ export declare const AsyncFiberErrorTypeId: "~effect/Cause/AsyncFiberError"; /** + * Checks whether an arbitrary value is an `AsyncFiberError`. + * + * **Example** (runtime type check) + * + * ```ts + * import { Cause } from "effect" + * import type { Fiber } from "effect" + * + * declare const fiber: Fiber.Fiber + * + * const error = new Cause.AsyncFiberError(fiber) + * console.log(Cause.isAsyncFiberError(error)) // true + * console.log(Cause.isAsyncFiberError("nope")) // false + * ``` + * * @category guards * @since 4.0.0 */ @@ -1511,8 +1704,31 @@ export declare const isAsyncFiberError: (u: unknown) => u is AsyncFiberError; /** * An error that occurs when trying to run an async fiber with Effect.runSync. * - * @since 4.0.0 + * **When to use** + * + * Use to inspect failures produced when synchronous runners encounter an effect + * that cannot complete synchronously. + * + * **Details** + * + * The `fiber` property stores the fiber that could not be synchronously + * resolved. This error implements `YieldableError`. + * + * **Example** (accessing the fiber) + * + * ```ts + * import { Cause } from "effect" + * import type { Fiber } from "effect" + * + * declare const fiber: Fiber.Fiber + * + * const error = new Cause.AsyncFiberError(fiber) + * console.log(error._tag) // "AsyncFiberError" + * console.log(error.fiber === fiber) // true + * ``` + * * @category errors + * @since 4.0.0 */ export interface AsyncFiberError extends YieldableError { readonly [AsyncFiberErrorTypeId]: typeof AsyncFiberErrorTypeId; @@ -1520,21 +1736,41 @@ export interface AsyncFiberError extends YieldableError { readonly fiber: Fiber; } /** - * An error that occurs when trying to run an async fiber with Effect.runSync. + * Constructs an `AsyncFiberError` for a fiber that could not be resolved + * synchronously. + * + * **When to use** + * + * Use to create the error value for a fiber that could not be completed by a + * synchronous runner. + * + * **Example** (creating an AsyncFiberError) + * + * ```ts + * import { Cause } from "effect" + * import type { Fiber } from "effect" + * + * declare const fiber: Fiber.Fiber + * + * const error = new Cause.AsyncFiberError(fiber) + * console.log(error.message) // "An asynchronous Effect was executed with Effect.runSync" + * ``` + * + * @see {@link isAsyncFiberError} for checking unknown values * * @category constructors * @since 4.0.0 */ export declare const AsyncFiberError: new (fiber: Fiber) => AsyncFiberError; /** - * Unique brand for {@link UnknownError}. + * Unique brand for `UnknownError`. * + * @category type IDs * @since 4.0.0 - * @category symbols */ export declare const UnknownErrorTypeId: "~effect/Cause/UnknownError"; /** - * Tests if an arbitrary value is an {@link UnknownError}. + * Checks whether an arbitrary value is an `UnknownError`. * * **Example** (runtime type check) * @@ -1552,9 +1788,11 @@ export declare const isUnknownError: (u: unknown) => u is UnknownError; /** * A wrapper for errors whose type is not statically known. * - * Produced by the runtime when an effect throws a non-`Error` value. - * The original thrown value is stored in the `cause` property (inherited - * from `Error`). Implements {@link YieldableError}. + * **Details** + * + * Used when a thrown or rejected value is not represented by a more specific + * typed error. The original value is stored in the `cause` property inherited + * from `Error`. Implements `YieldableError`. * * **Example** (creating and checking) * @@ -1566,17 +1804,15 @@ export declare const isUnknownError: (u: unknown) => u is UnknownError; * console.log(error.message) // "Something unknown" * ``` * - * @see {@link isUnknownError} — type guard - * - * @since 4.0.0 * @category errors + * @since 4.0.0 */ export interface UnknownError extends YieldableError { readonly [UnknownErrorTypeId]: typeof UnknownErrorTypeId; readonly _tag: "UnknownError"; } /** - * Constructs an {@link UnknownError}. The first argument is the original + * Constructs an `UnknownError`. The first argument is the original * cause (stored in `Error.cause`); the second is an optional human-readable * message. * @@ -1594,13 +1830,19 @@ export interface UnknownError extends YieldableError { */ export declare const UnknownError: new (cause: unknown, message?: string) => UnknownError; /** - * Attaches metadata to every reason in a {@link Cause}. + * Attaches metadata to every reason in a `Cause`. + * + * **When to use** + * + * Use to attach diagnostic metadata to every reason in a cause. + * + * **Details** * * Annotations are stored as a `Context` on each reason and can be * retrieved later via {@link reasonAnnotations} or {@link annotations}. * The runtime uses this to attach stack traces and spans. * - * - Returns a new `Cause`; does not mutate the input. + * - Returns a new `Cause`. * - By default, existing keys are preserved. Pass `{ overwrite: true }` to * replace them. * @@ -1609,25 +1851,35 @@ export declare const UnknownError: new (cause: unknown, message?: string) => Unk * ```ts * import { Cause, Context } from "effect" * + * class RequestId extends Context.Service()("RequestId") {} + * * const cause = Cause.fail("error") - * const annotated = Cause.annotate(cause, Context.empty()) + * const annotated = Cause.annotate(cause, Context.make(RequestId, "req-1")) + * + * console.log(Context.getOrUndefined(Cause.annotations(annotated), RequestId)) // "req-1" * ``` * - * @see {@link annotations} — read merged annotations from a cause - * @see {@link reasonAnnotations} — read annotations from a single reason + * @see {@link annotations} for reading merged annotations from a cause + * @see {@link reasonAnnotations} for reading annotations from a single reason * * @category annotations * @since 4.0.0 */ export declare const annotate: { /** - * Attaches metadata to every reason in a {@link Cause}. + * Attaches metadata to every reason in a `Cause`. + * + * **When to use** + * + * Use to attach diagnostic metadata to every reason in a cause. + * + * **Details** * * Annotations are stored as a `Context` on each reason and can be * retrieved later via {@link reasonAnnotations} or {@link annotations}. * The runtime uses this to attach stack traces and spans. * - * - Returns a new `Cause`; does not mutate the input. + * - Returns a new `Cause`. * - By default, existing keys are preserved. Pass `{ overwrite: true }` to * replace them. * @@ -1636,12 +1888,16 @@ export declare const annotate: { * ```ts * import { Cause, Context } from "effect" * + * class RequestId extends Context.Service()("RequestId") {} + * * const cause = Cause.fail("error") - * const annotated = Cause.annotate(cause, Context.empty()) + * const annotated = Cause.annotate(cause, Context.make(RequestId, "req-1")) + * + * console.log(Context.getOrUndefined(Cause.annotations(annotated), RequestId)) // "req-1" * ``` * - * @see {@link annotations} — read merged annotations from a cause - * @see {@link reasonAnnotations} — read annotations from a single reason + * @see {@link annotations} for reading merged annotations from a cause + * @see {@link reasonAnnotations} for reading annotations from a single reason * * @category annotations * @since 4.0.0 @@ -1650,13 +1906,19 @@ export declare const annotate: { readonly overwrite?: boolean | undefined; }): (self: Cause) => Cause; /** - * Attaches metadata to every reason in a {@link Cause}. + * Attaches metadata to every reason in a `Cause`. + * + * **When to use** + * + * Use to attach diagnostic metadata to every reason in a cause. + * + * **Details** * * Annotations are stored as a `Context` on each reason and can be * retrieved later via {@link reasonAnnotations} or {@link annotations}. * The runtime uses this to attach stack traces and spans. * - * - Returns a new `Cause`; does not mutate the input. + * - Returns a new `Cause`. * - By default, existing keys are preserved. Pass `{ overwrite: true }` to * replace them. * @@ -1665,12 +1927,16 @@ export declare const annotate: { * ```ts * import { Cause, Context } from "effect" * + * class RequestId extends Context.Service()("RequestId") {} + * * const cause = Cause.fail("error") - * const annotated = Cause.annotate(cause, Context.empty()) + * const annotated = Cause.annotate(cause, Context.make(RequestId, "req-1")) + * + * console.log(Context.getOrUndefined(Cause.annotations(annotated), RequestId)) // "req-1" * ``` * - * @see {@link annotations} — read merged annotations from a cause - * @see {@link reasonAnnotations} — read annotations from a single reason + * @see {@link annotations} for reading merged annotations from a cause + * @see {@link reasonAnnotations} for reading annotations from a single reason * * @category annotations * @since 4.0.0 @@ -1680,25 +1946,60 @@ export declare const annotate: { }): Cause; }; /** - * Reads the annotations from a single {@link Reason} as a `Context`. + * Reads the annotations from a single `Reason` as a `Context`. + * + * **When to use** * - * Use this when you need tracing metadata (e.g. {@link StackTrace}) from + * Use when you need tracing metadata (e.g. `StackTrace`) from * a specific reason rather than the whole cause. * + * **Example** (reading reason annotations) + * + * ```ts + * import { Cause, Context } from "effect" + * + * class RequestId extends Context.Service()("RequestId") {} + * + * const reason = Cause.makeFailReason("error") + * const annotated = reason.annotate(Context.make(RequestId, "req-1")) + * + * console.log(Context.getOrUndefined(Cause.reasonAnnotations(annotated), RequestId)) // "req-1" + * ``` + * * @see {@link annotations} — merged annotations from all reasons in a cause - * @see {@link annotate} — attach annotations * * @category annotations * @since 4.0.0 */ export declare const reasonAnnotations: (self: Reason) => Context.Context; /** - * Reads the merged annotations from all reasons in a {@link Cause}. + * Reads the merged annotations from all reasons in a `Cause`. + * + * **When to use** + * + * Use to read diagnostic metadata merged from the whole cause. + * + * **Gotchas** * - * Annotations from later reasons overwrite earlier ones when keys collide. + * When multiple reasons contain the same annotation key, the value from the + * later reason wins. + * + * **Example** (reading merged annotations) + * + * ```ts + * import { Cause, Context } from "effect" + * + * class RequestId extends Context.Service()("RequestId") {} + * + * const cause = Cause.annotate( + * Cause.fail("error"), + * Context.make(RequestId, "req-1") + * ) + * + * console.log(Context.getOrUndefined(Cause.annotations(cause), RequestId)) // "req-1" + * ``` * * @see {@link reasonAnnotations} — annotations from a single reason - * @see {@link annotate} — attach annotations * * @category annotations * @since 4.0.0 @@ -1706,12 +2007,23 @@ export declare const reasonAnnotations: (self: Reason) => Context.Context< export declare const annotations: (self: Cause) => Context.Context; declare const StackTrace_base: Context.ServiceClass; /** - * `Context` key for the stack frame captured at the point of failure. + * Context annotation used to store the stack frame captured at the point of failure. + * + * **When to use** + * + * Use to read the failure stack-frame annotation from a `Reason` when building + * diagnostics, logging, or custom cause renderers. + * + * **Details** * * The runtime annotates every reason with this when a stack frame is * available. Retrieve it via * `Context.get(Cause.reasonAnnotations(reason), Cause.StackTrace)`. * + * @see {@link reasonAnnotations} for reading annotations from a single reason + * @see {@link annotations} for reading merged annotations from a cause + * @see {@link InterruptorStackTrace} for the interrupt-specific stack-frame annotation + * * @category annotations * @since 4.0.0 */ @@ -1719,10 +2031,21 @@ export declare class StackTrace extends StackTrace_base { } declare const InterruptorStackTrace_base: Context.ServiceClass; /** - * `Context` key for the stack frame captured at the point of + * Context annotation used to store the stack frame captured at the point of * interruption. * - * Similar to {@link StackTrace} but specific to {@link Interrupt} reasons. + * **When to use** + * + * Use when you need the stack-frame annotation used by interrupt-only cause + * rendering. + * + * **Details** + * + * Similar to `StackTrace` but specific to `Interrupt` reasons. + * + * @see {@link StackTrace} for stack frames attached to failures + * @see {@link reasonAnnotations} for reading annotations from a single reason + * @see {@link annotate} for attaching annotations to a cause * * @category annotations * @since 4.0.0 diff --git a/.opencode/node_modules/effect/dist/Cause.d.ts.map b/.opencode/node_modules/effect/dist/Cause.d.ts.map index 76057c1040509d90c24e2635f9a0e02b7cc21e0d..a49bb773b1edc17ee60b99c53dfe53b4835d1da7 100644 --- a/.opencode/node_modules/effect/dist/Cause.d.ts.map +++ b/.opencode/node_modules/effect/dist/Cause.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Cause.d.ts","sourceRoot":"","sources":["../src/Cause.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8EG;AACH,OAAO,KAAK,OAAO,MAAM,cAAc,CAAA;AACvC,OAAO,KAAK,KAAK,MAAM,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AACvC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AACvC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAGnD,OAAO,KAAK,EAA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,QAAQ,EAAE;IACrB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmCG;IACH,CACC,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,EACnC,OAAO,CAAC,EAAE;QAAE,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;KAAE,GACpD,CAAC,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC,CAAC,CAAA;IAClC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmCG;IACH,CAAC,CAAC,EACD,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,EACd,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,EACnC,OAAO,CAAC,EAAE;QAAE,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;KAAE,GACpD,KAAK,CAAC,CAAC,CAAC,CAAA;CACS,CAAA;AAEtB;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,iBAAiB,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,OAAO,CAAC,KAAK,CAA4B,CAAA;AAEzG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,eAAO,MAAM,WAAW,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,OAAO,CAAC,KAAK,CAA2B,CAAA;;AAEjG;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,qBAAa,UAAW,SAAQ,eAAoE;CAAG;;AAEvG;;;;;;;;;;;;;;;;;;;GAmBG;AACH,qBAAa,qBACX,SAAQ,0BAA0F;CAClG"} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Cause.js b/.opencode/node_modules/effect/dist/Cause.js index 350d056797a0c51f8e7885a43f71990ec11072e5..4a462752fe7d202f7dd0067d42d27b7df7029589 100644 --- a/.opencode/node_modules/effect/dist/Cause.js +++ b/.opencode/node_modules/effect/dist/Cause.js @@ -1,79 +1,11 @@ /** - * Structured representation of how an Effect can fail. - * - * A `Cause` holds a flat array of `Reason` values, where each reason is one of: - * - * - **Fail** — a typed, expected error `E` (created by `Effect.fail`) - * - **Die** — an untyped defect (`unknown`) from `Effect.die` or uncaught throws - * - **Interrupt** — a fiber interruption, optionally carrying the interrupting fiber's ID - * - * ## Mental model - * - * - A `Cause` is always flat: concurrent and sequential failures are stored together - * in `cause.reasons` (a `ReadonlyArray>`). - * - Each `Reason` carries an `annotations` map with tracing metadata (stack frames, spans). - * - An empty `reasons` array means the computation succeeded or the cause was empty - * ({@link empty}). - * - `Cause` implements `Equal`, so two causes with identical reasons compare as equal. - * - * ## Common tasks - * - * | Intent | API | - * |--------|-----| - * | Create a cause | {@link fail}, {@link die}, {@link interrupt}, {@link fromReasons} | - * | Test for reason types | {@link hasFails}, {@link hasDies}, {@link hasInterrupts} | - * | Extract the first error/defect | {@link findError}, {@link findDefect}, {@link findFail}, {@link findDie} | - * | Iterate over reasons manually | `cause.reasons.filter(Cause.isFailReason)` | - * | Combine two causes | {@link combine} | - * | Transform errors | {@link map} | - * | Collapse to a single thrown value | {@link squash} | - * | Render for logging | {@link pretty}, {@link prettyErrors} | - * | Attach/read tracing metadata | {@link annotate}, {@link annotations}, {@link reasonAnnotations} | - * - * ## Gotchas - * - * - `findError`/`findDefect` return `Filter.fail` (not `Option.none`) when no match is - * found. Use {@link findErrorOption} if you need an `Option`. - * - `squash` picks the first `Fail` error, then the first `Die` defect, then falls back - * to a generic "interrupted" / "empty" error. It is lossy — use `prettyErrors` or - * iterate `reasons` directly when you need all failures. - * - The module also exports several built-in error classes (`NoSuchElementError`, - * `TimeoutError`, `IllegalArgumentError`, `ExceededCapacityError`, `UnknownError`) - * and the `Done` completion signal. These all implement `YieldableError` and can be - * yielded directly inside `Effect.gen`. - * - * **Example** (inspecting a concurrent failure) + * Records the full reason an `Effect` failed. * - * ```ts - * import { Cause, Effect } from "effect" - * - * const program = Effect.gen(function*() { - * const cause = yield* Effect.sandbox( - * Effect.all([ - * Effect.fail("err1"), - * Effect.die("defect"), - * Effect.fail("err2") - * ], { concurrency: "unbounded" }) - * ).pipe(Effect.flip) - * - * const errors = cause.reasons - * .filter(Cause.isFailReason) - * .map((r) => r.error) - * - * const defects = cause.reasons - * .filter(Cause.isDieReason) - * .map((r) => r.defect) - * - * console.log(errors) // ["err1", "err2"] (order may vary) - * console.log(defects) // ["defect"] - * }) - * - * Effect.runPromise(program) - * ``` - * - * @see {@link Cause} — the core interface - * @see {@link Reason} — the union of failure kinds - * @see {@link pretty} — human-readable rendering + * A `Cause` can contain typed failures, unexpected defects, interruptions, + * and annotations. Keeping those details together lets code inspect or format + * failures without first collapsing them to a single error value. This module + * includes the `Cause` and `Reason` data types, helpers for building and + * checking causes, and small error types used by several Effect APIs. * * @since 2.0.0 */ @@ -83,19 +15,19 @@ import * as effect from "./internal/effect.js"; /** * Unique brand for `Cause` values, used for runtime type checks via {@link isCause}. * - * @since 2.0.0 - * @category symbols + * @category type IDs + * @since 4.0.0 */ export const TypeId = core.CauseTypeId; /** * Unique brand for `Reason` values, used for runtime type checks via {@link isReason}. * - * @since 2.0.0 - * @category symbols + * @category type IDs + * @since 4.0.0 */ export const ReasonTypeId = core.CauseReasonTypeId; /** - * Tests if an arbitrary value is a {@link Cause}. + * Checks whether an arbitrary value is a `Cause`. * * **Example** (runtime type check) * @@ -111,7 +43,7 @@ export const ReasonTypeId = core.CauseReasonTypeId; */ export const isCause = core.isCause; /** - * Tests if an arbitrary value is a {@link Reason} (`Fail`, `Die`, or `Interrupt`). + * Checks whether an arbitrary value is a `Reason` (`Fail`, `Die`, or `Interrupt`). * * **Example** (runtime type check) * @@ -124,13 +56,16 @@ export const isCause = core.isCause; * ``` * * @category guards - * @since 2.0.0 + * @since 4.0.0 */ export const isReason = core.isCauseReason; /** - * Narrows a {@link Reason} to {@link Fail}. + * Narrows a `Reason` to `Fail`. + * + * **When to use** * - * Useful as a predicate for `Array.filter` when iterating over `cause.reasons`. + * Use as a predicate for `Array.filter` to pick out typed `Fail` reasons when + * iterating over `cause.reasons`. * * **Example** (filtering fail reasons) * @@ -150,9 +85,12 @@ export const isReason = core.isCauseReason; */ export const isFailReason = core.isFailReason; /** - * Narrows a {@link Reason} to {@link Die}. + * Narrows a `Reason` to `Die`. * - * Useful as a predicate for `Array.filter` when iterating over `cause.reasons`. + * **When to use** + * + * Use as a predicate for `Array.filter` to pick out `Die` (defect) reasons when + * iterating over `cause.reasons`. * * **Example** (filtering die reasons) * @@ -172,9 +110,12 @@ export const isFailReason = core.isFailReason; */ export const isDieReason = core.isDieReason; /** - * Narrows a {@link Reason} to {@link Interrupt}. + * Narrows a `Reason` to `Interrupt`. + * + * **When to use** * - * Useful as a predicate for `Array.filter` when iterating over `cause.reasons`. + * Use as a predicate for `Array.filter` to pick out `Interrupt` reasons when + * iterating over `cause.reasons`. * * **Example** (filtering interrupt reasons) * @@ -194,14 +135,23 @@ export const isDieReason = core.isDieReason; */ export const isInterruptReason = core.isInterruptReason; /** - * Creates a {@link Cause} from an array of {@link Reason} values. + * Creates a `Cause` from an array of `Reason` values. * - * Use this when you already have individual reasons (e.g. from filtering or + * **When to use** + * + * Use when you already have individual reasons (e.g. from filtering or * transforming another cause's `reasons` array) and need to wrap them back * into a `Cause`. * - * - Returns a new `Cause`; does not mutate the input array. - * - An empty array produces a cause equivalent to {@link empty}. + * **Details** + * + * - Returns a new `Cause`. + * - An empty array produces a cause equivalent to `empty`. + * + * **Gotchas** + * + * The `reasons` array is stored as provided. Treat the array as immutable + * after passing it to this function. * * **Example** (building a cause from reasons) * @@ -219,25 +169,47 @@ export const isInterruptReason = core.isInterruptReason; * @see {@link combine} — merge two existing causes * * @category constructors - * @since 2.0.0 + * @since 4.0.0 */ export const fromReasons = core.causeFromReasons; /** - * A {@link Cause} with an empty `reasons` array. + * Represents a `Cause` with an empty `reasons` array. + * + * **When to use** + * + * Use to represent the absence of failure when constructing or combining + * causes. + * + * **Details** * * Represents the absence of failure. Combining any cause with `empty` via * {@link combine} returns the original cause unchanged. * - * @see {@link combine} + * **Example** (combining with the empty cause) + * + * ```ts + * import { Cause } from "effect" + * + * const cause = Cause.combine(Cause.empty, Cause.fail("boom")) + * + * console.log(cause.reasons.length) // 1 + * console.log(Cause.hasFails(cause)) // true + * ``` + * + * @see {@link combine} for merging causes where `empty` acts as the identity * * @category constructors * @since 2.0.0 */ export const empty = core.causeEmpty; /** - * Creates a {@link Cause} containing a single {@link Fail} reason with the + * Creates a `Cause` containing a single `Fail` reason with the * given typed error. * + * **When to use** + * + * Use to construct a cause from an expected typed error. + * * **Example** (creating a fail cause) * * ```ts @@ -256,15 +228,19 @@ export const empty = core.causeEmpty; */ export const fail = core.causeFail; /** - * Creates a {@link Cause} containing a single {@link Die} reason with the + * Creates a `Cause` containing a single `Die` reason with the * given defect. * + * **When to use** + * + * Use to construct a cause from an untyped defect or unexpected thrown value. + * * **Example** (creating a die cause) * * ```ts * import { Cause } from "effect" * - * const cause = Cause.die(new Error("Unexpected")) + * const cause = Cause.die("Unexpected") * console.log(cause.reasons.length) // 1 * console.log(Cause.isDieReason(cause.reasons[0])) // true * ``` @@ -277,7 +253,7 @@ export const fail = core.causeFail; */ export const die = core.causeDie; /** - * Creates a {@link Cause} containing a single {@link Interrupt} reason, + * Creates a `Cause` containing a single `Interrupt` reason, * optionally carrying the interrupting fiber's ID. * * **Example** (creating an interrupt cause) @@ -298,10 +274,12 @@ export const die = core.causeDie; */ export const interrupt = effect.causeInterrupt; /** - * Creates a standalone {@link Fail} reason (not wrapped in a {@link Cause}). + * Creates a standalone `Fail` reason (not wrapped in a `Cause`). * - * Use this when you need to construct individual reasons for - * {@link fromReasons} or for direct comparison. + * **When to use** + * + * Use when constructing a standalone typed failure reason for + * {@link fromReasons} or direct comparison. * * **Example** (creating a Fail reason) * @@ -321,15 +299,21 @@ export const interrupt = effect.causeInterrupt; */ export const makeFailReason = error => new core.Fail(error); /** - * Creates a standalone {@link Die} reason (not wrapped in a {@link Cause}). + * Creates a standalone `Die` reason (not wrapped in a `Cause`). + * + * **When to use** + * + * Use when constructing a standalone defect reason for {@link fromReasons} or + * direct comparison. * * **Example** (creating a Die reason) * * ```ts * import { Cause } from "effect" * - * const reason = Cause.makeDieReason(new Error("bug")) + * const reason = Cause.makeDieReason("bug") * console.log(reason._tag) // "Die" + * console.log(reason.defect) // "bug" * ``` * * @see {@link makeFailReason} — create a `Fail` reason @@ -340,9 +324,14 @@ export const makeFailReason = error => new core.Fail(error); */ export const makeDieReason = defect => new core.Die(defect); /** - * Creates a standalone {@link Interrupt} reason (not wrapped in a {@link Cause}), + * Creates a standalone `Interrupt` reason (not wrapped in a `Cause`), * optionally carrying the interrupting fiber's ID. * + * **When to use** + * + * Use when constructing a standalone interrupt reason for {@link fromReasons} + * or direct comparison. + * * **Example** (creating an Interrupt reason) * * ```ts @@ -361,11 +350,12 @@ export const makeDieReason = defect => new core.Die(defect); */ export const makeInterruptReason = effect.makeInterruptReason; /** - * Returns `true` if every reason in the cause is an {@link Interrupt} (and + * Returns `true` if every reason in the cause is an `Interrupt` (and * there is at least one reason). * - * Useful for deciding whether a failure was entirely due to interruption and - * can be silently discarded. + * **When to use** + * + * Use when you need to detect failures caused only by interruption. * * **Example** (checking interrupt-only causes) * @@ -380,15 +370,24 @@ export const makeInterruptReason = effect.makeInterruptReason; * @see {@link hasInterrupts} — `true` if the cause contains *any* interrupts * * @category predicates - * @since 2.0.0 + * @since 4.0.0 */ export const hasInterruptsOnly = effect.hasInterruptsOnly; /** - * Transforms the typed error values inside a {@link Cause} using the - * provided function. Only {@link Fail} reasons are affected; {@link Die} - * and {@link Interrupt} reasons pass through unchanged. + * Transforms the typed error values inside a `Cause` using the + * provided function. Only `Fail` reasons are affected; `Die` and `Interrupt` + * reasons pass through unchanged. + * + * **When to use** + * + * Use to transform expected typed failures while preserving defects and + * interruptions unchanged. + * + * **Details** * - * Returns a new `Cause`; does not mutate the original. + * If at least one `Fail` reason exists, this returns a new `Cause` + * containing the mapped failures. If the cause has no `Fail` reasons, the + * original cause is returned unchanged. * * **Example** (mapping errors to uppercase) * @@ -404,14 +403,20 @@ export const hasInterruptsOnly = effect.hasInterruptsOnly; * ``` * * @category mapping - * @since 4.0.0 + * @since 2.0.0 */ export const map = effect.causeMap; /** * Merges two causes into a single cause whose `reasons` array is the union * of both inputs (de-duplicated by value equality). * - * - Combining with {@link empty} returns the other cause unchanged. + * **When to use** + * + * Use to merge independent causes into one structured failure value. + * + * **Details** + * + * - Combining with `empty` returns the other cause unchanged. * - If the result is structurally equal to `self`, `self` is returned * (referential shortcut). * @@ -427,23 +432,35 @@ export const map = effect.causeMap; * ``` * * @see {@link fromReasons} — build a cause from an array of reasons + * @see {@link empty} for the identity cause used when combining * * @category combining * @since 4.0.0 */ export const combine = effect.causeCombine; /** - * Collapses a {@link Cause} into a single `unknown` value, picking the "most + * Collapses a `Cause` into a single `unknown` value, picking the "most * important" failure in this order: * - * 1. First {@link Fail} error (the `E` value) - * 2. First {@link Die} defect + * **When to use** + * + * Use to collapse a structured cause to the single value that synchronous and + * promise runners would throw. + * + * **Details** + * + * 1. First `Fail` error (the `E` value) + * 2. First `Die` defect * 3. A generic `Error("All fibers interrupted without error")` for interrupt-only causes - * 4. A generic `Error("Empty cause")` for {@link empty} + * 4. A generic `Error("Empty cause")` for `empty` * * This is the function used by `Effect.runPromise` and `Effect.runSync` to - * decide what to throw. It is lossy — use {@link prettyErrors} or iterate - * `cause.reasons` when you need all failures. + * decide what to throw. + * + * **Gotchas** + * + * This function is lossy. Use {@link prettyErrors} or iterate `cause.reasons` + * when you need all failures. * * **Example** (squashing a cause) * @@ -462,7 +479,12 @@ export const combine = effect.causeCombine; */ export const squash = effect.causeSquash; /** - * Returns `true` if the cause contains at least one {@link Fail} reason. + * Returns `true` if the cause contains at least one `Fail` reason. + * + * **When to use** + * + * Use to check whether a cause includes typed failures before extracting, + * mapping, or rendering them. * * **Example** (checking for typed errors) * @@ -477,15 +499,19 @@ export const squash = effect.causeSquash; * @see {@link hasInterrupts} — check for interruptions * * @category predicates - * @since 2.0.0 + * @since 4.0.0 */ export const hasFails = effect.hasFails; /** - * Returns the first {@link Fail} reason from a cause, including its - * annotations. Returns `Filter.fail` with the remaining cause when no - * `Fail` is found. + * Returns a `Result` whose success value is the first `Fail` reason in + * the cause, including its annotations. If the cause has no `Fail` reason, the + * failure value is the original cause narrowed to `Cause`, because it + * contains no typed error reasons. + * + * **When to use** * - * Use {@link findError} if you only need the unwrapped error value `E`. + * Use when you need the full `Fail` reason from a `Cause`, including + * annotations. * * **Example** (extracting the first Fail reason) * @@ -501,16 +527,20 @@ export const hasFails = effect.hasFails; * @see {@link findError} — extract the unwrapped `E` value * @see {@link findDie} — extract the first `Die` reason * - * @category filters + * @category filtering * @since 4.0.0 */ export const findFail = effect.findFail; /** - * Returns the first typed error value `E` from a cause. - * Returns `Filter.fail` with the remaining cause when no `Fail` is found. + * Returns a `Result` whose success value is the first typed error value `E` + * from a `Fail` reason in the cause. If the cause has no `Fail` reason, + * the failure value is the original cause narrowed to `Cause`, because + * it contains no typed error reasons. * - * Use {@link findFail} if you need the full {@link Fail} reason (including - * annotations). Use {@link findErrorOption} if you prefer an `Option`. + * **When to use** + * + * Use when you need the first typed error value from a `Cause` as a `Result` + * that preserves the original cause when no match is found. * * **Example** (extracting the first error value) * @@ -526,16 +556,18 @@ export const findFail = effect.findFail; * @see {@link findFail} — extract the full `Fail` reason * @see {@link findErrorOption} — `Option`-based variant * - * @category filters + * @category filtering * @since 4.0.0 */ export const findError = effect.findError; /** * Returns the first typed error value `E` from a cause wrapped in - * `Option.some`, or `Option.none` if no {@link Fail} reason exists. + * `Option.some`, or `Option.none` if no `Fail` reason exists. + * + * **When to use** * - * This is a convenience wrapper around {@link findError} for code that - * already works with `Option` instead of `Filter`. + * Use when you need the first typed error value from a `Cause` as an `Option`, + * discarding the original cause. * * **Example** (extracting an error as Option) * @@ -549,14 +581,19 @@ export const findError = effect.findError; * console.log(Option.isNone(none)) // true * ``` * - * @see {@link findError} — `Filter`-based variant + * @see {@link findError} — `Result`-based variant * - * @category filters + * @category filtering * @since 4.0.0 */ export const findErrorOption = effect.findErrorOption; /** - * Returns `true` if the cause contains at least one {@link Die} reason. + * Returns `true` if the cause contains at least one `Die` reason. + * + * **When to use** + * + * Use to check whether a cause includes defects before extracting or rendering + * them. * * **Example** (checking for defects) * @@ -571,15 +608,18 @@ export const findErrorOption = effect.findErrorOption; * @see {@link hasInterrupts} — check for interruptions * * @category predicates - * @since 2.0.0 + * @since 4.0.0 */ export const hasDies = effect.hasDies; /** - * Returns the first {@link Die} reason from a cause, including its - * annotations. Returns `Filter.fail` with the original cause when no - * `Die` is found. + * Returns a `Result` whose success value is the first `Die` reason in + * the cause, including its annotations. If the cause has no `Die` reason, the + * failure value is the original cause. + * + * **When to use** * - * Use {@link findDefect} if you only need the unwrapped defect value. + * Use when you need the full `Die` reason from a `Cause`, including + * annotations. * * **Example** (extracting the first Die reason) * @@ -595,17 +635,19 @@ export const hasDies = effect.hasDies; * @see {@link findDefect} — extract the unwrapped defect value * @see {@link findFail} — extract the first `Fail` reason * - * @category filters + * @category filtering * @since 4.0.0 */ export const findDie = effect.findDie; /** - * Returns the first defect value (`unknown`) from a cause. - * Returns `Filter.fail` with the original cause when no {@link Die} reason - * is found. + * Returns a `Result` whose success value is the first defect value from a + * `Die` reason in the cause. If the cause has no `Die` reason, the + * failure value is the original cause. + * + * **When to use** * - * Use {@link findDie} if you need the full `Die` reason (including - * annotations). + * Use when you need the first defect value from a `Cause` as a `Result`, + * without the full `Die` reason. * * **Example** (extracting the first defect) * @@ -621,12 +663,12 @@ export const findDie = effect.findDie; * @see {@link findDie} — extract the full `Die` reason * @see {@link findError} — extract the first typed error * - * @category filters + * @category filtering * @since 4.0.0 */ export const findDefect = effect.findDefect; /** - * Returns `true` if the cause contains at least one {@link Interrupt} reason. + * Returns `true` if the cause contains at least one `Interrupt` reason. * * **Example** (checking for interruptions) * @@ -642,13 +684,18 @@ export const findDefect = effect.findDefect; * @see {@link hasDies} — check for defects * * @category predicates - * @since 2.0.0 + * @since 4.0.0 */ export const hasInterrupts = effect.hasInterrupts; /** - * Returns the first {@link Interrupt} reason from a cause, including its - * annotations. Returns `Filter.fail` with the original cause when no - * `Interrupt` is found. + * Returns a `Result` whose success value is the first `Interrupt` reason + * in the cause, including its annotations. If the cause has no `Interrupt` + * reason, the failure value is the original cause. + * + * **When to use** + * + * Use when you need the first `Interrupt` reason from a `Cause`, including the + * fiber ID and annotations. * * **Example** (extracting the first interrupt) * @@ -663,16 +710,19 @@ export const hasInterrupts = effect.hasInterrupts; * * @see {@link interruptors} — collect all interrupting fiber IDs as a `Set` * - * @category filters + * @category filtering * @since 4.0.0 */ export const findInterrupt = effect.findInterrupt; /** - * Collects the fiber IDs of all {@link Interrupt} reasons in the cause into - * a `ReadonlySet`. Returns an empty set when the cause has no interrupts. + * Collects the defined fiber IDs from all `Interrupt` reasons in the + * cause into a `ReadonlySet`. Interrupt reasons without a `fiberId` are + * ignored. Returns an empty set when the cause has no interrupting fiber IDs. + * + * **When to use** * - * This always succeeds (no `Filter.fail`). Use {@link filterInterruptors} - * for the `Filter`-based variant. + * Use when you need interrupting fiber IDs as a set, with absence represented + * as an empty set. * * **Example** (collecting interruptors) * @@ -683,45 +733,61 @@ export const findInterrupt = effect.findInterrupt; * Cause.interrupt(1), * Cause.interrupt(2) * ) - * console.log(Cause.interruptors(cause)) // Set { 1, 2 } + * + * console.log(Cause.interruptors(cause)) // Set(2) { 1, 2 } * ``` * - * @see {@link filterInterruptors} — `Filter`-based variant + * @see {@link filterInterruptors} — `Result`-based variant * * @category accessors - * @since 4.0.0 + * @since 2.0.0 */ export const interruptors = effect.causeInterruptors; /** - * Extracts the set of interrupting fiber IDs from a cause. - * Returns `Filter.fail` with the original cause when no {@link Interrupt} - * reason is found. + * Returns a `Result` whose success value is the set of defined fiber IDs from + * the cause's `Interrupt` reasons. If the cause has no `Interrupt` + * reason, the failure value is the original cause. + * + * **When to use** + * + * Use when you need absence of interrupt reasons to fail with the original + * cause. * - * Use {@link interruptors} if you always want a `Set` (possibly empty) - * without `Filter` wrapping. + * **Gotchas** * - * **Example** (extracting interruptors with Filter) + * Interrupt reasons without a `fiberId` still count as interrupts, so the + * function succeeds with an empty `Set` when every interrupt reason has an + * undefined fiber ID. + * + * **Example** (extracting interruptors with Result) * * ```ts * import { Cause, Result } from "effect" * * const result = Cause.filterInterruptors(Cause.interrupt(1)) * if (!Result.isFailure(result)) { - * console.log(result.success) // Set { 1 } + * console.log(result.success) // Set(1) { 1 } * } * ``` * * @see {@link interruptors} — always-succeeding variant * - * @category filters + * @category filtering * @since 4.0.0 */ export const filterInterruptors = effect.causeFilterInterruptors; /** - * Converts a {@link Cause} into an `Array` suitable for logging or + * Converts a `Cause` into an `Array` suitable for logging or * rethrowing. * - * Each {@link Fail} and {@link Die} reason is converted into a standard + * **When to use** + * + * Use to convert every renderable failure in a cause into individual `Error` + * values before logging or rethrowing. + * + * **Details** + * + * Each `Fail` and `Die` reason is converted into a standard * `Error`: * * - **Objects / Error instances** — `message`, `name`, `stack`, and `cause` @@ -731,10 +797,12 @@ export const filterInterruptors = effect.causeFilterInterruptors; * - **Other primitives** (`null`, `undefined`, numbers, …) — wrapped in an * `Error` with message `"Unknown error: "`. * - * {@link Interrupt} reasons are collected separately. If the cause contains + * `Interrupt` reasons are collected separately. If the cause contains * **only** interrupts (no `Fail` or `Die`), a single `InterruptError` is * returned whose `cause` lists the interrupting fiber IDs. * + * An empty cause returns an empty array. + * * **Example** (converting a cause to errors) * * ```ts @@ -748,13 +816,19 @@ export const filterInterruptors = effect.causeFilterInterruptors; * @see {@link pretty} — renders the cause as a single string * @see {@link squash} — lossy collapse to a single thrown value * - * @since 4.0.0 * @category rendering + * @since 3.2.0 */ export const prettyErrors = effect.causePrettyErrors; /** - * Renders a {@link Cause} as a human-readable string for logging or - * debugging. + * Formats a `Cause` as a human-readable string for logging or debugging. + * + * **When to use** + * + * Use to render a whole cause as one human-readable string for logs or + * diagnostics. + * + * **Details** * * Delegates to {@link prettyErrors} to convert each reason to an `Error`, * then joins their stack traces with newlines. Nested `Error.cause` chains @@ -771,25 +845,28 @@ export const prettyErrors = effect.causePrettyErrors; * * Span annotations are appended to the relevant stack frames when available. * + * **Gotchas** + * + * Rendering an empty cause produces an empty string because there are no + * errors to render. + * * **Example** (rendering a cause) * * ```ts * import { Cause } from "effect" * - * const cause = Cause.fail("something went wrong") - * console.log(Cause.pretty(cause)) - * // Error: something went wrong - * // at ... + * const rendered = Cause.pretty(Cause.fail("something went wrong")) + * console.log(rendered.includes("something went wrong")) // true * ``` * * @see {@link prettyErrors} — get the individual `Error` instances * - * @since 4.0.0 * @category rendering + * @since 2.0.0 */ export const pretty = effect.causePretty; /** - * Tests if an arbitrary value is a {@link NoSuchElementError}. + * Checks whether an arbitrary value is a `NoSuchElementError`. * * **Example** (runtime type check) * @@ -805,14 +882,19 @@ export const pretty = effect.causePretty; */ export const isNoSuchElementError = core.isNoSuchElementError; /** - * Unique brand for {@link NoSuchElementError}. + * Unique brand for `NoSuchElementError`. * + * @category type IDs * @since 4.0.0 - * @category symbols */ export const NoSuchElementErrorTypeId = core.NoSuchElementErrorTypeId; /** - * Constructs a {@link NoSuchElementError} with an optional message. + * Constructs a `NoSuchElementError` with an optional message. + * + * **When to use** + * + * Use to create the error value for APIs that intentionally fail when an + * expected element is absent. * * **Example** (creating a NoSuchElementError) * @@ -823,12 +905,14 @@ export const NoSuchElementErrorTypeId = core.NoSuchElementErrorTypeId; * console.log(error.message) // "Element not found" * ``` * + * @see {@link isNoSuchElementError} for checking unknown values + * * @category constructors * @since 4.0.0 */ export const NoSuchElementError = core.NoSuchElementError; /** - * Tests if an arbitrary value is a {@link Done} signal. + * Checks whether an arbitrary value is a `Done` signal. * * **Example** (runtime type check) * @@ -844,14 +928,18 @@ export const NoSuchElementError = core.NoSuchElementError; */ export const isDone = core.isDone; /** - * Unique brand for {@link Done} values. + * Unique brand for `Done` values. * + * @category type IDs * @since 4.0.0 - * @category symbols */ export const DoneTypeId = core.DoneTypeId; /** - * Creates a {@link Done} signal with an optional value. + * Creates a `Done` signal with an optional value. + * + * **When to use** + * + * Use when you need to construct a low-level pull completion signal directly. * * @see {@link done} — create a failing `Effect` with `Done` * @@ -860,24 +948,40 @@ export const DoneTypeId = core.DoneTypeId; */ export const Done = core.Done; /** - * Creates an Effect that fails with a {@link Done} error. Shorthand for + * Creates an Effect that fails with a `Done` error. Shorthand for * `Effect.fail(Cause.Done(value))`. * - * @see {@link Done:var | Done} — create the signal value without an Effect + * **When to use** + * + * Use when you model stream or queue completion through the error channel. + * + * **Example** (failing with Done) + * + * ```ts + * import { Cause, Effect } from "effect" + * + * const program = Cause.done("finished") + * + * Effect.runPromiseExit(program).then((exit) => { + * console.log(exit._tag) // "Failure" + * }) + * ``` + * + * @see {@link Done} — create the signal value without an Effect * * @category constructors * @since 4.0.0 */ export const done = core.done; /** - * Unique brand for {@link TimeoutError}. + * Unique brand for `TimeoutError`. * + * @category type IDs * @since 4.0.0 - * @category symbols */ export const TimeoutErrorTypeId = effect.TimeoutErrorTypeId; /** - * Tests if an arbitrary value is a {@link TimeoutError}. + * Checks whether an arbitrary value is a `TimeoutError`. * * **Example** (runtime type check) * @@ -893,7 +997,7 @@ export const TimeoutErrorTypeId = effect.TimeoutErrorTypeId; */ export const isTimeoutError = effect.isTimeoutError; /** - * Constructs a {@link TimeoutError} with an optional message. + * Constructs a `TimeoutError` with an optional message. * * **Example** (creating a TimeoutError) * @@ -909,14 +1013,14 @@ export const isTimeoutError = effect.isTimeoutError; */ export const TimeoutError = effect.TimeoutError; /** - * Unique brand for {@link IllegalArgumentError}. + * Unique brand for `IllegalArgumentError`. * + * @category type IDs * @since 4.0.0 - * @category symbols */ export const IllegalArgumentErrorTypeId = effect.IllegalArgumentErrorTypeId; /** - * Tests if an arbitrary value is an {@link IllegalArgumentError}. + * Checks whether an arbitrary value is an `IllegalArgumentError`. * * **Example** (runtime type check) * @@ -932,7 +1036,7 @@ export const IllegalArgumentErrorTypeId = effect.IllegalArgumentErrorTypeId; */ export const isIllegalArgumentError = effect.isIllegalArgumentError; /** - * Constructs an {@link IllegalArgumentError} with an optional message. + * Constructs an `IllegalArgumentError` with an optional message. * * **Example** (creating an IllegalArgumentError) * @@ -948,7 +1052,7 @@ export const isIllegalArgumentError = effect.isIllegalArgumentError; */ export const IllegalArgumentError = effect.IllegalArgumentError; /** - * Tests if an arbitrary value is an {@link ExceededCapacityError}. + * Checks whether an arbitrary value is an `ExceededCapacityError`. * * **Example** (runtime type check) * @@ -964,14 +1068,18 @@ export const IllegalArgumentError = effect.IllegalArgumentError; */ export const isExceededCapacityError = effect.isExceededCapacityError; /** - * Unique brand for {@link ExceededCapacityError}. + * Unique brand for `ExceededCapacityError`. * + * @category type IDs * @since 4.0.0 - * @category symbols */ export const ExceededCapacityErrorTypeId = effect.ExceededCapacityErrorTypeId; /** - * Constructs an {@link ExceededCapacityError} with an optional message. + * Constructs an `ExceededCapacityError` with an optional message. + * + * **When to use** + * + * Use to create the error value for bounded-resource capacity failures. * * **Example** (creating an ExceededCapacityError) * @@ -982,38 +1090,76 @@ export const ExceededCapacityErrorTypeId = effect.ExceededCapacityErrorTypeId; * console.log(error.message) // "Queue full" * ``` * + * @see {@link isExceededCapacityError} for checking unknown values + * * @category constructors * @since 4.0.0 */ export const ExceededCapacityError = effect.ExceededCapacityError; /** - * Unique brand for {@link AsyncFiberError}. + * Unique brand present on `AsyncFiberError` values and used by + * `isAsyncFiberError` for runtime checks. * + * @category type IDs * @since 4.0.0 - * @category symbols */ export const AsyncFiberErrorTypeId = effect.AsyncFiberErrorTypeId; /** + * Checks whether an arbitrary value is an `AsyncFiberError`. + * + * **Example** (runtime type check) + * + * ```ts + * import { Cause } from "effect" + * import type { Fiber } from "effect" + * + * declare const fiber: Fiber.Fiber + * + * const error = new Cause.AsyncFiberError(fiber) + * console.log(Cause.isAsyncFiberError(error)) // true + * console.log(Cause.isAsyncFiberError("nope")) // false + * ``` + * * @category guards * @since 4.0.0 */ export const isAsyncFiberError = effect.isAsyncFiberError; /** - * An error that occurs when trying to run an async fiber with Effect.runSync. + * Constructs an `AsyncFiberError` for a fiber that could not be resolved + * synchronously. + * + * **When to use** + * + * Use to create the error value for a fiber that could not be completed by a + * synchronous runner. + * + * **Example** (creating an AsyncFiberError) + * + * ```ts + * import { Cause } from "effect" + * import type { Fiber } from "effect" + * + * declare const fiber: Fiber.Fiber + * + * const error = new Cause.AsyncFiberError(fiber) + * console.log(error.message) // "An asynchronous Effect was executed with Effect.runSync" + * ``` + * + * @see {@link isAsyncFiberError} for checking unknown values * * @category constructors * @since 4.0.0 */ export const AsyncFiberError = effect.AsyncFiberError; /** - * Unique brand for {@link UnknownError}. + * Unique brand for `UnknownError`. * + * @category type IDs * @since 4.0.0 - * @category symbols */ export const UnknownErrorTypeId = effect.UnknownErrorTypeId; /** - * Tests if an arbitrary value is an {@link UnknownError}. + * Checks whether an arbitrary value is an `UnknownError`. * * **Example** (runtime type check) * @@ -1029,7 +1175,7 @@ export const UnknownErrorTypeId = effect.UnknownErrorTypeId; */ export const isUnknownError = effect.isUnknownError; /** - * Constructs an {@link UnknownError}. The first argument is the original + * Constructs an `UnknownError`. The first argument is the original * cause (stored in `Error.cause`); the second is an optional human-readable * message. * @@ -1047,13 +1193,19 @@ export const isUnknownError = effect.isUnknownError; */ export const UnknownError = effect.UnknownError; /** - * Attaches metadata to every reason in a {@link Cause}. + * Attaches metadata to every reason in a `Cause`. + * + * **When to use** + * + * Use to attach diagnostic metadata to every reason in a cause. + * + * **Details** * * Annotations are stored as a `Context` on each reason and can be * retrieved later via {@link reasonAnnotations} or {@link annotations}. * The runtime uses this to attach stack traces and spans. * - * - Returns a new `Cause`; does not mutate the input. + * - Returns a new `Cause`. * - By default, existing keys are preserved. Pass `{ overwrite: true }` to * replace them. * @@ -1062,58 +1214,119 @@ export const UnknownError = effect.UnknownError; * ```ts * import { Cause, Context } from "effect" * + * class RequestId extends Context.Service()("RequestId") {} + * * const cause = Cause.fail("error") - * const annotated = Cause.annotate(cause, Context.empty()) + * const annotated = Cause.annotate(cause, Context.make(RequestId, "req-1")) + * + * console.log(Context.getOrUndefined(Cause.annotations(annotated), RequestId)) // "req-1" * ``` * - * @see {@link annotations} — read merged annotations from a cause - * @see {@link reasonAnnotations} — read annotations from a single reason + * @see {@link annotations} for reading merged annotations from a cause + * @see {@link reasonAnnotations} for reading annotations from a single reason * * @category annotations * @since 4.0.0 */ export const annotate = core.causeAnnotate; /** - * Reads the annotations from a single {@link Reason} as a `Context`. + * Reads the annotations from a single `Reason` as a `Context`. * - * Use this when you need tracing metadata (e.g. {@link StackTrace}) from + * **When to use** + * + * Use when you need tracing metadata (e.g. `StackTrace`) from * a specific reason rather than the whole cause. * + * **Example** (reading reason annotations) + * + * ```ts + * import { Cause, Context } from "effect" + * + * class RequestId extends Context.Service()("RequestId") {} + * + * const reason = Cause.makeFailReason("error") + * const annotated = reason.annotate(Context.make(RequestId, "req-1")) + * + * console.log(Context.getOrUndefined(Cause.reasonAnnotations(annotated), RequestId)) // "req-1" + * ``` + * * @see {@link annotations} — merged annotations from all reasons in a cause - * @see {@link annotate} — attach annotations * * @category annotations * @since 4.0.0 */ export const reasonAnnotations = effect.reasonAnnotations; /** - * Reads the merged annotations from all reasons in a {@link Cause}. + * Reads the merged annotations from all reasons in a `Cause`. * - * Annotations from later reasons overwrite earlier ones when keys collide. + * **When to use** + * + * Use to read diagnostic metadata merged from the whole cause. + * + * **Gotchas** + * + * When multiple reasons contain the same annotation key, the value from the + * later reason wins. + * + * **Example** (reading merged annotations) + * + * ```ts + * import { Cause, Context } from "effect" + * + * class RequestId extends Context.Service()("RequestId") {} + * + * const cause = Cause.annotate( + * Cause.fail("error"), + * Context.make(RequestId, "req-1") + * ) + * + * console.log(Context.getOrUndefined(Cause.annotations(cause), RequestId)) // "req-1" + * ``` * * @see {@link reasonAnnotations} — annotations from a single reason - * @see {@link annotate} — attach annotations * * @category annotations * @since 4.0.0 */ export const annotations = effect.causeAnnotations; /** - * `Context` key for the stack frame captured at the point of failure. + * Context annotation used to store the stack frame captured at the point of failure. + * + * **When to use** + * + * Use to read the failure stack-frame annotation from a `Reason` when building + * diagnostics, logging, or custom cause renderers. + * + * **Details** * * The runtime annotates every reason with this when a stack frame is * available. Retrieve it via * `Context.get(Cause.reasonAnnotations(reason), Cause.StackTrace)`. * + * @see {@link reasonAnnotations} for reading annotations from a single reason + * @see {@link annotations} for reading merged annotations from a cause + * @see {@link InterruptorStackTrace} for the interrupt-specific stack-frame annotation + * * @category annotations * @since 4.0.0 */ export class StackTrace extends /*#__PURE__*/Context.Service()("effect/Cause/StackTrace") {} /** - * `Context` key for the stack frame captured at the point of + * Context annotation used to store the stack frame captured at the point of * interruption. * - * Similar to {@link StackTrace} but specific to {@link Interrupt} reasons. + * **When to use** + * + * Use when you need the stack-frame annotation used by interrupt-only cause + * rendering. + * + * **Details** + * + * Similar to `StackTrace` but specific to `Interrupt` reasons. + * + * @see {@link StackTrace} for stack frames attached to failures + * @see {@link reasonAnnotations} for reading annotations from a single reason + * @see {@link annotate} for attaching annotations to a cause * * @category annotations * @since 4.0.0 diff --git a/.opencode/node_modules/effect/dist/Cause.js.map b/.opencode/node_modules/effect/dist/Cause.js.map index 77ae821dbf7bf2d2ca2924953dd8036546a84673..24015a0eb93a11221a7b7f75aff2a9cbc1eafc1d 100644 --- a/.opencode/node_modules/effect/dist/Cause.js.map +++ b/.opencode/node_modules/effect/dist/Cause.js.map @@ -1 +1 @@ -{"version":3,"file":"Cause.js","names":["Context","core","effect","TypeId","CauseTypeId","ReasonTypeId","CauseReasonTypeId","isCause","isReason","isCauseReason","isFailReason","isDieReason","isInterruptReason","fromReasons","causeFromReasons","empty","causeEmpty","fail","causeFail","die","causeDie","interrupt","causeInterrupt","makeFailReason","error","Fail","makeDieReason","defect","Die","makeInterruptReason","hasInterruptsOnly","map","causeMap","combine","causeCombine","squash","causeSquash","hasFails","findFail","findError","findErrorOption","hasDies","findDie","findDefect","hasInterrupts","findInterrupt","interruptors","causeInterruptors","filterInterruptors","causeFilterInterruptors","prettyErrors","causePrettyErrors","pretty","causePretty","isNoSuchElementError","NoSuchElementErrorTypeId","NoSuchElementError","isDone","DoneTypeId","Done","done","TimeoutErrorTypeId","isTimeoutError","TimeoutError","IllegalArgumentErrorTypeId","isIllegalArgumentError","IllegalArgumentError","isExceededCapacityError","ExceededCapacityErrorTypeId","ExceededCapacityError","AsyncFiberErrorTypeId","isAsyncFiberError","AsyncFiberError","UnknownErrorTypeId","isUnknownError","UnknownError","annotate","causeAnnotate","reasonAnnotations","annotations","causeAnnotations","StackTrace","Service","InterruptorStackTrace"],"sources":["../src/Cause.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+EA,OAAO,KAAKA,OAAO,MAAM,cAAc;AAKvC,OAAO,KAAKC,IAAI,MAAM,oBAAoB;AAC1C,OAAO,KAAKC,MAAM,MAAM,sBAAsB;AAO9C;;;;;;AAMA,OAAO,MAAMC,MAAM,GAAoBF,IAAI,CAACG,WAAW;AAEvD;;;;;;AAMA,OAAO,MAAMC,YAAY,GAA2BJ,IAAI,CAACK,iBAAiB;AAsC1E;;;;;;;;;;;;;;;AAeA,OAAO,MAAMC,OAAO,GAA8CN,IAAI,CAACM,OAAO;AAE9E;;;;;;;;;;;;;;;;AAgBA,OAAO,MAAMC,QAAQ,GAA+CP,IAAI,CAACQ,aAAa;AAmCtF;;;;;;;;;;;;;;;;;;;;;AAqBA,OAAO,MAAMC,YAAY,GAA4CT,IAAI,CAACS,YAAY;AAEtF;;;;;;;;;;;;;;;;;;;;;AAqBA,OAAO,MAAMC,WAAW,GAAwCV,IAAI,C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qB,GAAoCpE,MAAM,CAACoE,qBAAqB;AAElG;;;;AAIA,OAAO,MAAMC,iBAAiB,GAAyCrE,MAAM,CAACqE,iBAAiB;AAc/F;;;;;;AAMA,OAAO,MAAMC,eAAe,GAA2DtE,MAAM,CAACsE,eAAe;AAE7G;;;;;;AAMA,OAAO,MAAMC,kBAAkB,GAAiCvE,MAAM,CAACuE,kBAAkB;AAEzF;;;;;;;;;;;;;;;AAeA,OAAO,MAAMC,cAAc,GAAsCxE,MAAM,CAACwE,cAAc;AA6BtF;;;;;;;;;;;;;;;;;AAiBA,OAAO,MAAMC,YAAY,GAA0DzE,MAAM,CAACyE,YAAY;AAEtG;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BA,OAAO,MAAMC,QAAQ,GA8DjB3E,IAAI,CAAC4E,aAAa;AAEtB;;;;;;;;;;;;AAYA,OAAO,MAAMC,iBAAiB,GAAmD5E,MAAM,CAAC4E,iBAAiB;AAEzG;;;;;;;;;;;AAWA,OAAO,MAAMC,WAAW,GAAkD7E,MAAM,CAAC8E,gBAAgB;AAEjG;;;;;;;;;;AAUA,OAAM,MAAOC,UAAW,sBAAQjF,OAAO,CAACkF,OAAO,EAA0B,CAAC,yBAAyB,CAAC;AAEpG;;;;;;;;;AASA,OAAM,MAAOC,qBACX,sBAAQnF,OAAO,CAACkF,OAAO,EAAqC,CAAC,oCAAoC,CAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"Cause.js","names":["Context","core","effect","TypeId","CauseTypeId","ReasonTypeId","CauseReasonTypeId","isCause","isReason","isCauseReason","isFailReason","isDieReason","isInterruptReason","fromReasons","causeFromReasons","empty","causeEmpty","fail","causeFail","die","causeDie","interrupt","causeInterrupt","makeFailReason","error","Fail","makeDieReason","defect","Die","makeInterruptReason","hasInterruptsOnly","map","causeMap","combine","causeCombine","squash","causeSquash","hasFails","findFail","findError","findErrorOption","hasDies","findDie","findDefect","hasInterrupts","findInterrupt","interruptors","causeInterruptors","filterInterruptors","causeFilterInterruptors","prettyErrors","causePrettyErrors","pretty","causePretty","isNoSuchElementError","NoSuchElementErrorTypeId","NoSuchElementError","isDone","DoneTypeId","Done","done","TimeoutErrorTypeId","isTimeoutError","TimeoutError","IllegalArgumentErrorTypeId","isIllegalArgumentError","IllegalArgumentError","isExceededCapacityError","ExceededCapacityErrorTypeId","ExceededCapacityError","AsyncFiberErrorTypeId","isAsyncFiberError","AsyncFiberError","UnknownErrorTypeId","isUnknownError","UnknownError","annotate","causeAnnotate","reasonAnnotations","annotations","causeAnnotations","StackTrace","Service","InterruptorStackTrace"],"sources":["../src/Cause.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;;AAWA,OAAO,KAAKA,OAAO,MAAM,cAAc;AAKvC,OAAO,KAAKC,IAAI,MAAM,oBAAoB;AAC1C,OAAO,KAAKC,MAAM,MAAM,sBAAsB;AAO9C;;;;;;AAMA,OAAO,MAAMC,MAAM,GAAoBF,IAAI,CAACG,WAAW;AAEvD;;;;;;AAMA,OAAO,MAAMC,YAAY,GAA2BJ,IAAI,CAACK,iBAAiB;AA2C1E;;;;;;;;;;;;;;;AAeA,OAAO,MAAMC,OAAO,GAA8CN,IAAI,CAACM,OAAO;AAE9E;;;;;;;;;;;;;;;;AAgBA,OAAO,MAAMC,QAAQ,GAA+CP,IAAI,CAACQ,aAAa;AAiCtF;;;;;;;;;;;;;;;;;;;;;;;;AAwBA,OAAO,MAAMC,YAAY,GAA4CT,IAAI,CAACS,YAAY;AAEtF;;;;;;;;;;;;;;;;;;;;;;;;AAwBA,OAAO,MAAMC,WAAW,GAAwCV,IAAI,CAACU,WAAW;AAEhF;;;;;;;;;;;;;;;;;;;;;;;;AAwBA,OAAO,MAAMC,iBAAiB,GAA8CX,IAAI,CAACW,iBAAiB;AA0KlG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqCA,OAAO,MAAMC,WAAW,GAERZ,IAAI,CAACa,gBAAgB;AAErC;;;;;;;;;;;;;;;;;;;;;;;;;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AqB;AAElG;;;;;;;;;;;;;;;;;;;AAmBA,OAAO,MAAMC,iBAAiB,GAAyCrE,MAAM,CAACqE,iBAAiB;AAqC/F;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BA,OAAO,MAAMC,eAAe,GAA2DtE,MAAM,CAACsE,eAAe;AAE7G;;;;;;AAMA,OAAO,MAAMC,kBAAkB,GAAiCvE,MAAM,CAACuE,kBAAkB;AAEzF;;;;;;;;;;;;;;;AAeA,OAAO,MAAMC,cAAc,GAAsCxE,MAAM,CAACwE,cAAc;AA6BtF;;;;;;;;;;;;;;;;;AAiBA,OAAO,MAAMC,YAAY,GAA0DzE,MAAM,CAACyE,YAAY;AAEtG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCA,OAAO,MAAMC,QAAQ,GAkFjB3E,IAAI,CAAC4E,aAAa;AAEtB;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BA,OAAO,MAAMC,iBAAiB,GAAmD5E,MAAM,CAAC4E,iBAAiB;AAEzG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCA,OAAO,MAAMC,WAAW,GAAkD7E,MAAM,CAAC8E,gBAAgB;AAEjG;;;;;;;;;;;;;;;;;;;;;AAqBA,OAAM,MAAOC,UAAW,sBAAQjF,OAAO,CAACkF,OAAO,EAA0B,CAAC,yBAAyB,CAAC;AAEpG;;;;;;;;;;;;;;;;;;;;AAoBA,OAAM,MAAOC,qBACX,sBAAQnF,OAAO,CAACkF,OAAO,EAAqC,CAAC,oCAAoC,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Channel.d.ts b/.opencode/node_modules/effect/dist/Channel.d.ts index cde9a9f32f0dad622204c2272e0602e05664e79a..26a19a6c24bdbe611ffce213e77c7799dd0d8a72 100644 --- a/.opencode/node_modules/effect/dist/Channel.d.ts +++ b/.opencode/node_modules/effect/dist/Channel.d.ts @@ -1,58 +1,11 @@ /** - * The `Channel` module provides a powerful abstraction for bi-directional communication - * and streaming operations. A `Channel` is a nexus of I/O operations that supports both - * reading and writing, forming the foundation for Effect's Stream and Sink abstractions. + * Provides low-level building blocks for streaming data through Effect. * - * ## What is a Channel? - * - * A `Channel` represents: - * - **OutElem**: The type of elements the channel outputs - * - **OutErr**: The type of errors the channel can produce - * - **OutDone**: The type of the final value when the channel completes - * - **InElem**: The type of elements the channel reads - * - **InErr**: The type of errors the channel can receive - * - **InDone**: The type of the final value from upstream - * - **Env**: The environment/context required by the channel - * - * ## Key Features - * - * - **Bi-directional**: Channels can both read and write - * - **Composable**: Channels can be piped, sequenced, and concatenated - * - **Resource-safe**: Automatic cleanup and resource management - * - **Error-handling**: Built-in error propagation and handling - * - **Concurrent**: Support for concurrent operations - * - * ## Composition Patterns - * - * 1. **Piping**: Connect channels where output of one becomes input of another - * 2. **Sequencing**: Use the result of one channel to create another - * 3. **Concatenating**: Combine multiple channels into a single channel - * - * @example - * ```ts - * import { Channel } from "effect" - * - * // Simple channel that outputs numbers - * const numberChannel = Channel.succeed(42) - * - * // Transform channel that doubles values - * const doubleChannel = Channel.map(numberChannel, (n) => n * 2) - * - * // Running the channel would output: 84 - * ``` - * - * @example - * ```ts - * import { Channel } from "effect" - * - * // Channel from an array of values - * const arrayChannel = Channel.fromArray([1, 2, 3, 4, 5]) - * - * // Transform the channel by mapping over values - * const transformedChannel = Channel.map(arrayChannel, (n) => n * 2) - * - * // This channel will output: 2, 4, 6, 8, 10 - * ``` + * A `Channel` can read input elements, write output elements, fail with a typed + * error, and finish with a typed result while managing resources safely. + * Streams and sinks are built on channels, so most application code uses those + * higher-level modules instead. This module is useful when implementing stream + * operators or specialized streaming workflows. * * @since 2.0.0 */ @@ -79,19 +32,25 @@ import { ParentSpan, type SpanOptions } from "./Tracer.ts"; import type * as Types from "./Types.ts"; import type * as Unify from "./Unify.ts"; /** + * String literal type used as the unique brand for `Channel` values. + * + * @category type IDs * @since 4.0.0 - * @category Type Identifiers */ export type TypeId = "~effect/Channel"; /** + * Runtime identifier stored on `Channel` values and used by `isChannel` to + * recognize them. + * + * @category type IDs * @since 4.0.0 - * @category Type Identifiers */ export declare const TypeId: TypeId; /** - * Tests if a value is a `Channel`. + * Checks whether a value is a `Channel`. + * + * **Example** (Checking for channels) * - * @example * ```ts * import { Channel } from "effect" * @@ -110,6 +69,8 @@ export declare const isChannel: (u: unknown) => u is Channel u is Channel u is Channel * ``` * - * @since 2.0.0 * @category models + * @since 2.0.0 */ export interface Channel extends Variance, Pipeable { [Unify.typeSymbol]?: unknown; @@ -158,8 +120,16 @@ export interface Channel A[Unify.typeSymbol] extends Channel | infer _ ? Channel : never; } /** + * Marker used by `Unify` while resolving `Channel` values. + * + * **Details** + * + * It prevents the inherited `Effect` unifier from being selected when the + * channel-specific unifier should preserve `Channel` input, output, and + * environment type parameters. Users normally do not need to reference this + * interface directly. + * * @category models * @since 2.0.0 */ @@ -177,15 +156,33 @@ type TagsWithReason = { [T in Types.Tags]: Types.ReasonTags> extends never ? never : T; }[Types.Tags]; /** - * @since 2.0.0 + * Phantom variance marker for the type parameters of `Channel`. + * + * **Details** + * + * Output element, output error, output done, and environment types are + * covariant. Input element, input error, and input done types are + * contravariant. This is type-level machinery and is not used directly at + * runtime. + * * @category models + * @since 2.0.0 */ export interface Variance { readonly [TypeId]: VarianceStruct; } /** - * @since 2.0.0 + * Structural encoding used by `Variance` to record each `Channel` type + * parameter's variance. + * + * **Details** + * + * The `_OutElem`, `_OutErr`, `_OutDone`, and `_Env` fields are covariant; the + * `_InElem`, `_InErr`, and `_InDone` fields are contravariant. Users normally + * do not need to reference this interface directly. + * * @category models + * @since 2.0.0 */ export interface VarianceStruct { _Env: Types.Covariant; @@ -199,7 +196,8 @@ export interface VarianceStruct(effect: * pulls, but also provides a forked scope that closes when the resulting * Channel completes. * - * @since 4.0.0 + * **When to use** + * + * Use when building channels that require scoped resource lifecycle management, + * providing both the channel scope and a forked scope that automatically closes + * when the channel completes. + * + * @see {@link fromTransform} for a simpler transformation without a forked scope * @category constructors + * @since 4.0.0 */ export declare const fromTransformBracket: (f: (upstream: Pull.Pull, scope: Scope.Scope, forkedScope: Scope.Scope) => Effect.Effect, EX, Env>) => Channel | EX, OutDone, InElem, InErr, InDone, Env | EnvX>; /** * Converts a `Channel` back to its underlying transformation function. * - * @example + * **Example** (Extracting channel transforms) + * * ```ts * import { Channel } from "effect" * @@ -280,7 +288,8 @@ export declare const toTransform: (f: (queue: Queue.Queue) => Effect.Effect, options?: { readonly bufferSize?: number | undefined; @@ -317,7 +327,8 @@ export declare const callback: (f: (queue: Queue.Queue< /** * Creates a `Channel` that interacts with a callback function using a queue, emitting arrays. * - * @example + * **Example** (Creating array channels from callbacks) + * * ```ts * import { Channel, Effect, Queue } from "effect" * @@ -338,7 +349,8 @@ export declare const callbackArray: (f: (queue: Queue.Q /** * Creates a `Channel` that lazily evaluates to another channel. * - * @example + * **Example** (Suspending channel creation) + * * ```ts * import { Channel } from "effect" * @@ -351,9 +363,17 @@ export declare const callbackArray: (f: (queue: Queue.Q */ export declare const suspend: (evaluate: LazyArg>) => Channel; /** - * Creates a `Channel` with resource management using acquire-use-release pattern. + * Acquires a resource, uses it to build a `Channel`, and guarantees that + * `release` runs with the channel's `Exit` when the channel completes, fails, + * or is interrupted. + * + * **Details** + * + * Acquisition is uninterruptible. If acquisition fails, `use` is not run and + * `release` is not registered. + * + * **Example** (Managing resources with acquire-use-release) * - * @example * ```ts * import { Channel, Effect } from "effect" * @@ -369,9 +389,17 @@ export declare const suspend: (acquire: Effect.Effect, use: (a: A) => Channel, release: (a: A, exit: Exit.Exit) => Effect.Effect) => Channel; /** - * Creates a `Channel` with resource management using acquire-release pattern. + * Acquires a resource, emits the acquired value as a single channel element, + * and registers `release` in the channel scope. + * + * **Details** + * + * The release action runs when the channel scope closes and receives the scope + * exit. If acquisition fails, no element is emitted and `release` is not + * registered. + * + * **Example** (Managing resources with acquire-release) * - * @example * ```ts * import { Channel, Effect } from "effect" * @@ -382,13 +410,21 @@ export declare const acquireUseRelease: (release: (z: Z, e: Exit.Exit) => Effect.Effect): (self: Effect.Effect) => Channel; /** - * Creates a `Channel` with resource management using acquire-release pattern. + * Acquires a resource, emits the acquired value as a single channel element, + * and registers `release` in the channel scope. + * + * **Details** + * + * The release action runs when the channel scope closes and receives the scope + * exit. If acquisition fails, no element is emitted and `release` is not + * registered. + * + * **Example** (Managing resources with acquire-release) * - * @example * ```ts * import { Channel, Effect } from "effect" * @@ -416,14 +460,15 @@ export declare const acquireRelease: { * ``` * * @category constructors - * @since 2.0.0 + * @since 4.0.0 */ (self: Effect.Effect, release: (z: Z, e: Exit.Exit) => Effect.Effect): Channel; }; /** * Creates a `Channel` from an iterator. * - * @example + * **Example** (Creating channels from iterators) + * * ```ts * import { Channel } from "effect" * @@ -433,13 +478,14 @@ export declare const acquireRelease: { * ``` * * @category constructors - * @since 2.0.0 + * @since 4.0.0 */ export declare const fromIterator: (iterator: LazyArg>) => Channel; /** * Creates a `Channel` that emits all elements from an array. * - * @example + * **Example** (Creating channels from arrays) + * * ```ts * import { Channel } from "effect" * @@ -448,13 +494,14 @@ export declare const fromIterator: (iterator: LazyArg>) => * ``` * * @category constructors - * @since 2.0.0 + * @since 4.0.0 */ export declare const fromArray: (array: ReadonlyArray) => Channel; /** * Creates a `Channel` that emits all elements from a chunk. * - * @example + * **Example** (Creating channels from chunks) + * * ```ts * import { Channel, Chunk } from "effect" * @@ -464,13 +511,14 @@ export declare const fromArray: (array: ReadonlyArray) => Channel; * ``` * * @category constructors - * @since 2.0.0 + * @since 4.0.0 */ export declare const fromChunk: (chunk: Chunk.Chunk) => Channel; /** * Creates a `Channel` from an iterator that emits arrays of elements. * - * @example + * **Example** (Batching iterator output) + * * ```ts * import { Channel } from "effect" * @@ -491,7 +539,8 @@ export declare const fromChunk: (chunk: Chunk.Chunk) => Channel; * // This will emit arrays: [0, 1], [2], then complete with "finished" * ``` * - * @example + * **Example** (Batching generator output) + * * ```ts * import { Channel } from "effect" * @@ -508,14 +557,15 @@ export declare const fromChunk: (chunk: Chunk.Chunk) => Channel; * // Emits: [0, 1, 1], [2, 3], then completes * ``` * - * @since 2.0.0 * @category constructors + * @since 4.0.0 */ export declare const fromIteratorArray: (iterator: LazyArg>, chunkSize?: number) => Channel, never, L>; /** * Creates a `Channel` that emits all elements from an iterable. * - * @example + * **Example** (Creating channels from iterables) + * * ```ts * import { Channel } from "effect" * @@ -525,13 +575,14 @@ export declare const fromIteratorArray: (iterator: LazyArg> * ``` * * @category constructors - * @since 2.0.0 + * @since 4.0.0 */ export declare const fromIterable: (iterable: Iterable) => Channel; /** * Creates a `Channel` that emits arrays of elements from an iterable. * - * @example + * **Example** (Batching iterable output) + * * ```ts * import { Channel } from "effect" * @@ -541,13 +592,14 @@ export declare const fromIterable: (iterable: Iterable) => Channel(iterable: Iterable, chunkSize?: number) => Channel, never, L>; /** * Creates a `Channel` that emits a single value and then ends. * - * @example + * **Example** (Creating channels that succeed) + * * ```ts * import { Channel } from "effect" * @@ -562,7 +614,8 @@ export declare const succeed: (value: A) => Channel; /** * Creates a `Channel` that immediately ends with the specified value. * - * @example + * **Example** (Ending with a value) + * * ```ts * import { Channel } from "effect" * @@ -584,12 +637,18 @@ export declare const endSync: (evaluate: LazyArg) => Channel Math.random()) - * // Emits a random number computed when the channel runs + * let requests = 0 + * + * const channel = Channel.sync(() => { + * requests += 1 + * return `request-${requests}` + * }) + * // Emits "request-1" when the channel runs for the first time * ``` * * @category constructors @@ -597,9 +656,10 @@ export declare const endSync: (evaluate: LazyArg) => Channel(evaluate: LazyArg) => Channel; /** - * Represents an Channel that emits no elements + * Represents a `Channel` that emits no elements. + * + * **Example** (Using empty channels) * - * @example * ```ts * import { Channel } from "effect" * @@ -615,14 +675,15 @@ export declare const sync: (evaluate: LazyArg) => Channel; * shouldEmit ? Channel.succeed("data") : Channel.empty * ``` * - * @since 2.0.0 * @category constructors + * @since 4.0.0 */ export declare const empty: Channel; /** - * Represents an Channel that never completes + * Represents a `Channel` that never completes. + * + * **Example** (Using non-terminating channels) * - * @example * ```ts * import { Channel } from "effect" * @@ -640,14 +701,15 @@ export declare const empty: Channel; * shouldComplete ? Channel.succeed("done") : Channel.never * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export declare const never: Channel; /** * Constructs a channel that fails immediately with the specified error. * - * @example + * **Example** (Failing with an error) + * * ```ts * import { Channel } from "effect" * @@ -670,15 +732,21 @@ export declare const never: Channel; * ) * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export declare const fail: (error: E) => Channel; /** * Constructs a channel that fails immediately with the specified lazily * evaluated error. * - * @example + * **When to use** + * + * Use when the error value should be computed each time the channel runs instead + * of when the channel is constructed. + * + * **Example** (Failing with a lazy error) + * * ```ts * import { Channel } from "effect" * @@ -689,25 +757,33 @@ export declare const fail: (error: E) => Channel; * }) * * // The error computation is deferred until the channel runs - * const conditionalError = Channel.failSync(() => - * Math.random() > 0.5 ? "Error A" : "Error B" - * ) + * let attempts = 0 + * const conditionalError = Channel.failSync(() => { + * attempts += 1 + * return `Error after attempt ${attempts}` + * }) * * // Use with expensive error construction * const expensiveError = Channel.failSync(() => { - * const timestamp = Date.now() - * return new Error(`Failed at: ${timestamp}`) + * const requestId = "request-123" + * return new Error(`Failed while processing ${requestId}`) * }) * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export declare const failSync: (evaluate: LazyArg) => Channel; /** * Constructs a channel that fails immediately with the specified `Cause`. * - * @example + * **When to use** + * + * Use when the channel failure must preserve a full `Cause`, such as defects, + * interruptions, or combined failures. + * + * **Example** (Failing with causes) + * * ```ts * import { Cause, Channel } from "effect" * @@ -724,39 +800,42 @@ export declare const failSync: (evaluate: LazyArg) => Channel(cause: Cause.Cause) => Channel; /** * Constructs a channel that fails immediately with the specified lazily * evaluated `Cause`. * - * @example + * **Example** (Failing with lazy causes) + * * ```ts * import { Cause, Channel } from "effect" * * // Create a channel that fails with a lazily computed cause + * let attempts = 0 * const failedChannel = Channel.failCauseSync(() => { - * const errorType = Math.random() > 0.5 ? "A" : "B" - * return Cause.fail(`Runtime error ${errorType}`) + * attempts += 1 + * return Cause.fail(`Runtime error after attempt ${attempts}`) * }) * * // Create a channel with die cause computation * const dieCauseChannel = Channel.failCauseSync(() => { - * const timestamp = Date.now() - * return Cause.die(`Error at ${timestamp}`) + * const operation = "load-profile" + * return Cause.die(`Unexpected defect during ${operation}`) * }) * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export declare const failCauseSync: (evaluate: LazyArg>) => Channel; /** * Constructs a channel that fails immediately with the specified defect. * - * @example + * **Example** (Dying with defects) + * * ```ts * import { Channel } from "effect" * @@ -773,14 +852,15 @@ export declare const failCauseSync: (evaluate: LazyArg>) => Ch * }) * ``` * - * @since 2.0.0 * @category constructors + * @since 4.0.0 */ export declare const die: (defect: unknown) => Channel; /** - * Use an effect to write a single value to the channel. + * Uses an effect to write a single value to the channel. + * + * **Example** (Creating channels from effects) * - * @example * ```ts * import { Channel, Data, Effect } from "effect" * @@ -810,31 +890,47 @@ export declare const die: (defect: unknown) => Channel; * ) * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export declare const fromEffect: (effect: Effect.Effect) => Channel, void, unknown, unknown, unknown, R>; /** - * @since 4.0.0 + * Creates a channel that evaluates an effect and uses its successful value as + * the channel's done value without emitting any output elements. + * + * **Details** + * + * If the effect fails, the channel fails with the effect's error. + * * @category constructors + * @since 4.0.0 */ export declare const fromEffectDone: (effect: Effect.Effect) => Channel, A, unknown, unknown, unknown, R>; /** - * Use an effect and discard its result. + * Uses an effect and discards its result. * - * @since 4.0.0 * @category constructors + * @since 4.0.0 */ export declare const fromEffectDrain: (effect: Effect.Effect) => Channel; /** - * @since 4.0.0 + * Creates a channel from an effect that produces a `Take`. + * + * **Details** + * + * A successful `Take` emits a non-empty array of output elements. A failed + * `Take` fails the channel. A done `Take` completes the channel with its done + * value. + * * @category constructors + * @since 4.0.0 */ export declare const fromEffectTake: (effect: Effect.Effect, E2, R>) => Channel, E | E2, Done, unknown, unknown, unknown, R>; /** - * Create a channel from a queue + * Creates a channel from a queue. + * + * **Example** (Creating channels from queues) * - * @example * ```ts * import { Channel, Data, Effect, Queue } from "effect" * @@ -866,14 +962,15 @@ export declare const fromEffectTake: (effect: Effect.Effect(queue: Queue.Dequeue) => Channel>; /** - * Create a channel from a queue that emits arrays of elements + * Creates a channel from a queue that emits arrays of elements. + * + * **Example** (Creating batched channels from queues) * - * @example * ```ts * import { Channel, Data, Effect, Queue } from "effect" * @@ -909,19 +1006,23 @@ export declare const fromQueue: (queue: Queue.Dequeue) => Channel(queue: Queue.Dequeue) => Channel, Exclude>; /** + * Creates a channel that forwards upstream input elements, input errors, and + * the upstream done value unchanged. + * + * @category constructors * @since 2.0.0 - * @category Constructors */ export declare const identity: () => Channel; /** - * Create a channel from a PubSub subscription + * Creates a channel from a PubSub subscription. + * + * **Example** (Creating channels from subscriptions) * - * @example * ```ts * import { Channel, Data, Effect, PubSub } from "effect" * @@ -958,21 +1059,21 @@ export declare const identity: () => Channel(subscription: PubSub.Subscription) => Channel; /** - * Create a channel from a PubSub subscription that outputs arrays of values. + * Creates a channel from a PubSub subscription that outputs arrays of values. + * + * **Details** * * This constructor creates a channel that reads from a PubSub subscription and outputs * arrays of values in chunks. It's useful when you want to process multiple values at once * for better performance. * - * @param subscription - The PubSub subscription to read from - * @param chunkSize - The maximum number of elements to read in each chunk (default: 4096) + * **Example** (Batching subscription values) * - * @example * ```ts * import { Channel, Data, Effect, PubSub } from "effect" * @@ -998,7 +1099,8 @@ export declare const fromSubscription: (subscription: PubSub.Subscription) * }) * ``` * - * @example + * **Example** (Processing subscription values in batches) + * * ```ts * import { Channel, Data, Effect, PubSub } from "effect" * @@ -1023,13 +1125,10 @@ export declare const fromSubscription: (subscription: PubSub.Subscription) * }) * ``` * - * @example - * ```ts - * import { Channel, Data, Effect, PubSub } from "effect" + * **Example** (Aggregating subscription metrics) * - * class MetricsError extends Data.TaggedError("MetricsError")<{ - * readonly cause: string - * }> {} + * ```ts + * import { Channel, Effect, PubSub } from "effect" * * const metricsAggregator = Effect.gen(function*() { * const metricsPubSub = yield* PubSub.bounded< @@ -1054,7 +1153,8 @@ export declare const fromSubscription: (subscription: PubSub.Subscription) * average: avg, * min, * max, - * timestamp: Date.now() + * firstTimestamp: Math.min(...metrics.map((m) => m.timestamp)), + * lastTimestamp: Math.max(...metrics.map((m) => m.timestamp)) * } * }) * @@ -1062,20 +1162,21 @@ export declare const fromSubscription: (subscription: PubSub.Subscription) * }) * ``` * - * @since 4.0.0 * @category constructors + * @since 4.0.0 */ export declare const fromSubscriptionArray: (subscription: PubSub.Subscription) => Channel>; /** - * Create a channel from a PubSub that outputs individual values. + * Creates a channel from a PubSub that outputs individual values. + * + * **Details** * * This constructor creates a channel that reads from a PubSub by automatically * subscribing to it. The channel outputs individual values as they are published * to the PubSub, making it ideal for real-time streaming scenarios. * - * @param pubsub - The PubSub to read from + * **Example** (Creating channels from PubSubs) * - * @example * ```ts * import { Channel, Data, Effect, PubSub } from "effect" * @@ -1099,13 +1200,10 @@ export declare const fromSubscriptionArray: (subscription: PubSub.Subscriptio * }) * ``` * - * @example - * ```ts - * import { Channel, Data, Effect, PubSub } from "effect" + * **Example** (Streaming PubSub notifications) * - * class NotificationError extends Data.TaggedError("NotificationError")<{ - * readonly reason: string - * }> {} + * ```ts + * import { Channel, Effect, PubSub } from "effect" * * const notificationService = Effect.gen(function*() { * const notificationPubSub = yield* PubSub.bounded(50) @@ -1114,24 +1212,21 @@ export declare const fromSubscriptionArray: (subscription: PubSub.Subscriptio * const notificationChannel = Channel.fromPubSub(notificationPubSub) * * // Transform notifications to add timestamps + * const receivedAt = "2024-01-01T00:00:00.000Z" * const timestampedChannel = Channel.map(notificationChannel, (message) => ({ * message, - * timestamp: new Date().toISOString(), - * id: Math.random().toString(36).substr(2, 9) + * receivedAt, + * id: `notification:${message}` * })) * * return timestampedChannel * }) * ``` * - * @example - * ```ts - * import { Channel, Data, Effect, PubSub } from "effect" + * **Example** (Processing PubSub events) * - * class EventProcessingError extends Data.TaggedError("EventProcessingError")<{ - * readonly eventType: string - * readonly cause: string - * }> {} + * ```ts + * import { Channel, Effect, PubSub } from "effect" * * interface DomainEvent { * readonly type: string @@ -1151,7 +1246,7 @@ export declare const fromSubscriptionArray: (subscription: PubSub.Subscriptio * return { * ...event, * processed: true, - * processedAt: Date.now() + * processedAt: event.timestamp + 1 * } * } * return event @@ -1161,21 +1256,21 @@ export declare const fromSubscriptionArray: (subscription: PubSub.Subscriptio * }) * ``` * - * @since 4.0.0 * @category constructors + * @since 2.0.0 */ export declare const fromPubSub: (pubsub: PubSub.PubSub) => Channel; /** - * Create a channel from a PubSub that outputs arrays of values. + * Creates a channel from a PubSub that outputs arrays of values. + * + * **Details** * * This constructor creates a channel that reads from a PubSub by automatically * subscribing to it and collecting values into arrays. The channel outputs * arrays of values in chunks, making it ideal for batch processing scenarios. * - * @param pubsub - The PubSub to read from - * @param chunkSize - The maximum number of elements to collect in each array (default: 4096) + * **Example** (Batching PubSub values) * - * @example * ```ts * import { Channel, Data, Effect, PubSub } from "effect" * @@ -1200,20 +1295,17 @@ export declare const fromPubSub: (pubsub: PubSub.PubSub) => Channel; * }) * ``` * - * @example - * ```ts - * import { Channel, Data, Effect, PubSub } from "effect" + * **Example** (Processing PubSub orders in batches) * - * class OrderProcessingError extends Data.TaggedError("OrderProcessingError")<{ - * readonly orderId: string - * readonly reason: string - * }> {} + * ```ts + * import { Channel, Effect, PubSub } from "effect" * * interface Order { * readonly id: string * readonly customerId: string * readonly items: ReadonlyArray * readonly total: number + * readonly submittedAt: number * } * * const orderBatchProcessor = Effect.gen(function*() { @@ -1233,7 +1325,7 @@ export declare const fromPubSub: (pubsub: PubSub.PubSub) => Channel; * batchSize: orderBatch.length, * totalRevenue, * uniqueCustomers: customerCount, - * processedAt: Date.now(), + * firstSubmittedAt: Math.min(...orderBatch.map((order) => order.submittedAt)), * orders: orderBatch * } * }) @@ -1242,14 +1334,10 @@ export declare const fromPubSub: (pubsub: PubSub.PubSub) => Channel; * }) * ``` * - * @example - * ```ts - * import { Channel, Data, Effect, PubSub } from "effect" + * **Example** (Processing PubSub logs in batches) * - * class LogProcessingError extends Data.TaggedError("LogProcessingError")<{ - * readonly batchId: string - * readonly cause: string - * }> {} + * ```ts + * import { Channel, Effect, PubSub } from "effect" * * interface LogEntry { * readonly timestamp: number @@ -1276,7 +1364,7 @@ export declare const fromPubSub: (pubsub: PubSub.PubSub) => Channel; * } * * return { - * batchId: Math.random().toString(36).substr(2, 9), + * batchId: `${timeRange.start}-${timeRange.end}`, * totalEntries: logBatch.length, * errorCount, * warnCount, @@ -1290,40 +1378,62 @@ export declare const fromPubSub: (pubsub: PubSub.PubSub) => Channel; * }) * ``` * - * @since 4.0.0 * @category constructors + * @since 4.0.0 */ export declare const fromPubSubArray: (pubsub: PubSub.PubSub) => Channel>; /** - * @since 4.0.0 + * Subscribes to a `PubSub` of `Take` values and exposes them as a channel. + * + * **Details** + * + * Output `Take` values are emitted as non-empty arrays. Failed `Take` values + * fail the channel. Done `Take` values complete the channel. + * * @category constructors + * @since 4.0.0 */ export declare const fromPubSubTake: (pubsub: PubSub.PubSub>) => Channel, E, Done>; /** * Creates a Channel from a Schedule. * - * @since 4.0.0 * @category constructors + * @since 4.0.0 */ export declare const fromSchedule: (schedule: Schedule.Schedule) => Channel; /** - * Creates a Channel from a AsyncIterable. + * Creates a channel that pulls values from an `AsyncIterable`. + * + * **Details** + * + * Each yielded value is emitted as an output element. The iterator's return + * value becomes the channel's done value. Thrown or rejected iterator errors + * are converted with `onError`. If the channel scope closes early and the + * iterator has a `return` method, that method is called. * - * @since 4.0.0 * @category constructors + * @since 4.0.0 */ export declare const fromAsyncIterable: (iterable: AsyncIterable, onError: (error: unknown) => E) => Channel; /** - * Creates a Channel from a AsyncIterable that emits arrays of elements. + * Creates a channel from an `AsyncIterable`, emitting each yielded value as a + * single-element non-empty array. + * + * **Details** + * + * The iterator's return value becomes the channel's done value. Thrown or + * rejected iterator errors are converted with `onError`. If the channel scope + * closes early and the iterator has a `return` method, that method is called. * - * @since 4.0.0 * @category constructors + * @since 4.0.0 */ export declare const fromAsyncIterableArray: (iterable: AsyncIterable, onError: (error: unknown) => E) => Channel, E, D>; /** * Maps the output of this channel using the specified function. * - * @example + * **Example** (Mapping channel output) + * * ```ts * import { Channel, Data } from "effect" * @@ -1355,14 +1465,15 @@ export declare const fromAsyncIterableArray: (iterable: AsyncIterable(f: (o: OutElem, i: number) => OutElem2): (self: Channel) => Channel; /** * Maps the output of this channel using the specified function. * - * @example + * **Example** (Mapping channel output) + * * ```ts * import { Channel, Data } from "effect" * @@ -1433,63 +1545,88 @@ export declare const map: { * })) * ``` * + * @category sequencing * @since 2.0.0 - * @category Sequencing */ (self: Channel, f: (o: OutElem, i: number) => OutElem2): Channel; }; /** * Maps the done value of this channel using the specified function. * - * @since 2.0.0 - * @category Sequencing + * @category sequencing + * @since 4.0.0 */ export declare const mapDone: { /** * Maps the done value of this channel using the specified function. * - * @since 2.0.0 - * @category Sequencing + * @category sequencing + * @since 4.0.0 */ (f: (o: OutDone) => OutDone2): (self: Channel) => Channel; /** * Maps the done value of this channel using the specified function. * - * @since 2.0.0 - * @category Sequencing + * @category sequencing + * @since 4.0.0 */ (self: Channel, f: (o: OutDone) => OutDone2): Channel; }; /** * Maps the done value of this channel using the specified effectful function. * - * @since 2.0.0 - * @category Sequencing + * **When to use** + * + * Use when the terminal done value transformation needs services or can fail, + * while emitted elements should pass through unchanged. + * + * @category sequencing + * @since 4.0.0 */ export declare const mapDoneEffect: { /** * Maps the done value of this channel using the specified effectful function. * - * @since 2.0.0 - * @category Sequencing + * **When to use** + * + * Use when the terminal done value transformation needs services or can fail, + * while emitted elements should pass through unchanged. + * + * @category sequencing + * @since 4.0.0 */ (f: (o: OutDone) => Effect.Effect): (self: Channel) => Channel; /** * Maps the done value of this channel using the specified effectful function. * - * @since 2.0.0 - * @category Sequencing + * **When to use** + * + * Use when the terminal done value transformation needs services or can fail, + * while emitted elements should pass through unchanged. + * + * @category sequencing + * @since 4.0.0 */ (self: Channel, f: (o: OutDone) => Effect.Effect): Channel; }; /** - * Returns a new channel, which sequentially combines this channel, together - * with the provided factory function, which creates a second channel based on - * the output values of this channel. The result is a channel that will first - * perform the functions of this channel, before performing the functions of - * the created channel (including yielding its terminal value). + * Maps each output element with an effectful function, preserving the source + * channel's done value. + * + * **When to use** + * + * Use when transforming each channel output needs an Effect, service + * dependency, failure channel, or configured concurrency. + * + * **Details** + * + * The mapping function receives the output element and its zero-based index. + * By default elements are mapped sequentially. Use `options.concurrency` to + * map multiple elements concurrently, and `options.unordered` to allow + * concurrently mapped outputs to be emitted as soon as they complete. + * + * **Example** (Mapping channel output with effects) * - * @example * ```ts * import { Channel, Data, Effect } from "effect" * @@ -1526,18 +1663,28 @@ export declare const mapDoneEffect: { * ) * ``` * - * @since 2.0.0 * @category sequencing + * @since 2.0.0 */ export declare const mapEffect: { /** - * Returns a new channel, which sequentially combines this channel, together - * with the provided factory function, which creates a second channel based on - * the output values of this channel. The result is a channel that will first - * perform the functions of this channel, before performing the functions of - * the created channel (including yielding its terminal value). + * Maps each output element with an effectful function, preserving the source + * channel's done value. + * + * **When to use** + * + * Use when transforming each channel output needs an Effect, service + * dependency, failure channel, or configured concurrency. + * + * **Details** + * + * The mapping function receives the output element and its zero-based index. + * By default elements are mapped sequentially. Use `options.concurrency` to + * map multiple elements concurrently, and `options.unordered` to allow + * concurrently mapped outputs to be emitted as soon as they complete. + * + * **Example** (Mapping channel output with effects) * - * @example * ```ts * import { Channel, Data, Effect } from "effect" * @@ -1574,21 +1721,31 @@ export declare const mapEffect: { * ) * ``` * - * @since 2.0.0 * @category sequencing + * @since 2.0.0 */ (f: (d: OutElem, i: number) => Effect.Effect, options?: { readonly concurrency?: number | "unbounded" | undefined; readonly unordered?: boolean | undefined; }): (self: Channel) => Channel; /** - * Returns a new channel, which sequentially combines this channel, together - * with the provided factory function, which creates a second channel based on - * the output values of this channel. The result is a channel that will first - * perform the functions of this channel, before performing the functions of - * the created channel (including yielding its terminal value). + * Maps each output element with an effectful function, preserving the source + * channel's done value. + * + * **When to use** + * + * Use when transforming each channel output needs an Effect, service + * dependency, failure channel, or configured concurrency. + * + * **Details** + * + * The mapping function receives the output element and its zero-based index. + * By default elements are mapped sequentially. Use `options.concurrency` to + * map multiple elements concurrently, and `options.unordered` to allow + * concurrently mapped outputs to be emitted as soon as they complete. + * + * **Example** (Mapping channel output with effects) * - * @example * ```ts * import { Channel, Data, Effect } from "effect" * @@ -1625,8 +1782,8 @@ export declare const mapEffect: { * ) * ``` * - * @since 2.0.0 * @category sequencing + * @since 2.0.0 */ (self: Channel, f: (d: OutElem, i: number) => Effect.Effect, options?: { readonly concurrency?: number | "unbounded" | undefined; @@ -1637,24 +1794,24 @@ export declare const mapEffect: { * Returns a new channel which is the same as this one but applies the given * function to the input channel’s input elements. * - * @since 2.0.0 * @category sequencing + * @since 2.0.0 */ export declare const mapInput: { /** * Returns a new channel which is the same as this one but applies the given * function to the input channel’s input elements. * - * @since 2.0.0 * @category sequencing + * @since 2.0.0 */ (f: (i: InElem2) => Effect.Effect): (self: Channel) => Channel; /** * Returns a new channel which is the same as this one but applies the given * function to the input channel’s input elements. * - * @since 2.0.0 * @category sequencing + * @since 2.0.0 */ (self: Channel, f: (i: InElem2) => Effect.Effect): Channel; }; @@ -1662,24 +1819,24 @@ export declare const mapInput: { * Returns a new channel which is the same as this one but applies the given * function to the input errors. * - * @since 2.0.0 * @category sequencing + * @since 2.0.0 */ export declare const mapInputError: { /** * Returns a new channel which is the same as this one but applies the given * function to the input errors. * - * @since 2.0.0 * @category sequencing + * @since 2.0.0 */ (f: (i: InErr2) => Effect.Effect): (self: Channel) => Channel; /** * Returns a new channel which is the same as this one but applies the given * function to the input errors. * - * @since 2.0.0 * @category sequencing + * @since 2.0.0 */ (self: Channel, f: (i: InErr2) => Effect.Effect): Channel; }; @@ -1687,11 +1844,14 @@ export declare const mapInputError: { * Applies a side effect function to each output element of the channel, * returning a new channel that emits the same elements. * + * **Details** + * * The `tap` function allows you to perform side effects (like logging or * debugging) on each element emitted by a channel without modifying the * elements themselves. * - * @example + * **Example** (Tapping channel output) + * * ```ts * import { Channel, Console, Data } from "effect" * @@ -1712,19 +1872,22 @@ export declare const mapInputError: { * // Outputs: 1, 2, 3 (while logging each) * ``` * - * @since 4.0.0 * @category sequencing + * @since 4.0.0 */ export declare const tap: { /** * Applies a side effect function to each output element of the channel, * returning a new channel that emits the same elements. * + * **Details** + * * The `tap` function allows you to perform side effects (like logging or * debugging) on each element emitted by a channel without modifying the * elements themselves. * - * @example + * **Example** (Tapping channel output) + * * ```ts * import { Channel, Console, Data } from "effect" * @@ -1745,8 +1908,8 @@ export declare const tap: { * // Outputs: 1, 2, 3 (while logging each) * ``` * - * @since 4.0.0 * @category sequencing + * @since 4.0.0 */ (f: (d: Types.NoInfer) => Effect.Effect, options?: { readonly concurrency?: number | "unbounded" | undefined; @@ -1755,11 +1918,14 @@ export declare const tap: { * Applies a side effect function to each output element of the channel, * returning a new channel that emits the same elements. * + * **Details** + * * The `tap` function allows you to perform side effects (like logging or * debugging) on each element emitted by a channel without modifying the * elements themselves. * - * @example + * **Example** (Tapping channel output) + * * ```ts * import { Channel, Console, Data } from "effect" * @@ -1780,21 +1946,26 @@ export declare const tap: { * // Outputs: 1, 2, 3 (while logging each) * ``` * - * @since 4.0.0 * @category sequencing + * @since 4.0.0 */ (self: Channel, f: (d: Types.NoInfer) => Effect.Effect, options?: { readonly concurrency?: number | "unbounded" | undefined; }): Channel; }; /** - * Returns a new channel, which sequentially combines this channel, together - * with the provided factory function, which creates a second channel based on - * the output values of this channel. The result is a channel that will first - * perform the functions of this channel, before performing the functions of - * the created channel (including yielding its terminal value). + * Maps each output element to a channel and flattens the child channel + * outputs. + * + * **Details** + * + * The source channel's done value is preserved. Child channel done values are + * used only for child-channel completion. By default child channels are run + * sequentially. Use `options.concurrency` and `options.bufferSize` to run child + * channels concurrently. + * + * **Example** (FlatMapping channel output) * - * @example * ```ts * import { Channel, Data } from "effect" * @@ -1816,18 +1987,23 @@ export declare const tap: { * // Outputs: "item-1-0", "item-2-0", "item-2-1", "item-3-0", "item-3-1", "item-3-2" * ``` * - * @since 2.0.0 * @category sequencing + * @since 2.0.0 */ export declare const flatMap: { /** - * Returns a new channel, which sequentially combines this channel, together - * with the provided factory function, which creates a second channel based on - * the output values of this channel. The result is a channel that will first - * perform the functions of this channel, before performing the functions of - * the created channel (including yielding its terminal value). + * Maps each output element to a channel and flattens the child channel + * outputs. + * + * **Details** + * + * The source channel's done value is preserved. Child channel done values are + * used only for child-channel completion. By default child channels are run + * sequentially. Use `options.concurrency` and `options.bufferSize` to run child + * channels concurrently. + * + * **Example** (FlatMapping channel output) * - * @example * ```ts * import { Channel, Data } from "effect" * @@ -1849,21 +2025,26 @@ export declare const flatMap: { * // Outputs: "item-1-0", "item-2-0", "item-2-1", "item-3-0", "item-3-1", "item-3-2" * ``` * - * @since 2.0.0 * @category sequencing + * @since 2.0.0 */ (f: (d: OutElem) => Channel, options?: { readonly concurrency?: number | "unbounded" | undefined; readonly bufferSize?: number | undefined; }): (self: Channel) => Channel; /** - * Returns a new channel, which sequentially combines this channel, together - * with the provided factory function, which creates a second channel based on - * the output values of this channel. The result is a channel that will first - * perform the functions of this channel, before performing the functions of - * the created channel (including yielding its terminal value). + * Maps each output element to a channel and flattens the child channel + * outputs. + * + * **Details** + * + * The source channel's done value is preserved. Child channel done values are + * used only for child-channel completion. By default child channels are run + * sequentially. Use `options.concurrency` and `options.bufferSize` to run child + * channels concurrently. + * + * **Example** (FlatMapping channel output) * - * @example * ```ts * import { Channel, Data } from "effect" * @@ -1885,8 +2066,8 @@ export declare const flatMap: { * // Outputs: "item-1-0", "item-2-0", "item-2-1", "item-3-0", "item-3-1", "item-3-2" * ``` * - * @since 2.0.0 * @category sequencing + * @since 2.0.0 */ (self: Channel, f: (d: OutElem) => Channel, options?: { readonly concurrency?: number | "unbounded" | undefined; @@ -1897,7 +2078,8 @@ export declare const flatMap: { * Concatenates this channel with another channel created from the terminal value * of this channel. The new channel is created using the provided function. * - * @example + * **Example** (Concatenating with completion values) + * * ```ts * import { Channel, Data } from "effect" * @@ -1914,15 +2096,16 @@ export declare const flatMap: { * // Outputs: 1, 2, 3, then "Completed processing" * ``` * - * @since 2.0.0 * @category sequencing + * @since 4.0.0 */ export declare const concatWith: { /** * Concatenates this channel with another channel created from the terminal value * of this channel. The new channel is created using the provided function. * - * @example + * **Example** (Concatenating with completion values) + * * ```ts * import { Channel, Data } from "effect" * @@ -1939,15 +2122,16 @@ export declare const concatWith: { * // Outputs: 1, 2, 3, then "Completed processing" * ``` * - * @since 2.0.0 * @category sequencing + * @since 4.0.0 */ (f: (leftover: Types.NoInfer) => Channel): (self: Channel) => Channel; /** * Concatenates this channel with another channel created from the terminal value * of this channel. The new channel is created using the provided function. * - * @example + * **Example** (Concatenating with completion values) + * * ```ts * import { Channel, Data } from "effect" * @@ -1964,8 +2148,8 @@ export declare const concatWith: { * // Outputs: 1, 2, 3, then "Completed processing" * ``` * - * @since 2.0.0 * @category sequencing + * @since 4.0.0 */ (self: Channel, f: (leftover: Types.NoInfer) => Channel): Channel; }; @@ -1973,7 +2157,8 @@ export declare const concatWith: { * Concatenates this channel with another channel, so that the second channel * starts emitting values after the first channel has completed. * - * @example + * **Example** (Concatenating channels) + * * ```ts * import { Channel, Data } from "effect" * @@ -1991,15 +2176,16 @@ export declare const concatWith: { * // Outputs: 1, 2, 3, "a", "b", "c" * ``` * - * @since 2.0.0 * @category sequencing + * @since 4.0.0 */ export declare const concat: { /** * Concatenates this channel with another channel, so that the second channel * starts emitting values after the first channel has completed. * - * @example + * **Example** (Concatenating channels) + * * ```ts * import { Channel, Data } from "effect" * @@ -2017,15 +2203,16 @@ export declare const concat: { * // Outputs: 1, 2, 3, "a", "b", "c" * ``` * - * @since 2.0.0 * @category sequencing + * @since 4.0.0 */ (that: Channel): (self: Channel) => Channel; /** * Concatenates this channel with another channel, so that the second channel * starts emitting values after the first channel has completed. * - * @example + * **Example** (Concatenating channels) + * * ```ts * import { Channel, Data } from "effect" * @@ -2043,65 +2230,114 @@ export declare const concat: { * // Outputs: 1, 2, 3, "a", "b", "c" * ``` * - * @since 2.0.0 * @category sequencing + * @since 4.0.0 */ (self: Channel, that: Channel): Channel; }; /** - * Combines the elements from this channel and the specified channel by - * repeatedly applying the function `f` to extract an element using both sides - * and conceptually "offer" it to the destination channel. `f` can maintain - * some internal state to control the combining process, with the initial - * state being specified by `s`. + * Combines two channels with a stateful pull function. + * + * **When to use** + * + * Use to coordinate pulling from two channels when each output element depends + * on both sides and local state. + * + * **Details** + * + * The combining function receives the current state and pull functions for the + * left and right channels. It returns the next output element together with the + * next state. * - * @since 4.0.0 * @category sequencing + * @since 4.0.0 */ export declare const combine: { /** - * Combines the elements from this channel and the specified channel by - * repeatedly applying the function `f` to extract an element using both sides - * and conceptually "offer" it to the destination channel. `f` can maintain - * some internal state to control the combining process, with the initial - * state being specified by `s`. + * Combines two channels with a stateful pull function. + * + * **When to use** + * + * Use to coordinate pulling from two channels when each output element depends + * on both sides and local state. + * + * **Details** + * + * The combining function receives the current state and pull functions for the + * left and right channels. It returns the next output element together with the + * next state. * - * @since 4.0.0 * @category sequencing + * @since 4.0.0 */ (that: Channel, s: LazyArg, f: (s: S, pullLeft: Pull.Pull, pullRight: Pull.Pull) => Effect.Effect): (self: Channel) => Channel, Cause.Done.Extract, InElem & InElem2, InErr & InErr2, InDone & InDone2, Env | Env2 | R>; /** - * Combines the elements from this channel and the specified channel by - * repeatedly applying the function `f` to extract an element using both sides - * and conceptually "offer" it to the destination channel. `f` can maintain - * some internal state to control the combining process, with the initial - * state being specified by `s`. + * Combines two channels with a stateful pull function. + * + * **When to use** + * + * Use to coordinate pulling from two channels when each output element depends + * on both sides and local state. + * + * **Details** + * + * The combining function receives the current state and pull functions for the + * left and right channels. It returns the next output element together with the + * next state. * - * @since 4.0.0 * @category sequencing + * @since 4.0.0 */ (self: Channel, that: Channel, s: LazyArg, f: (s: S, pullLeft: Pull.Pull, pullRight: Pull.Pull) => Effect.Effect): Channel, Cause.Done.Extract, InElem & InElem2, InErr & InErr2, InDone & InDone2, Env | Env2 | R>; }; /** - * @since 2.0.0 + * Runs a fallback channel if this channel completes without emitting any + * output elements. + * + * **Details** + * + * If the source emits at least one element, the source is used unchanged. If + * the source completes before emitting an element, the fallback function + * receives the source done value and returns the replacement channel. + * * @category sequencing + * @since 4.0.0 */ export declare const orElseIfEmpty: { /** - * @since 2.0.0 + * Runs a fallback channel if this channel completes without emitting any + * output elements. + * + * **Details** + * + * If the source emits at least one element, the source is used unchanged. If + * the source completes before emitting an element, the fallback function + * receives the source done value and returns the replacement channel. + * * @category sequencing + * @since 4.0.0 */ (f: (leftover: Types.NoInfer) => Channel): (self: Channel) => Channel; /** - * @since 2.0.0 + * Runs a fallback channel if this channel completes without emitting any + * output elements. + * + * **Details** + * + * If the source emits at least one element, the source is used unchanged. If + * the source completes before emitting an element, the fallback function + * receives the source done value and returns the replacement channel. + * * @category sequencing + * @since 4.0.0 */ (self: Channel, f: (leftover: Types.NoInfer) => Channel): Channel; }; /** - * Flatten a channel of channels. + * Flattens a channel of channels. + * + * **Example** (Flattening nested channels) * - * @example * ```ts * import { Channel, Data } from "effect" * @@ -2122,14 +2358,15 @@ export declare const orElseIfEmpty: { * // Outputs: 1, 2, 3, 4, 5, 6 * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export declare const flatten: (channels: Channel, OutErr1, OutDone1, InElem1, InErr1, InDone1, Env1>) => Channel; /** * Flattens a channel that outputs arrays into a channel that outputs individual elements. * - * @example + * **Example** (Flattening arrays of channel output) + * * ```ts * import { Channel, Data } from "effect" * @@ -2150,20 +2387,29 @@ export declare const flatten: (self: Channel, OutErr, OutDone, InElem, InErr, InDone, Env>) => Channel; /** + * Flattens a channel that emits `Take` values into a channel that emits the + * `Take` outputs directly. + * + * **Details** + * + * Output `Take` values are emitted as non-empty arrays. Failed `Take` values + * fail the returned channel. Done `Take` values complete the returned channel. + * + * @category transforming * @since 4.0.0 - * @category utils */ export declare const flattenTake: (self: Channel, OutErr2, OutDone2, InElem, InErr, InDone, Env>) => Channel, OutErr | OutErr2, OutDone, InElem, InErr, InDone, Env>; /** * Creates a new channel that consumes all output from the source channel * but emits nothing, preserving only the completion value. * - * @example + * **Example** (Draining channel output) + * * ```ts * import { Channel } from "effect" * @@ -2177,52 +2423,82 @@ export declare const flattenTake: (self: Channel) => Channel; /** * Repeats this channel according to the provided schedule. * + * @category repetition * @since 4.0.0 - * @category utils */ export declare const repeat: { /** * Repeats this channel according to the provided schedule. * + * @category repetition * @since 4.0.0 - * @category utils */ (schedule: Schedule.Schedule, SE, SR> | (($: (_: Schedule.Schedule, SE, SR>) => Schedule.Schedule) => Schedule.Schedule, SE, SR>)): (self: Channel) => Channel; /** * Repeats this channel according to the provided schedule. * + * @category repetition * @since 4.0.0 - * @category utils */ (self: Channel, schedule: Schedule.Schedule | (($: (_: Schedule.Schedule, SE, SR>) => Schedule.Schedule) => Schedule.Schedule, SE, SR>)): Channel; }; /** * Repeats this channel forever. * + * @category repetition * @since 4.0.0 - * @category utils */ export declare const forever: (self: Channel) => Channel; /** + * Runs a schedule step for each output element while preserving the emitted + * elements. + * + * **Details** + * + * The schedule receives each output element as input. Schedule delays are + * applied between emitted elements. If the schedule fails, the returned channel + * fails. If the schedule finishes, the returned channel completes with the + * schedule output. + * + * @category sequencing * @since 4.0.0 - * @category utils */ export declare const schedule: { /** + * Runs a schedule step for each output element while preserving the emitted + * elements. + * + * **Details** + * + * The schedule receives each output element as input. Schedule delays are + * applied between emitted elements. If the schedule fails, the returned channel + * fails. If the schedule finishes, the returned channel completes with the + * schedule output. + * + * @category sequencing * @since 4.0.0 - * @category utils */ (schedule: Schedule.Schedule, SE, SR>): (self: Channel) => Channel; /** + * Runs a schedule step for each output element while preserving the emitted + * elements. + * + * **Details** + * + * The schedule receives each output element as input. Schedule delays are + * applied between emitted elements. If the schedule fails, the returned channel + * fails. If the schedule finishes, the returned channel completes with the + * schedule output. + * + * @category sequencing * @since 4.0.0 - * @category utils */ (self: Channel, schedule: Schedule.Schedule): Channel; }; @@ -2230,7 +2506,8 @@ export declare const schedule: { * Filters the output elements of a channel using a predicate function. * Elements that don't match the predicate are discarded. * - * @example + * **Example** (Filtering channel output) + * * ```ts * import { Channel } from "effect" * @@ -2250,15 +2527,16 @@ export declare const schedule: { * // Outputs: 1, 2, 3 (all typed as numbers) * ``` * - * @since 2.0.0 - * @category Filtering + * @category filtering + * @since 4.0.0 */ export declare const filter: { /** * Filters the output elements of a channel using a predicate function. * Elements that don't match the predicate are discarded. * - * @example + * **Example** (Filtering channel output) + * * ```ts * import { Channel } from "effect" * @@ -2278,15 +2556,16 @@ export declare const filter: { * // Outputs: 1, 2, 3 (all typed as numbers) * ``` * - * @since 2.0.0 - * @category Filtering + * @category filtering + * @since 4.0.0 */ (refinement: Predicate.Refinement): (self: Channel) => Channel; /** * Filters the output elements of a channel using a predicate function. * Elements that don't match the predicate are discarded. * - * @example + * **Example** (Filtering channel output) + * * ```ts * import { Channel } from "effect" * @@ -2306,15 +2585,16 @@ export declare const filter: { * // Outputs: 1, 2, 3 (all typed as numbers) * ``` * - * @since 2.0.0 - * @category Filtering + * @category filtering + * @since 4.0.0 */ (predicate: Predicate.Predicate): (self: Channel) => Channel; /** * Filters the output elements of a channel using a predicate function. * Elements that don't match the predicate are discarded. * - * @example + * **Example** (Filtering channel output) + * * ```ts * import { Channel } from "effect" * @@ -2334,15 +2614,16 @@ export declare const filter: { * // Outputs: 1, 2, 3 (all typed as numbers) * ``` * - * @since 2.0.0 - * @category Filtering + * @category filtering + * @since 4.0.0 */ (self: Channel, refinement: Predicate.Refinement): Channel; /** * Filters the output elements of a channel using a predicate function. * Elements that don't match the predicate are discarded. * - * @example + * **Example** (Filtering channel output) + * * ```ts * import { Channel } from "effect" * @@ -2362,56 +2643,200 @@ export declare const filter: { * // Outputs: 1, 2, 3 (all typed as numbers) * ``` * - * @since 2.0.0 - * @category Filtering + * @category filtering + * @since 4.0.0 */ (self: Channel, predicate: Predicate.Predicate): Channel; }; /** + * Filters and maps output elements using a `Filter`. + * + * **When to use** + * + * Use to keep only channel output elements accepted by a `Filter` and emit + * each filter success value. + * + * **Details** + * + * Successful filter results are emitted as mapped values. Failed filter + * results are discarded. The source channel's errors and done value are + * preserved. + * + * @see {@link filter} for keeping original output elements with a predicate + * @see {@link filterMapEffect} for using an effectful `Filter` + * @see {@link filterMapArray} for filtering arrays of output elements + * + * @category filtering * @since 4.0.0 - * @category Filtering */ export declare const filterMap: { /** + * Filters and maps output elements using a `Filter`. + * + * **When to use** + * + * Use to keep only channel output elements accepted by a `Filter` and emit + * each filter success value. + * + * **Details** + * + * Successful filter results are emitted as mapped values. Failed filter + * results are discarded. The source channel's errors and done value are + * preserved. + * + * @see {@link filter} for keeping original output elements with a predicate + * @see {@link filterMapEffect} for using an effectful `Filter` + * @see {@link filterMapArray} for filtering arrays of output elements + * + * @category filtering * @since 4.0.0 - * @category Filtering */ (filter: Filter.Filter): (self: Channel) => Channel; /** + * Filters and maps output elements using a `Filter`. + * + * **When to use** + * + * Use to keep only channel output elements accepted by a `Filter` and emit + * each filter success value. + * + * **Details** + * + * Successful filter results are emitted as mapped values. Failed filter + * results are discarded. The source channel's errors and done value are + * preserved. + * + * @see {@link filter} for keeping original output elements with a predicate + * @see {@link filterMapEffect} for using an effectful `Filter` + * @see {@link filterMapArray} for filtering arrays of output elements + * + * @category filtering * @since 4.0.0 - * @category Filtering */ (self: Channel, filter: Filter.Filter): Channel; }; /** + * Filters output elements with an effectful predicate. + * + * **When to use** + * + * Use when the keep/discard decision depends on an Effect or service and + * predicate failures should fail the returned channel. + * + * **Details** + * + * Elements for which the predicate succeeds with `true` are emitted. Elements + * for which the predicate succeeds with `false` are discarded. Predicate + * failures fail the returned channel. + * + * @category filtering * @since 4.0.0 - * @category Filtering */ export declare const filterEffect: { /** + * Filters output elements with an effectful predicate. + * + * **When to use** + * + * Use when the keep/discard decision depends on an Effect or service and + * predicate failures should fail the returned channel. + * + * **Details** + * + * Elements for which the predicate succeeds with `true` are emitted. Elements + * for which the predicate succeeds with `false` are discarded. Predicate + * failures fail the returned channel. + * + * @category filtering * @since 4.0.0 - * @category Filtering */ (predicate: (a: OutElem) => Effect.Effect): (self: Channel) => Channel; /** + * Filters output elements with an effectful predicate. + * + * **When to use** + * + * Use when the keep/discard decision depends on an Effect or service and + * predicate failures should fail the returned channel. + * + * **Details** + * + * Elements for which the predicate succeeds with `true` are emitted. Elements + * for which the predicate succeeds with `false` are discarded. Predicate + * failures fail the returned channel. + * + * @category filtering * @since 4.0.0 - * @category Filtering */ (self: Channel, predicate: (a: OutElem) => Effect.Effect): Channel; }; /** + * Filters and maps output elements using an effectful `Filter`. + * + * **When to use** + * + * Use to apply effectful logic that can discard channel output elements and + * emit transformed values for the elements that pass. + * + * **Details** + * + * Successful filter results are emitted as mapped values. Failed filter + * results are discarded. Failures from the effectful filter fail the returned + * channel. + * + * @see {@link filterMap} for using a synchronous `Filter` + * @see {@link filterEffect} for effectfully keeping original output elements + * @see {@link mapEffect} for effectfully transforming every output element + * @see {@link filterMapArrayEffect} for effectful filtering of array outputs + * + * @category filtering * @since 4.0.0 - * @category Filtering */ export declare const filterMapEffect: { /** + * Filters and maps output elements using an effectful `Filter`. + * + * **When to use** + * + * Use to apply effectful logic that can discard channel output elements and + * emit transformed values for the elements that pass. + * + * **Details** + * + * Successful filter results are emitted as mapped values. Failed filter + * results are discarded. Failures from the effectful filter fail the returned + * channel. + * + * @see {@link filterMap} for using a synchronous `Filter` + * @see {@link filterEffect} for effectfully keeping original output elements + * @see {@link mapEffect} for effectfully transforming every output element + * @see {@link filterMapArrayEffect} for effectful filtering of array outputs + * + * @category filtering * @since 4.0.0 - * @category Filtering */ (filter: Filter.FilterEffect): (self: Channel) => Channel; /** + * Filters and maps output elements using an effectful `Filter`. + * + * **When to use** + * + * Use to apply effectful logic that can discard channel output elements and + * emit transformed values for the elements that pass. + * + * **Details** + * + * Successful filter results are emitted as mapped values. Failed filter + * results are discarded. Failures from the effectful filter fail the returned + * channel. + * + * @see {@link filterMap} for using a synchronous `Filter` + * @see {@link filterEffect} for effectfully keeping original output elements + * @see {@link mapEffect} for effectfully transforming every output element + * @see {@link filterMapArrayEffect} for effectful filtering of array outputs + * + * @category filtering * @since 4.0.0 - * @category Filtering */ (self: Channel, filter: Filter.FilterEffect): Channel; }; @@ -2419,7 +2844,8 @@ export declare const filterMapEffect: { * Filters arrays of elements emitted by a channel, applying the filter * to each element within the arrays and only emitting non-empty filtered arrays. * - * @example + * **Example** (Filtering array output) + * * ```ts * import { Array, Channel } from "effect" * @@ -2447,15 +2873,16 @@ export declare const filterMapEffect: { * // Outputs: [2, 4] (the arrays [1,3,5] and [7,9] are discarded) * ``` * + * @category filtering * @since 4.0.0 - * @category Filtering */ export declare const filterArray: { /** * Filters arrays of elements emitted by a channel, applying the filter * to each element within the arrays and only emitting non-empty filtered arrays. * - * @example + * **Example** (Filtering array output) + * * ```ts * import { Array, Channel } from "effect" * @@ -2483,15 +2910,16 @@ export declare const filterArray: { * // Outputs: [2, 4] (the arrays [1,3,5] and [7,9] are discarded) * ``` * + * @category filtering * @since 4.0.0 - * @category Filtering */ (refinement: Predicate.Refinement): (self: Channel, OutErr, OutDone, InElem, InErr, InDone, Env>) => Channel, OutErr, OutDone, InElem, InErr, InDone, Env>; /** * Filters arrays of elements emitted by a channel, applying the filter * to each element within the arrays and only emitting non-empty filtered arrays. * - * @example + * **Example** (Filtering array output) + * * ```ts * import { Array, Channel } from "effect" * @@ -2519,15 +2947,16 @@ export declare const filterArray: { * // Outputs: [2, 4] (the arrays [1,3,5] and [7,9] are discarded) * ``` * + * @category filtering * @since 4.0.0 - * @category Filtering */ (predicate: Predicate.Predicate>): (self: Channel, OutErr, OutDone, InElem, InErr, InDone, Env>) => Channel, OutErr, OutDone, InElem, InErr, InDone, Env>; /** * Filters arrays of elements emitted by a channel, applying the filter * to each element within the arrays and only emitting non-empty filtered arrays. * - * @example + * **Example** (Filtering array output) + * * ```ts * import { Array, Channel } from "effect" * @@ -2555,15 +2984,16 @@ export declare const filterArray: { * // Outputs: [2, 4] (the arrays [1,3,5] and [7,9] are discarded) * ``` * + * @category filtering * @since 4.0.0 - * @category Filtering */ (self: Channel, OutErr, OutDone, InElem, InErr, InDone, Env>, refinement: Predicate.Refinement): Channel, OutErr, OutDone, InElem, InErr, InDone, Env>; /** * Filters arrays of elements emitted by a channel, applying the filter * to each element within the arrays and only emitting non-empty filtered arrays. * - * @example + * **Example** (Filtering array output) + * * ```ts * import { Array, Channel } from "effect" * @@ -2591,63 +3021,172 @@ export declare const filterArray: { * // Outputs: [2, 4] (the arrays [1,3,5] and [7,9] are discarded) * ``` * + * @category filtering * @since 4.0.0 - * @category Filtering */ (self: Channel, OutErr, OutDone, InElem, InErr, InDone, Env>, predicate: Predicate.Predicate>): Channel, OutErr, OutDone, InElem, InErr, InDone, Env>; }; /** + * Filters and maps each element inside emitted non-empty arrays using a + * `Filter`. + * + * **Details** + * + * Successful filter results are kept as mapped values. Failed filter results + * are removed from the array. Arrays that become empty are discarded. + * + * @category filtering * @since 4.0.0 - * @category Filtering */ export declare const filterMapArray: { /** + * Filters and maps each element inside emitted non-empty arrays using a + * `Filter`. + * + * **Details** + * + * Successful filter results are kept as mapped values. Failed filter results + * are removed from the array. Arrays that become empty are discarded. + * + * @category filtering * @since 4.0.0 - * @category Filtering */ (filter: Filter.Filter, B, X>): (self: Channel, OutErr, OutDone, InElem, InErr, InDone, Env>) => Channel, OutErr, OutDone, InElem, InErr, InDone, Env>; /** + * Filters and maps each element inside emitted non-empty arrays using a + * `Filter`. + * + * **Details** + * + * Successful filter results are kept as mapped values. Failed filter results + * are removed from the array. Arrays that become empty are discarded. + * + * @category filtering * @since 4.0.0 - * @category Filtering */ (self: Channel, OutErr, OutDone, InElem, InErr, InDone, Env>, filter: Filter.Filter): Channel, OutErr, OutDone, InElem, InErr, InDone, Env>; }; /** + * Filters each element inside emitted non-empty arrays with an effectful + * predicate. + * + * **When to use** + * + * Use when filtering array-valued channel outputs requires Effects or services, + * and arrays that become empty should be skipped. + * + * **Details** + * + * The predicate receives the element and its index within the array. Elements + * for which the predicate succeeds with `true` are kept. Arrays that become + * empty are discarded. Predicate failures fail the returned channel. + * + * @category filtering * @since 4.0.0 - * @category Filtering */ export declare const filterArrayEffect: { /** + * Filters each element inside emitted non-empty arrays with an effectful + * predicate. + * + * **When to use** + * + * Use when filtering array-valued channel outputs requires Effects or services, + * and arrays that become empty should be skipped. + * + * **Details** + * + * The predicate receives the element and its index within the array. Elements + * for which the predicate succeeds with `true` are kept. Arrays that become + * empty are discarded. Predicate failures fail the returned channel. + * + * @category filtering * @since 4.0.0 - * @category Filtering */ (predicate: (a: Types.NoInfer, index: number) => Effect.Effect): (self: Channel, OutErr, OutDone, InElem, InErr, InDone, Env>) => Channel, OutErr | E, OutDone, InElem, InErr, InDone, Env | R>; /** + * Filters each element inside emitted non-empty arrays with an effectful + * predicate. + * + * **When to use** + * + * Use when filtering array-valued channel outputs requires Effects or services, + * and arrays that become empty should be skipped. + * + * **Details** + * + * The predicate receives the element and its index within the array. Elements + * for which the predicate succeeds with `true` are kept. Arrays that become + * empty are discarded. Predicate failures fail the returned channel. + * + * @category filtering * @since 4.0.0 - * @category Filtering */ (self: Channel, OutErr, OutDone, InElem, InErr, InDone, Env>, predicate: (a: Types.NoInfer, index: number) => Effect.Effect): Channel, OutErr | E, OutDone, InElem, InErr, InDone, Env | R>; }; /** + * Filters and maps each element inside emitted non-empty arrays using an + * effectful `Filter`. + * + * **When to use** + * + * Use when array-valued channel outputs need an effectful filter-map that can + * fail and can discard arrays that become empty. + * + * **Details** + * + * Successful filter results are kept as mapped values. Failed filter results + * are removed from the array. Arrays that become empty are discarded. Failures + * from the effectful filter fail the returned channel. + * + * @category filtering * @since 4.0.0 - * @category Filtering */ export declare const filterMapArrayEffect: { /** + * Filters and maps each element inside emitted non-empty arrays using an + * effectful `Filter`. + * + * **When to use** + * + * Use when array-valued channel outputs need an effectful filter-map that can + * fail and can discard arrays that become empty. + * + * **Details** + * + * Successful filter results are kept as mapped values. Failed filter results + * are removed from the array. Arrays that become empty are discarded. Failures + * from the effectful filter fail the returned channel. + * + * @category filtering * @since 4.0.0 - * @category Filtering */ (filter: Filter.FilterEffect, B, X, EX, RX>): (self: Channel, OutErr, OutDone, InElem, InErr, InDone, Env>) => Channel, OutErr | EX, OutDone, InElem, InErr, InDone, Env | RX>; /** + * Filters and maps each element inside emitted non-empty arrays using an + * effectful `Filter`. + * + * **When to use** + * + * Use when array-valued channel outputs need an effectful filter-map that can + * fail and can discard arrays that become empty. + * + * **Details** + * + * Successful filter results are kept as mapped values. Failed filter results + * are removed from the array. Arrays that become empty are discarded. Failures + * from the effectful filter fail the returned channel. + * + * @category filtering * @since 4.0.0 - * @category Filtering */ (self: Channel, OutErr, OutDone, InElem, InErr, InDone, Env>, filter: Filter.FilterEffect): Channel, OutErr | EX, OutDone, InElem, InErr, InDone, Env | RX>; }; /** - * Statefully maps over a channel with an accumulator, where each element can produce multiple output values. + * Maps over a channel statefully with an accumulator, where each element can produce multiple output values. + * + * **Example** (Mapping with accumulated state) * - * @example * ```ts * import { Channel, Effect } from "effect" * @@ -2678,14 +3217,15 @@ export declare const filterMapArrayEffect: { * ) * ``` * - * @since 2.0.0 - * @category Sequencing + * @category sequencing + * @since 4.0.0 */ export declare const mapAccum: { /** - * Statefully maps over a channel with an accumulator, where each element can produce multiple output values. + * Maps over a channel statefully with an accumulator, where each element can produce multiple output values. + * + * **Example** (Mapping with accumulated state) * - * @example * ```ts * import { Channel, Effect } from "effect" * @@ -2716,16 +3256,17 @@ export declare const mapAccum: { * ) * ``` * - * @since 2.0.0 - * @category Sequencing + * @category sequencing + * @since 4.0.0 */ (initial: LazyArg, f: (s: S, a: Types.NoInfer) => Effect.Effect], E, R> | readonly [state: S, values: ReadonlyArray], options?: { readonly onHalt?: ((state: S) => Array) | undefined; }): (self: Channel) => Channel; /** - * Statefully maps over a channel with an accumulator, where each element can produce multiple output values. + * Maps over a channel statefully with an accumulator, where each element can produce multiple output values. + * + * **Example** (Mapping with accumulated state) * - * @example * ```ts * import { Channel, Effect } from "effect" * @@ -2756,18 +3297,19 @@ export declare const mapAccum: { * ) * ``` * - * @since 2.0.0 - * @category Sequencing + * @category sequencing + * @since 4.0.0 */ (self: Channel, initial: LazyArg, f: (s: S, a: Types.NoInfer) => Effect.Effect], E, R> | readonly [state: S, values: ReadonlyArray], options?: { readonly onHalt?: ((state: S) => Array) | undefined; }): Channel; }; /** - * Statefully transforms a channel by scanning over its output with an accumulator function. + * Transforms a channel statefully by scanning over its output with an accumulator function. * Emits the intermediate results of the scan operation. * - * @example + * **Example** (Scanning channel output) + * * ```ts * import { Channel } from "effect" * @@ -2789,15 +3331,16 @@ export declare const mapAccum: { * // Outputs: "", "hello", "hello world", "hello world from", "hello world from effect" * ``` * - * @since 2.0.0 - * @category Sequencing + * @category sequencing + * @since 4.0.0 */ export declare const scan: { /** - * Statefully transforms a channel by scanning over its output with an accumulator function. + * Transforms a channel statefully by scanning over its output with an accumulator function. * Emits the intermediate results of the scan operation. * - * @example + * **Example** (Scanning channel output) + * * ```ts * import { Channel } from "effect" * @@ -2819,15 +3362,16 @@ export declare const scan: { * // Outputs: "", "hello", "hello world", "hello world from", "hello world from effect" * ``` * - * @since 2.0.0 - * @category Sequencing + * @category sequencing + * @since 4.0.0 */ (initial: S, f: (s: S, a: Types.NoInfer) => S): (self: Channel) => Channel; /** - * Statefully transforms a channel by scanning over its output with an accumulator function. + * Transforms a channel statefully by scanning over its output with an accumulator function. * Emits the intermediate results of the scan operation. * - * @example + * **Example** (Scanning channel output) + * * ```ts * import { Channel } from "effect" * @@ -2849,16 +3393,22 @@ export declare const scan: { * // Outputs: "", "hello", "hello world", "hello world from", "hello world from effect" * ``` * - * @since 2.0.0 - * @category Sequencing + * @category sequencing + * @since 4.0.0 */ (self: Channel, initial: S, f: (s: S, a: Types.NoInfer) => S): Channel; }; /** - * Statefully transforms a channel by scanning over its output with an effectful accumulator function. + * Transforms a channel statefully by scanning over its output with an effectful accumulator function. * Emits the intermediate results of the scan operation. * - * @example + * **When to use** + * + * Use when maintaining accumulated state over channel output requires Effects + * or can fail, while still emitting each intermediate state. + * + * **Example** (Scanning channel output with effects) + * * ```ts * import { Channel, Data, Effect } from "effect" * @@ -2895,16 +3445,22 @@ export declare const scan: { * ) * ``` * - * @since 2.0.0 - * @category Sequencing + * @category sequencing + * @since 4.0.0 */ export declare const scanEffect: { /** - * Statefully transforms a channel by scanning over its output with an effectful accumulator function. + * Transforms a channel statefully by scanning over its output with an effectful accumulator function. * Emits the intermediate results of the scan operation. * - * @example - * ```ts + * **When to use** + * + * Use when maintaining accumulated state over channel output requires Effects + * or can fail, while still emitting each intermediate state. + * + * **Example** (Scanning channel output with effects) + * + * ```ts * import { Channel, Data, Effect } from "effect" * * class ScanError extends Data.TaggedError("ScanError")<{ @@ -2940,15 +3496,21 @@ export declare const scanEffect: { * ) * ``` * - * @since 2.0.0 - * @category Sequencing + * @category sequencing + * @since 4.0.0 */ (initial: S, f: (s: S, a: Types.NoInfer) => Effect.Effect): (self: Channel) => Channel; /** - * Statefully transforms a channel by scanning over its output with an effectful accumulator function. + * Transforms a channel statefully by scanning over its output with an effectful accumulator function. * Emits the intermediate results of the scan operation. * - * @example + * **When to use** + * + * Use when maintaining accumulated state over channel output requires Effects + * or can fail, while still emitting each intermediate state. + * + * **Example** (Scanning channel output with effects) + * * ```ts * import { Channel, Data, Effect } from "effect" * @@ -2985,8 +3547,8 @@ export declare const scanEffect: { * ) * ``` * - * @since 2.0.0 - * @category Sequencing + * @category sequencing + * @since 4.0.0 */ (self: Channel, initial: S, f: (s: S, a: Types.NoInfer) => Effect.Effect): Channel; }; @@ -2994,7 +3556,8 @@ export declare const scanEffect: { * Catches any cause of failure from the channel and allows recovery by * creating a new channel based on the caught cause. * - * @example + * **Example** (Recovering from failure causes) + * * ```ts * import { Cause, Channel, Data } from "effect" * @@ -3022,15 +3585,16 @@ export declare const scanEffect: { * // The channel recovers gracefully from errors * ``` * - * @since 4.0.0 - * @category Error handling + * @category error handling + * @since 2.0.0 */ export declare const catchCause: { /** * Catches any cause of failure from the channel and allows recovery by * creating a new channel based on the caught cause. * - * @example + * **Example** (Recovering from failure causes) + * * ```ts * import { Cause, Channel, Data } from "effect" * @@ -3058,15 +3622,16 @@ export declare const catchCause: { * // The channel recovers gracefully from errors * ``` * - * @since 4.0.0 - * @category Error handling + * @category error handling + * @since 2.0.0 */ (f: (d: Cause.Cause) => Channel): (self: Channel) => Channel; /** * Catches any cause of failure from the channel and allows recovery by * creating a new channel based on the caught cause. * - * @example + * **Example** (Recovering from failure causes) + * * ```ts * import { Cause, Channel, Data } from "effect" * @@ -3094,24 +3659,63 @@ export declare const catchCause: { * // The channel recovers gracefully from errors * ``` * - * @since 4.0.0 - * @category Error handling + * @category error handling + * @since 2.0.0 */ (self: Channel, f: (d: Cause.Cause) => Channel): Channel; }; /** + * Runs an effect with the full failure `Cause` when the channel fails, then + * fails the returned channel with the original cause. + * + * **When to use** + * + * Use when observing the full channel failure `Cause` is needed without + * changing successful output or replacing the original cause. + * + * **Details** + * + * Use this for observing failures, such as logging or metrics. If the observer + * effect fails, that failure can fail the returned channel. + * + * @category error handling * @since 4.0.0 - * @category Error handling */ export declare const tapCause: { /** + * Runs an effect with the full failure `Cause` when the channel fails, then + * fails the returned channel with the original cause. + * + * **When to use** + * + * Use when observing the full channel failure `Cause` is needed without + * changing successful output or replacing the original cause. + * + * **Details** + * + * Use this for observing failures, such as logging or metrics. If the observer + * effect fails, that failure can fail the returned channel. + * + * @category error handling * @since 4.0.0 - * @category Error handling */ (f: (d: Cause.Cause) => Effect.Effect): (self: Channel) => Channel; /** + * Runs an effect with the full failure `Cause` when the channel fails, then + * fails the returned channel with the original cause. + * + * **When to use** + * + * Use when observing the full channel failure `Cause` is needed without + * changing successful output or replacing the original cause. + * + * **Details** + * + * Use this for observing failures, such as logging or metrics. If the observer + * effect fails, that failure can fail the returned channel. + * + * @category error handling * @since 4.0.0 - * @category Error handling */ (self: Channel, f: (d: Cause.Cause) => Effect.Effect): Channel; }; @@ -3119,40 +3723,139 @@ export declare const tapCause: { * Catches causes of failure that match a specific filter, allowing * conditional error recovery based on the type of failure. * + * **When to use** + * + * Use to recover a channel only when its full `Cause` satisfies a boolean + * predicate. + * + * **Details** + * + * When the predicate matches, the recovery function receives the original + * cause. When it does not match, the returned channel fails with the original + * cause. + * + * @see {@link catchCauseFilter} for selecting causes with a `Filter` + * @see {@link catchCause} for recovering from every cause + * @see {@link catchIf} for recovering from typed channel errors + * + * @category error handling * @since 4.0.0 - * @category Error handling */ export declare const catchCauseIf: { /** * Catches causes of failure that match a specific filter, allowing * conditional error recovery based on the type of failure. * + * **When to use** + * + * Use to recover a channel only when its full `Cause` satisfies a boolean + * predicate. + * + * **Details** + * + * When the predicate matches, the recovery function receives the original + * cause. When it does not match, the returned channel fails with the original + * cause. + * + * @see {@link catchCauseFilter} for selecting causes with a `Filter` + * @see {@link catchCause} for recovering from every cause + * @see {@link catchIf} for recovering from typed channel errors + * + * @category error handling * @since 4.0.0 - * @category Error handling */ (predicate: Predicate.Predicate>, f: (cause: Cause.Cause) => Channel): (self: Channel) => Channel; /** * Catches causes of failure that match a specific filter, allowing * conditional error recovery based on the type of failure. * + * **When to use** + * + * Use to recover a channel only when its full `Cause` satisfies a boolean + * predicate. + * + * **Details** + * + * When the predicate matches, the recovery function receives the original + * cause. When it does not match, the returned channel fails with the original + * cause. + * + * @see {@link catchCauseFilter} for selecting causes with a `Filter` + * @see {@link catchCause} for recovering from every cause + * @see {@link catchIf} for recovering from typed channel errors + * + * @category error handling * @since 4.0.0 - * @category Error handling */ (self: Channel, predicate: Predicate.Predicate>, f: (cause: Cause.Cause) => Channel): Channel; }; /** + * Recovers from channel failures whose full `Cause` is selected by a `Filter`. + * + * **When to use** + * + * Use when you need to recover a channel only from causes selected by a + * `Filter`, while giving the recovery both the selected value and the original + * `Cause`. + * + * **Details** + * + * When the filter succeeds, the recovery function receives the selected value + * and the original cause. When the filter fails, the returned channel fails + * with the residual cause produced by the filter. + * + * @see {@link catchCauseIf} for selecting causes with a predicate + * @see {@link catchFilter} for selecting typed errors with a `Filter` + * @see {@link catchCause} for recovering from every cause + * + * @category error handling * @since 4.0.0 - * @category Error handling */ export declare const catchCauseFilter: { /** + * Recovers from channel failures whose full `Cause` is selected by a `Filter`. + * + * **When to use** + * + * Use when you need to recover a channel only from causes selected by a + * `Filter`, while giving the recovery both the selected value and the original + * `Cause`. + * + * **Details** + * + * When the filter succeeds, the recovery function receives the selected value + * and the original cause. When the filter fails, the returned channel fails + * with the residual cause produced by the filter. + * + * @see {@link catchCauseIf} for selecting causes with a predicate + * @see {@link catchFilter} for selecting typed errors with a `Filter` + * @see {@link catchCause} for recovering from every cause + * + * @category error handling * @since 4.0.0 - * @category Error handling */ , OutElem1, OutErr1, OutDone1, InElem1, InErr1, InDone1, Env1>(filter: Filter.Filter, EB, X>, f: (failure: EB, cause: Cause.Cause) => Channel): (self: Channel) => Channel | OutErr1, OutDone | OutDone1, InElem & InElem1, InErr & InErr1, InDone & InDone1, Env | Env1>; /** + * Recovers from channel failures whose full `Cause` is selected by a `Filter`. + * + * **When to use** + * + * Use when you need to recover a channel only from causes selected by a + * `Filter`, while giving the recovery both the selected value and the original + * `Cause`. + * + * **Details** + * + * When the filter succeeds, the recovery function receives the selected value + * and the original cause. When the filter fails, the returned channel fails + * with the residual cause produced by the filter. + * + * @see {@link catchCauseIf} for selecting causes with a predicate + * @see {@link catchFilter} for selecting typed errors with a `Filter` + * @see {@link catchCause} for recovering from every cause + * + * @category error handling * @since 4.0.0 - * @category Error handling */ , OutElem1, OutErr1, OutDone1, InElem1, InErr1, InDone1, Env1>(self: Channel, filter: Filter.Filter, EB, X>, f: (failure: EB, cause: Cause.Cause) => Channel): Channel | OutErr1, OutDone | OutDone1, InElem & InElem1, InErr & InErr1, InDone & InDone1, Env | Env1>; }; @@ -3162,88 +3865,280 @@ declare const catch_: { }; export { /** + * Recovers from typed channel errors by running a fallback channel. + * + * @category error handling * @since 4.0.0 - * @category Error handling */ catch_ as catch }; /** + * Runs an effect when the channel fails with a typed error, then preserves the + * original channel failure. + * + * **Details** + * + * The effect is not run for normal channel completion. If the observer effect + * fails, that failure can fail the returned channel. + * + * @category error handling * @since 4.0.0 - * @category Error handling */ export declare const tapError: { /** + * Runs an effect when the channel fails with a typed error, then preserves the + * original channel failure. + * + * **Details** + * + * The effect is not run for normal channel completion. If the observer effect + * fails, that failure can fail the returned channel. + * + * @category error handling * @since 4.0.0 - * @category Error handling */ (f: (d: OutErr) => Effect.Effect): (self: Channel) => Channel; /** + * Runs an effect when the channel fails with a typed error, then preserves the + * original channel failure. + * + * **Details** + * + * The effect is not run for normal channel completion. If the observer effect + * fails, that failure can fail the returned channel. + * + * @category error handling * @since 4.0.0 - * @category Error handling */ (self: Channel, f: (d: OutErr) => Effect.Effect): Channel; }; /** + * Recovers from typed channel errors that match a predicate or refinement. + * + * **When to use** + * + * Use to recover from typed channel errors when a predicate or refinement + * selects the failures that should switch to a recovery channel. + * + * **Details** + * + * Matching errors are handled by the recovery function. Non-matching errors + * are handled by `orElse` when provided. Without `orElse`, non-matching errors + * are re-failed. + * + * @see {@link catch_ catch} for recovering from every typed channel error + * @see {@link catchFilter} for selecting typed errors with a `Filter` + * @see {@link catchTag} for selecting tagged typed errors + * @see {@link catchCauseFilter} for selecting full causes with a `Filter` + * + * @category error handling * @since 4.0.0 - * @category Error handling */ export declare const catchIf: { /** + * Recovers from typed channel errors that match a predicate or refinement. + * + * **When to use** + * + * Use to recover from typed channel errors when a predicate or refinement + * selects the failures that should switch to a recovery channel. + * + * **Details** + * + * Matching errors are handled by the recovery function. Non-matching errors + * are handled by `orElse` when provided. Without `orElse`, non-matching errors + * are re-failed. + * + * @see {@link catch_ catch} for recovering from every typed channel error + * @see {@link catchFilter} for selecting typed errors with a `Filter` + * @see {@link catchTag} for selecting tagged typed errors + * @see {@link catchCauseFilter} for selecting full causes with a `Filter` + * + * @category error handling * @since 4.0.0 - * @category Error handling */ - , OutDone2 = never, InElem2 = unknown, InErr2 = unknown, InDone2 = unknown, Env2 = never>(refinement: Predicate.Refinement, f: (failure: EB) => Channel, orElse?: ((failure: Exclude) => Channel) | undefined): (self: Channel) => Channel; + (refinement: Predicate.Refinement, f: (failure: EB) => Channel, orElse?: ((failure: Exclude) => Channel) | undefined): (self: Channel) => Channel, OutErr1 | OutErr2 | (OutElem2 extends Types.unassigned ? Exclude : never), OutDone | OutDone1 | OutDone2, InElem & InElem1 & InElem2, InErr & InErr1 & InErr2, InDone & InDone1 & InDone2, Env | Env1 | Env2>; /** + * Recovers from typed channel errors that match a predicate or refinement. + * + * **When to use** + * + * Use to recover from typed channel errors when a predicate or refinement + * selects the failures that should switch to a recovery channel. + * + * **Details** + * + * Matching errors are handled by the recovery function. Non-matching errors + * are handled by `orElse` when provided. Without `orElse`, non-matching errors + * are re-failed. + * + * @see {@link catch_ catch} for recovering from every typed channel error + * @see {@link catchFilter} for selecting typed errors with a `Filter` + * @see {@link catchTag} for selecting tagged typed errors + * @see {@link catchCauseFilter} for selecting full causes with a `Filter` + * + * @category error handling * @since 4.0.0 - * @category Error handling */ - (predicate: Predicate.Predicate, f: (failure: OutErr) => Channel, orElse?: ((failure: OutErr) => Channel) | undefined): (self: Channel) => Channel; + (predicate: Predicate.Predicate, f: (failure: OutErr) => Channel, orElse?: ((failure: OutErr) => Channel) | undefined): (self: Channel) => Channel, OutErr1 | OutErr2 | (OutElem2 extends Types.unassigned ? OutErr : never), OutDone | OutDone1 | OutDone2, InElem & InElem1 & InElem2, InErr & InErr1 & InErr2, InDone & InDone1 & InDone2, Env | Env1 | Env2>; /** + * Recovers from typed channel errors that match a predicate or refinement. + * + * **When to use** + * + * Use to recover from typed channel errors when a predicate or refinement + * selects the failures that should switch to a recovery channel. + * + * **Details** + * + * Matching errors are handled by the recovery function. Non-matching errors + * are handled by `orElse` when provided. Without `orElse`, non-matching errors + * are re-failed. + * + * @see {@link catch_ catch} for recovering from every typed channel error + * @see {@link catchFilter} for selecting typed errors with a `Filter` + * @see {@link catchTag} for selecting tagged typed errors + * @see {@link catchCauseFilter} for selecting full causes with a `Filter` + * + * @category error handling * @since 4.0.0 - * @category Error handling */ - , OutDone2 = never, InElem2 = unknown, InErr2 = unknown, InDone2 = unknown, Env2 = never>(self: Channel, refinement: Predicate.Refinement, f: (failure: EB) => Channel, orElse?: ((failure: Exclude) => Channel) | undefined): Channel; + (self: Channel, refinement: Predicate.Refinement, f: (failure: EB) => Channel, orElse?: ((failure: Exclude) => Channel) | undefined): Channel, OutErr1 | OutErr2 | (OutElem2 extends Types.unassigned ? Exclude : never), OutDone | OutDone1 | OutDone2, InElem & InElem1 & InElem2, InErr & InErr1 & InErr2, InDone & InDone1 & InDone2, Env | Env1 | Env2>; /** + * Recovers from typed channel errors that match a predicate or refinement. + * + * **When to use** + * + * Use to recover from typed channel errors when a predicate or refinement + * selects the failures that should switch to a recovery channel. + * + * **Details** + * + * Matching errors are handled by the recovery function. Non-matching errors + * are handled by `orElse` when provided. Without `orElse`, non-matching errors + * are re-failed. + * + * @see {@link catch_ catch} for recovering from every typed channel error + * @see {@link catchFilter} for selecting typed errors with a `Filter` + * @see {@link catchTag} for selecting tagged typed errors + * @see {@link catchCauseFilter} for selecting full causes with a `Filter` + * + * @category error handling * @since 4.0.0 - * @category Error handling */ - (self: Channel, predicate: Predicate.Predicate, f: (failure: OutErr) => Channel, orElse?: ((failure: OutErr) => Channel) | undefined): Channel; + (self: Channel, predicate: Predicate.Predicate, f: (failure: OutErr) => Channel, orElse?: ((failure: OutErr) => Channel) | undefined): Channel, OutErr1 | OutErr2 | (OutElem2 extends Types.unassigned ? OutErr : never), OutDone | OutDone1 | OutDone2, InElem & InElem1 & InElem2, InErr & InErr1 & InErr2, InDone & InDone1 & InDone2, Env | Env1 | Env2>; }; /** + * Recovers from typed channel errors selected by a `Filter`. + * + * **When to use** + * + * Use to recover from channel errors with a reusable `Filter` when matching + * can also narrow or transform the error before choosing the recovery channel. + * + * **Details** + * + * Successful filter results are handled by the recovery function. Failed + * filter results are handled by `orElse` when provided. Without `orElse`, + * failed filter results are re-failed. + * + * @see {@link catchIf} for selecting typed errors with a predicate + * @see {@link catchTag} for selecting tagged typed errors + * @see {@link catchCauseFilter} for selecting full causes with a `Filter` + * + * @category error handling * @since 4.0.0 - * @category Error handling */ export declare const catchFilter: { /** + * Recovers from typed channel errors selected by a `Filter`. + * + * **When to use** + * + * Use to recover from channel errors with a reusable `Filter` when matching + * can also narrow or transform the error before choosing the recovery channel. + * + * **Details** + * + * Successful filter results are handled by the recovery function. Failed + * filter results are handled by `orElse` when provided. Without `orElse`, + * failed filter results are re-failed. + * + * @see {@link catchIf} for selecting typed errors with a predicate + * @see {@link catchTag} for selecting tagged typed errors + * @see {@link catchCauseFilter} for selecting full causes with a `Filter` + * + * @category error handling * @since 4.0.0 - * @category Error handling */ - (filter: Filter.Filter, f: (failure: EB) => Channel, orElse?: ((failure: X) => Channel) | undefined): (self: Channel) => Channel; + (filter: Filter.Filter, f: (failure: EB) => Channel, orElse?: ((failure: X) => Channel) | undefined): (self: Channel) => Channel, OutErr1 | OutErr2 | (OutElem2 extends Types.unassigned ? X : never), OutDone | OutDone1 | OutDone2, InElem & InElem1 & InElem2, InErr & InErr1 & InErr2, InDone & InDone1 & InDone2, Env | Env1 | Env2>; /** + * Recovers from typed channel errors selected by a `Filter`. + * + * **When to use** + * + * Use to recover from channel errors with a reusable `Filter` when matching + * can also narrow or transform the error before choosing the recovery channel. + * + * **Details** + * + * Successful filter results are handled by the recovery function. Failed + * filter results are handled by `orElse` when provided. Without `orElse`, + * failed filter results are re-failed. + * + * @see {@link catchIf} for selecting typed errors with a predicate + * @see {@link catchTag} for selecting tagged typed errors + * @see {@link catchCauseFilter} for selecting full causes with a `Filter` + * + * @category error handling * @since 4.0.0 - * @category Error handling */ - (self: Channel, filter: Filter.Filter, f: (failure: EB) => Channel, orElse?: ((failure: X) => Channel) | undefined): Channel; + (self: Channel, filter: Filter.Filter, f: (failure: EB) => Channel, orElse?: ((failure: X) => Channel) | undefined): Channel, OutErr1 | OutErr2 | (OutElem2 extends Types.unassigned ? X : never), OutDone | OutDone1 | OutDone2, InElem & InElem1 & InElem2, InErr & InErr1 & InErr2, InDone & InDone1 & InDone2, Env | Env1 | Env2>; }; /** + * Recovers from tagged channel errors whose `_tag` matches one or more tags. + * + * **Details** + * + * Matching tagged errors are handled by the recovery function. Non-matching + * errors are handled by `orElse` when provided. Without `orElse`, + * non-matching errors are re-failed. + * + * @category error handling * @since 4.0.0 - * @category Error handling */ export declare const catchTag: { /** + * Recovers from tagged channel errors whose `_tag` matches one or more tags. + * + * **Details** + * + * Matching tagged errors are handled by the recovery function. Non-matching + * errors are handled by `orElse` when provided. Without `orElse`, + * non-matching errors are re-failed. + * + * @category error handling * @since 4.0.0 - * @category Error handling */ - | Arr.NonEmptyReadonlyArray>, OutElem1, OutErr1, OutDone1, InElem1, InErr1, InDone1, Env1, OutElem2 = never, OutErr2 = Types.ExcludeTag ? K[number] : K>, OutDone2 = never, InElem2 = unknown, InErr2 = unknown, InDone2 = unknown, Env2 = never>(k: K, f: (e: Types.ExtractTag, K extends Arr.NonEmptyReadonlyArray ? K[number] : K>) => Channel, orElse?: ((e: Types.ExcludeTag, K extends Arr.NonEmptyReadonlyArray ? K[number] : K>) => Channel) | undefined): (self: Channel) => Channel; + | Arr.NonEmptyReadonlyArray>, OutElem1, OutErr1, OutDone1, InElem1, InErr1, InDone1, Env1, OutElem2 = Types.unassigned, OutErr2 = never, OutDone2 = never, InElem2 = unknown, InErr2 = unknown, InDone2 = unknown, Env2 = never>(k: K, f: (e: Types.ExtractTag, K extends Arr.NonEmptyReadonlyArray ? K[number] : K>) => Channel, orElse?: ((e: Types.ExcludeTag, K extends Arr.NonEmptyReadonlyArray ? K[number] : K>) => Channel) | undefined): (self: Channel) => Channel, OutErr1 | OutErr2 | (OutElem2 extends Types.unassigned ? Types.ExcludeTag ? K[number] : K> : never), OutDone | OutDone1 | OutDone2, InElem & InElem1 & InElem2, InErr & InErr1 & InErr2, InDone & InDone1 & InDone2, Env | Env1 | Env2>; /** + * Recovers from tagged channel errors whose `_tag` matches one or more tags. + * + * **Details** + * + * Matching tagged errors are handled by the recovery function. Non-matching + * errors are handled by `orElse` when provided. Without `orElse`, + * non-matching errors are re-failed. + * + * @category error handling * @since 4.0.0 - * @category Error handling */ - | Arr.NonEmptyReadonlyArray>, OutElem1, OutErr1, OutDone1, InElem1, InErr1, InDone1, Env1, OutElem2 = never, OutErr2 = Types.ExcludeTag ? K[number] : K>, OutDone2 = never, InElem2 = unknown, InErr2 = unknown, InDone2 = unknown, Env2 = never>(self: Channel, k: K, f: (e: Types.ExtractTag, K extends Arr.NonEmptyReadonlyArray ? K[number] : K>) => Channel, orElse?: ((e: Types.ExcludeTag, K extends Arr.NonEmptyReadonlyArray ? K[number] : K>) => Channel) | undefined): Channel; + | Arr.NonEmptyReadonlyArray>, OutElem1, OutErr1, OutDone1, InElem1, InErr1, InDone1, Env1, OutElem2 = Types.unassigned, OutErr2 = never, OutDone2 = never, InElem2 = unknown, InErr2 = unknown, InDone2 = unknown, Env2 = never>(self: Channel, k: K, f: (e: Types.ExtractTag, K extends Arr.NonEmptyReadonlyArray ? K[number] : K>) => Channel, orElse?: ((e: Types.ExcludeTag, K extends Arr.NonEmptyReadonlyArray ? K[number] : K>) => Channel) | undefined): Channel, OutErr1 | OutErr2 | (OutElem2 extends Types.unassigned ? Types.ExcludeTag ? K[number] : K> : never), OutDone | OutDone1 | OutDone2, InElem & InElem1 & InElem2, InErr & InErr1 & InErr2, InDone & InDone1 & InDone2, Env | Env1 | Env2>; }; /** * Catches a specific reason within a tagged error. * - * @example + * **Example** (Recovering from nested reasons) + * * ```ts * import { Channel, Data } from "effect" * @@ -3270,14 +4165,15 @@ export declare const catchTag: { * ) * ``` * + * @category error handling * @since 4.0.0 - * @category Error handling */ export declare const catchReason: { /** * Catches a specific reason within a tagged error. * - * @example + * **Example** (Recovering from nested reasons) + * * ```ts * import { Channel, Data } from "effect" * @@ -3304,14 +4200,15 @@ export declare const catchReason: { * ) * ``` * + * @category error handling * @since 4.0.0 - * @category Error handling */ - , RK extends Types.ReasonTags, K>>, OutElem1, OutErr1, OutDone1, InElem1, InErr1, InDone1, Env1, OutElem2 = Types.unassigned, OutErr2 = never, OutDone2 = never, InElem2 = unknown, InErr2 = unknown, InDone2 = unknown, Env2 = never>(errorTag: K, reasonTag: RK, f: (reason: Types.ExtractReason, K>, RK>, error: Types.NarrowReason, K>, RK>) => Channel, orElse?: ((reason: Types.ExcludeReason, K>, RK>, error: Types.OmitReason, K>, RK>) => Channel) | undefined): (self: Channel) => Channel, (OutElem2 extends Types.unassigned ? OutErr : Types.ExcludeTag) | OutErr1 | OutErr2, OutDone | OutDone1 | OutDone2, InElem & InElem1 & InElem2, InErr & InErr1 & InErr2, InDone & InDone1 & InDone2, Env | Env1 | Env2>; + , RK extends Types.ReasonTags, K>>, OutElem1, OutErr1, OutDone1, InElem1, InErr1, InDone1, Env1, OutElem2 = Types.unassigned, OutErr2 = never, OutDone2 = never, InElem2 = unknown, InErr2 = unknown, InDone2 = unknown, Env2 = never>(errorTag: K, reasonTag: RK, f: (reason: Types.ExtractReason, K>, RK>, error: Types.NarrowReason, K>, RK>) => Channel, orElse?: ((reason: Types.ExcludeReason, K>, RK>, error: Types.OmitReason, K>, RK>) => Channel) | undefined): (self: Channel) => Channel, Types.ExcludeTag | OutErr1 | OutErr2 | (OutElem2 extends Types.unassigned ? Types.ExtractTag : never), OutDone | OutDone1 | OutDone2, InElem & InElem1 & InElem2, InErr & InErr1 & InErr2, InDone & InDone1 & InDone2, Env | Env1 | Env2>; /** * Catches a specific reason within a tagged error. * - * @example + * **Example** (Recovering from nested reasons) + * * ```ts * import { Channel, Data } from "effect" * @@ -3338,29 +4235,29 @@ export declare const catchReason: { * ) * ``` * + * @category error handling * @since 4.0.0 - * @category Error handling */ - , RK extends Types.ReasonTags, K>>, OutElem1, OutErr1, OutDone1, InElem1, InErr1, InDone1, Env1, OutElem2 = Types.unassigned, OutErr2 = never, OutDone2 = never, InElem2 = unknown, InErr2 = unknown, InDone2 = unknown, Env2 = never>(self: Channel, errorTag: K, reasonTag: RK, f: (reason: Types.ExtractReason, K>, RK>, error: Types.NarrowReason, K>, RK>) => Channel, orElse?: ((reason: Types.ExcludeReason, K>, RK>, error: Types.OmitReason, K>, RK>) => Channel) | undefined): Channel, (OutElem2 extends Types.unassigned ? OutErr : Types.ExcludeTag) | OutErr1 | OutErr2, OutDone | OutDone1 | OutDone2, InElem & InElem1 & InElem2, InErr & InErr1 & InErr2, InDone & InDone1 & InDone2, Env | Env1 | Env2>; + , RK extends Types.ReasonTags, K>>, OutElem1, OutErr1, OutDone1, InElem1, InErr1, InDone1, Env1, OutElem2 = Types.unassigned, OutErr2 = never, OutDone2 = never, InElem2 = unknown, InErr2 = unknown, InDone2 = unknown, Env2 = never>(self: Channel, errorTag: K, reasonTag: RK, f: (reason: Types.ExtractReason, K>, RK>, error: Types.NarrowReason, K>, RK>) => Channel, orElse?: ((reason: Types.ExcludeReason, K>, RK>, error: Types.OmitReason, K>, RK>) => Channel) | undefined): Channel, Types.ExcludeTag | OutErr1 | OutErr2 | (OutElem2 extends Types.unassigned ? Types.ExtractTag : never), OutDone | OutDone1 | OutDone2, InElem & InElem1 & InElem2, InErr & InErr1 & InErr2, InDone & InDone1 & InDone2, Env | Env1 | Env2>; }; /** * Catches multiple reasons within a tagged error using an object of handlers. * + * @category error handling * @since 4.0.0 - * @category Error handling */ export declare const catchReasons: { /** * Catches multiple reasons within a tagged error using an object of handlers. * + * @category error handling * @since 4.0.0 - * @category Error handling */ , OutErr, Cases extends { [RK in Types.ReasonTags, K>>]+?: (reason: Types.ExtractReason, K>, RK>, error: Types.NarrowReason, K>, RK>) => Channel; }, OutElem2 = Types.unassigned, OutErr2 = never, OutDone2 = never, InElem2 = unknown, InErr2 = unknown, InDone2 = unknown, Env2 = never>(errorTag: K, cases: Cases, orElse?: ((reason: Types.ExcludeReason, K>, Extract>, error: Types.OmitReason, K>, Extract>) => Channel) | undefined): (self: Channel) => Channel | { [RK in keyof Cases]: Cases[RK] extends (...args: Array) => Channel ? OutElem1 : never; - }[keyof Cases], (OutElem2 extends Types.unassigned ? OutErr : Types.ExcludeTag) | OutErr2 | { + }[keyof Cases], Types.ExcludeTag | OutErr2 | (OutElem2 extends Types.unassigned ? Types.ExtractTag : never) | { [RK in keyof Cases]: Cases[RK] extends (...args: Array) => Channel ? OutErr1 : never; }[keyof Cases], OutDone | OutDone2 | { [RK in keyof Cases]: Cases[RK] extends (...args: Array) => Channel ? OutDone1 : never; @@ -3376,14 +4273,14 @@ export declare const catchReasons: { /** * Catches multiple reasons within a tagged error using an object of handlers. * + * @category error handling * @since 4.0.0 - * @category Error handling */ , Cases extends { [RK in Types.ReasonTags>]+?: (reason: Types.ExtractReason, RK>, error: Types.NarrowReason, RK>) => Channel; }, OutElem2 = Types.unassigned, OutErr2 = never, OutDone2 = never, InElem2 = unknown, InErr2 = unknown, InDone2 = unknown, Env2 = never>(self: Channel, errorTag: K, cases: Cases, orElse?: ((reason: Types.ExcludeReason, K>, Extract>, error: Types.OmitReason, K>, Extract>) => Channel) | undefined): Channel | { [RK in keyof Cases]: Cases[RK] extends (...args: Array) => Channel ? OutElem1 : never; - }[keyof Cases], (OutElem2 extends Types.unassigned ? OutErr : Types.ExcludeTag) | OutErr2 | { + }[keyof Cases], Types.ExcludeTag | OutErr2 | (OutElem2 extends Types.unassigned ? Types.ExtractTag : never) | { [RK in keyof Cases]: Cases[RK] extends (...args: Array) => Channel ? OutErr1 : never; }[keyof Cases], OutDone | OutDone2 | { [RK in keyof Cases]: Cases[RK] extends (...args: Array) => Channel ? OutDone1 : never; @@ -3400,7 +4297,8 @@ export declare const catchReasons: { /** * Promotes nested reason errors into the channel error, replacing the parent error. * - * @example + * **Example** (Promoting nested reasons) + * * ```ts * import { Channel, Data } from "effect" * @@ -3423,14 +4321,15 @@ export declare const catchReasons: { * const unwrapped = channel.pipe(Channel.unwrapReason("AiError")) * ``` * + * @category error handling * @since 4.0.0 - * @category Error handling */ export declare const unwrapReason: { /** * Promotes nested reason errors into the channel error, replacing the parent error. * - * @example + * **Example** (Promoting nested reasons) + * * ```ts * import { Channel, Data } from "effect" * @@ -3453,14 +4352,15 @@ export declare const unwrapReason: { * const unwrapped = channel.pipe(Channel.unwrapReason("AiError")) * ``` * + * @category error handling * @since 4.0.0 - * @category Error handling */ , OutErr>(errorTag: K): (self: Channel) => Channel | Types.ReasonOf>, OutDone, InElem, InErr, InDone, Env>; /** * Promotes nested reason errors into the channel error, replacing the parent error. * - * @example + * **Example** (Promoting nested reasons) + * * ```ts * import { Channel, Data } from "effect" * @@ -3483,8 +4383,8 @@ export declare const unwrapReason: { * const unwrapped = channel.pipe(Channel.unwrapReason("AiError")) * ``` * + * @category error handling * @since 4.0.0 - * @category Error handling */ >(self: Channel, errorTag: K): Channel | Types.ReasonOf>, OutDone, InElem, InErr, InDone, Env>; }; @@ -3493,8 +4393,8 @@ export declare const unwrapReason: { * value of the returned channel is created by applying the specified function * to the failure value of this channel. * + * @category error handling * @since 2.0.0 - * @category Error handling */ export declare const mapError: { /** @@ -3502,8 +4402,8 @@ export declare const mapError: { * value of the returned channel is created by applying the specified function * to the failure value of this channel. * + * @category error handling * @since 2.0.0 - * @category Error handling */ (f: (err: OutErr) => OutErr2): (self: Channel) => Channel; /** @@ -3511,8 +4411,8 @@ export declare const mapError: { * value of the returned channel is created by applying the specified function * to the failure value of this channel. * + * @category error handling * @since 2.0.0 - * @category Error handling */ (self: Channel, f: (err: OutErr) => OutErr2): Channel; }; @@ -3520,7 +4420,8 @@ export declare const mapError: { * Converts all errors in the channel to defects (unrecoverable failures). * This is useful when you want to treat errors as programming errors. * - * @example + * **Example** (Converting failures to defects) + * * ```ts * import { Channel, Data } from "effect" * @@ -3537,17 +4438,19 @@ export declare const mapError: { * // Any failure will now become a defect (uncaught exception) * ``` * - * @since 4.0.0 - * @category Error handling + * @category error handling + * @since 2.0.0 */ export declare const orDie: (self: Channel) => Channel; /** * Ignores all errors in the channel, converting them to an empty channel. * + * **Details** + * * Use the `log` option to emit the full {@link Cause} when the channel fails. * + * @category error handling * @since 4.0.0 - * @category Error handling */ export declare const ignore: | { readonly log?: boolean | Severity | undefined; @@ -3561,10 +4464,17 @@ export declare const ignore: | { readonly log?: boolean | Severity | undefined; @@ -3579,35 +4489,39 @@ export declare const ignoreCause: (schedule: Schedule.Schedule, SE, SR> | (($: (_: Schedule.Schedule, SE, SR>) => Schedule.Schedule) => Schedule.Schedule, SE, SR>)): (self: Channel) => Channel; /** * Returns a new channel that retries this channel according to the specified * schedule whenever it fails. * + * @category error handling * @since 4.0.0 - * @category utils */ (self: Channel, schedule: Schedule.Schedule | (($: (_: Schedule.Schedule, SE, SR>) => Schedule.Schedule) => Schedule.Schedule, SE, SR>)): Channel; }; /** - * Returns a new channel, which sequentially combines this channel, together - * with the provided factory function, which creates a second channel based on - * the output values of this channel. The result is a channel that will first - * perform the functions of this channel, before performing the functions of - * the created channel (including yielding its terminal value). + * Maps each output element to a channel and emits values from the most recent + * active child channels. + * + * **Details** + * + * With the default concurrency of `1`, starting a new child channel interrupts + * the previous child channel. Use `options.concurrency` to allow more active + * child channels. The source channel's done value is preserved. + * + * **Example** (Switching mapped channels) * - * @example * ```ts * import { Channel, Data } from "effect" * @@ -3627,18 +4541,22 @@ export declare const retry: { * // Outputs: "value-1", "value-2", "value-3" * ``` * - * @since 2.0.0 * @category sequencing + * @since 4.0.0 */ export declare const switchMap: { /** - * Returns a new channel, which sequentially combines this channel, together - * with the provided factory function, which creates a second channel based on - * the output values of this channel. The result is a channel that will first - * perform the functions of this channel, before performing the functions of - * the created channel (including yielding its terminal value). + * Maps each output element to a channel and emits values from the most recent + * active child channels. + * + * **Details** + * + * With the default concurrency of `1`, starting a new child channel interrupts + * the previous child channel. Use `options.concurrency` to allow more active + * child channels. The source channel's done value is preserved. + * + * **Example** (Switching mapped channels) * - * @example * ```ts * import { Channel, Data } from "effect" * @@ -3658,21 +4576,25 @@ export declare const switchMap: { * // Outputs: "value-1", "value-2", "value-3" * ``` * - * @since 2.0.0 * @category sequencing + * @since 4.0.0 */ (f: (d: OutElem) => Channel, options?: { readonly concurrency?: number | "unbounded" | undefined; readonly bufferSize?: number | undefined; }): (self: Channel) => Channel; /** - * Returns a new channel, which sequentially combines this channel, together - * with the provided factory function, which creates a second channel based on - * the output values of this channel. The result is a channel that will first - * perform the functions of this channel, before performing the functions of - * the created channel (including yielding its terminal value). + * Maps each output element to a channel and emits values from the most recent + * active child channels. + * + * **Details** + * + * With the default concurrency of `1`, starting a new child channel interrupts + * the previous child channel. Use `options.concurrency` to allow more active + * child channels. The source channel's done value is preserved. + * + * **Example** (Switching mapped channels) * - * @example * ```ts * import { Channel, Data } from "effect" * @@ -3692,8 +4614,8 @@ export declare const switchMap: { * // Outputs: "value-1", "value-2", "value-3" * ``` * - * @since 2.0.0 * @category sequencing + * @since 4.0.0 */ (self: Channel, f: (d: OutElem) => Channel, options?: { readonly concurrency?: number | "unbounded" | undefined; @@ -3703,7 +4625,13 @@ export declare const switchMap: { /** * Merges multiple channels with specified concurrency and buffering options. * - * @example + * **When to use** + * + * Use when channel outputs are themselves channels and multiple inner channels + * should run with configured concurrency and buffering. + * + * **Example** (Merging nested channels) + * * ```ts * import { Channel, Data } from "effect" * @@ -3727,14 +4655,20 @@ export declare const switchMap: { * // Outputs: 1, 2, 3, 4, 5, 6 (order may vary due to concurrency) * ``` * + * @category combining * @since 2.0.0 - * @category utils */ export declare const mergeAll: { /** * Merges multiple channels with specified concurrency and buffering options. * - * @example + * **When to use** + * + * Use when channel outputs are themselves channels and multiple inner channels + * should run with configured concurrency and buffering. + * + * **Example** (Merging nested channels) + * * ```ts * import { Channel, Data } from "effect" * @@ -3758,8 +4692,8 @@ export declare const mergeAll: { * // Outputs: 1, 2, 3, 4, 5, 6 (order may vary due to concurrency) * ``` * + * @category combining * @since 2.0.0 - * @category utils */ (options: { readonly concurrency: number | "unbounded"; @@ -3769,7 +4703,13 @@ export declare const mergeAll: { /** * Merges multiple channels with specified concurrency and buffering options. * - * @example + * **When to use** + * + * Use when channel outputs are themselves channels and multiple inner channels + * should run with configured concurrency and buffering. + * + * **Example** (Merging nested channels) + * * ```ts * import { Channel, Data } from "effect" * @@ -3793,8 +4733,8 @@ export declare const mergeAll: { * // Outputs: 1, 2, 3, 4, 5, 6 (order may vary due to concurrency) * ``` * + * @category combining * @since 2.0.0 - * @category utils */ (channels: Channel, OutErr, OutDone, InElem, InErr, InDone, Env>, options: { readonly concurrency: number | "unbounded"; @@ -3805,7 +4745,8 @@ export declare const mergeAll: { /** * Represents strategies for halting merged channels when one completes or fails. * - * @example + * **Example** (Choosing merge halt strategies) + * * ```ts * import type { Channel } from "effect" * @@ -3816,15 +4757,16 @@ export declare const mergeAll: { * const either: Channel.HaltStrategy = "either" // Stop when either channel halts * ``` * - * @since 2.0.0 * @category models + * @since 4.0.0 */ export type HaltStrategy = "left" | "right" | "both" | "either"; /** * Returns a new channel, which is the merge of this channel and the specified * channel. * - * @example + * **Example** (Merging channels) + * * ```ts * import { Channel, Data } from "effect" * @@ -3845,15 +4787,16 @@ export type HaltStrategy = "left" | "right" | "both" | "either"; * // Order may vary: 1, "a", 2, "b", 3, "c" * ``` * - * @since 2.0.0 - * @category utils + * @category combining + * @since 4.0.0 */ export declare const merge: { /** * Returns a new channel, which is the merge of this channel and the specified * channel. * - * @example + * **Example** (Merging channels) + * * ```ts * import { Channel, Data } from "effect" * @@ -3874,8 +4817,8 @@ export declare const merge: { * // Order may vary: 1, "a", 2, "b", 3, "c" * ``` * - * @since 2.0.0 - * @category utils + * @category combining + * @since 4.0.0 */ (right: Channel, options?: { readonly haltStrategy?: HaltStrategy | undefined; @@ -3884,7 +4827,8 @@ export declare const merge: { * Returns a new channel, which is the merge of this channel and the specified * channel. * - * @example + * **Example** (Merging channels) + * * ```ts * import { Channel, Data } from "effect" * @@ -3905,26 +4849,65 @@ export declare const merge: { * // Order may vary: 1, "a", 2, "b", 3, "c" * ``` * - * @since 2.0.0 - * @category utils + * @category combining + * @since 4.0.0 */ (left: Channel, right: Channel, options?: { readonly haltStrategy?: HaltStrategy | undefined; } | undefined): Channel; }; /** + * Runs an effect concurrently with a channel while emitting only the channel's + * output elements. + * + * **When to use** + * + * Use when a side effect should run for the lifetime of a channel and only the + * channel's output elements should be emitted. + * + * **Details** + * + * The effect's successful value is ignored. If the effect fails while the + * channel is running, the returned channel fails with that error. + * + * @category combining * @since 4.0.0 - * @category utils */ export declare const mergeEffect: { /** + * Runs an effect concurrently with a channel while emitting only the channel's + * output elements. + * + * **When to use** + * + * Use when a side effect should run for the lifetime of a channel and only the + * channel's output elements should be emitted. + * + * **Details** + * + * The effect's successful value is ignored. If the effect fails while the + * channel is running, the returned channel fails with that error. + * + * @category combining * @since 4.0.0 - * @category utils */ (effect: Effect.Effect): (self: Channel) => Channel; /** + * Runs an effect concurrently with a channel while emitting only the channel's + * output elements. + * + * **When to use** + * + * Use when a side effect should run for the lifetime of a channel and only the + * channel's output elements should be emitted. + * + * **Details** + * + * The effect's successful value is ignored. If the effect fails while the + * channel is running, the returned channel fails with that error. + * + * @category combining * @since 4.0.0 - * @category utils */ (self: Channel, effect: Effect.Effect): Channel; }; @@ -3933,12 +4916,14 @@ export declare const mergeEffect: { * standalone `\r` as line terminators. The behavior matches * `String.linesIterator` regardless of how the input is chunked. * + * **Details** + * * A line terminator at the very end of the stream does **not** produce a * trailing empty line (consistent with `String.linesIterator`). Conversely, * if the stream ends without a terminator the final partial line is still * emitted. * - * **Example** + * **Example** (Splitting string chunks into lines) * * ```ts * import { Effect, Stream } from "effect" @@ -3952,18 +4937,32 @@ export declare const mergeEffect: { * })) * ``` * - * @since 2.0.0 * @category String manipulation + * @since 2.0.0 */ export declare const splitLines: () => Channel, Err, Done, Arr.NonEmptyReadonlyArray, Err, Done>; /** - * @since 4.0.0 + * Decodes incoming `Uint8Array` chunks into strings using `TextDecoder`. + * + * **Details** + * + * Input chunks are decoded with streaming enabled so multi-byte characters may + * span `Uint8Array` boundaries. The optional `encoding` and `options` are + * passed to `TextDecoder`. + * * @category String manipulation + * @since 4.0.0 */ export declare const decodeText: (encoding?: string, options?: TextDecoderOptions) => Channel, Err, Done, Arr.NonEmptyReadonlyArray, Err, Done>; /** - * @since 4.0.0 + * Encodes incoming string chunks into `Uint8Array` values using `TextEncoder`. + * + * **Details** + * + * Each string inside an emitted array is encoded independently. + * * @category String manipulation + * @since 4.0.0 */ export declare const encodeText: () => Channel, Err, Done, Arr.NonEmptyReadonlyArray, Err, Done>; /** @@ -3972,7 +4971,8 @@ export declare const encodeText: () => Channel() => Channel(that: Channel): (self: Channel) => Channel; /** @@ -4028,7 +5029,8 @@ export declare const pipeTo: { * and the output type of the specified channel, terminating with the value of * the specified channel. * - * @example + * **Example** (Piping one channel into another) + * * ```ts * import { Channel, Data } from "effect" * @@ -4046,8 +5048,8 @@ export declare const pipeTo: { * // Outputs: 2, 4, 6 * ``` * + * @category sequencing * @since 2.0.0 - * @category utils */ (self: Channel, that: Channel): Channel; }; @@ -4056,7 +5058,8 @@ export declare const pipeTo: { * specified channel and preserves this channel's failures without providing * them to the other channel for observation. * - * @example + * **Example** (Piping while preserving failures) + * * ```ts * import { Channel, Data } from "effect" * @@ -4074,8 +5077,8 @@ export declare const pipeTo: { * // Source errors are preserved and not sent to transform channel * ``` * + * @category sequencing * @since 2.0.0 - * @category utils */ export declare const pipeToOrFail: { /** @@ -4083,7 +5086,8 @@ export declare const pipeToOrFail: { * specified channel and preserves this channel's failures without providing * them to the other channel for observation. * - * @example + * **Example** (Piping while preserving failures) + * * ```ts * import { Channel, Data } from "effect" * @@ -4101,8 +5105,8 @@ export declare const pipeToOrFail: { * // Source errors are preserved and not sent to transform channel * ``` * + * @category sequencing * @since 2.0.0 - * @category utils */ (that: Channel): (self: Channel) => Channel; /** @@ -4110,7 +5114,8 @@ export declare const pipeToOrFail: { * specified channel and preserves this channel's failures without providing * them to the other channel for observation. * - * @example + * **Example** (Piping while preserving failures) + * * ```ts * import { Channel, Data } from "effect" * @@ -4128,8 +5133,8 @@ export declare const pipeToOrFail: { * // Source errors are preserved and not sent to transform channel * ``` * + * @category sequencing * @since 2.0.0 - * @category utils */ (self: Channel, that: Channel): Channel; }; @@ -4137,7 +5142,8 @@ export declare const pipeToOrFail: { * Constructs a `Channel` from a scoped effect that will result in a * `Channel` if successful. * - * @example + * **Example** (Unwrapping channel effects) + * * ```ts * import { Channel, Data, Effect } from "effect" * @@ -4156,105 +5162,174 @@ export declare const pipeToOrFail: { * // The resulting channel outputs: 1, 2, 3 * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export declare const unwrap: (channel: Effect.Effect, E, R>) => Channel | R2>; /** + * Runs a channel with a scope provided for the duration of the channel + * execution, removing the channel's `Scope` requirement. + * + * @category resource management * @since 2.0.0 - * @category utils */ export declare const scoped: (self: Channel) => Channel>; /** - * Returns a new channel which embeds the given input handler into a Channel. + * Runs an input handler against the upstream pull while the wrapped channel + * runs without receiving upstream input directly. * - * @example - * ```ts - * import { Channel, Data, Effect } from "effect" + * **Details** * - * class EmbedError extends Data.TaggedError("EmbedError")<{ - * readonly stage: string - * }> {} + * The input handler is forked in the channel scope. The wrapped channel is run + * with an already-completed input. + * + * **Example** (Embedding custom input handling) + * + * ```ts + * import { Channel, Effect } from "effect" * * // Create a base channel * const baseChannel = Channel.fromIterable([1, 2, 3]) * - * // Embed input handling - simplified example + * // Drain the embedded input while the base channel runs * const embeddedChannel = Channel.embedInput( * baseChannel, - * (_upstream) => Effect.void + * (upstream) => + * upstream.pipe( + * Effect.tap((message) => + * Effect.sync(() => console.log(message)) + * ), + * Effect.forever, + * Effect.ignore + * ) * ) * ``` * + * @category sequencing * @since 2.0.0 - * @category utils */ export declare const embedInput: { /** - * Returns a new channel which embeds the given input handler into a Channel. + * Runs an input handler against the upstream pull while the wrapped channel + * runs without receiving upstream input directly. * - * @example - * ```ts - * import { Channel, Data, Effect } from "effect" + * **Details** * - * class EmbedError extends Data.TaggedError("EmbedError")<{ - * readonly stage: string - * }> {} + * The input handler is forked in the channel scope. The wrapped channel is run + * with an already-completed input. + * + * **Example** (Embedding custom input handling) + * + * ```ts + * import { Channel, Effect } from "effect" * * // Create a base channel * const baseChannel = Channel.fromIterable([1, 2, 3]) * - * // Embed input handling - simplified example + * // Drain the embedded input while the base channel runs * const embeddedChannel = Channel.embedInput( * baseChannel, - * (_upstream) => Effect.void + * (upstream) => + * upstream.pipe( + * Effect.tap((message) => + * Effect.sync(() => console.log(message)) + * ), + * Effect.forever, + * Effect.ignore + * ) * ) * ``` * + * @category sequencing * @since 2.0.0 - * @category utils */ (input: (upstream: Pull.Pull) => Effect.Effect): (self: Channel) => Channel; /** - * Returns a new channel which embeds the given input handler into a Channel. + * Runs an input handler against the upstream pull while the wrapped channel + * runs without receiving upstream input directly. * - * @example - * ```ts - * import { Channel, Data, Effect } from "effect" + * **Details** * - * class EmbedError extends Data.TaggedError("EmbedError")<{ - * readonly stage: string - * }> {} + * The input handler is forked in the channel scope. The wrapped channel is run + * with an already-completed input. * - * // Create a base channel - * const baseChannel = Channel.fromIterable([1, 2, 3]) + * **Example** (Embedding custom input handling) * - * // Embed input handling - simplified example - * const embeddedChannel = Channel.embedInput( + * ```ts + * import { Channel, Effect } from "effect" + * + * // Create a base channel + * const baseChannel = Channel.fromIterable([1, 2, 3]) + * + * // Drain the embedded input while the base channel runs + * const embeddedChannel = Channel.embedInput( * baseChannel, - * (_upstream) => Effect.void + * (upstream) => + * upstream.pipe( + * Effect.tap((message) => + * Effect.sync(() => console.log(message)) + * ), + * Effect.forever, + * Effect.ignore + * ) * ) * ``` * + * @category sequencing * @since 2.0.0 - * @category utils */ (self: Channel, input: (upstream: Pull.Pull) => Effect.Effect): Channel; }; /** - * Allows a faster producer to progress independently of a slower consumer by - * buffering up to `capacity` elements in a queue. + * Buffers individual output elements in a queue with the configured `capacity` + * so a faster producer can progress independently of a slower consumer. + * + * **When to use** + * + * Use when output elements can be decoupled from downstream demand and the + * configured backpressure or loss strategy is acceptable. + * + * **Details** + * + * Finite queues use the `strategy` option. The default `"suspend"` strategy + * applies backpressure, while `"dropping"` and `"sliding"` can discard output + * elements when the queue is full. `"unbounded"` capacity does not use a finite + * capacity strategy. + * + * **Gotchas** + * + * Dropping and sliding strategies can lose output elements under backpressure. + * + * @see {@link bufferArray} for buffering elements from array outputs * - * @since 2.0.0 * @category Buffering + * @since 2.0.0 */ export declare const buffer: { /** - * Allows a faster producer to progress independently of a slower consumer by - * buffering up to `capacity` elements in a queue. + * Buffers individual output elements in a queue with the configured `capacity` + * so a faster producer can progress independently of a slower consumer. + * + * **When to use** + * + * Use when output elements can be decoupled from downstream demand and the + * configured backpressure or loss strategy is acceptable. + * + * **Details** + * + * Finite queues use the `strategy` option. The default `"suspend"` strategy + * applies backpressure, while `"dropping"` and `"sliding"` can discard output + * elements when the queue is full. `"unbounded"` capacity does not use a finite + * capacity strategy. + * + * **Gotchas** + * + * Dropping and sliding strategies can lose output elements under backpressure. + * + * @see {@link bufferArray} for buffering elements from array outputs * - * @since 2.0.0 * @category Buffering + * @since 2.0.0 */ (options: { readonly capacity: "unbounded"; @@ -4263,11 +5338,29 @@ export declare const buffer: { readonly strategy?: "dropping" | "sliding" | "suspend" | undefined; }): (self: Channel) => Channel; /** - * Allows a faster producer to progress independently of a slower consumer by - * buffering up to `capacity` elements in a queue. + * Buffers individual output elements in a queue with the configured `capacity` + * so a faster producer can progress independently of a slower consumer. + * + * **When to use** + * + * Use when output elements can be decoupled from downstream demand and the + * configured backpressure or loss strategy is acceptable. + * + * **Details** + * + * Finite queues use the `strategy` option. The default `"suspend"` strategy + * applies backpressure, while `"dropping"` and `"sliding"` can discard output + * elements when the queue is full. `"unbounded"` capacity does not use a finite + * capacity strategy. + * + * **Gotchas** + * + * Dropping and sliding strategies can lose output elements under backpressure. + * + * @see {@link bufferArray} for buffering elements from array outputs * - * @since 2.0.0 * @category Buffering + * @since 2.0.0 */ (self: Channel, options: { readonly capacity: "unbounded"; @@ -4277,19 +5370,59 @@ export declare const buffer: { }): Channel; }; /** - * Allows a faster producer to progress independently of a slower consumer by - * buffering up to `capacity` elements in a queue. + * Buffers array output elements in a queue with the configured `capacity` so a + * faster producer can progress independently of a slower consumer. + * + * **When to use** + * + * Use when emitted arrays are batches of elements and it is acceptable for + * buffering to flatten and rebuild those batches. + * + * **Details** + * + * Finite queues use the `strategy` option. The default `"suspend"` strategy + * applies backpressure, while `"dropping"` and `"sliding"` can discard output + * elements when the queue is full. `"unbounded"` capacity does not use a finite + * capacity strategy. + * + * **Gotchas** + * + * Input arrays are offered to the queue element-by-element and outputs are + * rebuilt from the currently available queued elements, so upstream array + * boundaries are not preserved. + * + * @see {@link buffer} for buffering output elements without flattening arrays * - * @since 2.0.0 * @category Buffering + * @since 4.0.0 */ export declare const bufferArray: { /** - * Allows a faster producer to progress independently of a slower consumer by - * buffering up to `capacity` elements in a queue. + * Buffers array output elements in a queue with the configured `capacity` so a + * faster producer can progress independently of a slower consumer. + * + * **When to use** + * + * Use when emitted arrays are batches of elements and it is acceptable for + * buffering to flatten and rebuild those batches. + * + * **Details** + * + * Finite queues use the `strategy` option. The default `"suspend"` strategy + * applies backpressure, while `"dropping"` and `"sliding"` can discard output + * elements when the queue is full. `"unbounded"` capacity does not use a finite + * capacity strategy. + * + * **Gotchas** + * + * Input arrays are offered to the queue element-by-element and outputs are + * rebuilt from the currently available queued elements, so upstream array + * boundaries are not preserved. + * + * @see {@link buffer} for buffering output elements without flattening arrays * - * @since 2.0.0 * @category Buffering + * @since 4.0.0 */ (options: { readonly capacity: "unbounded"; @@ -4298,11 +5431,31 @@ export declare const bufferArray: { readonly strategy?: "dropping" | "sliding" | "suspend" | undefined; }): (self: Channel, OutErr, OutDone, InElem, InErr, InDone, Env>) => Channel, OutErr, OutDone, InElem, InErr, InDone, Env>; /** - * Allows a faster producer to progress independently of a slower consumer by - * buffering up to `capacity` elements in a queue. + * Buffers array output elements in a queue with the configured `capacity` so a + * faster producer can progress independently of a slower consumer. + * + * **When to use** + * + * Use when emitted arrays are batches of elements and it is acceptable for + * buffering to flatten and rebuild those batches. + * + * **Details** + * + * Finite queues use the `strategy` option. The default `"suspend"` strategy + * applies backpressure, while `"dropping"` and `"sliding"` can discard output + * elements when the queue is full. `"unbounded"` capacity does not use a finite + * capacity strategy. + * + * **Gotchas** + * + * Input arrays are offered to the queue element-by-element and outputs are + * rebuilt from the currently available queued elements, so upstream array + * boundaries are not preserved. + * + * @see {@link buffer} for buffering output elements without flattening arrays * - * @since 2.0.0 * @category Buffering + * @since 4.0.0 */ (self: Channel, OutErr, OutDone, InElem, InErr, InDone, Env>, options: { readonly capacity: "unbounded"; @@ -4312,83 +5465,146 @@ export declare const bufferArray: { }): Channel, OutErr, OutDone, InElem, InErr, InDone, Env>; }; /** - * Returns a new channel, which is the same as this one, except it will be - * interrupted when the specified effect completes. If the effect completes - * successfully before the underlying channel is done, then the returned - * channel will yield the success value of the effect as its terminal value. - * On the other hand, if the underlying channel finishes first, then the - * returned channel will yield the success value of the underlying channel as - * its terminal value. + * Interrupts a channel when another effect completes. + * + * **When to use** + * + * Use to race channel execution against an external effect whose success can + * become the channel's done value. + * + * **Details** * + * If the effect completes first, its success value becomes the returned + * channel's done value. If the channel completes first, the original channel's + * done value is preserved. + * + * @category interruption * @since 2.0.0 - * @category utils */ export declare const interruptWhen: { /** - * Returns a new channel, which is the same as this one, except it will be - * interrupted when the specified effect completes. If the effect completes - * successfully before the underlying channel is done, then the returned - * channel will yield the success value of the effect as its terminal value. - * On the other hand, if the underlying channel finishes first, then the - * returned channel will yield the success value of the underlying channel as - * its terminal value. + * Interrupts a channel when another effect completes. + * + * **When to use** + * + * Use to race channel execution against an external effect whose success can + * become the channel's done value. + * + * **Details** * + * If the effect completes first, its success value becomes the returned + * channel's done value. If the channel completes first, the original channel's + * done value is preserved. + * + * @category interruption * @since 2.0.0 - * @category utils */ (effect: Effect.Effect): (self: Channel) => Channel; /** - * Returns a new channel, which is the same as this one, except it will be - * interrupted when the specified effect completes. If the effect completes - * successfully before the underlying channel is done, then the returned - * channel will yield the success value of the effect as its terminal value. - * On the other hand, if the underlying channel finishes first, then the - * returned channel will yield the success value of the underlying channel as - * its terminal value. + * Interrupts a channel when another effect completes. + * + * **When to use** + * + * Use to race channel execution against an external effect whose success can + * become the channel's done value. * + * **Details** + * + * If the effect completes first, its success value becomes the returned + * channel's done value. If the channel completes first, the original channel's + * done value is preserved. + * + * @category interruption * @since 2.0.0 - * @category utils */ (self: Channel, effect: Effect.Effect): Channel; }; /** + * Stops a channel when the specified effect completes or fails. + * + * **Details** + * + * If the effect completes before the channel is done, its success value becomes + * the returned channel's done value. If the effect fails, the returned channel + * fails with that error. If the channel completes first, the channel's done + * value is preserved. + * + * @category interruption * @since 4.0.0 - * @category utils */ export declare const haltWhen: { /** + * Stops a channel when the specified effect completes or fails. + * + * **Details** + * + * If the effect completes before the channel is done, its success value becomes + * the returned channel's done value. If the effect fails, the returned channel + * fails with that error. If the channel completes first, the channel's done + * value is preserved. + * + * @category interruption * @since 4.0.0 - * @category utils */ (effect: Effect.Effect): (self: Channel) => Channel; /** + * Stops a channel when the specified effect completes or fails. + * + * **Details** + * + * If the effect completes before the channel is done, its success value becomes + * the returned channel's done value. If the effect fails, the returned channel + * fails with that error. If the channel completes first, the channel's done + * value is preserved. + * + * @category interruption * @since 4.0.0 - * @category utils */ (self: Channel, effect: Effect.Effect): Channel; }; /** + * Attaches a finalizer that runs only when the channel exits with failure. + * + * **Details** + * + * The finalizer receives the failure `Cause`. The original channel failure is + * preserved. The finalizer itself must not fail. + * + * @category error handling * @since 4.0.0 - * @category utils */ export declare const onError: { /** + * Attaches a finalizer that runs only when the channel exits with failure. + * + * **Details** + * + * The finalizer receives the failure `Cause`. The original channel failure is + * preserved. The finalizer itself must not fail. + * + * @category error handling * @since 4.0.0 - * @category utils */ (finalizer: (cause: Cause.Cause) => Effect.Effect): (self: Channel) => Channel; /** + * Attaches a finalizer that runs only when the channel exits with failure. + * + * **Details** + * + * The finalizer receives the failure `Cause`. The original channel failure is + * preserved. The finalizer itself must not fail. + * + * @category error handling * @since 4.0.0 - * @category utils */ (self: Channel, finalizer: (cause: Cause.Cause) => Effect.Effect): Channel; }; /** - * Returns a new channel with an attached finalizer. The finalizer is - * guaranteed to be executed so long as the channel begins execution (and - * regardless of whether or not it completes). + * Returns a channel with an exit-aware finalizer that is guaranteed to run once + * the channel begins execution, whether it succeeds or fails. + * + * **Example** (Running exit finalizers) * - * @example * ```ts * import { Channel, Console, Data, Exit } from "effect" * @@ -4409,16 +5625,16 @@ export declare const onError: { * }) * ``` * + * @category resource management * @since 4.0.0 - * @category utils */ export declare const onExit: { /** - * Returns a new channel with an attached finalizer. The finalizer is - * guaranteed to be executed so long as the channel begins execution (and - * regardless of whether or not it completes). + * Returns a channel with an exit-aware finalizer that is guaranteed to run once + * the channel begins execution, whether it succeeds or fails. + * + * **Example** (Running exit finalizers) * - * @example * ```ts * import { Channel, Console, Data, Exit } from "effect" * @@ -4439,16 +5655,16 @@ export declare const onExit: { * }) * ``` * + * @category resource management * @since 4.0.0 - * @category utils */ (finalizer: (e: Exit.Exit) => Effect.Effect): (self: Channel) => Channel; /** - * Returns a new channel with an attached finalizer. The finalizer is - * guaranteed to be executed so long as the channel begins execution (and - * regardless of whether or not it completes). + * Returns a channel with an exit-aware finalizer that is guaranteed to run once + * the channel begins execution, whether it succeeds or fails. + * + * **Example** (Running exit finalizers) * - * @example * ```ts * import { Channel, Console, Data, Exit } from "effect" * @@ -4469,65 +5685,149 @@ export declare const onExit: { * }) * ``` * + * @category resource management * @since 4.0.0 - * @category utils */ (self: Channel, finalizer: (e: Exit.Exit) => Effect.Effect): Channel; }; /** + * Runs an effect before the channel starts. + * + * **Details** + * + * The effect's successful value is ignored. If the effect fails, the returned + * channel fails before running the source channel. + * + * @category hooks * @since 4.0.0 - * @category utils */ export declare const onStart: { /** + * Runs an effect before the channel starts. + * + * **Details** + * + * The effect's successful value is ignored. If the effect fails, the returned + * channel fails before running the source channel. + * + * @category hooks * @since 4.0.0 - * @category utils */ (onStart: Effect.Effect): (self: Channel) => Channel; /** + * Runs an effect before the channel starts. + * + * **Details** + * + * The effect's successful value is ignored. If the effect fails, the returned + * channel fails before running the source channel. + * + * @category hooks * @since 4.0.0 - * @category utils */ (self: Channel, onStart: Effect.Effect): Channel; }; /** + * Runs an effect the first time the channel emits an output element. + * + * **When to use** + * + * Use when initialization depends on the first output element rather than only + * on channel startup. + * + * **Details** + * + * The effect receives the first emitted element. The first element is still + * emitted unchanged. The effect is not run if the channel completes without + * emitting an element. + * + * @category hooks * @since 4.0.0 - * @category utils */ export declare const onFirst: { /** + * Runs an effect the first time the channel emits an output element. + * + * **When to use** + * + * Use when initialization depends on the first output element rather than only + * on channel startup. + * + * **Details** + * + * The effect receives the first emitted element. The first element is still + * emitted unchanged. The effect is not run if the channel completes without + * emitting an element. + * + * @category hooks * @since 4.0.0 - * @category utils */ (onFirst: (element: Types.NoInfer) => Effect.Effect): (self: Channel) => Channel; /** + * Runs an effect the first time the channel emits an output element. + * + * **When to use** + * + * Use when initialization depends on the first output element rather than only + * on channel startup. + * + * **Details** + * + * The effect receives the first emitted element. The first element is still + * emitted unchanged. The effect is not run if the channel completes without + * emitting an element. + * + * @category hooks * @since 4.0.0 - * @category utils */ (self: Channel, onFirst: (element: Types.NoInfer) => Effect.Effect): Channel; }; /** + * Runs an effect when the channel completes successfully. + * + * **Details** + * + * The effect runs before the original done value is propagated. The effect is + * not run when the channel fails. If the effect fails, the returned channel + * fails with that error. + * + * @category hooks * @since 4.0.0 - * @category utils */ export declare const onEnd: { /** + * Runs an effect when the channel completes successfully. + * + * **Details** + * + * The effect runs before the original done value is propagated. The effect is + * not run when the channel fails. If the effect fails, the returned channel + * fails with that error. + * + * @category hooks * @since 4.0.0 - * @category utils */ (onEnd: Effect.Effect): (self: Channel) => Channel; /** + * Runs an effect when the channel completes successfully. + * + * **Details** + * + * The effect runs before the original done value is propagated. The effect is + * not run when the channel fails. If the effect fails, the returned channel + * fails with that error. + * + * @category hooks * @since 4.0.0 - * @category utils */ (self: Channel, onEnd: Effect.Effect): Channel; }; /** - * Returns a new channel with an attached finalizer. The finalizer is - * guaranteed to be executed so long as the channel begins execution (and - * regardless of whether or not it completes). + * Returns a channel with a finalizer effect that is guaranteed to run once the + * channel begins execution, whether it succeeds or fails. + * + * **Example** (Ensuring cleanup runs) * - * @example * ```ts * import { Channel, Console, Data } from "effect" * @@ -4545,16 +5845,16 @@ export declare const onEnd: { * ) * ``` * + * @category resource management * @since 2.0.0 - * @category utils */ export declare const ensuring: { /** - * Returns a new channel with an attached finalizer. The finalizer is - * guaranteed to be executed so long as the channel begins execution (and - * regardless of whether or not it completes). + * Returns a channel with a finalizer effect that is guaranteed to run once the + * channel begins execution, whether it succeeds or fails. + * + * **Example** (Ensuring cleanup runs) * - * @example * ```ts * import { Channel, Console, Data } from "effect" * @@ -4572,16 +5872,16 @@ export declare const ensuring: { * ) * ``` * + * @category resource management * @since 2.0.0 - * @category utils */ (finalizer: Effect.Effect): (self: Channel) => Channel; /** - * Returns a new channel with an attached finalizer. The finalizer is - * guaranteed to be executed so long as the channel begins execution (and - * regardless of whether or not it completes). + * Returns a channel with a finalizer effect that is guaranteed to run once the + * channel begins execution, whether it succeeds or fails. + * + * **Example** (Ensuring cleanup runs) * - * @example * ```ts * import { Channel, Console, Data } from "effect" * @@ -4599,149 +5899,286 @@ export declare const ensuring: { * ) * ``` * + * @category resource management * @since 2.0.0 - * @category utils */ (self: Channel, finalizer: Effect.Effect): Channel; }; /** - * Create a channel from the specified services. + * Creates a channel from the specified services. * + * @category services * @since 2.0.0 - * @category Services */ export declare const contextWith: (f: (context: Context.Context) => Channel) => Channel; /** - * Provides a layer or context to the channel, removing the corresponding - * service requirements. Use `options.local` to build the layer every time; by - * default, layers are shared between provide calls. + * Provides a `Context` to the channel, removing the corresponding service + * requirements from the returned channel. * - * @since 4.0.0 - * @category Services + * @category services + * @since 2.0.0 */ export declare const provideContext: { /** - * Provides a layer or context to the channel, removing the corresponding - * service requirements. Use `options.local` to build the layer every time; by - * default, layers are shared between provide calls. + * Provides a `Context` to the channel, removing the corresponding service + * requirements from the returned channel. * - * @since 4.0.0 - * @category Services + * @category services + * @since 2.0.0 */ (context: Context.Context): (self: Channel) => Channel>; /** - * Provides a layer or context to the channel, removing the corresponding - * service requirements. Use `options.local` to build the layer every time; by - * default, layers are shared between provide calls. + * Provides a `Context` to the channel, removing the corresponding service + * requirements from the returned channel. * - * @since 4.0.0 - * @category Services + * @category services + * @since 2.0.0 */ (self: Channel, context: Context.Context): Channel>; }; /** - * @since 4.0.0 - * @category Services + * Provides a concrete service for a context key, removing that service + * requirement from the returned channel. + * + * @category services + * @since 2.0.0 */ export declare const provideService: { /** - * @since 4.0.0 - * @category Services + * Provides a concrete service for a context key, removing that service + * requirement from the returned channel. + * + * @category services + * @since 2.0.0 */ (key: Context.Key, service: NoInfer): (self: Channel) => Channel>; /** - * @since 4.0.0 - * @category Services + * Provides a concrete service for a context key, removing that service + * requirement from the returned channel. + * + * @category services + * @since 2.0.0 */ (self: Channel, key: Context.Key, service: NoInfer): Channel>; }; /** + * Provides a service to the channel after obtaining it from an effect. + * + * **When to use** + * + * Use to supply a channel dependency when constructing the service itself is + * effectful or can fail. + * + * **Details** + * + * If the service effect fails, the returned channel fails. The provided service + * removes the corresponding service requirement from the returned channel. + * + * @category services * @since 4.0.0 - * @category Services */ export declare const provideServiceEffect: { /** + * Provides a service to the channel after obtaining it from an effect. + * + * **When to use** + * + * Use to supply a channel dependency when constructing the service itself is + * effectful or can fail. + * + * **Details** + * + * If the service effect fails, the returned channel fails. The provided service + * removes the corresponding service requirement from the returned channel. + * + * @category services * @since 4.0.0 - * @category Services */ (key: Context.Key, service: Effect.Effect, ES, RS>): (self: Channel) => Channel | RS>; /** + * Provides a service to the channel after obtaining it from an effect. + * + * **When to use** + * + * Use to supply a channel dependency when constructing the service itself is + * effectful or can fail. + * + * **Details** + * + * If the service effect fails, the returned channel fails. The provided service + * removes the corresponding service requirement from the returned channel. + * + * @category services * @since 4.0.0 - * @category Services */ (self: Channel, key: Context.Key, service: Effect.Effect, ES, RS>): Channel | RS>; }; /** + * Provides a `Layer` or `Context` to the channel, removing the corresponding + * service requirements. + * + * **Details** + * + * Providing a `Context` delegates to `provideContext`. Providing a `Layer` + * builds the layer in the channel scope. Use `options.local` to build a fresh + * layer instance for this provision. + * + * @category services * @since 4.0.0 - * @category Services */ export declare const provide: { /** + * Provides a `Layer` or `Context` to the channel, removing the corresponding + * service requirements. + * + * **Details** + * + * Providing a `Context` delegates to `provideContext`. Providing a `Layer` + * builds the layer in the channel scope. Use `options.local` to build a fresh + * layer instance for this provision. + * + * @category services * @since 4.0.0 - * @category Services */ (layer: Layer.Layer | Context.Context, options?: { readonly local?: boolean | undefined; } | undefined): (self: Channel) => Channel | R>; /** + * Provides a `Layer` or `Context` to the channel, removing the corresponding + * service requirements. + * + * **Details** + * + * Providing a `Context` delegates to `provideContext`. Providing a `Layer` + * builds the layer in the channel scope. Use `options.local` to build a fresh + * layer instance for this provision. + * + * @category services * @since 4.0.0 - * @category Services */ (self: Channel, layer: Layer.Layer | Context.Context, options?: { readonly local?: boolean | undefined; } | undefined): Channel | R>; }; /** - * @since 2.0.0 - * @category Services + * Transforms the current context before running the channel. + * + * **Details** + * + * The function receives the surrounding context and returns the context to + * provide to the channel. The returned channel requires the services needed to + * build that context. + * + * @category services + * @since 4.0.0 */ export declare const updateContext: { /** - * @since 2.0.0 - * @category Services + * Transforms the current context before running the channel. + * + * **Details** + * + * The function receives the surrounding context and returns the context to + * provide to the channel. The returned channel requires the services needed to + * build that context. + * + * @category services + * @since 4.0.0 */ (f: (context: Context.Context) => Context.Context): (self: Channel) => Channel; /** - * @since 2.0.0 - * @category Services + * Transforms the current context before running the channel. + * + * **Details** + * + * The function receives the surrounding context and returns the context to + * provide to the channel. The returned channel requires the services needed to + * build that context. + * + * @category services + * @since 4.0.0 */ (self: Channel, f: (context: Context.Context) => Context.Context): Channel; }; /** + * Updates a service in the current context before running the channel. + * + * **Details** + * + * The existing service is read from the context. The updated service is + * provided to the channel under the same key. + * + * @category services * @since 2.0.0 - * @category Services */ export declare const updateService: { /** + * Updates a service in the current context before running the channel. + * + * **Details** + * + * The existing service is read from the context. The updated service is + * provided to the channel under the same key. + * + * @category services * @since 2.0.0 - * @category Services */ (key: Context.Key, f: (service: NoInfer) => S): (self: Channel) => Channel; /** + * Updates a service in the current context before running the channel. + * + * **Details** + * + * The existing service is read from the context. The updated service is + * provided to the channel under the same key. + * + * @category services * @since 2.0.0 - * @category Services */ (self: Channel, service: Context.Key, f: (service: NoInfer) => S): Channel; }; /** - * @since 4.0.0 - * @category Tracing + * Runs the channel inside a tracing span with the specified name and options. + * + * **Details** + * + * The created span is provided as the current parent span while the channel + * runs. The span is ended with the channel's exit value. + * + * @category tracing + * @since 2.0.0 */ export declare const withSpan: { /** - * @since 4.0.0 - * @category Tracing + * Runs the channel inside a tracing span with the specified name and options. + * + * **Details** + * + * The created span is provided as the current parent span while the channel + * runs. The span is ended with the channel's exit value. + * + * @category tracing + * @since 2.0.0 */ (name: string, options?: SpanOptions): (self: Channel) => Channel>; /** - * @since 4.0.0 - * @category Tracing + * Runs the channel inside a tracing span with the specified name and options. + * + * **Details** + * + * The created span is provided as the current parent span while the channel + * runs. The span is ended with the channel's exit value. + * + * @category tracing + * @since 2.0.0 */ (self: Channel, name: string, options?: SpanOptions): Channel>; }; /** + * The starting channel for Do notation, emitting an empty object. + * + * @category do notation * @since 4.0.0 - * @category Do notation */ export declare const Do: Channel<{}>; declare const let_: { @@ -4754,18 +6191,38 @@ declare const let_: { }; export { /** + * Adds a computed field to each object emitted by a channel. + * + * @category do notation * @since 4.0.0 - * @category Do notation */ let_ as let }; /** + * Adds a field to each object emitted by a channel by running another channel + * derived from that object. + * + * **Details** + * + * The field name must not already exist on the emitted object. The derived + * channel's output becomes the value of the new field. `options.concurrency` + * and `options.bufferSize` control how derived channels are flattened. + * + * @category do notation * @since 4.0.0 - * @category Do notation */ export declare const bind: { /** + * Adds a field to each object emitted by a channel by running another channel + * derived from that object. + * + * **Details** + * + * The field name must not already exist on the emitted object. The derived + * channel's output becomes the value of the new field. `options.concurrency` + * and `options.bufferSize` control how derived channels are flattened. + * + * @category do notation * @since 4.0.0 - * @category Do notation */ (name: Exclude, f: (a: NoInfer) => Channel, options?: { readonly concurrency?: number | "unbounded" | undefined; @@ -4774,8 +6231,17 @@ export declare const bind: { [K in N | keyof OutElem]: K extends keyof OutElem ? OutElem[K] : B; }, OutErr2 | OutErr, OutDone, InElem & InElem2, InErr & InErr2, InDone & InDone2, Env2 | Env>; /** + * Adds a field to each object emitted by a channel by running another channel + * derived from that object. + * + * **Details** + * + * The field name must not already exist on the emitted object. The derived + * channel's output becomes the value of the new field. `options.concurrency` + * and `options.bufferSize` control how derived channels are flattened. + * + * @category do notation * @since 4.0.0 - * @category Do notation */ (self: Channel, name: Exclude, f: (a: NoInfer) => Channel, options?: { readonly concurrency?: number | "unbounded" | undefined; @@ -4785,20 +6251,53 @@ export declare const bind: { }, OutErr2 | OutErr, OutDone, InElem & InElem2, InErr & InErr2, InDone & InDone2, Env2 | Env>; }; /** + * Wraps each output element in an object under the specified field name. + * + * **When to use** + * + * Use when you need to start a Channel Do-notation chain from an existing + * output value by assigning that value to a field name. + * + * @see {@link Do} for starting Do notation from an empty object + * @see {@link bind} for adding a field produced by another channel + * @see {@link let_ let} for adding a computed field + * + * @category do notation * @since 4.0.0 - * @category Do notation */ export declare const bindTo: { /** + * Wraps each output element in an object under the specified field name. + * + * **When to use** + * + * Use when you need to start a Channel Do-notation chain from an existing + * output value by assigning that value to a field name. + * + * @see {@link Do} for starting Do notation from an empty object + * @see {@link bind} for adding a field produced by another channel + * @see {@link let_ let} for adding a computed field + * + * @category do notation * @since 4.0.0 - * @category Do notation */ (name: N): (self: Channel) => Channel<{ [K in N]: OutElem; }, OutErr, OutDone, InElem, InErr, InDone, Env>; /** + * Wraps each output element in an object under the specified field name. + * + * **When to use** + * + * Use when you need to start a Channel Do-notation chain from an existing + * output value by assigning that value to a field name. + * + * @see {@link Do} for starting Do notation from an empty object + * @see {@link bind} for adding a field produced by another channel + * @see {@link let_ let} for adding a computed field + * + * @category do notation * @since 4.0.0 - * @category Do notation */ (self: Channel, name: N): Channel<{ [K in N]: OutElem; @@ -4807,7 +6306,8 @@ export declare const bindTo: { /** * Runs a channel and counts the number of elements it outputs. * - * @example + * **Example** (Counting channel output) + * * ```ts * import { Channel, Data } from "effect" * @@ -4824,14 +6324,15 @@ export declare const bindTo: { * // Effect.runSync(countEffect) // Returns: 5 * ``` * - * @since 2.0.0 * @category execution + * @since 4.0.0 */ export declare const runCount: (self: Channel) => Effect.Effect; /** * Runs a channel and discards all output elements, returning only the final result. * - * @example + * **Example** (Draining channel output at runtime) + * * ```ts * import { Channel, Data } from "effect" * @@ -4852,14 +6353,15 @@ export declare const runCount: (self: Channel(self: Channel) => Effect.Effect; /** * Runs a channel and applies an effect to each output element. * - * @example + * **Example** (Running effects for each output) + * * ```ts * import { Channel, Console, Data } from "effect" * @@ -4879,14 +6381,15 @@ export declare const runDrain: (self: Channel(f: (o: OutElem) => Effect.Effect): (self: Channel) => Effect.Effect; /** * Runs a channel and applies an effect to each output element. * - * @example + * **Example** (Running effects for each output) + * * ```ts * import { Channel, Console, Data } from "effect" * @@ -4933,31 +6437,56 @@ export declare const runForEach: { * // Logs: "Processing: 1", "Processing: 2", "Processing: 3" * ``` * - * @since 2.0.0 * @category execution + * @since 4.0.0 */ (self: Channel, f: (o: OutElem) => Effect.Effect): Effect.Effect; }; /** - * @since 2.0.0 + * Runs a channel and applies an effectful predicate to each output element + * until the predicate returns `false`. + * + * **Details** + * + * Returning `true` continues consuming the channel. Returning `false` stops + * consumption early. The returned effect completes with `void`. + * * @category execution + * @since 4.0.0 */ export declare const runForEachWhile: { /** - * @since 2.0.0 + * Runs a channel and applies an effectful predicate to each output element + * until the predicate returns `false`. + * + * **Details** + * + * Returning `true` continues consuming the channel. Returning `false` stops + * consumption early. The returned effect completes with `void`. + * * @category execution + * @since 4.0.0 */ (f: (o: OutElem) => Effect.Effect): (self: Channel) => Effect.Effect; /** - * @since 2.0.0 + * Runs a channel and applies an effectful predicate to each output element + * until the predicate returns `false`. + * + * **Details** + * + * Returning `true` continues consuming the channel. Returning `false` stops + * consumption early. The returned effect completes with `void`. + * * @category execution + * @since 4.0.0 */ (self: Channel, f: (o: OutElem) => Effect.Effect): Effect.Effect; }; /** * Runs a channel and collects all output elements into an array. * - * @example + * **Example** (Collecting channel output) + * * ```ts * import { Channel, Data } from "effect" * @@ -4974,31 +6503,48 @@ export declare const runForEachWhile: { * // Effect.runSync(collectEffect) // Returns: [1, 2, 3, 4, 5] * ``` * - * @since 2.0.0 * @category execution + * @since 2.0.0 */ export declare const runCollect: (self: Channel) => Effect.Effect, OutErr, Env>; /** * Runs a channel and outputs the done value. * - * @since 4.0.0 * @category execution + * @since 4.0.0 */ export declare const runDone: (self: Channel) => Effect.Effect; /** - * @since 2.0.0 + * Runs a channel until the first output element is available, returning it in + * an `Option`. + * + * **Details** + * + * Returns `Option.some` with the first output element, or `Option.none` if the + * channel completes without emitting output. + * * @category execution + * @since 4.0.0 */ export declare const runHead: (self: Channel) => Effect.Effect, OutErr, Env>; /** - * @since 2.0.0 + * Runs a channel to completion and returns the last output element in an + * `Option`. + * + * **Details** + * + * Returns `Option.some` with the last emitted element, or `Option.none` if the + * channel completes without emitting output. + * * @category execution + * @since 4.0.0 */ export declare const runLast: (self: Channel) => Effect.Effect, OutErr, Env>; /** * Runs a channel and folds over all output elements with an accumulator. * - * @example + * **Example** (Folding channel output) + * * ```ts * import { Channel, Data } from "effect" * @@ -5015,14 +6561,15 @@ export declare const runLast: (self: Channel(initial: LazyArg, f: (acc: Z, o: OutElem) => Z): (self: Channel) => Effect.Effect; /** * Runs a channel and folds over all output elements with an accumulator. * - * @example + * **Example** (Folding channel output) + * * ```ts * import { Channel, Data } from "effect" * @@ -5063,31 +6611,77 @@ export declare const runFold: { * // Effect.runSync(sumEffect) // Returns: 15 * ``` * - * @since 2.0.0 * @category execution + * @since 4.0.0 */ (self: Channel, initial: LazyArg, f: (acc: Z, o: OutElem) => Z): Effect.Effect; }; /** - * @since 2.0.0 + * Runs a channel and effectfully folds all output elements with an accumulator. + * + * **When to use** + * + * Use when folding channel output needs effects, services, or an additional + * failure channel during accumulation. + * + * **Details** + * + * The initial accumulator is evaluated lazily. Each output element is passed to + * the effectful accumulator function. The returned effect succeeds with the + * final accumulator value. + * * @category execution + * @since 4.0.0 */ export declare const runFoldEffect: { /** - * @since 2.0.0 + * Runs a channel and effectfully folds all output elements with an accumulator. + * + * **When to use** + * + * Use when folding channel output needs effects, services, or an additional + * failure channel during accumulation. + * + * **Details** + * + * The initial accumulator is evaluated lazily. Each output element is passed to + * the effectful accumulator function. The returned effect succeeds with the + * final accumulator value. + * * @category execution + * @since 4.0.0 */ (initial: LazyArg, f: (acc: Z, o: OutElem) => Effect.Effect): (self: Channel) => Effect.Effect; /** - * @since 2.0.0 + * Runs a channel and effectfully folds all output elements with an accumulator. + * + * **When to use** + * + * Use when folding channel output needs effects, services, or an additional + * failure channel during accumulation. + * + * **Details** + * + * The initial accumulator is evaluated lazily. Each output element is passed to + * the effectful accumulator function. The returned effect succeeds with the + * final accumulator value. + * * @category execution + * @since 4.0.0 */ (self: Channel, initial: LazyArg, f: (acc: Z, o: OutElem) => Effect.Effect): Effect.Effect; }; /** - * Converts a channel to a Pull data structure for low-level consumption. + * Converts a channel to a scoped `Pull` for low-level consumption. + * + * **Details** + * + * The effect requires a `Scope`. The returned pull should be consumed only + * while that scope remains open. Pulls are serialized so only one pull is + * evaluated at a time. + * + * **Example** (Converting channels to pulls) * - * @example * ```ts * import { Channel, Data, Effect } from "effect" * @@ -5106,14 +6700,15 @@ export declare const runFoldEffect: { * // Use the Pull to manually consume elements * ``` * + * @category destructors * @since 2.0.0 - * @category Destructors */ export declare const toPull: (self: Channel) => Effect.Effect, never, Env | Scope.Scope>; /** * Converts a channel to a Pull within an existing scope. * - * @example + * **Example** (Converting channels to scoped pulls) + * * ```ts * import { Channel, Data, Effect, Scope } from "effect" * @@ -5132,46 +6727,105 @@ export declare const toPull: (self: Channel(self: Channel, scope: Scope.Scope) => Effect.Effect, never, Env>; /** + * Runs a channel and offers each output element into a queue. + * + * **Details** + * + * When the channel completes, the queue is ended. When the channel fails, the + * queue is failed with the channel's cause. The returned effect itself + * completes with `void`. + * + * @category destructors * @since 4.0.0 - * @category Destructors */ export declare const runIntoQueue: { /** + * Runs a channel and offers each output element into a queue. + * + * **Details** + * + * When the channel completes, the queue is ended. When the channel fails, the + * queue is failed with the channel's cause. The returned effect itself + * completes with `void`. + * + * @category destructors * @since 4.0.0 - * @category Destructors */ (queue: Queue.Queue): (self: Channel) => Effect.Effect; /** + * Runs a channel and offers each output element into a queue. + * + * **Details** + * + * When the channel completes, the queue is ended. When the channel fails, the + * queue is failed with the channel's cause. The returned effect itself + * completes with `void`. + * + * @category destructors * @since 4.0.0 - * @category Destructors */ (self: Channel, queue: Queue.Queue): Effect.Effect; }; /** + * Runs a channel that emits non-empty arrays and offers each array element into + * a queue. + * + * **Details** + * + * When the channel completes, the queue is ended. When the channel fails, the + * queue is failed with the channel's cause. The returned effect itself + * completes with `void`. + * + * @category destructors * @since 4.0.0 - * @category Destructors */ export declare const runIntoQueueArray: { /** + * Runs a channel that emits non-empty arrays and offers each array element into + * a queue. + * + * **Details** + * + * When the channel completes, the queue is ended. When the channel fails, the + * queue is failed with the channel's cause. The returned effect itself + * completes with `void`. + * + * @category destructors * @since 4.0.0 - * @category Destructors */ (queue: Queue.Queue): (self: Channel, OutErr, OutDone, unknown, unknown, unknown, Env>) => Effect.Effect; /** + * Runs a channel that emits non-empty arrays and offers each array element into + * a queue. + * + * **Details** + * + * When the channel completes, the queue is ended. When the channel fails, the + * queue is failed with the channel's cause. The returned effect itself + * completes with `void`. + * + * @category destructors * @since 4.0.0 - * @category Destructors */ (self: Channel, OutErr, OutDone, unknown, unknown, unknown, Env>, queue: Queue.Queue): Effect.Effect; }; /** - * Converts a channel to a queue for concurrent consumption. + * Creates a scoped queue and forks the channel to feed it for concurrent + * consumption. + * + * **Details** + * + * Output elements are offered to the queue. Channel completion and failure are + * signaled through the queue. The queue is shut down when the surrounding scope + * closes. + * + * **Example** (Converting channels to queues) * - * @example * ```ts * import { Channel, Data } from "effect" * @@ -5189,14 +6843,22 @@ export declare const runIntoQueueArray: { * // Multiple consumers can read from the queue * ``` * - * @since 4.0.0 - * @category Destructors + * @category destructors + * @since 2.0.0 */ export declare const toQueue: { /** - * Converts a channel to a queue for concurrent consumption. + * Creates a scoped queue and forks the channel to feed it for concurrent + * consumption. + * + * **Details** + * + * Output elements are offered to the queue. Channel completion and failure are + * signaled through the queue. The queue is shut down when the surrounding scope + * closes. + * + * **Example** (Converting channels to queues) * - * @example * ```ts * import { Channel, Data } from "effect" * @@ -5214,8 +6876,8 @@ export declare const toQueue: { * // Multiple consumers can read from the queue * ``` * - * @since 4.0.0 - * @category Destructors + * @category destructors + * @since 2.0.0 */ (options: { readonly capacity: "unbounded"; @@ -5224,9 +6886,17 @@ export declare const toQueue: { readonly strategy?: "dropping" | "sliding" | "suspend" | undefined; }): (self: Channel) => Effect.Effect, never, Env | Scope.Scope>; /** - * Converts a channel to a queue for concurrent consumption. + * Creates a scoped queue and forks the channel to feed it for concurrent + * consumption. + * + * **Details** + * + * Output elements are offered to the queue. Channel completion and failure are + * signaled through the queue. The queue is shut down when the surrounding scope + * closes. + * + * **Example** (Converting channels to queues) * - * @example * ```ts * import { Channel, Data } from "effect" * @@ -5244,8 +6914,8 @@ export declare const toQueue: { * // Multiple consumers can read from the queue * ``` * - * @since 4.0.0 - * @category Destructors + * @category destructors + * @since 2.0.0 */ (self: Channel, options: { readonly capacity: "unbounded"; @@ -5255,13 +6925,29 @@ export declare const toQueue: { }): Effect.Effect, never, Env | Scope.Scope>; }; /** + * Creates a scoped queue and forks an array-emitting channel to feed it. + * + * **Details** + * + * Each element inside emitted non-empty arrays is offered to the queue. Channel + * completion and failure are signaled through the queue. The queue is shut down + * when the surrounding scope closes. + * + * @category destructors * @since 4.0.0 - * @category Destructors */ export declare const toQueueArray: { /** + * Creates a scoped queue and forks an array-emitting channel to feed it. + * + * **Details** + * + * Each element inside emitted non-empty arrays is offered to the queue. Channel + * completion and failure are signaled through the queue. The queue is shut down + * when the surrounding scope closes. + * + * @category destructors * @since 4.0.0 - * @category Destructors */ (options: { readonly capacity: "unbounded"; @@ -5270,8 +6956,16 @@ export declare const toQueueArray: { readonly strategy?: "dropping" | "sliding" | "suspend" | undefined; }): (self: Channel, OutErr, OutDone, unknown, unknown, unknown, Env>) => Effect.Effect, never, Env | Scope.Scope>; /** + * Creates a scoped queue and forks an array-emitting channel to feed it. + * + * **Details** + * + * Each element inside emitted non-empty arrays is offered to the queue. Channel + * completion and failure are signaled through the queue. The queue is shut down + * when the surrounding scope closes. + * + * @category destructors * @since 4.0.0 - * @category Destructors */ (self: Channel, OutErr, OutDone, unknown, unknown, unknown, Env>, options: { readonly capacity: "unbounded"; @@ -5283,21 +6977,25 @@ export declare const toQueueArray: { /** * Converts a channel to a PubSub for concurrent consumption. * + * **Details** + * * `shutdownOnEnd` indicates whether the PubSub should be shut down when the * channel ends. By default this is `true`. * - * @since 4.0.0 - * @category Destructors + * @category destructors + * @since 2.0.0 */ export declare const toPubSub: { /** * Converts a channel to a PubSub for concurrent consumption. * + * **Details** + * * `shutdownOnEnd` indicates whether the PubSub should be shut down when the * channel ends. By default this is `true`. * - * @since 4.0.0 - * @category Destructors + * @category destructors + * @since 2.0.0 */ (options: { readonly capacity: "unbounded"; @@ -5312,11 +7010,13 @@ export declare const toPubSub: { /** * Converts a channel to a PubSub for concurrent consumption. * + * **Details** + * * `shutdownOnEnd` indicates whether the PubSub should be shut down when the * channel ends. By default this is `true`. * - * @since 4.0.0 - * @category Destructors + * @category destructors + * @since 2.0.0 */ (self: Channel, options: { readonly capacity: "unbounded"; @@ -5330,43 +7030,72 @@ export declare const toPubSub: { }): Effect.Effect, never, Env | Scope.Scope>; }; /** + * Runs a channel and publishes each output element to a `PubSub`. + * + * **Details** + * + * The channel's output values are published as individual PubSub messages. Use + * `options.shutdownOnEnd` to shut down the PubSub when channel execution ends. + * + * @category destructors * @since 4.0.0 - * @category Destructors */ export declare const runIntoPubSub: { /** + * Runs a channel and publishes each output element to a `PubSub`. + * + * **Details** + * + * The channel's output values are published as individual PubSub messages. Use + * `options.shutdownOnEnd` to shut down the PubSub when channel execution ends. + * + * @category destructors * @since 4.0.0 - * @category Destructors */ (pubsub: PubSub.PubSub, options?: { readonly shutdownOnEnd?: boolean | undefined; } | undefined): (self: Channel) => Effect.Effect; /** + * Runs a channel and publishes each output element to a `PubSub`. + * + * **Details** + * + * The channel's output values are published as individual PubSub messages. Use + * `options.shutdownOnEnd` to shut down the PubSub when channel execution ends. + * + * @category destructors * @since 4.0.0 - * @category Destructors */ (self: Channel, pubsub: PubSub.PubSub, options?: { readonly shutdownOnEnd?: boolean | undefined; } | undefined): Effect.Effect; }; /** - * Converts a channel to a PubSub for concurrent consumption. + * Converts an array-emitting channel to a scoped `PubSub` for concurrent + * consumption. * - * `shutdownOnEnd` indicates whether the PubSub should be shut down when the - * channel ends. By default this is `true`. + * **Details** + * + * Each element inside emitted non-empty arrays is published as an individual + * PubSub message. `shutdownOnEnd` indicates whether the PubSub should be shut + * down when the channel ends. By default this is `true`. * + * @category destructors * @since 4.0.0 - * @category Destructors */ export declare const toPubSubArray: { /** - * Converts a channel to a PubSub for concurrent consumption. + * Converts an array-emitting channel to a scoped `PubSub` for concurrent + * consumption. * - * `shutdownOnEnd` indicates whether the PubSub should be shut down when the - * channel ends. By default this is `true`. + * **Details** * + * Each element inside emitted non-empty arrays is published as an individual + * PubSub message. `shutdownOnEnd` indicates whether the PubSub should be shut + * down when the channel ends. By default this is `true`. + * + * @category destructors * @since 4.0.0 - * @category Destructors */ (options: { readonly capacity: "unbounded"; @@ -5379,13 +7108,17 @@ export declare const toPubSubArray: { readonly shutdownOnEnd?: boolean | undefined; }): (self: Channel, OutErr, OutDone, unknown, unknown, unknown, Env>) => Effect.Effect, never, Env | Scope.Scope>; /** - * Converts a channel to a PubSub for concurrent consumption. + * Converts an array-emitting channel to a scoped `PubSub` for concurrent + * consumption. * - * `shutdownOnEnd` indicates whether the PubSub should be shut down when the - * channel ends. By default this is `true`. + * **Details** * + * Each element inside emitted non-empty arrays is published as an individual + * PubSub message. `shutdownOnEnd` indicates whether the PubSub should be shut + * down when the channel ends. By default this is `true`. + * + * @category destructors * @since 4.0.0 - * @category Destructors */ (self: Channel, OutErr, OutDone, unknown, unknown, unknown, Env>, options: { readonly capacity: "unbounded"; @@ -5399,37 +7132,76 @@ export declare const toPubSubArray: { }): Effect.Effect, never, Env | Scope.Scope>; }; /** + * Runs an array-emitting channel and publishes each array element to a + * `PubSub`. + * + * **Details** + * + * Each element inside emitted non-empty arrays is published as an individual + * PubSub message. Use `options.shutdownOnEnd` to shut down the PubSub when + * channel execution ends. + * + * @category destructors * @since 4.0.0 - * @category Destructors */ export declare const runIntoPubSubArray: { /** + * Runs an array-emitting channel and publishes each array element to a + * `PubSub`. + * + * **Details** + * + * Each element inside emitted non-empty arrays is published as an individual + * PubSub message. Use `options.shutdownOnEnd` to shut down the PubSub when + * channel execution ends. + * + * @category destructors * @since 4.0.0 - * @category Destructors */ (pubsub: PubSub.PubSub, options?: { readonly shutdownOnEnd?: boolean | undefined; } | undefined): (self: Channel, OutErr, OutDone, unknown, unknown, unknown, Env>) => Effect.Effect; /** + * Runs an array-emitting channel and publishes each array element to a + * `PubSub`. + * + * **Details** + * + * Each element inside emitted non-empty arrays is published as an individual + * PubSub message. Use `options.shutdownOnEnd` to shut down the PubSub when + * channel execution ends. + * + * @category destructors * @since 4.0.0 - * @category Destructors */ (self: Channel, OutErr, OutDone, unknown, unknown, unknown, Env>, pubsub: PubSub.PubSub, options?: { readonly shutdownOnEnd?: boolean | undefined; } | undefined): Effect.Effect; }; /** - * Converts a channel to a PubSub for concurrent consumption. + * Converts a channel to a scoped `PubSub` of `Take` values. * + * **Details** + * + * Emitted non-empty arrays are published as output `Take` values. When the + * channel ends, its final `Exit` is published so subscribers can observe + * completion or failure. + * + * @category destructors * @since 4.0.0 - * @category Destructors */ export declare const toPubSubTake: { /** - * Converts a channel to a PubSub for concurrent consumption. + * Converts a channel to a scoped `PubSub` of `Take` values. + * + * **Details** + * + * Emitted non-empty arrays are published as output `Take` values. When the + * channel ends, its final `Exit` is published so subscribers can observe + * completion or failure. * + * @category destructors * @since 4.0.0 - * @category Destructors */ (options: { readonly capacity: "unbounded"; @@ -5440,10 +7212,16 @@ export declare const toPubSubTake: { readonly replay?: number | undefined; }): (self: Channel, OutErr, OutDone, unknown, unknown, unknown, Env>) => Effect.Effect>, never, Env | Scope.Scope>; /** - * Converts a channel to a PubSub for concurrent consumption. + * Converts a channel to a scoped `PubSub` of `Take` values. + * + * **Details** + * + * Emitted non-empty arrays are published as output `Take` values. When the + * channel ends, its final `Exit` is published so subscribers can observe + * completion or failure. * + * @category destructors * @since 4.0.0 - * @category Destructors */ (self: Channel, OutErr, OutDone, unknown, unknown, unknown, Env>, options: { readonly capacity: "unbounded"; diff --git a/.opencode/node_modules/effect/dist/Channel.d.ts.map b/.opencode/node_modules/effect/dist/Channel.d.ts.map index e1ad47c7059d801efd896e510f41f2531cc370bf..4e3da23f386fd9e2c5ef06448b6ce06ad4fb3d05 100644 --- a/.opencode/node_modules/effect/dist/Channel.d.ts.map +++ b/.opencode/node_modules/effect/dist/Channel.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Channel.d.ts","sourceRoot":"","sources":["../src/Channel.ts"],"names":[],"mappings":"AAAA;;;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ACD;;;;;;;;;;;OAWG;IACH,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,EAC5B,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,qBAAqB,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,CAAC,EAClG,OAAO,EAAE;QACP,QAAQ,CAAC,QAAQ,EAAE,WAAW,CAAA;QAC9B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;KACrC,GAAG;QACF,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;QACzB,QAAQ,CAAC,QAAQ,CAAC,EAAE,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CAAA;QAClE,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;KACrC,GACA,MAAM,CAAC,MAAM,CACd,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,EAClD,KAAK,EACL,GAAG,GAAG,KAAK,CAAC,KAAK,CAClB,CAAA;CAiCF,CAAA"} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Channel.js b/.opencode/node_modules/effect/dist/Channel.js index 66affc37cbd16de5b2a3e3024b587b3153748b87..d569535e5bc217a94b9ff808048d446f43306ec5 100644 --- a/.opencode/node_modules/effect/dist/Channel.js +++ b/.opencode/node_modules/effect/dist/Channel.js @@ -1,58 +1,11 @@ /** - * The `Channel` module provides a powerful abstraction for bi-directional communication - * and streaming operations. A `Channel` is a nexus of I/O operations that supports both - * reading and writing, forming the foundation for Effect's Stream and Sink abstractions. + * Provides low-level building blocks for streaming data through Effect. * - * ## What is a Channel? - * - * A `Channel` represents: - * - **OutElem**: The type of elements the channel outputs - * - **OutErr**: The type of errors the channel can produce - * - **OutDone**: The type of the final value when the channel completes - * - **InElem**: The type of elements the channel reads - * - **InErr**: The type of errors the channel can receive - * - **InDone**: The type of the final value from upstream - * - **Env**: The environment/context required by the channel - * - * ## Key Features - * - * - **Bi-directional**: Channels can both read and write - * - **Composable**: Channels can be piped, sequenced, and concatenated - * - **Resource-safe**: Automatic cleanup and resource management - * - **Error-handling**: Built-in error propagation and handling - * - **Concurrent**: Support for concurrent operations - * - * ## Composition Patterns - * - * 1. **Piping**: Connect channels where output of one becomes input of another - * 2. **Sequencing**: Use the result of one channel to create another - * 3. **Concatenating**: Combine multiple channels into a single channel - * - * @example - * ```ts - * import { Channel } from "effect" - * - * // Simple channel that outputs numbers - * const numberChannel = Channel.succeed(42) - * - * // Transform channel that doubles values - * const doubleChannel = Channel.map(numberChannel, (n) => n * 2) - * - * // Running the channel would output: 84 - * ``` - * - * @example - * ```ts - * import { Channel } from "effect" - * - * // Channel from an array of values - * const arrayChannel = Channel.fromArray([1, 2, 3, 4, 5]) - * - * // Transform the channel by mapping over values - * const transformedChannel = Channel.map(arrayChannel, (n) => n * 2) - * - * // This channel will output: 2, 4, 6, 8, 10 - * ``` + * A `Channel` can read input elements, write output elements, fail with a typed + * error, and finish with a typed result while managing resources safely. + * Streams and sinks are built on channels, so most application code uses those + * higher-level modules instead. This module is useful when implementing stream + * operators or specialized streaming workflows. * * @since 2.0.0 */ @@ -85,14 +38,18 @@ import * as String from "./String.js"; import * as Take from "./Take.js"; import { ParentSpan } from "./Tracer.js"; /** + * Runtime identifier stored on `Channel` values and used by `isChannel` to + * recognize them. + * + * @category type IDs * @since 4.0.0 - * @category Type Identifiers */ export const TypeId = "~effect/Channel"; /** - * Tests if a value is a `Channel`. + * Checks whether a value is a `Channel`. + * + * **Example** (Checking for channels) * - * @example * ```ts * import { Channel } from "effect" * @@ -123,7 +80,8 @@ const ChannelProto = { /** * Creates a `Channel` from a transformation function that operates on upstream pulls. * - * @example + * **Example** (Creating channels from transforms) + * * ```ts * import { Channel, Effect } from "effect" * @@ -143,7 +101,8 @@ export const fromTransform = transform => { /** * Transforms a Channel by applying a function to its Pull implementation. * - * @example + * **Example** (Transforming pull behavior) + * * ```ts * import { Channel, Effect } from "effect" * @@ -167,7 +126,8 @@ export const transformPull = (self, f) => fromTransform((upstream, scope) => Eff /** * Creates a `Channel` from an `Effect` that produces a `Pull`. * - * @example + * **Example** (Creating channels from pulls) + * * ```ts * import { Channel, Effect } from "effect" * @@ -185,8 +145,15 @@ export const fromPull = effect => fromTransform((_, __) => effect); * pulls, but also provides a forked scope that closes when the resulting * Channel completes. * - * @since 4.0.0 + * **When to use** + * + * Use when building channels that require scoped resource lifecycle management, + * providing both the channel scope and a forked scope that automatically closes + * when the channel completes. + * + * @see {@link fromTransform} for a simpler transformation without a forked scope * @category constructors + * @since 4.0.0 */ export const fromTransformBracket = f => fromTransform(Effect.fnUntraced(function* (upstream, scope) { const closableScope = Scope.forkUnsafe(scope); @@ -197,7 +164,8 @@ export const fromTransformBracket = f => fromTransform(Effect.fnUntraced(functio /** * Converts a `Channel` back to its underlying transformation function. * - * @example + * **Example** (Extracting channel transforms) + * * ```ts * import { Channel } from "effect" * @@ -213,7 +181,8 @@ export const toTransform = channel => channel.transform; /** * The default chunk size used by channels for batching operations. * - * @example + * **Example** (Reading the default chunk size) + * * ```ts * import { Channel } from "effect" * @@ -221,7 +190,7 @@ export const toTransform = channel => channel.transform; * ``` * * @category constants - * @since 2.0.0 + * @since 4.0.0 */ export const DefaultChunkSize = 4096; const asyncQueue = (scope, f, options) => Queue.make({ @@ -231,7 +200,8 @@ const asyncQueue = (scope, f, options) => Queue.make({ /** * Creates a `Channel` that interacts with a callback function using a queue. * - * @example + * **Example** (Creating channels from callbacks) + * * ```ts * import { Channel, Effect, Queue } from "effect" * @@ -245,13 +215,14 @@ const asyncQueue = (scope, f, options) => Queue.make({ * ``` * * @category constructors - * @since 2.0.0 + * @since 4.0.0 */ export const callback = (f, options) => fromTransform((_, scope) => Effect.map(asyncQueue(scope, f, options), Queue.take)); /** * Creates a `Channel` that interacts with a callback function using a queue, emitting arrays. * - * @example + * **Example** (Creating array channels from callbacks) + * * ```ts * import { Channel, Effect, Queue } from "effect" * @@ -269,7 +240,8 @@ export const callbackArray = (f, options) => fromTransform((_, scope) => Effect. /** * Creates a `Channel` that lazily evaluates to another channel. * - * @example + * **Example** (Suspending channel creation) + * * ```ts * import { Channel } from "effect" * @@ -282,9 +254,17 @@ export const callbackArray = (f, options) => fromTransform((_, scope) => Effect. */ export const suspend = evaluate => fromTransform((upstream, scope) => Effect.suspend(() => toTransform(evaluate())(upstream, scope))); /** - * Creates a `Channel` with resource management using acquire-use-release pattern. + * Acquires a resource, uses it to build a `Channel`, and guarantees that + * `release` runs with the channel's `Exit` when the channel completes, fails, + * or is interrupted. + * + * **Details** + * + * Acquisition is uninterruptible. If acquisition fails, `use` is not run and + * `release` is not registered. + * + * **Example** (Managing resources with acquire-use-release) * - * @example * ```ts * import { Channel, Effect } from "effect" * @@ -306,9 +286,17 @@ export const acquireUseRelease = (acquire, use, release) => fromTransformBracket return yield* toTransform(use(value))(upstream, scope); })); /** - * Creates a `Channel` with resource management using acquire-release pattern. + * Acquires a resource, emits the acquired value as a single channel element, + * and registers `release` in the channel scope. + * + * **Details** + * + * The release action runs when the channel scope closes and receives the scope + * exit. If acquisition fails, no element is emitted and `release` is not + * registered. + * + * **Example** (Managing resources with acquire-release) * - * @example * ```ts * import { Channel, Effect } from "effect" * @@ -319,13 +307,14 @@ export const acquireUseRelease = (acquire, use, release) => fromTransformBracket * ``` * * @category constructors - * @since 2.0.0 + * @since 4.0.0 */ export const acquireRelease = /*#__PURE__*/dual(2, (self, release) => unwrap(Effect.map(Effect.acquireRelease(self, release), succeed))); /** * Creates a `Channel` from an iterator. * - * @example + * **Example** (Creating channels from iterators) + * * ```ts * import { Channel } from "effect" * @@ -335,7 +324,7 @@ export const acquireRelease = /*#__PURE__*/dual(2, (self, release) => unwrap(Eff * ``` * * @category constructors - * @since 2.0.0 + * @since 4.0.0 */ export const fromIterator = iterator => fromPull(Effect.sync(() => { const iter = iterator(); @@ -347,7 +336,8 @@ export const fromIterator = iterator => fromPull(Effect.sync(() => { /** * Creates a `Channel` that emits all elements from an array. * - * @example + * **Example** (Creating channels from arrays) + * * ```ts * import { Channel } from "effect" * @@ -356,7 +346,7 @@ export const fromIterator = iterator => fromPull(Effect.sync(() => { * ``` * * @category constructors - * @since 2.0.0 + * @since 4.0.0 */ export const fromArray = array => fromPull(Effect.sync(() => { let index = 0; @@ -365,7 +355,8 @@ export const fromArray = array => fromPull(Effect.sync(() => { /** * Creates a `Channel` that emits all elements from a chunk. * - * @example + * **Example** (Creating channels from chunks) + * * ```ts * import { Channel, Chunk } from "effect" * @@ -375,13 +366,14 @@ export const fromArray = array => fromPull(Effect.sync(() => { * ``` * * @category constructors - * @since 2.0.0 + * @since 4.0.0 */ export const fromChunk = chunk => fromArray(Chunk.toReadonlyArray(chunk)); /** * Creates a `Channel` from an iterator that emits arrays of elements. * - * @example + * **Example** (Batching iterator output) + * * ```ts * import { Channel } from "effect" * @@ -402,7 +394,8 @@ export const fromChunk = chunk => fromArray(Chunk.toReadonlyArray(chunk)); * // This will emit arrays: [0, 1], [2], then complete with "finished" * ``` * - * @example + * **Example** (Batching generator output) + * * ```ts * import { Channel } from "effect" * @@ -419,8 +412,8 @@ export const fromChunk = chunk => fromArray(Chunk.toReadonlyArray(chunk)); * // Emits: [0, 1, 1], [2, 3], then completes * ``` * - * @since 2.0.0 * @category constructors + * @since 4.0.0 */ export const fromIteratorArray = (iterator, chunkSize = DefaultChunkSize) => fromPull(Effect.sync(() => { const iter = iterator(); @@ -445,7 +438,8 @@ export const fromIteratorArray = (iterator, chunkSize = DefaultChunkSize) => fro /** * Creates a `Channel` that emits all elements from an iterable. * - * @example + * **Example** (Creating channels from iterables) + * * ```ts * import { Channel } from "effect" * @@ -455,13 +449,14 @@ export const fromIteratorArray = (iterator, chunkSize = DefaultChunkSize) => fro * ``` * * @category constructors - * @since 2.0.0 + * @since 4.0.0 */ export const fromIterable = iterable => fromIterator(() => iterable[Symbol.iterator]()); /** * Creates a `Channel` that emits arrays of elements from an iterable. * - * @example + * **Example** (Batching iterable output) + * * ```ts * import { Channel } from "effect" * @@ -471,13 +466,14 @@ export const fromIterable = iterable => fromIterator(() => iterable[Symbol.itera * ``` * * @category constructors - * @since 2.0.0 + * @since 4.0.0 */ export const fromIterableArray = (iterable, chunkSize = DefaultChunkSize) => fromIteratorArray(() => iterable[Symbol.iterator](), chunkSize); /** * Creates a `Channel` that emits a single value and then ends. * - * @example + * **Example** (Creating channels that succeed) + * * ```ts * import { Channel } from "effect" * @@ -492,7 +488,8 @@ export const succeed = value => fromEffect(Effect.succeed(value)); /** * Creates a `Channel` that immediately ends with the specified value. * - * @example + * **Example** (Ending with a value) + * * ```ts * import { Channel } from "effect" * @@ -514,12 +511,18 @@ export const endSync = evaluate => fromPull(Effect.sync(() => Cause.done(evaluat /** * Creates a `Channel` that emits a single value computed by a lazy evaluation. * - * @example + * **Example** (Computing values lazily) + * * ```ts * import { Channel } from "effect" * - * const channel = Channel.sync(() => Math.random()) - * // Emits a random number computed when the channel runs + * let requests = 0 + * + * const channel = Channel.sync(() => { + * requests += 1 + * return `request-${requests}` + * }) + * // Emits "request-1" when the channel runs for the first time * ``` * * @category constructors @@ -527,9 +530,10 @@ export const endSync = evaluate => fromPull(Effect.sync(() => Cause.done(evaluat */ export const sync = evaluate => fromEffect(Effect.sync(evaluate)); /** - * Represents an Channel that emits no elements + * Represents a `Channel` that emits no elements. + * + * **Example** (Using empty channels) * - * @example * ```ts * import { Channel } from "effect" * @@ -545,14 +549,15 @@ export const sync = evaluate => fromEffect(Effect.sync(evaluate)); * shouldEmit ? Channel.succeed("data") : Channel.empty * ``` * - * @since 2.0.0 * @category constructors + * @since 4.0.0 */ export const empty = /*#__PURE__*/fromPull(/*#__PURE__*/Effect.succeed(/*#__PURE__*/Cause.done())); /** - * Represents an Channel that never completes + * Represents a `Channel` that never completes. + * + * **Example** (Using non-terminating channels) * - * @example * ```ts * import { Channel } from "effect" * @@ -570,14 +575,15 @@ export const empty = /*#__PURE__*/fromPull(/*#__PURE__*/Effect.succeed(/*#__PURE * shouldComplete ? Channel.succeed("done") : Channel.never * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export const never = /*#__PURE__*/fromPull(/*#__PURE__*/Effect.succeed(Effect.never)); /** * Constructs a channel that fails immediately with the specified error. * - * @example + * **Example** (Failing with an error) + * * ```ts * import { Channel } from "effect" * @@ -600,15 +606,21 @@ export const never = /*#__PURE__*/fromPull(/*#__PURE__*/Effect.succeed(Effect.ne * ) * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export const fail = error => fromPull(Effect.succeed(Effect.fail(error))); /** * Constructs a channel that fails immediately with the specified lazily * evaluated error. * - * @example + * **When to use** + * + * Use when the error value should be computed each time the channel runs instead + * of when the channel is constructed. + * + * **Example** (Failing with a lazy error) + * * ```ts * import { Channel } from "effect" * @@ -619,25 +631,33 @@ export const fail = error => fromPull(Effect.succeed(Effect.fail(error))); * }) * * // The error computation is deferred until the channel runs - * const conditionalError = Channel.failSync(() => - * Math.random() > 0.5 ? "Error A" : "Error B" - * ) + * let attempts = 0 + * const conditionalError = Channel.failSync(() => { + * attempts += 1 + * return `Error after attempt ${attempts}` + * }) * * // Use with expensive error construction * const expensiveError = Channel.failSync(() => { - * const timestamp = Date.now() - * return new Error(`Failed at: ${timestamp}`) + * const requestId = "request-123" + * return new Error(`Failed while processing ${requestId}`) * }) * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export const failSync = evaluate => fromPull(Effect.failSync(evaluate)); /** * Constructs a channel that fails immediately with the specified `Cause`. * - * @example + * **When to use** + * + * Use when the channel failure must preserve a full `Cause`, such as defects, + * interruptions, or combined failures. + * + * **Example** (Failing with causes) + * * ```ts * import { Cause, Channel } from "effect" * @@ -654,39 +674,42 @@ export const failSync = evaluate => fromPull(Effect.failSync(evaluate)); * const simpleFail = Channel.failCause(failCause) * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export const failCause = cause => fromPull(Effect.failCause(cause)); /** * Constructs a channel that fails immediately with the specified lazily * evaluated `Cause`. * - * @example + * **Example** (Failing with lazy causes) + * * ```ts * import { Cause, Channel } from "effect" * * // Create a channel that fails with a lazily computed cause + * let attempts = 0 * const failedChannel = Channel.failCauseSync(() => { - * const errorType = Math.random() > 0.5 ? "A" : "B" - * return Cause.fail(`Runtime error ${errorType}`) + * attempts += 1 + * return Cause.fail(`Runtime error after attempt ${attempts}`) * }) * * // Create a channel with die cause computation * const dieCauseChannel = Channel.failCauseSync(() => { - * const timestamp = Date.now() - * return Cause.die(`Error at ${timestamp}`) + * const operation = "load-profile" + * return Cause.die(`Unexpected defect during ${operation}`) * }) * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export const failCauseSync = evaluate => fromPull(Effect.failCauseSync(evaluate)); /** * Constructs a channel that fails immediately with the specified defect. * - * @example + * **Example** (Dying with defects) + * * ```ts * import { Channel } from "effect" * @@ -703,14 +726,15 @@ export const failCauseSync = evaluate => fromPull(Effect.failCauseSync(evaluate) * }) * ``` * - * @since 2.0.0 * @category constructors + * @since 4.0.0 */ export const die = defect => failCause(Cause.die(defect)); /** - * Use an effect to write a single value to the channel. + * Uses an effect to write a single value to the channel. + * + * **Example** (Creating channels from effects) * - * @example * ```ts * import { Channel, Data, Effect } from "effect" * @@ -740,8 +764,8 @@ export const die = defect => failCause(Cause.die(defect)); * ) * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export const fromEffect = effect => fromPull(Effect.sync(() => { let done = false; @@ -752,26 +776,42 @@ export const fromEffect = effect => fromPull(Effect.sync(() => { }); })); /** - * @since 4.0.0 + * Creates a channel that evaluates an effect and uses its successful value as + * the channel's done value without emitting any output elements. + * + * **Details** + * + * If the effect fails, the channel fails with the effect's error. + * * @category constructors + * @since 4.0.0 */ export const fromEffectDone = effect => fromPull(Effect.succeed(Effect.flatMap(effect, Cause.done))); /** - * Use an effect and discard its result. + * Uses an effect and discards its result. * - * @since 4.0.0 * @category constructors + * @since 4.0.0 */ export const fromEffectDrain = effect => fromPull(Effect.flatMap(effect, () => Cause.done())); /** - * @since 4.0.0 + * Creates a channel from an effect that produces a `Take`. + * + * **Details** + * + * A successful `Take` emits a non-empty array of output elements. A failed + * `Take` fails the channel. A done `Take` completes the channel with its done + * value. + * * @category constructors + * @since 4.0.0 */ export const fromEffectTake = effect => fromPull(Effect.succeed(Effect.flatMap(effect, Take.toPull))); /** - * Create a channel from a queue + * Creates a channel from a queue. + * + * **Example** (Creating channels from queues) * - * @example * ```ts * import { Channel, Data, Effect, Queue } from "effect" * @@ -803,14 +843,15 @@ export const fromEffectTake = effect => fromPull(Effect.succeed(Effect.flatMap(e * }) * ``` * - * @since 4.0.0 * @category constructors + * @since 2.0.0 */ export const fromQueue = queue => fromPull(Effect.succeed(Queue.take(queue))); /** - * Create a channel from a queue that emits arrays of elements + * Creates a channel from a queue that emits arrays of elements. + * + * **Example** (Creating batched channels from queues) * - * @example * ```ts * import { Channel, Data, Effect, Queue } from "effect" * @@ -846,19 +887,23 @@ export const fromQueue = queue => fromPull(Effect.succeed(Queue.take(queue))); * }) * ``` * - * @since 4.0.0 * @category constructors + * @since 4.0.0 */ export const fromQueueArray = queue => fromPull(Effect.succeed(Queue.takeAll(queue))); /** + * Creates a channel that forwards upstream input elements, input errors, and + * the upstream done value unchanged. + * + * @category constructors * @since 2.0.0 - * @category Constructors */ export const identity = () => fromTransform((upstream, _scope) => Effect.succeed(upstream)); /** - * Create a channel from a PubSub subscription + * Creates a channel from a PubSub subscription. + * + * **Example** (Creating channels from subscriptions) * - * @example * ```ts * import { Channel, Data, Effect, PubSub } from "effect" * @@ -895,21 +940,21 @@ export const identity = () => fromTransform((upstream, _scope) => Effect.succeed * }) * ``` * - * @since 4.0.0 * @category constructors + * @since 4.0.0 */ export const fromSubscription = subscription => fromPull(Effect.succeed(Effect.onInterrupt(PubSub.take(subscription), () => Cause.done()))); /** - * Create a channel from a PubSub subscription that outputs arrays of values. + * Creates a channel from a PubSub subscription that outputs arrays of values. + * + * **Details** * * This constructor creates a channel that reads from a PubSub subscription and outputs * arrays of values in chunks. It's useful when you want to process multiple values at once * for better performance. * - * @param subscription - The PubSub subscription to read from - * @param chunkSize - The maximum number of elements to read in each chunk (default: 4096) + * **Example** (Batching subscription values) * - * @example * ```ts * import { Channel, Data, Effect, PubSub } from "effect" * @@ -935,7 +980,8 @@ export const fromSubscription = subscription => fromPull(Effect.succeed(Effect.o * }) * ``` * - * @example + * **Example** (Processing subscription values in batches) + * * ```ts * import { Channel, Data, Effect, PubSub } from "effect" * @@ -960,13 +1006,10 @@ export const fromSubscription = subscription => fromPull(Effect.succeed(Effect.o * }) * ``` * - * @example - * ```ts - * import { Channel, Data, Effect, PubSub } from "effect" + * **Example** (Aggregating subscription metrics) * - * class MetricsError extends Data.TaggedError("MetricsError")<{ - * readonly cause: string - * }> {} + * ```ts + * import { Channel, Effect, PubSub } from "effect" * * const metricsAggregator = Effect.gen(function*() { * const metricsPubSub = yield* PubSub.bounded< @@ -991,7 +1034,8 @@ export const fromSubscription = subscription => fromPull(Effect.succeed(Effect.o * average: avg, * min, * max, - * timestamp: Date.now() + * firstTimestamp: Math.min(...metrics.map((m) => m.timestamp)), + * lastTimestamp: Math.max(...metrics.map((m) => m.timestamp)) * } * }) * @@ -999,20 +1043,21 @@ export const fromSubscription = subscription => fromPull(Effect.succeed(Effect.o * }) * ``` * - * @since 4.0.0 * @category constructors + * @since 4.0.0 */ export const fromSubscriptionArray = subscription => fromPull(Effect.succeed(Effect.onInterrupt(PubSub.takeAll(subscription), () => Cause.done()))); /** - * Create a channel from a PubSub that outputs individual values. + * Creates a channel from a PubSub that outputs individual values. + * + * **Details** * * This constructor creates a channel that reads from a PubSub by automatically * subscribing to it. The channel outputs individual values as they are published * to the PubSub, making it ideal for real-time streaming scenarios. * - * @param pubsub - The PubSub to read from + * **Example** (Creating channels from PubSubs) * - * @example * ```ts * import { Channel, Data, Effect, PubSub } from "effect" * @@ -1036,13 +1081,10 @@ export const fromSubscriptionArray = subscription => fromPull(Effect.succeed(Eff * }) * ``` * - * @example - * ```ts - * import { Channel, Data, Effect, PubSub } from "effect" + * **Example** (Streaming PubSub notifications) * - * class NotificationError extends Data.TaggedError("NotificationError")<{ - * readonly reason: string - * }> {} + * ```ts + * import { Channel, Effect, PubSub } from "effect" * * const notificationService = Effect.gen(function*() { * const notificationPubSub = yield* PubSub.bounded(50) @@ -1051,24 +1093,21 @@ export const fromSubscriptionArray = subscription => fromPull(Effect.succeed(Eff * const notificationChannel = Channel.fromPubSub(notificationPubSub) * * // Transform notifications to add timestamps + * const receivedAt = "2024-01-01T00:00:00.000Z" * const timestampedChannel = Channel.map(notificationChannel, (message) => ({ * message, - * timestamp: new Date().toISOString(), - * id: Math.random().toString(36).substr(2, 9) + * receivedAt, + * id: `notification:${message}` * })) * * return timestampedChannel * }) * ``` * - * @example - * ```ts - * import { Channel, Data, Effect, PubSub } from "effect" + * **Example** (Processing PubSub events) * - * class EventProcessingError extends Data.TaggedError("EventProcessingError")<{ - * readonly eventType: string - * readonly cause: string - * }> {} + * ```ts + * import { Channel, Effect, PubSub } from "effect" * * interface DomainEvent { * readonly type: string @@ -1088,7 +1127,7 @@ export const fromSubscriptionArray = subscription => fromPull(Effect.succeed(Eff * return { * ...event, * processed: true, - * processedAt: Date.now() + * processedAt: event.timestamp + 1 * } * } * return event @@ -1098,21 +1137,21 @@ export const fromSubscriptionArray = subscription => fromPull(Effect.succeed(Eff * }) * ``` * - * @since 4.0.0 * @category constructors + * @since 2.0.0 */ export const fromPubSub = pubsub => unwrap(Effect.map(PubSub.subscribe(pubsub), fromSubscription)); /** - * Create a channel from a PubSub that outputs arrays of values. + * Creates a channel from a PubSub that outputs arrays of values. + * + * **Details** * * This constructor creates a channel that reads from a PubSub by automatically * subscribing to it and collecting values into arrays. The channel outputs * arrays of values in chunks, making it ideal for batch processing scenarios. * - * @param pubsub - The PubSub to read from - * @param chunkSize - The maximum number of elements to collect in each array (default: 4096) + * **Example** (Batching PubSub values) * - * @example * ```ts * import { Channel, Data, Effect, PubSub } from "effect" * @@ -1137,20 +1176,17 @@ export const fromPubSub = pubsub => unwrap(Effect.map(PubSub.subscribe(pubsub), * }) * ``` * - * @example - * ```ts - * import { Channel, Data, Effect, PubSub } from "effect" + * **Example** (Processing PubSub orders in batches) * - * class OrderProcessingError extends Data.TaggedError("OrderProcessingError")<{ - * readonly orderId: string - * readonly reason: string - * }> {} + * ```ts + * import { Channel, Effect, PubSub } from "effect" * * interface Order { * readonly id: string * readonly customerId: string * readonly items: ReadonlyArray * readonly total: number + * readonly submittedAt: number * } * * const orderBatchProcessor = Effect.gen(function*() { @@ -1170,7 +1206,7 @@ export const fromPubSub = pubsub => unwrap(Effect.map(PubSub.subscribe(pubsub), * batchSize: orderBatch.length, * totalRevenue, * uniqueCustomers: customerCount, - * processedAt: Date.now(), + * firstSubmittedAt: Math.min(...orderBatch.map((order) => order.submittedAt)), * orders: orderBatch * } * }) @@ -1179,14 +1215,10 @@ export const fromPubSub = pubsub => unwrap(Effect.map(PubSub.subscribe(pubsub), * }) * ``` * - * @example - * ```ts - * import { Channel, Data, Effect, PubSub } from "effect" + * **Example** (Processing PubSub logs in batches) * - * class LogProcessingError extends Data.TaggedError("LogProcessingError")<{ - * readonly batchId: string - * readonly cause: string - * }> {} + * ```ts + * import { Channel, Effect, PubSub } from "effect" * * interface LogEntry { * readonly timestamp: number @@ -1213,7 +1245,7 @@ export const fromPubSub = pubsub => unwrap(Effect.map(PubSub.subscribe(pubsub), * } * * return { - * batchId: Math.random().toString(36).substr(2, 9), + * batchId: `${timeRange.start}-${timeRange.end}`, * totalEntries: logBatch.length, * errorCount, * warnCount, @@ -1227,27 +1259,41 @@ export const fromPubSub = pubsub => unwrap(Effect.map(PubSub.subscribe(pubsub), * }) * ``` * - * @since 4.0.0 * @category constructors + * @since 4.0.0 */ export const fromPubSubArray = pubsub => unwrap(Effect.map(PubSub.subscribe(pubsub), fromSubscriptionArray)); /** - * @since 4.0.0 + * Subscribes to a `PubSub` of `Take` values and exposes them as a channel. + * + * **Details** + * + * Output `Take` values are emitted as non-empty arrays. Failed `Take` values + * fail the channel. Done `Take` values complete the channel. + * * @category constructors + * @since 4.0.0 */ export const fromPubSubTake = pubsub => unwrap(Effect.map(PubSub.subscribe(pubsub), sub => fromEffectTake(PubSub.take(sub)))); /** * Creates a Channel from a Schedule. * - * @since 4.0.0 * @category constructors + * @since 4.0.0 */ export const fromSchedule = schedule => fromPull(Effect.map(Schedule.toStepWithSleep(schedule), step => step(void 0))); /** - * Creates a Channel from a AsyncIterable. + * Creates a channel that pulls values from an `AsyncIterable`. + * + * **Details** + * + * Each yielded value is emitted as an output element. The iterator's return + * value becomes the channel's done value. Thrown or rejected iterator errors + * are converted with `onError`. If the channel scope closes early and the + * iterator has a `return` method, that method is called. * - * @since 4.0.0 * @category constructors + * @since 4.0.0 */ export const fromAsyncIterable = (iterable, onError) => fromTransform(Effect.fnUntraced(function* (_, scope) { const iter = iterable[Symbol.asyncIterator](); @@ -1260,16 +1306,24 @@ export const fromAsyncIterable = (iterable, onError) => fromTransform(Effect.fnU }), result => result.done ? Cause.done(result.value) : Effect.succeed(result.value)); })); /** - * Creates a Channel from a AsyncIterable that emits arrays of elements. + * Creates a channel from an `AsyncIterable`, emitting each yielded value as a + * single-element non-empty array. + * + * **Details** + * + * The iterator's return value becomes the channel's done value. Thrown or + * rejected iterator errors are converted with `onError`. If the channel scope + * closes early and the iterator has a `return` method, that method is called. * - * @since 4.0.0 * @category constructors + * @since 4.0.0 */ export const fromAsyncIterableArray = (iterable, onError) => map(fromAsyncIterable(iterable, onError), Arr.of); /** * Maps the output of this channel using the specified function. * - * @example + * **Example** (Mapping channel output) + * * ```ts * import { Channel, Data } from "effect" * @@ -1301,8 +1355,8 @@ export const fromAsyncIterableArray = (iterable, onError) => map(fromAsyncIterab * })) * ``` * + * @category sequencing * @since 2.0.0 - * @category Sequencing */ export const map = /*#__PURE__*/dual(2, (self, f) => transformPull(self, pull => Effect.sync(() => { let i = 0; @@ -1311,26 +1365,41 @@ export const map = /*#__PURE__*/dual(2, (self, f) => transformPull(self, pull => /** * Maps the done value of this channel using the specified function. * - * @since 2.0.0 - * @category Sequencing + * @category sequencing + * @since 4.0.0 */ export const mapDone = /*#__PURE__*/dual(2, (self, f) => mapDoneEffect(self, o => Effect.succeed(f(o)))); /** * Maps the done value of this channel using the specified effectful function. * - * @since 2.0.0 - * @category Sequencing + * **When to use** + * + * Use when the terminal done value transformation needs services or can fail, + * while emitted elements should pass through unchanged. + * + * @category sequencing + * @since 4.0.0 */ export const mapDoneEffect = /*#__PURE__*/dual(2, (self, f) => transformPull(self, pull => Effect.succeed(Pull.catchDone(pull, done => Effect.flatMap(f(done), Cause.done))))); const concurrencyIsSequential = concurrency => concurrency === undefined || concurrency !== "unbounded" && concurrency <= 1; /** - * Returns a new channel, which sequentially combines this channel, together - * with the provided factory function, which creates a second channel based on - * the output values of this channel. The result is a channel that will first - * perform the functions of this channel, before performing the functions of - * the created channel (including yielding its terminal value). + * Maps each output element with an effectful function, preserving the source + * channel's done value. + * + * **When to use** + * + * Use when transforming each channel output needs an Effect, service + * dependency, failure channel, or configured concurrency. + * + * **Details** + * + * The mapping function receives the output element and its zero-based index. + * By default elements are mapped sequentially. Use `options.concurrency` to + * map multiple elements concurrently, and `options.unordered` to allow + * concurrently mapped outputs to be emitted as soon as they complete. + * + * **Example** (Mapping channel output with effects) * - * @example * ```ts * import { Channel, Data, Effect } from "effect" * @@ -1367,8 +1436,8 @@ const concurrencyIsSequential = concurrency => concurrency === undefined || conc * ) * ``` * - * @since 2.0.0 * @category sequencing + * @since 2.0.0 */ export const mapEffect = /*#__PURE__*/dual(args => isChannel(args[0]), (self, f, options) => concurrencyIsSequential(options?.concurrency) ? mapEffectSequential(self, f) : mapEffectConcurrent(self, f, options)); const mapEffectSequential = (self, f) => fromTransform((upstream, scope) => { @@ -1427,16 +1496,16 @@ const mapEffectConcurrent = (self, f, options) => fromTransformBracket(Effect.fn * Returns a new channel which is the same as this one but applies the given * function to the input channel’s input elements. * - * @since 2.0.0 * @category sequencing + * @since 2.0.0 */ export const mapInput = /*#__PURE__*/dual(2, (self, f) => fromTransform((upstream, scope) => toTransform(self)(Effect.flatMap(upstream, el => f(el)), scope))); /** * Returns a new channel which is the same as this one but applies the given * function to the input errors. * - * @since 2.0.0 * @category sequencing + * @since 2.0.0 */ export const mapInputError = /*#__PURE__*/dual(2, (self, f) => fromTransform((upstream, scope) => toTransform(self)(Effect.catch(upstream, err => { if (Cause.isDone(err)) return Effect.fail(err); @@ -1446,11 +1515,14 @@ export const mapInputError = /*#__PURE__*/dual(2, (self, f) => fromTransform((up * Applies a side effect function to each output element of the channel, * returning a new channel that emits the same elements. * + * **Details** + * * The `tap` function allows you to perform side effects (like logging or * debugging) on each element emitted by a channel without modifying the * elements themselves. * - * @example + * **Example** (Tapping channel output) + * * ```ts * import { Channel, Console, Data } from "effect" * @@ -1471,18 +1543,23 @@ export const mapInputError = /*#__PURE__*/dual(2, (self, f) => fromTransform((up * // Outputs: 1, 2, 3 (while logging each) * ``` * - * @since 4.0.0 * @category sequencing + * @since 4.0.0 */ export const tap = /*#__PURE__*/dual(args => isChannel(args[0]), (self, f, options) => mapEffect(self, a => Effect.as(f(a), a), options)); /** - * Returns a new channel, which sequentially combines this channel, together - * with the provided factory function, which creates a second channel based on - * the output values of this channel. The result is a channel that will first - * perform the functions of this channel, before performing the functions of - * the created channel (including yielding its terminal value). + * Maps each output element to a channel and flattens the child channel + * outputs. + * + * **Details** + * + * The source channel's done value is preserved. Child channel done values are + * used only for child-channel completion. By default child channels are run + * sequentially. Use `options.concurrency` and `options.bufferSize` to run child + * channels concurrently. + * + * **Example** (FlatMapping channel output) * - * @example * ```ts * import { Channel, Data } from "effect" * @@ -1504,8 +1581,8 @@ export const tap = /*#__PURE__*/dual(args => isChannel(args[0]), (self, f, optio * // Outputs: "item-1-0", "item-2-0", "item-2-1", "item-3-0", "item-3-1", "item-3-2" * ``` * - * @since 2.0.0 * @category sequencing + * @since 2.0.0 */ export const flatMap = /*#__PURE__*/dual(args => isChannel(args[0]), (self, f, options) => concurrencyIsSequential(options?.concurrency) ? flatMapSequential(self, f) : flatMapConcurrent(self, f, options)); const flatMapSequential = (self, f) => fromTransform((upstream, scope) => Effect.map(toTransform(self)(upstream, scope), pull => { @@ -1535,7 +1612,8 @@ const flatMapConcurrent = (self, f, options) => self.pipe(map(f), mergeAll(optio * Concatenates this channel with another channel created from the terminal value * of this channel. The new channel is created using the provided function. * - * @example + * **Example** (Concatenating with completion values) + * * ```ts * import { Channel, Data } from "effect" * @@ -1552,8 +1630,8 @@ const flatMapConcurrent = (self, f, options) => self.pipe(map(f), mergeAll(optio * // Outputs: 1, 2, 3, then "Completed processing" * ``` * - * @since 2.0.0 * @category sequencing + * @since 4.0.0 */ export const concatWith = /*#__PURE__*/dual(2, (self, f) => fromTransform((upstream, scope) => Effect.sync(() => { let currentPull; @@ -1573,7 +1651,8 @@ export const concatWith = /*#__PURE__*/dual(2, (self, f) => fromTransform((upstr * Concatenates this channel with another channel, so that the second channel * starts emitting values after the first channel has completed. * - * @example + * **Example** (Concatenating channels) + * * ```ts * import { Channel, Data } from "effect" * @@ -1591,19 +1670,26 @@ export const concatWith = /*#__PURE__*/dual(2, (self, f) => fromTransform((upstr * // Outputs: 1, 2, 3, "a", "b", "c" * ``` * - * @since 2.0.0 * @category sequencing + * @since 4.0.0 */ export const concat = /*#__PURE__*/dual(2, (self, that) => concatWith(self, _ => that)); /** - * Combines the elements from this channel and the specified channel by - * repeatedly applying the function `f` to extract an element using both sides - * and conceptually "offer" it to the destination channel. `f` can maintain - * some internal state to control the combining process, with the initial - * state being specified by `s`. + * Combines two channels with a stateful pull function. + * + * **When to use** + * + * Use to coordinate pulling from two channels when each output element depends + * on both sides and local state. + * + * **Details** + * + * The combining function receives the current state and pull functions for the + * left and right channels. It returns the next output element together with the + * next state. * - * @since 4.0.0 * @category sequencing + * @since 4.0.0 */ export const combine = /*#__PURE__*/dual(4, (self, that, s, f) => fromTransform(Effect.fnUntraced(function* (upstream, scope) { const leftPull = yield* toTransform(self)(upstream, scope); @@ -1618,8 +1704,17 @@ export const combine = /*#__PURE__*/dual(4, (self, that, s, f) => fromTransform( }); }))); /** - * @since 2.0.0 + * Runs a fallback channel if this channel completes without emitting any + * output elements. + * + * **Details** + * + * If the source emits at least one element, the source is used unchanged. If + * the source completes before emitting an element, the fallback function + * receives the source done value and returns the replacement channel. + * * @category sequencing + * @since 4.0.0 */ export const orElseIfEmpty = /*#__PURE__*/dual(2, (self, f) => fromTransform((upstream, scope) => Effect.sync(() => { let currentPull; @@ -1638,9 +1733,10 @@ export const orElseIfEmpty = /*#__PURE__*/dual(2, (self, f) => fromTransform((up return Effect.suspend(() => currentPull ?? makePull); }))); /** - * Flatten a channel of channels. + * Flattens a channel of channels. + * + * **Example** (Flattening nested channels) * - * @example * ```ts * import { Channel, Data } from "effect" * @@ -1661,14 +1757,15 @@ export const orElseIfEmpty = /*#__PURE__*/dual(2, (self, f) => fromTransform((up * // Outputs: 1, 2, 3, 4, 5, 6 * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export const flatten = channels => flatMap(channels, identity_); /** * Flattens a channel that outputs arrays into a channel that outputs individual elements. * - * @example + * **Example** (Flattening arrays of channel output) + * * ```ts * import { Channel, Data } from "effect" * @@ -1689,8 +1786,8 @@ export const flatten = channels => flatMap(channels, identity_); * // Outputs: 1, 2, 3, 4, 5, 6, 7, 8, 9 * ``` * + * @category transforming * @since 4.0.0 - * @category utils */ export const flattenArray = self => transformPull(self, pull => { let array; @@ -1721,15 +1818,24 @@ export const flattenArray = self => transformPull(self, pull => { return Effect.succeed(pump); }); /** + * Flattens a channel that emits `Take` values into a channel that emits the + * `Take` outputs directly. + * + * **Details** + * + * Output `Take` values are emitted as non-empty arrays. Failed `Take` values + * fail the returned channel. Done `Take` values complete the returned channel. + * + * @category transforming * @since 4.0.0 - * @category utils */ export const flattenTake = self => mapEffectSequential(self, Take.toPull); /** * Creates a new channel that consumes all output from the source channel * but emits nothing, preserving only the completion value. * - * @example + * **Example** (Draining channel output) + * * ```ts * import { Channel } from "effect" * @@ -1743,8 +1849,8 @@ export const flattenTake = self => mapEffectSequential(self, Take.toPull); * // Useful for consuming side effects without collecting output * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export const drain = self => transformPull(self, pull => Effect.succeed(Effect.forever(pull, { disableYield: true @@ -1752,8 +1858,8 @@ export const drain = self => transformPull(self, pull => Effect.succeed(Effect.f /** * Repeats this channel according to the provided schedule. * + * @category repetition * @since 4.0.0 - * @category utils */ export const repeat = /*#__PURE__*/dual(2, (self, schedule) => Schedule.toStepWithMetadata(typeof schedule === "function" ? schedule(identity_) : schedule).pipe(Effect.map(step => { let meta = Schedule.CurrentMetadata.defaultValue(); @@ -1766,13 +1872,23 @@ export const repeat = /*#__PURE__*/dual(2, (self, schedule) => Schedule.toStepWi /** * Repeats this channel forever. * + * @category repetition * @since 4.0.0 - * @category utils */ export const forever = self => concatWith(self, () => forever(self)); /** + * Runs a schedule step for each output element while preserving the emitted + * elements. + * + * **Details** + * + * The schedule receives each output element as input. Schedule delays are + * applied between emitted elements. If the schedule fails, the returned channel + * fails. If the schedule finishes, the returned channel completes with the + * schedule output. + * + * @category sequencing * @since 4.0.0 - * @category utils */ export const schedule = /*#__PURE__*/dual(2, (self, schedule) => transformPull(self, (pull, _scope) => Effect.map(Schedule.toStepWithSleep(schedule), step => { const pullWithStep = Effect.tap(pull, step); @@ -1782,7 +1898,8 @@ export const schedule = /*#__PURE__*/dual(2, (self, schedule) => transformPull(s * Filters the output elements of a channel using a predicate function. * Elements that don't match the predicate are discarded. * - * @example + * **Example** (Filtering channel output) + * * ```ts * import { Channel } from "effect" * @@ -1802,30 +1919,78 @@ export const schedule = /*#__PURE__*/dual(2, (self, schedule) => transformPull(s * // Outputs: 1, 2, 3 (all typed as numbers) * ``` * - * @since 2.0.0 - * @category Filtering + * @category filtering + * @since 4.0.0 */ export const filter = /*#__PURE__*/dual(2, (self, predicate) => fromTransform((upstream, scope) => Effect.map(toTransform(self)(upstream, scope), pull => Effect.flatMap(pull, function loop(elem) { return predicate(elem) ? Effect.succeed(elem) : Effect.flatMap(pull, loop); })))); /** + * Filters and maps output elements using a `Filter`. + * + * **When to use** + * + * Use to keep only channel output elements accepted by a `Filter` and emit + * each filter success value. + * + * **Details** + * + * Successful filter results are emitted as mapped values. Failed filter + * results are discarded. The source channel's errors and done value are + * preserved. + * + * @see {@link filter} for keeping original output elements with a predicate + * @see {@link filterMapEffect} for using an effectful `Filter` + * @see {@link filterMapArray} for filtering arrays of output elements + * + * @category filtering * @since 4.0.0 - * @category Filtering */ export const filterMap = /*#__PURE__*/dual(2, (self, filter) => fromTransform((upstream, scope) => Effect.map(toTransform(self)(upstream, scope), pull => Effect.flatMap(pull, function loop(elem) { const result = filter(elem); return Result.isFailure(result) ? Effect.flatMap(pull, loop) : Effect.succeed(result.success); })))); /** + * Filters output elements with an effectful predicate. + * + * **When to use** + * + * Use when the keep/discard decision depends on an Effect or service and + * predicate failures should fail the returned channel. + * + * **Details** + * + * Elements for which the predicate succeeds with `true` are emitted. Elements + * for which the predicate succeeds with `false` are discarded. Predicate + * failures fail the returned channel. + * + * @category filtering * @since 4.0.0 - * @category Filtering */ export const filterEffect = /*#__PURE__*/dual(2, (self, predicate) => fromTransform((upstream, scope) => Effect.map(toTransform(self)(upstream, scope), pull => Effect.flatMap(pull, function loop(elem) { return Effect.flatMap(predicate(elem), passes => passes ? Effect.succeed(elem) : Effect.flatMap(pull, loop)); })))); /** + * Filters and maps output elements using an effectful `Filter`. + * + * **When to use** + * + * Use to apply effectful logic that can discard channel output elements and + * emit transformed values for the elements that pass. + * + * **Details** + * + * Successful filter results are emitted as mapped values. Failed filter + * results are discarded. Failures from the effectful filter fail the returned + * channel. + * + * @see {@link filterMap} for using a synchronous `Filter` + * @see {@link filterEffect} for effectfully keeping original output elements + * @see {@link mapEffect} for effectfully transforming every output element + * @see {@link filterMapArrayEffect} for effectful filtering of array outputs + * + * @category filtering * @since 4.0.0 - * @category Filtering */ export const filterMapEffect = /*#__PURE__*/dual(2, (self, filter) => fromTransform((upstream, scope) => Effect.map(toTransform(self)(upstream, scope), pull => Effect.flatMap(pull, function loop(elem) { return Effect.flatMap(filter(elem), result => Result.isFailure(result) ? Effect.flatMap(pull, loop) : Effect.succeed(result.success)); @@ -1834,7 +1999,8 @@ export const filterMapEffect = /*#__PURE__*/dual(2, (self, filter) => fromTransf * Filters arrays of elements emitted by a channel, applying the filter * to each element within the arrays and only emitting non-empty filtered arrays. * - * @example + * **Example** (Filtering array output) + * * ```ts * import { Array, Channel } from "effect" * @@ -1862,8 +2028,8 @@ export const filterMapEffect = /*#__PURE__*/dual(2, (self, filter) => fromTransf * // Outputs: [2, 4] (the arrays [1,3,5] and [7,9] are discarded) * ``` * + * @category filtering * @since 4.0.0 - * @category Filtering */ export const filterArray = /*#__PURE__*/dual(2, (self, predicate) => transformPull(self, pull => Effect.succeed(Effect.flatMap(pull, function loop(arr) { const passes = []; @@ -1875,8 +2041,16 @@ export const filterArray = /*#__PURE__*/dual(2, (self, predicate) => transformPu return Arr.isReadonlyArrayNonEmpty(passes) ? Effect.succeed(passes) : Effect.flatMap(pull, loop); })))); /** - * @since 4.0.0 - * @category Filtering + * Filters and maps each element inside emitted non-empty arrays using a + * `Filter`. + * + * **Details** + * + * Successful filter results are kept as mapped values. Failed filter results + * are removed from the array. Arrays that become empty are discarded. + * + * @category filtering + * @since 4.0.0 */ export const filterMapArray = /*#__PURE__*/dual(2, (self, filter) => transformPull(self, pull => Effect.succeed(Effect.flatMap(pull, function loop(arr) { const passes = []; @@ -1889,8 +2063,22 @@ export const filterMapArray = /*#__PURE__*/dual(2, (self, filter) => transformPu return Arr.isReadonlyArrayNonEmpty(passes) ? Effect.succeed(passes) : Effect.flatMap(pull, loop); })))); /** + * Filters each element inside emitted non-empty arrays with an effectful + * predicate. + * + * **When to use** + * + * Use when filtering array-valued channel outputs requires Effects or services, + * and arrays that become empty should be skipped. + * + * **Details** + * + * The predicate receives the element and its index within the array. Elements + * for which the predicate succeeds with `true` are kept. Arrays that become + * empty are discarded. Predicate failures fail the returned channel. + * + * @category filtering * @since 4.0.0 - * @category Filtering */ export const filterArrayEffect = /*#__PURE__*/dual(2, (self, predicate) => transformPull(self, pull => { const f = Effect.flatMap(pull, arr => Effect.filter(arr, predicate)); @@ -1899,16 +2087,31 @@ export const filterArrayEffect = /*#__PURE__*/dual(2, (self, predicate) => trans })); })); /** + * Filters and maps each element inside emitted non-empty arrays using an + * effectful `Filter`. + * + * **When to use** + * + * Use when array-valued channel outputs need an effectful filter-map that can + * fail and can discard arrays that become empty. + * + * **Details** + * + * Successful filter results are kept as mapped values. Failed filter results + * are removed from the array. Arrays that become empty are discarded. Failures + * from the effectful filter fail the returned channel. + * + * @category filtering * @since 4.0.0 - * @category Filtering */ export const filterMapArrayEffect = /*#__PURE__*/dual(2, (self, filter) => transformPull(self, pull => Effect.succeed(Effect.flatMap(pull, function loop(arr) { return Effect.flatMap(Effect.filterMapEffect(arr, filter), passes => Arr.isReadonlyArrayNonEmpty(passes) ? Effect.succeed(passes) : Effect.flatMap(pull, loop)); })))); /** - * Statefully maps over a channel with an accumulator, where each element can produce multiple output values. + * Maps over a channel statefully with an accumulator, where each element can produce multiple output values. + * + * **Example** (Mapping with accumulated state) * - * @example * ```ts * import { Channel, Effect } from "effect" * @@ -1939,8 +2142,8 @@ export const filterMapArrayEffect = /*#__PURE__*/dual(2, (self, filter) => trans * ) * ``` * - * @since 2.0.0 - * @category Sequencing + * @category sequencing + * @since 4.0.0 */ export const mapAccum = /*#__PURE__*/dual(args => isChannel(args[0]), (self, initial, f, options) => fromTransform((upstream, scope) => Effect.map(toTransform(self)(upstream, scope), pull => { let state = initial(); @@ -1982,10 +2185,11 @@ export const mapAccum = /*#__PURE__*/dual(args => isChannel(args[0]), (self, ini return pump; }))); /** - * Statefully transforms a channel by scanning over its output with an accumulator function. + * Transforms a channel statefully by scanning over its output with an accumulator function. * Emits the intermediate results of the scan operation. * - * @example + * **Example** (Scanning channel output) + * * ```ts * import { Channel } from "effect" * @@ -2007,15 +2211,21 @@ export const mapAccum = /*#__PURE__*/dual(args => isChannel(args[0]), (self, ini * // Outputs: "", "hello", "hello world", "hello world from", "hello world from effect" * ``` * - * @since 2.0.0 - * @category Sequencing + * @category sequencing + * @since 4.0.0 */ export const scan = /*#__PURE__*/dual(3, (self, initial, f) => scanEffect(self, initial, (s, a) => Effect.succeed(f(s, a)))); /** - * Statefully transforms a channel by scanning over its output with an effectful accumulator function. + * Transforms a channel statefully by scanning over its output with an effectful accumulator function. * Emits the intermediate results of the scan operation. * - * @example + * **When to use** + * + * Use when maintaining accumulated state over channel output requires Effects + * or can fail, while still emitting each intermediate state. + * + * **Example** (Scanning channel output with effects) + * * ```ts * import { Channel, Data, Effect } from "effect" * @@ -2052,8 +2262,8 @@ export const scan = /*#__PURE__*/dual(3, (self, initial, f) => scanEffect(self, * ) * ``` * - * @since 2.0.0 - * @category Sequencing + * @category sequencing + * @since 4.0.0 */ export const scanEffect = /*#__PURE__*/dual(3, (self, initial, f) => fromTransform((upstream, scope) => Effect.map(toTransform(self)(upstream, scope), pull => { let state = initial; @@ -2073,7 +2283,8 @@ export const scanEffect = /*#__PURE__*/dual(3, (self, initial, f) => fromTransfo * Catches any cause of failure from the channel and allows recovery by * creating a new channel based on the caught cause. * - * @example + * **Example** (Recovering from failure causes) + * * ```ts * import { Cause, Channel, Data } from "effect" * @@ -2101,8 +2312,8 @@ export const scanEffect = /*#__PURE__*/dual(3, (self, initial, f) => fromTransfo * // The channel recovers gracefully from errors * ``` * - * @since 4.0.0 - * @category Error handling + * @category error handling + * @since 2.0.0 */ export const catchCause = /*#__PURE__*/dual(2, (self, f) => fromTransform((upstream, scope) => { let forkedScope = Scope.forkUnsafe(scope); @@ -2122,23 +2333,69 @@ export const catchCause = /*#__PURE__*/dual(2, (self, f) => fromTransform((upstr }); })); /** + * Runs an effect with the full failure `Cause` when the channel fails, then + * fails the returned channel with the original cause. + * + * **When to use** + * + * Use when observing the full channel failure `Cause` is needed without + * changing successful output or replacing the original cause. + * + * **Details** + * + * Use this for observing failures, such as logging or metrics. If the observer + * effect fails, that failure can fail the returned channel. + * + * @category error handling * @since 4.0.0 - * @category Error handling */ export const tapCause = /*#__PURE__*/dual(2, (self, f) => catchCause(self, cause => fromEffectDrain(Effect.flatMap(f(cause), _ => Effect.failCause(cause))))); /** * Catches causes of failure that match a specific filter, allowing * conditional error recovery based on the type of failure. * + * **When to use** + * + * Use to recover a channel only when its full `Cause` satisfies a boolean + * predicate. + * + * **Details** + * + * When the predicate matches, the recovery function receives the original + * cause. When it does not match, the returned channel fails with the original + * cause. + * + * @see {@link catchCauseFilter} for selecting causes with a `Filter` + * @see {@link catchCause} for recovering from every cause + * @see {@link catchIf} for recovering from typed channel errors + * + * @category error handling * @since 4.0.0 - * @category Error handling */ export const catchCauseIf = /*#__PURE__*/dual(3, (self, predicate, f) => catchCause(self, cause => { return predicate(cause) ? f(cause) : failCause(cause); })); /** + * Recovers from channel failures whose full `Cause` is selected by a `Filter`. + * + * **When to use** + * + * Use when you need to recover a channel only from causes selected by a + * `Filter`, while giving the recovery both the selected value and the original + * `Cause`. + * + * **Details** + * + * When the filter succeeds, the recovery function receives the selected value + * and the original cause. When the filter fails, the returned channel fails + * with the residual cause produced by the filter. + * + * @see {@link catchCauseIf} for selecting causes with a predicate + * @see {@link catchFilter} for selecting typed errors with a `Filter` + * @see {@link catchCause} for recovering from every cause + * + * @category error handling * @since 4.0.0 - * @category Error handling */ export const catchCauseFilter = /*#__PURE__*/dual(3, (self, filter, f) => catchCause(self, cause => { const result = filter(cause); @@ -2147,33 +2404,86 @@ export const catchCauseFilter = /*#__PURE__*/dual(3, (self, filter, f) => catchC const catch_ = /*#__PURE__*/dual(2, (self, f) => catchCauseFilter(self, Cause.findError, e => f(e))); export { /** + * Recovers from typed channel errors by running a fallback channel. + * + * @category error handling * @since 4.0.0 - * @category Error handling */ catch_ as catch }; /** + * Runs an effect when the channel fails with a typed error, then preserves the + * original channel failure. + * + * **Details** + * + * The effect is not run for normal channel completion. If the observer effect + * fails, that failure can fail the returned channel. + * + * @category error handling * @since 4.0.0 - * @category Error handling */ export const tapError = /*#__PURE__*/dual(2, (self, f) => transformPull(self, pull => Effect.succeed(Effect.tapError(pull, err => Cause.isDone(err) ? Effect.void : Effect.asVoid(f(err)))))); /** + * Recovers from typed channel errors that match a predicate or refinement. + * + * **When to use** + * + * Use to recover from typed channel errors when a predicate or refinement + * selects the failures that should switch to a recovery channel. + * + * **Details** + * + * Matching errors are handled by the recovery function. Non-matching errors + * are handled by `orElse` when provided. Without `orElse`, non-matching errors + * are re-failed. + * + * @see {@link catch_ catch} for recovering from every typed channel error + * @see {@link catchFilter} for selecting typed errors with a `Filter` + * @see {@link catchTag} for selecting tagged typed errors + * @see {@link catchCauseFilter} for selecting full causes with a `Filter` + * + * @category error handling * @since 4.0.0 - * @category Error handling */ export const catchIf = /*#__PURE__*/dual(args => isChannel(args[0]), (self, predicate, f, orElse) => catch_(self, err => { return predicate(err) ? f(err) : orElse ? orElse(err) : fail(err); })); /** + * Recovers from typed channel errors selected by a `Filter`. + * + * **When to use** + * + * Use to recover from channel errors with a reusable `Filter` when matching + * can also narrow or transform the error before choosing the recovery channel. + * + * **Details** + * + * Successful filter results are handled by the recovery function. Failed + * filter results are handled by `orElse` when provided. Without `orElse`, + * failed filter results are re-failed. + * + * @see {@link catchIf} for selecting typed errors with a predicate + * @see {@link catchTag} for selecting tagged typed errors + * @see {@link catchCauseFilter} for selecting full causes with a `Filter` + * + * @category error handling * @since 4.0.0 - * @category Error handling */ export const catchFilter = /*#__PURE__*/dual(args => isChannel(args[0]), (self, filter, f, orElse) => catch_(self, err => { const result = filter(err); return Result.isFailure(result) ? orElse ? orElse(result.failure) : fail(result.failure) : f(result.success); })); /** + * Recovers from tagged channel errors whose `_tag` matches one or more tags. + * + * **Details** + * + * Matching tagged errors are handled by the recovery function. Non-matching + * errors are handled by `orElse` when provided. Without `orElse`, + * non-matching errors are re-failed. + * + * @category error handling * @since 4.0.0 - * @category Error handling */ export const catchTag = /*#__PURE__*/dual(args => isChannel(args[0]), (self, k, f, orElse) => { const pred = Array.isArray(k) ? e => hasProperty(e, "_tag") && k.includes(e._tag) : isTagged(k); @@ -2182,7 +2492,8 @@ export const catchTag = /*#__PURE__*/dual(args => isChannel(args[0]), (self, k, /** * Catches a specific reason within a tagged error. * - * @example + * **Example** (Recovering from nested reasons) + * * ```ts * import { Channel, Data } from "effect" * @@ -2209,8 +2520,8 @@ export const catchTag = /*#__PURE__*/dual(args => isChannel(args[0]), (self, k, * ) * ``` * + * @category error handling * @since 4.0.0 - * @category Error handling */ export const catchReason = /*#__PURE__*/dual(args => isChannel(args[0]), (self, errorTag, reasonTag, f, orElse) => catch_(self, error => { if (isTagged(error, errorTag) && hasProperty(error, "reason")) { @@ -2225,8 +2536,8 @@ export const catchReason = /*#__PURE__*/dual(args => isChannel(args[0]), (self, /** * Catches multiple reasons within a tagged error using an object of handlers. * + * @category error handling * @since 4.0.0 - * @category Error handling */ export const catchReasons = /*#__PURE__*/dual(args => isChannel(args[0]), (self, errorTag, cases, orElse) => { let keys; @@ -2245,7 +2556,8 @@ export const catchReasons = /*#__PURE__*/dual(args => isChannel(args[0]), (self, /** * Promotes nested reason errors into the channel error, replacing the parent error. * - * @example + * **Example** (Promoting nested reasons) + * * ```ts * import { Channel, Data } from "effect" * @@ -2268,8 +2580,8 @@ export const catchReasons = /*#__PURE__*/dual(args => isChannel(args[0]), (self, * const unwrapped = channel.pipe(Channel.unwrapReason("AiError")) * ``` * + * @category error handling * @since 4.0.0 - * @category Error handling */ export const unwrapReason = /*#__PURE__*/dual(2, (self, errorTag) => catchFilter(self, error => isTagged(error, errorTag) && hasProperty(error, "reason") ? Result.succeed(error.reason) : Result.fail(error), fail)); /** @@ -2277,15 +2589,16 @@ export const unwrapReason = /*#__PURE__*/dual(2, (self, errorTag) => catchFilter * value of the returned channel is created by applying the specified function * to the failure value of this channel. * + * @category error handling * @since 2.0.0 - * @category Error handling */ export const mapError = /*#__PURE__*/dual(2, (self, f) => catch_(self, err => fail(f(err)))); /** * Converts all errors in the channel to defects (unrecoverable failures). * This is useful when you want to treat errors as programming errors. * - * @example + * **Example** (Converting failures to defects) + * * ```ts * import { Channel, Data } from "effect" * @@ -2302,17 +2615,19 @@ export const mapError = /*#__PURE__*/dual(2, (self, f) => catch_(self, err => fa * // Any failure will now become a defect (uncaught exception) * ``` * - * @since 4.0.0 - * @category Error handling + * @category error handling + * @since 2.0.0 */ export const orDie = self => catch_(self, die); /** * Ignores all errors in the channel, converting them to an empty channel. * + * **Details** + * * Use the `log` option to emit the full {@link Cause} when the channel fails. * + * @category error handling * @since 4.0.0 - * @category Error handling */ export const ignore = /*#__PURE__*/dual(args => isChannel(args[0]), (self, options) => { if (!options?.log) { @@ -2325,10 +2640,17 @@ const ignoreCause_ = self => catchCause(self, () => empty); /** * Ignores all errors in the channel including defects, converting them to an empty channel. * + * **When to use** + * + * Use when a channel should become best-effort and all failure causes, including + * defects and interruptions, can be converted to empty output. + * + * **Details** + * * Use the `log` option to emit the full {@link Cause} when the channel fails. * + * @category error handling * @since 4.0.0 - * @category Error handling */ export const ignoreCause = /*#__PURE__*/dual(args => isChannel(args[0]), (self, options) => { if (!options?.log) return ignoreCause_(self); @@ -2339,8 +2661,8 @@ export const ignoreCause = /*#__PURE__*/dual(args => isChannel(args[0]), (self, * Returns a new channel that retries this channel according to the specified * schedule whenever it fails. * + * @category error handling * @since 4.0.0 - * @category utils */ export const retry = /*#__PURE__*/dual(2, (self, schedule) => suspend(() => { let step = undefined; @@ -2361,13 +2683,17 @@ export const retry = /*#__PURE__*/dual(2, (self, schedule) => suspend(() => { return loop; })); /** - * Returns a new channel, which sequentially combines this channel, together - * with the provided factory function, which creates a second channel based on - * the output values of this channel. The result is a channel that will first - * perform the functions of this channel, before performing the functions of - * the created channel (including yielding its terminal value). + * Maps each output element to a channel and emits values from the most recent + * active child channels. + * + * **Details** + * + * With the default concurrency of `1`, starting a new child channel interrupts + * the previous child channel. Use `options.concurrency` to allow more active + * child channels. The source channel's done value is preserved. + * + * **Example** (Switching mapped channels) * - * @example * ```ts * import { Channel, Data } from "effect" * @@ -2387,8 +2713,8 @@ export const retry = /*#__PURE__*/dual(2, (self, schedule) => suspend(() => { * // Outputs: "value-1", "value-2", "value-3" * ``` * - * @since 2.0.0 * @category sequencing + * @since 4.0.0 */ export const switchMap = /*#__PURE__*/dual(args => isChannel(args[0]), (self, f, options) => self.pipe(map(f), mergeAll({ ...options, @@ -2398,7 +2724,13 @@ export const switchMap = /*#__PURE__*/dual(args => isChannel(args[0]), (self, f, /** * Merges multiple channels with specified concurrency and buffering options. * - * @example + * **When to use** + * + * Use when channel outputs are themselves channels and multiple inner channels + * should run with configured concurrency and buffering. + * + * **Example** (Merging nested channels) + * * ```ts * import { Channel, Data } from "effect" * @@ -2422,8 +2754,8 @@ export const switchMap = /*#__PURE__*/dual(args => isChannel(args[0]), (self, f, * // Outputs: 1, 2, 3, 4, 5, 6 (order may vary due to concurrency) * ``` * + * @category combining * @since 2.0.0 - * @category utils */ export const mergeAll = /*#__PURE__*/dual(2, (channels, { bufferSize = 16, @@ -2471,7 +2803,8 @@ export const mergeAll = /*#__PURE__*/dual(2, (channels, { * Returns a new channel, which is the merge of this channel and the specified * channel. * - * @example + * **Example** (Merging channels) + * * ```ts * import { Channel, Data } from "effect" * @@ -2492,8 +2825,8 @@ export const mergeAll = /*#__PURE__*/dual(2, (channels, { * // Order may vary: 1, "a", 2, "b", 3, "c" * ``` * - * @since 2.0.0 - * @category utils + * @category combining + * @since 4.0.0 */ export const merge = /*#__PURE__*/dual(args => isChannel(args[0]) && isChannel(args[1]), (left, right, options) => fromTransformBracket(Effect.fnUntraced(function* (upstream, _scope, forkedScope) { const strategy = options?.haltStrategy ?? "both"; @@ -2527,8 +2860,21 @@ export const merge = /*#__PURE__*/dual(args => isChannel(args[0]) && isChannel(a return Queue.take(queue); }))); /** + * Runs an effect concurrently with a channel while emitting only the channel's + * output elements. + * + * **When to use** + * + * Use when a side effect should run for the lifetime of a channel and only the + * channel's output elements should be emitted. + * + * **Details** + * + * The effect's successful value is ignored. If the effect fails while the + * channel is running, the returned channel fails with that error. + * + * @category combining * @since 4.0.0 - * @category utils */ export const mergeEffect = /*#__PURE__*/dual(2, (self, effect) => merge(self, fromEffectDrain(effect), { haltStrategy: "left" @@ -2538,12 +2884,14 @@ export const mergeEffect = /*#__PURE__*/dual(2, (self, effect) => merge(self, fr * standalone `\r` as line terminators. The behavior matches * `String.linesIterator` regardless of how the input is chunked. * + * **Details** + * * A line terminator at the very end of the stream does **not** produce a * trailing empty line (consistent with `String.linesIterator`). Conversely, * if the stream ends without a terminator the final partial line is still * emitted. * - * **Example** + * **Example** (Splitting string chunks into lines) * * ```ts * import { Effect, Stream } from "effect" @@ -2557,8 +2905,8 @@ export const mergeEffect = /*#__PURE__*/dual(2, (self, effect) => merge(self, fr * })) * ``` * - * @since 2.0.0 * @category String manipulation + * @since 2.0.0 */ export const splitLines = () => fromTransform((upstream, _scope) => Effect.sync(() => { // Accumulates text that has not yet been terminated by a line break. @@ -2646,16 +2994,33 @@ export const splitLines = () => fromTransform((upstream, _scope) => Effect.sync( return pullOrFlush; })); /** - * @since 4.0.0 + * Decodes incoming `Uint8Array` chunks into strings using `TextDecoder`. + * + * **Details** + * + * Input chunks are decoded with streaming enabled so multi-byte characters may + * span `Uint8Array` boundaries. The optional `encoding` and `options` are + * passed to `TextDecoder`. + * * @category String manipulation + * @since 4.0.0 */ export const decodeText = (encoding, options) => fromTransform((upstream, _scope) => Effect.sync(() => { const decoder = new TextDecoder(encoding, options); - return Effect.map(upstream, Arr.map(line => decoder.decode(line))); + const streamOptions = { + stream: true + }; + return Effect.map(upstream, Arr.map(line => decoder.decode(line, streamOptions))); })); /** - * @since 4.0.0 + * Encodes incoming string chunks into `Uint8Array` values using `TextEncoder`. + * + * **Details** + * + * Each string inside an emitted array is encoded independently. + * * @category String manipulation + * @since 4.0.0 */ export const encodeText = () => fromTransform((upstream, _scope) => Effect.sync(() => { const encoder = new TextEncoder(); @@ -2667,7 +3032,8 @@ export const encodeText = () => fromTransform((upstream, _scope) => Effect.sync( * and the output type of the specified channel, terminating with the value of * the specified channel. * - * @example + * **Example** (Piping one channel into another) + * * ```ts * import { Channel, Data } from "effect" * @@ -2685,8 +3051,8 @@ export const encodeText = () => fromTransform((upstream, _scope) => Effect.sync( * // Outputs: 2, 4, 6 * ``` * + * @category sequencing * @since 2.0.0 - * @category utils */ export const pipeTo = /*#__PURE__*/dual(2, (self, that) => fromTransform((upstream, scope) => Effect.flatMap(toTransform(self)(upstream, scope), upstream => toTransform(that)(upstream, scope)))); /** @@ -2694,7 +3060,8 @@ export const pipeTo = /*#__PURE__*/dual(2, (self, that) => fromTransform((upstre * specified channel and preserves this channel's failures without providing * them to the other channel for observation. * - * @example + * **Example** (Piping while preserving failures) + * * ```ts * import { Channel, Data } from "effect" * @@ -2712,8 +3079,8 @@ export const pipeTo = /*#__PURE__*/dual(2, (self, that) => fromTransform((upstre * // Source errors are preserved and not sent to transform channel * ``` * + * @category sequencing * @since 2.0.0 - * @category utils */ export const pipeToOrFail = /*#__PURE__*/dual(2, (self, that) => fromTransform((upstream, scope) => Effect.flatMap(toTransform(self)(upstream, scope), upstream => { const upstreamPull = Effect.catchCause(upstream, cause => Pull.isDoneCause(cause) ? Effect.failCause(cause) : Effect.die(Cause.Done(cause))); @@ -2723,7 +3090,8 @@ export const pipeToOrFail = /*#__PURE__*/dual(2, (self, that) => fromTransform(( * Constructs a `Channel` from a scoped effect that will result in a * `Channel` if successful. * - * @example + * **Example** (Unwrapping channel effects) + * * ```ts * import { Channel, Data, Effect } from "effect" * @@ -2742,8 +3110,8 @@ export const pipeToOrFail = /*#__PURE__*/dual(2, (self, that) => fromTransform(( * // The resulting channel outputs: 1, 2, 3 * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export const unwrap = channel => fromTransform((upstream, scope) => { let pull; @@ -2753,41 +3121,72 @@ export const unwrap = channel => fromTransform((upstream, scope) => { })); }); /** + * Runs a channel with a scope provided for the duration of the channel + * execution, removing the channel's `Scope` requirement. + * + * @category resource management * @since 2.0.0 - * @category utils */ -export const scoped = self => fromTransformBracket((upstream, scope, forkedScope) => Scope.provide(toTransform(self)(upstream, scope), forkedScope)); +export const scoped = self => fromTransformBracket((upstream, scope, forkedScope) => Effect.map(Scope.provide(toTransform(self)(upstream, scope), forkedScope), Scope.provide(forkedScope))); /** - * Returns a new channel which embeds the given input handler into a Channel. + * Runs an input handler against the upstream pull while the wrapped channel + * runs without receiving upstream input directly. * - * @example - * ```ts - * import { Channel, Data, Effect } from "effect" + * **Details** * - * class EmbedError extends Data.TaggedError("EmbedError")<{ - * readonly stage: string - * }> {} + * The input handler is forked in the channel scope. The wrapped channel is run + * with an already-completed input. + * + * **Example** (Embedding custom input handling) + * + * ```ts + * import { Channel, Effect } from "effect" * * // Create a base channel * const baseChannel = Channel.fromIterable([1, 2, 3]) * - * // Embed input handling - simplified example + * // Drain the embedded input while the base channel runs * const embeddedChannel = Channel.embedInput( * baseChannel, - * (_upstream) => Effect.void + * (upstream) => + * upstream.pipe( + * Effect.tap((message) => + * Effect.sync(() => console.log(message)) + * ), + * Effect.forever, + * Effect.ignore + * ) * ) * ``` * + * @category sequencing * @since 2.0.0 - * @category utils */ export const embedInput = /*#__PURE__*/dual(2, (self, input) => fromTransformBracket((upstream, scope, forkedScope) => Effect.andThen(Effect.forkIn(input(upstream), forkedScope), toTransform(self)(Cause.done(), scope)))); /** - * Allows a faster producer to progress independently of a slower consumer by - * buffering up to `capacity` elements in a queue. + * Buffers individual output elements in a queue with the configured `capacity` + * so a faster producer can progress independently of a slower consumer. + * + * **When to use** + * + * Use when output elements can be decoupled from downstream demand and the + * configured backpressure or loss strategy is acceptable. + * + * **Details** + * + * Finite queues use the `strategy` option. The default `"suspend"` strategy + * applies backpressure, while `"dropping"` and `"sliding"` can discard output + * elements when the queue is full. `"unbounded"` capacity does not use a finite + * capacity strategy. + * + * **Gotchas** + * + * Dropping and sliding strategies can lose output elements under backpressure. + * + * @see {@link bufferArray} for buffering elements from array outputs * - * @since 2.0.0 * @category Buffering + * @since 2.0.0 */ export const buffer = /*#__PURE__*/dual(2, (self, options) => fromTransform(Effect.fnUntraced(function* (upstream, scope) { const pull = yield* toTransform(self)(upstream, scope); @@ -2802,11 +3201,31 @@ export const buffer = /*#__PURE__*/dual(2, (self, options) => fromTransform(Effe return Queue.take(queue); }))); /** - * Allows a faster producer to progress independently of a slower consumer by - * buffering up to `capacity` elements in a queue. + * Buffers array output elements in a queue with the configured `capacity` so a + * faster producer can progress independently of a slower consumer. + * + * **When to use** + * + * Use when emitted arrays are batches of elements and it is acceptable for + * buffering to flatten and rebuild those batches. + * + * **Details** + * + * Finite queues use the `strategy` option. The default `"suspend"` strategy + * applies backpressure, while `"dropping"` and `"sliding"` can discard output + * elements when the queue is full. `"unbounded"` capacity does not use a finite + * capacity strategy. + * + * **Gotchas** + * + * Input arrays are offered to the queue element-by-element and outputs are + * rebuilt from the currently available queued elements, so upstream array + * boundaries are not preserved. + * + * @see {@link buffer} for buffering output elements without flattening arrays * - * @since 2.0.0 * @category Buffering + * @since 4.0.0 */ export const bufferArray = /*#__PURE__*/dual(2, (self, options) => fromTransform(Effect.fnUntraced(function* (upstream, scope) { const pull = yield* toTransform(self)(upstream, scope); @@ -2821,23 +3240,37 @@ export const bufferArray = /*#__PURE__*/dual(2, (self, options) => fromTransform return Queue.takeAll(queue); }))); /** - * Returns a new channel, which is the same as this one, except it will be - * interrupted when the specified effect completes. If the effect completes - * successfully before the underlying channel is done, then the returned - * channel will yield the success value of the effect as its terminal value. - * On the other hand, if the underlying channel finishes first, then the - * returned channel will yield the success value of the underlying channel as - * its terminal value. + * Interrupts a channel when another effect completes. + * + * **When to use** * + * Use to race channel execution against an external effect whose success can + * become the channel's done value. + * + * **Details** + * + * If the effect completes first, its success value becomes the returned + * channel's done value. If the channel completes first, the original channel's + * done value is preserved. + * + * @category interruption * @since 2.0.0 - * @category utils */ export const interruptWhen = /*#__PURE__*/dual(2, (self, effect) => merge(self, fromPull(Effect.succeed(Effect.flatMap(effect, Cause.done))), { haltStrategy: "either" })); /** + * Stops a channel when the specified effect completes or fails. + * + * **Details** + * + * If the effect completes before the channel is done, its success value becomes + * the returned channel's done value. If the effect fails, the returned channel + * fails with that error. If the channel completes first, the channel's done + * value is preserved. + * + * @category interruption * @since 4.0.0 - * @category utils */ export const haltWhen = /*#__PURE__*/dual(2, (self, effect) => fromTransformBracket(Effect.fnUntraced(function* (upstream, scope, forkedScope) { const pull = yield* toTransform(self)(upstream, scope); @@ -2849,16 +3282,23 @@ export const haltWhen = /*#__PURE__*/dual(2, (self, effect) => fromTransformBrac return Effect.suspend(() => haltCause ? Effect.failCause(haltCause) : pull); }))); /** + * Attaches a finalizer that runs only when the channel exits with failure. + * + * **Details** + * + * The finalizer receives the failure `Cause`. The original channel failure is + * preserved. The finalizer itself must not fail. + * + * @category error handling * @since 4.0.0 - * @category utils */ export const onError = /*#__PURE__*/dual(2, (self, finalizer) => onExit(self, exit => Exit.isFailure(exit) ? finalizer(exit.cause) : Effect.void)); /** - * Returns a new channel with an attached finalizer. The finalizer is - * guaranteed to be executed so long as the channel begins execution (and - * regardless of whether or not it completes). + * Returns a channel with an exit-aware finalizer that is guaranteed to run once + * the channel begins execution, whether it succeeds or fails. + * + * **Example** (Running exit finalizers) * - * @example * ```ts * import { Channel, Console, Data, Exit } from "effect" * @@ -2879,18 +3319,38 @@ export const onError = /*#__PURE__*/dual(2, (self, finalizer) => onExit(self, ex * }) * ``` * + * @category resource management * @since 4.0.0 - * @category utils */ export const onExit = /*#__PURE__*/dual(2, (self, finalizer) => fromTransformBracket((upstream, scope, forkedScope) => Scope.addFinalizerExit(forkedScope, finalizer).pipe(Effect.andThen(toTransform(self)(upstream, scope))))); /** + * Runs an effect before the channel starts. + * + * **Details** + * + * The effect's successful value is ignored. If the effect fails, the returned + * channel fails before running the source channel. + * + * @category hooks * @since 4.0.0 - * @category utils */ export const onStart = /*#__PURE__*/dual(2, (self, onStart) => unwrap(Effect.as(onStart, self))); /** + * Runs an effect the first time the channel emits an output element. + * + * **When to use** + * + * Use when initialization depends on the first output element rather than only + * on channel startup. + * + * **Details** + * + * The effect receives the first emitted element. The first element is still + * emitted unchanged. The effect is not run if the channel completes without + * emitting an element. + * + * @category hooks * @since 4.0.0 - * @category utils */ export const onFirst = /*#__PURE__*/dual(2, (self, onFirst) => transformPull(self, pull => Effect.sync(() => { let isFirst = true; @@ -2901,16 +3361,24 @@ export const onFirst = /*#__PURE__*/dual(2, (self, onFirst) => transformPull(sel return Effect.suspend(() => isFirst ? pullFirst : pull); }))); /** + * Runs an effect when the channel completes successfully. + * + * **Details** + * + * The effect runs before the original done value is propagated. The effect is + * not run when the channel fails. If the effect fails, the returned channel + * fails with that error. + * + * @category hooks * @since 4.0.0 - * @category utils */ export const onEnd = /*#__PURE__*/dual(2, (self, onEnd) => transformPull(self, pull => Effect.succeed(Pull.catchDone(pull, leftover => Effect.flatMap(onEnd, () => Cause.done(leftover)))))); /** - * Returns a new channel with an attached finalizer. The finalizer is - * guaranteed to be executed so long as the channel begins execution (and - * regardless of whether or not it completes). + * Returns a channel with a finalizer effect that is guaranteed to run once the + * channel begins execution, whether it succeeds or fails. + * + * **Example** (Ensuring cleanup runs) * - * @example * ```ts * import { Channel, Console, Data } from "effect" * @@ -2928,8 +3396,8 @@ export const onEnd = /*#__PURE__*/dual(2, (self, onEnd) => transformPull(self, p * ) * ``` * + * @category resource management * @since 2.0.0 - * @category utils */ export const ensuring = /*#__PURE__*/dual(2, (self, finalizer) => onExit(self, _ => finalizer)); const runWith = (self, f, onHalt) => Effect.suspend(() => { @@ -2938,52 +3406,97 @@ const runWith = (self, f, onHalt) => Effect.suspend(() => { return Pull.catchDone(Effect.flatMap(makePull, f), onHalt ? onHalt : Effect.succeed).pipe(Effect.onExit(exit => Scope.close(scope, exit))); }); /** - * Create a channel from the specified services. + * Creates a channel from the specified services. * + * @category services * @since 2.0.0 - * @category Services */ export const contextWith = f => fromTransform((upstream, scope) => Effect.contextWith(context => toTransform(f(context))(upstream, scope))); /** - * Provides a layer or context to the channel, removing the corresponding - * service requirements. Use `options.local` to build the layer every time; by - * default, layers are shared between provide calls. + * Provides a `Context` to the channel, removing the corresponding service + * requirements from the returned channel. * - * @since 4.0.0 - * @category Services + * @category services + * @since 2.0.0 */ export const provideContext = /*#__PURE__*/dual(2, (self, context) => fromTransform((upstream, scope) => Effect.map(Effect.provideContext(toTransform(self)(upstream, scope), context), Effect.provideContext(context)))); /** - * @since 4.0.0 - * @category Services + * Provides a concrete service for a context key, removing that service + * requirement from the returned channel. + * + * @category services + * @since 2.0.0 */ export const provideService = /*#__PURE__*/dual(3, (self, key, service) => fromTransform((upstream, scope) => Effect.map(Effect.provideService(toTransform(self)(upstream, scope), key, service), Effect.provideService(key, service)))); /** + * Provides a service to the channel after obtaining it from an effect. + * + * **When to use** + * + * Use to supply a channel dependency when constructing the service itself is + * effectful or can fail. + * + * **Details** + * + * If the service effect fails, the returned channel fails. The provided service + * removes the corresponding service requirement from the returned channel. + * + * @category services * @since 4.0.0 - * @category Services */ export const provideServiceEffect = /*#__PURE__*/dual(3, (self, key, service) => fromTransform((upstream, scope) => Effect.flatMap(service, s => toTransform(provideService(self, key, s))(upstream, scope)))); /** + * Provides a `Layer` or `Context` to the channel, removing the corresponding + * service requirements. + * + * **Details** + * + * Providing a `Context` delegates to `provideContext`. Providing a `Layer` + * builds the layer in the channel scope. Use `options.local` to build a fresh + * layer instance for this provision. + * + * @category services * @since 4.0.0 - * @category Services */ export const provide = /*#__PURE__*/dual(args => isChannel(args[0]), (self, layer, options) => Context.isContext(layer) ? provideContext(self, layer) : fromTransform((upstream, scope) => Effect.flatMap(options?.local ? Layer.buildWithMemoMap(layer, Layer.makeMemoMapUnsafe(), scope) : Layer.buildWithScope(layer, scope), context => Effect.map(Effect.provideContext(toTransform(self)(upstream, scope), context), Effect.provideContext(context))))); /** - * @since 2.0.0 - * @category Services + * Transforms the current context before running the channel. + * + * **Details** + * + * The function receives the surrounding context and returns the context to + * provide to the channel. The returned channel requires the services needed to + * build that context. + * + * @category services + * @since 4.0.0 */ export const updateContext = /*#__PURE__*/dual(2, (self, f) => fromTransform((upstream, scope) => Effect.contextWith(context => { const toProvide = f(context); return toTransform(provideContext(self, toProvide))(upstream, scope); }))); /** + * Updates a service in the current context before running the channel. + * + * **Details** + * + * The existing service is read from the context. The updated service is + * provided to the channel under the same key. + * + * @category services * @since 2.0.0 - * @category Services */ export const updateService = /*#__PURE__*/dual(3, (self, service, f) => updateContext(self, context => Context.add(context, service, f(Context.get(context, service))))); /** - * @since 4.0.0 - * @category Tracing + * Runs the channel inside a tracing span with the specified name and options. + * + * **Details** + * + * The created span is provided as the current parent span while the channel + * runs. The span is ended with the channel's exit value. + * + * @category tracing + * @since 2.0.0 */ export const withSpan = function () { const dataFirst = isChannel(arguments[0]); @@ -3001,8 +3514,10 @@ const withSpanImpl = (self, name, options) => acquireUseRelease(Effect.makeSpan( return endSpan(span, exit, clock, timingEnabled); })); /** + * The starting channel for Do notation, emitting an empty object. + * + * @category do notation * @since 4.0.0 - * @category Do notation */ export const Do = /*#__PURE__*/succeed({}); const let_ = /*#__PURE__*/dual(3, (self, name, f) => map(self, elem => ({ @@ -3011,21 +3526,43 @@ const let_ = /*#__PURE__*/dual(3, (self, name, f) => map(self, elem => ({ }))); export { /** + * Adds a computed field to each object emitted by a channel. + * + * @category do notation * @since 4.0.0 - * @category Do notation */ let_ as let }; /** + * Adds a field to each object emitted by a channel by running another channel + * derived from that object. + * + * **Details** + * + * The field name must not already exist on the emitted object. The derived + * channel's output becomes the value of the new field. `options.concurrency` + * and `options.bufferSize` control how derived channels are flattened. + * + * @category do notation * @since 4.0.0 - * @category Do notation */ export const bind = /*#__PURE__*/dual(args => isChannel(args[0]), (self, name, f, options) => flatMap(self, elem => map(f(elem), b => ({ ...elem, [name]: b })), options)); /** + * Wraps each output element in an object under the specified field name. + * + * **When to use** + * + * Use when you need to start a Channel Do-notation chain from an existing + * output value by assigning that value to a field name. + * + * @see {@link Do} for starting Do notation from an empty object + * @see {@link bind} for adding a field produced by another channel + * @see {@link let_ let} for adding a computed field + * + * @category do notation * @since 4.0.0 - * @category Do notation */ export const bindTo = /*#__PURE__*/dual(2, (self, name) => map(self, elem => ({ [name]: elem @@ -3033,7 +3570,8 @@ export const bindTo = /*#__PURE__*/dual(2, (self, name) => map(self, elem => ({ /** * Runs a channel and counts the number of elements it outputs. * - * @example + * **Example** (Counting channel output) + * * ```ts * import { Channel, Data } from "effect" * @@ -3050,14 +3588,15 @@ export const bindTo = /*#__PURE__*/dual(2, (self, name) => map(self, elem => ({ * // Effect.runSync(countEffect) // Returns: 5 * ``` * - * @since 2.0.0 * @category execution + * @since 4.0.0 */ export const runCount = self => runFold(self, () => 0, acc => acc + 1); /** * Runs a channel and discards all output elements, returning only the final result. * - * @example + * **Example** (Draining channel output at runtime) + * * ```ts * import { Channel, Data } from "effect" * @@ -3078,8 +3617,8 @@ export const runCount = self => runFold(self, () => 0, acc => acc + 1); * // Effect.runSync(drainEffect) // Returns: "completed" * ``` * - * @since 2.0.0 * @category execution + * @since 2.0.0 */ export const runDrain = self => runWith(self, pull => Effect.forever(pull, { disableYield: true @@ -3087,7 +3626,8 @@ export const runDrain = self => runWith(self, pull => Effect.forever(pull, { /** * Runs a channel and applies an effect to each output element. * - * @example + * **Example** (Running effects for each output) + * * ```ts * import { Channel, Console, Data } from "effect" * @@ -3107,15 +3647,23 @@ export const runDrain = self => runWith(self, pull => Effect.forever(pull, { * // Logs: "Processing: 1", "Processing: 2", "Processing: 3" * ``` * - * @since 2.0.0 * @category execution + * @since 4.0.0 */ export const runForEach = /*#__PURE__*/dual(2, (self, f) => runWith(self, pull => Effect.forever(Effect.flatMap(pull, f), { disableYield: true }))); /** - * @since 2.0.0 + * Runs a channel and applies an effectful predicate to each output element + * until the predicate returns `false`. + * + * **Details** + * + * Returning `true` continues consuming the channel. Returning `false` stops + * consumption early. The returned effect completes with `void`. + * * @category execution + * @since 4.0.0 */ export const runForEachWhile = /*#__PURE__*/dual(2, (self, f) => runWith(self, pull => pull.pipe(Effect.flatMap(f), Effect.flatMap(cont => cont ? Effect.void : Cause.done()), Effect.forever({ disableYield: true @@ -3123,7 +3671,8 @@ export const runForEachWhile = /*#__PURE__*/dual(2, (self, f) => runWith(self, p /** * Runs a channel and collects all output elements into an array. * - * @example + * **Example** (Collecting channel output) + * * ```ts * import { Channel, Data } from "effect" * @@ -3140,8 +3689,8 @@ export const runForEachWhile = /*#__PURE__*/dual(2, (self, f) => runWith(self, p * // Effect.runSync(collectEffect) // Returns: [1, 2, 3, 4, 5] * ``` * - * @since 2.0.0 * @category execution + * @since 2.0.0 */ export const runCollect = self => runFold(self, () => [], (acc, o) => { acc.push(o); @@ -3150,13 +3699,21 @@ export const runCollect = self => runFold(self, () => [], (acc, o) => { /** * Runs a channel and outputs the done value. * - * @since 4.0.0 * @category execution + * @since 4.0.0 */ export const runDone = self => runWith(self, identity_, Effect.succeed); /** - * @since 2.0.0 + * Runs a channel until the first output element is available, returning it in + * an `Option`. + * + * **Details** + * + * Returns `Option.some` with the first output element, or `Option.none` if the + * channel completes without emitting output. + * * @category execution + * @since 4.0.0 */ export const runHead = self => Effect.suspend(() => { let head = Option.none(); @@ -3166,8 +3723,16 @@ export const runHead = self => Effect.suspend(() => { })), () => Effect.succeed(head)); }); /** - * @since 2.0.0 + * Runs a channel to completion and returns the last output element in an + * `Option`. + * + * **Details** + * + * Returns `Option.some` with the last emitted element, or `Option.none` if the + * channel completes without emitting output. + * * @category execution + * @since 4.0.0 */ export const runLast = self => Effect.suspend(() => { const absent = Symbol(); // Prevent boxing @@ -3182,7 +3747,8 @@ export const runLast = self => Effect.suspend(() => { /** * Runs a channel and folds over all output elements with an accumulator. * - * @example + * **Example** (Folding channel output) + * * ```ts * import { Channel, Data } from "effect" * @@ -3199,8 +3765,8 @@ export const runLast = self => Effect.suspend(() => { * // Effect.runSync(sumEffect) // Returns: 15 * ``` * - * @since 2.0.0 * @category execution + * @since 4.0.0 */ export const runFold = /*#__PURE__*/dual(3, (self, initial, f) => Effect.suspend(() => { let state = initial(); @@ -3213,8 +3779,21 @@ export const runFold = /*#__PURE__*/dual(3, (self, initial, f) => Effect.suspend }), () => Effect.succeed(state)); })); /** - * @since 2.0.0 + * Runs a channel and effectfully folds all output elements with an accumulator. + * + * **When to use** + * + * Use when folding channel output needs effects, services, or an additional + * failure channel during accumulation. + * + * **Details** + * + * The initial accumulator is evaluated lazily. Each output element is passed to + * the effectful accumulator function. The returned effect succeeds with the + * final accumulator value. + * * @category execution + * @since 4.0.0 */ export const runFoldEffect = /*#__PURE__*/dual(3, (self, initial, f) => Effect.suspend(() => { let state = initial(); @@ -3227,9 +3806,16 @@ export const runFoldEffect = /*#__PURE__*/dual(3, (self, initial, f) => Effect.s }), () => Effect.succeed(state)); })); /** - * Converts a channel to a Pull data structure for low-level consumption. + * Converts a channel to a scoped `Pull` for low-level consumption. + * + * **Details** + * + * The effect requires a `Scope`. The returned pull should be consumed only + * while that scope remains open. Pulls are serialized so only one pull is + * evaluated at a time. + * + * **Example** (Converting channels to pulls) * - * @example * ```ts * import { Channel, Data, Effect } from "effect" * @@ -3248,8 +3834,8 @@ export const runFoldEffect = /*#__PURE__*/dual(3, (self, initial, f) => Effect.s * // Use the Pull to manually consume elements * ``` * + * @category destructors * @since 2.0.0 - * @category Destructors */ export const toPull = /*#__PURE__*/Effect.fnUntraced(function* (self) { const semaphore = Semaphore.makeUnsafe(1); @@ -3264,7 +3850,8 @@ Effect.catchCause(cause => Effect.succeed(Effect.failCause(cause)))); /** * Converts a channel to a Pull within an existing scope. * - * @example + * **Example** (Converting channels to scoped pulls) + * * ```ts * import { Channel, Data, Effect, Scope } from "effect" * @@ -3283,13 +3870,21 @@ Effect.catchCause(cause => Effect.succeed(Effect.failCause(cause)))); * }) * ``` * + * @category destructors * @since 4.0.0 - * @category Destructors */ export const toPullScoped = (self, scope) => toTransform(self)(Cause.done(), scope); /** + * Runs a channel and offers each output element into a queue. + * + * **Details** + * + * When the channel completes, the queue is ended. When the channel fails, the + * queue is failed with the channel's cause. The returned effect itself + * completes with `void`. + * + * @category destructors * @since 4.0.0 - * @category Destructors */ export const runIntoQueue = /*#__PURE__*/dual(args => isChannel(args[0]), (self, queue) => Effect.uninterruptibleMask(restore => runForEach(self, value => Queue.offer(queue, value)).pipe(restore, Effect.exit, Effect.flatMap(exit => { if (Exit.isSuccess(exit)) { @@ -3300,8 +3895,17 @@ export const runIntoQueue = /*#__PURE__*/dual(args => isChannel(args[0]), (self, return Effect.void; })))); /** + * Runs a channel that emits non-empty arrays and offers each array element into + * a queue. + * + * **Details** + * + * When the channel completes, the queue is ended. When the channel fails, the + * queue is failed with the channel's cause. The returned effect itself + * completes with `void`. + * + * @category destructors * @since 4.0.0 - * @category Destructors */ export const runIntoQueueArray = /*#__PURE__*/dual(args => isChannel(args[0]), (self, queue) => Effect.uninterruptibleMask(restore => runForEach(self, value => Queue.offerAll(queue, value)).pipe(restore, Effect.exit, Effect.flatMap(exit => { if (Exit.isSuccess(exit)) { @@ -3312,9 +3916,17 @@ export const runIntoQueueArray = /*#__PURE__*/dual(args => isChannel(args[0]), ( return Effect.void; })))); /** - * Converts a channel to a queue for concurrent consumption. + * Creates a scoped queue and forks the channel to feed it for concurrent + * consumption. + * + * **Details** + * + * Output elements are offered to the queue. Channel completion and failure are + * signaled through the queue. The queue is shut down when the surrounding scope + * closes. + * + * **Example** (Converting channels to queues) * - * @example * ```ts * import { Channel, Data } from "effect" * @@ -3332,8 +3944,8 @@ export const runIntoQueueArray = /*#__PURE__*/dual(args => isChannel(args[0]), ( * // Multiple consumers can read from the queue * ``` * - * @since 4.0.0 - * @category Destructors + * @category destructors + * @since 2.0.0 */ export const toQueue = /*#__PURE__*/dual(args => isChannel(args[0]), /*#__PURE__*/Effect.fnUntraced(function* (self, options) { const scope = yield* Effect.scope; @@ -3346,8 +3958,16 @@ export const toQueue = /*#__PURE__*/dual(args => isChannel(args[0]), /*#__PURE__ return queue; })); /** + * Creates a scoped queue and forks an array-emitting channel to feed it. + * + * **Details** + * + * Each element inside emitted non-empty arrays is offered to the queue. Channel + * completion and failure are signaled through the queue. The queue is shut down + * when the surrounding scope closes. + * + * @category destructors * @since 4.0.0 - * @category Destructors */ export const toQueueArray = /*#__PURE__*/dual(args => isChannel(args[0]), /*#__PURE__*/Effect.fnUntraced(function* (self, options) { const scope = yield* Effect.scope; @@ -3362,11 +3982,13 @@ export const toQueueArray = /*#__PURE__*/dual(args => isChannel(args[0]), /*#__P /** * Converts a channel to a PubSub for concurrent consumption. * + * **Details** + * * `shutdownOnEnd` indicates whether the PubSub should be shut down when the * channel ends. By default this is `true`. * - * @since 4.0.0 - * @category Destructors + * @category destructors + * @since 2.0.0 */ export const toPubSub = /*#__PURE__*/dual(2, /*#__PURE__*/Effect.fnUntraced(function* (self, options) { const pubsub = yield* makePubSub(options); @@ -3376,19 +3998,30 @@ export const toPubSub = /*#__PURE__*/dual(2, /*#__PURE__*/Effect.fnUntraced(func return pubsub; })); /** + * Runs a channel and publishes each output element to a `PubSub`. + * + * **Details** + * + * The channel's output values are published as individual PubSub messages. Use + * `options.shutdownOnEnd` to shut down the PubSub when channel execution ends. + * + * @category destructors * @since 4.0.0 - * @category Destructors */ export const runIntoPubSub = /*#__PURE__*/dual(args => isChannel(args[0]), (self, pubsub, options) => runForEach(self, value => PubSub.publish(pubsub, value)).pipe(options?.shutdownOnEnd === true ? Effect.ensuring(PubSub.shutdown(pubsub)) : identity_)); const makePubSub = options => Effect.acquireRelease(options.capacity === "unbounded" ? PubSub.unbounded(options) : options.strategy === "dropping" ? PubSub.dropping(options) : options.strategy === "sliding" ? PubSub.sliding(options) : PubSub.bounded(options), PubSub.shutdown); /** - * Converts a channel to a PubSub for concurrent consumption. + * Converts an array-emitting channel to a scoped `PubSub` for concurrent + * consumption. * - * `shutdownOnEnd` indicates whether the PubSub should be shut down when the - * channel ends. By default this is `true`. + * **Details** * + * Each element inside emitted non-empty arrays is published as an individual + * PubSub message. `shutdownOnEnd` indicates whether the PubSub should be shut + * down when the channel ends. By default this is `true`. + * + * @category destructors * @since 4.0.0 - * @category Destructors */ export const toPubSubArray = /*#__PURE__*/dual(2, /*#__PURE__*/Effect.fnUntraced(function* (self, options) { const pubsub = yield* makePubSub(options); @@ -3398,15 +4031,30 @@ export const toPubSubArray = /*#__PURE__*/dual(2, /*#__PURE__*/Effect.fnUntraced return pubsub; })); /** + * Runs an array-emitting channel and publishes each array element to a + * `PubSub`. + * + * **Details** + * + * Each element inside emitted non-empty arrays is published as an individual + * PubSub message. Use `options.shutdownOnEnd` to shut down the PubSub when + * channel execution ends. + * + * @category destructors * @since 4.0.0 - * @category Destructors */ export const runIntoPubSubArray = /*#__PURE__*/dual(args => isChannel(args[0]), (self, pubsub, options) => runForEach(self, value => PubSub.publishAll(pubsub, value)).pipe(options?.shutdownOnEnd === true ? Effect.ensuring(PubSub.shutdown(pubsub)) : identity_)); /** - * Converts a channel to a PubSub for concurrent consumption. + * Converts a channel to a scoped `PubSub` of `Take` values. + * + * **Details** * + * Emitted non-empty arrays are published as output `Take` values. When the + * channel ends, its final `Exit` is published so subscribers can observe + * completion or failure. + * + * @category destructors * @since 4.0.0 - * @category Destructors */ export const toPubSubTake = /*#__PURE__*/dual(2, /*#__PURE__*/Effect.fnUntraced(function* (self, options) { const pubsub = yield* makePubSub(options); diff --git a/.opencode/node_modules/effect/dist/Channel.js.map b/.opencode/node_modules/effect/dist/Channel.js.map index d3324fee597e9001dab85d7bcee057a12b03544a..9ee309aaa5bef2f6f53f33d9edba68eb3fb62a05 100644 --- a/.opencode/node_modules/effect/dist/Channel.js.map +++ b/.opencode/node_modules/effect/dist/Channel.js.map @@ -1 +1 @@ -{"version":3,"file":"Channel.js","names":["Arr","Cause","Chunk","Context","Effect","Exit","Fiber","constant","constTrue","constVoid","dual","identity","identity_","ClockRef","endSpan","addSpanStackTrace","Iterable","Latch","Layer","Option","pipeArguments","hasProperty","isTagged","PubSub","Pull","Queue","TracerTimingEnabled","Result","Schedule","Scope","Semaphore","String","Take","ParentSpan","TypeId","isChannel","u","ChannelProto","_Env","_InErr","_InElem","_OutErr","_OutElem","pipe","arguments","fromTransform","transform","self","Object","create","upstream","scope","catchCause","cause","succeed","failCause","transformPull","f","flatMap","toTransform","pull","fromPull","effect","_","__","fromTransformBracket","fnUntraced","closableScope","forkUnsafe","onCause","close","doneExitFromCause","onError","channel","DefaultChunkSize","asyncQueue","options","make","capacity","bufferSize","strategy","tap","queue","addFinalizer","shutdown","forkIn","provide","callback","map","take","callbackArray","takeAll","suspend","evaluate","acquireUseRelease","acquire","use","release","forkedScope","option","none","addFinalizerExit","exit","isSome","value","void","uninterruptible","some","acquireRelease","unwrap","fromIterator","iterator","sync","iter","state","next","done","fromArray","array","index","length","fromChunk","chunk","toReadonlyArray","fromIteratorArray","chunkSize","_tag","buffer","push","fromIterable","iterable","Symbol","fromIterableArray","fromEffect","end","endSync","empty","never","fail","error","failSync","failCauseSync","die","defect","fromEffectDone","fromEffectDrain","fromEffectTake","toPull","fromQueue","fromQueueArray","_scope","fromSubscription","subscription","onInterrupt","fromSubscriptionArray","fromPubSub","pubsub","subscribe","fromPubSubArray","fromPubSubTake","sub","fromSchedule","schedule","toStepWithSleep","step","fromAsyncIterable","asyncIterator","return","promise","tryPromise","try","catch","result","fromAsyncIterableArray","of","i","o","mapDone","mapDoneEffect","catchDone","concurrencyIsSequential","concurrency","undefined","mapEffect","args","mapEffectSequential","mapEffectConcurrent","concurrencyN","Number","MAX_SAFE_INTEGER","bounded","runFork","runForkWith","context","trackFiber","runIn","unordered","semaphore","makeUnsafe","handle","matchCauseEffect","onFailure","onSuccess","offer","forever","disableYield","withPermits","effects","flatten","errorCause","onExit","failCauseUnsafe","fiber","addObserver","join","andThen","mapInput","el","mapInputError","err","isDone","a","as","flatMapSequential","flatMapConcurrent","childPull","childScope","makePull","flatMapEager","catchHalt","finalizers","size","mergeAll","concatWith","currentPull","leftover","concat","that","combine","s","leftPull","rightPull","combinedPull","s1","orElseIfEmpty","channels","flattenArray","pump","loop","array_","flattenTake","drain","repeat","toStepWithMetadata","meta","CurrentMetadata","defaultValue","provideServiceEffect","meta_","pullWithStep","filter","predicate","elem","filterMap","isFailure","success","filterEffect","passes","filterMapEffect","filterArray","arr","isReadonlyArrayNonEmpty","filterMapArray","isSuccess","filterArrayEffect","filterMapArrayEffect","mapAccum","initial","current","pullNext","cause_","b","onHalt","isArray","newState","values","scan","scanEffect","isFirst","isDoneCause","toClose","tapCause","catchCauseIf","catchCauseFilter","failure","catch_","findError","e","tapError","asVoid","catchIf","orElse","catchFilter","catchTag","k","pred","Array","includes","catchReason","errorTag","reasonTag","reason","catchReasons","cases","keys","isString","Set","has","unwrapReason","mapError","orDie","ignore","log","logEffect","logWithLevel","hasFails","ignoreCause_","ignoreCause","retry","selfWithMeta","withReset","onFirst","resolvedSchedule","switchMap","switch","switch_","Math","max","doneLatch","fibers","gen","headUnsafe","delete","open","interrupt","yieldNow","halt","filterDone","forkChild","closeUnsafe","add","whenOpen","merge","left","right","haltStrategy","side","runSide","mergeEffect","splitLines","stringBuilder","midCRLF","splitLinesArray","chunkBuilder","pushLine","segment","str","from","indexOfCR","indexOf","indexOfLF","substring","pullOrFlush","matchEffect","onDone","last","lines","decodeText","encoding","decoder","TextDecoder","line","decode","encodeText","encoder","TextEncoder","encode","pipeTo","pipeToOrFail","upstreamPull","Done","catchDefect","pull_","scoped","embedInput","input","bufferArray","offerAll","interruptWhen","haltWhen","haltCause","finalizer","onStart","pullFirst","element","onEnd","ensuring","runWith","contextWith","provideContext","provideService","key","service","layer","isContext","local","buildWithMemoMap","makeMemoMapUnsafe","buildWithScope","updateContext","toProvide","updateService","get","withSpan","dataFirst","name","withSpanImpl","makeSpan","span","withFiber","clock","getRef","timingEnabled","Do","let_","let","bind","bindTo","runCount","runFold","acc","runDrain","runForEach","runForEachWhile","cont","runCollect","runDone","runHead","head","asSome","head_","runLast","absent","item","succeedNone","succeedSome","whileLoop","while","body","runFoldEffect","toPullScoped","runIntoQueue","uninterruptibleMask","restore","endUnsafe","runIntoQueueArray","toQueue","toQueueArray","toPubSub","makePubSub","forkScoped","runIntoPubSub","shutdownOnEnd","publish","unbounded","dropping","sliding","toPubSubArray","runIntoPubSubArray","publishAll","toPubSubTake"],"sources":["../src/Channel.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0DA;AACA,OAAO,KAAKA,GAAG,MAAM,YAAY;AACjC,OAAO,KAAKC,KAAK,MAAM,YAAY;AACnC,OAAO,KAAKC,KAAK,MAAM,YAAY;AACnC,OAAO,KAAKC,OAAO,MAAM,cAAc;AACvC,OAAO,KAAKC,MAAM,MAAM,aAAa;AACrC,OAAO,KAAKC,IAAI,MAAM,WAAW;AACjC,OAAO,KAAKC,KAAK,MAAM,YAAY;AAGnC,SAASC,QAAQ,EAAEC,SAAS,EAAEC,SAAS,EAAEC,IAAI,EAAEC,QAAQ,IAAIC,SAAS,QAAQ,eAAe;AAC3F,SAASC,QAAQ,EAAEC,OAAO,QAAQ,sBAAsB;AACxD,SAASC,iBAAiB,QAAQ,sBAAsB;AACxD,OAAO,KAAKC,QAAQ,MAAM,eAAe;AACzC,OAAO,KAAKC,KAAK,MAAM,YAAY;AACnC,OAAO,KAAKC,KAAK,MAAM,YAAY;AAEnC,OAAO,KAAKC,MAAM,MAAM,aAAa;AAErC,SAASC,aAAa,QAAQ,eAAe;AAE7C,SAASC,WAAW,EAAEC,QAAQ,QAAQ,gBAAgB;AACtD,OAAO,KAAKC,MAAM,MAAM,aAAa;AACrC,OAAO,KAA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,UAAU,CAMKzY,OAAO,CAAC;EAC7C,OAAO8W,UAAU,CAAC3Y,IAAI,EAAGyD,KAAK,IAAKjF,MAAM,CAACkc,OAAO,CAAC7T,MAAM,EAAEpD,KAAK,CAAC,CAAC,CAAC7D,IAAI,CACpEvC,MAAM,CAAC8M,MAAM,CAAE5G,IAAI,IAAK/E,MAAM,CAACkc,OAAO,CAAC7T,MAAM,EAAEtD,IAAI,CAAC,CAAC,EACrDlG,MAAM,CAACkd,UAAU,CAClB;EACD,OAAO1T,MAAM;AACf,CAAC,CAAC,CACH","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"Channel.js","names":["Arr","Cause","Chunk","Context","Effect","Exit","Fiber","constant","constTrue","constVoid","dual","identity","identity_","ClockRef","endSpan","addSpanStackTrace","Iterable","Latch","Layer","Option","pipeArguments","hasProperty","isTagged","PubSub","Pull","Queue","TracerTimingEnabled","Result","Schedule","Scope","Semaphore","String","Take","ParentSpan","TypeId","isChannel","u","ChannelProto","_Env","_InErr","_InElem","_OutErr","_OutElem","pipe","arguments","fromTransform","transform","self","Object","create","upstream","scope","catchCause","cause","succeed","failCause","transformPull","f","flatMap","toTransform","pull","fromPull","effect","_","__","fromTransformBracket","fnUntraced","closableScope","forkUnsafe","onCause","close","doneExitFromCause","onError","channel","DefaultChunkSize","asyncQueue","options","make","capacity","bufferSize","strategy","tap","queue","addFinalizer","shutdown","forkIn","provide","callback","map","take","callbackArray","takeAll","suspend","evaluate","acquireUseRelease","acquire","use","release","forkedScope","option","none","addFinalizerExit","exit","isSome","value","void","uninterruptible","some","acquireRelease","unwrap","fromIterator","iterator","sync","iter","state","next","done","fromArray","array","index","length","fromChunk","chunk","toReadonlyArray","fromIteratorArray","chunkSize","_tag","buffer","push","fromIterable","iterable","Symbol","fromIterableArray","fromEffect","end","endSync","empty","never","fail","error","failSync","failCauseSync","die","defect","fromEffectDone","fromEffectDrain","fromEffectTake","toPull","fromQueue","fromQueueArray","_scope","fromSubscription","subscription","onInterrupt","fromSubscriptionArray","fromPubSub","pubsub","subscribe","fromPubSubArray","fromPubSubTake","sub","fromSchedule","schedule","toStepWithSleep","step","fromAsyncIterable","asyncIterator","return","promise","tryPromise","try","catch","result","fromAsyncIterableArray","of","i","o","mapDone","mapDoneEffect","catchDone","concurrencyIsSequential","concurrency","undefined","mapEffect","args","mapEffectSequential","mapEffectConcurrent","concurrencyN","Number","MAX_SAFE_INTEGER","bounded","runFork","runForkWith","context","trackFiber","runIn","unordered","semaphore","makeUnsafe","handle","matchCauseEffect","onFailure","onSuccess","offer","forever","disableYield","withPermits","effects","flatten","errorCause","onExit","failCauseUnsafe","fiber","addObserver","join","andThen","mapInput","el","mapInputError","err","isDone","a","as","flatMapSequential","flatMapConcurrent","childPull","childScope","makePull","flatMapEager","catchHalt","finalizers","size","mergeAll","concatWith","currentPull","leftover","concat","that","combine","s","leftPull","rightPull","combinedPull","s1","orElseIfEmpty","channels","flattenArray","pump","loop","array_","flattenTake","drain","repeat","toStepWithMetadata","meta","CurrentMetadata","defaultValue","provideServiceEffect","meta_","pullWithStep","filter","predicate","elem","filterMap","isFailure","success","filterEffect","passes","filterMapEffect","filterArray","arr","isReadonlyArrayNonEmpty","filterMapArray","isSuccess","filterArrayEffect","filterMapArrayEffect","mapAccum","initial","current","pullNext","cause_","b","onHalt","isArray","newState","values","scan","scanEffect","isFirst","isDoneCause","toClose","tapCause","catchCauseIf","catchCauseFilter","failure","catch_","findError","e","tapError","asVoid","catchIf","orElse","catchFilter","catchTag","k","pred","Array","includes","catchReason","errorTag","reasonTag","reason","catchReasons","cases","keys","isString","Set","has","unwrapReason","mapError","orDie","ignore","log","logEffect","logWithLevel","hasFails","ignoreCause_","ignoreCause","retry","selfWithMeta","withReset","onFirst","resolvedSchedule","switchMap","switch","switch_","Math","max","doneLatch","fibers","gen","headUnsafe","delete","open","interrupt","yieldNow","halt","filterDone","forkChild","closeUnsafe","add","whenOpen","merge","left","right","haltStrategy","side","runSide","mergeEffect","splitLines","stringBuilder","midCRLF","splitLinesArray","chunkBuilder","pushLine","segment","str","from","indexOfCR","indexOf","indexOfLF","substring","pullOrFlush","matchEffect","onDone","last","lines","decodeText","encoding","decoder","TextDecoder","streamOptions","stream","line","decode","encodeText","encoder","TextEncoder","encode","pipeTo","pipeToOrFail","upstreamPull","Done","catchDefect","pull_","scoped","embedInput","input","bufferArray","offerAll","interruptWhen","haltWhen","haltCause","finalizer","onStart","pullFirst","element","onEnd","ensuring","runWith","contextWith","provideContext","provideService","key","service","layer","isContext","local","buildWithMemoMap","makeMemoMapUnsafe","buildWithScope","updateContext","toProvide","updateService","get","withSpan","dataFirst","name","withSpanImpl","makeSpan","span","withFiber","clock","getRef","timingEnabled","Do","let_","let","bind","bindTo","runCount","runFold","acc","runDrain","runForEach","runForEachWhile","cont","runCollect","runDone","runHead","head","asSome","head_","runLast","absent","item","succeedNone","succeedSome","whileLoop","while","body","runFoldEffect","toPullScoped","runIntoQueue","uninterruptibleMask","restore","endUnsafe","runIntoQueueArray","toQueue","toQueueArray","toPubSub","makePubSub","forkScoped","runIntoPubSub","shutdownOnEnd","publish","unbounded","dropping","sliding","toPubSubArray","runIntoPubSubArray","publishAll","toPubSubTake"],"sources":["../src/Channel.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;;AAWA;AACA,OAAO,KAAKA,GAAG,MAAM,YAAY;AACjC,OAAO,KAAKC,KAAK,MAAM,YAAY;AACnC,OAAO,KAAKC,KAAK,MAAM,YAAY;AACnC,OAAO,KAAKC,OAAO,MAAM,cAAc;AACvC,OAAO,KAAKC,MAAM,MAAM,aAAa;AACrC,OAAO,KAAKC,IAAI,MAAM,WAAW;AACjC,OAAO,KAAKC,KAAK,MAAM,YAAY;AAGnC,SAASC,QAAQ,EAAEC,SAAS,EAAEC,SAAS,EAAEC,IAAI,EAAEC,QAAQ,IAAIC,SAAS,QAAQ,eAAe;AAC3F,SAASC,QAAQ,EAAEC,OAAO,QAAQ,sBAAsB;AACxD,SAASC,iBAAiB,QAAQ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Bxd,IAAI,CACN,CAAC,eACDN,MAAM,CAAC8D,UAAU,CAAC,WAChBnB,IAAkG,EAClG6B,OAOC;EAED,MAAMgF,MAAM,GAAG,OAAO2T,UAAU,CAYK3Y,OAAO,CAAC;EAC7C,OAAOgX,UAAU,CAAC7Y,IAAI,EAAGyD,KAAK,IAAKjF,MAAM,CAACoc,OAAO,CAAC/T,MAAM,EAAEpD,KAAK,CAAC,CAAC,CAAC7D,IAAI,CACpEvC,MAAM,CAAC8M,MAAM,CAAE5G,IAAI,IAAK/E,MAAM,CAACoc,OAAO,CAAC/T,MAAM,EAAEtD,IAAI,CAAC,CAAC,EACrDlG,MAAM,CAACod,UAAU,CAClB;EACD,OAAO5T,MAAM;AACf,CAAC,CAAC,CACH","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/ChannelSchema.d.ts b/.opencode/node_modules/effect/dist/ChannelSchema.d.ts index 3ac7ac42bdb50dc4481d0db026ddb1f2ce5f863e..339292272cecae6954342e57595c72eedde7066e 100644 --- a/.opencode/node_modules/effect/dist/ChannelSchema.d.ts +++ b/.opencode/node_modules/effect/dist/ChannelSchema.d.ts @@ -1,45 +1,165 @@ /** + * Schema adapters for `Channel` boundaries. The helpers encode typed channel + * chunks before they cross an encoded boundary, decode encoded chunks before + * application code receives them, and wrap bidirectional channels so callers + * work with schema-typed input and output while the inner channel uses encoded + * values. + * * @since 4.0.0 */ import type * as Arr from "./Array.ts"; import * as Channel from "./Channel.ts"; import * as Schema from "./Schema.ts"; /** - * @since 4.0.0 + * Creates a channel that encodes non-empty chunks of schema values into the + * schema's encoded representation. + * + * **When to use** + * + * Use to encode typed channel input into the schema's encoded representation + * before passing chunks to an encoded downstream boundary. + * + * **Details** + * + * Encoding failures are emitted as `SchemaError`, and any encoding services + * required by the schema become channel requirements. + * + * @see {@link encodeUnknown} for encoded output chunks that should be typed as `unknown` + * @see {@link decode} for the inverse channel that decodes encoded chunks into schema values + * * @category constructors + * @since 4.0.0 */ export declare const encode: (schema: S) => () => Channel.Channel, IE | Schema.SchemaError, Done, Arr.NonEmptyReadonlyArray, IE, Done, S["EncodingServices"]>; /** - * @since 4.0.0 + * Creates an `encode` channel variant whose encoded output chunks are typed as + * `unknown`. + * + * **When to use** + * + * Use when a channel boundary should encode typed input chunks while the encoded + * output representation is intentionally untyped. + * + * @see {@link encode} for the variant that preserves the schema encoded type + * * @category constructors + * @since 4.0.0 */ export declare const encodeUnknown: (schema: S) => () => Channel.Channel, IE | Schema.SchemaError, Done, Arr.NonEmptyReadonlyArray, IE, Done, S["EncodingServices"]>; /** - * @since 4.0.0 + * Creates a channel that decodes non-empty chunks from the schema's encoded + * representation into schema values. + * + * **When to use** + * + * Use to validate and decode encoded channel output into typed schema values + * before application code consumes it. + * + * **Details** + * + * Decoding failures are emitted as `SchemaError`, and any decoding services + * required by the schema become channel requirements. + * + * @see {@link decodeUnknown} for boundaries where the encoded input side is intentionally untyped + * @see {@link encode} for the inverse adapter that encodes typed schema values + * * @category constructors + * @since 4.0.0 */ export declare const decode: (schema: S) => () => Channel.Channel, IE | Schema.SchemaError, Done, Arr.NonEmptyReadonlyArray, IE, Done, S["DecodingServices"]>; /** - * @since 4.0.0 + * Creates a `decode` channel variant for schema-decoding channel boundaries. + * + * **When to use** + * + * Use when you need an intentionally unknown or untyped encoded input while + * keeping only the decoded output statically typed according to the schema. + * + * **Details** + * + * The channel decodes non-empty encoded chunks into schema values, emits + * `SchemaError` when decoding fails, and requires the schema's decoding + * services. + * + * @see {@link decode} for the typed variant that preserves the schema's encoded type + * * @category constructors + * @since 4.0.0 */ export declare const decodeUnknown: (schema: S) => () => Channel.Channel, IE | Schema.SchemaError, Done, Arr.NonEmptyReadonlyArray, IE, Done, S["DecodingServices"]>; /** - * @since 4.0.0 + * Wraps a channel so callers work with typed input and output chunks while the + * wrapped channel uses encoded chunks. + * + * **When to use** + * + * Use to expose typed input and output at a bidirectional channel boundary + * while the wrapped channel continues to operate on schema-encoded chunks. + * + * **Details** + * + * Values sent into the resulting channel are encoded with `inputSchema` before + * reaching the wrapped channel. Values emitted by the wrapped channel are + * decoded with `outputSchema` before they are emitted downstream. Schema + * failures are surfaced as `SchemaError`. + * + * @see {@link duplexUnknown} for the variant whose encoded side is intentionally untyped + * @see {@link encode} for encoding typed chunks at one-way channel boundaries + * @see {@link decode} for decoding encoded chunks at one-way channel boundaries + * * @category combinators + * @since 4.0.0 */ export declare const duplex: { /** - * @since 4.0.0 + * Wraps a channel so callers work with typed input and output chunks while the + * wrapped channel uses encoded chunks. + * + * **When to use** + * + * Use to expose typed input and output at a bidirectional channel boundary + * while the wrapped channel continues to operate on schema-encoded chunks. + * + * **Details** + * + * Values sent into the resulting channel are encoded with `inputSchema` before + * reaching the wrapped channel. Values emitted by the wrapped channel are + * decoded with `outputSchema` before they are emitted downstream. Schema + * failures are surfaced as `SchemaError`. + * + * @see {@link duplexUnknown} for the variant whose encoded side is intentionally untyped + * @see {@link encode} for encoding typed chunks at one-way channel boundaries + * @see {@link decode} for decoding encoded chunks at one-way channel boundaries + * * @category combinators + * @since 4.0.0 */ (options: { readonly inputSchema: In; readonly outputSchema: Out; }): (self: Channel.Channel, OutErr, OutDone, Arr.NonEmptyReadonlyArray, Schema.SchemaError | InErr, InDone, R>) => Channel.Channel, Schema.SchemaError | OutErr, OutDone, Arr.NonEmptyReadonlyArray, InErr, InDone, R | In["EncodingServices"] | Out["DecodingServices"]>; /** - * @since 4.0.0 + * Wraps a channel so callers work with typed input and output chunks while the + * wrapped channel uses encoded chunks. + * + * **When to use** + * + * Use to expose typed input and output at a bidirectional channel boundary + * while the wrapped channel continues to operate on schema-encoded chunks. + * + * **Details** + * + * Values sent into the resulting channel are encoded with `inputSchema` before + * reaching the wrapped channel. Values emitted by the wrapped channel are + * decoded with `outputSchema` before they are emitted downstream. Schema + * failures are surfaced as `SchemaError`. + * + * @see {@link duplexUnknown} for the variant whose encoded side is intentionally untyped + * @see {@link encode} for encoding typed chunks at one-way channel boundaries + * @see {@link decode} for decoding encoded chunks at one-way channel boundaries + * * @category combinators + * @since 4.0.0 */ (self: Channel.Channel, OutErr, OutDone, Arr.NonEmptyReadonlyArray, Schema.SchemaError | InErr, InDone, R>, options: { readonly inputSchema: In; @@ -47,21 +167,69 @@ export declare const duplex: { }): Channel.Channel, Schema.SchemaError | OutErr, OutDone, Arr.NonEmptyReadonlyArray, InErr, InDone, R | In["EncodingServices"] | Out["DecodingServices"]>; }; /** - * @since 4.0.0 + * Wraps a bidirectional channel whose encoded chunks are typed as `unknown`. + * + * **When to use** + * + * Use when you need a bidirectional channel to cross an encoded boundary whose + * chunk types are intentionally erased, while callers send and receive + * schema-typed chunks. + * + * **Details** + * + * The resulting channel accepts typed input chunks, encodes them with + * `inputSchema`, decodes unknown output chunks with `outputSchema`, and + * surfaces schema failures as `SchemaError`. + * + * @see {@link duplex} for the variant that preserves the schema encoded types on the wrapped channel + * * @category combinators + * @since 4.0.0 */ export declare const duplexUnknown: { /** - * @since 4.0.0 + * Wraps a bidirectional channel whose encoded chunks are typed as `unknown`. + * + * **When to use** + * + * Use when you need a bidirectional channel to cross an encoded boundary whose + * chunk types are intentionally erased, while callers send and receive + * schema-typed chunks. + * + * **Details** + * + * The resulting channel accepts typed input chunks, encodes them with + * `inputSchema`, decodes unknown output chunks with `outputSchema`, and + * surfaces schema failures as `SchemaError`. + * + * @see {@link duplex} for the variant that preserves the schema encoded types on the wrapped channel + * * @category combinators + * @since 4.0.0 */ (options: { readonly inputSchema: In; readonly outputSchema: Out; }): (self: Channel.Channel, OutErr, OutDone, Arr.NonEmptyReadonlyArray, Schema.SchemaError | InErr, InDone, R>) => Channel.Channel, Schema.SchemaError | OutErr, OutDone, Arr.NonEmptyReadonlyArray, InErr, InDone, R | In["EncodingServices"] | Out["DecodingServices"]>; /** - * @since 4.0.0 + * Wraps a bidirectional channel whose encoded chunks are typed as `unknown`. + * + * **When to use** + * + * Use when you need a bidirectional channel to cross an encoded boundary whose + * chunk types are intentionally erased, while callers send and receive + * schema-typed chunks. + * + * **Details** + * + * The resulting channel accepts typed input chunks, encodes them with + * `inputSchema`, decodes unknown output chunks with `outputSchema`, and + * surfaces schema failures as `SchemaError`. + * + * @see {@link duplex} for the variant that preserves the schema encoded types on the wrapped channel + * * @category combinators + * @since 4.0.0 */ (self: Channel.Channel, OutErr, OutDone, Arr.NonEmptyReadonlyArray, Schema.SchemaError | InErr, InDone, R>, options: { readonly inputSchema: In; diff --git a/.opencode/node_modules/effect/dist/ChannelSchema.d.ts.map b/.opencode/node_modules/effect/dist/ChannelSchema.d.ts.map index 73a725fac13785f45e2c3f25cb1bb7b850b442b1..ed36643321e2ae50e54724b3553288f36756e191 100644 --- a/.opencode/node_modules/effect/dist/ChannelSchema.d.ts.map +++ b/.opencode/node_modules/effect/dist/ChannelSchema.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"ChannelSchema.d.ts","sourceRoot":"","sources":["../src/ChannelSchema.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,KAAK,GAAG,MAAM,YAAY,CAAA;AACtC,OAAO,KAAK,OAAO,MAAM,cAAc,CAAA;AAGvC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AAErC;;;GAGG;AACH,eAAO,MAAM,MAAM,GAAI,CAAC,SAAS,MAAM,CAAC,GAAG,EACzC,QAAQ,CAAC,MAEV,EAAE,GAAG,KAAK,EAAE,IAAI,GAAG,OAAO,OAAK,OAAO,CAAC,OAAO,CAC7C,GAAG,CAAC,qBAAqB,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,EACvC,EAAE,GAAG,MAAM,CAAC,WAAW,EACvB,IAAI,EACJ,GAAG,CAAC,qBAAqB,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,EACpC,EAAE,EACF,IAAI,EACJ,CAAC,CAAC,kBAAkB,CAAC,CAItB,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,aAAa,EAAE,CAAC,CAAC,SAAS,MAAM,CAAC,GAAG,EAC/C,MAAM,EAAE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\ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/ChannelSchema.js b/.opencode/node_modules/effect/dist/ChannelSchema.js index 97b06b1dd2abceb030460eea27003f6c80bbf62c..5d4cc0ba501c43bc976f2fc545dfbf8e1d8306ec 100644 --- a/.opencode/node_modules/effect/dist/ChannelSchema.js +++ b/.opencode/node_modules/effect/dist/ChannelSchema.js @@ -3,39 +3,131 @@ import * as Effect from "./Effect.js"; import { dual } from "./Function.js"; import * as Schema from "./Schema.js"; /** - * @since 4.0.0 + * Creates a channel that encodes non-empty chunks of schema values into the + * schema's encoded representation. + * + * **When to use** + * + * Use to encode typed channel input into the schema's encoded representation + * before passing chunks to an encoded downstream boundary. + * + * **Details** + * + * Encoding failures are emitted as `SchemaError`, and any encoding services + * required by the schema become channel requirements. + * + * @see {@link encodeUnknown} for encoded output chunks that should be typed as `unknown` + * @see {@link decode} for the inverse channel that decodes encoded chunks into schema values + * * @category constructors + * @since 4.0.0 */ export const encode = schema => () => { const encode = Schema.encodeEffect(Schema.NonEmptyArray(schema)); return Channel.fromTransform((upstream, _scope) => Effect.succeed(Effect.flatMap(upstream, chunk => encode(chunk)))); }; /** - * @since 4.0.0 + * Creates an `encode` channel variant whose encoded output chunks are typed as + * `unknown`. + * + * **When to use** + * + * Use when a channel boundary should encode typed input chunks while the encoded + * output representation is intentionally untyped. + * + * @see {@link encode} for the variant that preserves the schema encoded type + * * @category constructors + * @since 4.0.0 */ export const encodeUnknown = encode; /** - * @since 4.0.0 + * Creates a channel that decodes non-empty chunks from the schema's encoded + * representation into schema values. + * + * **When to use** + * + * Use to validate and decode encoded channel output into typed schema values + * before application code consumes it. + * + * **Details** + * + * Decoding failures are emitted as `SchemaError`, and any decoding services + * required by the schema become channel requirements. + * + * @see {@link decodeUnknown} for boundaries where the encoded input side is intentionally untyped + * @see {@link encode} for the inverse adapter that encodes typed schema values + * * @category constructors + * @since 4.0.0 */ export const decode = schema => () => { const decode = Schema.decodeEffect(Schema.NonEmptyArray(schema)); return Channel.fromTransform((upstream, _scope) => Effect.succeed(Effect.flatMap(upstream, chunk => decode(chunk)))); }; /** - * @since 4.0.0 + * Creates a `decode` channel variant for schema-decoding channel boundaries. + * + * **When to use** + * + * Use when you need an intentionally unknown or untyped encoded input while + * keeping only the decoded output statically typed according to the schema. + * + * **Details** + * + * The channel decodes non-empty encoded chunks into schema values, emits + * `SchemaError` when decoding fails, and requires the schema's decoding + * services. + * + * @see {@link decode} for the typed variant that preserves the schema's encoded type + * * @category constructors + * @since 4.0.0 */ export const decodeUnknown = decode; /** - * @since 4.0.0 + * Wraps a channel so callers work with typed input and output chunks while the + * wrapped channel uses encoded chunks. + * + * **When to use** + * + * Use to expose typed input and output at a bidirectional channel boundary + * while the wrapped channel continues to operate on schema-encoded chunks. + * + * **Details** + * + * Values sent into the resulting channel are encoded with `inputSchema` before + * reaching the wrapped channel. Values emitted by the wrapped channel are + * decoded with `outputSchema` before they are emitted downstream. Schema + * failures are surfaced as `SchemaError`. + * + * @see {@link duplexUnknown} for the variant whose encoded side is intentionally untyped + * @see {@link encode} for encoding typed chunks at one-way channel boundaries + * @see {@link decode} for decoding encoded chunks at one-way channel boundaries + * * @category combinators + * @since 4.0.0 */ export const duplex = /*#__PURE__*/dual(2, (self, options) => encode(options.inputSchema)().pipe(Channel.pipeTo(self), Channel.pipeTo(decode(options.outputSchema)()))); /** - * @since 4.0.0 + * Wraps a bidirectional channel whose encoded chunks are typed as `unknown`. + * + * **When to use** + * + * Use when you need a bidirectional channel to cross an encoded boundary whose + * chunk types are intentionally erased, while callers send and receive + * schema-typed chunks. + * + * **Details** + * + * The resulting channel accepts typed input chunks, encodes them with + * `inputSchema`, decodes unknown output chunks with `outputSchema`, and + * surfaces schema failures as `SchemaError`. + * + * @see {@link duplex} for the variant that preserves the schema encoded types on the wrapped channel + * * @category combinators + * @since 4.0.0 */ export const duplexUnknown = duplex; //# sourceMappingURL=ChannelSchema.js.map \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/ChannelSchema.js.map b/.opencode/node_modules/effect/dist/ChannelSchema.js.map index 67f0bb82bafc34f52169d97280657c986fc9e20e..a70b2b0b1333edb8f7e5e1ed5cf878bd6bbaa2b7 100644 --- a/.opencode/node_modules/effect/dist/ChannelSchema.js.map +++ b/.opencode/node_modules/effect/dist/ChannelSchema.js.map @@ -1 +1 @@ -{"version":3,"file":"ChannelSchema.js","names":["Channel","Effect","dual","Schema","encode","schema","encodeEffect","NonEmptyArray","fromTransform","upstream","_scope","succeed","flatMap","chunk","encodeUnknown","decode","decodeEffect","decodeUnknown","duplex","self","options","inputSchema","pipe","pipeTo","outputSchema","duplexUnknown"],"sources":["../src/ChannelSchema.ts"],"sourcesContent":[null],"mappings":"AAIA,OAAO,KAAKA,OAAO,MAAM,cAAc;AACvC,OAAO,KAAKC,MAAM,MAAM,aAAa;AACrC,SAASC,IAAI,QAAQ,eAAe;AACpC,OAAO,KAAKC,MAAM,MAAM,aAAa;AAErC;;;;AAIA,OAAO,MAAMC,MAAM,GACjBC,MAAS,IAEX,MAQI;EACF,MAAMD,MAAM,GAAGD,MAAM,CAACG,YAAY,CAACH,MAAM,CAACI,aAAa,CAACF,MAAM,CAAC,CAAC;EAChE,OAAOL,OAAO,CAACQ,aAAa,CAAC,CAACC,QAAQ,EAAEC,MAAM,KAAKT,MAAM,CAACU,OAAO,CAACV,MAAM,CAACW,OAAO,CAACH,QAAQ,EAAGI,KAAK,IAAKT,MAAM,CAACS,KAAK,CAAC,CAAC,CAAC,CAAC;AACxH,CAAC;AAED;;;;AAIA,OAAO,MAAMC,aAAa,GAUtBV,MAAM;AAEV;;;;AAIA,OAAO,MAAMW,MAAM,GACjBV,MAAS,IAEX,MAQI;EACF,MAAMU,MAAM,GAAGZ,MAAM,CAACa,YAAY,CAACb,MAAM,CAACI,aAAa,CAACF,MAAM,CAAC,CAAC;EAChE,OAAOL,OAAO,CAACQ,aAAa,CAAC,CAACC,QAAQ,EAAEC,MAAM,KAAKT,MAAM,CAACU,OAAO,CAACV,MAAM,CAACW,OAAO,CAACH,QAAQ,EAAGI,KAAK,IAAKE,MAAM,CAACF,KAAK,CAAC,CAAC,CAAC,CAAC;AACxH,CAAC;AAED;;;;AAIA,OAAO,MAAMI,aAAa,GAUtBF,MAAM;AAEV;;;;AAIA,OAAO,MAAMG,MAAM,gBAwDfhB,IAAI,CAAC,CAAC,EAAE,CACViB,IAQC,EACDC,OAGC,KAUDhB,MAAM,CAACgB,OAAO,CAACC,WAAW,CAAC,EAQlB,CAACC,IAAI,CACZtB,OAAO,CAACuB,MAAM,CAACJ,IAAI,CAAC,EACpBnB,OAAO,CAACuB,MAAM,CAACR,MAAM,CAACK,OAAO,CAACI,YAAY,CAAC,EAAE,CAAC,CAC/C,CAAC;AAEJ;;;;AAIA,OAAO,MAAMC,aAAa,GAwDtBP,MAAM","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"ChannelSchema.js","names":["Channel","Effect","dual","Schema","encode","schema","encodeEffect","NonEmptyArray","fromTransform","upstream","_scope","succeed","flatMap","chunk","encodeUnknown","decode","decodeEffect","decodeUnknown","duplex","self","options","inputSchema","pipe","pipeTo","outputSchema","duplexUnknown"],"sources":["../src/ChannelSchema.ts"],"sourcesContent":[null],"mappings":"AAUA,OAAO,KAAKA,OAAO,MAAM,cAAc;AACvC,OAAO,KAAKC,MAAM,MAAM,aAAa;AACrC,SAASC,IAAI,QAAQ,eAAe;AACpC,OAAO,KAAKC,MAAM,MAAM,aAAa;AAErC;;;;;;;;;;;;;;;;;;;;AAoBA,OAAO,MAAMC,MAAM,GACjBC,MAAS,IAEX,MAQI;EACF,MAAMD,MAAM,GAAGD,MAAM,CAACG,YAAY,CAACH,MAAM,CAACI,aAAa,CAACF,MAAM,CAAC,CAAC;EAChE,OAAOL,OAAO,CAACQ,aAAa,CAAC,CAACC,QAAQ,EAAEC,MAAM,KAAKT,MAAM,CAACU,OAAO,CAACV,MAAM,CAACW,OAAO,CAACH,QAAQ,EAAGI,KAAK,IAAKT,MAAM,CAACS,KAAK,CAAC,CAAC,CAAC,CAAC;AACxH,CAAC;AAED;;;;;;;;;;;;;;AAcA,OAAO,MAAMC,aAAa,GAUtBV,MAAM;AAEV;;;;;;;;;;;;;;;;;;;;AAoBA,OAAO,MAAMW,MAAM,GACjBV,MAAS,IAEX,MAQI;EACF,MAAMU,MAAM,GAAGZ,MAAM,CAACa,YAAY,CAACb,MAAM,CAACI,aAAa,CAACF,MAAM,CAAC,CAAC;EAChE,OAAOL,OAAO,CAACQ,aAAa,CAAC,CAACC,QAAQ,EAAEC,MAAM,KAAKT,MAAM,CAACU,OAAO,CAACV,MAAM,CAACW,OAAO,CAACH,QAAQ,EAAGI,KAAK,IAAKE,MAAM,CAACF,KAAK,CAAC,CAAC,CAAC,CAAC;AACxH,CAAC;AAED;;;;;;;;;;;;;;;;;;;AAmBA,OAAO,MAAMI,aAAa,GAUtBF,MAAM;AAEV;;;;;;;;;;;;;;;;;;;;;;;AAuBA,OAAO,MAAMG,MAAM,gBA8FfhB,IAAI,CAAC,CAAC,EAAE,CACViB,IAQC,EACDC,OAGC,KAUDhB,MAAM,CAACgB,OAAO,CAACC,WAAW,CAAC,EA8ClB,CAACC,IAAI,CACZtB,OAAO,CAACuB,MAAM,CAACJ,IAAI,CAAC,EACpBnB,OAAO,CAACuB,MAAM,CAACR,MAAM,CAACK,OAAO,CAACI,YAAY,CAAC,EAAE,CAAC,CAC/C,CAAC;AAEJ;;;;;;;;;;;;;;;;;;;;AAoBA,OAAO,MAAMC,aAAa,GAwFtBP,MAAM","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Chunk.d.ts b/.opencode/node_modules/effect/dist/Chunk.d.ts index 9b617b2dc15710df7ec63a8dd544ba2f526f3370..6fade5e5aa9ec481ee8fb64633e0a84e38477c83 100644 --- a/.opencode/node_modules/effect/dist/Chunk.d.ts +++ b/.opencode/node_modules/effect/dist/Chunk.d.ts @@ -1,70 +1,11 @@ /** - * The `Chunk` module provides an immutable, high-performance sequence data structure - * optimized for functional programming patterns. A `Chunk` is a persistent data structure - * that supports efficient append, prepend, and concatenation operations. + * Stores many values in an immutable ordered collection. * - * ## What is a Chunk? - * - * A `Chunk` is an immutable sequence of elements of type `A` that provides: - * - **O(1) append and prepend operations** - * - **Efficient concatenation** through tree-like structure - * - **Memory efficiency** with structural sharing - * - **Rich API** with functional programming operations - * - **Type safety** with full TypeScript integration - * - * ## Key Features - * - * - **Immutable**: All operations return new chunks without modifying the original - * - **Efficient**: Optimized data structure with logarithmic complexity for most operations - * - **Functional**: Rich set of transformation and combination operators - * - **Lazy evaluation**: Many operations are deferred until needed - * - **Interoperable**: Easy conversion to/from arrays and other collections - * - * ## Performance Characteristics - * - * - **Append/Prepend**: O(1) amortized - * - **Random Access**: O(log n) - * - **Concatenation**: O(log min(m, n)) - * - **Iteration**: O(n) - * - **Memory**: Structural sharing minimizes allocation - * - * @example - * ```ts - * import { Chunk } from "effect" - * - * // Creating chunks - * const chunk1 = Chunk.fromIterable([1, 2, 3]) - * const chunk2 = Chunk.fromIterable([4, 5, 6]) - * const empty = Chunk.empty() - * - * // Combining chunks - * const combined = Chunk.appendAll(chunk1, chunk2) - * console.log(Chunk.toReadonlyArray(combined)) // [1, 2, 3, 4, 5, 6] - * ``` - * - * @example - * ```ts - * import { Chunk } from "effect" - * - * // Functional transformations - * const numbers = Chunk.range(1, 5) // [1, 2, 3, 4, 5] - * const doubled = Chunk.map(numbers, (n) => n * 2) // [2, 4, 6, 8, 10] - * const evens = Chunk.filter(doubled, (n) => n % 4 === 0) // [4, 8] - * const sum = Chunk.reduce(evens, 0, (acc, n) => acc + n) // 12 - * ``` - * - * @example - * ```ts - * import { Chunk, Effect } from "effect" - * - * // Working with Effects - * const processChunk = (chunk: Chunk.Chunk) => - * Effect.gen(function*() { - * const mapped = Chunk.map(chunk, (n) => n * 2) - * const filtered = Chunk.filter(mapped, (n) => n > 5) - * return Chunk.toReadonlyArray(filtered) - * }) - * ``` + * A `Chunk` is useful when you need to build or transform collections + * without changing the original collection. It is designed for efficient + * append, prepend, and concatenation. This module includes helpers for + * creating, reading, slicing, mapping, filtering, sorting, zipping, combining, + * and converting chunks to and from arrays and iterables. * * @since 2.0.0 */ @@ -87,7 +28,8 @@ declare const TypeId = "~effect/collections/Chunk"; /** * A Chunk is an immutable, ordered collection optimized for efficient concatenation and access patterns. * - * @example + * **Example** (Inspecting chunk values) + * * ```ts * import { Chunk } from "effect" * @@ -112,7 +54,8 @@ export interface Chunk extends Iterable, Equal.Equal, Pipeable, Inspec /** * A non-empty Chunk guaranteed to contain at least one element. * - * @example + * **Example** (Working with non-empty chunks) + * * ```ts * import { Chunk } from "effect" * @@ -129,13 +72,13 @@ export interface NonEmptyChunk extends Chunk, NonEmptyIterable { /** * Type lambda for Chunk, used for higher-kinded type operations. * - * @example + * **Example** (Applying the Chunk type lambda) + * * ```ts - * import type { ChunkTypeLambda } from "effect/Chunk" - * import type { Kind } from "effect/HKT" + * import type { Chunk, HKT } from "effect" * * // Create a Chunk type using the type lambda - * type NumberChunk = Kind + * type NumberChunk = HKT.Kind * // Equivalent to: Chunk * ``` * @@ -169,12 +112,13 @@ interface ISlice { readonly length: number; } /** - * Compares the two chunks of equal length using the specified function + * Creates an `Equivalence` for chunks that compares chunk lengths and then + * compares corresponding elements with the provided element equivalence. + * + * **Example** (Comparing chunks for equivalence) * - * @example * ```ts - * import { Chunk } from "effect" - * import * as Equivalence from "effect/Equivalence" + * import { Chunk, Equivalence } from "effect" * * const chunk1 = Chunk.make(1, 2, 3) * const chunk2 = Chunk.make(1, 2, 3) @@ -185,14 +129,15 @@ interface ISlice { * console.log(eq(chunk1, chunk3)) // false * ``` * - * @category equivalence - * @since 2.0.0 + * @category instances + * @since 4.0.0 */ export declare const makeEquivalence: (isEquivalent: Equivalence.Equivalence) => Equivalence.Equivalence>; /** - * Checks if `u` is a `Chunk` + * Checks whether `u` is a `Chunk` + * + * **Example** (Checking for chunks) * - * @example * ```ts * import { Chunk } from "effect" * @@ -209,9 +154,10 @@ export declare const makeEquivalence: (isEquivalent: Equivalence.Equivalence< */ export declare const isChunk: { /** - * Checks if `u` is a `Chunk` + * Checks whether `u` is a `Chunk` + * + * **Example** (Checking for chunks) * - * @example * ```ts * import { Chunk } from "effect" * @@ -228,9 +174,10 @@ export declare const isChunk: { */ (u: Iterable): u is Chunk; /** - * Checks if `u` is a `Chunk` + * Checks whether `u` is a `Chunk` + * + * **Example** (Checking for chunks) * - * @example * ```ts * import { Chunk } from "effect" * @@ -250,7 +197,8 @@ export declare const isChunk: { /** * Creates an empty `Chunk`. * - * @example + * **Example** (Creating an empty chunk) + * * ```ts * import { Chunk } from "effect" * @@ -265,13 +213,13 @@ export declare const empty: () => Chunk; /** * Builds a `NonEmptyChunk` from an non-empty collection of elements. * - * @example + * **Example** (Creating a non-empty chunk) + * * ```ts * import { Chunk } from "effect" * * const chunk = Chunk.make(1, 2, 3, 4) - * console.log(chunk) - * // { _id: 'Chunk', values: [ 1, 2, 3, 4 ] } + * console.log(Chunk.toArray(chunk)) // [1, 2, 3, 4] * ``` * * @category constructors @@ -281,13 +229,13 @@ export declare const make: ]>(...as: As) /** * Builds a `NonEmptyChunk` from a single element. * - * @example + * **Example** (Creating a single-element chunk) + * * ```ts * import { Chunk } from "effect" * * const chunk = Chunk.of("hello") - * console.log(chunk) - * // { _id: 'Chunk', values: [ "hello" ] } + * console.log(Chunk.toArray(chunk)) // ["hello"] * ``` * * @category constructors @@ -297,13 +245,13 @@ export declare const of: (a: A) => NonEmptyChunk; /** * Creates a new `Chunk` from an iterable collection of values. * - * @example + * **Example** (Creating chunks from iterables) + * * ```ts * import { Chunk } from "effect" * * const chunk = Chunk.fromIterable([1, 2, 3]) - * console.log(chunk) - * // { _id: 'Chunk', values: [ 1, 2, 3 ] } + * console.log(Chunk.toArray(chunk)) // [1, 2, 3] * ``` * * @category constructors @@ -315,7 +263,8 @@ export declare const fromIterable: (self: Iterable) => Chunk; * (`NonEmptyChunk`), the function will return a `NonEmptyArray`, ensuring the * non-empty property is preserved. * - * @example + * **Example** (Converting chunks to mutable arrays) + * * ```ts * import { Chunk } from "effect" * @@ -329,7 +278,7 @@ export declare const fromIterable: (self: Iterable) => Chunk; * console.log(Chunk.toArray(emptyChunk)) // [] * ``` * - * @category conversions + * @category converting * @since 2.0.0 */ export declare const toArray: >(self: S) => S extends NonEmptyChunk ? RA.NonEmptyArray> : Array>; @@ -338,7 +287,8 @@ export declare const toArray: >(self: S) => S extends NonEm * non-empty (`NonEmptyChunk`), the function will return a * `NonEmptyReadonlyArray`, ensuring the non-empty property is preserved. * - * @example + * **Example** (Converting chunks to readonly arrays) + * * ```ts * import { Chunk } from "effect" * @@ -354,15 +304,23 @@ export declare const toArray: >(self: S) => S extends NonEm * console.log(Chunk.toReadonlyArray(emptyChunk)) // [] * ``` * - * @category conversions + * @category converting * @since 2.0.0 */ export declare const toReadonlyArray: >(self: S) => S extends NonEmptyChunk ? RA.NonEmptyReadonlyArray> : ReadonlyArray>; /** * Reverses the order of elements in a `Chunk`. - * Importantly, if the input chunk is a `NonEmptyChunk`, the reversed chunk will also be a `NonEmptyChunk`. * - * @example + * **When to use** + * + * Use to read or process chunk elements in reverse order. + * + * **Details** + * + * If the input chunk is a `NonEmptyChunk`, the reversed chunk is also a + * `NonEmptyChunk`. + * + * **Example** (Reversing chunks) * * ```ts * import { Chunk } from "effect" @@ -370,18 +328,19 @@ export declare const toReadonlyArray: >(self: S) => S exten * const chunk = Chunk.make(1, 2, 3) * const result = Chunk.reverse(chunk) * - * console.log(result) - * // { _id: 'Chunk', values: [ 3, 2, 1 ] } + * console.log(Chunk.toArray(result)) // [3, 2, 1] * ``` * - * @since 2.0.0 * @category elements + * @since 2.0.0 */ export declare const reverse: >(self: S) => Chunk.With>; /** - * This function provides a safe way to read a value at a particular index from a `Chunk`. + * Gets the value at an index in a `Chunk` safely, returning `None` when the index is + * out of bounds. + * + * **Example** (Accessing elements safely) * - * @example * ```ts * import { Chunk } from "effect" * @@ -401,9 +360,11 @@ export declare const reverse: >(self: S) => Chunk.With(self: Chunk) => Option; /** - * This function provides a safe way to read a value at a particular index from a `Chunk`. + * Gets the value at an index in a `Chunk` safely, returning `None` when the index is + * out of bounds. + * + * **Example** (Accessing elements safely) * - * @example * ```ts * import { Chunk } from "effect" * @@ -446,9 +409,19 @@ export declare const get: { (self: Chunk, index: number): Option; }; /** - * Wraps an array into a chunk without copying, unsafe on mutable arrays + * Wraps an array into a chunk without copying. + * + * **When to use** + * + * Use when the input array can be shared with the resulting `Chunk` and avoiding + * a copy matters. + * + * **Gotchas** + * + * Mutating the source array after wrapping can mutate the resulting `Chunk`. + * + * **Example** (Creating chunks without copying arrays) * - * @example * ```ts * import { Chunk } from "effect" * @@ -461,17 +434,26 @@ export declare const get: { * console.log(Chunk.toArray(chunk)) // [999, 2, 3, 4, 5] * ``` * - * @since 2.0.0 * @category unsafe + * @since 4.0.0 */ export declare const fromArrayUnsafe: (self: ReadonlyArray) => Chunk; /** - * Wraps an array into a chunk without copying, unsafe on mutable arrays + * Wraps a non-empty array into a non-empty chunk without copying. + * + * **When to use** + * + * Use when the input array is already known to be non-empty, can be shared with + * the resulting `Chunk`, and avoiding a copy matters. + * + * **Gotchas** + * + * Mutating the source array after wrapping can mutate the resulting `Chunk`. + * + * **Example** (Creating non-empty chunks without copying arrays) * - * @example * ```ts - * import { Chunk } from "effect" - * import * as Array from "effect/Array" + * import { Array, Chunk } from "effect" * * const nonEmptyArray = Array.make(1, 2, 3, 4, 5) * const chunk = Chunk.fromNonEmptyArrayUnsafe(nonEmptyArray) @@ -481,87 +463,111 @@ export declare const fromArrayUnsafe: (self: ReadonlyArray) => Chunk; * console.log(Chunk.isNonEmpty(chunk)) // true * ``` * - * @since 2.0.0 * @category unsafe + * @since 4.0.0 */ export declare const fromNonEmptyArrayUnsafe: (self: NonEmptyReadonlyArray) => NonEmptyChunk; /** - * Gets an element unsafely, will throw on out of bounds + * Gets an element at the specified index without returning an `Option`. + * + * **When to use** + * + * Use when reading from a `Chunk` at an index known to be in bounds and direct + * element access is preferred over handling `Option.none`. + * + * **Gotchas** + * + * Throws if the index is out of bounds. + * + * **Example** (Accessing elements unsafely) * - * @example * ```ts - * import { Chunk } from "effect" + * import { Chunk, Option } from "effect" * * const chunk = Chunk.make("a", "b", "c", "d") * * console.log(Chunk.getUnsafe(chunk, 1)) // "b" * console.log(Chunk.getUnsafe(chunk, 3)) // "d" * - * // Warning: This will throw an error for invalid indices - * try { - * Chunk.getUnsafe(chunk, 10) // throws "Index out of bounds" - * } catch (error) { - * console.log((error as Error).message) // "Index out of bounds" - * } + * // Use Chunk.get when the index may be out of bounds + * console.log(Option.isNone(Chunk.get(chunk, 10))) // true * ``` * - * @since 2.0.0 * @category unsafe + * @since 4.0.0 */ export declare const getUnsafe: { /** - * Gets an element unsafely, will throw on out of bounds + * Gets an element at the specified index without returning an `Option`. + * + * **When to use** + * + * Use when reading from a `Chunk` at an index known to be in bounds and direct + * element access is preferred over handling `Option.none`. + * + * **Gotchas** + * + * Throws if the index is out of bounds. + * + * **Example** (Accessing elements unsafely) * - * @example * ```ts - * import { Chunk } from "effect" + * import { Chunk, Option } from "effect" * * const chunk = Chunk.make("a", "b", "c", "d") * * console.log(Chunk.getUnsafe(chunk, 1)) // "b" * console.log(Chunk.getUnsafe(chunk, 3)) // "d" * - * // Warning: This will throw an error for invalid indices - * try { - * Chunk.getUnsafe(chunk, 10) // throws "Index out of bounds" - * } catch (error) { - * console.log((error as Error).message) // "Index out of bounds" - * } + * // Use Chunk.get when the index may be out of bounds + * console.log(Option.isNone(Chunk.get(chunk, 10))) // true * ``` * - * @since 2.0.0 * @category unsafe + * @since 4.0.0 */ (index: number): (self: Chunk) => A; /** - * Gets an element unsafely, will throw on out of bounds + * Gets an element at the specified index without returning an `Option`. + * + * **When to use** + * + * Use when reading from a `Chunk` at an index known to be in bounds and direct + * element access is preferred over handling `Option.none`. + * + * **Gotchas** + * + * Throws if the index is out of bounds. + * + * **Example** (Accessing elements unsafely) * - * @example * ```ts - * import { Chunk } from "effect" + * import { Chunk, Option } from "effect" * * const chunk = Chunk.make("a", "b", "c", "d") * * console.log(Chunk.getUnsafe(chunk, 1)) // "b" * console.log(Chunk.getUnsafe(chunk, 3)) // "d" * - * // Warning: This will throw an error for invalid indices - * try { - * Chunk.getUnsafe(chunk, 10) // throws "Index out of bounds" - * } catch (error) { - * console.log((error as Error).message) // "Index out of bounds" - * } + * // Use Chunk.get when the index may be out of bounds + * console.log(Option.isNone(Chunk.get(chunk, 10))) // true * ``` * - * @since 2.0.0 * @category unsafe + * @since 4.0.0 */ (self: Chunk, index: number): A; }; /** * Appends the specified element to the end of the `Chunk`. * - * @example + * **When to use** + * + * Use to add one element after the existing chunk elements and return a + * `NonEmptyChunk`. + * + * **Example** (Appending an element) + * * ```ts * import { Chunk } from "effect" * @@ -575,14 +581,23 @@ export declare const getUnsafe: { * console.log(Chunk.toArray(singleElement)) // [42] * ``` * - * @category concatenating + * @see {@link prepend} for adding one element before the existing elements + * @see {@link appendAll} for appending all elements from another chunk + * + * @category combining * @since 2.0.0 */ export declare const append: { /** * Appends the specified element to the end of the `Chunk`. * - * @example + * **When to use** + * + * Use to add one element after the existing chunk elements and return a + * `NonEmptyChunk`. + * + * **Example** (Appending an element) + * * ```ts * import { Chunk } from "effect" * @@ -596,14 +611,23 @@ export declare const append: { * console.log(Chunk.toArray(singleElement)) // [42] * ``` * - * @category concatenating + * @see {@link prepend} for adding one element before the existing elements + * @see {@link appendAll} for appending all elements from another chunk + * + * @category combining * @since 2.0.0 */ (a: A2): (self: Chunk) => NonEmptyChunk; /** * Appends the specified element to the end of the `Chunk`. * - * @example + * **When to use** + * + * Use to add one element after the existing chunk elements and return a + * `NonEmptyChunk`. + * + * **Example** (Appending an element) + * * ```ts * import { Chunk } from "effect" * @@ -617,15 +641,19 @@ export declare const append: { * console.log(Chunk.toArray(singleElement)) // [42] * ``` * - * @category concatenating + * @see {@link prepend} for adding one element before the existing elements + * @see {@link appendAll} for appending all elements from another chunk + * + * @category combining * @since 2.0.0 */ (self: Chunk, a: A2): NonEmptyChunk; }; /** - * Prepend an element to the front of a `Chunk`, creating a new `NonEmptyChunk`. + * Prepends an element to the front of a `Chunk`, creating a new `NonEmptyChunk`. + * + * **Example** (Prepending an element) * - * @example * ```ts * import { Chunk } from "effect" * @@ -639,14 +667,15 @@ export declare const append: { * console.log(Chunk.toArray(singleElement)) // ["first"] * ``` * - * @category concatenating + * @category combining * @since 2.0.0 */ export declare const prepend: { /** - * Prepend an element to the front of a `Chunk`, creating a new `NonEmptyChunk`. + * Prepends an element to the front of a `Chunk`, creating a new `NonEmptyChunk`. + * + * **Example** (Prepending an element) * - * @example * ```ts * import { Chunk } from "effect" * @@ -660,14 +689,15 @@ export declare const prepend: { * console.log(Chunk.toArray(singleElement)) // ["first"] * ``` * - * @category concatenating + * @category combining * @since 2.0.0 */ (elem: B): (self: Chunk) => NonEmptyChunk; /** - * Prepend an element to the front of a `Chunk`, creating a new `NonEmptyChunk`. + * Prepends an element to the front of a `Chunk`, creating a new `NonEmptyChunk`. + * + * **Example** (Prepending an element) * - * @example * ```ts * import { Chunk } from "effect" * @@ -681,7 +711,7 @@ export declare const prepend: { * console.log(Chunk.toArray(singleElement)) // ["first"] * ``` * - * @category concatenating + * @category combining * @since 2.0.0 */ (self: Chunk, elem: B): NonEmptyChunk; @@ -689,14 +719,14 @@ export declare const prepend: { /** * Takes the first up to `n` elements from the chunk. * - * @example + * **Example** (Taking elements from the start) + * * ```ts * import { Chunk } from "effect" * * const chunk = Chunk.make(1, 2, 3, 4, 5) * const result = Chunk.take(chunk, 3) - * console.log(result) - * // { _id: 'Chunk', values: [ 1, 2, 3 ] } + * console.log(Chunk.toArray(result)) // [1, 2, 3] * ``` * * @category elements @@ -706,14 +736,14 @@ export declare const take: { /** * Takes the first up to `n` elements from the chunk. * - * @example + * **Example** (Taking elements from the start) + * * ```ts * import { Chunk } from "effect" * * const chunk = Chunk.make(1, 2, 3, 4, 5) * const result = Chunk.take(chunk, 3) - * console.log(result) - * // { _id: 'Chunk', values: [ 1, 2, 3 ] } + * console.log(Chunk.toArray(result)) // [1, 2, 3] * ``` * * @category elements @@ -723,14 +753,14 @@ export declare const take: { /** * Takes the first up to `n` elements from the chunk. * - * @example + * **Example** (Taking elements from the start) + * * ```ts * import { Chunk } from "effect" * * const chunk = Chunk.make(1, 2, 3, 4, 5) * const result = Chunk.take(chunk, 3) - * console.log(result) - * // { _id: 'Chunk', values: [ 1, 2, 3 ] } + * console.log(Chunk.toArray(result)) // [1, 2, 3] * ``` * * @category elements @@ -741,14 +771,14 @@ export declare const take: { /** * Drops the first up to `n` elements from the chunk. * - * @example + * **Example** (Dropping elements from the start) + * * ```ts * import { Chunk } from "effect" * * const chunk = Chunk.make(1, 2, 3, 4, 5) * const result = Chunk.drop(chunk, 2) - * console.log(result) - * // { _id: 'Chunk', values: [ 3, 4, 5 ] } + * console.log(Chunk.toArray(result)) // [3, 4, 5] * ``` * * @category elements @@ -758,14 +788,14 @@ export declare const drop: { /** * Drops the first up to `n` elements from the chunk. * - * @example + * **Example** (Dropping elements from the start) + * * ```ts * import { Chunk } from "effect" * * const chunk = Chunk.make(1, 2, 3, 4, 5) * const result = Chunk.drop(chunk, 2) - * console.log(result) - * // { _id: 'Chunk', values: [ 3, 4, 5 ] } + * console.log(Chunk.toArray(result)) // [3, 4, 5] * ``` * * @category elements @@ -775,14 +805,14 @@ export declare const drop: { /** * Drops the first up to `n` elements from the chunk. * - * @example + * **Example** (Dropping elements from the start) + * * ```ts * import { Chunk } from "effect" * * const chunk = Chunk.make(1, 2, 3, 4, 5) * const result = Chunk.drop(chunk, 2) - * console.log(result) - * // { _id: 'Chunk', values: [ 3, 4, 5 ] } + * console.log(Chunk.toArray(result)) // [3, 4, 5] * ``` * * @category elements @@ -793,14 +823,14 @@ export declare const drop: { /** * Drops the last `n` elements. * - * @example + * **Example** (Dropping elements from the end) + * * ```ts * import { Chunk } from "effect" * * const chunk = Chunk.make(1, 2, 3, 4, 5) * const result = Chunk.dropRight(chunk, 2) - * console.log(result) - * // { _id: 'Chunk', values: [ 1, 2, 3 ] } + * console.log(Chunk.toArray(result)) // [1, 2, 3] * ``` * * @category elements @@ -810,14 +840,14 @@ export declare const dropRight: { /** * Drops the last `n` elements. * - * @example + * **Example** (Dropping elements from the end) + * * ```ts * import { Chunk } from "effect" * * const chunk = Chunk.make(1, 2, 3, 4, 5) * const result = Chunk.dropRight(chunk, 2) - * console.log(result) - * // { _id: 'Chunk', values: [ 1, 2, 3 ] } + * console.log(Chunk.toArray(result)) // [1, 2, 3] * ``` * * @category elements @@ -827,14 +857,14 @@ export declare const dropRight: { /** * Drops the last `n` elements. * - * @example + * **Example** (Dropping elements from the end) + * * ```ts * import { Chunk } from "effect" * * const chunk = Chunk.make(1, 2, 3, 4, 5) * const result = Chunk.dropRight(chunk, 2) - * console.log(result) - * // { _id: 'Chunk', values: [ 1, 2, 3 ] } + * console.log(Chunk.toArray(result)) // [1, 2, 3] * ``` * * @category elements @@ -845,14 +875,14 @@ export declare const dropRight: { /** * Drops all elements so long as the predicate returns true. * - * @example + * **Example** (Dropping elements while a predicate matches) + * * ```ts * import { Chunk } from "effect" * * const chunk = Chunk.make(1, 2, 3, 4, 5) * const result = Chunk.dropWhile(chunk, (n) => n < 3) - * console.log(result) - * // { _id: 'Chunk', values: [ 3, 4, 5 ] } + * console.log(Chunk.toArray(result)) // [3, 4, 5] * ``` * * @category elements @@ -862,14 +892,14 @@ export declare const dropWhile: { /** * Drops all elements so long as the predicate returns true. * - * @example + * **Example** (Dropping elements while a predicate matches) + * * ```ts * import { Chunk } from "effect" * * const chunk = Chunk.make(1, 2, 3, 4, 5) * const result = Chunk.dropWhile(chunk, (n) => n < 3) - * console.log(result) - * // { _id: 'Chunk', values: [ 3, 4, 5 ] } + * console.log(Chunk.toArray(result)) // [3, 4, 5] * ``` * * @category elements @@ -879,14 +909,14 @@ export declare const dropWhile: { /** * Drops all elements so long as the predicate returns true. * - * @example + * **Example** (Dropping elements while a predicate matches) + * * ```ts * import { Chunk } from "effect" * * const chunk = Chunk.make(1, 2, 3, 4, 5) * const result = Chunk.dropWhile(chunk, (n) => n < 3) - * console.log(result) - * // { _id: 'Chunk', values: [ 3, 4, 5 ] } + * console.log(Chunk.toArray(result)) // [3, 4, 5] * ``` * * @category elements @@ -898,7 +928,7 @@ export declare const dropWhile: { * Prepends the specified prefix chunk to the beginning of the specified chunk. * If either chunk is non-empty, the result is also a non-empty chunk. * - * @example + * **Example** (Prepending all elements) * * ```ts * import { Chunk } from "effect" @@ -912,7 +942,7 @@ export declare const dropWhile: { * // [ "a", "b", 1, 2 ] * ``` * - * @category concatenating + * @category combining * @since 2.0.0 */ export declare const prependAll: { @@ -920,7 +950,7 @@ export declare const prependAll: { * Prepends the specified prefix chunk to the beginning of the specified chunk. * If either chunk is non-empty, the result is also a non-empty chunk. * - * @example + * **Example** (Prepending all elements) * * ```ts * import { Chunk } from "effect" @@ -934,7 +964,7 @@ export declare const prependAll: { * // [ "a", "b", 1, 2 ] * ``` * - * @category concatenating + * @category combining * @since 2.0.0 */ , T extends Chunk>(that: T): (self: S) => Chunk.OrNonEmpty | Chunk.Infer>; @@ -942,7 +972,7 @@ export declare const prependAll: { * Prepends the specified prefix chunk to the beginning of the specified chunk. * If either chunk is non-empty, the result is also a non-empty chunk. * - * @example + * **Example** (Prepending all elements) * * ```ts * import { Chunk } from "effect" @@ -956,7 +986,7 @@ export declare const prependAll: { * // [ "a", "b", 1, 2 ] * ``` * - * @category concatenating + * @category combining * @since 2.0.0 */ (self: Chunk, that: NonEmptyChunk): NonEmptyChunk; @@ -964,7 +994,7 @@ export declare const prependAll: { * Prepends the specified prefix chunk to the beginning of the specified chunk. * If either chunk is non-empty, the result is also a non-empty chunk. * - * @example + * **Example** (Prepending all elements) * * ```ts * import { Chunk } from "effect" @@ -978,7 +1008,7 @@ export declare const prependAll: { * // [ "a", "b", 1, 2 ] * ``` * - * @category concatenating + * @category combining * @since 2.0.0 */ (self: NonEmptyChunk, that: Chunk): NonEmptyChunk; @@ -986,7 +1016,7 @@ export declare const prependAll: { * Prepends the specified prefix chunk to the beginning of the specified chunk. * If either chunk is non-empty, the result is also a non-empty chunk. * - * @example + * **Example** (Prepending all elements) * * ```ts * import { Chunk } from "effect" @@ -1000,7 +1030,7 @@ export declare const prependAll: { * // [ "a", "b", 1, 2 ] * ``` * - * @category concatenating + * @category combining * @since 2.0.0 */ (self: Chunk, that: Chunk): Chunk; @@ -1009,7 +1039,12 @@ export declare const prependAll: { * Concatenates two chunks, combining their elements. * If either chunk is non-empty, the result is also a non-empty chunk. * - * @example + * **When to use** + * + * Use to concatenate two chunks when the second chunk's elements should come + * after the first. + * + * **Example** (Appending all elements) * * ```ts * import { Chunk } from "effect" @@ -1023,7 +1058,10 @@ export declare const prependAll: { * // [ 1, 2, "a", "b" ] * ``` * - * @category concatenating + * @see {@link prependAll} for concatenating chunks in the opposite order + * @see {@link append} for adding a single element to the end + * + * @category combining * @since 2.0.0 */ export declare const appendAll: { @@ -1031,7 +1069,12 @@ export declare const appendAll: { * Concatenates two chunks, combining their elements. * If either chunk is non-empty, the result is also a non-empty chunk. * - * @example + * **When to use** + * + * Use to concatenate two chunks when the second chunk's elements should come + * after the first. + * + * **Example** (Appending all elements) * * ```ts * import { Chunk } from "effect" @@ -1045,7 +1088,10 @@ export declare const appendAll: { * // [ 1, 2, "a", "b" ] * ``` * - * @category concatenating + * @see {@link prependAll} for concatenating chunks in the opposite order + * @see {@link append} for adding a single element to the end + * + * @category combining * @since 2.0.0 */ , T extends Chunk>(that: T): (self: S) => Chunk.OrNonEmpty | Chunk.Infer>; @@ -1053,7 +1099,12 @@ export declare const appendAll: { * Concatenates two chunks, combining their elements. * If either chunk is non-empty, the result is also a non-empty chunk. * - * @example + * **When to use** + * + * Use to concatenate two chunks when the second chunk's elements should come + * after the first. + * + * **Example** (Appending all elements) * * ```ts * import { Chunk } from "effect" @@ -1067,7 +1118,10 @@ export declare const appendAll: { * // [ 1, 2, "a", "b" ] * ``` * - * @category concatenating + * @see {@link prependAll} for concatenating chunks in the opposite order + * @see {@link append} for adding a single element to the end + * + * @category combining * @since 2.0.0 */ (self: Chunk, that: NonEmptyChunk): NonEmptyChunk; @@ -1075,7 +1129,12 @@ export declare const appendAll: { * Concatenates two chunks, combining their elements. * If either chunk is non-empty, the result is also a non-empty chunk. * - * @example + * **When to use** + * + * Use to concatenate two chunks when the second chunk's elements should come + * after the first. + * + * **Example** (Appending all elements) * * ```ts * import { Chunk } from "effect" @@ -1089,7 +1148,10 @@ export declare const appendAll: { * // [ 1, 2, "a", "b" ] * ``` * - * @category concatenating + * @see {@link prependAll} for concatenating chunks in the opposite order + * @see {@link append} for adding a single element to the end + * + * @category combining * @since 2.0.0 */ (self: NonEmptyChunk, that: Chunk): NonEmptyChunk; @@ -1097,7 +1159,12 @@ export declare const appendAll: { * Concatenates two chunks, combining their elements. * If either chunk is non-empty, the result is also a non-empty chunk. * - * @example + * **When to use** + * + * Use to concatenate two chunks when the second chunk's elements should come + * after the first. + * + * **Example** (Appending all elements) * * ```ts * import { Chunk } from "effect" @@ -1111,7 +1178,10 @@ export declare const appendAll: { * // [ 1, 2, "a", "b" ] * ``` * - * @category concatenating + * @see {@link prependAll} for concatenating chunks in the opposite order + * @see {@link append} for adding a single element to the end + * + * @category combining * @since 2.0.0 */ (self: Chunk, that: Chunk): Chunk; @@ -1119,10 +1189,10 @@ export declare const appendAll: { /** * Returns a filtered and mapped subset of the elements. * - * @example + * **Example** (Filtering and mapping values) + * * ```ts - * import { Chunk } from "effect" - * import * as Result from "effect/Result" + * import { Chunk, Result } from "effect" * * const chunk = Chunk.make("1", "2", "hello", "3", "world") * const numbers = Chunk.filterMap(chunk, (str) => { @@ -1139,17 +1209,17 @@ export declare const appendAll: { * console.log(Chunk.toArray(evenIndexNumbers)) // [1] * ``` * - * @since 2.0.0 * @category filtering + * @since 2.0.0 */ export declare const filterMap: { /** * Returns a filtered and mapped subset of the elements. * - * @example + * **Example** (Filtering and mapping values) + * * ```ts - * import { Chunk } from "effect" - * import * as Result from "effect/Result" + * import { Chunk, Result } from "effect" * * const chunk = Chunk.make("1", "2", "hello", "3", "world") * const numbers = Chunk.filterMap(chunk, (str) => { @@ -1166,17 +1236,17 @@ export declare const filterMap: { * console.log(Chunk.toArray(evenIndexNumbers)) // [1] * ``` * - * @since 2.0.0 * @category filtering + * @since 2.0.0 */ (f: (input: A, i: number) => Result): (self: Chunk) => Chunk; /** * Returns a filtered and mapped subset of the elements. * - * @example + * **Example** (Filtering and mapping values) + * * ```ts - * import { Chunk } from "effect" - * import * as Result from "effect/Result" + * import { Chunk, Result } from "effect" * * const chunk = Chunk.make("1", "2", "hello", "3", "world") * const numbers = Chunk.filterMap(chunk, (str) => { @@ -1193,15 +1263,16 @@ export declare const filterMap: { * console.log(Chunk.toArray(evenIndexNumbers)) // [1] * ``` * - * @since 2.0.0 * @category filtering + * @since 2.0.0 */ (self: Chunk, f: (input: A, i: number) => Result): Chunk; }; /** * Returns a filtered subset of the elements. * - * @example + * **Example** (Filtering values) + * * ```ts * import { Chunk } from "effect" * @@ -1215,14 +1286,15 @@ export declare const filterMap: { * console.log(Chunk.toArray(numbers)) // [42, 100] * ``` * - * @since 2.0.0 * @category filtering + * @since 2.0.0 */ export declare const filter: { /** * Returns a filtered subset of the elements. * - * @example + * **Example** (Filtering values) + * * ```ts * import { Chunk } from "effect" * @@ -1236,14 +1308,15 @@ export declare const filter: { * console.log(Chunk.toArray(numbers)) // [42, 100] * ``` * - * @since 2.0.0 * @category filtering + * @since 2.0.0 */ (refinement: Refinement, B>): (self: Chunk) => Chunk; /** * Returns a filtered subset of the elements. * - * @example + * **Example** (Filtering values) + * * ```ts * import { Chunk } from "effect" * @@ -1257,14 +1330,15 @@ export declare const filter: { * console.log(Chunk.toArray(numbers)) // [42, 100] * ``` * - * @since 2.0.0 * @category filtering + * @since 2.0.0 */ (predicate: Predicate>): (self: Chunk) => Chunk; /** * Returns a filtered subset of the elements. * - * @example + * **Example** (Filtering values) + * * ```ts * import { Chunk } from "effect" * @@ -1278,14 +1352,15 @@ export declare const filter: { * console.log(Chunk.toArray(numbers)) // [42, 100] * ``` * - * @since 2.0.0 * @category filtering + * @since 2.0.0 */ (self: Chunk, refinement: Refinement): Chunk; /** * Returns a filtered subset of the elements. * - * @example + * **Example** (Filtering values) + * * ```ts * import { Chunk } from "effect" * @@ -1299,18 +1374,18 @@ export declare const filter: { * console.log(Chunk.toArray(numbers)) // [42, 100] * ``` * - * @since 2.0.0 * @category filtering + * @since 2.0.0 */ (self: Chunk, predicate: Predicate): Chunk; }; /** * Transforms all elements of the chunk for as long as the specified function succeeds. * - * @example + * **Example** (Filtering and mapping while values match) + * * ```ts - * import { Chunk } from "effect" - * import * as Result from "effect/Result" + * import { Chunk, Result } from "effect" * * const chunk = Chunk.make("1", "2", "hello", "3", "4") * const result = Chunk.filterMapWhile(chunk, (s) => { @@ -1328,17 +1403,17 @@ export declare const filter: { * console.log(Chunk.toArray(allNumbers)) // [1, 2, 3, 4] * ``` * - * @since 2.0.0 * @category filtering + * @since 2.0.0 */ export declare const filterMapWhile: { /** * Transforms all elements of the chunk for as long as the specified function succeeds. * - * @example + * **Example** (Filtering and mapping while values match) + * * ```ts - * import { Chunk } from "effect" - * import * as Result from "effect/Result" + * import { Chunk, Result } from "effect" * * const chunk = Chunk.make("1", "2", "hello", "3", "4") * const result = Chunk.filterMapWhile(chunk, (s) => { @@ -1356,17 +1431,17 @@ export declare const filterMapWhile: { * console.log(Chunk.toArray(allNumbers)) // [1, 2, 3, 4] * ``` * - * @since 2.0.0 * @category filtering + * @since 2.0.0 */ (f: Filter.Filter): (self: Chunk) => Chunk; /** * Transforms all elements of the chunk for as long as the specified function succeeds. * - * @example + * **Example** (Filtering and mapping while values match) + * * ```ts - * import { Chunk } from "effect" - * import * as Result from "effect/Result" + * import { Chunk, Result } from "effect" * * const chunk = Chunk.make("1", "2", "hello", "3", "4") * const result = Chunk.filterMapWhile(chunk, (s) => { @@ -1384,23 +1459,22 @@ export declare const filterMapWhile: { * console.log(Chunk.toArray(allNumbers)) // [1, 2, 3, 4] * ``` * - * @since 2.0.0 * @category filtering + * @since 2.0.0 */ (self: Chunk, f: Filter.Filter): Chunk; }; /** - * Filter out optional values + * Filters out optional values + * + * **Example** (Compacting optional values) * - * @example * ```ts - * import { Chunk } from "effect" - * import * as Option from "effect/Option" + * import { Chunk, Option } from "effect" * * const chunk = Chunk.make(Option.some(1), Option.none(), Option.some(3)) * const result = Chunk.compact(chunk) - * console.log(result) - * // { _id: 'Chunk', values: [ 1, 3 ] } + * console.log(Chunk.toArray(result)) // [1, 3] * ``` * * @category filtering @@ -1410,7 +1484,8 @@ export declare const compact: (self: Chunk>) => Chunk; /** * Applies a function to each element in a chunk and returns a new chunk containing the concatenated mapped elements. * - * @example + * **Example** (Flat mapping chunks) + * * ```ts * import { Chunk } from "effect" * @@ -1431,14 +1506,15 @@ export declare const compact: (self: Chunk>) => Chunk; * console.log(Chunk.toArray(indexed)) // [1, 3, 5] * ``` * - * @since 2.0.0 * @category sequencing + * @since 2.0.0 */ export declare const flatMap: { /** * Applies a function to each element in a chunk and returns a new chunk containing the concatenated mapped elements. * - * @example + * **Example** (Flat mapping chunks) + * * ```ts * import { Chunk } from "effect" * @@ -1459,14 +1535,15 @@ export declare const flatMap: { * console.log(Chunk.toArray(indexed)) // [1, 3, 5] * ``` * - * @since 2.0.0 * @category sequencing + * @since 2.0.0 */ , T extends Chunk>(f: (a: Chunk.Infer, i: number) => T): (self: S) => Chunk.AndNonEmpty>; /** * Applies a function to each element in a chunk and returns a new chunk containing the concatenated mapped elements. * - * @example + * **Example** (Flat mapping chunks) + * * ```ts * import { Chunk } from "effect" * @@ -1487,14 +1564,15 @@ export declare const flatMap: { * console.log(Chunk.toArray(indexed)) // [1, 3, 5] * ``` * - * @since 2.0.0 * @category sequencing + * @since 2.0.0 */ (self: NonEmptyChunk, f: (a: A, i: number) => NonEmptyChunk): NonEmptyChunk; /** * Applies a function to each element in a chunk and returns a new chunk containing the concatenated mapped elements. * - * @example + * **Example** (Flat mapping chunks) + * * ```ts * import { Chunk } from "effect" * @@ -1515,8 +1593,8 @@ export declare const flatMap: { * console.log(Chunk.toArray(indexed)) // [1, 3, 5] * ``` * - * @since 2.0.0 * @category sequencing + * @since 2.0.0 */ (self: Chunk, f: (a: A, i: number) => Chunk): Chunk; }; @@ -1530,7 +1608,8 @@ export declare const flatMap: { * instead, it is primarily used for side effects, such as logging or * accumulating data in an external variable. * - * @example + * **Example** (Iterating over chunk values) + * * ```ts * import { Chunk } from "effect" * @@ -1553,8 +1632,8 @@ export declare const flatMap: { * // Index 3: 4 * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ export declare const forEach: { /** @@ -1567,7 +1646,8 @@ export declare const forEach: { * instead, it is primarily used for side effects, such as logging or * accumulating data in an external variable. * - * @example + * **Example** (Iterating over chunk values) + * * ```ts * import { Chunk } from "effect" * @@ -1590,8 +1670,8 @@ export declare const forEach: { * // Index 3: 4 * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ (f: (a: A, index: number) => B): (self: Chunk) => void; /** @@ -1604,7 +1684,8 @@ export declare const forEach: { * instead, it is primarily used for side effects, such as logging or * accumulating data in an external variable. * - * @example + * **Example** (Iterating over chunk values) + * * ```ts * import { Chunk } from "effect" * @@ -1627,15 +1708,16 @@ export declare const forEach: { * // Index 3: 4 * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ (self: Chunk, f: (a: A, index: number) => B): void; }; /** * Flattens a chunk of chunks into a single chunk by concatenating all chunks. * - * @example + * **Example** (Flattening nested chunks) + * * ```ts * import { Chunk } from "effect" * @@ -1656,14 +1738,29 @@ export declare const forEach: { * console.log(Chunk.toArray(Chunk.flatten(withEmpty))) // [1, 2, 3, 4] * ``` * - * @since 2.0.0 * @category sequencing + * @since 2.0.0 */ export declare const flatten: >>(self: S) => Chunk.Flatten; /** * Groups elements in chunks of up to `n` elements. * - * @example + * **When to use** + * + * Use to divide a chunk into ordered, non-overlapping chunks with at most `n` + * elements each. + * + * **Details** + * + * The final chunk may contain fewer than `n` elements. Empty input produces an + * empty chunk of chunks. + * + * **Gotchas** + * + * Values of `n` less than or equal to zero produce singleton chunks. + * + * **Example** (Splitting into fixed-size chunks) + * * ```ts * import { Chunk } from "effect" * @@ -1680,14 +1777,31 @@ export declare const flatten: >>(self: S) => Chunk.Fl * // [[1, 2], [3, 4], [5]] * ``` * - * @since 2.0.0 + * @see {@link split} for splitting into a target number of chunks instead of a fixed chunk size + * * @category elements + * @since 2.0.0 */ export declare const chunksOf: { /** * Groups elements in chunks of up to `n` elements. * - * @example + * **When to use** + * + * Use to divide a chunk into ordered, non-overlapping chunks with at most `n` + * elements each. + * + * **Details** + * + * The final chunk may contain fewer than `n` elements. Empty input produces an + * empty chunk of chunks. + * + * **Gotchas** + * + * Values of `n` less than or equal to zero produce singleton chunks. + * + * **Example** (Splitting into fixed-size chunks) + * * ```ts * import { Chunk } from "effect" * @@ -1704,14 +1818,31 @@ export declare const chunksOf: { * // [[1, 2], [3, 4], [5]] * ``` * - * @since 2.0.0 + * @see {@link split} for splitting into a target number of chunks instead of a fixed chunk size + * * @category elements + * @since 2.0.0 */ (n: number): (self: Chunk) => Chunk>; /** * Groups elements in chunks of up to `n` elements. * - * @example + * **When to use** + * + * Use to divide a chunk into ordered, non-overlapping chunks with at most `n` + * elements each. + * + * **Details** + * + * The final chunk may contain fewer than `n` elements. Empty input produces an + * empty chunk of chunks. + * + * **Gotchas** + * + * Values of `n` less than or equal to zero produce singleton chunks. + * + * **Example** (Splitting into fixed-size chunks) + * * ```ts * import { Chunk } from "effect" * @@ -1728,17 +1859,22 @@ export declare const chunksOf: { * // [[1, 2], [3, 4], [5]] * ``` * - * @since 2.0.0 + * @see {@link split} for splitting into a target number of chunks instead of a fixed chunk size + * * @category elements + * @since 2.0.0 */ (self: Chunk, n: number): Chunk>; }; /** - * Creates a Chunk of unique values that are included in all given Chunks. + * Creates a `Chunk` of values that are included in both chunks. * - * The order and references of result values are determined by the Chunk. + * **Details** + * + * The order and references of result values are determined by the first chunk. + * + * **Example** (Intersecting chunks) * - * @example * ```ts * import { Chunk } from "effect" * @@ -1758,16 +1894,19 @@ export declare const chunksOf: { * console.log(Chunk.toArray(Chunk.intersection(chunk3, chunk4))) // [] * ``` * - * @since 2.0.0 * @category elements + * @since 2.0.0 */ export declare const intersection: { /** - * Creates a Chunk of unique values that are included in all given Chunks. + * Creates a `Chunk` of values that are included in both chunks. * - * The order and references of result values are determined by the Chunk. + * **Details** + * + * The order and references of result values are determined by the first chunk. + * + * **Example** (Intersecting chunks) * - * @example * ```ts * import { Chunk } from "effect" * @@ -1787,16 +1926,19 @@ export declare const intersection: { * console.log(Chunk.toArray(Chunk.intersection(chunk3, chunk4))) // [] * ``` * - * @since 2.0.0 * @category elements + * @since 2.0.0 */ (that: Chunk): (self: Chunk) => Chunk; /** - * Creates a Chunk of unique values that are included in all given Chunks. + * Creates a `Chunk` of values that are included in both chunks. + * + * **Details** * - * The order and references of result values are determined by the Chunk. + * The order and references of result values are determined by the first chunk. + * + * **Example** (Intersecting chunks) * - * @example * ```ts * import { Chunk } from "effect" * @@ -1816,15 +1958,16 @@ export declare const intersection: { * console.log(Chunk.toArray(Chunk.intersection(chunk3, chunk4))) // [] * ``` * - * @since 2.0.0 * @category elements + * @since 2.0.0 */ (self: Chunk, that: Chunk): Chunk; }; /** * Determines if the chunk is empty. * - * @example + * **Example** (Checking for empty chunks) + * * ```ts * import { Chunk } from "effect" * @@ -1839,7 +1982,8 @@ export declare const isEmpty: (self: Chunk) => boolean; /** * Determines if the chunk is not empty. * - * @example + * **Example** (Checking for non-empty chunks) + * * ```ts * import { Chunk } from "effect" * @@ -1852,9 +1996,10 @@ export declare const isEmpty: (self: Chunk) => boolean; */ export declare const isNonEmpty: (self: Chunk) => self is NonEmptyChunk; /** - * Returns the first element of this chunk if it exists. + * Returns the first element of this chunk safely if it exists. + * + * **Example** (Getting the first element) * - * @example * ```ts * import { Chunk } from "effect" * @@ -1869,11 +2014,19 @@ export declare const head: (self: Chunk) => Option; /** * Returns the first element of this chunk. * - * It will throw an error if the chunk is empty. + * **When to use** + * + * Use when you know the chunk is non-empty and need the first element directly + * without handling `Option.none`. + * + * **Gotchas** + * + * Throws an error if the chunk is empty. + * + * **Example** (Getting the first element unsafely) * - * @example * ```ts - * import { Chunk } from "effect" + * import { Chunk, Option } from "effect" * * const chunk = Chunk.make(1, 2, 3, 4) * console.log(Chunk.headUnsafe(chunk)) // 1 @@ -1881,22 +2034,19 @@ export declare const head: (self: Chunk) => Option; * const singleElement = Chunk.make("hello") * console.log(Chunk.headUnsafe(singleElement)) // "hello" * - * // Warning: This will throw for empty chunks - * try { - * Chunk.headUnsafe(Chunk.empty()) - * } catch (error) { - * console.log((error as Error).message) // "Index out of bounds" - * } + * // Use Chunk.head when the chunk may be empty + * console.log(Option.isNone(Chunk.head(Chunk.empty()))) // true * ``` * - * @since 2.0.0 * @category unsafe + * @since 4.0.0 */ export declare const headUnsafe: (self: Chunk) => A; /** * Returns the first element of this non empty chunk. * - * @example + * **Example** (Getting the first element of a non-empty chunk) + * * ```ts * import { Chunk } from "effect" * @@ -1910,14 +2060,15 @@ export declare const headUnsafe: (self: Chunk) => A; * // Chunk.headNonEmpty(Chunk.empty()) // TypeScript error * ``` * - * @since 2.0.0 * @category elements + * @since 2.0.0 */ export declare const headNonEmpty: (self: NonEmptyChunk) => A; /** - * Returns the last element of this chunk if it exists. + * Returns the last element of this chunk safely if it exists. + * + * **Example** (Getting the last element) * - * @example * ```ts * import { Chunk } from "effect" * @@ -1932,11 +2083,19 @@ export declare const last: (self: Chunk) => Option; /** * Returns the last element of this chunk. * - * It will throw an error if the chunk is empty. + * **When to use** + * + * Use when you know the chunk is non-empty and need the last element directly + * without handling `Option.none`. + * + * **Gotchas** + * + * Throws an error if the chunk is empty. + * + * **Example** (Getting the last element unsafely) * - * @example * ```ts - * import { Chunk } from "effect" + * import { Chunk, Option } from "effect" * * const chunk = Chunk.make(1, 2, 3, 4) * console.log(Chunk.lastUnsafe(chunk)) // 4 @@ -1944,22 +2103,19 @@ export declare const last: (self: Chunk) => Option; * const singleElement = Chunk.make("hello") * console.log(Chunk.lastUnsafe(singleElement)) // "hello" * - * // Warning: This will throw for empty chunks - * try { - * Chunk.lastUnsafe(Chunk.empty()) - * } catch (error) { - * console.log((error as Error).message) // "Index out of bounds" - * } + * // Use Chunk.last when the chunk may be empty + * console.log(Option.isNone(Chunk.last(Chunk.empty()))) // true * ``` * - * @since 2.0.0 * @category unsafe + * @since 4.0.0 */ export declare const lastUnsafe: (self: Chunk) => A; /** * Returns the last element of this non empty chunk. * - * @example + * **Example** (Getting the last element of a non-empty chunk) + * * ```ts * import { Chunk } from "effect" * @@ -1973,14 +2129,15 @@ export declare const lastUnsafe: (self: Chunk) => A; * // Chunk.lastNonEmpty(Chunk.empty()) // TypeScript error * ``` * - * @since 3.4.0 * @category elements + * @since 3.4.0 */ export declare const lastNonEmpty: (self: NonEmptyChunk) => A; /** * A namespace containing utility types for Chunk operations. * - * @example + * **Example** (Working with Chunk utility types) + * * ```ts * import type { Chunk } from "effect" * @@ -1993,14 +2150,14 @@ export declare const lastNonEmpty: (self: NonEmptyChunk) => A; * type WithString = Chunk.Chunk.With // Chunk.NonEmptyChunk * ``` * - * @category types * @since 2.0.0 */ export declare namespace Chunk { /** * Infers the element type of a Chunk. * - * @example + * **Example** (Inferring element types) + * * ```ts * import type { Chunk } from "effect" * @@ -2018,7 +2175,8 @@ export declare namespace Chunk { /** * Constructs a Chunk type preserving non-emptiness. * - * @example + * **Example** (Preserving non-emptiness) + * * ```ts * import type { Chunk } from "effect" * @@ -2036,7 +2194,8 @@ export declare namespace Chunk { /** * Creates a non-empty Chunk if either input is non-empty. * - * @example + * **Example** (Preserving non-emptiness from either input) + * * ```ts * import type { Chunk } from "effect" * @@ -2067,7 +2226,8 @@ export declare namespace Chunk { /** * Creates a non-empty Chunk only if both inputs are non-empty. * - * @example + * **Example** (Requiring non-emptiness from both inputs) + * * ```ts * import type { Chunk } from "effect" * @@ -2098,7 +2258,8 @@ export declare namespace Chunk { /** * Flattens a nested Chunk type. * - * @example + * **Example** (Flattening nested chunk types) + * * ```ts * import type { Chunk } from "effect" * @@ -2118,83 +2279,80 @@ export declare namespace Chunk { * Transforms the elements of a chunk using the specified mapping function. * If the input chunk is non-empty, the resulting chunk will also be non-empty. * - * @example + * **Example** (Mapping values) * * ```ts * import { Chunk } from "effect" * * const result = Chunk.map(Chunk.make(1, 2), (n) => n + 1) * - * console.log(result) - * // { _id: 'Chunk', values: [ 2, 3 ] } + * console.log(Chunk.toArray(result)) // [2, 3] * ``` * - * @since 2.0.0 * @category mapping + * @since 2.0.0 */ export declare const map: { /** * Transforms the elements of a chunk using the specified mapping function. * If the input chunk is non-empty, the resulting chunk will also be non-empty. * - * @example + * **Example** (Mapping values) * * ```ts * import { Chunk } from "effect" * * const result = Chunk.map(Chunk.make(1, 2), (n) => n + 1) * - * console.log(result) - * // { _id: 'Chunk', values: [ 2, 3 ] } + * console.log(Chunk.toArray(result)) // [2, 3] * ``` * - * @since 2.0.0 * @category mapping + * @since 2.0.0 */ , B>(f: (a: Chunk.Infer, i: number) => B): (self: S) => Chunk.With; /** * Transforms the elements of a chunk using the specified mapping function. * If the input chunk is non-empty, the resulting chunk will also be non-empty. * - * @example + * **Example** (Mapping values) * * ```ts * import { Chunk } from "effect" * * const result = Chunk.map(Chunk.make(1, 2), (n) => n + 1) * - * console.log(result) - * // { _id: 'Chunk', values: [ 2, 3 ] } + * console.log(Chunk.toArray(result)) // [2, 3] * ``` * - * @since 2.0.0 * @category mapping + * @since 2.0.0 */ (self: NonEmptyChunk, f: (a: A, i: number) => B): NonEmptyChunk; /** * Transforms the elements of a chunk using the specified mapping function. * If the input chunk is non-empty, the resulting chunk will also be non-empty. * - * @example + * **Example** (Mapping values) * * ```ts * import { Chunk } from "effect" * * const result = Chunk.map(Chunk.make(1, 2), (n) => n + 1) * - * console.log(result) - * // { _id: 'Chunk', values: [ 2, 3 ] } + * console.log(Chunk.toArray(result)) // [2, 3] * ``` * - * @since 2.0.0 * @category mapping + * @since 2.0.0 */ (self: Chunk, f: (a: A, i: number) => B): Chunk; }; /** - * Statefully maps over the chunk, producing new elements of type `B`. + * Maps over the chunk statefully, producing new elements of type `B`. + * + * **Example** (Mapping with accumulated state) * - * @example * ```ts * import { Chunk } from "effect" * @@ -2217,14 +2375,15 @@ export declare const map: { * console.log(Chunk.toArray(indexed)) // ["0: hello", "1: world", "2: effect"] * ``` * - * @since 2.0.0 * @category folding + * @since 2.0.0 */ export declare const mapAccum: { /** - * Statefully maps over the chunk, producing new elements of type `B`. + * Maps over the chunk statefully, producing new elements of type `B`. + * + * **Example** (Mapping with accumulated state) * - * @example * ```ts * import { Chunk } from "effect" * @@ -2247,14 +2406,15 @@ export declare const mapAccum: { * console.log(Chunk.toArray(indexed)) // ["0: hello", "1: world", "2: effect"] * ``` * - * @since 2.0.0 * @category folding + * @since 2.0.0 */ (s: S, f: (s: S, a: A) => readonly [S, B]): (self: Chunk) => [S, Chunk]; /** - * Statefully maps over the chunk, producing new elements of type `B`. + * Maps over the chunk statefully, producing new elements of type `B`. + * + * **Example** (Mapping with accumulated state) * - * @example * ```ts * import { Chunk } from "effect" * @@ -2277,18 +2437,20 @@ export declare const mapAccum: { * console.log(Chunk.toArray(indexed)) // ["0: hello", "1: world", "2: effect"] * ``` * - * @since 2.0.0 * @category folding + * @since 2.0.0 */ (self: Chunk, s: S, f: (s: S, a: A) => readonly [S, B]): [S, Chunk]; }; /** * Splits a chunk using a `Filter` into failures and successes. * - * - Returns `[excluded, satisfying]`. - * - The filter receives `(element, index)`. + * **Details** + * + * Returns `[excluded, satisfying]`. The filter receives `(element, index)`. + * + * **Example** (Partitioning with a Result) * - * @example * ```ts * import { Chunk, Result } from "effect" * @@ -2307,10 +2469,12 @@ export declare const partition: { /** * Splits a chunk using a `Filter` into failures and successes. * - * - Returns `[excluded, satisfying]`. - * - The filter receives `(element, index)`. + * **Details** + * + * Returns `[excluded, satisfying]`. The filter receives `(element, index)`. + * + * **Example** (Partitioning with a Result) * - * @example * ```ts * import { Chunk, Result } from "effect" * @@ -2329,10 +2493,12 @@ export declare const partition: { /** * Splits a chunk using a `Filter` into failures and successes. * - * - Returns `[excluded, satisfying]`. - * - The filter receives `(element, index)`. + * **Details** + * + * Returns `[excluded, satisfying]`. The filter receives `(element, index)`. + * + * **Example** (Partitioning with a Result) * - * @example * ```ts * import { Chunk, Result } from "effect" * @@ -2350,12 +2516,18 @@ export declare const partition: { (self: Chunk, f: (input: A, i: number) => Result): [excluded: Chunk, satisfying: Chunk]; }; /** - * Partitions the elements of this chunk into two chunks. + * Separates a chunk of `Result` values into a chunk of failures and a chunk of + * successes. + * + * **Details** + * + * The returned tuple is `[failures, successes]`, preserving the original order + * within each side. + * + * **Example** (Separating failures and successes) * - * @example * ```ts - * import { Chunk } from "effect" - * import * as Result from "effect/Result" + * import { Chunk, Result } from "effect" * * const chunk = Chunk.make( * Result.succeed(1), @@ -2383,7 +2555,8 @@ export declare const separate: (self: Chunk>) => [Chunk, C /** * Retrieves the size of the chunk. * - * @example + * **Example** (Getting chunk size) + * * ```ts * import { Chunk } from "effect" * @@ -2396,12 +2569,12 @@ export declare const separate: (self: Chunk>) => [Chunk, C */ export declare const size: (self: Chunk) => number; /** - * Sort the elements of a Chunk in increasing order, creating a new Chunk. + * Sorts the elements of a `Chunk` in increasing order, creating a new `Chunk`. + * + * **Example** (Sorting chunks) * - * @example * ```ts - * import { Chunk } from "effect" - * import * as Order from "effect/Order" + * import { Chunk, Order } from "effect" * * const numbers = Chunk.make(3, 1, 4, 1, 5, 9, 2, 6) * const sorted = Chunk.sort(numbers, Order.Number) @@ -2417,17 +2590,17 @@ export declare const size: (self: Chunk) => number; * console.log(Chunk.toArray(sortedWords)) // ["apple", "banana", "cherry"] * ``` * - * @since 2.0.0 * @category sorting + * @since 2.0.0 */ export declare const sort: { /** - * Sort the elements of a Chunk in increasing order, creating a new Chunk. + * Sorts the elements of a `Chunk` in increasing order, creating a new `Chunk`. + * + * **Example** (Sorting chunks) * - * @example * ```ts - * import { Chunk } from "effect" - * import * as Order from "effect/Order" + * import { Chunk, Order } from "effect" * * const numbers = Chunk.make(3, 1, 4, 1, 5, 9, 2, 6) * const sorted = Chunk.sort(numbers, Order.Number) @@ -2443,17 +2616,17 @@ export declare const sort: { * console.log(Chunk.toArray(sortedWords)) // ["apple", "banana", "cherry"] * ``` * - * @since 2.0.0 * @category sorting + * @since 2.0.0 */ (O: Order.Order): (self: Chunk) => Chunk; /** - * Sort the elements of a Chunk in increasing order, creating a new Chunk. + * Sorts the elements of a `Chunk` in increasing order, creating a new `Chunk`. + * + * **Example** (Sorting chunks) * - * @example * ```ts - * import { Chunk } from "effect" - * import * as Order from "effect/Order" + * import { Chunk, Order } from "effect" * * const numbers = Chunk.make(3, 1, 4, 1, 5, 9, 2, 6) * const sorted = Chunk.sort(numbers, Order.Number) @@ -2469,18 +2642,18 @@ export declare const sort: { * console.log(Chunk.toArray(sortedWords)) // ["apple", "banana", "cherry"] * ``` * - * @since 2.0.0 * @category sorting + * @since 2.0.0 */ (self: Chunk, O: Order.Order): Chunk; }; /** - * Sorts the elements of a Chunk based on a projection function. + * Sorts the elements of a `Chunk` based on a projection function. + * + * **Example** (Sorting chunks by a derived value) * - * @example * ```ts - * import { Chunk } from "effect" - * import * as Order from "effect/Order" + * import { Chunk, Order } from "effect" * * const people = Chunk.make( * { name: "Alice", age: 30 }, @@ -2504,17 +2677,17 @@ export declare const sort: { * console.log(Chunk.toArray(byLength)) // ["a", "ab", "abc"] * ``` * - * @since 2.0.0 * @category sorting + * @since 2.0.0 */ export declare const sortWith: { /** - * Sorts the elements of a Chunk based on a projection function. + * Sorts the elements of a `Chunk` based on a projection function. + * + * **Example** (Sorting chunks by a derived value) * - * @example * ```ts - * import { Chunk } from "effect" - * import * as Order from "effect/Order" + * import { Chunk, Order } from "effect" * * const people = Chunk.make( * { name: "Alice", age: 30 }, @@ -2538,17 +2711,17 @@ export declare const sortWith: { * console.log(Chunk.toArray(byLength)) // ["a", "ab", "abc"] * ``` * - * @since 2.0.0 * @category sorting + * @since 2.0.0 */ (f: (a: A) => B, order: Order.Order): (self: Chunk) => Chunk; /** - * Sorts the elements of a Chunk based on a projection function. + * Sorts the elements of a `Chunk` based on a projection function. + * + * **Example** (Sorting chunks by a derived value) * - * @example * ```ts - * import { Chunk } from "effect" - * import * as Order from "effect/Order" + * import { Chunk, Order } from "effect" * * const people = Chunk.make( * { name: "Alice", age: 30 }, @@ -2572,15 +2745,16 @@ export declare const sortWith: { * console.log(Chunk.toArray(byLength)) // ["a", "ab", "abc"] * ``` * - * @since 2.0.0 * @category sorting + * @since 2.0.0 */ (self: Chunk, f: (a: A) => B, order: Order.Order): Chunk; }; /** * Returns two splits of this chunk at the specified index. * - * @example + * **Example** (Splitting at an index) + * * ```ts * import { Chunk } from "effect" * @@ -2600,14 +2774,15 @@ export declare const sortWith: { * console.log(Chunk.toArray(empty2)) // [] * ``` * - * @since 2.0.0 * @category splitting + * @since 2.0.0 */ export declare const splitAt: { /** * Returns two splits of this chunk at the specified index. * - * @example + * **Example** (Splitting at an index) + * * ```ts * import { Chunk } from "effect" * @@ -2627,14 +2802,15 @@ export declare const splitAt: { * console.log(Chunk.toArray(empty2)) // [] * ``` * - * @since 2.0.0 * @category splitting + * @since 2.0.0 */ (n: number): (self: Chunk) => [beforeIndex: Chunk, fromIndex: Chunk]; /** * Returns two splits of this chunk at the specified index. * - * @example + * **Example** (Splitting at an index) + * * ```ts * import { Chunk } from "effect" * @@ -2654,16 +2830,23 @@ export declare const splitAt: { * console.log(Chunk.toArray(empty2)) // [] * ``` * - * @since 2.0.0 * @category splitting + * @since 2.0.0 */ (self: Chunk, n: number): [beforeIndex: Chunk, fromIndex: Chunk]; }; /** - * Splits a `NonEmptyChunk` into two segments, with the first segment containing a maximum of `n` elements. - * The value of `n` must be `>= 1`. + * Splits a `NonEmptyChunk` at `n`, returning a non-empty prefix and the + * remaining suffix. + * + * **Details** + * + * `n` is floored and normalized to at least `1`. If `n` is greater than or + * equal to the chunk length, the first result is the original chunk and the + * second result is empty. + * + * **Example** (Splitting non-empty chunks at an index) * - * @example * ```ts * import { Chunk } from "effect" * @@ -2686,10 +2869,17 @@ export declare const splitAt: { */ export declare const splitNonEmptyAt: { /** - * Splits a `NonEmptyChunk` into two segments, with the first segment containing a maximum of `n` elements. - * The value of `n` must be `>= 1`. + * Splits a `NonEmptyChunk` at `n`, returning a non-empty prefix and the + * remaining suffix. + * + * **Details** + * + * `n` is floored and normalized to at least `1`. If `n` is greater than or + * equal to the chunk length, the first result is the original chunk and the + * second result is empty. + * + * **Example** (Splitting non-empty chunks at an index) * - * @example * ```ts * import { Chunk } from "effect" * @@ -2712,10 +2902,17 @@ export declare const splitNonEmptyAt: { */ (n: number): (self: NonEmptyChunk) => [beforeIndex: NonEmptyChunk, fromIndex: Chunk]; /** - * Splits a `NonEmptyChunk` into two segments, with the first segment containing a maximum of `n` elements. - * The value of `n` must be `>= 1`. + * Splits a `NonEmptyChunk` at `n`, returning a non-empty prefix and the + * remaining suffix. + * + * **Details** + * + * `n` is floored and normalized to at least `1`. If `n` is greater than or + * equal to the chunk length, the first result is the original chunk and the + * second result is empty. + * + * **Example** (Splitting non-empty chunks at an index) * - * @example * ```ts * import { Chunk } from "effect" * @@ -2739,9 +2936,15 @@ export declare const splitNonEmptyAt: { (self: NonEmptyChunk, n: number): [beforeIndex: NonEmptyChunk, fromIndex: Chunk]; }; /** - * Splits this chunk into `n` equally sized chunks. + * Splits a chunk into up to `n` chunks, distributing elements in order. + * + * **Details** + * + * The chunk size is derived from the input length and `n`; the final chunk may + * contain fewer elements than the others. + * + * **Example** (Splitting chunks into groups) * - * @example * ```ts * import { Chunk } from "effect" * @@ -2762,14 +2965,20 @@ export declare const splitNonEmptyAt: { * // [[1, 2, 3, 4, 5, 6, 7, 8, 9]] * ``` * - * @since 2.0.0 * @category splitting + * @since 2.0.0 */ export declare const split: { /** - * Splits this chunk into `n` equally sized chunks. + * Splits a chunk into up to `n` chunks, distributing elements in order. + * + * **Details** + * + * The chunk size is derived from the input length and `n`; the final chunk may + * contain fewer elements than the others. + * + * **Example** (Splitting chunks into groups) * - * @example * ```ts * import { Chunk } from "effect" * @@ -2790,14 +2999,20 @@ export declare const split: { * // [[1, 2, 3, 4, 5, 6, 7, 8, 9]] * ``` * - * @since 2.0.0 * @category splitting + * @since 2.0.0 */ (n: number): (self: Chunk) => Chunk>; /** - * Splits this chunk into `n` equally sized chunks. + * Splits a chunk into up to `n` chunks, distributing elements in order. + * + * **Details** + * + * The chunk size is derived from the input length and `n`; the final chunk may + * contain fewer elements than the others. + * + * **Example** (Splitting chunks into groups) * - * @example * ```ts * import { Chunk } from "effect" * @@ -2818,8 +3033,8 @@ export declare const split: { * // [[1, 2, 3, 4, 5, 6, 7, 8, 9]] * ``` * - * @since 2.0.0 * @category splitting + * @since 2.0.0 */ (self: Chunk, n: number): Chunk>; }; @@ -2827,7 +3042,8 @@ export declare const split: { * Splits this chunk on the first element that matches this predicate. * Returns a tuple containing two chunks: the first one is before the match, and the second one is from the match onward. * - * @example + * **Example** (Splitting at a matching element) + * * ```ts * import { Chunk } from "effect" * @@ -2855,7 +3071,8 @@ export declare const splitWhere: { * Splits this chunk on the first element that matches this predicate. * Returns a tuple containing two chunks: the first one is before the match, and the second one is from the match onward. * - * @example + * **Example** (Splitting at a matching element) + * * ```ts * import { Chunk } from "effect" * @@ -2883,7 +3100,8 @@ export declare const splitWhere: { * Splits this chunk on the first element that matches this predicate. * Returns a tuple containing two chunks: the first one is before the match, and the second one is from the match onward. * - * @example + * **Example** (Splitting at a matching element) + * * ```ts * import { Chunk } from "effect" * @@ -2909,9 +3127,10 @@ export declare const splitWhere: { (self: Chunk, predicate: Predicate): [beforeMatch: Chunk, fromMatch: Chunk]; }; /** - * Returns every elements after the first. + * Returns every element after the first safely, or `None` when the chunk is empty. + * + * **Example** (Getting the tail safely) * - * @example * ```ts * import { Chunk } from "effect" * @@ -2925,14 +3144,15 @@ export declare const splitWhere: { * console.log(Chunk.tail(empty)) // Option.none() * ``` * - * @since 2.0.0 * @category elements + * @since 2.0.0 */ export declare const tail: (self: Chunk) => O.Option>; /** - * Returns every elements after the first. + * Returns every element after the first from a non-empty chunk. + * + * **Example** (Getting the tail of a non-empty chunk) * - * @example * ```ts * import { Chunk } from "effect" * @@ -2948,14 +3168,15 @@ export declare const tail: (self: Chunk) => O.Option>; * // Chunk.tailNonEmpty(Chunk.empty()) // TypeScript error * ``` * - * @since 2.0.0 * @category elements + * @since 2.0.0 */ export declare const tailNonEmpty: (self: NonEmptyChunk) => Chunk; /** * Takes the last `n` elements. * - * @example + * **Example** (Taking elements from the end) + * * ```ts * import { Chunk } from "effect" * @@ -2972,14 +3193,15 @@ export declare const tailNonEmpty: (self: NonEmptyChunk) => Chunk; * console.log(Chunk.toArray(none)) // [] * ``` * - * @since 2.0.0 * @category elements + * @since 2.0.0 */ export declare const takeRight: { /** * Takes the last `n` elements. * - * @example + * **Example** (Taking elements from the end) + * * ```ts * import { Chunk } from "effect" * @@ -2996,14 +3218,15 @@ export declare const takeRight: { * console.log(Chunk.toArray(none)) // [] * ``` * - * @since 2.0.0 * @category elements + * @since 2.0.0 */ (n: number): (self: Chunk) => Chunk; /** * Takes the last `n` elements. * - * @example + * **Example** (Taking elements from the end) + * * ```ts * import { Chunk } from "effect" * @@ -3020,15 +3243,16 @@ export declare const takeRight: { * console.log(Chunk.toArray(none)) // [] * ``` * - * @since 2.0.0 * @category elements + * @since 2.0.0 */ (self: Chunk, n: number): Chunk; }; /** * Takes all elements so long as the predicate returns true. * - * @example + * **Example** (Taking elements while a predicate matches) + * * ```ts * import { Chunk } from "effect" * @@ -3046,14 +3270,15 @@ export declare const takeRight: { * console.log(Chunk.toArray(all)) // [1, 2, 3] * ``` * - * @since 2.0.0 * @category elements + * @since 2.0.0 */ export declare const takeWhile: { /** * Takes all elements so long as the predicate returns true. * - * @example + * **Example** (Taking elements while a predicate matches) + * * ```ts * import { Chunk } from "effect" * @@ -3071,14 +3296,15 @@ export declare const takeWhile: { * console.log(Chunk.toArray(all)) // [1, 2, 3] * ``` * - * @since 2.0.0 * @category elements + * @since 2.0.0 */ (refinement: Refinement, B>): (self: Chunk) => Chunk; /** * Takes all elements so long as the predicate returns true. * - * @example + * **Example** (Taking elements while a predicate matches) + * * ```ts * import { Chunk } from "effect" * @@ -3096,14 +3322,15 @@ export declare const takeWhile: { * console.log(Chunk.toArray(all)) // [1, 2, 3] * ``` * - * @since 2.0.0 * @category elements + * @since 2.0.0 */ (predicate: Predicate>): (self: Chunk) => Chunk; /** * Takes all elements so long as the predicate returns true. * - * @example + * **Example** (Taking elements while a predicate matches) + * * ```ts * import { Chunk } from "effect" * @@ -3121,14 +3348,15 @@ export declare const takeWhile: { * console.log(Chunk.toArray(all)) // [1, 2, 3] * ``` * - * @since 2.0.0 * @category elements + * @since 2.0.0 */ (self: Chunk, refinement: Refinement): Chunk; /** * Takes all elements so long as the predicate returns true. * - * @example + * **Example** (Taking elements while a predicate matches) + * * ```ts * import { Chunk } from "effect" * @@ -3146,15 +3374,16 @@ export declare const takeWhile: { * console.log(Chunk.toArray(all)) // [1, 2, 3] * ``` * - * @since 2.0.0 * @category elements + * @since 2.0.0 */ (self: Chunk, predicate: Predicate): Chunk; }; /** * Creates a Chunks of unique values, in order, from all given Chunks. * - * @example + * **Example** (Unioning chunks) + * * ```ts * import { Chunk } from "effect" * @@ -3170,14 +3399,15 @@ export declare const takeWhile: { * console.log(Chunk.toArray(unified)) // [1, 2, 3] * ``` * - * @since 2.0.0 * @category elements + * @since 2.0.0 */ export declare const union: { /** * Creates a Chunks of unique values, in order, from all given Chunks. * - * @example + * **Example** (Unioning chunks) + * * ```ts * import { Chunk } from "effect" * @@ -3193,14 +3423,15 @@ export declare const union: { * console.log(Chunk.toArray(unified)) // [1, 2, 3] * ``` * - * @since 2.0.0 * @category elements + * @since 2.0.0 */ (that: Chunk): (self: Chunk) => Chunk; /** * Creates a Chunks of unique values, in order, from all given Chunks. * - * @example + * **Example** (Unioning chunks) + * * ```ts * import { Chunk } from "effect" * @@ -3216,15 +3447,17 @@ export declare const union: { * console.log(Chunk.toArray(unified)) // [1, 2, 3] * ``` * - * @since 2.0.0 * @category elements + * @since 2.0.0 */ (self: Chunk, that: Chunk): Chunk; }; /** - * Remove duplicates from an array, keeping the first occurrence of an element. + * Removes duplicate elements from a `Chunk`, preserving the first occurrence + * of each value. + * + * **Example** (Removing duplicate values) * - * @example * ```ts * import { Chunk } from "effect" * @@ -3243,14 +3476,15 @@ export declare const union: { * console.log(Chunk.toArray(uniqueDeduped)) // [1, 2, 3] * ``` * - * @since 2.0.0 * @category elements + * @since 2.0.0 */ export declare const dedupe: (self: Chunk) => Chunk; /** * Deduplicates adjacent elements that are identical. * - * @example + * **Example** (Removing adjacent duplicates) + * * ```ts * import { Chunk } from "effect" * @@ -3264,16 +3498,19 @@ export declare const dedupe: (self: Chunk) => Chunk; * console.log(Chunk.toArray(mixedResult)) // ["a", "b", "a"] * ``` * - * @since 2.0.0 * @category filtering + * @since 2.0.0 */ export declare const dedupeAdjacent: (self: Chunk) => Chunk; /** - * Takes a `Chunk` of pairs and return two corresponding `Chunk`s. + * Takes a `Chunk` of pairs and returns two corresponding `Chunk`s. + * + * **Details** + * + * This function is the reverse of `zip`. * - * Note: The function is reverse of `zip`. + * **Example** (Unzipping pairs) * - * @example * ```ts * import { Chunk } from "effect" * @@ -3293,14 +3530,15 @@ export declare const dedupeAdjacent: (self: Chunk) => Chunk; * console.log(Chunk.toArray(emptyStrs)) // [] * ``` * - * @since 2.0.0 * @category elements + * @since 2.0.0 */ export declare const unzip: (self: Chunk) => [Chunk, Chunk]; /** * Zips this chunk pointwise with the specified chunk using the specified combiner. * - * @example + * **Example** (Zipping chunks with a function) + * * ```ts * import { Chunk } from "effect" * @@ -3316,14 +3554,15 @@ export declare const unzip: (self: Chunk) => [Chunk, C * console.log(Chunk.toArray(mixed)) // [[1, "a"], [2, "b"]] * ``` * - * @since 2.0.0 * @category zipping + * @since 2.0.0 */ export declare const zipWith: { /** * Zips this chunk pointwise with the specified chunk using the specified combiner. * - * @example + * **Example** (Zipping chunks with a function) + * * ```ts * import { Chunk } from "effect" * @@ -3339,14 +3578,15 @@ export declare const zipWith: { * console.log(Chunk.toArray(mixed)) // [[1, "a"], [2, "b"]] * ``` * - * @since 2.0.0 * @category zipping + * @since 2.0.0 */ (that: Chunk, f: (a: A, b: B) => C): (self: Chunk) => Chunk; /** * Zips this chunk pointwise with the specified chunk using the specified combiner. * - * @example + * **Example** (Zipping chunks with a function) + * * ```ts * import { Chunk } from "effect" * @@ -3362,15 +3602,16 @@ export declare const zipWith: { * console.log(Chunk.toArray(mixed)) // [[1, "a"], [2, "b"]] * ``` * - * @since 2.0.0 * @category zipping + * @since 2.0.0 */ (self: Chunk, that: Chunk, f: (a: A, b: B) => C): Chunk; }; /** * Zips this chunk pointwise with the specified chunk. * - * @example + * **Example** (Zipping chunks) + * * ```ts * import { Chunk } from "effect" * @@ -3386,14 +3627,15 @@ export declare const zipWith: { * console.log(Chunk.toArray(zipped)) // [[1, "a"], [2, "b"]] * ``` * - * @since 2.0.0 * @category zipping + * @since 2.0.0 */ export declare const zip: { /** * Zips this chunk pointwise with the specified chunk. * - * @example + * **Example** (Zipping chunks) + * * ```ts * import { Chunk } from "effect" * @@ -3409,14 +3651,15 @@ export declare const zip: { * console.log(Chunk.toArray(zipped)) // [[1, "a"], [2, "b"]] * ``` * - * @since 2.0.0 * @category zipping + * @since 2.0.0 */ (that: Chunk): (self: Chunk) => Chunk<[A, B]>; /** * Zips this chunk pointwise with the specified chunk. * - * @example + * **Example** (Zipping chunks) + * * ```ts * import { Chunk } from "effect" * @@ -3432,15 +3675,16 @@ export declare const zip: { * console.log(Chunk.toArray(zipped)) // [[1, "a"], [2, "b"]] * ``` * - * @since 2.0.0 * @category zipping + * @since 2.0.0 */ (self: Chunk, that: Chunk): Chunk<[A, B]>; }; /** - * Delete the element at the specified index, creating a new `Chunk`. + * Deletes the element at the specified index, creating a new `Chunk`. + * + * **Example** (Removing an element) * - * @example * ```ts * import { Chunk } from "effect" * @@ -3462,9 +3706,10 @@ export declare const zip: { */ export declare const remove: { /** - * Delete the element at the specified index, creating a new `Chunk`. + * Deletes the element at the specified index, creating a new `Chunk`. + * + * **Example** (Removing an element) * - * @example * ```ts * import { Chunk } from "effect" * @@ -3486,9 +3731,10 @@ export declare const remove: { */ (i: number): (self: Chunk) => Chunk; /** - * Delete the element at the specified index, creating a new `Chunk`. + * Deletes the element at the specified index, creating a new `Chunk`. + * + * **Example** (Removing an element) * - * @example * ```ts * import { Chunk } from "effect" * @@ -3511,10 +3757,11 @@ export declare const remove: { (self: Chunk, i: number): Chunk; }; /** - * Applies a function to the element at the specified index, creating a new `Chunk`, + * Applies a function to the element at the specified index safely, creating a new `Chunk`, * or returns `None` if the index is out of bounds. * - * @example + * **Example** (Modifying an element) + * * ```ts * import { Chunk } from "effect" * @@ -3536,10 +3783,11 @@ export declare const remove: { */ export declare const modify: { /** - * Applies a function to the element at the specified index, creating a new `Chunk`, + * Applies a function to the element at the specified index safely, creating a new `Chunk`, * or returns `None` if the index is out of bounds. * - * @example + * **Example** (Modifying an element) + * * ```ts * import { Chunk } from "effect" * @@ -3561,10 +3809,11 @@ export declare const modify: { */ (i: number, f: (a: A) => B): (self: Chunk) => O.Option>; /** - * Applies a function to the element at the specified index, creating a new `Chunk`, + * Applies a function to the element at the specified index safely, creating a new `Chunk`, * or returns `None` if the index is out of bounds. * - * @example + * **Example** (Modifying an element) + * * ```ts * import { Chunk } from "effect" * @@ -3587,10 +3836,11 @@ export declare const modify: { (self: Chunk, i: number, f: (a: A) => B): O.Option>; }; /** - * Change the element at the specified index, creating a new `Chunk`, + * Changes the element at the specified index safely, creating a new `Chunk`, * or returns `None` if the index is out of bounds. * - * @example + * **Example** (Replacing an element) + * * ```ts * import { Chunk } from "effect" * @@ -3612,10 +3862,11 @@ export declare const modify: { */ export declare const replace: { /** - * Change the element at the specified index, creating a new `Chunk`, + * Changes the element at the specified index safely, creating a new `Chunk`, * or returns `None` if the index is out of bounds. * - * @example + * **Example** (Replacing an element) + * * ```ts * import { Chunk } from "effect" * @@ -3637,10 +3888,11 @@ export declare const replace: { */ (i: number, b: B): (self: Chunk) => O.Option>; /** - * Change the element at the specified index, creating a new `Chunk`, + * Changes the element at the specified index safely, creating a new `Chunk`, * or returns `None` if the index is out of bounds. * - * @example + * **Example** (Replacing an element) + * * ```ts * import { Chunk } from "effect" * @@ -3663,17 +3915,19 @@ export declare const replace: { (self: Chunk, i: number, b: B): O.Option>; }; /** - * Return a Chunk of length n with element i initialized with f(i). + * Returns a non-empty `Chunk` of length `n` with element `i` initialized by `f(i)`. + * + * **Details** + * + * `n` is normalized to an integer greater than or equal to `1`. * - * **Note**. `n` is normalized to an integer >= 1. + * **Example** (Generating chunks from indices) * - * @example * ```ts * import { Chunk } from "effect" * * const chunk = Chunk.makeBy(5, (i) => i * 2) - * console.log(chunk) - * // { _id: 'Chunk', values: [ 0, 2, 4, 6, 8 ] } + * console.log(Chunk.toArray(chunk)) // [0, 2, 4, 6, 8] * ``` * * @category constructors @@ -3681,17 +3935,19 @@ export declare const replace: { */ export declare const makeBy: { /** - * Return a Chunk of length n with element i initialized with f(i). + * Returns a non-empty `Chunk` of length `n` with element `i` initialized by `f(i)`. + * + * **Details** * - * **Note**. `n` is normalized to an integer >= 1. + * `n` is normalized to an integer greater than or equal to `1`. + * + * **Example** (Generating chunks from indices) * - * @example * ```ts * import { Chunk } from "effect" * * const chunk = Chunk.makeBy(5, (i) => i * 2) - * console.log(chunk) - * // { _id: 'Chunk', values: [ 0, 2, 4, 6, 8 ] } + * console.log(Chunk.toArray(chunk)) // [0, 2, 4, 6, 8] * ``` * * @category constructors @@ -3699,17 +3955,19 @@ export declare const makeBy: { */ (f: (i: number) => A): (n: number) => NonEmptyChunk; /** - * Return a Chunk of length n with element i initialized with f(i). + * Returns a non-empty `Chunk` of length `n` with element `i` initialized by `f(i)`. + * + * **Details** + * + * `n` is normalized to an integer greater than or equal to `1`. * - * **Note**. `n` is normalized to an integer >= 1. + * **Example** (Generating chunks from indices) * - * @example * ```ts * import { Chunk } from "effect" * * const chunk = Chunk.makeBy(5, (i) => i * 2) - * console.log(chunk) - * // { _id: 'Chunk', values: [ 0, 2, 4, 6, 8 ] } + * console.log(Chunk.toArray(chunk)) // [0, 2, 4, 6, 8] * ``` * * @category constructors @@ -3718,15 +3976,21 @@ export declare const makeBy: { (n: number, f: (i: number) => A): NonEmptyChunk; }; /** - * Create a non empty `Chunk` containing a range of integers, including both endpoints. + * Creates a non-empty `Chunk` of consecutive integers from `start` through + * `end`, inclusive. + * + * **Details** + * + * If `start` is greater than `end`, returns a single-element chunk containing + * `start`. + * + * **Example** (Creating a range) * - * @example * ```ts * import { Chunk } from "effect" * * const chunk = Chunk.range(1, 5) - * console.log(chunk) - * // { _id: 'Chunk', values: [ 1, 2, 3, 4, 5 ] } + * console.log(Chunk.toArray(chunk)) // [1, 2, 3, 4, 5] * ``` * * @category constructors @@ -3736,7 +4000,8 @@ export declare const range: (start: number, end: number) => NonEmptyChunk(isEquivalent: (self: A, that: A) => boole * Returns the first element that satisfies the specified * predicate, or `None` if no such element exists. * - * @example + * **Example** (Finding the first matching element) + * * ```ts * import { Chunk, Option } from "effect" * @@ -3875,7 +4144,8 @@ export declare const findFirst: { * Returns the first element that satisfies the specified * predicate, or `None` if no such element exists. * - * @example + * **Example** (Finding the first matching element) + * * ```ts * import { Chunk, Option } from "effect" * @@ -3905,7 +4175,8 @@ export declare const findFirst: { * Returns the first element that satisfies the specified * predicate, or `None` if no such element exists. * - * @example + * **Example** (Finding the first matching element) + * * ```ts * import { Chunk, Option } from "effect" * @@ -3935,7 +4206,8 @@ export declare const findFirst: { * Returns the first element that satisfies the specified * predicate, or `None` if no such element exists. * - * @example + * **Example** (Finding the first matching element) + * * ```ts * import { Chunk, Option } from "effect" * @@ -3965,7 +4237,8 @@ export declare const findFirst: { * Returns the first element that satisfies the specified * predicate, or `None` if no such element exists. * - * @example + * **Example** (Finding the first matching element) + * * ```ts * import { Chunk, Option } from "effect" * @@ -3993,9 +4266,10 @@ export declare const findFirst: { (self: Chunk, predicate: Predicate): Option; }; /** - * Return the first index for which a predicate holds. + * Returns the first index for which a predicate holds. + * + * **Example** (Finding the first matching index) * - * @example * ```ts * import { Chunk } from "effect" * @@ -4017,9 +4291,10 @@ export declare const findFirst: { */ export declare const findFirstIndex: { /** - * Return the first index for which a predicate holds. + * Returns the first index for which a predicate holds. + * + * **Example** (Finding the first matching index) * - * @example * ```ts * import { Chunk } from "effect" * @@ -4041,9 +4316,10 @@ export declare const findFirstIndex: { */ (predicate: Predicate): (self: Chunk) => O.Option; /** - * Return the first index for which a predicate holds. + * Returns the first index for which a predicate holds. + * + * **Example** (Finding the first matching index) * - * @example * ```ts * import { Chunk } from "effect" * @@ -4066,12 +4342,12 @@ export declare const findFirstIndex: { (self: Chunk, predicate: Predicate): O.Option; }; /** - * Find the last element for which a predicate holds. + * Finds the last element for which a predicate holds. + * + * **Example** (Finding the last matching element) * - * @example * ```ts - * import { Chunk } from "effect" - * import * as Option from "effect/Option" + * import { Chunk, Option } from "effect" * * const chunk = Chunk.make(1, 2, 3, 4, 5) * const result = Chunk.findLast(chunk, (n) => n < 4) @@ -4092,12 +4368,12 @@ export declare const findFirstIndex: { */ export declare const findLast: { /** - * Find the last element for which a predicate holds. + * Finds the last element for which a predicate holds. + * + * **Example** (Finding the last matching element) * - * @example * ```ts - * import { Chunk } from "effect" - * import * as Option from "effect/Option" + * import { Chunk, Option } from "effect" * * const chunk = Chunk.make(1, 2, 3, 4, 5) * const result = Chunk.findLast(chunk, (n) => n < 4) @@ -4118,12 +4394,12 @@ export declare const findLast: { */ (refinement: Refinement, B>): (self: Chunk) => Option; /** - * Find the last element for which a predicate holds. + * Finds the last element for which a predicate holds. + * + * **Example** (Finding the last matching element) * - * @example * ```ts - * import { Chunk } from "effect" - * import * as Option from "effect/Option" + * import { Chunk, Option } from "effect" * * const chunk = Chunk.make(1, 2, 3, 4, 5) * const result = Chunk.findLast(chunk, (n) => n < 4) @@ -4144,12 +4420,12 @@ export declare const findLast: { */ (predicate: Predicate>): (self: Chunk) => Option; /** - * Find the last element for which a predicate holds. + * Finds the last element for which a predicate holds. + * + * **Example** (Finding the last matching element) * - * @example * ```ts - * import { Chunk } from "effect" - * import * as Option from "effect/Option" + * import { Chunk, Option } from "effect" * * const chunk = Chunk.make(1, 2, 3, 4, 5) * const result = Chunk.findLast(chunk, (n) => n < 4) @@ -4170,12 +4446,12 @@ export declare const findLast: { */ (self: Chunk, refinement: Refinement): Option; /** - * Find the last element for which a predicate holds. + * Finds the last element for which a predicate holds. + * + * **Example** (Finding the last matching element) * - * @example * ```ts - * import { Chunk } from "effect" - * import * as Option from "effect/Option" + * import { Chunk, Option } from "effect" * * const chunk = Chunk.make(1, 2, 3, 4, 5) * const result = Chunk.findLast(chunk, (n) => n < 4) @@ -4197,9 +4473,10 @@ export declare const findLast: { (self: Chunk, predicate: Predicate): Option; }; /** - * Return the last index for which a predicate holds. + * Returns the last index for which a predicate holds. + * + * **Example** (Finding the last matching index) * - * @example * ```ts * import { Chunk } from "effect" * @@ -4221,9 +4498,10 @@ export declare const findLast: { */ export declare const findLastIndex: { /** - * Return the last index for which a predicate holds. + * Returns the last index for which a predicate holds. + * + * **Example** (Finding the last matching index) * - * @example * ```ts * import { Chunk } from "effect" * @@ -4245,9 +4523,10 @@ export declare const findLastIndex: { */ (predicate: Predicate): (self: Chunk) => O.Option; /** - * Return the last index for which a predicate holds. + * Returns the last index for which a predicate holds. + * + * **Example** (Finding the last matching index) * - * @example * ```ts * import { Chunk } from "effect" * @@ -4270,9 +4549,10 @@ export declare const findLastIndex: { (self: Chunk, predicate: Predicate): O.Option; }; /** - * Check if a predicate holds true for every `Chunk` element. + * Checks whether a predicate holds true for every `Chunk` element. + * + * **Example** (Checking every element) * - * @example * ```ts * import { Chunk } from "effect" * @@ -4297,9 +4577,10 @@ export declare const findLastIndex: { */ export declare const every: { /** - * Check if a predicate holds true for every `Chunk` element. + * Checks whether a predicate holds true for every `Chunk` element. + * + * **Example** (Checking every element) * - * @example * ```ts * import { Chunk } from "effect" * @@ -4324,9 +4605,10 @@ export declare const every: { */ (refinement: Refinement, B>): (self: Chunk) => self is Chunk; /** - * Check if a predicate holds true for every `Chunk` element. + * Checks whether a predicate holds true for every `Chunk` element. + * + * **Example** (Checking every element) * - * @example * ```ts * import { Chunk } from "effect" * @@ -4351,9 +4633,10 @@ export declare const every: { */ (predicate: Predicate): (self: Chunk) => boolean; /** - * Check if a predicate holds true for every `Chunk` element. + * Checks whether a predicate holds true for every `Chunk` element. + * + * **Example** (Checking every element) * - * @example * ```ts * import { Chunk } from "effect" * @@ -4378,9 +4661,10 @@ export declare const every: { */ (self: Chunk, refinement: Refinement): self is Chunk; /** - * Check if a predicate holds true for every `Chunk` element. + * Checks whether a predicate holds true for every `Chunk` element. + * + * **Example** (Checking every element) * - * @example * ```ts * import { Chunk } from "effect" * @@ -4406,9 +4690,10 @@ export declare const every: { (self: Chunk, predicate: Predicate): boolean; }; /** - * Check if a predicate holds true for some `Chunk` element. + * Checks whether a predicate holds true for some `Chunk` element. + * + * **Example** (Checking for some matching element) * - * @example * ```ts * import { Chunk } from "effect" * @@ -4430,9 +4715,10 @@ export declare const every: { */ export declare const some: { /** - * Check if a predicate holds true for some `Chunk` element. + * Checks whether a predicate holds true for some `Chunk` element. + * + * **Example** (Checking for some matching element) * - * @example * ```ts * import { Chunk } from "effect" * @@ -4454,9 +4740,10 @@ export declare const some: { */ (predicate: Predicate>): (self: Chunk) => self is NonEmptyChunk; /** - * Check if a predicate holds true for some `Chunk` element. + * Checks whether a predicate holds true for some `Chunk` element. + * + * **Example** (Checking for some matching element) * - * @example * ```ts * import { Chunk } from "effect" * @@ -4481,7 +4768,8 @@ export declare const some: { /** * Joins the elements together with "sep" in the middle. * - * @example + * **Example** (Joining chunks into a string) + * * ```ts * import { Chunk } from "effect" * @@ -4509,7 +4797,8 @@ export declare const join: { /** * Joins the elements together with "sep" in the middle. * - * @example + * **Example** (Joining chunks into a string) + * * ```ts * import { Chunk } from "effect" * @@ -4537,7 +4826,8 @@ export declare const join: { /** * Joins the elements together with "sep" in the middle. * - * @example + * **Example** (Joining chunks into a string) + * * ```ts * import { Chunk } from "effect" * @@ -4566,7 +4856,8 @@ export declare const join: { /** * Reduces the elements of a chunk from left to right. * - * @example + * **Example** (Reducing from the left) + * * ```ts * import { Chunk } from "effect" * @@ -4591,7 +4882,8 @@ export declare const reduce: { /** * Reduces the elements of a chunk from left to right. * - * @example + * **Example** (Reducing from the left) + * * ```ts * import { Chunk } from "effect" * @@ -4616,7 +4908,8 @@ export declare const reduce: { /** * Reduces the elements of a chunk from left to right. * - * @example + * **Example** (Reducing from the left) + * * ```ts * import { Chunk } from "effect" * @@ -4642,7 +4935,8 @@ export declare const reduce: { /** * Reduces the elements of a chunk from right to left. * - * @example + * **Example** (Reducing from the right) + * * ```ts * import { Chunk } from "effect" * @@ -4671,7 +4965,8 @@ export declare const reduceRight: { /** * Reduces the elements of a chunk from right to left. * - * @example + * **Example** (Reducing from the right) + * * ```ts * import { Chunk } from "effect" * @@ -4700,7 +4995,8 @@ export declare const reduceRight: { /** * Reduces the elements of a chunk from right to left. * - * @example + * **Example** (Reducing from the right) + * * ```ts * import { Chunk } from "effect" * @@ -4731,7 +5027,8 @@ export declare const reduceRight: { * Creates a `Chunk` of values not included in the other given `Chunk` using the provided `isEquivalent` function. * The order and references of result values are determined by the first `Chunk`. * - * @example + * **Example** (Computing difference with custom equivalence) + * * ```ts * import { Chunk } from "effect" * @@ -4766,7 +5063,8 @@ export declare const differenceWith: (isEquivalent: (self: A, that: A) => boo * Creates a `Chunk` of values not included in the other given `Chunk`. * The order and references of result values are determined by the first `Chunk`. * - * @example + * **Example** (Computing chunk difference) + * * ```ts * import { Chunk } from "effect" * @@ -4795,7 +5093,8 @@ export declare const difference: { * Creates a `Chunk` of values not included in the other given `Chunk`. * The order and references of result values are determined by the first `Chunk`. * - * @example + * **Example** (Computing chunk difference) + * * ```ts * import { Chunk } from "effect" * @@ -4824,7 +5123,8 @@ export declare const difference: { * Creates a `Chunk` of values not included in the other given `Chunk`. * The order and references of result values are determined by the first `Chunk`. * - * @example + * **Example** (Computing chunk difference) + * * ```ts * import { Chunk } from "effect" * diff --git a/.opencode/node_modules/effect/dist/Chunk.d.ts.map b/.opencode/node_modules/effect/dist/Chunk.d.ts.map index 21ceb11df2f17ee6289501db4638105e981682af..8287990f9388503ce2e371e07053b52c4353fc5f 100644 --- a/.opencode/node_modules/effect/dist/Chunk.d.ts.map +++ b/.opencode/node_modules/effect/dist/Chunk.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Chunk.d.ts","sourceRoot":"","sources":["../src/Chunk.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqEG;AACH,OAAO,KAAK,EAAE,MAAM,YAAY,CAAA;AAChC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAA;AACvD,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,WAAW,MAAM,kBAAkB,CAAA;AAC/C,OAAO,KAAK,KAAK,MAAM,MAAM,aAAa,CAAA;AAI1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAC1C,OAAO,EAAE,KAAK,WAAW,EAA6B,MAAM,kBAAkB,CAAA;AAC9E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAC7D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACzC,OAAO,KAAK,CAAC,MAAM,aAAa,CAAA;AAChC,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA;AACnC,OAA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AAE,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAA;CAM3C,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,UAAU,EAAE;IACvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACH,CAAC,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC,CAAC,CAAA;IACjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACH,CAAC,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAA;CAI9C,CAAA"} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Chunk.js b/.opencode/node_modules/effect/dist/Chunk.js index d1f9d02f0f6633ce5f2151aefa8b0cedf220dfb6..81137cd2b95afe3e53c4e3bc6abc747c69996022 100644 --- a/.opencode/node_modules/effect/dist/Chunk.js +++ b/.opencode/node_modules/effect/dist/Chunk.js @@ -1,70 +1,11 @@ /** - * The `Chunk` module provides an immutable, high-performance sequence data structure - * optimized for functional programming patterns. A `Chunk` is a persistent data structure - * that supports efficient append, prepend, and concatenation operations. + * Stores many values in an immutable ordered collection. * - * ## What is a Chunk? - * - * A `Chunk` is an immutable sequence of elements of type `A` that provides: - * - **O(1) append and prepend operations** - * - **Efficient concatenation** through tree-like structure - * - **Memory efficiency** with structural sharing - * - **Rich API** with functional programming operations - * - **Type safety** with full TypeScript integration - * - * ## Key Features - * - * - **Immutable**: All operations return new chunks without modifying the original - * - **Efficient**: Optimized data structure with logarithmic complexity for most operations - * - **Functional**: Rich set of transformation and combination operators - * - **Lazy evaluation**: Many operations are deferred until needed - * - **Interoperable**: Easy conversion to/from arrays and other collections - * - * ## Performance Characteristics - * - * - **Append/Prepend**: O(1) amortized - * - **Random Access**: O(log n) - * - **Concatenation**: O(log min(m, n)) - * - **Iteration**: O(n) - * - **Memory**: Structural sharing minimizes allocation - * - * @example - * ```ts - * import { Chunk } from "effect" - * - * // Creating chunks - * const chunk1 = Chunk.fromIterable([1, 2, 3]) - * const chunk2 = Chunk.fromIterable([4, 5, 6]) - * const empty = Chunk.empty() - * - * // Combining chunks - * const combined = Chunk.appendAll(chunk1, chunk2) - * console.log(Chunk.toReadonlyArray(combined)) // [1, 2, 3, 4, 5, 6] - * ``` - * - * @example - * ```ts - * import { Chunk } from "effect" - * - * // Functional transformations - * const numbers = Chunk.range(1, 5) // [1, 2, 3, 4, 5] - * const doubled = Chunk.map(numbers, (n) => n * 2) // [2, 4, 6, 8, 10] - * const evens = Chunk.filter(doubled, (n) => n % 4 === 0) // [4, 8] - * const sum = Chunk.reduce(evens, 0, (acc, n) => acc + n) // 12 - * ``` - * - * @example - * ```ts - * import { Chunk, Effect } from "effect" - * - * // Working with Effects - * const processChunk = (chunk: Chunk.Chunk) => - * Effect.gen(function*() { - * const mapped = Chunk.map(chunk, (n) => n * 2) - * const filtered = Chunk.filter(mapped, (n) => n > 5) - * return Chunk.toReadonlyArray(filtered) - * }) - * ``` + * A `Chunk` is useful when you need to build or transform collections + * without changing the original collection. It is designed for efficient + * append, prepend, and concatenation. This module includes helpers for + * creating, reading, slicing, mapping, filtering, sorting, zipping, combining, + * and converting chunks to and from arrays and iterables. * * @since 2.0.0 */ @@ -89,12 +30,13 @@ function copy(src, srcPos, dest, destPos, len) { } const emptyArray = []; /** - * Compares the two chunks of equal length using the specified function + * Creates an `Equivalence` for chunks that compares chunk lengths and then + * compares corresponding elements with the provided element equivalence. + * + * **Example** (Comparing chunks for equivalence) * - * @example * ```ts - * import { Chunk } from "effect" - * import * as Equivalence from "effect/Equivalence" + * import { Chunk, Equivalence } from "effect" * * const chunk1 = Chunk.make(1, 2, 3) * const chunk2 = Chunk.make(1, 2, 3) @@ -105,8 +47,8 @@ const emptyArray = []; * console.log(eq(chunk1, chunk3)) // false * ``` * - * @category equivalence - * @since 2.0.0 + * @category instances + * @since 4.0.0 */ export const makeEquivalence = isEquivalent => Equivalence.make((self, that) => self.length === that.length && toReadonlyArray(self).every((value, i) => isEquivalent(value, getUnsafe(that, i)))); const _equivalence = /*#__PURE__*/makeEquivalence(Equal.equals); @@ -200,9 +142,10 @@ const makeChunk = backing => { return chunk; }; /** - * Checks if `u` is a `Chunk` + * Checks whether `u` is a `Chunk` + * + * **Example** (Checking for chunks) * - * @example * ```ts * import { Chunk } from "effect" * @@ -224,7 +167,8 @@ const _empty = /*#__PURE__*/makeChunk({ /** * Creates an empty `Chunk`. * - * @example + * **Example** (Creating an empty chunk) + * * ```ts * import { Chunk } from "effect" * @@ -239,13 +183,13 @@ export const empty = () => _empty; /** * Builds a `NonEmptyChunk` from an non-empty collection of elements. * - * @example + * **Example** (Creating a non-empty chunk) + * * ```ts * import { Chunk } from "effect" * * const chunk = Chunk.make(1, 2, 3, 4) - * console.log(chunk) - * // { _id: 'Chunk', values: [ 1, 2, 3, 4 ] } + * console.log(Chunk.toArray(chunk)) // [1, 2, 3, 4] * ``` * * @category constructors @@ -255,13 +199,13 @@ export const make = (...as) => fromNonEmptyArrayUnsafe(as); /** * Builds a `NonEmptyChunk` from a single element. * - * @example + * **Example** (Creating a single-element chunk) + * * ```ts * import { Chunk } from "effect" * * const chunk = Chunk.of("hello") - * console.log(chunk) - * // { _id: 'Chunk', values: [ "hello" ] } + * console.log(Chunk.toArray(chunk)) // ["hello"] * ``` * * @category constructors @@ -274,13 +218,13 @@ export const of = a => makeChunk({ /** * Creates a new `Chunk` from an iterable collection of values. * - * @example + * **Example** (Creating chunks from iterables) + * * ```ts * import { Chunk } from "effect" * * const chunk = Chunk.fromIterable([1, 2, 3]) - * console.log(chunk) - * // { _id: 'Chunk', values: [ 1, 2, 3 ] } + * console.log(Chunk.toArray(chunk)) // [1, 2, 3] * ``` * * @category constructors @@ -324,7 +268,8 @@ const toArray_ = self => toReadonlyArray(self).slice(); * (`NonEmptyChunk`), the function will return a `NonEmptyArray`, ensuring the * non-empty property is preserved. * - * @example + * **Example** (Converting chunks to mutable arrays) + * * ```ts * import { Chunk } from "effect" * @@ -338,7 +283,7 @@ const toArray_ = self => toReadonlyArray(self).slice(); * console.log(Chunk.toArray(emptyChunk)) // [] * ``` * - * @category conversions + * @category converting * @since 2.0.0 */ export const toArray = toArray_; @@ -372,7 +317,8 @@ const toReadonlyArray_ = self => { * non-empty (`NonEmptyChunk`), the function will return a * `NonEmptyReadonlyArray`, ensuring the non-empty property is preserved. * - * @example + * **Example** (Converting chunks to readonly arrays) + * * ```ts * import { Chunk } from "effect" * @@ -388,7 +334,7 @@ const toReadonlyArray_ = self => { * console.log(Chunk.toReadonlyArray(emptyChunk)) // [] * ``` * - * @category conversions + * @category converting * @since 2.0.0 */ export const toReadonlyArray = toReadonlyArray_; @@ -418,9 +364,17 @@ const reverseChunk = self => { }; /** * Reverses the order of elements in a `Chunk`. - * Importantly, if the input chunk is a `NonEmptyChunk`, the reversed chunk will also be a `NonEmptyChunk`. * - * @example + * **When to use** + * + * Use to read or process chunk elements in reverse order. + * + * **Details** + * + * If the input chunk is a `NonEmptyChunk`, the reversed chunk is also a + * `NonEmptyChunk`. + * + * **Example** (Reversing chunks) * * ```ts * import { Chunk } from "effect" @@ -428,18 +382,19 @@ const reverseChunk = self => { * const chunk = Chunk.make(1, 2, 3) * const result = Chunk.reverse(chunk) * - * console.log(result) - * // { _id: 'Chunk', values: [ 3, 2, 1 ] } + * console.log(Chunk.toArray(result)) // [3, 2, 1] * ``` * - * @since 2.0.0 * @category elements + * @since 2.0.0 */ export const reverse = reverseChunk; /** - * This function provides a safe way to read a value at a particular index from a `Chunk`. + * Gets the value at an index in a `Chunk` safely, returning `None` when the index is + * out of bounds. + * + * **Example** (Accessing elements safely) * - * @example * ```ts * import { Chunk } from "effect" * @@ -459,9 +414,19 @@ export const reverse = reverseChunk; */ export const get = /*#__PURE__*/dual(2, (self, index) => index < 0 || index >= self.length ? O.none() : O.some(getUnsafe(self, index))); /** - * Wraps an array into a chunk without copying, unsafe on mutable arrays + * Wraps an array into a chunk without copying. + * + * **When to use** + * + * Use when the input array can be shared with the resulting `Chunk` and avoiding + * a copy matters. + * + * **Gotchas** + * + * Mutating the source array after wrapping can mutate the resulting `Chunk`. + * + * **Example** (Creating chunks without copying arrays) * - * @example * ```ts * import { Chunk } from "effect" * @@ -474,20 +439,29 @@ export const get = /*#__PURE__*/dual(2, (self, index) => index < 0 || index >= s * console.log(Chunk.toArray(chunk)) // [999, 2, 3, 4, 5] * ``` * - * @since 2.0.0 * @category unsafe + * @since 4.0.0 */ export const fromArrayUnsafe = self => self.length === 0 ? empty() : self.length === 1 ? of(self[0]) : makeChunk({ _tag: "IArray", array: self }); /** - * Wraps an array into a chunk without copying, unsafe on mutable arrays + * Wraps a non-empty array into a non-empty chunk without copying. + * + * **When to use** + * + * Use when the input array is already known to be non-empty, can be shared with + * the resulting `Chunk`, and avoiding a copy matters. + * + * **Gotchas** + * + * Mutating the source array after wrapping can mutate the resulting `Chunk`. + * + * **Example** (Creating non-empty chunks without copying arrays) * - * @example * ```ts - * import { Chunk } from "effect" - * import * as Array from "effect/Array" + * import { Array, Chunk } from "effect" * * const nonEmptyArray = Array.make(1, 2, 3, 4, 5) * const chunk = Chunk.fromNonEmptyArrayUnsafe(nonEmptyArray) @@ -497,32 +471,38 @@ export const fromArrayUnsafe = self => self.length === 0 ? empty() : self.length * console.log(Chunk.isNonEmpty(chunk)) // true * ``` * - * @since 2.0.0 * @category unsafe + * @since 4.0.0 */ export const fromNonEmptyArrayUnsafe = self => fromArrayUnsafe(self); /** - * Gets an element unsafely, will throw on out of bounds + * Gets an element at the specified index without returning an `Option`. + * + * **When to use** + * + * Use when reading from a `Chunk` at an index known to be in bounds and direct + * element access is preferred over handling `Option.none`. + * + * **Gotchas** + * + * Throws if the index is out of bounds. + * + * **Example** (Accessing elements unsafely) * - * @example * ```ts - * import { Chunk } from "effect" + * import { Chunk, Option } from "effect" * * const chunk = Chunk.make("a", "b", "c", "d") * * console.log(Chunk.getUnsafe(chunk, 1)) // "b" * console.log(Chunk.getUnsafe(chunk, 3)) // "d" * - * // Warning: This will throw an error for invalid indices - * try { - * Chunk.getUnsafe(chunk, 10) // throws "Index out of bounds" - * } catch (error) { - * console.log((error as Error).message) // "Index out of bounds" - * } + * // Use Chunk.get when the index may be out of bounds + * console.log(Option.isNone(Chunk.get(chunk, 10))) // true * ``` * - * @since 2.0.0 * @category unsafe + * @since 4.0.0 */ export const getUnsafe = /*#__PURE__*/dual(2, (self, index) => { const i = Math.floor(index); @@ -558,7 +538,13 @@ export const getUnsafe = /*#__PURE__*/dual(2, (self, index) => { /** * Appends the specified element to the end of the `Chunk`. * - * @example + * **When to use** + * + * Use to add one element after the existing chunk elements and return a + * `NonEmptyChunk`. + * + * **Example** (Appending an element) + * * ```ts * import { Chunk } from "effect" * @@ -572,14 +558,18 @@ export const getUnsafe = /*#__PURE__*/dual(2, (self, index) => { * console.log(Chunk.toArray(singleElement)) // [42] * ``` * - * @category concatenating + * @see {@link prepend} for adding one element before the existing elements + * @see {@link appendAll} for appending all elements from another chunk + * + * @category combining * @since 2.0.0 */ export const append = /*#__PURE__*/dual(2, (self, a) => appendAll(self, of(a))); /** - * Prepend an element to the front of a `Chunk`, creating a new `NonEmptyChunk`. + * Prepends an element to the front of a `Chunk`, creating a new `NonEmptyChunk`. + * + * **Example** (Prepending an element) * - * @example * ```ts * import { Chunk } from "effect" * @@ -593,21 +583,21 @@ export const append = /*#__PURE__*/dual(2, (self, a) => appendAll(self, of(a))); * console.log(Chunk.toArray(singleElement)) // ["first"] * ``` * - * @category concatenating + * @category combining * @since 2.0.0 */ export const prepend = /*#__PURE__*/dual(2, (self, elem) => appendAll(of(elem), self)); /** * Takes the first up to `n` elements from the chunk. * - * @example + * **Example** (Taking elements from the start) + * * ```ts * import { Chunk } from "effect" * * const chunk = Chunk.make(1, 2, 3, 4, 5) * const result = Chunk.take(chunk, 3) - * console.log(result) - * // { _id: 'Chunk', values: [ 1, 2, 3 ] } + * console.log(Chunk.toArray(result)) // [1, 2, 3] * ``` * * @category elements @@ -655,14 +645,14 @@ export const take = /*#__PURE__*/dual(2, (self, n) => { /** * Drops the first up to `n` elements from the chunk. * - * @example + * **Example** (Dropping elements from the start) + * * ```ts * import { Chunk } from "effect" * * const chunk = Chunk.make(1, 2, 3, 4, 5) * const result = Chunk.drop(chunk, 2) - * console.log(result) - * // { _id: 'Chunk', values: [ 3, 4, 5 ] } + * console.log(Chunk.toArray(result)) // [3, 4, 5] * ``` * * @category elements @@ -710,14 +700,14 @@ export const drop = /*#__PURE__*/dual(2, (self, n) => { /** * Drops the last `n` elements. * - * @example + * **Example** (Dropping elements from the end) + * * ```ts * import { Chunk } from "effect" * * const chunk = Chunk.make(1, 2, 3, 4, 5) * const result = Chunk.dropRight(chunk, 2) - * console.log(result) - * // { _id: 'Chunk', values: [ 1, 2, 3 ] } + * console.log(Chunk.toArray(result)) // [1, 2, 3] * ``` * * @category elements @@ -727,14 +717,14 @@ export const dropRight = /*#__PURE__*/dual(2, (self, n) => take(self, Math.max(0 /** * Drops all elements so long as the predicate returns true. * - * @example + * **Example** (Dropping elements while a predicate matches) + * * ```ts * import { Chunk } from "effect" * * const chunk = Chunk.make(1, 2, 3, 4, 5) * const result = Chunk.dropWhile(chunk, (n) => n < 3) - * console.log(result) - * // { _id: 'Chunk', values: [ 3, 4, 5 ] } + * console.log(Chunk.toArray(result)) // [3, 4, 5] * ``` * * @category elements @@ -753,7 +743,7 @@ export const dropWhile = /*#__PURE__*/dual(2, (self, predicate) => { * Prepends the specified prefix chunk to the beginning of the specified chunk. * If either chunk is non-empty, the result is also a non-empty chunk. * - * @example + * **Example** (Prepending all elements) * * ```ts * import { Chunk } from "effect" @@ -767,7 +757,7 @@ export const dropWhile = /*#__PURE__*/dual(2, (self, predicate) => { * // [ "a", "b", 1, 2 ] * ``` * - * @category concatenating + * @category combining * @since 2.0.0 */ export const prependAll = /*#__PURE__*/dual(2, (self, that) => appendAll(that, self)); @@ -775,7 +765,12 @@ export const prependAll = /*#__PURE__*/dual(2, (self, that) => appendAll(that, s * Concatenates two chunks, combining their elements. * If either chunk is non-empty, the result is also a non-empty chunk. * - * @example + * **When to use** + * + * Use to concatenate two chunks when the second chunk's elements should come + * after the first. + * + * **Example** (Appending all elements) * * ```ts * import { Chunk } from "effect" @@ -789,7 +784,10 @@ export const prependAll = /*#__PURE__*/dual(2, (self, that) => appendAll(that, s * // [ 1, 2, "a", "b" ] * ``` * - * @category concatenating + * @see {@link prependAll} for concatenating chunks in the opposite order + * @see {@link append} for adding a single element to the end + * + * @category combining * @since 2.0.0 */ export const appendAll = /*#__PURE__*/dual(2, (self, that) => { @@ -879,10 +877,10 @@ export const appendAll = /*#__PURE__*/dual(2, (self, that) => { /** * Returns a filtered and mapped subset of the elements. * - * @example + * **Example** (Filtering and mapping values) + * * ```ts - * import { Chunk } from "effect" - * import * as Result from "effect/Result" + * import { Chunk, Result } from "effect" * * const chunk = Chunk.make("1", "2", "hello", "3", "world") * const numbers = Chunk.filterMap(chunk, (str) => { @@ -899,8 +897,8 @@ export const appendAll = /*#__PURE__*/dual(2, (self, that) => { * console.log(Chunk.toArray(evenIndexNumbers)) // [1] * ``` * - * @since 2.0.0 * @category filtering + * @since 2.0.0 */ export const filterMap = /*#__PURE__*/dual(2, (self, f) => { const as = RA.fromIterable(self); @@ -916,7 +914,8 @@ export const filterMap = /*#__PURE__*/dual(2, (self, f) => { /** * Returns a filtered subset of the elements. * - * @example + * **Example** (Filtering values) + * * ```ts * import { Chunk } from "effect" * @@ -930,17 +929,17 @@ export const filterMap = /*#__PURE__*/dual(2, (self, f) => { * console.log(Chunk.toArray(numbers)) // [42, 100] * ``` * - * @since 2.0.0 * @category filtering + * @since 2.0.0 */ export const filter = /*#__PURE__*/dual(2, (self, predicate) => fromArrayUnsafe(RA.filter(self, predicate))); /** * Transforms all elements of the chunk for as long as the specified function succeeds. * - * @example + * **Example** (Filtering and mapping while values match) + * * ```ts - * import { Chunk } from "effect" - * import * as Result from "effect/Result" + * import { Chunk, Result } from "effect" * * const chunk = Chunk.make("1", "2", "hello", "3", "4") * const result = Chunk.filterMapWhile(chunk, (s) => { @@ -958,8 +957,8 @@ export const filter = /*#__PURE__*/dual(2, (self, predicate) => fromArrayUnsafe( * console.log(Chunk.toArray(allNumbers)) // [1, 2, 3, 4] * ``` * - * @since 2.0.0 * @category filtering + * @since 2.0.0 */ export const filterMapWhile = /*#__PURE__*/dual(2, (self, f) => { const out = []; @@ -974,17 +973,16 @@ export const filterMapWhile = /*#__PURE__*/dual(2, (self, f) => { return fromArrayUnsafe(out); }); /** - * Filter out optional values + * Filters out optional values + * + * **Example** (Compacting optional values) * - * @example * ```ts - * import { Chunk } from "effect" - * import * as Option from "effect/Option" + * import { Chunk, Option } from "effect" * * const chunk = Chunk.make(Option.some(1), Option.none(), Option.some(3)) * const result = Chunk.compact(chunk) - * console.log(result) - * // { _id: 'Chunk', values: [ 1, 3 ] } + * console.log(Chunk.toArray(result)) // [1, 3] * ``` * * @category filtering @@ -1002,7 +1000,8 @@ export const compact = self => { /** * Applies a function to each element in a chunk and returns a new chunk containing the concatenated mapped elements. * - * @example + * **Example** (Flat mapping chunks) + * * ```ts * import { Chunk } from "effect" * @@ -1023,8 +1022,8 @@ export const compact = self => { * console.log(Chunk.toArray(indexed)) // [1, 3, 5] * ``` * - * @since 2.0.0 * @category sequencing + * @since 2.0.0 */ export const flatMap = /*#__PURE__*/dual(2, (self, f) => { if (self.backing._tag === "ISingleton") { @@ -1047,7 +1046,8 @@ export const flatMap = /*#__PURE__*/dual(2, (self, f) => { * instead, it is primarily used for side effects, such as logging or * accumulating data in an external variable. * - * @example + * **Example** (Iterating over chunk values) + * * ```ts * import { Chunk } from "effect" * @@ -1070,14 +1070,15 @@ export const flatMap = /*#__PURE__*/dual(2, (self, f) => { * // Index 3: 4 * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ export const forEach = /*#__PURE__*/dual(2, (self, f) => toReadonlyArray(self).forEach(f)); /** * Flattens a chunk of chunks into a single chunk by concatenating all chunks. * - * @example + * **Example** (Flattening nested chunks) + * * ```ts * import { Chunk } from "effect" * @@ -1098,14 +1099,29 @@ export const forEach = /*#__PURE__*/dual(2, (self, f) => toReadonlyArray(self).f * console.log(Chunk.toArray(Chunk.flatten(withEmpty))) // [1, 2, 3, 4] * ``` * - * @since 2.0.0 * @category sequencing + * @since 2.0.0 */ export const flatten = /*#__PURE__*/flatMap(identity); /** * Groups elements in chunks of up to `n` elements. * - * @example + * **When to use** + * + * Use to divide a chunk into ordered, non-overlapping chunks with at most `n` + * elements each. + * + * **Details** + * + * The final chunk may contain fewer than `n` elements. Empty input produces an + * empty chunk of chunks. + * + * **Gotchas** + * + * Values of `n` less than or equal to zero produce singleton chunks. + * + * **Example** (Splitting into fixed-size chunks) + * * ```ts * import { Chunk } from "effect" * @@ -1122,8 +1138,10 @@ export const flatten = /*#__PURE__*/flatMap(identity); * // [[1, 2], [3, 4], [5]] * ``` * - * @since 2.0.0 + * @see {@link split} for splitting into a target number of chunks instead of a fixed chunk size + * * @category elements + * @since 2.0.0 */ export const chunksOf = /*#__PURE__*/dual(2, (self, n) => { const gr = []; @@ -1141,11 +1159,14 @@ export const chunksOf = /*#__PURE__*/dual(2, (self, n) => { return fromArrayUnsafe(gr); }); /** - * Creates a Chunk of unique values that are included in all given Chunks. + * Creates a `Chunk` of values that are included in both chunks. + * + * **Details** * - * The order and references of result values are determined by the Chunk. + * The order and references of result values are determined by the first chunk. + * + * **Example** (Intersecting chunks) * - * @example * ```ts * import { Chunk } from "effect" * @@ -1165,14 +1186,15 @@ export const chunksOf = /*#__PURE__*/dual(2, (self, n) => { * console.log(Chunk.toArray(Chunk.intersection(chunk3, chunk4))) // [] * ``` * - * @since 2.0.0 * @category elements + * @since 2.0.0 */ export const intersection = /*#__PURE__*/dual(2, (self, that) => fromArrayUnsafe(RA.intersection(toReadonlyArray(self), toReadonlyArray(that)))); /** * Determines if the chunk is empty. * - * @example + * **Example** (Checking for empty chunks) + * * ```ts * import { Chunk } from "effect" * @@ -1187,7 +1209,8 @@ export const isEmpty = self => self.length === 0; /** * Determines if the chunk is not empty. * - * @example + * **Example** (Checking for non-empty chunks) + * * ```ts * import { Chunk } from "effect" * @@ -1200,9 +1223,10 @@ export const isEmpty = self => self.length === 0; */ export const isNonEmpty = self => self.length > 0; /** - * Returns the first element of this chunk if it exists. + * Returns the first element of this chunk safely if it exists. + * + * **Example** (Getting the first element) * - * @example * ```ts * import { Chunk } from "effect" * @@ -1217,11 +1241,19 @@ export const head = /*#__PURE__*/get(0); /** * Returns the first element of this chunk. * - * It will throw an error if the chunk is empty. + * **When to use** + * + * Use when you know the chunk is non-empty and need the first element directly + * without handling `Option.none`. + * + * **Gotchas** + * + * Throws an error if the chunk is empty. + * + * **Example** (Getting the first element unsafely) * - * @example * ```ts - * import { Chunk } from "effect" + * import { Chunk, Option } from "effect" * * const chunk = Chunk.make(1, 2, 3, 4) * console.log(Chunk.headUnsafe(chunk)) // 1 @@ -1229,22 +1261,19 @@ export const head = /*#__PURE__*/get(0); * const singleElement = Chunk.make("hello") * console.log(Chunk.headUnsafe(singleElement)) // "hello" * - * // Warning: This will throw for empty chunks - * try { - * Chunk.headUnsafe(Chunk.empty()) - * } catch (error) { - * console.log((error as Error).message) // "Index out of bounds" - * } + * // Use Chunk.head when the chunk may be empty + * console.log(Option.isNone(Chunk.head(Chunk.empty()))) // true * ``` * - * @since 2.0.0 * @category unsafe + * @since 4.0.0 */ export const headUnsafe = self => getUnsafe(self, 0); /** * Returns the first element of this non empty chunk. * - * @example + * **Example** (Getting the first element of a non-empty chunk) + * * ```ts * import { Chunk } from "effect" * @@ -1258,14 +1287,15 @@ export const headUnsafe = self => getUnsafe(self, 0); * // Chunk.headNonEmpty(Chunk.empty()) // TypeScript error * ``` * - * @since 2.0.0 * @category elements + * @since 2.0.0 */ export const headNonEmpty = headUnsafe; /** - * Returns the last element of this chunk if it exists. + * Returns the last element of this chunk safely if it exists. + * + * **Example** (Getting the last element) * - * @example * ```ts * import { Chunk } from "effect" * @@ -1280,11 +1310,19 @@ export const last = self => get(self, self.length - 1); /** * Returns the last element of this chunk. * - * It will throw an error if the chunk is empty. + * **When to use** + * + * Use when you know the chunk is non-empty and need the last element directly + * without handling `Option.none`. + * + * **Gotchas** + * + * Throws an error if the chunk is empty. + * + * **Example** (Getting the last element unsafely) * - * @example * ```ts - * import { Chunk } from "effect" + * import { Chunk, Option } from "effect" * * const chunk = Chunk.make(1, 2, 3, 4) * console.log(Chunk.lastUnsafe(chunk)) // 4 @@ -1292,22 +1330,19 @@ export const last = self => get(self, self.length - 1); * const singleElement = Chunk.make("hello") * console.log(Chunk.lastUnsafe(singleElement)) // "hello" * - * // Warning: This will throw for empty chunks - * try { - * Chunk.lastUnsafe(Chunk.empty()) - * } catch (error) { - * console.log((error as Error).message) // "Index out of bounds" - * } + * // Use Chunk.last when the chunk may be empty + * console.log(Option.isNone(Chunk.last(Chunk.empty()))) // true * ``` * - * @since 2.0.0 * @category unsafe + * @since 4.0.0 */ export const lastUnsafe = self => getUnsafe(self, self.length - 1); /** * Returns the last element of this non empty chunk. * - * @example + * **Example** (Getting the last element of a non-empty chunk) + * * ```ts * import { Chunk } from "effect" * @@ -1321,33 +1356,33 @@ export const lastUnsafe = self => getUnsafe(self, self.length - 1); * // Chunk.lastNonEmpty(Chunk.empty()) // TypeScript error * ``` * - * @since 3.4.0 * @category elements + * @since 3.4.0 */ export const lastNonEmpty = lastUnsafe; /** * Transforms the elements of a chunk using the specified mapping function. * If the input chunk is non-empty, the resulting chunk will also be non-empty. * - * @example + * **Example** (Mapping values) * * ```ts * import { Chunk } from "effect" * * const result = Chunk.map(Chunk.make(1, 2), (n) => n + 1) * - * console.log(result) - * // { _id: 'Chunk', values: [ 2, 3 ] } + * console.log(Chunk.toArray(result)) // [2, 3] * ``` * - * @since 2.0.0 * @category mapping + * @since 2.0.0 */ export const map = /*#__PURE__*/dual(2, (self, f) => self.backing._tag === "ISingleton" ? of(f(self.backing.a, 0)) : fromArrayUnsafe(pipe(toReadonlyArray(self), RA.map((a, i) => f(a, i))))); /** - * Statefully maps over the chunk, producing new elements of type `B`. + * Maps over the chunk statefully, producing new elements of type `B`. + * + * **Example** (Mapping with accumulated state) * - * @example * ```ts * import { Chunk } from "effect" * @@ -1370,8 +1405,8 @@ export const map = /*#__PURE__*/dual(2, (self, f) => self.backing._tag === "ISin * console.log(Chunk.toArray(indexed)) // ["0: hello", "1: world", "2: effect"] * ``` * - * @since 2.0.0 * @category folding + * @since 2.0.0 */ export const mapAccum = /*#__PURE__*/dual(3, (self, s, f) => { const [s1, as] = RA.mapAccum(self, s, f); @@ -1380,10 +1415,12 @@ export const mapAccum = /*#__PURE__*/dual(3, (self, s, f) => { /** * Splits a chunk using a `Filter` into failures and successes. * - * - Returns `[excluded, satisfying]`. - * - The filter receives `(element, index)`. + * **Details** + * + * Returns `[excluded, satisfying]`. The filter receives `(element, index)`. + * + * **Example** (Partitioning with a Result) * - * @example * ```ts * import { Chunk, Result } from "effect" * @@ -1403,12 +1440,18 @@ export const partition = /*#__PURE__*/dual(2, (self, f) => { return [fromArrayUnsafe(excluded), fromArrayUnsafe(satisfying)]; }); /** - * Partitions the elements of this chunk into two chunks. + * Separates a chunk of `Result` values into a chunk of failures and a chunk of + * successes. + * + * **Details** + * + * The returned tuple is `[failures, successes]`, preserving the original order + * within each side. + * + * **Example** (Separating failures and successes) * - * @example * ```ts - * import { Chunk } from "effect" - * import * as Result from "effect/Result" + * import { Chunk, Result } from "effect" * * const chunk = Chunk.make( * Result.succeed(1), @@ -1436,7 +1479,8 @@ export const separate = self => pipe(RA.separate(toReadonlyArray(self)), ([l, r] /** * Retrieves the size of the chunk. * - * @example + * **Example** (Getting chunk size) + * * ```ts * import { Chunk } from "effect" * @@ -1449,12 +1493,12 @@ export const separate = self => pipe(RA.separate(toReadonlyArray(self)), ([l, r] */ export const size = self => self.length; /** - * Sort the elements of a Chunk in increasing order, creating a new Chunk. + * Sorts the elements of a `Chunk` in increasing order, creating a new `Chunk`. + * + * **Example** (Sorting chunks) * - * @example * ```ts - * import { Chunk } from "effect" - * import * as Order from "effect/Order" + * import { Chunk, Order } from "effect" * * const numbers = Chunk.make(3, 1, 4, 1, 5, 9, 2, 6) * const sorted = Chunk.sort(numbers, Order.Number) @@ -1470,17 +1514,17 @@ export const size = self => self.length; * console.log(Chunk.toArray(sortedWords)) // ["apple", "banana", "cherry"] * ``` * - * @since 2.0.0 * @category sorting + * @since 2.0.0 */ export const sort = /*#__PURE__*/dual(2, (self, O) => fromArrayUnsafe(RA.sort(toReadonlyArray(self), O))); /** - * Sorts the elements of a Chunk based on a projection function. + * Sorts the elements of a `Chunk` based on a projection function. + * + * **Example** (Sorting chunks by a derived value) * - * @example * ```ts - * import { Chunk } from "effect" - * import * as Order from "effect/Order" + * import { Chunk, Order } from "effect" * * const people = Chunk.make( * { name: "Alice", age: 30 }, @@ -1504,14 +1548,15 @@ export const sort = /*#__PURE__*/dual(2, (self, O) => fromArrayUnsafe(RA.sort(to * console.log(Chunk.toArray(byLength)) // ["a", "ab", "abc"] * ``` * - * @since 2.0.0 * @category sorting + * @since 2.0.0 */ export const sortWith = /*#__PURE__*/dual(3, (self, f, order) => sort(self, Order.mapInput(order, f))); /** * Returns two splits of this chunk at the specified index. * - * @example + * **Example** (Splitting at an index) + * * ```ts * import { Chunk } from "effect" * @@ -1531,15 +1576,22 @@ export const sortWith = /*#__PURE__*/dual(3, (self, f, order) => sort(self, Orde * console.log(Chunk.toArray(empty2)) // [] * ``` * - * @since 2.0.0 * @category splitting + * @since 2.0.0 */ export const splitAt = /*#__PURE__*/dual(2, (self, n) => [take(self, n), drop(self, n)]); /** - * Splits a `NonEmptyChunk` into two segments, with the first segment containing a maximum of `n` elements. - * The value of `n` must be `>= 1`. + * Splits a `NonEmptyChunk` at `n`, returning a non-empty prefix and the + * remaining suffix. + * + * **Details** + * + * `n` is floored and normalized to at least `1`. If `n` is greater than or + * equal to the chunk length, the first result is the original chunk and the + * second result is empty. + * + * **Example** (Splitting non-empty chunks at an index) * - * @example * ```ts * import { Chunk } from "effect" * @@ -1565,9 +1617,15 @@ export const splitNonEmptyAt = /*#__PURE__*/dual(2, (self, n) => { return _n >= self.length ? [self, empty()] : [take(self, _n), drop(self, _n)]; }); /** - * Splits this chunk into `n` equally sized chunks. + * Splits a chunk into up to `n` chunks, distributing elements in order. + * + * **Details** + * + * The chunk size is derived from the input length and `n`; the final chunk may + * contain fewer elements than the others. + * + * **Example** (Splitting chunks into groups) * - * @example * ```ts * import { Chunk } from "effect" * @@ -1588,15 +1646,16 @@ export const splitNonEmptyAt = /*#__PURE__*/dual(2, (self, n) => { * // [[1, 2, 3, 4, 5, 6, 7, 8, 9]] * ``` * - * @since 2.0.0 * @category splitting + * @since 2.0.0 */ export const split = /*#__PURE__*/dual(2, (self, n) => chunksOf(self, Math.ceil(self.length / Math.floor(n)))); /** * Splits this chunk on the first element that matches this predicate. * Returns a tuple containing two chunks: the first one is before the match, and the second one is from the match onward. * - * @example + * **Example** (Splitting at a matching element) + * * ```ts * import { Chunk } from "effect" * @@ -1631,9 +1690,10 @@ export const splitWhere = /*#__PURE__*/dual(2, (self, predicate) => { return splitAt(self, i); }); /** - * Returns every elements after the first. + * Returns every element after the first safely, or `None` when the chunk is empty. + * + * **Example** (Getting the tail safely) * - * @example * ```ts * import { Chunk } from "effect" * @@ -1647,14 +1707,15 @@ export const splitWhere = /*#__PURE__*/dual(2, (self, predicate) => { * console.log(Chunk.tail(empty)) // Option.none() * ``` * - * @since 2.0.0 * @category elements + * @since 2.0.0 */ export const tail = self => self.length > 0 ? O.some(drop(self, 1)) : O.none(); /** - * Returns every elements after the first. + * Returns every element after the first from a non-empty chunk. + * + * **Example** (Getting the tail of a non-empty chunk) * - * @example * ```ts * import { Chunk } from "effect" * @@ -1670,14 +1731,15 @@ export const tail = self => self.length > 0 ? O.some(drop(self, 1)) : O.none(); * // Chunk.tailNonEmpty(Chunk.empty()) // TypeScript error * ``` * - * @since 2.0.0 * @category elements + * @since 2.0.0 */ export const tailNonEmpty = self => drop(self, 1); /** * Takes the last `n` elements. * - * @example + * **Example** (Taking elements from the end) + * * ```ts * import { Chunk } from "effect" * @@ -1694,14 +1756,15 @@ export const tailNonEmpty = self => drop(self, 1); * console.log(Chunk.toArray(none)) // [] * ``` * - * @since 2.0.0 * @category elements + * @since 2.0.0 */ export const takeRight = /*#__PURE__*/dual(2, (self, n) => drop(self, self.length - n)); /** * Takes all elements so long as the predicate returns true. * - * @example + * **Example** (Taking elements while a predicate matches) + * * ```ts * import { Chunk } from "effect" * @@ -1719,8 +1782,8 @@ export const takeRight = /*#__PURE__*/dual(2, (self, n) => drop(self, self.lengt * console.log(Chunk.toArray(all)) // [1, 2, 3] * ``` * - * @since 2.0.0 * @category elements + * @since 2.0.0 */ export const takeWhile = /*#__PURE__*/dual(2, (self, predicate) => { const out = []; @@ -1736,7 +1799,8 @@ export const takeWhile = /*#__PURE__*/dual(2, (self, predicate) => { /** * Creates a Chunks of unique values, in order, from all given Chunks. * - * @example + * **Example** (Unioning chunks) + * * ```ts * import { Chunk } from "effect" * @@ -1752,14 +1816,16 @@ export const takeWhile = /*#__PURE__*/dual(2, (self, predicate) => { * console.log(Chunk.toArray(unified)) // [1, 2, 3] * ``` * - * @since 2.0.0 * @category elements + * @since 2.0.0 */ export const union = /*#__PURE__*/dual(2, (self, that) => fromArrayUnsafe(RA.union(toReadonlyArray(self), toReadonlyArray(that)))); /** - * Remove duplicates from an array, keeping the first occurrence of an element. + * Removes duplicate elements from a `Chunk`, preserving the first occurrence + * of each value. + * + * **Example** (Removing duplicate values) * - * @example * ```ts * import { Chunk } from "effect" * @@ -1778,14 +1844,15 @@ export const union = /*#__PURE__*/dual(2, (self, that) => fromArrayUnsafe(RA.uni * console.log(Chunk.toArray(uniqueDeduped)) // [1, 2, 3] * ``` * - * @since 2.0.0 * @category elements + * @since 2.0.0 */ export const dedupe = self => fromArrayUnsafe(RA.dedupe(toReadonlyArray(self))); /** * Deduplicates adjacent elements that are identical. * - * @example + * **Example** (Removing adjacent duplicates) + * * ```ts * import { Chunk } from "effect" * @@ -1799,16 +1866,19 @@ export const dedupe = self => fromArrayUnsafe(RA.dedupe(toReadonlyArray(self))); * console.log(Chunk.toArray(mixedResult)) // ["a", "b", "a"] * ``` * - * @since 2.0.0 * @category filtering + * @since 2.0.0 */ export const dedupeAdjacent = self => fromArrayUnsafe(RA.dedupeAdjacent(self)); /** - * Takes a `Chunk` of pairs and return two corresponding `Chunk`s. + * Takes a `Chunk` of pairs and returns two corresponding `Chunk`s. * - * Note: The function is reverse of `zip`. + * **Details** + * + * This function is the reverse of `zip`. + * + * **Example** (Unzipping pairs) * - * @example * ```ts * import { Chunk } from "effect" * @@ -1828,8 +1898,8 @@ export const dedupeAdjacent = self => fromArrayUnsafe(RA.dedupeAdjacent(self)); * console.log(Chunk.toArray(emptyStrs)) // [] * ``` * - * @since 2.0.0 * @category elements + * @since 2.0.0 */ export const unzip = self => { const [left, right] = RA.unzip(self); @@ -1838,7 +1908,8 @@ export const unzip = self => { /** * Zips this chunk pointwise with the specified chunk using the specified combiner. * - * @example + * **Example** (Zipping chunks with a function) + * * ```ts * import { Chunk } from "effect" * @@ -1854,14 +1925,15 @@ export const unzip = self => { * console.log(Chunk.toArray(mixed)) // [[1, "a"], [2, "b"]] * ``` * - * @since 2.0.0 * @category zipping + * @since 2.0.0 */ export const zipWith = /*#__PURE__*/dual(3, (self, that, f) => fromArrayUnsafe(RA.zipWith(self, that, f))); /** * Zips this chunk pointwise with the specified chunk. * - * @example + * **Example** (Zipping chunks) + * * ```ts * import { Chunk } from "effect" * @@ -1877,14 +1949,15 @@ export const zipWith = /*#__PURE__*/dual(3, (self, that, f) => fromArrayUnsafe(R * console.log(Chunk.toArray(zipped)) // [[1, "a"], [2, "b"]] * ``` * - * @since 2.0.0 * @category zipping + * @since 2.0.0 */ export const zip = /*#__PURE__*/dual(2, (self, that) => zipWith(self, that, (a, b) => [a, b])); /** - * Delete the element at the specified index, creating a new `Chunk`. + * Deletes the element at the specified index, creating a new `Chunk`. + * + * **Example** (Removing an element) * - * @example * ```ts * import { Chunk } from "effect" * @@ -1906,10 +1979,11 @@ export const zip = /*#__PURE__*/dual(2, (self, that) => zipWith(self, that, (a, */ export const remove = /*#__PURE__*/dual(2, (self, i) => fromArrayUnsafe(RA.remove(toReadonlyArray(self), i))); /** - * Applies a function to the element at the specified index, creating a new `Chunk`, + * Applies a function to the element at the specified index safely, creating a new `Chunk`, * or returns `None` if the index is out of bounds. * - * @example + * **Example** (Modifying an element) + * * ```ts * import { Chunk } from "effect" * @@ -1931,10 +2005,11 @@ export const remove = /*#__PURE__*/dual(2, (self, i) => fromArrayUnsafe(RA.remov */ export const modify = /*#__PURE__*/dual(3, (self, i, f) => pipe(RA.modify(toReadonlyArray(self), i, f), O.map(fromArrayUnsafe))); /** - * Change the element at the specified index, creating a new `Chunk`, + * Changes the element at the specified index safely, creating a new `Chunk`, * or returns `None` if the index is out of bounds. * - * @example + * **Example** (Replacing an element) + * * ```ts * import { Chunk } from "effect" * @@ -1956,17 +2031,19 @@ export const modify = /*#__PURE__*/dual(3, (self, i, f) => pipe(RA.modify(toRead */ export const replace = /*#__PURE__*/dual(3, (self, i, b) => modify(self, i, () => b)); /** - * Return a Chunk of length n with element i initialized with f(i). + * Returns a non-empty `Chunk` of length `n` with element `i` initialized by `f(i)`. * - * **Note**. `n` is normalized to an integer >= 1. + * **Details** + * + * `n` is normalized to an integer greater than or equal to `1`. + * + * **Example** (Generating chunks from indices) * - * @example * ```ts * import { Chunk } from "effect" * * const chunk = Chunk.makeBy(5, (i) => i * 2) - * console.log(chunk) - * // { _id: 'Chunk', values: [ 0, 2, 4, 6, 8 ] } + * console.log(Chunk.toArray(chunk)) // [0, 2, 4, 6, 8] * ``` * * @category constructors @@ -1974,15 +2051,21 @@ export const replace = /*#__PURE__*/dual(3, (self, i, b) => modify(self, i, () = */ export const makeBy = /*#__PURE__*/dual(2, (n, f) => fromIterable(RA.makeBy(n, f))); /** - * Create a non empty `Chunk` containing a range of integers, including both endpoints. + * Creates a non-empty `Chunk` of consecutive integers from `start` through + * `end`, inclusive. + * + * **Details** + * + * If `start` is greater than `end`, returns a single-element chunk containing + * `start`. + * + * **Example** (Creating a range) * - * @example * ```ts * import { Chunk } from "effect" * * const chunk = Chunk.range(1, 5) - * console.log(chunk) - * // { _id: 'Chunk', values: [ 1, 2, 3, 4, 5 ] } + * console.log(Chunk.toArray(chunk)) // [1, 2, 3, 4, 5] * ``` * * @category constructors @@ -1995,7 +2078,8 @@ export const range = (start, end) => start <= end ? makeBy(end - start + 1, i => /** * Returns a function that checks if a `Chunk` contains a given value using the default `Equivalence`. * - * @example + * **Example** (Checking membership) + * * ```ts * import { Chunk } from "effect" * @@ -2020,7 +2104,8 @@ export const contains = RA.contains; /** * Returns a function that checks if a `Chunk` contains a given value using a provided `isEquivalent` function. * - * @example + * **Example** (Checking membership with custom equivalence) + * * ```ts * import { Chunk } from "effect" * @@ -2050,7 +2135,8 @@ export const containsWith = RA.containsWith; * Returns the first element that satisfies the specified * predicate, or `None` if no such element exists. * - * @example + * **Example** (Finding the first matching element) + * * ```ts * import { Chunk, Option } from "effect" * @@ -2077,9 +2163,10 @@ export const containsWith = RA.containsWith; */ export const findFirst = RA.findFirst; /** - * Return the first index for which a predicate holds. + * Returns the first index for which a predicate holds. + * + * **Example** (Finding the first matching index) * - * @example * ```ts * import { Chunk } from "effect" * @@ -2101,12 +2188,12 @@ export const findFirst = RA.findFirst; */ export const findFirstIndex = /*#__PURE__*/dual(2, (self, predicate) => RA.findFirstIndex(self, predicate)); /** - * Find the last element for which a predicate holds. + * Finds the last element for which a predicate holds. + * + * **Example** (Finding the last matching element) * - * @example * ```ts - * import { Chunk } from "effect" - * import * as Option from "effect/Option" + * import { Chunk, Option } from "effect" * * const chunk = Chunk.make(1, 2, 3, 4, 5) * const result = Chunk.findLast(chunk, (n) => n < 4) @@ -2127,9 +2214,10 @@ export const findFirstIndex = /*#__PURE__*/dual(2, (self, predicate) => RA.findF */ export const findLast = RA.findLast; /** - * Return the last index for which a predicate holds. + * Returns the last index for which a predicate holds. + * + * **Example** (Finding the last matching index) * - * @example * ```ts * import { Chunk } from "effect" * @@ -2151,9 +2239,10 @@ export const findLast = RA.findLast; */ export const findLastIndex = /*#__PURE__*/dual(2, (self, predicate) => RA.findLastIndex(self, predicate)); /** - * Check if a predicate holds true for every `Chunk` element. + * Checks whether a predicate holds true for every `Chunk` element. + * + * **Example** (Checking every element) * - * @example * ```ts * import { Chunk } from "effect" * @@ -2178,9 +2267,10 @@ export const findLastIndex = /*#__PURE__*/dual(2, (self, predicate) => RA.findLa */ export const every = /*#__PURE__*/dual(2, (self, refinement) => RA.fromIterable(self).every(refinement)); /** - * Check if a predicate holds true for some `Chunk` element. + * Checks whether a predicate holds true for some `Chunk` element. + * + * **Example** (Checking for some matching element) * - * @example * ```ts * import { Chunk } from "effect" * @@ -2204,7 +2294,8 @@ export const some = /*#__PURE__*/dual(2, (self, predicate) => RA.fromIterable(se /** * Joins the elements together with "sep" in the middle. * - * @example + * **Example** (Joining chunks into a string) + * * ```ts * import { Chunk } from "effect" * @@ -2232,7 +2323,8 @@ export const join = RA.join; /** * Reduces the elements of a chunk from left to right. * - * @example + * **Example** (Reducing from the left) + * * ```ts * import { Chunk } from "effect" * @@ -2257,7 +2349,8 @@ export const reduce = RA.reduce; /** * Reduces the elements of a chunk from right to left. * - * @example + * **Example** (Reducing from the right) + * * ```ts * import { Chunk } from "effect" * @@ -2287,7 +2380,8 @@ export const reduceRight = RA.reduceRight; * Creates a `Chunk` of values not included in the other given `Chunk` using the provided `isEquivalent` function. * The order and references of result values are determined by the first `Chunk`. * - * @example + * **Example** (Computing difference with custom equivalence) + * * ```ts * import { Chunk } from "effect" * @@ -2321,7 +2415,8 @@ export const differenceWith = isEquivalent => { * Creates a `Chunk` of values not included in the other given `Chunk`. * The order and references of result values are determined by the first `Chunk`. * - * @example + * **Example** (Computing chunk difference) + * * ```ts * import { Chunk } from "effect" * diff --git a/.opencode/node_modules/effect/dist/Chunk.js.map b/.opencode/node_modules/effect/dist/Chunk.js.map index 57b2e4f81b63de8e0c8835e6c150cdbd874d97d1..fd9c3e14b959225d4787e1ebc299c0535f6b4a08 100644 --- a/.opencode/node_modules/effect/dist/Chunk.js.map +++ b/.opencode/node_modules/effect/dist/Chunk.js.map @@ -1 +1 @@ -{"version":3,"file":"Chunk.js","names":["RA","Equal","Equivalence","format","dual","identity","pipe","Hash","NodeInspectSymbol","toJson","O","Order","pipeArguments","hasProperty","R","TypeId","copy","src","srcPos","dest","destPos","len","i","Math","min","length","emptyArray","makeEquivalence","isEquivalent","make","self","that","toReadonlyArray","every","value","getUnsafe","_equivalence","equals","ChunkProto","_A","_","toString","toJSON","_id","values","symbol","isChunk","array","Symbol","iterator","backing","_tag","arguments","makeChunk","chunk","Object","create","depth","left","right","max","_empty","u","empty","as","fromNonEmptyArrayUnsafe","of","a","fromIterable","fromArrayUnsafe","copyToArray","initial","j","toArray_","slice","toArray","toReadonlyArray_","arr","Array","reverseChunk","reverse","get","index","none","some","floor","Error","offset","append","appendAll","prepend","elem","take","n","drop","dropRight","dropWhile","predicate","prependAll","diff","abs","nr","nrr","nl","nll","filterMap","f","out","result","isSuccess","push","success","filter","filterMapWhile","compact","option","isSome","flatMap","k","forEach","flatten","chunksOf","gr","current","intersection","isEmpty","isNonEmpty","head","headUnsafe","headNonEmpty","last","lastUnsafe","lastNonEmpty","map","mapAccum","s","s1","partition","excluded","satisfying","separate","l","r","size","sort","sortWith","order","mapInput","splitAt","splitNonEmptyAt","_n","split","ceil","splitWhere","tail","tailNonEmpty","takeRight","takeWhile","union","dedupe","dedupeAdjacent","unzip","zipWith","zip","b","remove","modify","replace","makeBy","range","start","end","contains","containsWith","findFirst","findFirstIndex","findLast","findLast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sL,cAAc,CAAC1J,YAAY,CAAC,CAACE,IAAI,EAAEC,IAAI,CAAC,CAAC,CAC3G;AACH,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BA,OAAO,MAAMwJ,UAAU,gBA2DnBnL,IAAI,CACN,CAAC,EACD,CAAI0B,IAAc,EAAEC,IAAc,KAAesC,eAAe,CAACrE,EAAE,CAACuL,UAAU,CAACzJ,IAAI,EAAEC,IAAI,CAAC,CAAC,CAC5F","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"Chunk.js","names":["RA","Equal","Equivalence","format","dual","identity","pipe","Hash","NodeInspectSymbol","toJson","O","Order","pipeArguments","hasProperty","R","TypeId","copy","src","srcPos","dest","destPos","len","i","Math","min","length","emptyArray","makeEquivalence","isEquivalent","make","self","that","toReadonlyArray","every","value","getUnsafe","_equivalence","equals","ChunkProto","_A","_","toString","toJSON","_id","values","symbol","isChunk","array","Symbol","iterator","backing","_tag","arguments","makeChunk","chunk","Object","create","depth","left","right","max","_empty","u","empty","as","fromNonEmptyArrayUnsafe","of","a","fromIterable","fromArrayUnsafe","copyToArray","initial","j","toArray_","slice","toArray","toReadonlyArray_","arr","Array","reverseChunk","reverse","get","index","none","some","floor","Error","offset","append","appendAll","prepend","elem","take","n","drop","dropRight","dropWhile","predicate","prependAll","diff","abs","nr","nrr","nl","nll","filterMap","f","out","result","isSuccess","push","success","filter","filterMapWhile","compact","option","isSome","flatMap","k","forEach","flatten","chunksOf","gr","current","intersection","isEmpty","isNonEmpty","head","headUnsafe","headNonEmpty","last","lastUnsafe","lastNonEmpty","map","mapAccum","s","s1","partition","excluded","satisfying","separate","l","r","size","sort","sortWith","order","mapInput","splitAt","splitNonEmptyAt","_n","split","ceil","splitWhere","tail","tailNonEmpty","takeRight","takeWhile","union","dedupe","dedupeAdjacent","unzip","zipWith","zip","b","remove","modify","replace","makeBy","range","start","end","contains","containsWith","findFirst","findFirstIndex","findLast","findLastIndex","refinement","join","reduce","reduceRight","differenceW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IAAI,CACT,CAAC,EACD,CAAC0B,IAAc,EAAEC,IAAc,KAAesC,eAAe,CAACrE,EAAE,CAACsL,cAAc,CAAC1J,YAAY,CAAC,CAACE,IAAI,EAAEC,IAAI,CAAC,CAAC,CAC3G;AACH,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BA,OAAO,MAAMwJ,UAAU,gBA6DnBnL,IAAI,CACN,CAAC,EACD,CAAI0B,IAAc,EAAEC,IAAc,KAAesC,eAAe,CAACrE,EAAE,CAACuL,UAAU,CAACzJ,IAAI,EAAEC,IAAI,CAAC,CAAC,CAC5F","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Clock.d.ts b/.opencode/node_modules/effect/dist/Clock.d.ts index e2e2bb2f639b11cb5ac04ebf2bec169da591ad0c..da1c93aaa91e40772f010a003908544c79db7db8 100644 --- a/.opencode/node_modules/effect/dist/Clock.d.ts +++ b/.opencode/node_modules/effect/dist/Clock.d.ts @@ -1,58 +1,8 @@ /** - * The `Clock` module provides functionality for time-based operations in Effect applications. - * It offers precise time measurements, scheduling capabilities, and controlled time management - * for testing scenarios. - * - * The Clock service is a core component of the Effect runtime, providing: - * - Current time access in milliseconds and nanoseconds - * - Sleep operations for delaying execution - * - Time-based scheduling primitives - * - Testable time control through `TestClock` - * - * ## Key Features - * - * - **Precise timing**: Access to both millisecond and nanosecond precision - * - **Sleep operations**: Non-blocking sleep with proper interruption handling - * - **Service integration**: Seamless integration with Effect's dependency injection - * - **Testable**: Mock time control for deterministic testing - * - **Resource-safe**: Automatic cleanup of time-based resources - * - * @example - * ```ts - * import { Clock, Effect } from "effect" - * - * // Get current time in milliseconds - * const getCurrentTime = Clock.currentTimeMillis - * - * // Sleep for 1 second - * const sleep1Second = Effect.sleep("1 seconds") - * - * // Measure execution time - * const measureTime = Effect.gen(function*() { - * const start = yield* Clock.currentTimeMillis - * yield* Effect.sleep("100 millis") - * const end = yield* Clock.currentTimeMillis - * return end - start - * }) - * ``` - * - * @example - * ```ts - * import { Clock, Effect } from "effect" - * - * // Using Clock service directly - * const program = Effect.gen(function*() { - * const clock = yield* Clock.Clock - * const currentTime = yield* clock.currentTimeMillis - * console.log(`Current time: ${currentTime}`) - * - * // Sleep for 500ms - * yield* Effect.sleep("500 millis") - * - * const afterSleep = yield* clock.currentTimeMillis - * console.log(`After sleep: ${afterSleep}`) - * }) - * ``` + * Service and helpers for reading time and sleeping inside Effect programs. + * The active `Clock` provides current time in milliseconds or nanoseconds and a + * `sleep` operation for delaying work. Because time is accessed through a + * service, tests can replace the clock with a controlled implementation. * * @since 2.0.0 */ @@ -63,7 +13,13 @@ import type { Effect } from "./Effect.ts"; * Represents a time-based clock which provides functionality related to time * and scheduling. * - * @example + * **When to use** + * + * Use to define or provide a clock service for current-time and sleep + * operations. + * + * **Example** (Reading current time) + * * ```ts * import { Clock, Effect } from "effect" * @@ -76,35 +32,63 @@ import type { Effect } from "./Effect.ts"; * }) * ``` * - * @since 2.0.0 * @category models + * @since 2.0.0 */ export interface Clock { /** - * Unsafely returns the current time in milliseconds. + * Returns the current time in milliseconds unsafely. + * + * **When to use** + * + * Use to read millisecond time synchronously when you already have a `Clock` + * service and can accept non-effectful access. */ currentTimeMillisUnsafe(): number; /** * Returns the current time in milliseconds. + * + * **When to use** + * + * Use to read millisecond time through this `Clock` service in `Effect`. */ readonly currentTimeMillis: Effect; /** - * Unsafely returns the current time in nanoseconds. + * Returns the current time in nanoseconds unsafely. + * + * **When to use** + * + * Use to read nanosecond time synchronously when you already have a `Clock` + * service and can accept non-effectful access. */ currentTimeNanosUnsafe(): bigint; /** * Returns the current time in nanoseconds. + * + * **When to use** + * + * Use to read nanosecond time through this `Clock` service in `Effect`. */ readonly currentTimeNanos: Effect; /** * Asynchronously sleeps for the specified duration. + * + * **When to use** + * + * Use to delay an `Effect` workflow by a duration through this `Clock` service. */ sleep(duration: Duration.Duration): Effect; } /** - * A reference to the current Clock service in the environment. + * Context reference for the active time service in the environment. + * + * **When to use** + * + * Use when you need to access or provide the full time service, including sleep + * operations, rather than a single timestamp accessor. + * + * **Example** (Accessing the Clock service) * - * @example * ```ts * import { Clock, Effect } from "effect" * @@ -114,14 +98,24 @@ export interface Clock { * }) * ``` * + * @see {@link clockWith} for using the current Clock service inside an effect + * @see {@link currentTimeMillis} for reading the current time in milliseconds + * @see {@link currentTimeNanos} for reading the current time in nanoseconds + * * @category references - * @since 4.0.0 + * @since 2.0.0 */ export declare const Clock: Context.Reference; /** * Accesses the current Clock service and uses it to run the provided function. * - * @example + * **When to use** + * + * Use when you need the full Clock service interface to perform multiple time + * operations or call unsafe variants within a single effect. + * + * **Example** (Using the current Clock service) + * * ```ts * import { Clock, Effect } from "effect" * @@ -134,6 +128,9 @@ export declare const Clock: Context.Reference; * ) * ``` * + * @see {@link Clock} for the service reference + * @see {@link currentTimeMillis} for convenience accessor that returns milliseconds + * @see {@link currentTimeNanos} for convenience accessor that returns nanoseconds * @category constructors * @since 2.0.0 */ @@ -141,7 +138,13 @@ export declare const clockWith: (f: (clock: Clock) => Effect) /** * Returns an Effect that succeeds with the current time in milliseconds. * - * @example + * **When to use** + * + * Use to read wall-clock time from the active Clock service with millisecond + * precision. + * + * **Example** (Reading milliseconds) + * * ```ts * import { Clock, Effect } from "effect" * @@ -152,6 +155,9 @@ export declare const clockWith: (f: (clock: Clock) => Effect) * }) * ``` * + * @see {@link currentTimeNanos} for nanosecond precision + * @see {@link clockWith} for accessing the full Clock service + * * @category constructors * @since 2.0.0 */ @@ -159,7 +165,13 @@ export declare const currentTimeMillis: Effect; /** * Returns an Effect that succeeds with the current time in nanoseconds. * - * @example + * **When to use** + * + * Use to read wall-clock time from the active `Clock` service with nanosecond + * precision. + * + * **Example** (Reading nanoseconds) + * * ```ts * import { Clock, Effect } from "effect" * diff --git a/.opencode/node_modules/effect/dist/Clock.d.ts.map b/.opencode/node_modules/effect/dist/Clock.d.ts.map index 610e59fce30e3ee58c6fde4bcaf875d44c13f036..4172dada34de8d1daa3340b636babc3f7a602031 100644 --- a/.opencode/node_modules/effect/dist/Clock.d.ts.map +++ b/.opencode/node_modules/effect/dist/Clock.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Clock.d.ts","sourceRoot":"","sources":["../src/Clock.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyDG;AACH,OAAO,KAAK,KAAK,OAAO,MAAM,cAAc,CAAA;AAC5C,OAAO,KAAK,KAAK,QAAQ,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAGzC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,WAAW,KAAK;IACpB;;OAEG;IACH,uBAAuB,IAAI,MAAM,CAAA;IACjC;;OAEG;IACH,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAC,MAAM,CAAC,CAAA;IAC1C;;OAEG;IACH,sBAAsB,IAAI,MAAM,CAAA;IAChC;;OAEG;IACH,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC,MAAM,CAAC,CAAA;IACzC;;OAEG;IACH,KAAK,CAAC,QAAQ,EAAE,QAAQ,CAAC,QAAQ,GAAG,MAAM,CAAC,IAAI,CAAC,CAAA;CACjD;AAED;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,KAAK,EAAE,OAAO,CAAC,SAAS,CAAC,KAAK,CAAmB,CAAA;AAE9D;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,SAAS,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,KAAK,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAoB,CAAA;AAE7G;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,iBAAiB,EAAE,MA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GAyBG;AACH,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,CAA4B,CAAA;AAEzE;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,CAA2B,CAAA"} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Clock.js b/.opencode/node_modules/effect/dist/Clock.js index 0c6f50d1e01d25b166e6db27cd9bab4ecabc6888..89e31da8f24554a7222361f8178dcf779f16754f 100644 --- a/.opencode/node_modules/effect/dist/Clock.js +++ b/.opencode/node_modules/effect/dist/Clock.js @@ -1,8 +1,14 @@ import * as effect from "./internal/effect.js"; /** - * A reference to the current Clock service in the environment. + * Context reference for the active time service in the environment. + * + * **When to use** + * + * Use when you need to access or provide the full time service, including sleep + * operations, rather than a single timestamp accessor. + * + * **Example** (Accessing the Clock service) * - * @example * ```ts * import { Clock, Effect } from "effect" * @@ -12,14 +18,24 @@ import * as effect from "./internal/effect.js"; * }) * ``` * + * @see {@link clockWith} for using the current Clock service inside an effect + * @see {@link currentTimeMillis} for reading the current time in milliseconds + * @see {@link currentTimeNanos} for reading the current time in nanoseconds + * * @category references - * @since 4.0.0 + * @since 2.0.0 */ export const Clock = effect.ClockRef; /** * Accesses the current Clock service and uses it to run the provided function. * - * @example + * **When to use** + * + * Use when you need the full Clock service interface to perform multiple time + * operations or call unsafe variants within a single effect. + * + * **Example** (Using the current Clock service) + * * ```ts * import { Clock, Effect } from "effect" * @@ -32,6 +48,9 @@ export const Clock = effect.ClockRef; * ) * ``` * + * @see {@link Clock} for the service reference + * @see {@link currentTimeMillis} for convenience accessor that returns milliseconds + * @see {@link currentTimeNanos} for convenience accessor that returns nanoseconds * @category constructors * @since 2.0.0 */ @@ -39,7 +58,13 @@ export const clockWith = effect.clockWith; /** * Returns an Effect that succeeds with the current time in milliseconds. * - * @example + * **When to use** + * + * Use to read wall-clock time from the active Clock service with millisecond + * precision. + * + * **Example** (Reading milliseconds) + * * ```ts * import { Clock, Effect } from "effect" * @@ -50,6 +75,9 @@ export const clockWith = effect.clockWith; * }) * ``` * + * @see {@link currentTimeNanos} for nanosecond precision + * @see {@link clockWith} for accessing the full Clock service + * * @category constructors * @since 2.0.0 */ @@ -57,7 +85,13 @@ export const currentTimeMillis = effect.currentTimeMillis; /** * Returns an Effect that succeeds with the current time in nanoseconds. * - * @example + * **When to use** + * + * Use to read wall-clock time from the active `Clock` service with nanosecond + * precision. + * + * **Example** (Reading nanoseconds) + * * ```ts * import { Clock, Effect } from "effect" * diff --git a/.opencode/node_modules/effect/dist/Clock.js.map b/.opencode/node_modules/effect/dist/Clock.js.map index c48f86facd98d9a51c82fcc1de2902b3194860a2..f5ecb10e1881024c6c1257d3c242dec644241e87 100644 --- a/.opencode/node_modules/effect/dist/Clock.js.map +++ b/.opencode/node_modules/effect/dist/Clock.js.map @@ -1 +1 @@ -{"version":3,"file":"Clock.js","names":["effect","Clock","ClockRef","clockWith","currentTimeMillis","currentTimeNanos"],"sources":["../src/Clock.ts"],"sourcesContent":[null],"mappings":"AA6DA,OAAO,KAAKA,MAAM,MAAM,sBAAsB;AA6C9C;;;;;;;;;;;;;;;;AAgBA,OAAO,MAAMC,KAAK,GAA6BD,MAAM,CAACE,QAAQ;AAE9D;;;;;;;;;;;;;;;;;;;AAmBA,OAAO,MAAMC,SAAS,GAAuEH,MAAM,CAACG,SAAS;AAE7G;;;;;;;;;;;;;;;;;AAiBA,OAAO,MAAMC,iBAAiB,GAAmBJ,MAAM,CAACI,iBAAiB;AAEzE;;;;;;;;;;;;;;;;;AAiBA,OAAO,MAAMC,gBAAgB,GAAmBL,MAAM,CAACK,gBAAgB","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"Clock.js","names":["effect","Clock","ClockRef","clockWith","currentTimeMillis","currentTimeNanos"],"sources":["../src/Clock.ts"],"sourcesContent":[null],"mappings":"AAWA,OAAO,KAAKA,MAAM,MAAM,sBAAsB;AAyE9C;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BA,OAAO,MAAMC,KAAK,GAA6BD,MAAM,CAACE,QAAQ;AAE9D;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BA,OAAO,MAAMC,SAAS,GAAuEH,MAAM,CAACG,SAAS;AAE7G;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BA,OAAO,MAAMC,iBAAiB,GAAmBJ,MAAM,CAACI,iBAAiB;AAEzE;;;;;;;;;;;;;;;;;;;;;;;AAuBA,OAAO,MAAMC,gBAAgB,GAAmBL,MAAM,CAACK,gBAAgB","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Combiner.d.ts b/.opencode/node_modules/effect/dist/Combiner.d.ts index fac1c25eaea5ee5a794293cbf3214dad8fa012a6..a4bf173f9b24298d60c50217188dcbc6c9f0210d 100644 --- a/.opencode/node_modules/effect/dist/Combiner.d.ts +++ b/.opencode/node_modules/effect/dist/Combiner.d.ts @@ -1,78 +1,27 @@ /** - * A module for combining two values of the same type into one. + * Defines reusable rules for merging two values of the same type. * - * A `Combiner` wraps a single binary function `(self: A, that: A) => A`. - * It describes *how* two values merge but carries no initial/empty value - * (for that, see {@link Reducer} which extends `Combiner` with an - * `initialValue`). - * - * ## Mental model - * - * - **Combiner** – an object with a `combine(self, that)` method that returns - * a value of the same type. - * - **Argument order** – `self` is the "left" / accumulator side, `that` is - * the "right" / incoming side. - * - **No identity element** – unlike a monoid, a `Combiner` does not require - * a neutral element. Use {@link Reducer} when you need one. - * - **Purity** – all combiners produced by this module are pure; they never - * mutate their arguments. - * - **Composability** – combiners can be lifted into `Option`, `Struct`, - * `Tuple`, and other container types via helpers in those modules. - * - * ## Common tasks - * - * - Create a combiner from any binary function → {@link make} - * - Swap argument order → {@link flip} - * - Pick the smaller / larger of two values → {@link min} / {@link max} - * - Always keep the first or last value → {@link first} / {@link last} - * - Ignore both values and return a fixed result → {@link constant} - * - Insert a separator between combined values → {@link intercalate} - * - * ## Gotchas - * - * - `min` and `max` require an `Order`, not a raw comparator. Import from - * e.g. `Number.Order` or `String.Order`. - * - `intercalate` is curried: call it with the separator first, then pass the - * base combiner. - * - A `Reducer` (which adds `initialValue`) is also a valid `Combiner` — you - * can pass a `Reducer` anywhere a `Combiner` is expected. - * - * ## Quickstart - * - * **Example** (combining strings with a separator) - * - * ```ts - * import { Combiner, String } from "effect" - * - * const csv = Combiner.intercalate(",")(String.ReducerConcat) - * - * console.log(csv.combine("a", "b")) - * // Output: "a,b" - * - * console.log(csv.combine(csv.combine("a", "b"), "c")) - * // Output: "a,b,c" - * ``` - * - * ## See also - * - * - {@link make} – the primary constructor - * - {@link Combiner} – the core interface + * A `Combiner` contains one operation, `combine(self, that)`, which returns + * the merged value. It does not define an initial value for reducing a + * collection; use a `Reducer` when you need that. This module includes the + * `Combiner` interface, a constructor for custom combining logic, and common + * combiners for choosing or ordering values. * * @since 4.0.0 */ import type * as Order from "./Order.ts"; /** - * Represents a strategy for combining two values of the same type `A`. - * - * A `Combiner` contains a single `combine` method that takes two values and + * Represents a strategy for combining two values of the same type `A`. A + * `Combiner` contains a single `combine` method that takes two values and * returns a merged result. It does not include an identity/empty value; use * `Reducer` when you need one. * - * When to use: - * - You need to describe how two values of the same type merge. - * - You want to pass a reusable combining strategy to library functions like - * `Struct.makeCombiner` or `Option.makeCombinerFailFast`. - * - You are building a `Reducer` and need to define the combining step first. + * **When to use** + * + * Use when you need to describe how two values of the same type + * merge, pass a reusable combining strategy to library functions like + * `Struct.makeCombiner` or `Option.makeCombinerFailFast`, or define the + * combining step for a `Reducer`. * * **Example** (number addition combiner) * @@ -86,27 +35,31 @@ import type * as Order from "./Order.ts"; * ``` * * @see {@link make} – create a `Combiner` from a function - * - * @category model + * @category models * @since 4.0.0 */ export interface Combiner { /** * Combines two values into a new value. + * + * **When to use** + * + * Use to merge two values according to this combining strategy. */ readonly combine: (self: A, that: A) => A; } /** * Creates a `Combiner` from a binary function. * - * When to use: - * - You have a custom combining operation that is not covered by the built-in - * constructors (`min`, `max`, `first`, `last`, `constant`). + * **When to use** + * + * Use when you have a custom combining operation that is not covered by + * the built-in constructors (`min`, `max`, `first`, `last`, `constant`). + * + * **Details** * - * Behavior: - * - Returns a new `Combiner` whose `combine` method delegates to the provided - * function. - * - Pure – the returned combiner does not mutate its arguments. + * The returned combiner's `combine` method delegates to the provided function. + * Any purity, associativity, or mutation behavior comes from that function. * * **Example** (multiplying numbers) * @@ -120,22 +73,22 @@ export interface Combiner { * ``` * * @see {@link Combiner} – the interface this creates - * + * @category constructors * @since 4.0.0 */ export declare function make(combine: (self: A, that: A) => A): Combiner; /** * Reverses the argument order of a combiner's `combine` method. * - * When to use: - * - You need the "right" value to act as the accumulator side. - * - You want to reverse the natural direction of a non-commutative combiner - * (e.g. string concatenation). + * **When to use** + * + * Use when you want the right-hand value to act as the accumulator, or need to + * reverse a non-commutative combiner such as string concatenation. + * + * **Details** * - * Behavior: - * - Returns a new `Combiner` where `combine(self, that)` calls the original - * combiner as `combine(that, self)`. - * - Does not mutate the input combiner. + * Returns a new `Combiner` where `combine(self, that)` calls the original + * combiner as `combine(that, self)`. * * **Example** (reversing string concatenation) * @@ -149,7 +102,7 @@ export declare function make(combine: (self: A, that: A) => A): Combiner; * ``` * * @see {@link make} - * + * @category combinators * @since 4.0.0 */ export declare function flip(combiner: Combiner): Combiner; @@ -157,14 +110,15 @@ export declare function flip(combiner: Combiner): Combiner; * Creates a `Combiner` that returns the smaller of two values according to * the provided `Order`. * - * When to use: - * - You want to accumulate the minimum value across a collection. - * - You are building a `Reducer` that tracks the running minimum. + * **When to use** + * + * Use when you want to accumulate the minimum value across a collection or + * build a `Reducer` that tracks the running minimum. + * + * **Details** * - * Behavior: - * - Compares using the given `Order`. When values are equal, returns `that` - * (the second argument). - * - Pure – does not mutate either argument. + * The combiner compares values using the given `Order`. When values are equal, + * it returns `that` (the second argument). * * **Example** (minimum of two numbers) * @@ -181,7 +135,7 @@ export declare function flip(combiner: Combiner): Combiner; * ``` * * @see {@link max} - * + * @category constructors * @since 4.0.0 */ export declare function min(order: Order.Order): Combiner; @@ -189,14 +143,15 @@ export declare function min(order: Order.Order): Combiner; * Creates a `Combiner` that returns the larger of two values according to * the provided `Order`. * - * When to use: - * - You want to accumulate the maximum value across a collection. - * - You are building a `Reducer` that tracks the running maximum. + * **When to use** + * + * Use when you want to accumulate the maximum value across a collection or + * build a `Reducer` that tracks the running maximum. + * + * **Details** * - * Behavior: - * - Compares using the given `Order`. When values are equal, returns `that` - * (the second argument). - * - Pure – does not mutate either argument. + * The combiner compares values using the given `Order`. When values are equal, + * it returns `that` (the second argument). * * **Example** (maximum of two numbers) * @@ -213,21 +168,20 @@ export declare function min(order: Order.Order): Combiner; * ``` * * @see {@link min} - * + * @category constructors * @since 4.0.0 */ export declare function max(order: Order.Order): Combiner; /** * Creates a `Combiner` that always returns the first (left) argument. * - * When to use: - * - You want "first write wins" semantics when merging values. - * - You need a combiner but the combining logic should be a no-op that keeps - * the existing value. + * **When to use** + * + * Use when you want "first write wins" semantics while merging values. * - * Behavior: - * - `combine(self, that)` returns `self`, ignoring `that`. - * - Pure – the second argument is discarded, not mutated. + * **Details** + * + * `combine(self, that)` returns `self` and ignores `that`. * * **Example** (keeping the first value) * @@ -241,20 +195,20 @@ export declare function max(order: Order.Order): Combiner; * ``` * * @see {@link last} - * + * @category constructors * @since 4.0.0 */ export declare function first(): Combiner; /** * Creates a `Combiner` that always returns the last (right) argument. * - * When to use: - * - You want "last write wins" semantics when merging values. - * - You need a combiner that replaces the accumulator with each new value. + * **When to use** + * + * Use when you want "last write wins" semantics while merging values. * - * Behavior: - * - `combine(self, that)` returns `that`, ignoring `self`. - * - Pure – the first argument is discarded, not mutated. + * **Details** + * + * `combine(self, that)` returns `that` and ignores `self`. * * **Example** (keeping the last value) * @@ -268,7 +222,7 @@ export declare function first(): Combiner; * ``` * * @see {@link first} - * + * @category constructors * @since 4.0.0 */ export declare function last(): Combiner; @@ -276,14 +230,14 @@ export declare function last(): Combiner; * Creates a `Combiner` that ignores both arguments and always returns the * given constant value. * - * When to use: - * - You need a combiner that produces a fixed result regardless of input. - * - You are providing a combiner to a generic API but the combined value is - * predetermined. + * **When to use** + * + * Use when you need a combiner that always returns a fixed value, including + * when a generic API requires a combiner but the result is predetermined. * - * Behavior: - * - `combine(self, that)` returns the constant `a`, ignoring both arguments. - * - Pure – no mutation occurs. + * **Details** + * + * `combine(self, that)` returns the constant `a` and ignores both arguments. * * **Example** (always returning zero) * @@ -298,7 +252,7 @@ export declare function last(): Combiner; * * @see {@link first} * @see {@link last} - * + * @category constructors * @since 4.0.0 */ export declare function constant(a: A): Combiner; @@ -306,16 +260,17 @@ export declare function constant(a: A): Combiner; * Wraps a `Combiner` so that a separator value is inserted between every * pair of combined elements. * - * When to use: - * - You are building delimited strings (CSV, paths, etc.) by repeated - * combination. - * - You need to inject a fixed separator between accumulated values. + * **When to use** + * + * Use when you need to inject a fixed separator between accumulated values, + * such as when building delimited strings, paths, or CSV-like output by + * repeated combination. * - * Behavior: - * - `intercalate(middle)(combiner).combine(self, that)` is equivalent to - * `combiner.combine(self, combiner.combine(middle, that))`. - * - Curried: first provide the separator, then the base combiner. - * - Does not mutate the input combiner; returns a new one. + * **Details** + * + * `intercalate(middle)(combiner).combine(self, that)` is equivalent to + * `combiner.combine(self, combiner.combine(middle, that))`. This function is + * curried: first provide the separator, then the base combiner. * * **Example** (joining strings with a separator) * @@ -329,7 +284,7 @@ export declare function constant(a: A): Combiner; * ``` * * @see {@link make} - * + * @category combinators * @since 4.0.0 */ export declare function intercalate(middle: A): (combiner: Combiner) => Combiner; diff --git a/.opencode/node_modules/effect/dist/Combiner.d.ts.map b/.opencode/node_modules/effect/dist/Combiner.d.ts.map index 557e441b53ef44d3bef1df9145ac6897e11bcea1..ee67afc97ea22236b7e78a7dfdae0eaf905f2c29 100644 --- a/.opencode/node_modules/effect/dist/Combiner.d.ts.map +++ b/.opencode/node_modules/effect/dist/Combiner.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Combiner.d.ts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AC,CAEzD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAgB,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAEzD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,KAAK,CAAC,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,CAEtC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,IAAI,CAAC,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,CAErC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAE7C;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,IAC9B,UAAU,QAAQ,CAAC,CAAC,CAAC,KAAG,QAAQ,CAAC,CAAC,CAAC,CAE5C"} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Combiner.js b/.opencode/node_modules/effect/dist/Combiner.js index 918f21e2c6771d1f959ccdfab8b8d2dbf88ee26a..6985bb6524af545a9d20bdd24d390ec28b8e705a 100644 --- a/.opencode/node_modules/effect/dist/Combiner.js +++ b/.opencode/node_modules/effect/dist/Combiner.js @@ -1,14 +1,15 @@ /** * Creates a `Combiner` from a binary function. * - * When to use: - * - You have a custom combining operation that is not covered by the built-in - * constructors (`min`, `max`, `first`, `last`, `constant`). + * **When to use** * - * Behavior: - * - Returns a new `Combiner` whose `combine` method delegates to the provided - * function. - * - Pure – the returned combiner does not mutate its arguments. + * Use when you have a custom combining operation that is not covered by + * the built-in constructors (`min`, `max`, `first`, `last`, `constant`). + * + * **Details** + * + * The returned combiner's `combine` method delegates to the provided function. + * Any purity, associativity, or mutation behavior comes from that function. * * **Example** (multiplying numbers) * @@ -22,7 +23,7 @@ * ``` * * @see {@link Combiner} – the interface this creates - * + * @category constructors * @since 4.0.0 */ export function make(combine) { @@ -33,15 +34,15 @@ export function make(combine) { /** * Reverses the argument order of a combiner's `combine` method. * - * When to use: - * - You need the "right" value to act as the accumulator side. - * - You want to reverse the natural direction of a non-commutative combiner - * (e.g. string concatenation). + * **When to use** * - * Behavior: - * - Returns a new `Combiner` where `combine(self, that)` calls the original - * combiner as `combine(that, self)`. - * - Does not mutate the input combiner. + * Use when you want the right-hand value to act as the accumulator, or need to + * reverse a non-commutative combiner such as string concatenation. + * + * **Details** + * + * Returns a new `Combiner` where `combine(self, that)` calls the original + * combiner as `combine(that, self)`. * * **Example** (reversing string concatenation) * @@ -55,7 +56,7 @@ export function make(combine) { * ``` * * @see {@link make} - * + * @category combinators * @since 4.0.0 */ export function flip(combiner) { @@ -65,14 +66,15 @@ export function flip(combiner) { * Creates a `Combiner` that returns the smaller of two values according to * the provided `Order`. * - * When to use: - * - You want to accumulate the minimum value across a collection. - * - You are building a `Reducer` that tracks the running minimum. + * **When to use** * - * Behavior: - * - Compares using the given `Order`. When values are equal, returns `that` - * (the second argument). - * - Pure – does not mutate either argument. + * Use when you want to accumulate the minimum value across a collection or + * build a `Reducer` that tracks the running minimum. + * + * **Details** + * + * The combiner compares values using the given `Order`. When values are equal, + * it returns `that` (the second argument). * * **Example** (minimum of two numbers) * @@ -89,7 +91,7 @@ export function flip(combiner) { * ``` * * @see {@link max} - * + * @category constructors * @since 4.0.0 */ export function min(order) { @@ -99,14 +101,15 @@ export function min(order) { * Creates a `Combiner` that returns the larger of two values according to * the provided `Order`. * - * When to use: - * - You want to accumulate the maximum value across a collection. - * - You are building a `Reducer` that tracks the running maximum. + * **When to use** * - * Behavior: - * - Compares using the given `Order`. When values are equal, returns `that` - * (the second argument). - * - Pure – does not mutate either argument. + * Use when you want to accumulate the maximum value across a collection or + * build a `Reducer` that tracks the running maximum. + * + * **Details** + * + * The combiner compares values using the given `Order`. When values are equal, + * it returns `that` (the second argument). * * **Example** (maximum of two numbers) * @@ -123,7 +126,7 @@ export function min(order) { * ``` * * @see {@link min} - * + * @category constructors * @since 4.0.0 */ export function max(order) { @@ -132,14 +135,13 @@ export function max(order) { /** * Creates a `Combiner` that always returns the first (left) argument. * - * When to use: - * - You want "first write wins" semantics when merging values. - * - You need a combiner but the combining logic should be a no-op that keeps - * the existing value. + * **When to use** * - * Behavior: - * - `combine(self, that)` returns `self`, ignoring `that`. - * - Pure – the second argument is discarded, not mutated. + * Use when you want "first write wins" semantics while merging values. + * + * **Details** + * + * `combine(self, that)` returns `self` and ignores `that`. * * **Example** (keeping the first value) * @@ -153,7 +155,7 @@ export function max(order) { * ``` * * @see {@link last} - * + * @category constructors * @since 4.0.0 */ export function first() { @@ -162,13 +164,13 @@ export function first() { /** * Creates a `Combiner` that always returns the last (right) argument. * - * When to use: - * - You want "last write wins" semantics when merging values. - * - You need a combiner that replaces the accumulator with each new value. + * **When to use** * - * Behavior: - * - `combine(self, that)` returns `that`, ignoring `self`. - * - Pure – the first argument is discarded, not mutated. + * Use when you want "last write wins" semantics while merging values. + * + * **Details** + * + * `combine(self, that)` returns `that` and ignores `self`. * * **Example** (keeping the last value) * @@ -182,7 +184,7 @@ export function first() { * ``` * * @see {@link first} - * + * @category constructors * @since 4.0.0 */ export function last() { @@ -192,14 +194,14 @@ export function last() { * Creates a `Combiner` that ignores both arguments and always returns the * given constant value. * - * When to use: - * - You need a combiner that produces a fixed result regardless of input. - * - You are providing a combiner to a generic API but the combined value is - * predetermined. + * **When to use** * - * Behavior: - * - `combine(self, that)` returns the constant `a`, ignoring both arguments. - * - Pure – no mutation occurs. + * Use when you need a combiner that always returns a fixed value, including + * when a generic API requires a combiner but the result is predetermined. + * + * **Details** + * + * `combine(self, that)` returns the constant `a` and ignores both arguments. * * **Example** (always returning zero) * @@ -214,7 +216,7 @@ export function last() { * * @see {@link first} * @see {@link last} - * + * @category constructors * @since 4.0.0 */ export function constant(a) { @@ -224,16 +226,17 @@ export function constant(a) { * Wraps a `Combiner` so that a separator value is inserted between every * pair of combined elements. * - * When to use: - * - You are building delimited strings (CSV, paths, etc.) by repeated - * combination. - * - You need to inject a fixed separator between accumulated values. + * **When to use** * - * Behavior: - * - `intercalate(middle)(combiner).combine(self, that)` is equivalent to - * `combiner.combine(self, combiner.combine(middle, that))`. - * - Curried: first provide the separator, then the base combiner. - * - Does not mutate the input combiner; returns a new one. + * Use when you need to inject a fixed separator between accumulated values, + * such as when building delimited strings, paths, or CSV-like output by + * repeated combination. + * + * **Details** + * + * `intercalate(middle)(combiner).combine(self, that)` is equivalent to + * `combiner.combine(self, combiner.combine(middle, that))`. This function is + * curried: first provide the separator, then the base combiner. * * **Example** (joining strings with a separator) * @@ -247,7 +250,7 @@ export function constant(a) { * ``` * * @see {@link make} - * + * @category combinators * @since 4.0.0 */ export function intercalate(middle) { diff --git a/.opencode/node_modules/effect/dist/Combiner.js.map b/.opencode/node_modules/effect/dist/Combiner.js.map index 4cebe3904b0d5fce6b6aae06d465f87efda3217e..6bfdb3a66d6f7d0db5075fb1cd718887f786d6c1 100644 --- a/.opencode/node_modules/effect/dist/Combiner.js.map +++ b/.opencode/node_modules/effect/dist/Combiner.js.map @@ -1 +1 @@ -{"version":3,"file":"Combiner.js","names":["make","combine","flip","combiner","self","that","min","order","max","first","_","last","constant","a","intercalate","middle"],"sources":["../src/Combiner.ts"],"sourcesContent":[null],"mappings":"AAoGA;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BA,OAAM,SAAUA,IAAIA,CAAIC,OAAgC;EACtD,OAAO;IAAEA;EAAO,CAAE;AACpB;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BA,OAAM,SAAUC,IAAIA,CAAIC,QAAqB;EAC3C,OAAOH,IAAI,CAAC,CAACI,IAAI,EAAEC,IAAI,KAAKF,QAAQ,CAACF,OAAO,CAACI,IAAI,EAAED,IA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","combiner","self","that","min","order","max","first","_","last","constant","a","intercalate","middle"],"sources":["../src/Combiner.ts"],"sourcesContent":[null],"mappings":"AAoDA;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BA,OAAM,SAAUA,IAAIA,CAAIC,OAAgC;EACtD,OAAO;IAAEA;EAAO,CAAE;AACpB;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BA,OAAM,SAAUC,IAAIA,CAAIC,QAAqB;EAC3C,OAAOH,IAAI,CAAC,CAACI,IAAI,EAAEC,IAAI,KAAKF,QAAQ,CAACF,OAAO,CAACI,IAAI,EAAED,IAAI,CAAC,CAAC;AAC3D;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCA,OAAM,SAAUE,GAAGA,CAAIC,KAAqB;EAC1C,OAAOP,IAAI,CAAC,CAACI,IAAI,EAAEC,IAAI,KAAKE,KAAK,CAACH,IAAI,EAAEC,IAAI,CAAC,KAAK,CAAC,CAAC,GAAGD,IAAI,GAAGC,IAAI,CAAC;AACrE;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCA,OAAM,SAAUG,GAAGA,CAAID,KAAqB;EAC1C,OAAOP,IAAI,CAAC,CAACI,IAAI,EAAEC,IAAI,KAAKE,KAAK,CAACH,IAAI,EAAEC,IAAI,CAAC,KAAK,CAAC,GAAGD,IAAI,GAAGC,IAAI,CAAC;AACpE;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BA,OAAM,SAAUI,KAAKA,CAAA;EACnB,OAAOT,IAAI,CAAC,CAACI,IAAI,EAAEM,CAAC,KAAKN,IAAI,CAAC;AAChC;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BA,OAAM,SAAUO,IAAIA,CAAA;EAClB,OAAOX,IAAI,CAAC,CAACU,CAAC,EAAEL,IAAI,KAAKA,IAAI,CAAC;AAChC;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BA,OAAM,SAAUO,QAAQA,CAAIC,CAAI;EAC9B,OAAOb,IAAI,CAAC,MAAMa,CAAC,CAAC;AACtB;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BA,OAAM,SAAUC,WAAWA,CAAIC,MAAS;EACtC,OAAQZ,QAAqB,IAC3BH,IAAI,CAAC,CAACI,IAAI,EAAEC,IAAI,KAAKF,QAAQ,CAACF,OAAO,CAACG,IAAI,EAAED,QAAQ,CAACF,OAAO,CAACc,MAAM,EAAEV,IAAI,CAAC,CAAC,CAAC;AAChF","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Config.d.ts b/.opencode/node_modules/effect/dist/Config.d.ts index 87090a1d49f6b83851e103443c5cece6bce45e74..a29c70936d53e424f8c805e0a568a0bea1eea673 100644 --- a/.opencode/node_modules/effect/dist/Config.d.ts +++ b/.opencode/node_modules/effect/dist/Config.d.ts @@ -1,73 +1,9 @@ /** - * Declarative, schema-driven configuration loading. A `Config` describes - * how to read and validate a value of type `T` from a `ConfigProvider`. Configs - * can be composed, transformed, and used directly as Effects. - * - * ## Mental model - * - * - **Config\** – a recipe for extracting a typed value from a - * `ConfigProvider`. Created via convenience constructors or {@link schema}. - * - **ConfigProvider** – the backing data source (env vars, JSON, `.env` - * files). See the `ConfigProvider` module. - * - **ConfigError** – wraps either a `SourceError` (provider I/O failure) or - * a `SchemaError` (validation / decoding failure). - * - **parse** – instance method on every `Config` that takes a provider and - * returns `Effect`. - * - **Yieldable** – every `Config` can be yielded inside `Effect.gen`. It - * automatically resolves the current `ConfigProvider` from the context. - * - * ## Common tasks - * - * - Read a single env var → {@link string}, {@link number}, {@link boolean}, - * {@link int}, {@link port}, {@link url}, {@link date}, {@link duration}, - * {@link logLevel}, {@link redacted} - * - Read a structured config → {@link schema} with a `Schema.Struct` - * - Provide a default → {@link withDefault} - * - Make a config optional → {@link option} - * - Transform a value → {@link map} / {@link mapOrFail} - * - Fall back on error → {@link orElse} - * - Combine multiple configs → {@link all} - * - Build from a `Schema.Codec` → {@link schema} - * - Always succeed or fail → {@link succeed} / {@link fail} - * - * ## Gotchas - * - * - `withDefault` and `option` only apply when the error is caused by - * **missing data**. Validation errors (wrong type, out of range) still - * propagate. - * - When yielded in `Effect.gen`, the config resolves using the current - * `ConfigProvider` service. To use a specific provider, call `.parse(provider)` - * instead. - * - The `name` parameter on convenience constructors (e.g. `Config.string("HOST")`) - * sets the root path segment. Omit it when the config is part of a larger - * schema. - * - * ## Quickstart - * - * **Example** (Reading typed config from environment variables) - * - * ```ts - * import { Config, ConfigProvider, Effect, Schema } from "effect" - * - * const AppConfig = Config.schema( - * Schema.Struct({ - * host: Schema.String, - * port: Schema.Int - * }), - * "app" - * ) - * - * const provider = ConfigProvider.fromEnv({ - * env: { app_host: "localhost", app_port: "8080" } - * }) - * - * // Effect.runSync(AppConfig.parse(provider)) - * // { host: "localhost", port: 8080 } - * ``` - * - * @see {@link schema} – build a Config from any Schema.Codec - * @see {@link ConfigError} – the error type for config failures - * @see {@link make} – low-level Config constructor + * Descriptions of configuration values that can be read from a + * `ConfigProvider`. A `Config` explains which keys to read, how to decode + * and validate them, and how to combine defaults, fallbacks, nested paths, and + * multiple settings. Configs are also Effects, so they can be yielded in + * `Effect.gen` after a provider has been supplied. * * @since 4.0.0 */ @@ -76,16 +12,16 @@ import * as ConfigProvider from "./ConfigProvider.ts"; import * as Effect from "./Effect.ts"; import * as LogLevel_ from "./LogLevel.ts"; import * as Option from "./Option.ts"; -import type { Pipeable } from "./Pipeable.ts"; import * as Schema from "./Schema.ts"; -import * as AST from "./SchemaAST.ts"; +import * as SchemaAST from "./SchemaAST.ts"; declare const TypeId = "~effect/Config"; /** * Returns `true` if `u` is a `Config` instance. * - * When to use: - * - Runtime type-checking before calling `.parse()` on an unknown value. - * - Distinguishing a `Config` from a plain value inside {@link unwrap}. + * **When to use** + * + * Use when you need to distinguish a `Config` from an unknown value before + * calling `.parse` or {@link unwrap}. * * **Example** (Type guard) * @@ -96,28 +32,29 @@ declare const TypeId = "~effect/Config"; * console.log(Config.isConfig("not a config")) // false * ``` * - * @since 4.0.0 - * @category Guards + * @category guards + * @since 2.0.0 */ export declare const isConfig: (u: unknown) => u is Config; /** - * The error type produced when config loading or validation fails. + * Represents the error type produced when config loading or validation fails. + * + * **When to use** + * + * Use when you need to inspect config loading or validation failures. + * + * **Details** * * Wraps either: * - A `SourceError` — the provider could not read data (I/O failure). * - A `SchemaError` — the data was found but did not match the schema * (wrong type, out of range, missing key, etc.). * - * When to use: - * - Match on `error.cause._tag` to distinguish source failures from - * validation failures. - * - Pass to {@link fail} to create a Config that always errors. - * * @see {@link orElse} – recover from a ConfigError * @see {@link withDefault} – provide a fallback for missing-data errors * + * @category errors * @since 4.0.0 - * @category Models */ export declare class ConfigError { readonly _tag = "ConfigError"; @@ -130,6 +67,13 @@ export declare class ConfigError { /** * A recipe for extracting a typed value `T` from a `ConfigProvider`. * + * **When to use** + * + * Use to describe typed configuration that can be parsed from a provider or + * yielded inside `Effect.gen`. + * + * **Details** + * * Key members: * - `parse(provider)` – runs the config against a specific provider, * returning `Effect`. @@ -140,19 +84,22 @@ export declare class ConfigError { * @see {@link schema} – the main way to create a Config * @see {@link make} – low-level constructor * - * @since 4.0.0 + * @category models + * @since 2.0.0 */ -export interface Config extends Pipeable, Effect.Yieldable, T, ConfigError> { +export interface Config extends Effect.Effect { readonly [TypeId]: typeof TypeId; readonly parse: (provider: ConfigProvider.ConfigProvider) => Effect.Effect; } /** * Creates a `Config` from a raw parsing function. * - * When to use: - * - Building a custom config that cannot be expressed with {@link schema} or - * the convenience constructors. - * - Composing configs programmatically. + * **When to use** + * + * Use to build a custom config that cannot be expressed with {@link schema} or + * convenience constructors, or compose configs programmatically. + * + * **Details** * * The `parse` callback receives a `ConfigProvider` and must return * `Effect`. @@ -176,16 +123,19 @@ export interface Config extends Pipeable, Effect.Yieldable, T, * * @see {@link schema} – higher-level constructor using Schema codecs * - * @category Constructors + * @category constructors * @since 4.0.0 */ export declare function make(parse: (provider: ConfigProvider.ConfigProvider) => Effect.Effect): Config; /** * Transforms the parsed value of a config with a pure function. * - * When to use: - * - Post-processing a config value (e.g. trimming, uppercasing, wrapping). - * - The transformation cannot fail. Use {@link mapOrFail} if it can. + * **When to use** + * + * Use when you need to transform a parsed config value with a function that + * cannot fail. + * + * **Details** * * Supports both data-last and data-first calling conventions. * @@ -204,16 +154,19 @@ export declare function make(parse: (provider: ConfigProvider.ConfigProvider) * * @see {@link mapOrFail} – when the transformation can fail * - * @category Mapping - * @since 4.0.0 + * @category mapping + * @since 2.0.0 */ export declare const map: { /** * Transforms the parsed value of a config with a pure function. * - * When to use: - * - Post-processing a config value (e.g. trimming, uppercasing, wrapping). - * - The transformation cannot fail. Use {@link mapOrFail} if it can. + * **When to use** + * + * Use when you need to transform a parsed config value with a function that + * cannot fail. + * + * **Details** * * Supports both data-last and data-first calling conventions. * @@ -232,16 +185,19 @@ export declare const map: { * * @see {@link mapOrFail} – when the transformation can fail * - * @category Mapping - * @since 4.0.0 + * @category mapping + * @since 2.0.0 */ (f: (a: A) => B): (self: Config) => Config; /** * Transforms the parsed value of a config with a pure function. * - * When to use: - * - Post-processing a config value (e.g. trimming, uppercasing, wrapping). - * - The transformation cannot fail. Use {@link mapOrFail} if it can. + * **When to use** + * + * Use when you need to transform a parsed config value with a function that + * cannot fail. + * + * **Details** * * Supports both data-last and data-first calling conventions. * @@ -260,17 +216,20 @@ export declare const map: { * * @see {@link mapOrFail} – when the transformation can fail * - * @category Mapping - * @since 4.0.0 + * @category mapping + * @since 2.0.0 */ (self: Config, f: (a: A) => B): Config; }; /** * Transforms the parsed value with a function that may fail. * - * When to use: - * - Validating or converting a config value where the transformation can - * produce a `ConfigError` (e.g. parsing a URL, checking a range). + * **When to use** + * + * Use when you need to transform a parsed config value with a function that can + * produce a `ConfigError` (e.g. parsing a URL, checking a range). + * + * **Details** * * Supports both data-last and data-first calling conventions. * @@ -286,16 +245,19 @@ export declare const map: { * * @see {@link map} – when the transformation cannot fail * - * @category Mapping - * @since 4.0.0 + * @category mapping + * @since 2.0.0 */ export declare const mapOrFail: { /** * Transforms the parsed value with a function that may fail. * - * When to use: - * - Validating or converting a config value where the transformation can - * produce a `ConfigError` (e.g. parsing a URL, checking a range). + * **When to use** + * + * Use when you need to transform a parsed config value with a function that can + * produce a `ConfigError` (e.g. parsing a URL, checking a range). + * + * **Details** * * Supports both data-last and data-first calling conventions. * @@ -311,16 +273,19 @@ export declare const mapOrFail: { * * @see {@link map} – when the transformation cannot fail * - * @category Mapping - * @since 4.0.0 + * @category mapping + * @since 2.0.0 */ (f: (a: A) => Effect.Effect): (self: Config) => Config; /** * Transforms the parsed value with a function that may fail. * - * When to use: - * - Validating or converting a config value where the transformation can - * produce a `ConfigError` (e.g. parsing a URL, checking a range). + * **When to use** + * + * Use when you need to transform a parsed config value with a function that can + * produce a `ConfigError` (e.g. parsing a URL, checking a range). + * + * **Details** * * Supports both data-last and data-first calling conventions. * @@ -336,17 +301,20 @@ export declare const mapOrFail: { * * @see {@link map} – when the transformation cannot fail * - * @category Mapping - * @since 4.0.0 + * @category mapping + * @since 2.0.0 */ (self: Config, f: (a: A) => Effect.Effect): Config; }; /** - * Falls back to another config when parsing fails with a `ConfigError`. + * Provides a fallback config when parsing fails with a `ConfigError`. * - * When to use: - * - Trying an alternative config source when the primary one errors. - * - Providing environment-specific overrides. + * **When to use** + * + * Use when you need to try an alternative config source after the primary one + * fails. + * + * **Details** * * Unlike {@link withDefault}, this catches **all** `ConfigError`s (not just * missing data). The fallback function receives the error and returns a new @@ -366,15 +334,19 @@ export declare const mapOrFail: { * * @see {@link withDefault} – fallback only on missing data * - * @since 4.0.0 + * @category combinators + * @since 2.0.0 */ export declare const orElse: { /** - * Falls back to another config when parsing fails with a `ConfigError`. + * Provides a fallback config when parsing fails with a `ConfigError`. + * + * **When to use** + * + * Use when you need to try an alternative config source after the primary one + * fails. * - * When to use: - * - Trying an alternative config source when the primary one errors. - * - Providing environment-specific overrides. + * **Details** * * Unlike {@link withDefault}, this catches **all** `ConfigError`s (not just * missing data). The fallback function receives the error and returns a new @@ -394,15 +366,19 @@ export declare const orElse: { * * @see {@link withDefault} – fallback only on missing data * - * @since 4.0.0 + * @category combinators + * @since 2.0.0 */ (that: (error: ConfigError) => Config): (self: Config) => Config; /** - * Falls back to another config when parsing fails with a `ConfigError`. + * Provides a fallback config when parsing fails with a `ConfigError`. * - * When to use: - * - Trying an alternative config source when the primary one errors. - * - Providing environment-specific overrides. + * **When to use** + * + * Use when you need to try an alternative config source after the primary one + * fails. + * + * **Details** * * Unlike {@link withDefault}, this catches **all** `ConfigError`s (not just * missing data). The fallback function receives the error and returns a new @@ -422,15 +398,19 @@ export declare const orElse: { * * @see {@link withDefault} – fallback only on missing data * - * @since 4.0.0 + * @category combinators + * @since 2.0.0 */ (self: Config, that: (error: ConfigError) => Config): Config; }; /** * Combines multiple configs into a single config that parses all of them. * - * When to use: - * - Grouping related configs into a tuple or named struct. + * **When to use** + * + * Use when you need to group related configs into a tuple or named struct. + * + * **Details** * * Accepts a tuple (preserves positions), an iterable, or a record of configs. * Returns a config whose parsed value mirrors the input shape. @@ -450,7 +430,8 @@ export declare const orElse: { * // { host: "localhost", port: 5432 } * ``` * - * @since 4.0.0 + * @category combinators + * @since 2.0.0 */ export declare function all> | Record>>(arg: Arg): Config<[ Arg @@ -462,14 +443,20 @@ export declare function all> | Record> | Record(defaultValue: A2): (self: Config) => Config; /** * Provides a fallback value when the config fails due to missing data. * - * When to use: - * - Making a config key optional with a sensible default. + * **When to use** + * + * Use when you need to make a config key optional with a sensible default. + * + * **Details** + * + * The default is lazily evaluated. Supports both data-last and data-first + * calling conventions. + * + * **Gotchas** * * Only applies when the error is a `SchemaError` caused exclusively by * missing data (missing keys, undefined values). Validation errors (wrong - * type, out of range) still propagate. The default is lazily evaluated. - * - * Supports both data-last and data-first calling conventions. + * type, out of range) still propagate. * * **Example** (Defaulting a missing port) * @@ -543,7 +544,8 @@ export declare const withDefault: { * @see {@link option} – returns `Option` instead of a default value * @see {@link orElse} – catches all errors, not just missing data * - * @since 4.0.0 + * @category combinators + * @since 2.0.0 */ (self: Config, defaultValue: A2): Config; }; @@ -551,9 +553,11 @@ export declare const withDefault: { * Makes a config optional: returns `Some(value)` on success and `None` when * data is missing. * - * When to use: - * - A config key may or may not be present and you want to handle both - * cases explicitly. + * **When to use** + * + * Use when you need to handle a config key that may or may not be present. + * + * **Gotchas** * * Like {@link withDefault}, only missing-data errors produce `None`. * Validation errors still propagate. @@ -571,27 +575,42 @@ export declare const withDefault: { * * @see {@link withDefault} – provide a concrete fallback value instead * - * @since 4.0.0 + * @category combinators + * @since 2.0.0 */ export declare const option: (self: Config) => Config>; /** - * @since 3.0.0 + * Extracts the successfully parsed value type from a `Config`. + * + * **When to use** + * + * Use to derive the parsed value type from an existing `Config` value when + * declaring reusable config-driven types. + * + * @see {@link Config} for the config type whose parsed value is extracted + * @see {@link Effect.Success} for extracting the success type from any `Effect` + * + * @category utility types + * @since 2.5.0 */ export type Success = [T] extends [Config] ? A : never; /** * Utility type that recursively replaces primitives with `Config` in a nested * structure. * - * `Config.Wrap<{ key: string }>` becomes `{ key: Config } | Config<{ key: string }>` + * **When to use** * - * When to use: - * - Typing the input of {@link unwrap} so callers can pass either a `Config` + * Use when typing the input of {@link unwrap} so callers can pass either a `Config` * or a record of `Config`s. * + * **Details** + * + * `Config.Wrap<{ key: string }>` becomes `{ key: Config } | Config<{ key: string }>` + * * @see {@link unwrap} – construct a `Config` from a `Wrap` * * @category Wrap - * @since 4.0.0 + * @since 2.0.0 */ export type Wrap = [NonNullable] extends [infer T] ? [IsPlainObject] extends [true] ? { readonly [K in keyof A]: Wrap; @@ -600,10 +619,13 @@ type IsPlainObject = [A] extends [Record] ? [keyof A] extends [n /** * Constructs a `Config` from a value matching `Wrap`. * - * When to use: - * - Accepting config from callers who may pass either a single `Config` or a + * **When to use** + * + * Use when accepting config from callers who may pass either a single `Config` or a * record of individual `Config`s. * + * **Details** + * * If the input is already a `Config`, it is returned as-is. Otherwise, each * key is recursively unwrapped and combined. * @@ -623,20 +645,24 @@ type IsPlainObject = [A] extends [Record] ? [keyof A] extends [n * @see {@link Wrap} – the utility type accepted by this function * * @category Wrap - * @since 4.0.0 + * @since 2.0.0 */ export declare const unwrap: (wrapped: Wrap) => Config; /** * Creates a `Config` from a `Schema.Codec`. * - * When to use: - * - Reading structured or validated config (structs, arrays, unions, branded - * types, etc.). - * - All convenience constructors (`string`, `number`, …) delegate to this. + * **When to use** + * + * Use when you need to read structured or schema-validated configuration. + * + * **Details** * * The optional `path` sets the root path segment(s) for the config lookup. * Pass a single string for a flat key or an array for nested paths. * + * Convenience constructors such as `string`, `number`, and `boolean` delegate + * to this API. + * * The codec is used to decode the raw `StringTree` produced by the provider * into `T`. Schema validation errors are wrapped in `ConfigError`. * @@ -664,63 +690,73 @@ export declare const unwrap: (wrapped: Wrap) => Config; * @see {@link string} / {@link number} / {@link boolean} – shortcuts for * single-value configs * - * @category Schema + * @category schemas * @since 4.0.0 */ export declare function schema(codec: Schema.Codec, path?: string | ConfigProvider.Path): Config; /** - * A `Schema.Codec` for boolean values encoded as strings. + * Schema for boolean values encoded as strings. + * + * **When to use** + * + * Use when you need the reusable boolean schema value for `Config.schema` with + * custom paths. * - * When to use: - * - Pass to {@link schema} for custom paths, or use the {@link boolean} - * convenience constructor. + * **Details** * * Accepted string values: `true`, `false`, `yes`, `no`, `on`, `off`, `1`, * `0`, `y`, `n` (case-sensitive). * * @see {@link boolean} – convenience constructor * - * @category Schema + * @category schemas * @since 4.0.0 */ export declare const Boolean: Schema.decodeTo, never, never>; /** - * A `Schema.Codec` for port numbers (integers in 1–65535). + * Schema for port numbers (integers in 1–65535). * - * When to use: - * - Pass to {@link schema} for custom paths, or use the {@link port} - * convenience constructor. + * **When to use** + * + * Use when you need the reusable port schema value for `Config.schema` with + * custom paths. * * @see {@link port} – convenience constructor * - * @category Schema + * @category schemas * @since 4.0.0 */ export declare const Port: Schema.Int; /** - * A `Schema.Codec` for `LogLevel` string literals. + * Schema for `LogLevel` string literals. + * + * **When to use** * - * When to use: - * - Pass to {@link schema} for custom paths, or use the {@link logLevel} - * convenience constructor. + * Use when you need the reusable log-level schema value for `Config.schema` + * with custom paths. + * + * **Details** * * Accepted values: `"All"`, `"Fatal"`, `"Error"`, `"Warn"`, `"Info"`, * `"Debug"`, `"Trace"`, `"None"`. * * @see {@link logLevel} – convenience constructor * - * @category Schema + * @category schemas * @since 4.0.0 */ export declare const LogLevel: Schema.Literals; /** - * A `Schema.Codec` for key-value record types that can also be parsed from + * Schema for key-value record types that can also be parsed from * a flat comma-separated string. * - * When to use: - * - Reading key-value maps from a single env var (e.g. OpenTelemetry + * **When to use** + * + * Use when reading key-value maps from a single env var (e.g. OpenTelemetry * resource attributes). * + * **Details** + * * Accepts either a JSON-like record from the provider or a flat string like * `"key1=val1,key2=val2"`. The `separator` (default `","`) and * `keyValueSeparator` (default `"="`) can be customized. @@ -748,7 +784,7 @@ export declare const LogLevel: Schema.Literals; * // } * ``` * - * @category Schemas + * @category schemas * @since 4.0.0 */ export declare const Record: (key: K, value: V, options?: { @@ -756,23 +792,50 @@ export declare const Record: readonly keyValueSeparator?: string | undefined; }) => Schema.Union, Schema.compose, Schema.decodeTo, Schema.String, never, never>>]>; /** - * Creates a config that always fails with the given error. + * @category schemas + * @since 4.0.0 + */ +declare const ArrayConfig: (value: V, options?: { + readonly separator?: string | undefined; +}) => Schema.Union, Schema.decodeTo, Schema.String, never, never>>, Schema.$Array]>; +export { +/** + * Schema for array types that can also be parsed from a flat separated string. + * + * **When to use** * - * When to use: - * - Inside {@link orElse} to re-raise a specific error. - * - Testing error handling paths. + * Use when reading array values from a single env var, such as comma-separated + * exporter names. * - * @category Constructors + * **Details** + * + * Accepts either a JSON-like array from the provider or a flat string like + * `"a,b,c"`. The `separator` defaults to `","` and can be customized. + * + * @category schemas * @since 4.0.0 */ +ArrayConfig as Array }; +/** + * Creates a config that always fails with the given error. + * + * **When to use** + * + * Use when you need to re-raise a specific config error, such as inside + * {@link orElse}. + * + * @category constructors + * @since 2.0.0 + */ export declare function fail(err: SourceError | Schema.SchemaError): Config; /** * Creates a config that always succeeds with the given value, ignoring the * provider entirely. * - * When to use: - * - Providing a hardcoded constant inside {@link orElse}. - * - Testing. + * **When to use** + * + * Use when you need a hardcoded config value, such as inside {@link orElse} or + * tests. * * **Example** (Constant fallback) * @@ -784,17 +847,20 @@ export declare function fail(err: SourceError | Schema.SchemaError): Config(value: T): Config; /** * Creates a config for a single string value. * - * Shortcut for `Config.schema(Schema.String, name)`. + * **When to use** + * + * Use when reading a single string env var or config key. * - * When to use: - * - Reading a single string env var or config key. + * **Details** + * + * Shortcut for `Config.schema(Schema.String, name)`. * * **Example** (Reading a string config) * @@ -810,61 +876,92 @@ export declare function succeed(value: T): Config; * @see {@link nonEmptyString} – rejects empty strings * @see {@link schema} – for more complex types * - * @category Constructors - * @since 4.0.0 + * @category constructors + * @since 2.0.0 */ export declare function string(name?: string): Config; /** * Creates a config for a non-empty string value. Fails if the value is an * empty string. * + * **When to use** + * + * Use to read a string config value that must contain at least one character. + * + * **Details** + * * Shortcut for `Config.schema(Schema.NonEmptyString, name)`. * - * @see {@link string} – allows empty strings + * @see {@link string} for allowing empty strings * - * @category Constructors - * @since 4.0.0 + * @category constructors + * @since 3.7.0 */ export declare function nonEmptyString(name?: string): Config; /** * Creates a config for a numeric value (including `NaN`, `Infinity`). * + * **When to use** + * + * Use when you need config input to accept JavaScript's full number domain, + * including NaN and infinities, rather than reject non-finite values. + * + * **Details** + * * Shortcut for `Config.schema(Schema.Number, name)`. * - * @see {@link finite} – rejects `NaN` and `Infinity` - * @see {@link int} – only integers + * @see {@link finite} for rejecting `NaN` and `Infinity` + * @see {@link int} for accepting only integers * - * @category Constructors - * @since 4.0.0 + * @category constructors + * @since 2.0.0 */ export declare function number(name?: string): Config; /** * Creates a config for a finite number (rejects `NaN` and `Infinity`). * + * **When to use** + * + * Use to read a numeric config value that must be finite. + * + * **Details** + * * Shortcut for `Config.schema(Schema.Finite, name)`. * - * @see {@link number} – allows `NaN` and `Infinity` - * @see {@link int} – only integers + * @see {@link number} for accepting `NaN` and `Infinity` + * @see {@link int} for accepting only integers * - * @category Constructors + * @category constructors * @since 4.0.0 */ export declare function finite(name?: string): Config; /** * Creates a config for an integer value. Rejects floats. * + * **When to use** + * + * Use to read a numeric config value that must be an integer. + * + * **Details** + * * Shortcut for `Config.schema(Schema.Int, name)`. * - * @see {@link number} – allows any number - * @see {@link port} – integers in 1–65535 + * @see {@link number} for accepting any number + * @see {@link port} for accepting only integers in `1` through `65535` * - * @category Constructors + * @category constructors * @since 4.0.0 */ export declare function int(name?: string): Config; /** * Creates a config that only accepts a specific literal value. * + * **When to use** + * + * Use to restrict a config to a single, specific literal value. + * + * **Details** + * * Shortcut for `Config.schema(Schema.Literal(literal), name)`. * * **Example** (Restricting to a literal) @@ -875,13 +972,20 @@ export declare function int(name?: string): Config; * const env = Config.literal("production", "ENV") * ``` * - * @category Constructors - * @since 4.0.0 + * @see {@link literals} – accepts multiple literal values + * @category constructors + * @since 2.0.0 */ -export declare function literal(literal: L, name?: string): Config; +export declare function literal(literal: L, name?: string): Config; /** * Creates a config that only accepts one of the specified literal values. * + * **When to use** + * + * Use to restrict a config to a fixed set of allowed literal values. + * + * **Details** + * * Shortcut for `Config.schema(Schema.Literals(literals), name)`. * * **Example** (Restricting to a set of literals) @@ -892,14 +996,22 @@ export declare function literal(literal: L, name?: s * const env = Config.literals(["development", "production"], "ENV") * ``` * - * @category Constructors + * @see {@link literal} for accepting one specific literal value + * + * @category constructors * @since 4.0.0 */ -export declare function literals>(literals: L, name?: string): Config; +export declare function literals>(literals: L, name?: string): Config; /** * Creates a config for a boolean value parsed from common string * representations. * + * **When to use** + * + * Use to read boolean flags from string-like config sources. + * + * **Details** + * * Shortcut for `Config.schema(Config.Boolean, name)`. * * Accepted values: `true`, `false`, `yes`, `no`, `on`, `off`, `1`, `0`, @@ -927,14 +1039,22 @@ export declare function literals * // Output: true * ``` * - * @category Constructors - * @since 4.0.0 + * @see {@link Boolean} for the underlying boolean codec + * + * @category constructors + * @since 2.0.0 */ export declare function boolean(name?: string): Config; /** * Creates a config for a `Duration` value parsed from a human-readable * string. * + * **When to use** + * + * Use to read time duration settings such as timeouts, intervals, or TTLs. + * + * **Details** + * * Shortcut for `Config.schema(Schema.DurationFromString, name)`. * * Accepts any string that `Duration.fromInput` can parse (e.g. @@ -962,13 +1082,21 @@ export declare function boolean(name?: string): Config; * // Output: Duration { _tag: "millis", value: 10000 } * ``` * - * @category Constructors - * @since 4.0.0 + * @see {@link schema} for decoding configuration values with a custom codec + * + * @category constructors + * @since 2.5.0 */ export declare function duration(name?: string): Config; /** * Creates a config for a port number (integer in 1–65535). * + * **When to use** + * + * Use to read network port settings that must be valid port numbers. + * + * **Details** + * * Shortcut for `Config.schema(Config.Port, name)`. * * **Example** (Reading a port) @@ -993,13 +1121,22 @@ export declare function duration(name?: string): Config; /** * Creates a config for a log level string. * + * **When to use** + * + * Use to read Effect log-level settings from configuration. + * + * **Details** + * * Shortcut for `Config.schema(Config.LogLevel, name)`. * * Accepted values: `"All"`, `"Fatal"`, `"Error"`, `"Warn"`, `"Info"`, @@ -1027,14 +1164,23 @@ export declare function port(name?: string): Config; * // Output: "Info" * ``` * - * @category Constructors - * @since 4.0.0 + * @see {@link LogLevel} for the underlying log-level codec + * + * @category constructors + * @since 2.0.0 */ export declare function logLevel(name?: string): Config; /** * Creates a config for a redacted string value. The parsed result is wrapped * in a `Redacted` container that hides the value from logs and `toString`. * + * **When to use** + * + * Use to read secret string settings that should not be exposed in logs or + * string output. + * + * **Details** + * * Shortcut for `Config.schema(Schema.Redacted(Schema.String), name)`. * * **Example** (Reading a secret) @@ -1059,13 +1205,25 @@ export declare function logLevel(name?: string): Config; * // Output: * ``` * - * @category Constructors - * @since 4.0.0 + * @see {@link string} for non-secret string settings + * + * @category constructors + * @since 2.0.0 */ export declare function redacted(name?: string): Config>; /** * Creates a config for a `URL` value parsed from a string. * + * **When to use** + * + * Use to read configuration values that must be valid URL strings. + * + * **Details** + * + * This is a shortcut for `Config.schema(Schema.URL, name)`. + * + * **Gotchas** + * * Fails if the string cannot be parsed by the `URL` constructor. * * **Example** (Reading a URL) @@ -1104,17 +1262,27 @@ export declare function redacted(name?: string): Config; /** * Creates a config for a `Date` value parsed from a string. * - * Fails with a `SchemaError` if the string produces an invalid `Date`. + * **When to use** + * + * Use to read date settings that must parse to valid `Date` values. + * + * **Details** * * Shortcut for `Config.schema(Schema.DateValid, name)`. * + * **Gotchas** + * + * Fails with a `SchemaError` if the string produces an invalid `Date`. + * * **Example** (Reading a date) * * ```ts @@ -1127,17 +1295,18 @@ export declare function url(name?: string): Config; * // Date("2024-01-15T00:00:00.000Z") * ``` * - * @category Constructors - * @since 4.0.0 + * @category constructors + * @since 2.0.0 */ export declare function date(name?: string): Config; /** * Scopes a config under a named prefix. * - * When to use: - * - Grouping related config keys under a common namespace (e.g. - * `"database"`, `"redis"`). - * - Building reusable config fragments that callers nest at different paths. + * **When to use** + * + * Use when you need to group related config keys under a common namespace. + * + * **Details** * * The prefix is prepended to every key the inner config reads. With * `fromUnknown` this means an extra object level; with `fromEnv` it means @@ -1179,17 +1348,18 @@ export declare function date(name?: string): Config; * @see {@link all} – combine multiple configs into a struct * @see {@link schema} – read structured config from a schema * - * @category Combinators - * @since 4.0.0 + * @category combinators + * @since 2.0.0 */ export declare const nested: { /** * Scopes a config under a named prefix. * - * When to use: - * - Grouping related config keys under a common namespace (e.g. - * `"database"`, `"redis"`). - * - Building reusable config fragments that callers nest at different paths. + * **When to use** + * + * Use when you need to group related config keys under a common namespace. + * + * **Details** * * The prefix is prepended to every key the inner config reads. With * `fromUnknown` this means an extra object level; with `fromEnv` it means @@ -1231,17 +1401,18 @@ export declare const nested: { * @see {@link all} – combine multiple configs into a struct * @see {@link schema} – read structured config from a schema * - * @category Combinators - * @since 4.0.0 + * @category combinators + * @since 2.0.0 */ (name: string): (self: Config) => Config; /** * Scopes a config under a named prefix. * - * When to use: - * - Grouping related config keys under a common namespace (e.g. - * `"database"`, `"redis"`). - * - Building reusable config fragments that callers nest at different paths. + * **When to use** + * + * Use when you need to group related config keys under a common namespace. + * + * **Details** * * The prefix is prepended to every key the inner config reads. With * `fromUnknown` this means an extra object level; with `fromEnv` it means @@ -1283,10 +1454,9 @@ export declare const nested: { * @see {@link all} – combine multiple configs into a struct * @see {@link schema} – read structured config from a schema * - * @category Combinators - * @since 4.0.0 + * @category combinators + * @since 2.0.0 */ (self: Config, name: string): Config; }; -export {}; //# sourceMappingURL=Config.d.ts.map \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Config.d.ts.map b/.opencode/node_modules/effect/dist/Config.d.ts.map index c8d3d58ef4b267bb3579bf59e63921c418d819ff..c9724d6410b9b7066020f40610cae2180af7b2fe 100644 --- a/.opencode/node_modules/effect/dist/Config.d.ts.map +++ b/.opencode/node_modules/effect/dist/Config.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../src/Config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwEG;AACH,OAAO,KAAK,EAAQ,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAC5D,OAAO,KAAK,cAAc,MAAM,qBAAqB,CAAA;AACrD,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AAGrC,OAAO,KAAK,SAAS,MAAM,eAAe,CAAA;AAC1C,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAG7C,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,GAAG,MAAM,gBAAgB,CAAA;AAKrC,QAAA,MAAM,MAAM,mBAAmB,CAAA;AAE/B;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAA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\ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Config.js b/.opencode/node_modules/effect/dist/Config.js index b071297acf48f32716c8337bbd025d67d796d103..c1dfe73f6eb715e327a9ea6bb5b8568b292bd426 100644 --- a/.opencode/node_modules/effect/dist/Config.js +++ b/.opencode/node_modules/effect/dist/Config.js @@ -1,23 +1,25 @@ import * as ConfigProvider from "./ConfigProvider.js"; import * as Effect from "./Effect.js"; +import * as Effectable from "./Effectable.js"; import { dual } from "./Function.js"; -import { PipeInspectableProto, YieldableProto } from "./internal/core.js"; import * as LogLevel_ from "./LogLevel.js"; import * as Option from "./Option.js"; import * as Predicate from "./Predicate.js"; import * as Rec from "./Record.js"; import * as Schema from "./Schema.js"; -import * as AST from "./SchemaAST.js"; -import * as Issue from "./SchemaIssue.js"; -import * as Parser from "./SchemaParser.js"; -import * as Transformation from "./SchemaTransformation.js"; +import * as SchemaAST from "./SchemaAST.js"; +import * as SchemaGetter from "./SchemaGetter.js"; +import * as SchemaIssue from "./SchemaIssue.js"; +import * as SchemaParser from "./SchemaParser.js"; +import * as SchemaTransformation from "./SchemaTransformation.js"; const TypeId = "~effect/Config"; /** * Returns `true` if `u` is a `Config` instance. * - * When to use: - * - Runtime type-checking before calling `.parse()` on an unknown value. - * - Distinguishing a `Config` from a plain value inside {@link unwrap}. + * **When to use** + * + * Use when you need to distinguish a `Config` from an unknown value before + * calling `.parse` or {@link unwrap}. * * **Example** (Type guard) * @@ -28,28 +30,29 @@ const TypeId = "~effect/Config"; * console.log(Config.isConfig("not a config")) // false * ``` * - * @since 4.0.0 - * @category Guards + * @category guards + * @since 2.0.0 */ export const isConfig = u => Predicate.hasProperty(u, TypeId); /** - * The error type produced when config loading or validation fails. + * Represents the error type produced when config loading or validation fails. + * + * **When to use** + * + * Use when you need to inspect config loading or validation failures. + * + * **Details** * * Wraps either: * - A `SourceError` — the provider could not read data (I/O failure). * - A `SchemaError` — the data was found but did not match the schema * (wrong type, out of range, missing key, etc.). * - * When to use: - * - Match on `error.cause._tag` to distinguish source failures from - * validation failures. - * - Pass to {@link fail} to create a Config that always errors. - * * @see {@link orElse} – recover from a ConfigError * @see {@link withDefault} – provide a fallback for missing-data errors * + * @category errors * @since 4.0.0 - * @category Models */ export class ConfigError { _tag = "ConfigError"; @@ -66,12 +69,13 @@ export class ConfigError { } } const Proto = { - ...PipeInspectableProto, - ...YieldableProto, + ... /*#__PURE__*/Effectable.Prototype({ + label: "Config", + evaluate(fiber) { + return this.parse(fiber.getRef(ConfigProvider.ConfigProvider)); + } + }), [TypeId]: TypeId, - asEffect() { - return Effect.flatMap(ConfigProvider.ConfigProvider.asEffect(), provider => this.parse(provider)); - }, toJSON() { return { _id: "Config" @@ -81,10 +85,12 @@ const Proto = { /** * Creates a `Config` from a raw parsing function. * - * When to use: - * - Building a custom config that cannot be expressed with {@link schema} or - * the convenience constructors. - * - Composing configs programmatically. + * **When to use** + * + * Use to build a custom config that cannot be expressed with {@link schema} or + * convenience constructors, or compose configs programmatically. + * + * **Details** * * The `parse` callback receives a `ConfigProvider` and must return * `Effect`. @@ -108,7 +114,7 @@ const Proto = { * * @see {@link schema} – higher-level constructor using Schema codecs * - * @category Constructors + * @category constructors * @since 4.0.0 */ export function make(parse) { @@ -119,9 +125,12 @@ export function make(parse) { /** * Transforms the parsed value of a config with a pure function. * - * When to use: - * - Post-processing a config value (e.g. trimming, uppercasing, wrapping). - * - The transformation cannot fail. Use {@link mapOrFail} if it can. + * **When to use** + * + * Use when you need to transform a parsed config value with a function that + * cannot fail. + * + * **Details** * * Supports both data-last and data-first calling conventions. * @@ -140,8 +149,8 @@ export function make(parse) { * * @see {@link mapOrFail} – when the transformation can fail * - * @category Mapping - * @since 4.0.0 + * @category mapping + * @since 2.0.0 */ export const map = /*#__PURE__*/dual(2, (self, f) => { return make(provider => Effect.map(self.parse(provider), f)); @@ -149,9 +158,12 @@ export const map = /*#__PURE__*/dual(2, (self, f) => { /** * Transforms the parsed value with a function that may fail. * - * When to use: - * - Validating or converting a config value where the transformation can - * produce a `ConfigError` (e.g. parsing a URL, checking a range). + * **When to use** + * + * Use when you need to transform a parsed config value with a function that can + * produce a `ConfigError` (e.g. parsing a URL, checking a range). + * + * **Details** * * Supports both data-last and data-first calling conventions. * @@ -167,18 +179,21 @@ export const map = /*#__PURE__*/dual(2, (self, f) => { * * @see {@link map} – when the transformation cannot fail * - * @category Mapping - * @since 4.0.0 + * @category mapping + * @since 2.0.0 */ export const mapOrFail = /*#__PURE__*/dual(2, (self, f) => { return make(provider => Effect.flatMap(self.parse(provider), f)); }); /** - * Falls back to another config when parsing fails with a `ConfigError`. + * Provides a fallback config when parsing fails with a `ConfigError`. + * + * **When to use** + * + * Use when you need to try an alternative config source after the primary one + * fails. * - * When to use: - * - Trying an alternative config source when the primary one errors. - * - Providing environment-specific overrides. + * **Details** * * Unlike {@link withDefault}, this catches **all** `ConfigError`s (not just * missing data). The fallback function receives the error and returns a new @@ -198,7 +213,8 @@ export const mapOrFail = /*#__PURE__*/dual(2, (self, f) => { * * @see {@link withDefault} – fallback only on missing data * - * @since 4.0.0 + * @category combinators + * @since 2.0.0 */ export const orElse = /*#__PURE__*/dual(2, (self, that) => { return make(provider => Effect.catch(self.parse(provider), error => that(error).parse(provider))); @@ -206,8 +222,11 @@ export const orElse = /*#__PURE__*/dual(2, (self, that) => { /** * Combines multiple configs into a single config that parses all of them. * - * When to use: - * - Grouping related configs into a tuple or named struct. + * **When to use** + * + * Use when you need to group related configs into a tuple or named struct. + * + * **Details** * * Accepts a tuple (preserves positions), an iterable, or a record of configs. * Returns a config whose parsed value mirrors the input shape. @@ -227,7 +246,8 @@ export const orElse = /*#__PURE__*/dual(2, (self, that) => { * // { host: "localhost", port: 5432 } * ``` * - * @since 4.0.0 + * @category combinators + * @since 2.0.0 */ export function all(arg) { const configs = Array.isArray(arg) ? arg : Symbol.iterator in arg ? [...arg] : arg; @@ -249,28 +269,37 @@ function isMissingDataOnly(issue) { case "Encoding": return Option.isNone(issue.actual) || Option.isSome(issue.actual) && issue.actual.value === undefined ? true : isMissingDataOnly(issue.issue); case "Pointer": - case "Filter": return isMissingDataOnly(issue.issue); + case "Filter": case "UnexpectedKey": - return false; case "Forbidden": return false; case "Composite": + return issue.issues.every(isMissingDataOnly); case "AnyOf": + if (issue.issues.length === 0) { + return issue.actual === undefined; + } return issue.issues.every(isMissingDataOnly); } } /** * Provides a fallback value when the config fails due to missing data. * - * When to use: - * - Making a config key optional with a sensible default. + * **When to use** + * + * Use when you need to make a config key optional with a sensible default. + * + * **Details** + * + * The default is lazily evaluated. Supports both data-last and data-first + * calling conventions. + * + * **Gotchas** * * Only applies when the error is a `SchemaError` caused exclusively by * missing data (missing keys, undefined values). Validation errors (wrong - * type, out of range) still propagate. The default is lazily evaluated. - * - * Supports both data-last and data-first calling conventions. + * type, out of range) still propagate. * * **Example** (Defaulting a missing port) * @@ -286,7 +315,8 @@ function isMissingDataOnly(issue) { * @see {@link option} – returns `Option` instead of a default value * @see {@link orElse} – catches all errors, not just missing data * - * @since 4.0.0 + * @category combinators + * @since 2.0.0 */ export const withDefault = /*#__PURE__*/dual(2, (self, defaultValue) => { return orElse(self, err => { @@ -303,9 +333,11 @@ export const withDefault = /*#__PURE__*/dual(2, (self, defaultValue) => { * Makes a config optional: returns `Some(value)` on success and `None` when * data is missing. * - * When to use: - * - A config key may or may not be present and you want to handle both - * cases explicitly. + * **When to use** + * + * Use when you need to handle a config key that may or may not be present. + * + * **Gotchas** * * Like {@link withDefault}, only missing-data errors produce `None`. * Validation errors still propagate. @@ -323,16 +355,20 @@ export const withDefault = /*#__PURE__*/dual(2, (self, defaultValue) => { * * @see {@link withDefault} – provide a concrete fallback value instead * - * @since 4.0.0 + * @category combinators + * @since 2.0.0 */ export const option = self => self.pipe(map(Option.some), withDefault(Option.none())); /** * Constructs a `Config` from a value matching `Wrap`. * - * When to use: - * - Accepting config from callers who may pass either a single `Config` or a + * **When to use** + * + * Use when accepting config from callers who may pass either a single `Config` or a * record of individual `Config`s. * + * **Details** + * * If the input is already a `Config`, it is returned as-is. Otherwise, each * key is recursively unwrapped and combined. * @@ -352,7 +388,7 @@ export const option = self => self.pipe(map(Option.some), withDefault(Option.non * @see {@link Wrap} – the utility type accepted by this function * * @category Wrap - * @since 4.0.0 + * @since 2.0.0 */ export const unwrap = wrapped => { if (isConfig(wrapped)) return wrapped; @@ -408,7 +444,7 @@ const recur = /*#__PURE__*/Effect.fnUntraced(function* (ast, provider, path) { const stat = yield* provider.load(path); if (stat && stat._tag === "Record") { for (const is of ast.indexSignatures) { - const matches = Parser._is(is.parameter); + const matches = SchemaParser._is(is.parameter); for (const key of stat.keys) { if (!Object.hasOwn(out, key) && matches(key)) { const value = yield* recur(is.type, provider, [...path, key]); @@ -451,14 +487,18 @@ const recur = /*#__PURE__*/Effect.fnUntraced(function* (ast, provider, path) { /** * Creates a `Config` from a `Schema.Codec`. * - * When to use: - * - Reading structured or validated config (structs, arrays, unions, branded - * types, etc.). - * - All convenience constructors (`string`, `number`, …) delegate to this. + * **When to use** + * + * Use when you need to read structured or schema-validated configuration. + * + * **Details** * * The optional `path` sets the root path segment(s) for the config lookup. * Pass a single string for a flat key or an array for nested paths. * + * Convenience constructors such as `string`, `number`, and `boolean` delegate + * to this API. + * * The codec is used to decode the raw `StringTree` produced by the provider * into `T`. Schema validation errors are wrapped in `ConfigError`. * @@ -486,17 +526,17 @@ const recur = /*#__PURE__*/Effect.fnUntraced(function* (ast, provider, path) { * @see {@link string} / {@link number} / {@link boolean} – shortcuts for * single-value configs * - * @category Schema + * @category schemas * @since 4.0.0 */ export function schema(codec, path) { const codecStringTree = Schema.toCodecStringTree(codec); - const decodeUnknownEffect = Parser.decodeUnknownEffect(codecStringTree); - const codecStringTreeEncoded = AST.toEncoded(codecStringTree.ast); + const decodeUnknownEffect = SchemaParser.decodeUnknownEffect(codecStringTree); + const codecStringTreeEncoded = SchemaAST.toEncoded(codecStringTree.ast); const defaultPath = typeof path === "string" ? [path] : path ?? []; return make(provider => { const path = provider.prefix ? [...provider.prefix, ...defaultPath] : defaultPath; - return recur(codecStringTreeEncoded, provider, defaultPath).pipe(Effect.flatMapEager(tree => decodeUnknownEffect(tree).pipe(Effect.mapErrorEager(issue => new Schema.SchemaError(path.length > 0 ? new Issue.Pointer(path, issue) : issue)))), Effect.mapErrorEager(cause => new ConfigError(cause))); + return recur(codecStringTreeEncoded, provider, defaultPath).pipe(Effect.flatMapEager(tree => decodeUnknownEffect(tree).pipe(Effect.mapErrorEager(issue => new Schema.SchemaError(path.length > 0 ? new SchemaIssue.Pointer(path, issue) : issue)))), Effect.mapErrorEager(cause => new ConfigError(cause))); }); } /** @internal */ @@ -504,34 +544,38 @@ export const TrueValues = /*#__PURE__*/Schema.Literals(["true", "yes", "on", "1" /** @internal */ export const FalseValues = /*#__PURE__*/Schema.Literals(["false", "no", "off", "0", "n"]); /** - * A `Schema.Codec` for boolean values encoded as strings. + * Schema for boolean values encoded as strings. + * + * **When to use** * - * When to use: - * - Pass to {@link schema} for custom paths, or use the {@link boolean} - * convenience constructor. + * Use when you need the reusable boolean schema value for `Config.schema` with + * custom paths. + * + * **Details** * * Accepted string values: `true`, `false`, `yes`, `no`, `on`, `off`, `1`, * `0`, `y`, `n` (case-sensitive). * * @see {@link boolean} – convenience constructor * - * @category Schema + * @category schemas * @since 4.0.0 */ -export const Boolean = /*#__PURE__*/Schema.Literals([...TrueValues.literals, ...FalseValues.literals]).pipe(/*#__PURE__*/Schema.decodeTo(Schema.Boolean, /*#__PURE__*/Transformation.transform({ +export const Boolean = /*#__PURE__*/Schema.Literals([...TrueValues.literals, ...FalseValues.literals]).pipe(/*#__PURE__*/Schema.decodeTo(Schema.Boolean, /*#__PURE__*/SchemaTransformation.transform({ decode: value => value === "true" || value === "yes" || value === "on" || value === "1" || value === "y", encode: value => value ? "true" : "false" }))); /** - * A `Schema.Codec` for port numbers (integers in 1–65535). + * Schema for port numbers (integers in 1–65535). + * + * **When to use** * - * When to use: - * - Pass to {@link schema} for custom paths, or use the {@link port} - * convenience constructor. + * Use when you need the reusable port schema value for `Config.schema` with + * custom paths. * * @see {@link port} – convenience constructor * - * @category Schema + * @category schemas * @since 4.0.0 */ export const Port = /*#__PURE__*/Schema.Int.check(/*#__PURE__*/Schema.isBetween({ @@ -539,29 +583,35 @@ export const Port = /*#__PURE__*/Schema.Int.check(/*#__PURE__*/Schema.isBetween( maximum: 65535 })); /** - * A `Schema.Codec` for `LogLevel` string literals. + * Schema for `LogLevel` string literals. + * + * **When to use** + * + * Use when you need the reusable log-level schema value for `Config.schema` + * with custom paths. * - * When to use: - * - Pass to {@link schema} for custom paths, or use the {@link logLevel} - * convenience constructor. + * **Details** * * Accepted values: `"All"`, `"Fatal"`, `"Error"`, `"Warn"`, `"Info"`, * `"Debug"`, `"Trace"`, `"None"`. * * @see {@link logLevel} – convenience constructor * - * @category Schema + * @category schemas * @since 4.0.0 */ export const LogLevel = /*#__PURE__*/Schema.Literals(LogLevel_.values); /** - * A `Schema.Codec` for key-value record types that can also be parsed from + * Schema for key-value record types that can also be parsed from * a flat comma-separated string. * - * When to use: - * - Reading key-value maps from a single env var (e.g. OpenTelemetry + * **When to use** + * + * Use when reading key-value maps from a single env var (e.g. OpenTelemetry * resource attributes). * + * **Details** + * * Accepts either a JSON-like record from the provider or a flat string like * `"key1=val1,key2=val2"`. The `separator` (default `","`) and * `keyValueSeparator` (default `"="`) can be customized. @@ -589,26 +639,58 @@ export const LogLevel = /*#__PURE__*/Schema.Literals(LogLevel_.values); * // } * ``` * - * @category Schemas + * @category schemas * @since 4.0.0 */ export const Record = (key, value, options) => { const record = Schema.Record(key, value); - const recordString = Schema.String.pipe(Schema.decodeTo(Schema.Record(Schema.String, Schema.String), Transformation.splitKeyValue(options)), Schema.decodeTo(record)); + const recordString = Schema.String.pipe(Schema.decodeTo(Schema.Record(Schema.String, Schema.String), SchemaTransformation.splitKeyValue(options)), Schema.decodeTo(record)); return Schema.Union([record, recordString]); }; +/** + * @category schemas + * @since 4.0.0 + */ +const ArrayConfig = (value, options) => { + const array = Schema.Array(value); + const separator = options?.separator ?? ","; + const arrayString = Schema.String.pipe(Schema.decodeTo(Schema.Array(Schema.String), { + decode: SchemaGetter.split(options), + encode: SchemaGetter.transform(input => input.join(separator)) + }), Schema.decodeTo(array)); + return Schema.Union([arrayString, array]); +}; +export { +/** + * Schema for array types that can also be parsed from a flat separated string. + * + * **When to use** + * + * Use when reading array values from a single env var, such as comma-separated + * exporter names. + * + * **Details** + * + * Accepts either a JSON-like array from the provider or a flat string like + * `"a,b,c"`. The `separator` defaults to `","` and can be customized. + * + * @category schemas + * @since 4.0.0 + */ +ArrayConfig as Array }; // ----------------------------------------------------------------------------- // constructors // ----------------------------------------------------------------------------- /** * Creates a config that always fails with the given error. * - * When to use: - * - Inside {@link orElse} to re-raise a specific error. - * - Testing error handling paths. + * **When to use** * - * @category Constructors - * @since 4.0.0 + * Use when you need to re-raise a specific config error, such as inside + * {@link orElse}. + * + * @category constructors + * @since 2.0.0 */ export function fail(err) { return make(() => Effect.fail(new ConfigError(err))); @@ -617,9 +699,10 @@ export function fail(err) { * Creates a config that always succeeds with the given value, ignoring the * provider entirely. * - * When to use: - * - Providing a hardcoded constant inside {@link orElse}. - * - Testing. + * **When to use** + * + * Use when you need a hardcoded config value, such as inside {@link orElse} or + * tests. * * **Example** (Constant fallback) * @@ -631,8 +714,8 @@ export function fail(err) { * ) * ``` * - * @category Constructors - * @since 4.0.0 + * @category constructors + * @since 2.0.0 */ export function succeed(value) { return make(() => Effect.succeed(value)); @@ -640,10 +723,13 @@ export function succeed(value) { /** * Creates a config for a single string value. * - * Shortcut for `Config.schema(Schema.String, name)`. + * **When to use** + * + * Use when reading a single string env var or config key. * - * When to use: - * - Reading a single string env var or config key. + * **Details** + * + * Shortcut for `Config.schema(Schema.String, name)`. * * **Example** (Reading a string config) * @@ -659,8 +745,8 @@ export function succeed(value) { * @see {@link nonEmptyString} – rejects empty strings * @see {@link schema} – for more complex types * - * @category Constructors - * @since 4.0.0 + * @category constructors + * @since 2.0.0 */ export function string(name) { return schema(Schema.String, name); @@ -669,12 +755,18 @@ export function string(name) { * Creates a config for a non-empty string value. Fails if the value is an * empty string. * + * **When to use** + * + * Use to read a string config value that must contain at least one character. + * + * **Details** + * * Shortcut for `Config.schema(Schema.NonEmptyString, name)`. * - * @see {@link string} – allows empty strings + * @see {@link string} for allowing empty strings * - * @category Constructors - * @since 4.0.0 + * @category constructors + * @since 3.7.0 */ export function nonEmptyString(name) { return schema(Schema.NonEmptyString, name); @@ -682,13 +774,20 @@ export function nonEmptyString(name) { /** * Creates a config for a numeric value (including `NaN`, `Infinity`). * + * **When to use** + * + * Use when you need config input to accept JavaScript's full number domain, + * including NaN and infinities, rather than reject non-finite values. + * + * **Details** + * * Shortcut for `Config.schema(Schema.Number, name)`. * - * @see {@link finite} – rejects `NaN` and `Infinity` - * @see {@link int} – only integers + * @see {@link finite} for rejecting `NaN` and `Infinity` + * @see {@link int} for accepting only integers * - * @category Constructors - * @since 4.0.0 + * @category constructors + * @since 2.0.0 */ export function number(name) { return schema(Schema.Number, name); @@ -696,12 +795,18 @@ export function number(name) { /** * Creates a config for a finite number (rejects `NaN` and `Infinity`). * + * **When to use** + * + * Use to read a numeric config value that must be finite. + * + * **Details** + * * Shortcut for `Config.schema(Schema.Finite, name)`. * - * @see {@link number} – allows `NaN` and `Infinity` - * @see {@link int} – only integers + * @see {@link number} for accepting `NaN` and `Infinity` + * @see {@link int} for accepting only integers * - * @category Constructors + * @category constructors * @since 4.0.0 */ export function finite(name) { @@ -710,12 +815,18 @@ export function finite(name) { /** * Creates a config for an integer value. Rejects floats. * + * **When to use** + * + * Use to read a numeric config value that must be an integer. + * + * **Details** + * * Shortcut for `Config.schema(Schema.Int, name)`. * - * @see {@link number} – allows any number - * @see {@link port} – integers in 1–65535 + * @see {@link number} for accepting any number + * @see {@link port} for accepting only integers in `1` through `65535` * - * @category Constructors + * @category constructors * @since 4.0.0 */ export function int(name) { @@ -724,6 +835,12 @@ export function int(name) { /** * Creates a config that only accepts a specific literal value. * + * **When to use** + * + * Use to restrict a config to a single, specific literal value. + * + * **Details** + * * Shortcut for `Config.schema(Schema.Literal(literal), name)`. * * **Example** (Restricting to a literal) @@ -734,8 +851,9 @@ export function int(name) { * const env = Config.literal("production", "ENV") * ``` * - * @category Constructors - * @since 4.0.0 + * @see {@link literals} – accepts multiple literal values + * @category constructors + * @since 2.0.0 */ export function literal(literal, name) { return schema(Schema.Literal(literal), name); @@ -743,6 +861,12 @@ export function literal(literal, name) { /** * Creates a config that only accepts one of the specified literal values. * + * **When to use** + * + * Use to restrict a config to a fixed set of allowed literal values. + * + * **Details** + * * Shortcut for `Config.schema(Schema.Literals(literals), name)`. * * **Example** (Restricting to a set of literals) @@ -753,7 +877,9 @@ export function literal(literal, name) { * const env = Config.literals(["development", "production"], "ENV") * ``` * - * @category Constructors + * @see {@link literal} for accepting one specific literal value + * + * @category constructors * @since 4.0.0 */ export function literals(literals, name) { @@ -763,6 +889,12 @@ export function literals(literals, name) { * Creates a config for a boolean value parsed from common string * representations. * + * **When to use** + * + * Use to read boolean flags from string-like config sources. + * + * **Details** + * * Shortcut for `Config.schema(Config.Boolean, name)`. * * Accepted values: `true`, `false`, `yes`, `no`, `on`, `off`, `1`, `0`, @@ -790,8 +922,10 @@ export function literals(literals, name) { * // Output: true * ``` * - * @category Constructors - * @since 4.0.0 + * @see {@link Boolean} for the underlying boolean codec + * + * @category constructors + * @since 2.0.0 */ export function boolean(name) { return schema(Boolean, name); @@ -800,6 +934,12 @@ export function boolean(name) { * Creates a config for a `Duration` value parsed from a human-readable * string. * + * **When to use** + * + * Use to read time duration settings such as timeouts, intervals, or TTLs. + * + * **Details** + * * Shortcut for `Config.schema(Schema.DurationFromString, name)`. * * Accepts any string that `Duration.fromInput` can parse (e.g. @@ -827,8 +967,10 @@ export function boolean(name) { * // Output: Duration { _tag: "millis", value: 10000 } * ``` * - * @category Constructors - * @since 4.0.0 + * @see {@link schema} for decoding configuration values with a custom codec + * + * @category constructors + * @since 2.5.0 */ export function duration(name) { return schema(Schema.DurationFromString, name); @@ -836,6 +978,12 @@ export function duration(name) { /** * Creates a config for a port number (integer in 1–65535). * + * **When to use** + * + * Use to read network port settings that must be valid port numbers. + * + * **Details** + * * Shortcut for `Config.schema(Config.Port, name)`. * * **Example** (Reading a port) @@ -860,8 +1008,11 @@ export function duration(name) { * // Output: 8080 * ``` * - * @category Constructors - * @since 4.0.0 + * @see {@link int} for integer config values outside the port range + * @see {@link Port} for the underlying port codec + * + * @category constructors + * @since 3.16.0 */ export function port(name) { return schema(Port, name); @@ -869,6 +1020,12 @@ export function port(name) { /** * Creates a config for a log level string. * + * **When to use** + * + * Use to read Effect log-level settings from configuration. + * + * **Details** + * * Shortcut for `Config.schema(Config.LogLevel, name)`. * * Accepted values: `"All"`, `"Fatal"`, `"Error"`, `"Warn"`, `"Info"`, @@ -896,8 +1053,10 @@ export function port(name) { * // Output: "Info" * ``` * - * @category Constructors - * @since 4.0.0 + * @see {@link LogLevel} for the underlying log-level codec + * + * @category constructors + * @since 2.0.0 */ export function logLevel(name) { return schema(LogLevel, name); @@ -906,6 +1065,13 @@ export function logLevel(name) { * Creates a config for a redacted string value. The parsed result is wrapped * in a `Redacted` container that hides the value from logs and `toString`. * + * **When to use** + * + * Use to read secret string settings that should not be exposed in logs or + * string output. + * + * **Details** + * * Shortcut for `Config.schema(Schema.Redacted(Schema.String), name)`. * * **Example** (Reading a secret) @@ -930,8 +1096,10 @@ export function logLevel(name) { * // Output: * ``` * - * @category Constructors - * @since 4.0.0 + * @see {@link string} for non-secret string settings + * + * @category constructors + * @since 2.0.0 */ export function redacted(name) { return schema(Schema.Redacted(Schema.String), name); @@ -939,6 +1107,16 @@ export function redacted(name) { /** * Creates a config for a `URL` value parsed from a string. * + * **When to use** + * + * Use to read configuration values that must be valid URL strings. + * + * **Details** + * + * This is a shortcut for `Config.schema(Schema.URL, name)`. + * + * **Gotchas** + * * Fails if the string cannot be parsed by the `URL` constructor. * * **Example** (Reading a URL) @@ -977,8 +1155,10 @@ export function redacted(name) { * // } * ``` * - * @category Constructors - * @since 4.0.0 + * @see {@link schema} for decoding configuration values with a custom codec + * + * @category constructors + * @since 3.11.0 */ export function url(name) { return schema(Schema.URL, name); @@ -986,10 +1166,18 @@ export function url(name) { /** * Creates a config for a `Date` value parsed from a string. * - * Fails with a `SchemaError` if the string produces an invalid `Date`. + * **When to use** + * + * Use to read date settings that must parse to valid `Date` values. + * + * **Details** * * Shortcut for `Config.schema(Schema.DateValid, name)`. * + * **Gotchas** + * + * Fails with a `SchemaError` if the string produces an invalid `Date`. + * * **Example** (Reading a date) * * ```ts @@ -1002,8 +1190,8 @@ export function url(name) { * // Date("2024-01-15T00:00:00.000Z") * ``` * - * @category Constructors - * @since 4.0.0 + * @category constructors + * @since 2.0.0 */ export function date(name) { return schema(Schema.DateValid, name); @@ -1011,10 +1199,11 @@ export function date(name) { /** * Scopes a config under a named prefix. * - * When to use: - * - Grouping related config keys under a common namespace (e.g. - * `"database"`, `"redis"`). - * - Building reusable config fragments that callers nest at different paths. + * **When to use** + * + * Use when you need to group related config keys under a common namespace. + * + * **Details** * * The prefix is prepended to every key the inner config reads. With * `fromUnknown` this means an extra object level; with `fromEnv` it means @@ -1056,8 +1245,8 @@ export function date(name) { * @see {@link all} – combine multiple configs into a struct * @see {@link schema} – read structured config from a schema * - * @category Combinators - * @since 4.0.0 + * @category combinators + * @since 2.0.0 */ export const nested = /*#__PURE__*/dual(2, (self, name) => make(provider => self.parse(ConfigProvider.nested(provider, name)))); //# sourceMappingURL=Config.js.map \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Config.js.map b/.opencode/node_modules/effect/dist/Config.js.map index 42e491dc5e68fbf060f72bc91028b4e219f4025a..fd4fc3eb1610294f53b419292dc3b83f602420c1 100644 --- a/.opencode/node_modules/effect/dist/Config.js.map +++ b/.opencode/node_modules/effect/dist/Config.js.map @@ -1 +1 @@ -{"version":3,"file":"Config.js","names":["ConfigProvider","Effect","dual","PipeInspectableProto","YieldableProto","LogLevel_","Option","Predicate","Rec","Schema","AST","Issue","Parser","Transformation","TypeId","isConfig","u","hasProperty","ConfigError","_tag","name","cause","constructor","message","toString","Proto","asEffect","flatMap","provider","parse","toJSON","_id","make","self","Object","create","map","f","mapOrFail","orElse","that","catch","error","all","arg","configs","Array","isArray","Symbol","iterator","config","isMissingDataOnly","issue","isNone","actual","isSome","value","undefined","issues","every","withDefault","defaultValue","err","isSchemaError","succeed","fail","option","pipe","some","none","unwrap","wrapped","entries","key","fromEntries","dump","fnUntraced","path","stat","load","out","keys","child","i","length","push","recur","ast","ps","propertySignatures","type","indexSignatures","is","matches","_is","parameter","hasOwn","elements","thunk","schema","codec","codecStringTree","toCodecStringTree","decodeUnknownEffect","codecStringTreeEncoded","toEncoded","defaultPath","prefix","flatMapEager","tree","mapErrorEager","SchemaError","Pointer","TrueValues","Literals","FalseValues","Boolean","literals","decodeTo","transform","decode","encode","Port","Int","check","isBetween","minimum","maximum","LogLevel","values","Record","options","record","recordString","String","splitKeyValue","Union","string","nonEmptyString","NonEmptyString","number","Number","finite","Finite","int","literal","Literal","boolean","duration","DurationFromString","port","logLevel","redacted","Redacted","url","URL","date","DateValid","nested"],"sources":["../src/Config.ts"],"sourcesContent":[null],"mappings":"AA0EA,OAAO,KAAKA,cAAc,MAAM,qBAAqB;AACrD,OAAO,KAAKC,MAAM,MAAM,aAAa;AACrC,SAASC,IAAI,QAAQ,eAAe;AACpC,SAASC,oBAAoB,EAAEC,cAAc,QAAQ,oBAAoB;AACzE,OAAO,KAAKC,SAAS,MAAM,eAAe;AAC1C,OAAO,KAAKC,MAAM,MAAM,aAAa;AAErC,OAAO,KAAKC,SAAS,MAAM,gBAAgB;AAC3C,OAAO,KAAKC,GAAG,MAAM,aAAa;AAClC,OAAO,KAAKC,MAAM,MAAM,aAAa;AACrC,OAAO,KAAKC,GAAG,MAAM,gBAAgB;AACrC,OAAO,KAAKC,KAAK,MAAM,kBAAkB;AACzC,OAAO,KAAKC,MAA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,OAAM,SAAUoI,QAAQA,CAACpI,IAAa;EACpC,OAAO+E,MAAM,CAAC1F,MAAM,CAACgJ,QAAQ,CAAChJ,MAAM,CAAC6H,MAAM,CAAC,EAAElH,IAAI,CAAC;AACrD;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4CA,OAAM,SAAUsI,GAAGA,CAACtI,IAAa;EAC/B,OAAO+E,MAAM,CAAC1F,MAAM,CAACkJ,GAAG,EAAEvI,IAAI,CAAC;AACjC;AAEA;;;;;;;;;;;;;;;;;;;;;;AAsBA,OAAM,SAAUwI,IAAIA,CAACxI,IAAa;EAChC,OAAO+E,MAAM,CAAC1F,MAAM,CAACoJ,SAAS,EAAEzI,IAAI,CAAC;AACvC;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmDA,OAAO,MAAM0I,MAAM,gBAyGf5J,IAAI,CACN,CAAC,EACD,CAAI+B,IAAe,EAAEb,IAAY,KAAgBY,IAAI,CAAEJ,QAAQ,IAAKK,IAAI,CAACJ,KAAK,CAAC7B,cAAc,CAAC8J,MAAM,CAAClI,QAAQ,EAAER,IAAI,CAAC,CAAC,CAAC,CACvH","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"Config.js","names":["ConfigProvider","Effect","Effectable","dual","LogLevel_","Option","Predicate","Rec","Schema","SchemaAST","SchemaGetter","SchemaIssue","SchemaParser","SchemaTransformation","TypeId","isConfig","u","hasProperty","ConfigError","_tag","name","cause","constructor","message","toString","Proto","Prototype","label","evaluate","fiber","parse","getRef","toJSON","_id","make","self","Object","create","map","f","provider","mapOrFail","flatMap","orElse","that","catch","error","all","arg","configs","Array","isArray","Symbol","iterator","config","isMissingDataOnly","issue","isNone","actual","isSome","value","undefined","issues","every","length","withDefault","defaultValue","err","isSchemaError","succeed","fail","option","pipe","some","none","unwrap","wrapped","entries","key","fromEntries","dump","fnUntraced","path","stat","load","out","keys","child","i","push","recur","ast","ps","propertySignatures","type","indexSignatures","is","matches","_is","parameter","hasOwn","elements","thunk","schema","codec","codecStringTree","toCodecStringTree","decodeUnknownEffect","codecStringTreeEncoded","toEncoded","defaultPath","prefix","flatMapEager","tree","mapErrorEager","SchemaError","Pointer","TrueValues","Literals","FalseValues","Boolean","literals","decodeTo","transform","decode","encode","Port","Int","check","isBetween","minimum","maximum","LogLevel","values","Record","options","record","recordString","String","splitKeyValue","Union","ArrayConfig","array","separator","arrayString","split","input","join","string","nonEmptyString","NonEmptyString","number","Number","finite","Finite","int","literal","Literal","boolean","duration","DurationFromString","port","logLevel","redacted","Redacted","url","URL","date","DateValid","nested"],"sources":["../src/Config.ts"],"sourcesContent":[null],"mappings":"AAUA,OAAO,KAAKA,cAAc,MAAM,qBAAqB;AACrD,OAAO,KAAKC,MAAM,MAAM,aAAa;AACrC,OAAO,KAAKC,UAAU,MAAM,iBAAiB;AAC7C,SAASC,IAAI,QAAQ,eAAe;AACpC,OAAO,KAAKC,SAAS,MAAM,eAAe;AAC1C,OAAO,KAAKC,MAAM,MAAM,aAAa;AACrC,OAAO,KAAKC,SAAS,MAAM,gBAAgB;AAC3C,OAAO,KAAKC,GAAG,MAAM,aAAa;AAClC,OAAO,KAAKC,MAAM,MAAM,aAAa;AACrC,OAAO,KAAKC,SAAS,MAAM,gBAAgB;AAC3C,OAAO,KAAKC,YAAY,MAAM,mBAAmB;AACjD,OAAO,KAAKC,WAAW,MAAM,kBAAkB;AAC/C,OAAO,KAAKC,YAAY,MAAM,mBAAmB;AACjD,OAAO,KAAKC,oBAAoB,MAAM,2BAA2B;AAEjE,MAAMC,MAAM,GAAG,gBAAgB;AAE/B;;;;;;;;;;;;;;;;;;;;AAoBA,OAAO,MAAMC,QAAQ,GAAIC,CAAU,IAA2BV,SAAS,CAACW,WAAW,CAACD,CAAC,EAAEF,MAAM,CAAC;AAE9F;;;;;;;;;;;;;;;;;;;;AAoBA,OAAM,MAAOI,WAAW;EACbC,IAAI,GAAG,aAAa;EAC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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoDA,OAAO,MAAMqJ,MAAM,gBA2GftK,IAAI,CACN,CAAC,EACD,CAAIgC,IAAe,EAAEf,IAAY,KAAgBc,IAAI,CAAEM,QAAQ,IAAKL,IAAI,CAACL,KAAK,CAAC9B,cAAc,CAACyK,MAAM,CAACjI,QAAQ,EAAEpB,IAAI,CAAC,CAAC,CAAC,CACvH","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/ConfigProvider.d.ts b/.opencode/node_modules/effect/dist/ConfigProvider.d.ts index fe9e2c1acf40cb8a7ba11989a359a165719edfe8..a55fabf32fd666ec0d73bf33c3d9c9f14f512cfb 100644 --- a/.opencode/node_modules/effect/dist/ConfigProvider.d.ts +++ b/.opencode/node_modules/effect/dist/ConfigProvider.d.ts @@ -1,79 +1,10 @@ /** - * Provides the data source layer for the `Config` module. A `ConfigProvider` - * knows how to load raw configuration nodes from a backing store (environment - * variables, JSON objects, `.env` files, file trees) and expose them through a - * uniform `Node` interface that `Config` schemas consume. - * - * ## Mental model - * - * - **Node** – a discriminated union (`Value | Record | Array`) that describes - * what lives at a given path in the configuration tree. - * - **Path** – an array of string or numeric segments used to address a node - * (e.g. `["database", "host"]`). - * - **ConfigProvider** – an object with a `load(path)` method that resolves a - * path to a `Node | undefined`. Providers can be composed and transformed. - * - **Context.Reference** – `ConfigProvider` is registered as a reference - * service that defaults to `fromEnv()`, so it works without explicit - * provision. - * - **SourceError** – the typed error returned when a backing store is - * unreadable (I/O failure, permission error, etc.). - * - * ## Common tasks - * - * - Read from environment variables → {@link fromEnv} - * - Read from a JSON / plain object → {@link fromUnknown} - * - Parse a `.env` string → {@link fromDotEnvContents} - * - Load a `.env` file → {@link fromDotEnv} - * - Read from a directory tree → {@link fromDir} - * - Build a custom provider → {@link make} - * - Fall back to another provider → {@link orElse} - * - Scope a provider under a prefix → {@link nested} - * - Convert path segments to `CONSTANT_CASE` → {@link constantCase} - * - Transform path segments arbitrarily → {@link mapInput} - * - Install a provider as a Layer → {@link layer} / {@link layerAdd} - * - * ## Gotchas - * - * - `fromEnv` joins path segments with `_` for lookup **and** splits env var - * names on `_` to discover child keys. `DATABASE_HOST=x` is therefore - * accessible at both `["DATABASE_HOST"]` and `["DATABASE", "HOST"]`. - * - Because of `_` splitting, querying a parent path like `["DATABASE"]` - * returns a `Record` node with child key `"HOST"`, even if no env var - * named `DATABASE` exists. - * - When using `fromEnv` with schemas that use camelCase keys, pipe the - * provider through {@link constantCase} so `databaseHost` resolves to - * `DATABASE_HOST`. - * - `orElse` only falls back when the primary provider returns `undefined` - * (path not found). It does **not** catch `SourceError`. - * - `nested` prepends segments to the path *after* `mapInput` has run, so - * the order of composition matters. - * - * ## Quickstart - * - * **Example** (Reading config from environment variables) - * - * ```ts - * import { Config, ConfigProvider, Effect } from "effect" - * - * const provider = ConfigProvider.fromEnv({ - * env: { APP_PORT: "3000", APP_HOST: "localhost" } - * }) - * - * const port = Config.number("port") - * - * const program = port.parse( - * provider.pipe( - * ConfigProvider.nested("app"), - * ConfigProvider.constantCase - * ) - * ) - * - * // Effect.runSync(program) // 3000 - * ``` - * - * @see {@link make} – build a provider from a lookup function - * @see {@link fromEnv} – the default provider backed by `process.env` - * @see {@link fromUnknown} – provider backed by a plain JS object + * Data sources used by `Config` to load raw configuration values. A + * `ConfigProvider` reads paths from places such as environment variables, + * JavaScript objects, `.env` contents, or directories, and returns a uniform + * `Node` shape that config schemas can decode. The module also includes helpers + * for composing providers, changing paths, and installing providers through + * layers. * * @since 4.0.0 */ @@ -89,22 +20,24 @@ import type { Scope } from "./Scope.ts"; * A discriminated union describing the shape of a configuration value at a * given path. * - * - `Value` – a terminal string leaf. - * - `Record` – an object-like container whose immediate child keys are known. - * May carry an optional co-located `value`. - * - `Array` – an indexed container with a known `length`. May carry an - * optional co-located `value`. + * **When to use** + * + * Use when implementing a custom `ConfigProvider` by returning raw + * nodes from the `get` callback passed to {@link make}, or when inspecting raw + * provider output before schema parsing. + * + * **Details** * - * When to use: - * - Implement a custom `ConfigProvider` by returning `Node` values from the - * `get` callback passed to {@link make}. - * - Inspect raw provider output before schema parsing. + * `Value` is a terminal string leaf. `Record` is an object-like container + * whose immediate child keys are known and may carry an optional co-located + * `value`. `Array` is an indexed container with a known `length` and may also + * carry an optional co-located `value`. * * @see {@link makeValue} – construct a `Value` node * @see {@link makeRecord} – construct a `Record` node * @see {@link makeArray} – construct an `Array` node * - * @category Models + * @category models * @since 4.0.0 */ export type Node = @@ -128,10 +61,14 @@ export type Node = /** * Creates a `Value` node representing a terminal string leaf. * - * When to use: - * - Building nodes inside a custom `ConfigProvider`'s `get` callback. + * **When to use** * - * Does not mutate input. Returns a new plain object. + * Use when building nodes inside a custom `ConfigProvider`'s `get` + * callback. + * + * **Details** + * + * The function returns a new plain object. * * **Example** (Creating a value node) * @@ -145,7 +82,7 @@ export type Node = * @see {@link makeRecord} – for object-like containers * @see {@link makeArray} – for array-like containers * - * @category Constructors + * @category constructors * @since 4.0.0 */ export declare function makeValue(value: string): Node; @@ -153,11 +90,16 @@ export declare function makeValue(value: string): Node; * Creates a `Record` node representing an object-like container with known * child keys. * - * When to use: - * - Describing a directory or JSON object inside a custom provider. + * **When to use** + * + * Use when you need to describe a directory or JSON object inside a custom + * provider. + * + * **Details** * * The optional `value` allows a node to be both a container and a leaf at the - * same time (e.g. an env var `A=x` that also has children `A_FOO`, `A_BAR`). + * same time (for example, an env var `A=x` that also has children `A_FOO` and + * `A_BAR`). * * **Example** (Creating a record node) * @@ -171,7 +113,7 @@ export declare function makeValue(value: string): Node; * @see {@link makeValue} – for terminal leaves * @see {@link makeArray} – for array-like containers * - * @category Constructors + * @category constructors * @since 4.0.0 */ export declare function makeRecord(keys: ReadonlySet, value?: string): Node; @@ -179,9 +121,12 @@ export declare function makeRecord(keys: ReadonlySet, value?: string): N * Creates an `Array` node representing an indexed container with a known * length. * - * When to use: - * - Describing a JSON array or a set of numerically-indexed env vars inside a - * custom provider. + * **When to use** + * + * Use when you need to describe a JSON array or numerically indexed env vars + * inside a custom provider. + * + * **Details** * * The optional `value` allows a node to be both a container and a leaf at the * same time. @@ -198,7 +143,7 @@ export declare function makeRecord(keys: ReadonlySet, value?: string): N * @see {@link makeValue} – for terminal leaves * @see {@link makeRecord} – for object-like containers * - * @category Constructors + * @category constructors * @since 4.0.0 */ export declare function makeArray(length: number, value?: string): Node; @@ -208,13 +153,15 @@ declare const SourceError_base: new = {}>(args: i /** * Typed error indicating that a configuration source could not be read. * - * When to use: - * - Return from a custom provider's `get` callback when the underlying store - * is unreachable or produces an I/O error. - * - Match on in error channels when consuming provider output directly. + * **When to use** * - * Not used for "key not found" — that case is represented by returning - * `undefined` from `load` / `get`. + * Use when you need to report that a custom provider's underlying store is + * unreachable or produced an I/O error while reading configuration data. + * + * **Gotchas** + * + * Do not use `SourceError` for "key not found". That case is represented by + * returning `undefined` from `load` or `get`. * * **Example** (Failing with a SourceError) * @@ -231,7 +178,7 @@ declare const SourceError_base: new = {}>(args: i * @see {@link ConfigProvider} – the interface whose `load`/`get` may fail * with this error * - * @category Models + * @category models * @since 4.0.0 */ export declare class SourceError extends SourceError_base<{ @@ -241,9 +188,13 @@ export declare class SourceError extends SourceError_base<{ } /** * An ordered sequence of string or numeric segments that addresses a node in - * the configuration tree. + * the configuration tree. String segments name object keys; numeric segments + * index into arrays. + * + * **When to use** * - * String segments name object keys; numeric segments index into arrays. + * Use to address raw configuration nodes when implementing or transforming a + * `ConfigProvider`. * * **Example** (A typical config path) * @@ -253,66 +204,81 @@ export declare class SourceError extends SourceError_base<{ * const path: ConfigProvider.Path = ["database", "replicas", 0, "host"] * ``` * - * @category Models + * @category models * @since 4.0.0 */ export type Path = ReadonlyArray; /** * The core interface for loading raw configuration data. * - * When to use: - * - Type-annotate variables that hold a provider. - * - Implement a custom provider via {@link make}. + * **When to use** * - * Key members: - * - `load(path)` – resolves `mapInput` and `prefix` transformations, then - * delegates to `get`. This is what the `Config` module calls. - * - `get(path)` – raw access to the underlying store, without path - * transformations. - * - `mapInput` / `prefix` – optional path transformations set by - * {@link mapInput} and {@link nested}. + * Use to type-annotate variables that hold a provider or to implement a + * custom provider via {@link make}. * - * All methods return `Effect`: - * - `undefined` means "not found" (not an error). - * - `SourceError` means the source itself failed. + * **Details** + * + * `load(path)` resolves `mapInput` and `prefix` transformations, then + * delegates to `get`. This is what the `Config` module calls. `get(path)` is + * raw access to the underlying store without path transformations. + * `mapInput` and `prefix` are optional path transformations set by + * {@link mapInput} and {@link nested}. All methods return + * `Effect`: `undefined` means "not found" and + * `SourceError` means the source itself failed. * * @see {@link make} – construct a provider from a lookup function * @see {@link orElse} – compose providers with fallback * - * @category Models - * @since 4.0.0 + * @category models + * @since 2.0.0 */ export interface ConfigProvider extends Pipeable { /** * Returns the node found at `path`, or `undefined` if it does not exist. * Fails with `SourceError` when the underlying source cannot be read. + * + * **When to use** + * + * Use to resolve a path through this provider's path transformations before + * reading the backing source. */ readonly load: (path: Path) => Effect.Effect; /** * Raw access to the underlying source. + * + * **When to use** + * + * Use to read from the backing source without applying this provider's path + * transformations. */ readonly get: (path: Path) => Effect.Effect; /** * Function to map the input path. + * + * **When to use** + * + * Use to store the path transformation applied before raw provider lookup. */ readonly mapInput: ((path: Path) => Path) | undefined; /** * Prefix to add to the input path. + * + * **When to use** + * + * Use to store the path prefix applied before raw provider lookup. */ readonly prefix: Path | undefined; } /** - * The `ConfigProvider` service reference, registered in the context with a - * default value of `fromEnv()`. + * Context reference for the active raw configuration provider, registered in the context with a + * default value of `fromEnv()`. Because it is a `Context.Reference`, it is + * available without explicit provision; `Config` schemas automatically resolve + * it. * - * Because it is a `Context.Reference`, it is available without explicit - * provision — `Config` schemas automatically resolve it. + * **When to use** * - * When to use: - * - Override the provider for an entire program via - * `Effect.provideService(ConfigProvider.ConfigProvider, myProvider)`. - * - Retrieve the current provider inside an Effect with - * `yield* ConfigProvider.ConfigProvider`. + * Use to override the active raw configuration provider for an entire program, + * or retrieve the current provider inside an Effect. * * **Example** (Providing a custom provider) * @@ -332,16 +298,19 @@ export interface ConfigProvider extends Pipeable { * @see {@link layer} – install a provider as a Layer * @see {@link layerAdd} – add a fallback provider as a Layer * - * @category Services - * @since 4.0.0 + * @category services + * @since 2.0.0 */ export declare const ConfigProvider: Context.Reference; /** * Creates a `ConfigProvider` from a raw lookup function. * - * When to use: - * - Implementing a provider backed by a custom store (database, remote API, - * in-memory map, etc.). + * **When to use** + * + * Use when implementing a provider backed by a custom store, such as a + * database, remote API, or in-memory map. + * + * **Details** * * The `get` callback receives a `Path` and must return * `Effect`. Return `undefined` when the path @@ -373,23 +342,28 @@ export declare const ConfigProvider: Context.Reference; * @see {@link fromEnv} – pre-built provider for environment variables * @see {@link fromUnknown} – pre-built provider for JSON objects * - * @category Constructors - * @since 4.0.0 + * @category constructors + * @since 2.0.0 */ export declare function make(get: (path: Path) => Effect.Effect, mapInput?: (path: Path) => Path, prefix?: Path): ConfigProvider; /** * Returns a provider that falls back to `that` when `self` returns `undefined` * for a path. * - * When to use: - * - Layering multiple config sources (e.g. env vars + defaults file). - * - Providing partial overrides on top of a base config. + * **When to use** + * + * Use to layer multiple config sources, such as env vars plus a defaults file, + * or provide partial overrides on top of a base config. * - * Only triggers the fallback when the path is not found (`undefined`). A - * `SourceError` from `self` is **not** caught — it propagates immediately. + * **Details** * * Supports both data-last and data-first calling conventions. * + * **Gotchas** + * + * The fallback only runs when the path is not found (`undefined`). A + * `SourceError` from `self` is not caught; it propagates immediately. + * * **Example** (Falling back to a default provider) * * ```ts @@ -405,23 +379,28 @@ export declare function make(get: (path: Path) => Effect.Effect ConfigProvider; /** * Returns a provider that falls back to `that` when `self` returns `undefined` * for a path. * - * When to use: - * - Layering multiple config sources (e.g. env vars + defaults file). - * - Providing partial overrides on top of a base config. + * **When to use** + * + * Use to layer multiple config sources, such as env vars plus a defaults file, + * or provide partial overrides on top of a base config. * - * Only triggers the fallback when the path is not found (`undefined`). A - * `SourceError` from `self` is **not** caught — it propagates immediately. + * **Details** * * Supports both data-last and data-first calling conventions. * + * **Gotchas** + * + * The fallback only runs when the path is not found (`undefined`). A + * `SourceError` from `self` is not caught; it propagates immediately. + * * **Example** (Falling back to a default provider) * * ```ts @@ -469,24 +453,25 @@ export declare const orElse: { * * @see {@link layerAdd} – install a fallback provider via a Layer * - * @category Combinators - * @since 4.0.0 + * @category combinators + * @since 2.0.0 */ (self: ConfigProvider, that: ConfigProvider): ConfigProvider; }; /** * Transforms the path segments before they reach the underlying store. * - * When to use: - * - Renaming or re-casing path segments (see {@link constantCase} for a - * common specialization). - * - Adding suffixes or other per-segment transformations. + * **When to use** * - * The function `f` receives the full path and must return a new path. If the - * provider already has a `mapInput`, the functions compose (existing first, - * then `f`). + * Use when you need to rename, re-case, or otherwise transform config path + * segments before lookup. * - * Supports both data-last and data-first calling conventions. + * **Details** + * + * The function `f` receives the full path and must return a new path. If the + * provider already has a `mapInput`, the functions compose: the existing + * mapping runs first, then `f`. Supports both data-last and data-first calling + * conventions. * * **Example** (Uppercasing path segments) * @@ -507,23 +492,24 @@ export declare const orElse: { * @see {@link constantCase} – a preset that converts to `CONSTANT_CASE` * @see {@link nested} – for prepending a prefix instead of transforming * - * @category Combinators + * @category combinators * @since 4.0.0 */ export declare const mapInput: { /** * Transforms the path segments before they reach the underlying store. * - * When to use: - * - Renaming or re-casing path segments (see {@link constantCase} for a - * common specialization). - * - Adding suffixes or other per-segment transformations. + * **When to use** * - * The function `f` receives the full path and must return a new path. If the - * provider already has a `mapInput`, the functions compose (existing first, - * then `f`). + * Use when you need to rename, re-case, or otherwise transform config path + * segments before lookup. * - * Supports both data-last and data-first calling conventions. + * **Details** + * + * The function `f` receives the full path and must return a new path. If the + * provider already has a `mapInput`, the functions compose: the existing + * mapping runs first, then `f`. Supports both data-last and data-first calling + * conventions. * * **Example** (Uppercasing path segments) * @@ -544,23 +530,24 @@ export declare const mapInput: { * @see {@link constantCase} – a preset that converts to `CONSTANT_CASE` * @see {@link nested} – for prepending a prefix instead of transforming * - * @category Combinators + * @category combinators * @since 4.0.0 */ (f: (path: Path) => Path): (self: ConfigProvider) => ConfigProvider; /** * Transforms the path segments before they reach the underlying store. * - * When to use: - * - Renaming or re-casing path segments (see {@link constantCase} for a - * common specialization). - * - Adding suffixes or other per-segment transformations. + * **When to use** * - * The function `f` receives the full path and must return a new path. If the - * provider already has a `mapInput`, the functions compose (existing first, - * then `f`). + * Use when you need to rename, re-case, or otherwise transform config path + * segments before lookup. * - * Supports both data-last and data-first calling conventions. + * **Details** + * + * The function `f` receives the full path and must return a new path. If the + * provider already has a `mapInput`, the functions compose: the existing + * mapping runs first, then `f`. Supports both data-last and data-first calling + * conventions. * * **Example** (Uppercasing path segments) * @@ -581,7 +568,7 @@ export declare const mapInput: { * @see {@link constantCase} – a preset that converts to `CONSTANT_CASE` * @see {@link nested} – for prepending a prefix instead of transforming * - * @category Combinators + * @category combinators * @since 4.0.0 */ (self: ConfigProvider, f: (path: Path) => Path): ConfigProvider; @@ -589,9 +576,12 @@ export declare const mapInput: { /** * Converts all string path segments to `CONSTANT_CASE` before lookup. * - * When to use: - * - Bridging camelCase schema keys to `SCREAMING_SNAKE_CASE` environment - * variables (the most common pattern). + * **When to use** + * + * Use to bridge camelCase schema keys to `SCREAMING_SNAKE_CASE` + * environment variables. + * + * **Details** * * Numeric segments are left unchanged. This is a specialization of * {@link mapInput}. @@ -610,23 +600,29 @@ export declare const mapInput: { * * @see {@link mapInput} – for arbitrary path transformations * - * @since 4.0.0 - * @category Combinators + * @category combinators + * @since 2.0.0 */ export declare const constantCase: (self: ConfigProvider) => ConfigProvider; /** * Scopes a provider so that all lookups are prefixed with the given path * segments. * - * When to use: - * - Namespacing config under a prefix like `"app"` or `"database"`. - * - Reusing the same provider shape for multiple sub-configs. + * **When to use** * - * Accepts a single string or a full `Path` array. The prefix is prepended - * *after* any `mapInput` transformation runs, so ordering matters when - * composing with {@link mapInput} or {@link constantCase}. + * Use to namespace config under a prefix like `"app"` or `"database"`, or + * reuse the same provider shape for multiple sub-configs. * - * Supports both data-last and data-first calling conventions. + * **Details** + * + * Accepts a single string or a full `Path` array. Supports both data-last and + * data-first calling conventions. + * + * **Gotchas** + * + * The prefix is prepended after any `mapInput` transformation runs, so + * ordering matters when composing with {@link mapInput} or + * {@link constantCase}. * * **Example** (Nesting under a prefix) * @@ -643,23 +639,29 @@ export declare const constantCase: (self: ConfigProvider) => ConfigProvider; * * @see {@link mapInput} – for arbitrary path transformations * - * @category Combinators - * @since 4.0.0 + * @category combinators + * @since 2.0.0 */ export declare const nested: { /** * Scopes a provider so that all lookups are prefixed with the given path * segments. * - * When to use: - * - Namespacing config under a prefix like `"app"` or `"database"`. - * - Reusing the same provider shape for multiple sub-configs. + * **When to use** * - * Accepts a single string or a full `Path` array. The prefix is prepended - * *after* any `mapInput` transformation runs, so ordering matters when - * composing with {@link mapInput} or {@link constantCase}. + * Use to namespace config under a prefix like `"app"` or `"database"`, or + * reuse the same provider shape for multiple sub-configs. * - * Supports both data-last and data-first calling conventions. + * **Details** + * + * Accepts a single string or a full `Path` array. Supports both data-last and + * data-first calling conventions. + * + * **Gotchas** + * + * The prefix is prepended after any `mapInput` transformation runs, so + * ordering matters when composing with {@link mapInput} or + * {@link constantCase}. * * **Example** (Nesting under a prefix) * @@ -676,23 +678,29 @@ export declare const nested: { * * @see {@link mapInput} – for arbitrary path transformations * - * @category Combinators - * @since 4.0.0 + * @category combinators + * @since 2.0.0 */ (prefix: string | Path): (self: ConfigProvider) => ConfigProvider; /** * Scopes a provider so that all lookups are prefixed with the given path * segments. * - * When to use: - * - Namespacing config under a prefix like `"app"` or `"database"`. - * - Reusing the same provider shape for multiple sub-configs. + * **When to use** * - * Accepts a single string or a full `Path` array. The prefix is prepended - * *after* any `mapInput` transformation runs, so ordering matters when - * composing with {@link mapInput} or {@link constantCase}. + * Use to namespace config under a prefix like `"app"` or `"database"`, or + * reuse the same provider shape for multiple sub-configs. * - * Supports both data-last and data-first calling conventions. + * **Details** + * + * Accepts a single string or a full `Path` array. Supports both data-last and + * data-first calling conventions. + * + * **Gotchas** + * + * The prefix is prepended after any `mapInput` transformation runs, so + * ordering matters when composing with {@link mapInput} or + * {@link constantCase}. * * **Example** (Nesting under a prefix) * @@ -709,17 +717,20 @@ export declare const nested: { * * @see {@link mapInput} – for arbitrary path transformations * - * @category Combinators - * @since 4.0.0 + * @category combinators + * @since 2.0.0 */ (self: ConfigProvider, prefix: string | Path): ConfigProvider; }; /** - * Installs a `ConfigProvider` as the active provider for all downstream - * effects, replacing any previously installed provider. + * Provides a layer that installs a `ConfigProvider` as the active provider for + * all downstream effects, replacing any previously installed provider. + * + * **When to use** * - * When to use: - * - Setting the config source for an entire application or test suite. + * Use to set the config source for an entire application or test suite. + * + * **Details** * * Accepts either a plain `ConfigProvider` or an `Effect` that produces one. * When given an Effect, it is evaluated once when the layer is built. @@ -743,7 +754,7 @@ export declare const nested: { * * @see {@link layerAdd} – add a provider without replacing the existing one * - * @category Layers + * @category layers * @since 4.0.0 */ export declare const layer: (self: ConfigProvider | Effect.Effect) => Layer.Layer>; @@ -751,15 +762,17 @@ export declare const layer: (self: ConfigProvider | Effect * Creates a Layer that composes a new `ConfigProvider` with the currently * active one, rather than replacing it. * - * When to use: - * - Adding defaults that should only apply when the primary provider has no - * value for a path. - * - Overriding specific keys while keeping the rest from the existing provider - * (use `asPrimary: true`). + * **When to use** + * + * Use to add defaults that should only apply when the primary provider has no + * value for a path, or override specific keys while keeping the rest from the + * existing provider by setting `asPrimary: true`. + * + * **Details** * - * By default, the new provider acts as a **fallback** (consulted only when - * the current provider returns `undefined`). Set `asPrimary: true` to make - * the new provider the **primary** source, with the existing one as fallback. + * By default, the new provider acts as a fallback and is consulted only when + * the current provider returns `undefined`. Set `asPrimary: true` to make the + * new provider the primary source, with the existing one as fallback. * * **Example** (Adding default values) * @@ -778,7 +791,7 @@ export declare const layer: (self: ConfigProvider | Effect * @see {@link layer} – replace the provider entirely * @see {@link orElse} – compose providers without layers * - * @category Layers + * @category layers * @since 4.0.0 */ export declare const layerAdd: (self: ConfigProvider | Effect.Effect, options?: { @@ -788,14 +801,16 @@ export declare const layerAdd: (self: ConfigProvider | Eff * Creates a `ConfigProvider` backed by an in-memory JavaScript value * (typically a parsed JSON object). * - * When to use: - * - Unit / integration tests where you want deterministic config without - * touching the environment. - * - Embedding config directly in code or reading a JSON file. + * **When to use** * - * Path traversal follows standard JS rules: string segments index into - * object keys, numeric segments index into arrays. Returns `undefined` - * for any path that cannot be resolved. Never fails with `SourceError`. + * Use when you need deterministic config from an in-memory JavaScript value, + * such as in tests, embedded config, or parsed JSON. + * + * **Details** + * + * Path traversal follows standard JS rules: string segments index into object + * keys, numeric segments index into arrays. Returns `undefined` for any path + * that cannot be resolved. Never fails with `SourceError`. * * Primitive values (`number`, `boolean`, `bigint`) are stringified via * `String(...)`. @@ -829,10 +844,13 @@ export declare function fromUnknown(root: unknown): ConfigProvider; /** * Creates a `ConfigProvider` backed by environment variables. * - * When to use: - * - Reading configuration from `process.env` (the default when no provider - * is explicitly set). - * - Passing a custom env record for testing or non-Node runtimes. + * **When to use** + * + * Use to read configuration from `process.env`, which is the default when no + * provider is explicitly set, or pass a custom env record for testing or + * non-Node runtimes. + * + * **Details** * * Path segments are joined with `_` for direct lookup, and env var names are * also split on `_` to build a trie for child key discovery. This means @@ -869,7 +887,7 @@ export declare function fromUnknown(root: unknown): ConfigProvider; * @see {@link constantCase} – bridge camelCase keys to SCREAMING_SNAKE_CASE * * @category ConfigProviders - * @since 4.0.0 + * @since 2.0.0 */ export declare function fromEnv(options?: { readonly env?: Record | undefined; @@ -877,15 +895,16 @@ export declare function fromEnv(options?: { /** * Creates a `ConfigProvider` by parsing the string contents of a `.env` file. * - * When to use: - * - You already have the `.env` contents as a string (e.g. fetched from a - * remote store or embedded in a test). - * - Use {@link fromDotEnv} instead if you want to read a `.env` file from - * disk. + * **When to use** + * + * Use when you already have the `.env` contents as a string, such as contents + * fetched from a remote store or embedded in a test. * - * Supports `export` prefixes, single/double/backtick quoting, inline - * comments, and escaped newlines. Variable expansion (e.g. `${VAR}`) is - * disabled by default; enable with `{ expandVariables: true }`. + * **Details** + * + * Supports `export` prefixes, single/double/backtick quoting, inline comments, + * and escaped newlines. Variable expansion (for example, `${VAR}`) is disabled + * by default; enable with `{ expandVariables: true }`. * * Parsing is based on the `dotenv` / `dotenv-expand` algorithm. * @@ -918,13 +937,14 @@ export declare function fromDotEnvContents(lines: string, options?: { * Creates a `ConfigProvider` by reading and parsing a `.env` file from the * file system. * - * When to use: - * - Loading environment config from a `.env` file at application startup. - * - Use {@link fromDotEnvContents} if you already have the file contents as - * a string. + * **When to use** + * + * Use to load environment config from a `.env` file at application startup. + * + * **Details** * - * Requires `FileSystem` in the Effect context. Defaults to reading `".env"` - * in the current directory; override with `{ path: "/custom/.env" }`. + * Requires `FileSystem` in the Effect context. Defaults to reading `".env"` in + * the current directory; override with `{ path: "/custom/.env" }`. * * Returns an `Effect` that resolves to a `ConfigProvider`. Fails with a * `PlatformError` if the file cannot be read. @@ -943,6 +963,7 @@ export declare function fromDotEnvContents(lines: string, options?: { * @see {@link fromDotEnvContents} – parse a `.env` string directly * @see {@link fromEnv} – read from the runtime environment * + * @category constructors * @since 4.0.0 */ export declare const fromDotEnv: (options?: { @@ -953,16 +974,17 @@ export declare const fromDotEnv: (options?: { * Creates a `ConfigProvider` that reads configuration from a directory tree * on disk, where each file is a leaf value and each directory is a container. * - * When to use: - * - Kubernetes ConfigMap / Secret volume mounts, where each key is a file - * under a mount path. - * - Any file-per-key configuration layout. + * **When to use** + * + * Use when you expose each config key as a file under a directory, such as + * Kubernetes ConfigMap or Secret volume mounts. + * + * **Details** * - * Resolution rules: - * - Regular file → `Value` node (file contents trimmed). - * - Directory → `Record` node with immediate child names as keys. - * - Not found → tries as file first, then as directory; returns - * `SourceError` if both fail. + * Resolution tries a regular file first and returns a `Value` node with + * trimmed file contents. If the file read fails, it tries a directory and + * returns a `Record` node with immediate child names as keys. If both fail, it + * returns `SourceError`. * * Requires `Path` and `FileSystem` in the Effect context. Defaults to root * path `/`; override with `{ rootPath: "/etc/config" }`. diff --git a/.opencode/node_modules/effect/dist/ConfigProvider.d.ts.map b/.opencode/node_modules/effect/dist/ConfigProvider.d.ts.map index 002f201930e07ecd8bfe8a0d7ab7317687fa7e11..33429639cdd9dba368c1829df27ece1cc72874d2 100644 --- a/.opencode/node_modules/effect/dist/ConfigProvider.d.ts.map +++ b/.opencode/node_modules/effect/dist/ConfigProvider.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"ConfigProvider.d.ts","sourceRoot":"","sources":["../src/ConfigProvider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8EG;AAEH,OAAO,KAAK,OAAO,MAAM,cAAc,CAAA;AAEvC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,UAAU,MAAM,iBAAiB,CAAA;AAI7C,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,KAAK,MAAM,WAAW,CAAA;AAClC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAC7C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAEvD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAGvC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,MAAM,IAAI;AACd,8BAA8B;AAC5B;IACA,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAA;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CACvB;AACD,oCAAoC;GAClC;IACA,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAA;IACvB,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IAClC,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;CACnC;A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E;IAAE,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,CAAA;CAAE,GAAG,cAAc,CASvG;AA+DD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;IAC1D,QAAQ,CAAC,eAAe,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAC/C,GAAG,cAAc,CAMjB;AA8FD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,eAAO,MAAM,UAAU,EAAE,CAAC,OAAO,CAAC,EAAE;IAClC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAClC,QAAQ,CAAC,eAAe,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAC/C,KAAK,MAAM,CAAC,MAAM,CAAC,cAAc,EAAE,aAAa,EAAE,UAAU,CAAC,UAAU,CAMvE,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,eAAO,MAAM,OAAO,EAAE,CAAC,OAAO,CAAC,EAAE;IAC/B,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CACvC,KAAK,MAAM,CAAC,MAAM,CACjB,cAAc,EACd,KAAK,EACL,KAAK,CAAC,IAAI,GAAG,UAAU,CAAC,UAAU,CAiClC,CAAA"} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/ConfigProvider.js b/.opencode/node_modules/effect/dist/ConfigProvider.js index cf80619b7eecad2640ac3be77d2cd31191b80ea3..a7ecd27ddc5b0cc0bc6949097e0cc90df17b71fc 100644 --- a/.opencode/node_modules/effect/dist/ConfigProvider.js +++ b/.opencode/node_modules/effect/dist/ConfigProvider.js @@ -1,79 +1,10 @@ /** - * Provides the data source layer for the `Config` module. A `ConfigProvider` - * knows how to load raw configuration nodes from a backing store (environment - * variables, JSON objects, `.env` files, file trees) and expose them through a - * uniform `Node` interface that `Config` schemas consume. - * - * ## Mental model - * - * - **Node** – a discriminated union (`Value | Record | Array`) that describes - * what lives at a given path in the configuration tree. - * - **Path** – an array of string or numeric segments used to address a node - * (e.g. `["database", "host"]`). - * - **ConfigProvider** – an object with a `load(path)` method that resolves a - * path to a `Node | undefined`. Providers can be composed and transformed. - * - **Context.Reference** – `ConfigProvider` is registered as a reference - * service that defaults to `fromEnv()`, so it works without explicit - * provision. - * - **SourceError** – the typed error returned when a backing store is - * unreadable (I/O failure, permission error, etc.). - * - * ## Common tasks - * - * - Read from environment variables → {@link fromEnv} - * - Read from a JSON / plain object → {@link fromUnknown} - * - Parse a `.env` string → {@link fromDotEnvContents} - * - Load a `.env` file → {@link fromDotEnv} - * - Read from a directory tree → {@link fromDir} - * - Build a custom provider → {@link make} - * - Fall back to another provider → {@link orElse} - * - Scope a provider under a prefix → {@link nested} - * - Convert path segments to `CONSTANT_CASE` → {@link constantCase} - * - Transform path segments arbitrarily → {@link mapInput} - * - Install a provider as a Layer → {@link layer} / {@link layerAdd} - * - * ## Gotchas - * - * - `fromEnv` joins path segments with `_` for lookup **and** splits env var - * names on `_` to discover child keys. `DATABASE_HOST=x` is therefore - * accessible at both `["DATABASE_HOST"]` and `["DATABASE", "HOST"]`. - * - Because of `_` splitting, querying a parent path like `["DATABASE"]` - * returns a `Record` node with child key `"HOST"`, even if no env var - * named `DATABASE` exists. - * - When using `fromEnv` with schemas that use camelCase keys, pipe the - * provider through {@link constantCase} so `databaseHost` resolves to - * `DATABASE_HOST`. - * - `orElse` only falls back when the primary provider returns `undefined` - * (path not found). It does **not** catch `SourceError`. - * - `nested` prepends segments to the path *after* `mapInput` has run, so - * the order of composition matters. - * - * ## Quickstart - * - * **Example** (Reading config from environment variables) - * - * ```ts - * import { Config, ConfigProvider, Effect } from "effect" - * - * const provider = ConfigProvider.fromEnv({ - * env: { APP_PORT: "3000", APP_HOST: "localhost" } - * }) - * - * const port = Config.number("port") - * - * const program = port.parse( - * provider.pipe( - * ConfigProvider.nested("app"), - * ConfigProvider.constantCase - * ) - * ) - * - * // Effect.runSync(program) // 3000 - * ``` - * - * @see {@link make} – build a provider from a lookup function - * @see {@link fromEnv} – the default provider backed by `process.env` - * @see {@link fromUnknown} – provider backed by a plain JS object + * Data sources used by `Config` to load raw configuration values. A + * `ConfigProvider` reads paths from places such as environment variables, + * JavaScript objects, `.env` contents, or directories, and returns a uniform + * `Node` shape that config schemas can decode. The module also includes helpers + * for composing providers, changing paths, and installing providers through + * layers. * * @since 4.0.0 */ @@ -91,10 +22,14 @@ import * as Str from "./String.js"; /** * Creates a `Value` node representing a terminal string leaf. * - * When to use: - * - Building nodes inside a custom `ConfigProvider`'s `get` callback. + * **When to use** + * + * Use when building nodes inside a custom `ConfigProvider`'s `get` + * callback. * - * Does not mutate input. Returns a new plain object. + * **Details** + * + * The function returns a new plain object. * * **Example** (Creating a value node) * @@ -108,7 +43,7 @@ import * as Str from "./String.js"; * @see {@link makeRecord} – for object-like containers * @see {@link makeArray} – for array-like containers * - * @category Constructors + * @category constructors * @since 4.0.0 */ export function makeValue(value) { @@ -121,11 +56,16 @@ export function makeValue(value) { * Creates a `Record` node representing an object-like container with known * child keys. * - * When to use: - * - Describing a directory or JSON object inside a custom provider. + * **When to use** + * + * Use when you need to describe a directory or JSON object inside a custom + * provider. + * + * **Details** * * The optional `value` allows a node to be both a container and a leaf at the - * same time (e.g. an env var `A=x` that also has children `A_FOO`, `A_BAR`). + * same time (for example, an env var `A=x` that also has children `A_FOO` and + * `A_BAR`). * * **Example** (Creating a record node) * @@ -139,7 +79,7 @@ export function makeValue(value) { * @see {@link makeValue} – for terminal leaves * @see {@link makeArray} – for array-like containers * - * @category Constructors + * @category constructors * @since 4.0.0 */ export function makeRecord(keys, value) { @@ -153,9 +93,12 @@ export function makeRecord(keys, value) { * Creates an `Array` node representing an indexed container with a known * length. * - * When to use: - * - Describing a JSON array or a set of numerically-indexed env vars inside a - * custom provider. + * **When to use** + * + * Use when you need to describe a JSON array or numerically indexed env vars + * inside a custom provider. + * + * **Details** * * The optional `value` allows a node to be both a container and a leaf at the * same time. @@ -172,7 +115,7 @@ export function makeRecord(keys, value) { * @see {@link makeValue} – for terminal leaves * @see {@link makeRecord} – for object-like containers * - * @category Constructors + * @category constructors * @since 4.0.0 */ export function makeArray(length, value) { @@ -185,13 +128,15 @@ export function makeArray(length, value) { /** * Typed error indicating that a configuration source could not be read. * - * When to use: - * - Return from a custom provider's `get` callback when the underlying store - * is unreachable or produces an I/O error. - * - Match on in error channels when consuming provider output directly. + * **When to use** + * + * Use when you need to report that a custom provider's underlying store is + * unreachable or produced an I/O error while reading configuration data. + * + * **Gotchas** * - * Not used for "key not found" — that case is represented by returning - * `undefined` from `load` / `get`. + * Do not use `SourceError` for "key not found". That case is represented by + * returning `undefined` from `load` or `get`. * * **Example** (Failing with a SourceError) * @@ -208,22 +153,20 @@ export function makeArray(length, value) { * @see {@link ConfigProvider} – the interface whose `load`/`get` may fail * with this error * - * @category Models + * @category models * @since 4.0.0 */ export class SourceError extends /*#__PURE__*/Data.TaggedError("SourceError") {} /** - * The `ConfigProvider` service reference, registered in the context with a - * default value of `fromEnv()`. + * Context reference for the active raw configuration provider, registered in the context with a + * default value of `fromEnv()`. Because it is a `Context.Reference`, it is + * available without explicit provision; `Config` schemas automatically resolve + * it. * - * Because it is a `Context.Reference`, it is available without explicit - * provision — `Config` schemas automatically resolve it. + * **When to use** * - * When to use: - * - Override the provider for an entire program via - * `Effect.provideService(ConfigProvider.ConfigProvider, myProvider)`. - * - Retrieve the current provider inside an Effect with - * `yield* ConfigProvider.ConfigProvider`. + * Use to override the active raw configuration provider for an entire program, + * or retrieve the current provider inside an Effect. * * **Example** (Providing a custom provider) * @@ -243,8 +186,8 @@ export class SourceError extends /*#__PURE__*/Data.TaggedError("SourceError") {} * @see {@link layer} – install a provider as a Layer * @see {@link layerAdd} – add a fallback provider as a Layer * - * @category Services - * @since 4.0.0 + * @category services + * @since 2.0.0 */ export const ConfigProvider = /*#__PURE__*/Context.Reference("effect/ConfigProvider", { defaultValue: () => fromEnv() @@ -260,9 +203,12 @@ const Proto = { /** * Creates a `ConfigProvider` from a raw lookup function. * - * When to use: - * - Implementing a provider backed by a custom store (database, remote API, - * in-memory map, etc.). + * **When to use** + * + * Use when implementing a provider backed by a custom store, such as a + * database, remote API, or in-memory map. + * + * **Details** * * The `get` callback receives a `Path` and must return * `Effect`. Return `undefined` when the path @@ -294,8 +240,8 @@ const Proto = { * @see {@link fromEnv} – pre-built provider for environment variables * @see {@link fromUnknown} – pre-built provider for JSON objects * - * @category Constructors - * @since 4.0.0 + * @category constructors + * @since 2.0.0 */ export function make(get, mapInput, prefix) { const self = Object.create(Proto); @@ -313,15 +259,20 @@ export function make(get, mapInput, prefix) { * Returns a provider that falls back to `that` when `self` returns `undefined` * for a path. * - * When to use: - * - Layering multiple config sources (e.g. env vars + defaults file). - * - Providing partial overrides on top of a base config. + * **When to use** * - * Only triggers the fallback when the path is not found (`undefined`). A - * `SourceError` from `self` is **not** caught — it propagates immediately. + * Use to layer multiple config sources, such as env vars plus a defaults file, + * or provide partial overrides on top of a base config. + * + * **Details** * * Supports both data-last and data-first calling conventions. * + * **Gotchas** + * + * The fallback only runs when the path is not found (`undefined`). A + * `SourceError` from `self` is not caught; it propagates immediately. + * * **Example** (Falling back to a default provider) * * ```ts @@ -337,23 +288,24 @@ export function make(get, mapInput, prefix) { * * @see {@link layerAdd} – install a fallback provider via a Layer * - * @category Combinators - * @since 4.0.0 + * @category combinators + * @since 2.0.0 */ export const orElse = /*#__PURE__*/dual(2, (self, that) => make(path => Effect.flatMap(self.get(path), node => node ? Effect.succeed(node) : that.get(path)))); /** * Transforms the path segments before they reach the underlying store. * - * When to use: - * - Renaming or re-casing path segments (see {@link constantCase} for a - * common specialization). - * - Adding suffixes or other per-segment transformations. + * **When to use** * - * The function `f` receives the full path and must return a new path. If the - * provider already has a `mapInput`, the functions compose (existing first, - * then `f`). + * Use when you need to rename, re-case, or otherwise transform config path + * segments before lookup. * - * Supports both data-last and data-first calling conventions. + * **Details** + * + * The function `f` receives the full path and must return a new path. If the + * provider already has a `mapInput`, the functions compose: the existing + * mapping runs first, then `f`. Supports both data-last and data-first calling + * conventions. * * **Example** (Uppercasing path segments) * @@ -374,7 +326,7 @@ export const orElse = /*#__PURE__*/dual(2, (self, that) => make(path => Effect.f * @see {@link constantCase} – a preset that converts to `CONSTANT_CASE` * @see {@link nested} – for prepending a prefix instead of transforming * - * @category Combinators + * @category combinators * @since 4.0.0 */ export const mapInput = /*#__PURE__*/dual(2, (self, f) => { @@ -383,9 +335,12 @@ export const mapInput = /*#__PURE__*/dual(2, (self, f) => { /** * Converts all string path segments to `CONSTANT_CASE` before lookup. * - * When to use: - * - Bridging camelCase schema keys to `SCREAMING_SNAKE_CASE` environment - * variables (the most common pattern). + * **When to use** + * + * Use to bridge camelCase schema keys to `SCREAMING_SNAKE_CASE` + * environment variables. + * + * **Details** * * Numeric segments are left unchanged. This is a specialization of * {@link mapInput}. @@ -404,23 +359,29 @@ export const mapInput = /*#__PURE__*/dual(2, (self, f) => { * * @see {@link mapInput} – for arbitrary path transformations * - * @since 4.0.0 - * @category Combinators + * @category combinators + * @since 2.0.0 */ export const constantCase = /*#__PURE__*/mapInput(path => path.map(seg => typeof seg === "number" ? seg : Str.constantCase(seg))); /** * Scopes a provider so that all lookups are prefixed with the given path * segments. * - * When to use: - * - Namespacing config under a prefix like `"app"` or `"database"`. - * - Reusing the same provider shape for multiple sub-configs. + * **When to use** * - * Accepts a single string or a full `Path` array. The prefix is prepended - * *after* any `mapInput` transformation runs, so ordering matters when - * composing with {@link mapInput} or {@link constantCase}. + * Use to namespace config under a prefix like `"app"` or `"database"`, or + * reuse the same provider shape for multiple sub-configs. * - * Supports both data-last and data-first calling conventions. + * **Details** + * + * Accepts a single string or a full `Path` array. Supports both data-last and + * data-first calling conventions. + * + * **Gotchas** + * + * The prefix is prepended after any `mapInput` transformation runs, so + * ordering matters when composing with {@link mapInput} or + * {@link constantCase}. * * **Example** (Nesting under a prefix) * @@ -437,19 +398,22 @@ export const constantCase = /*#__PURE__*/mapInput(path => path.map(seg => typeof * * @see {@link mapInput} – for arbitrary path transformations * - * @category Combinators - * @since 4.0.0 + * @category combinators + * @since 2.0.0 */ export const nested = /*#__PURE__*/dual(2, (self, prefix) => { const path = typeof prefix === "string" ? [prefix] : prefix; return make(self.get, self.mapInput, self.prefix ? [...self.prefix, ...path] : path); }); /** - * Installs a `ConfigProvider` as the active provider for all downstream - * effects, replacing any previously installed provider. + * Provides a layer that installs a `ConfigProvider` as the active provider for + * all downstream effects, replacing any previously installed provider. + * + * **When to use** * - * When to use: - * - Setting the config source for an entire application or test suite. + * Use to set the config source for an entire application or test suite. + * + * **Details** * * Accepts either a plain `ConfigProvider` or an `Effect` that produces one. * When given an Effect, it is evaluated once when the layer is built. @@ -473,7 +437,7 @@ export const nested = /*#__PURE__*/dual(2, (self, prefix) => { * * @see {@link layerAdd} – add a provider without replacing the existing one * - * @category Layers + * @category layers * @since 4.0.0 */ export const layer = self => Effect.isEffect(self) ? Layer.effect(ConfigProvider)(self) : Layer.succeed(ConfigProvider)(self); @@ -481,15 +445,17 @@ export const layer = self => Effect.isEffect(self) ? Layer.effect(ConfigProvider * Creates a Layer that composes a new `ConfigProvider` with the currently * active one, rather than replacing it. * - * When to use: - * - Adding defaults that should only apply when the primary provider has no - * value for a path. - * - Overriding specific keys while keeping the rest from the existing provider - * (use `asPrimary: true`). + * **When to use** + * + * Use to add defaults that should only apply when the primary provider has no + * value for a path, or override specific keys while keeping the rest from the + * existing provider by setting `asPrimary: true`. * - * By default, the new provider acts as a **fallback** (consulted only when - * the current provider returns `undefined`). Set `asPrimary: true` to make - * the new provider the **primary** source, with the existing one as fallback. + * **Details** + * + * By default, the new provider acts as a fallback and is consulted only when + * the current provider returns `undefined`. Set `asPrimary: true` to make the + * new provider the primary source, with the existing one as fallback. * * **Example** (Adding default values) * @@ -508,7 +474,7 @@ export const layer = self => Effect.isEffect(self) ? Layer.effect(ConfigProvider * @see {@link layer} – replace the provider entirely * @see {@link orElse} – compose providers without layers * - * @category Layers + * @category layers * @since 4.0.0 */ export const layerAdd = (self, options) => Layer.effect(ConfigProvider)(Effect.gen(function* () { @@ -520,14 +486,16 @@ export const layerAdd = (self, options) => Layer.effect(ConfigProvider)(Effect.g * Creates a `ConfigProvider` backed by an in-memory JavaScript value * (typically a parsed JSON object). * - * When to use: - * - Unit / integration tests where you want deterministic config without - * touching the environment. - * - Embedding config directly in code or reading a JSON file. + * **When to use** + * + * Use when you need deterministic config from an in-memory JavaScript value, + * such as in tests, embedded config, or parsed JSON. * - * Path traversal follows standard JS rules: string segments index into - * object keys, numeric segments index into arrays. Returns `undefined` - * for any path that cannot be resolved. Never fails with `SourceError`. + * **Details** + * + * Path traversal follows standard JS rules: string segments index into object + * keys, numeric segments index into arrays. Returns `undefined` for any path + * that cannot be resolved. Never fails with `SourceError`. * * Primitive values (`number`, `boolean`, `bigint`) are stringified via * `String(...)`. @@ -596,10 +564,13 @@ function describeUnknown(u) { /** * Creates a `ConfigProvider` backed by environment variables. * - * When to use: - * - Reading configuration from `process.env` (the default when no provider - * is explicitly set). - * - Passing a custom env record for testing or non-Node runtimes. + * **When to use** + * + * Use to read configuration from `process.env`, which is the default when no + * provider is explicitly set, or pass a custom env record for testing or + * non-Node runtimes. + * + * **Details** * * Path segments are joined with `_` for direct lookup, and env var names are * also split on `_` to build a trie for child key discovery. This means @@ -636,7 +607,7 @@ function describeUnknown(u) { * @see {@link constantCase} – bridge camelCase keys to SCREAMING_SNAKE_CASE * * @category ConfigProviders - * @since 4.0.0 + * @since 2.0.0 */ export function fromEnv(options) { const env = options?.env ?? { @@ -691,15 +662,16 @@ function trieNodeAt(root, path) { /** * Creates a `ConfigProvider` by parsing the string contents of a `.env` file. * - * When to use: - * - You already have the `.env` contents as a string (e.g. fetched from a - * remote store or embedded in a test). - * - Use {@link fromDotEnv} instead if you want to read a `.env` file from - * disk. + * **When to use** + * + * Use when you already have the `.env` contents as a string, such as contents + * fetched from a remote store or embedded in a test. * - * Supports `export` prefixes, single/double/backtick quoting, inline - * comments, and escaped newlines. Variable expansion (e.g. `${VAR}`) is - * disabled by default; enable with `{ expandVariables: true }`. + * **Details** + * + * Supports `export` prefixes, single/double/backtick quoting, inline comments, + * and escaped newlines. Variable expansion (for example, `${VAR}`) is disabled + * by default; enable with `{ expandVariables: true }`. * * Parsing is based on the `dotenv` / `dotenv-expand` algorithm. * @@ -804,13 +776,14 @@ function searchLast(str, rgx) { * Creates a `ConfigProvider` by reading and parsing a `.env` file from the * file system. * - * When to use: - * - Loading environment config from a `.env` file at application startup. - * - Use {@link fromDotEnvContents} if you already have the file contents as - * a string. + * **When to use** + * + * Use to load environment config from a `.env` file at application startup. * - * Requires `FileSystem` in the Effect context. Defaults to reading `".env"` - * in the current directory; override with `{ path: "/custom/.env" }`. + * **Details** + * + * Requires `FileSystem` in the Effect context. Defaults to reading `".env"` in + * the current directory; override with `{ path: "/custom/.env" }`. * * Returns an `Effect` that resolves to a `ConfigProvider`. Fails with a * `PlatformError` if the file cannot be read. @@ -829,6 +802,7 @@ function searchLast(str, rgx) { * @see {@link fromDotEnvContents} – parse a `.env` string directly * @see {@link fromEnv} – read from the runtime environment * + * @category constructors * @since 4.0.0 */ export const fromDotEnv = /*#__PURE__*/Effect.fnUntraced(function* (options) { @@ -842,16 +816,17 @@ export const fromDotEnv = /*#__PURE__*/Effect.fnUntraced(function* (options) { * Creates a `ConfigProvider` that reads configuration from a directory tree * on disk, where each file is a leaf value and each directory is a container. * - * When to use: - * - Kubernetes ConfigMap / Secret volume mounts, where each key is a file - * under a mount path. - * - Any file-per-key configuration layout. + * **When to use** + * + * Use when you expose each config key as a file under a directory, such as + * Kubernetes ConfigMap or Secret volume mounts. + * + * **Details** * - * Resolution rules: - * - Regular file → `Value` node (file contents trimmed). - * - Directory → `Record` node with immediate child names as keys. - * - Not found → tries as file first, then as directory; returns - * `SourceError` if both fail. + * Resolution tries a regular file first and returns a `Value` node with + * trimmed file contents. If the file read fails, it tries a directory and + * returns a `Record` node with immediate child names as keys. If both fail, it + * returns `SourceError`. * * Requires `Path` and `FileSystem` in the Effect context. Defaults to root * path `/`; override with `{ rootPath: "/etc/config" }`. diff --git a/.opencode/node_modules/effect/dist/ConfigProvider.js.map b/.opencode/node_modules/effect/dist/ConfigProvider.js.map index 9214e184be56f3466a6bc2666eede4e886141683..fd3017fcb766e34bf47da397d0444fad1a8af902 100644 --- a/.opencode/node_modules/effect/dist/ConfigProvider.js.map +++ b/.opencode/node_modules/effect/dist/ConfigProvider.js.map @@ -1 +1 @@ -{"version":3,"file":"ConfigProvider.js","names":["Context","Data","Effect","FileSystem","format","dual","flow","PipeInspectableProto","Layer","Path_","Predicate","Str","makeValue","value","_tag","makeRecord","keys","makeArray","length","SourceError","TaggedError","ConfigProvider","Reference","defaultValue","fromEnv","Proto","toJSON","_id","make","get","mapInput","prefix","self","Object","create","load","path","orElse","that","flatMap","node","succeed","f","undefined","constantCase","map","seg","nested","layer","isEffect","effect","layerAdd","options","gen","current","configProvider","asPrimary","fromUnknown","root","nodeAtJson","cur","Array","isArray","Number","isInteger","isObject","hasOwn","describeUnknown","u","String","Set","env","globalThis","process","import","meta","trie","buildEnvTrie","nodeAtEnv","name","entries","segments","split","children","NUMERIC_INDEX","key","join","leafValue","trieNode","trieNodeAt","allNumeric","every","k","test","Math","max","parseInt","fromDotEnvContents","lines","parseDotEnvContents","expandVariables","dotEnvExpand","DOT_ENV_LINE","obj","replace","match","exec","trim","maybeQuote","parsed","newParsed","configKey","interpolate","envValue","lastUnescapedDollarSignIndex","searchLast","rightMostGroup","slice","matchGroup","_","group","variableName","str","rgx","matches","from","matchAll","index","fromDotEnv","fnUntraced","fs","content","readFileString","fromDir","platformPath","Path","rootPath","fullPath","asFile","pipe","asDirectory","readDirectory","e","basename","catch","mapError","cause","message"],"sources":["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WAAW,CAAC,EAC/B1I,MAAM,CAAC+I,QAAQ,CAAEC,KAAoB,IACnC,IAAI/H,WAAW,CAAC;MACdgI,OAAO,EAAE,0BAA0Bb,YAAY,CAAChD,IAAI,CAACkD,QAAQ,EAAE,GAAGpG,IAAI,CAACS,GAAG,CAACwB,MAAM,CAAC,CAAC,EAAE;MACrF6E;KACD,CAAC,CACH,CACF;EACH,CAAC,CAAC;AACJ,CAAC,CAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"ConfigProvider.js","names":["Context","Data","Effect","FileSystem","format","dual","flow","PipeInspectableProto","Layer","Path_","Predicate","Str","makeValue","value","_tag","makeRecord","keys","makeArray","length","SourceError","TaggedError","ConfigProvider","Reference","defaultValue","fromEnv","Proto","toJSON","_id","make","get","mapInput","prefix","self","Object","create","load","path","orElse","that","flatMap","node","succeed","f","undefined","constantCase","map","seg","nested","layer","isEffect","effect","layerAdd","options","gen","current","configProvider","asPrimary","fromUnknown","root","nodeAtJson","cur","Array","isArray","Number","isInteger","isObject","hasOwn","describeUnknown","u","String","Set","env","globalThis","process","import","meta","trie","buildEnvTrie","nodeAtEnv","name","entries","segments","split","children","NUMERIC_INDEX","key","join","leafValue","trieNode","trieNodeAt","allNumeric","every","k","test","Math","max","parseInt","fromDotEnvContents","lines","parseDotEnvContents","expandVariables","dotEnvExpand","DOT_ENV_LINE","obj","replace","match","exec","trim","maybeQuote","parsed","newParsed","configKey","interpolate","envValue","lastUnescapedDollarSignIndex","searchLast","rightMostGroup","slice","matchGroup","_","group","variableName","str","rgx","matches","from","matchAll","index","fromDotEnv","fnUntraced","fs","content","readFileString","fromDir","platformPath","Path","rootPath","fullPath","asFile","pipe","asDirectory","readDirectory","e","basename","catch","mapError","cause","message"],"sources":["../src/ConfigProvider.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;AAWA,OAAO,KAAKA,OAAO,MAAM,cAAc;AACvC,OAAO,KAAKC,IAAI,MAAM,WAAW;AACjC,OAAO,KAAKC,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,CAACwB,MAAM,CAAC,CAAC,EAAE;MACrF6E;KACD,CAAC,CACH,CACF;EACH,CAAC,CAAC;AACJ,CAAC,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Console.d.ts b/.opencode/node_modules/effect/dist/Console.d.ts index 24d9fc4c18817cdf8920b7a663d6622329c87496..a232b63eb7894a108ce06655110852346383caa8 100644 --- a/.opencode/node_modules/effect/dist/Console.d.ts +++ b/.opencode/node_modules/effect/dist/Console.d.ts @@ -1,72 +1,11 @@ /** - * The `Console` module provides a functional interface for console operations within - * the Effect ecosystem. It offers type-safe logging, debugging, and console manipulation - * capabilities with built-in support for testing and environment isolation. + * Wraps console operations in Effect. * - * ## Key Features - * - * - **Type-safe logging**: All console operations return Effects for composability - * - **Testable**: Mock console output for testing scenarios - * - **Service-based**: Integrated with Effect's dependency injection system - * - **Environment isolation**: Different console implementations per environment - * - **Rich API**: Support for all standard console methods (log, error, debug, etc.) - * - **Performance tracking**: Built-in timing and profiling capabilities - * - * ## Core Operations - * - * - **Basic logging**: `log`, `error`, `warn`, `info`, `debug` - * - **Assertions**: `assert` for conditional logging - * - **Grouping**: `group`, `groupCollapsed`, `groupEnd` for organized output - * - **Timing**: `time`, `timeEnd`, `timeLog` for performance measurement - * - **Data display**: `table`, `dir`, `dirxml` for structured data visualization - * - **Utilities**: `clear`, `count`, `countReset`, `trace` - * - * @example - * ```ts - * import { Console, Effect } from "effect" - * - * // Basic logging - * const program = Effect.gen(function*() { - * yield* Console.log("Hello, World!") - * yield* Console.error("Something went wrong") - * yield* Console.warn("This is a warning") - * yield* Console.info("Information message") - * }) - * ``` - * - * @example - * ```ts - * import { Console, Effect } from "effect" - * - * // Grouped logging with timing - * const debugProgram = Console.withGroup( - * Effect.gen(function*() { - * yield* Console.log("Step 1: Loading...") - * yield* Effect.sleep("100 millis") - * - * yield* Console.log("Step 2: Processing...") - * yield* Effect.sleep("200 millis") - * }), - * { label: "Processing Data" } - * ) - * ``` - * - * @example - * ```ts - * import { Console, Effect } from "effect" - * - * // Data visualization and debugging - * const dataProgram = Effect.gen(function*() { - * const users = [ - * { id: 1, name: "Alice", age: 30 }, - * { id: 2, name: "Bob", age: 25 } - * ] - * - * yield* Console.table(users) - * yield* Console.dir(users[0], { depth: 2 }) - * yield* Console.assert(users.length > 0, "Users array should not be empty") - * }) - * ``` + * The `Console` service exposes common console methods such as logging, + * warnings, errors, groups, counters, tables, and timers. Because console access + * goes through a service, programs can use custom console implementations in + * tests or other environments. This module also includes scoped helpers that + * close console groups or timers automatically. * * @since 2.0.0 */ @@ -74,13 +13,10 @@ import type * as Context from "./Context.ts"; import type * as Effect from "./Effect.ts"; import type { Scope } from "./Scope.ts"; /** - * Represents a console interface for logging and debugging operations. - * - * Provides methods for various console operations including logging, debugging, - * timing, and grouping output. + * Represents a console interface for logging, debugging, timing, and grouping output. * - * @since 2.0.0 * @category models + * @since 2.0.0 */ export interface Console { assert(condition: boolean, ...args: ReadonlyArray): void; @@ -104,12 +40,19 @@ export interface Console { warn(...args: ReadonlyArray): void; } /** - * A reference to the current console service in the Effect system. + * Context reference for the current console service in the Effect system, allowing access to the active console implementation from within the Effect context. + * + * **When to use** + * + * Use when you need an effect to run against a provided console implementation, + * such as tests or alternate runtimes, rather than the default console. + * + * **Details** + * + * When no override is provided, the reference resolves to `globalThis.console`. * - * This reference allows you to access the current console implementation - * from within the Effect context. + * **Example** (Accessing the current console) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -120,17 +63,17 @@ export interface Console { * ) * ``` * - * @since 4.0.0 + * @see {@link consoleWith} for using the current console service inside an effect + * * @category references + * @since 2.0.0 */ export declare const Console: Context.Reference; /** - * Creates an Effect that provides access to the current console instance. + * Creates an Effect that provides access to the current console service and lets you perform operations with it within an Effect context. * - * This function allows you to access the console service and perform operations - * with it within an Effect context. + * **Example** (Using the current console service) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -142,17 +85,15 @@ export declare const Console: Context.Reference; * ) * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export declare const consoleWith: (f: (console: Console) => Effect.Effect) => Effect.Effect; /** - * Writes an assertion message to the console if the condition is false. + * Writes the supplied assertion message to the console as an error when `condition` is false; when `condition` is true, no console output is produced. * - * If the condition is true, nothing happens. If the condition is false, - * the message is logged to the console as an error. + * **Example** (Logging failed assertions) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -162,16 +103,25 @@ export declare const consoleWith: (f: (console: Console) => Effect.Effe * }) * ``` * + * @category accessors * @since 2.0.0 - * @category accessor */ export declare const assert: (condition: boolean, ...args: ReadonlyArray) => Effect.Effect; /** - * Clears the console. + * Runs the current console service's clear operation. + * + * **When to use** + * + * Use to request that the active console implementation clear its visible + * output. * - * This function clears all previously logged messages from the console. + * **Gotchas** + * + * The clearing behavior depends on the active console implementation and host + * environment. + * + * **Example** (Clearing console output) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -182,17 +132,15 @@ export declare const assert: (condition: boolean, ...args: ReadonlyArray) = * }) * ``` * + * @category accessors * @since 2.0.0 - * @category accessor */ export declare const clear: Effect.Effect; /** - * Logs the number of times that this particular call to count has been called. + * Logs and increments the counter associated with `label`, using the console's default counter when no label is provided. * - * This function maintains a counter for each unique label and increments it - * each time count is called with that label. + * **Example** (Counting repeated calls) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -203,17 +151,15 @@ export declare const clear: Effect.Effect; * }) * ``` * + * @category accessors * @since 2.0.0 - * @category accessor */ export declare const count: (label?: string) => Effect.Effect; /** - * Resets the counter for the given label. + * Resets the counter associated with the specified label back to zero. * - * This function resets the counter associated with the specified label - * back to zero. + * **Example** (Resetting a counter) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -225,17 +171,21 @@ export declare const count: (label?: string) => Effect.Effect; * }) * ``` * + * @category accessors * @since 2.0.0 - * @category accessor */ export declare const countReset: (label?: string) => Effect.Effect; /** - * Outputs a debug message to the console. + * Writes a debug message through the current `Console` service. + * + * **Details** * - * This function logs messages at the debug level, which may be filtered - * out in production environments. + * The arguments are passed to the service's `debug` method when the returned + * Effect is executed. Any filtering behavior depends on the active console + * implementation. + * + * **Example** (Writing debug messages) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -245,17 +195,15 @@ export declare const countReset: (label?: string) => Effect.Effect; * }) * ``` * + * @category accessors * @since 2.0.0 - * @category accessor */ export declare const debug: (...args: ReadonlyArray) => Effect.Effect; /** - * Displays an interactive list of the properties of the specified object. + * Displays an interactive list of the properties of the specified object, optionally using console-specific inspection options for debugging complex data structures. * - * This function provides a detailed view of an object's properties, - * which can be useful for debugging complex data structures. + * **Example** (Inspecting an object) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -266,37 +214,36 @@ export declare const debug: (...args: ReadonlyArray) => Effect.Effect * }) * ``` * + * @category accessors * @since 2.0.0 - * @category accessor */ export declare const dir: (item: any, options?: any) => Effect.Effect; /** - * Displays an interactive tree of the descendant elements of the specified XML/HTML element. + * Displays an interactive tree of descendant XML or HTML elements, which is particularly useful for inspecting DOM elements in browser environments. * - * This function is particularly useful for inspecting DOM elements in browser environments. + * **Example** (Inspecting XML-like data) * - * @example * ```ts * import { Console, Effect } from "effect" * * const program = Effect.gen(function*() { - * // In a browser environment - * const element = document.getElementById("myElement") - * yield* Console.dirxml(element) + * yield* Console.dirxml("Ada") * }) + * + * Effect.runSync(program) + * // Ada * ``` * + * @category accessors * @since 2.0.0 - * @category accessor */ export declare const dirxml: (...args: ReadonlyArray) => Effect.Effect; /** - * Outputs an error message to the console. + * Writes an error-level message to the console, typically displayed with error + * styling by the active console implementation. * - * This function logs messages at the error level, typically displayed - * in red or with an error icon in most console implementations. + * **Example** (Writing error messages) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -309,17 +256,15 @@ export declare const dirxml: (...args: ReadonlyArray) => Effect.Effect) => Effect.Effect; /** - * Creates a new inline group in the console and returns a scoped Effect. + * Creates a scoped console group, optionally collapsed and labeled, and closes it automatically when the Effect scope is finalized. * - * This function creates a collapsible group of console messages. The group - * is automatically closed when the Effect's scope is finalized. + * **Example** (Grouping scoped output) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -335,20 +280,19 @@ export declare const error: (...args: ReadonlyArray) => Effect.Effect * }) * ``` * + * @category accessors * @since 2.0.0 - * @category accessor */ export declare const group: (options?: { label?: string | undefined; collapsed?: boolean | undefined; } | undefined) => Effect.Effect; /** - * Outputs an informational message to the console. + * Writes an informational message to the console, typically displayed with info + * styling by the active console implementation. * - * This function logs messages at the info level, typically displayed - * with an info icon in most console implementations. + * **Example** (Writing informational messages) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -361,16 +305,15 @@ export declare const group: (options?: { * }) * ``` * + * @category accessors * @since 2.0.0 - * @category accessor */ export declare const info: (...args: ReadonlyArray) => Effect.Effect; /** - * Outputs a message to the console. + * Logs a general-purpose message to the console. * - * This is the most commonly used console method for general purpose logging. + * **Example** (Writing log messages) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -381,17 +324,15 @@ export declare const info: (...args: ReadonlyArray) => Effect.Effect; * }) * ``` * + * @category accessors * @since 2.0.0 - * @category accessor */ export declare const log: (...args: ReadonlyArray) => Effect.Effect; /** - * Displays tabular data as a table in the console. + * Displays tabular data as a formatted table in the console, optionally limited to selected properties. * - * This function takes tabular data and displays it in a formatted table, - * making it easier to read structured data. + * **Example** (Displaying tabular data) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -406,17 +347,15 @@ export declare const log: (...args: ReadonlyArray) => Effect.Effect; * }) * ``` * + * @category accessors * @since 2.0.0 - * @category accessor */ export declare const table: (tabularData: any, properties?: ReadonlyArray) => Effect.Effect; /** - * Starts a timer that can be used to compute the duration of an operation. + * Starts a scoped timer for `label` and automatically ends it when the Effect scope is finalized. * - * This function returns a scoped Effect that starts a timer when entered - * and automatically ends the timer when the scope is finalized. + * **Example** (Timing scoped work) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -432,17 +371,15 @@ export declare const table: (tabularData: any, properties?: ReadonlyArray Effect.Effect; /** - * Logs the current value of a timer that was previously started by calling time. + * Logs the elapsed time for an existing timer without stopping it, allowing progress reports for long-running operations. * - * This function logs the elapsed time for a timer without stopping it, - * allowing you to track progress of long-running operations. + * **Example** (Logging timer progress) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -459,17 +396,16 @@ export declare const time: (label?: string | undefined) => Effect.Effect) => Effect.Effect; /** - * Outputs a stack trace to the console. + * Writes the current stack trace to the console to show how the current point in + * the code was reached. * - * This function logs the current stack trace, which is useful for debugging - * to understand how the current point in the code was reached. + * **Example** (Writing stack traces) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -479,17 +415,16 @@ export declare const timeLog: (label?: string, ...args: ReadonlyArray) => E * }) * ``` * + * @category accessors * @since 2.0.0 - * @category accessor */ export declare const trace: (...args: ReadonlyArray) => Effect.Effect; /** - * Outputs a warning message to the console. + * Writes a warning-level message to the console, typically displayed with + * warning styling by the active console implementation. * - * This function logs messages at the warning level, typically displayed - * in yellow or with a warning icon in most console implementations. + * **Example** (Writing warning messages) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -501,18 +436,15 @@ export declare const trace: (...args: ReadonlyArray) => Effect.Effect * }) * ``` * + * @category accessors * @since 2.0.0 - * @category accessor */ export declare const warn: (...args: ReadonlyArray) => Effect.Effect; /** - * Wraps an Effect with a console group. + * Runs an Effect inside an optionally labeled or collapsed console group, starting the group before execution and ending it after the Effect completes. * - * This function creates a console group around the execution of an Effect, - * automatically starting the group before the Effect runs and ending it - * after the Effect completes. + * **Example** (Wrapping an effect in a group) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -528,8 +460,8 @@ export declare const warn: (...args: ReadonlyArray) => Effect.Effect; * }) * ``` * + * @category accessors * @since 2.0.0 - * @category accessor */ export declare const withGroup: ((options?: { readonly label?: string | undefined; @@ -539,13 +471,10 @@ export declare const withGroup: ((options?: { readonly collapsed?: boolean | undefined; }) => Effect.Effect); /** - * Wraps an Effect with a timer. + * Runs an Effect with a console timer, starting the timer before execution and ending it after the Effect completes. * - * This function measures the execution time of an Effect, automatically - * starting a timer before the Effect runs and logging the elapsed time - * after the Effect completes. + * **Example** (Timing an effect) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -560,8 +489,8 @@ export declare const withGroup: ((options?: { * }) * ``` * + * @category accessors * @since 2.0.0 - * @category accessor */ export declare const withTime: ((label?: string) => (self: Effect.Effect) => Effect.Effect) & ((self: Effect.Effect, label?: string) => Effect.Effect); //# sourceMappingURL=Console.d.ts.map \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Console.d.ts.map b/.opencode/node_modules/effect/dist/Console.d.ts.map index f6c88f4ece0db493879f3625d57c5f3721b2071c..6bff9b393b7bbf96ec8ab0657a2196267f5f8d0b 100644 --- a/.opencode/node_modules/effect/dist/Console.d.ts.map +++ b/.opencode/node_modules/effect/dist/Console.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Console.d.ts","sourceRoot":"","sources":["../src/Console.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuEG;AACH,OAAO,KAAK,KAAK,OAAO,MAAM,cAAc,CAAA;AAC5C,OAAO,KAAK,KAAK,MAAM,MAAM,aAAa,CAAA;AAI1C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAEvC;;;;;;;;GAQG;AACH,MAAM,WAAW,OAAO;IACtB,MAAM,CAAC,SAAS,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,aAAa,CAAC,GAAG,CAAC,GAAG,IAAI,CAAA;IAC7D,KAAK,IAAI,IAAI,CAAA;IACb,KAAK,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,UAAU,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAChC,KAAK,CAAC,GAAG,IAAI,EAAE,aAAa,CAA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AAS,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CACzC,KACE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,KAAK,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,MAwBrE,CAAC,EAAE,CAAC,EAAE,CAAC,QACA,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,YAClB;IACR,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACnC,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CACzC,KACE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAiBzB,CAAA;AAEJ;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,QAAQ,YAuBV,MAAM,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,KAAK,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,MAuBpF,CAAC,EAAE,CAAC,EAAE,CAAC,QAAQ,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,UAAU,MAAM,KAAK,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAa/E,CAAA"} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Console.js b/.opencode/node_modules/effect/dist/Console.js index 2dff467edbf163545a60b2f51eaef3e16841ea23..abdec515b78450262c19d023037f9794be890d97 100644 --- a/.opencode/node_modules/effect/dist/Console.js +++ b/.opencode/node_modules/effect/dist/Console.js @@ -2,12 +2,19 @@ import { dual } from "./Function.js"; import * as core from "./internal/core.js"; import * as effect from "./internal/effect.js"; /** - * A reference to the current console service in the Effect system. + * Context reference for the current console service in the Effect system, allowing access to the active console implementation from within the Effect context. * - * This reference allows you to access the current console implementation - * from within the Effect context. + * **When to use** + * + * Use when you need an effect to run against a provided console implementation, + * such as tests or alternate runtimes, rather than the default console. + * + * **Details** + * + * When no override is provided, the reference resolves to `globalThis.console`. + * + * **Example** (Accessing the current console) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -18,17 +25,17 @@ import * as effect from "./internal/effect.js"; * ) * ``` * - * @since 4.0.0 + * @see {@link consoleWith} for using the current console service inside an effect + * * @category references + * @since 2.0.0 */ export const Console = effect.ConsoleRef; /** - * Creates an Effect that provides access to the current console instance. + * Creates an Effect that provides access to the current console service and lets you perform operations with it within an Effect context. * - * This function allows you to access the console service and perform operations - * with it within an Effect context. + * **Example** (Using the current console service) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -40,17 +47,15 @@ export const Console = effect.ConsoleRef; * ) * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export const consoleWith = f => core.withFiber(fiber => f(fiber.getRef(Console))); /** - * Writes an assertion message to the console if the condition is false. + * Writes the supplied assertion message to the console as an error when `condition` is false; when `condition` is true, no console output is produced. * - * If the condition is true, nothing happens. If the condition is false, - * the message is logged to the console as an error. + * **Example** (Logging failed assertions) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -60,18 +65,27 @@ export const consoleWith = f => core.withFiber(fiber => f(fiber.getRef(Console)) * }) * ``` * + * @category accessors * @since 2.0.0 - * @category accessor */ export const assert = (condition, ...args) => consoleWith(console => effect.sync(() => { console.assert(condition, ...args); })); /** - * Clears the console. + * Runs the current console service's clear operation. * - * This function clears all previously logged messages from the console. + * **When to use** + * + * Use to request that the active console implementation clear its visible + * output. + * + * **Gotchas** + * + * The clearing behavior depends on the active console implementation and host + * environment. + * + * **Example** (Clearing console output) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -82,19 +96,17 @@ export const assert = (condition, ...args) => consoleWith(console => effect.sync * }) * ``` * + * @category accessors * @since 2.0.0 - * @category accessor */ export const clear = /*#__PURE__*/consoleWith(console => effect.sync(() => { console.clear(); })); /** - * Logs the number of times that this particular call to count has been called. + * Logs and increments the counter associated with `label`, using the console's default counter when no label is provided. * - * This function maintains a counter for each unique label and increments it - * each time count is called with that label. + * **Example** (Counting repeated calls) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -105,19 +117,17 @@ export const clear = /*#__PURE__*/consoleWith(console => effect.sync(() => { * }) * ``` * + * @category accessors * @since 2.0.0 - * @category accessor */ export const count = label => consoleWith(console => effect.sync(() => { console.count(label); })); /** - * Resets the counter for the given label. + * Resets the counter associated with the specified label back to zero. * - * This function resets the counter associated with the specified label - * back to zero. + * **Example** (Resetting a counter) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -129,19 +139,23 @@ export const count = label => consoleWith(console => effect.sync(() => { * }) * ``` * + * @category accessors * @since 2.0.0 - * @category accessor */ export const countReset = label => consoleWith(console => effect.sync(() => { console.countReset(label); })); /** - * Outputs a debug message to the console. + * Writes a debug message through the current `Console` service. * - * This function logs messages at the debug level, which may be filtered - * out in production environments. + * **Details** + * + * The arguments are passed to the service's `debug` method when the returned + * Effect is executed. Any filtering behavior depends on the active console + * implementation. + * + * **Example** (Writing debug messages) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -151,19 +165,17 @@ export const countReset = label => consoleWith(console => effect.sync(() => { * }) * ``` * + * @category accessors * @since 2.0.0 - * @category accessor */ export const debug = (...args) => consoleWith(console => effect.sync(() => { console.debug(...args); })); /** - * Displays an interactive list of the properties of the specified object. + * Displays an interactive list of the properties of the specified object, optionally using console-specific inspection options for debugging complex data structures. * - * This function provides a detailed view of an object's properties, - * which can be useful for debugging complex data structures. + * **Example** (Inspecting an object) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -174,41 +186,40 @@ export const debug = (...args) => consoleWith(console => effect.sync(() => { * }) * ``` * + * @category accessors * @since 2.0.0 - * @category accessor */ export const dir = (item, options) => consoleWith(console => effect.sync(() => { console.dir(item, options); })); /** - * Displays an interactive tree of the descendant elements of the specified XML/HTML element. + * Displays an interactive tree of descendant XML or HTML elements, which is particularly useful for inspecting DOM elements in browser environments. * - * This function is particularly useful for inspecting DOM elements in browser environments. + * **Example** (Inspecting XML-like data) * - * @example * ```ts * import { Console, Effect } from "effect" * * const program = Effect.gen(function*() { - * // In a browser environment - * const element = document.getElementById("myElement") - * yield* Console.dirxml(element) + * yield* Console.dirxml("Ada") * }) + * + * Effect.runSync(program) + * // Ada * ``` * + * @category accessors * @since 2.0.0 - * @category accessor */ export const dirxml = (...args) => consoleWith(console => effect.sync(() => { console.dirxml(...args); })); /** - * Outputs an error message to the console. + * Writes an error-level message to the console, typically displayed with error + * styling by the active console implementation. * - * This function logs messages at the error level, typically displayed - * in red or with an error icon in most console implementations. + * **Example** (Writing error messages) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -221,19 +232,17 @@ export const dirxml = (...args) => consoleWith(console => effect.sync(() => { * }) * ``` * + * @category accessors * @since 2.0.0 - * @category accessor */ export const error = (...args) => consoleWith(console => effect.sync(() => { console.error(...args); })); /** - * Creates a new inline group in the console and returns a scoped Effect. + * Creates a scoped console group, optionally collapsed and labeled, and closes it automatically when the Effect scope is finalized. * - * This function creates a collapsible group of console messages. The group - * is automatically closed when the Effect's scope is finalized. + * **Example** (Grouping scoped output) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -249,8 +258,8 @@ export const error = (...args) => consoleWith(console => effect.sync(() => { * }) * ``` * + * @category accessors * @since 2.0.0 - * @category accessor */ export const group = options => consoleWith(console => effect.acquireRelease(effect.sync(() => { if (options?.collapsed) { @@ -262,12 +271,11 @@ export const group = options => consoleWith(console => effect.acquireRelease(eff console.groupEnd(); }))); /** - * Outputs an informational message to the console. + * Writes an informational message to the console, typically displayed with info + * styling by the active console implementation. * - * This function logs messages at the info level, typically displayed - * with an info icon in most console implementations. + * **Example** (Writing informational messages) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -280,18 +288,17 @@ export const group = options => consoleWith(console => effect.acquireRelease(eff * }) * ``` * + * @category accessors * @since 2.0.0 - * @category accessor */ export const info = (...args) => consoleWith(console => effect.sync(() => { console.info(...args); })); /** - * Outputs a message to the console. + * Logs a general-purpose message to the console. * - * This is the most commonly used console method for general purpose logging. + * **Example** (Writing log messages) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -302,19 +309,17 @@ export const info = (...args) => consoleWith(console => effect.sync(() => { * }) * ``` * + * @category accessors * @since 2.0.0 - * @category accessor */ export const log = (...args) => consoleWith(console => effect.sync(() => { console.log(...args); })); /** - * Displays tabular data as a table in the console. + * Displays tabular data as a formatted table in the console, optionally limited to selected properties. * - * This function takes tabular data and displays it in a formatted table, - * making it easier to read structured data. + * **Example** (Displaying tabular data) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -329,19 +334,17 @@ export const log = (...args) => consoleWith(console => effect.sync(() => { * }) * ``` * + * @category accessors * @since 2.0.0 - * @category accessor */ export const table = (tabularData, properties) => consoleWith(console => effect.sync(() => { console.table(tabularData, properties); })); /** - * Starts a timer that can be used to compute the duration of an operation. + * Starts a scoped timer for `label` and automatically ends it when the Effect scope is finalized. * - * This function returns a scoped Effect that starts a timer when entered - * and automatically ends the timer when the scope is finalized. + * **Example** (Timing scoped work) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -357,8 +360,8 @@ export const table = (tabularData, properties) => consoleWith(console => effect. * }) * ``` * + * @category accessors * @since 2.0.0 - * @category accessor */ export const time = label => consoleWith(console => effect.acquireRelease(effect.sync(() => { console.time(label); @@ -366,12 +369,10 @@ export const time = label => consoleWith(console => effect.acquireRelease(effect console.timeEnd(label); }))); /** - * Logs the current value of a timer that was previously started by calling time. + * Logs the elapsed time for an existing timer without stopping it, allowing progress reports for long-running operations. * - * This function logs the elapsed time for a timer without stopping it, - * allowing you to track progress of long-running operations. + * **Example** (Logging timer progress) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -388,19 +389,18 @@ export const time = label => consoleWith(console => effect.acquireRelease(effect * }) * ``` * + * @category accessors * @since 2.0.0 - * @category accessor */ export const timeLog = (label, ...args) => consoleWith(console => effect.sync(() => { console.timeLog(label, ...args); })); /** - * Outputs a stack trace to the console. + * Writes the current stack trace to the console to show how the current point in + * the code was reached. * - * This function logs the current stack trace, which is useful for debugging - * to understand how the current point in the code was reached. + * **Example** (Writing stack traces) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -410,19 +410,18 @@ export const timeLog = (label, ...args) => consoleWith(console => effect.sync(() * }) * ``` * + * @category accessors * @since 2.0.0 - * @category accessor */ export const trace = (...args) => consoleWith(console => effect.sync(() => { console.trace(...args); })); /** - * Outputs a warning message to the console. + * Writes a warning-level message to the console, typically displayed with + * warning styling by the active console implementation. * - * This function logs messages at the warning level, typically displayed - * in yellow or with a warning icon in most console implementations. + * **Example** (Writing warning messages) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -434,20 +433,17 @@ export const trace = (...args) => consoleWith(console => effect.sync(() => { * }) * ``` * + * @category accessors * @since 2.0.0 - * @category accessor */ export const warn = (...args) => consoleWith(console => effect.sync(() => { console.warn(...args); })); /** - * Wraps an Effect with a console group. + * Runs an Effect inside an optionally labeled or collapsed console group, starting the group before execution and ending it after the Effect completes. * - * This function creates a console group around the execution of an Effect, - * automatically starting the group before the Effect runs and ending it - * after the Effect completes. + * **Example** (Wrapping an effect in a group) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -463,8 +459,8 @@ export const warn = (...args) => consoleWith(console => effect.sync(() => { * }) * ``` * + * @category accessors * @since 2.0.0 - * @category accessor */ export const withGroup = /*#__PURE__*/dual(args => core.isEffect(args[0]), (self, options) => consoleWith(console => effect.acquireUseRelease(effect.sync(() => { if (options?.collapsed) { @@ -476,13 +472,10 @@ export const withGroup = /*#__PURE__*/dual(args => core.isEffect(args[0]), (self console.groupEnd(); })))); /** - * Wraps an Effect with a timer. + * Runs an Effect with a console timer, starting the timer before execution and ending it after the Effect completes. * - * This function measures the execution time of an Effect, automatically - * starting a timer before the Effect runs and logging the elapsed time - * after the Effect completes. + * **Example** (Timing an effect) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -497,8 +490,8 @@ export const withGroup = /*#__PURE__*/dual(args => core.isEffect(args[0]), (self * }) * ``` * + * @category accessors * @since 2.0.0 - * @category accessor */ export const withTime = /*#__PURE__*/dual(args => core.isEffect(args[0]), (self, label) => consoleWith(console => effect.acquireUseRelease(effect.sync(() => { console.time(label); diff --git a/.opencode/node_modules/effect/dist/Console.js.map b/.opencode/node_modules/effect/dist/Console.js.map index a604c6af06b4e915f1f8e7dd871a9586d6bc5d70..b9f851cc9d1d32a82ee0fe0937636dce2c3eee31 100644 --- a/.opencode/node_modules/effect/dist/Console.js.map +++ b/.opencode/node_modules/effect/dist/Console.js.map @@ -1 +1 @@ -{"version":3,"file":"Console.js","names":["dual","core","effect","Console","ConsoleRef","consoleWith","f","withFiber","fiber","getRef","assert","condition","args","console","sync","clear","count","label","countReset","debug","dir","item","options","dirxml","error","group","acquireRelease","collapsed","groupCollapsed","groupEnd","info","log","table","tabularData","properties","time","timeEnd","timeLog","trace","warn","withGroup","isEffect","self","acquireUseRelease","withTime"],"sources":["../src/Console.ts"],"sourcesContent":[null],"mappings":"AA0EA,SAASA,IAAI,QAAQ,eAAe;AACpC,OAAO,KAAKC,IAAI,MAAM,oBAAoB;AAC1C,OAAO,KAAKC,MAAM,MAAM,sBAAsB;AAkC9C;;;;;;;;;;;;;;;;;;;;AAoBA,OAAO,MAAMC,OAAO,GAA+BD,MAAM,CAACE,UAAU;AAEpE;;;;;;;;;;;;;;;;;;;;;AAqBA,OAAO,MAAMC,WAAW,GAAaC,CAA+C,IAClFL,IAAI,CAACM,SAAS,CAAEC,KAAK,IAAKF,CAAC,CAACE,KAAK,CAACC,MAAM,CAACN,OAAO,CAAC,CAAC,CAAC;AAErD;;;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,CAACY,IAAI,CAAC,MAAK;EACfD,OAAO,CAACuB,OAAO,CAACnB,KAAK,CAAC;AACxB,CAAC,CAAC,CACL,CACF,CAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"Console.js","names":["dual","core","effect","Console","ConsoleRef","consoleWith","f","withFiber","fiber","getRef","assert","condition","args","console","sync","clear","count","label","countReset","debug","dir","item","options","dirxml","error","group","acquireRelease","collapsed","groupCollapsed","groupEnd","info","log","table","tabularData","properties","time","timeEnd","timeLog","trace","warn","withGroup","isEffect","self","acquireUseRelease","withTime"],"sources":["../src/Console.ts"],"sourcesContent":[null],"mappings":"AAaA,SAASA,IAAI,QAAQ,eAAe;AACpC,OAAO,KAAKC,IAAI,MAAM,oBAAoB;AAC1C,OAAO,KAAKC,MAAM,MAAM,sBAAsB;AA+B9C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BA,OAAO,MAAMC,OAAO,GAA+BD,MAAM,CAACE,UAAU;AAEpE;;;;;;;;;;;;;;;;;;;AAmBA,OAAO,MAAMC,WAAW,GAAaC,CAA+C,IAClFL,IAAI,CAACM,SAAS,CAAEC,KAAK,IAAKF,CAAC,CAACE,KAAK,CAACC,MAAM,CAACN,OAAO,CAAC,CAAC,CAAC;AAErD;;;;;;;;;;;;;;;;;AAiBA,OAAO,MAAMO,MAAM,GAAGA,CAACC,SAAkB,EAAE,GAAGC,IAAwB,KACpEP,WAAW,CAAEQ,OAAO,IAClBX,MAAM,CAACY,IAAI,CAAC,MAAK;EACfD,OAAO,CAACH,MAAM,CAACC,SAAS,EAAE,GAAGC,IAAI,CAAC;AACpC,CAAC,CAAC,CACH;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BA,OAAO,MAAMG,KAAK,gBAAwBV,WAAW,CAAEQ,OAAO,IAC5DX,MAAM,CAACY,IAAI,CAAC,MAAK;EACfD,OAAO,CAACE,KAAK,EAAE;AACjB,CAAC,CAAC,CACH;AAED;;;;;;;;;;;;;;;;;;AAkBA,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M,CAACyC,iBAAiB,CACtBzC,MAAM,CAACY,IAAI,CAAC,MAAK;EACf,IAAIQ,OAAO,EAAEK,SAAS,EAAE;IACtBd,OAAO,CAACe,cAAc,CAACN,OAAO,CAACL,KAAK,CAAC;EACvC,CAAC,MAAM;IACLJ,OAAO,CAACY,KAAK,CAACH,OAAO,EAAEL,KAAK,CAAC;EAC/B;AACF,CAAC,CAAC,EACF,MAAMyB,IAAI,EACV,MACExC,MAAM,CAACY,IAAI,CAAC,MAAK;EACfD,OAAO,CAACgB,QAAQ,EAAE;AACpB,CAAC,CAAC,CACL,CACF,CAAC;AAEJ;;;;;;;;;;;;;;;;;;;;;;AAsBA,OAAO,MAAMe,QAAQ,gBAAG5C,IAAI,CA+CzBY,IAAI,IAAKX,IAAI,CAACwC,QAAQ,CAAC7B,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC8B,IAAI,EAAEzB,KAAK,KAC9CZ,WAAW,CAAEQ,OAAO,IAClBX,MAAM,CAACyC,iBAAiB,CACtBzC,MAAM,CAACY,IAAI,CAAC,MAAK;EACfD,OAAO,CAACsB,IAAI,CAAClB,KAAK,CAAC;AACrB,CAAC,CAAC,EACF,MAAMyB,IAAI,EACV,MACExC,MAAM,CAACY,IAAI,CAAC,MAAK;EACfD,OAAO,CAACuB,OAAO,CAACnB,KAAK,CAAC;AACxB,CAAC,CAAC,CACL,CACF,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Context.d.ts b/.opencode/node_modules/effect/dist/Context.d.ts index 22bd372df5ef7ceea4d3ed3231317af4532f5655..2482ab2abcf8a2b43b8bb8cdc762206736199972 100644 --- a/.opencode/node_modules/effect/dist/Context.d.ts +++ b/.opencode/node_modules/effect/dist/Context.d.ts @@ -1,16 +1,16 @@ /** - * This module provides a data structure called `Context` that can be used - * for dependency injection in effectful programs. It is essentially a table - * mapping `Service`s identifiers to their implementations, and can be used to - * manage dependencies in a type-safe way. The `Context` data structure is - * essentially a way of providing access to a set of related services that can - * be passed around as a single unit. This module provides functions to create, - * modify, and query the contents of a `Context`, as well as a number of - * utility types for working with a `Context`. + * Stores Effect services in typed maps. + * + * A `Context` holds service implementations under `Context.Service` or + * `Context.Reference` keys, and its type records which keys are present. + * Effects use contexts as their environment, so services can be provided once + * instead of passed through every function call. This module includes helpers + * for creating keys, building contexts, adding and reading services, merging + * contexts, and selecting or removing services. * * @since 4.0.0 */ -import type { Effect, EffectIterator, Yieldable } from "./Effect.ts"; +import type { Effect, EffectIterator } from "./Effect.ts"; import * as Equal from "./Equal.ts"; import { type LazyArg } from "./Function.ts"; import type { Inspectable } from "./Inspectable.ts"; @@ -18,31 +18,60 @@ import * as Option from "./Option.ts"; import type { Pipeable } from "./Pipeable.ts"; import type * as Types from "./Types.ts"; /** + * String literal type used as the runtime type identifier for `Context` + * service keys. + * + * @category type IDs * @since 4.0.0 - * @category Type Identifiers */ export type ServiceTypeId = "~effect/Context/Service"; /** + * Runtime type identifier attached to `Context` service keys and used by + * `isKey` to recognize them. + * + * @category type IDs * @since 4.0.0 - * @category Type Identifiers */ export declare const ServiceTypeId: ServiceTypeId; /** - * The base type used for all Context keys. + * Typed identifier for a service stored in a `Context`. * + * **When to use** + * + * Use as the typed handle for storing, retrieving, and requiring a specific + * service in a `Context`. + * + * **Details** + * + * `Identifier` tracks the requirement in Effect types, while `Shape` is the + * service implementation retrieved by the key. A key is also an Effect value, + * so yielding it inside `Effect.gen` retrieves the service from the current + * fiber context. + * + * @see {@link Service} for creating required service keys + * @see {@link Reference} for creating service keys with default values + * + * @category models * @since 4.0.0 - * @category Models */ -export interface Key extends Pipeable, Inspectable { +export interface Key extends Effect { readonly [ServiceTypeId]: ServiceTypeId; readonly Service: Shape; readonly Identifier: Identifier; readonly key: string; readonly stack?: string | undefined; - asEffect(): Effect; } /** - * @example + * Context key with helper methods for working with a service. + * + * **Details** + * + * `context` creates a one-service `Context`, `use` and `useSync` retrieve the + * service from the current Effect context before applying a function, and `of` + * is a type-level helper for service values. + * + * **Example** (Defining a service key) + * * ```ts * import { Context } from "effect" * @@ -55,31 +84,50 @@ export interface Key extends Pipeable, Inspectable { * const context = Context.make(Database, { query: (sql) => `Result: ${sql}` }) * ``` * + * @category models * @since 4.0.0 - * @category Models */ -export interface Service extends Key, Yieldable, Shape, never, Identifier> { +export interface Service extends Key { of(this: void, self: Shape): Shape; context(self: Shape): Context; use(f: (service: Shape) => Effect): Effect; useSync(f: (service: Shape) => A): Effect; } /** + * Class-style service key produced by `Context.Service()("Id")`. + * + * **When to use** + * + * Use when declaring a service as a class so the class value can serve as the + * `Context` key. + * + * **Details** + * + * The class itself is the `Context` key, and its string `key` identifies the + * service at runtime. + * + * @see {@link Service} for creating function-style keys or class-style service keys + * + * @category models * @since 4.0.0 - * @category Models */ export interface ServiceClass extends Service { new (_: never): ServiceClass.Shape; readonly key: Identifier; } /** + * Namespace containing helper types for class-style `Context.Service` + * declarations. + * * @since 4.0.0 - * @category Models */ export declare namespace ServiceClass { /** + * Runtime and type-level metadata carried by a class-style service key, + * including its service type identifier, string key, and service shape. + * + * @category models * @since 4.0.0 - * @category Models */ interface Shape { readonly [ServiceTypeId]: typeof ServiceTypeId; @@ -88,7 +136,28 @@ export declare namespace ServiceClass { } } /** - * @example + * Creates a `Context` service key. + * + * **When to use** + * + * Use when you need to define a context service key for a dependency that must + * be provided by the surrounding context. + * + * **Details** + * + * Call `Context.Service("Key")` for a function-style key, or use the two-stage + * form `Context.Service()("Key")` for class-style service + * declarations. The returned key can be yielded as an Effect and passed to + * `Context.make`, `Context.add`, and the Context getter functions. + * + * **Gotchas** + * + * The string key is the runtime identity of the service. Reusing the same key + * string for unrelated services makes them occupy the same slot in a + * `Context`. + * + * **Example** (Creating service keys) + * * ```ts * import { Context } from "effect" * @@ -109,12 +178,35 @@ export declare namespace ServiceClass { * const config = Context.make(Config, { port: 8080 }) * ``` * + * @see {@link Reference} for service keys with default values + * + * @category constructors * @since 4.0.0 - * @category Constructors */ export declare const Service: { /** - * @example + * Creates a `Context` service key. + * + * **When to use** + * + * Use when you need to define a context service key for a dependency that must + * be provided by the surrounding context. + * + * **Details** + * + * Call `Context.Service("Key")` for a function-style key, or use the two-stage + * form `Context.Service()("Key")` for class-style service + * declarations. The returned key can be yielded as an Effect and passed to + * `Context.make`, `Context.add`, and the Context getter functions. + * + * **Gotchas** + * + * The string key is the runtime identity of the service. Reusing the same key + * string for unrelated services makes them occupy the same slot in a + * `Context`. + * + * **Example** (Creating service keys) + * * ```ts * import { Context } from "effect" * @@ -135,12 +227,35 @@ export declare const Service: { * const config = Context.make(Config, { port: 8080 }) * ``` * + * @see {@link Reference} for service keys with default values + * + * @category constructors * @since 4.0.0 - * @category Constructors */ (key: string): Service; /** - * @example + * Creates a `Context` service key. + * + * **When to use** + * + * Use when you need to define a context service key for a dependency that must + * be provided by the surrounding context. + * + * **Details** + * + * Call `Context.Service("Key")` for a function-style key, or use the two-stage + * form `Context.Service()("Key")` for class-style service + * declarations. The returned key can be yielded as an Effect and passed to + * `Context.make`, `Context.add`, and the Context getter functions. + * + * **Gotchas** + * + * The string key is the runtime identity of the service. Reusing the same key + * string for unrelated services makes them occupy the same slot in a + * `Context`. + * + * **Example** (Creating service keys) + * * ```ts * import { Context } from "effect" * @@ -161,8 +276,10 @@ export declare const Service: { * const config = Context.make(Config, { port: 8080 }) * ``` * + * @see {@link Reference} for service keys with default values + * + * @category constructors * @since 4.0.0 - * @category Constructors */ (): = never>(id: Identifier, options?: { readonly make: ((...args: Args) => Effect) | Effect | undefined; @@ -170,7 +287,28 @@ export declare const Service: { readonly make: [Args] extends [never] ? Effect : (...args: Args) => Effect; }); /** - * @example + * Creates a `Context` service key. + * + * **When to use** + * + * Use when you need to define a context service key for a dependency that must + * be provided by the surrounding context. + * + * **Details** + * + * Call `Context.Service("Key")` for a function-style key, or use the two-stage + * form `Context.Service()("Key")` for class-style service + * declarations. The returned key can be yielded as an Effect and passed to + * `Context.make`, `Context.add`, and the Context getter functions. + * + * **Gotchas** + * + * The string key is the runtime identity of the service. Reusing the same key + * string for unrelated services makes them occupy the same slot in a + * `Context`. + * + * **Example** (Creating service keys) + * * ```ts * import { Context } from "effect" * @@ -191,8 +329,10 @@ export declare const Service: { * const config = Context.make(Config, { port: 8080 }) * ``` * + * @see {@link Reference} for service keys with default values + * + * @category constructors * @since 4.0.0 - * @category Constructors */ (): | ((...args: any) => Effect)>(id: Identifier, options: { readonly make: Make; @@ -202,7 +342,16 @@ export declare const Service: { }; declare const ReferenceTypeId: "~effect/Context/Reference"; /** - * @example + * Service key with a lazily computed default value. + * + * **Details** + * + * When a `Reference` is requested from a `Context` that does not contain an + * override, Context getters that resolve references return the cached default + * value instead of failing. + * + * **Example** (Defining a reference with a default value) + * * ```ts * import { Context } from "effect" * @@ -217,8 +366,8 @@ declare const ReferenceTypeId: "~effect/Context/Reference"; * const logger = Context.get(context, LoggerRef) // Uses default value * ``` * - * @since 4.0.0 - * @category Models + * @category models + * @since 3.11.0 */ export interface Reference extends Service { readonly [ReferenceTypeId]: typeof ReferenceTypeId; @@ -227,7 +376,10 @@ export interface Reference extends Service { new (_: never): {}; } /** - * @example + * Namespace containing utility types for `Context` service keys. + * + * **Example** (Extracting service types) + * * ```ts * import { Context } from "effect" * @@ -242,12 +394,15 @@ export interface Reference extends Service { * type DatabaseId = Context.Service.Identifier * ``` * - * @since 4.0.0 - * @category Models + * @since 2.0.0 */ export declare namespace Service { /** - * @example + * Type that matches any `Context` service key regardless of its identifier or + * service shape. + * + * **Example** (Typing any service key) + * * ```ts * import { Context } from "effect" * @@ -258,12 +413,16 @@ export declare namespace Service { * ] * ``` * + * @category models * @since 4.0.0 - * @category Models */ type Any = Key | Key; /** - * @example + * Extracts the service implementation type stored behind a `Context` service + * key. + * + * **Example** (Extracting a service shape) + * * ```ts * import { Context } from "effect" * @@ -276,12 +435,16 @@ export declare namespace Service { * // DatabaseService is { query: (sql: string) => string } * ``` * + * @category models * @since 4.0.0 - * @category Models */ type Shape = T extends Key ? S : never; /** - * @example + * Extracts the identifier, or requirement type, associated with a `Context` + * service key. + * + * **Example** (Extracting a service identifier) + * * ```ts * import { Context } from "effect" * @@ -294,14 +457,23 @@ export declare namespace Service { * // DatabaseId is the identifier type * ``` * - * @since 4.0.0 - * @category Models + * @category models + * @since 2.0.0 */ type Identifier = T extends Key ? I : never; } declare const TypeId: "~effect/Context"; /** - * @example + * Immutable collection of service implementations used for dependency + * injection in Effect programs. + * + * **Details** + * + * The type parameter tracks the service identifiers available in the context. + * At runtime, services are stored by each key's string `key`. + * + * **Example** (Creating a context with multiple services) + * * ```ts * import { Context } from "effect" * @@ -317,8 +489,8 @@ declare const TypeId: "~effect/Context"; * .pipe(Context.add(Database, { query: (sql) => `Result: ${sql}` })) * ``` * - * @since 4.0.0 - * @category Models + * @category models + * @since 2.0.0 */ export interface Context extends Equal.Equal, Pipeable, Inspectable { readonly [TypeId]: { @@ -328,7 +500,21 @@ export interface Context extends Equal.Equal, Pipeable, Inspectable mutable: boolean; } /** - * @example + * Creates a `Context` from an existing service map. + * + * **When to use** + * + * Use when constructing a low-level `Context` from a trusted map whose lifecycle + * you control. + * + * **Gotchas** + * + * This is unsafe because later mutation of the provided map can affect the + * created `Context`. Prefer `empty`, `make`, `add`, or `merge` for normal + * Context construction. + * + * **Example** (Creating a context from a map) + * * ```ts * import { Context } from "effect" * @@ -340,14 +526,30 @@ export interface Context extends Equal.Equal, Pipeable, Inspectable * const context = Context.makeUnsafe(map) * ``` * + * @category constructors * @since 4.0.0 - * @category Constructors */ export declare const makeUnsafe: (mapUnsafe: ReadonlyMap) => Context; /** - * Checks if the provided argument is a `Context`. + * Checks whether the provided argument is a `Context`. + * + * **When to use** + * + * Use to narrow an unknown value before passing it to APIs that require a + * `Context`. + * + * **Details** + * + * This checks the runtime `Context` marker and does not inspect which services + * the context contains. + * + * **Gotchas** + * + * This guard only proves that the value is a `Context`; it does not prove that + * any specific service is present. + * + * **Example** (Checking for contexts) * - * @example * ```ts * import { Context } from "effect" * import * as assert from "node:assert" @@ -355,14 +557,18 @@ export declare const makeUnsafe: (mapUnsafe: ReadonlyMap u is Context; /** - * Checks if the provided argument is a `Key`. + * Checks whether the provided argument is a `Key`. + * + * **Example** (Checking for keys) * - * @example * ```ts * import { Context } from "effect" * import * as assert from "node:assert" @@ -370,14 +576,15 @@ export declare const isContext: (u: unknown) => u is Context; * assert.strictEqual(Context.isKey(Context.Service("Service")), true) * ``` * + * @category guards * @since 4.0.0 - * @category Guards */ export declare const isKey: (u: unknown) => u is Key; /** - * Checks if the provided argument is a `Reference`. + * Checks whether the provided argument is a `Reference`. + * + * **Example** (Checking for references) * - * @example * ```ts * import { Context } from "effect" * import * as assert from "node:assert" @@ -390,14 +597,15 @@ export declare const isKey: (u: unknown) => u is Key; * assert.strictEqual(Context.isReference(Context.Service("Key")), false) * ``` * - * @since 4.0.0 - * @category Guards + * @category guards + * @since 3.11.0 */ export declare const isReference: (u: unknown) => u is Reference; /** * Returns an empty `Context`. * - * @example + * **Example** (Creating an empty context) + * * ```ts * import { Context } from "effect" * import * as assert from "node:assert" @@ -405,14 +613,15 @@ export declare const isReference: (u: unknown) => u is Reference; * assert.strictEqual(Context.isContext(Context.empty()), true) * ``` * - * @since 4.0.0 - * @category Constructors + * @category constructors + * @since 2.0.0 */ export declare const empty: () => Context; /** * Creates a new `Context` with a single service associated to the key. * - * @example + * **Example** (Creating a context with one service) + * * ```ts * import { Context } from "effect" * import * as assert from "node:assert" @@ -424,16 +633,26 @@ export declare const empty: () => Context; * assert.deepStrictEqual(Context.get(context, Port), { PORT: 8080 }) * ``` * - * @since 4.0.0 - * @category Constructors + * @category constructors + * @since 2.0.0 */ export declare const make: (key: Key, service: Types.NoInfer) => Context; /** * Adds a service to a given `Context`. * - * @example + * **When to use** + * + * Use when you need to store a known service value in a `Context`. + * + * **Details** + * + * If the context already contains the same service key, the new service + * replaces the previous one. + * + * **Example** (Adding a service to a context) + * * ```ts - * import { pipe, Context } from "effect" + * import { Context, pipe } from "effect" * import * as assert from "node:assert" * * const Port = Context.Service<{ PORT: number }>("Port") @@ -450,16 +669,28 @@ export declare const make: (key: Key, service: Types.NoInfer) => * assert.deepStrictEqual(Context.get(context, Timeout), { TIMEOUT: 5000 }) * ``` * - * @since 4.0.0 - * @category Adders + * @see {@link addOrOmit} for adding or removing a service from an `Option` + * + * @category adders + * @since 2.0.0 */ export declare const add: { /** * Adds a service to a given `Context`. * - * @example + * **When to use** + * + * Use when you need to store a known service value in a `Context`. + * + * **Details** + * + * If the context already contains the same service key, the new service + * replaces the previous one. + * + * **Example** (Adding a service to a context) + * * ```ts - * import { pipe, Context } from "effect" + * import { Context, pipe } from "effect" * import * as assert from "node:assert" * * const Port = Context.Service<{ PORT: number }>("Port") @@ -476,16 +707,28 @@ export declare const add: { * assert.deepStrictEqual(Context.get(context, Timeout), { TIMEOUT: 5000 }) * ``` * - * @since 4.0.0 - * @category Adders + * @see {@link addOrOmit} for adding or removing a service from an `Option` + * + * @category adders + * @since 2.0.0 */ (key: Key, service: Types.NoInfer): (self: Context) => Context; /** * Adds a service to a given `Context`. * - * @example + * **When to use** + * + * Use when you need to store a known service value in a `Context`. + * + * **Details** + * + * If the context already contains the same service key, the new service + * replaces the previous one. + * + * **Example** (Adding a service to a context) + * * ```ts - * import { pipe, Context } from "effect" + * import { Context, pipe } from "effect" * import * as assert from "node:assert" * * const Port = Context.Service<{ PORT: number }>("Port") @@ -502,35 +745,139 @@ export declare const add: { * assert.deepStrictEqual(Context.get(context, Timeout), { TIMEOUT: 5000 }) * ``` * - * @since 4.0.0 - * @category Adders + * @see {@link addOrOmit} for adding or removing a service from an `Option` + * + * @category adders + * @since 2.0.0 */ (self: Context, key: Key, service: Types.NoInfer): Context; }; /** + * Adds or removes a service depending on an `Option`. + * + * **When to use** + * + * Use when you need to add or omit a `Context` service based on an `Option`. + * + * **Details** + * + * When `service` is `Option.some`, the value is stored for the key. When it is + * `Option.none`, the key is removed from the returned `Context`. + * + * **Example** (Adding optional services) + * + * ```ts + * import { Context, Option } from "effect" + * + * const Port = Context.Service<{ PORT: number }>("Port") + * + * const withPort = Context.empty().pipe( + * Context.addOrOmit(Port, Option.some({ PORT: 8080 })) + * ) + * + * const withoutPort = withPort.pipe( + * Context.addOrOmit(Port, Option.none()) + * ) + * ``` + * + * @see {@link add} for always storing a service value + * + * @category adders * @since 4.0.0 - * @category Adders */ export declare const addOrOmit: { /** + * Adds or removes a service depending on an `Option`. + * + * **When to use** + * + * Use when you need to add or omit a `Context` service based on an `Option`. + * + * **Details** + * + * When `service` is `Option.some`, the value is stored for the key. When it is + * `Option.none`, the key is removed from the returned `Context`. + * + * **Example** (Adding optional services) + * + * ```ts + * import { Context, Option } from "effect" + * + * const Port = Context.Service<{ PORT: number }>("Port") + * + * const withPort = Context.empty().pipe( + * Context.addOrOmit(Port, Option.some({ PORT: 8080 })) + * ) + * + * const withoutPort = withPort.pipe( + * Context.addOrOmit(Port, Option.none()) + * ) + * ``` + * + * @see {@link add} for always storing a service value + * + * @category adders * @since 4.0.0 - * @category Adders */ (key: Key, service: Option.Option>): (self: Context) => Context; /** + * Adds or removes a service depending on an `Option`. + * + * **When to use** + * + * Use when you need to add or omit a `Context` service based on an `Option`. + * + * **Details** + * + * When `service` is `Option.some`, the value is stored for the key. When it is + * `Option.none`, the key is removed from the returned `Context`. + * + * **Example** (Adding optional services) + * + * ```ts + * import { Context, Option } from "effect" + * + * const Port = Context.Service<{ PORT: number }>("Port") + * + * const withPort = Context.empty().pipe( + * Context.addOrOmit(Port, Option.some({ PORT: 8080 })) + * ) + * + * const withoutPort = withPort.pipe( + * Context.addOrOmit(Port, Option.none()) + * ) + * ``` + * + * @see {@link add} for always storing a service value + * + * @category adders * @since 4.0.0 - * @category Adders */ (self: Context, key: Key, service: Option.Option>): Context; }; /** - * Get a service from the context that corresponds to the given key, or - * use the fallback value. + * Gets the service for a key, or evaluates the fallback when a non-reference + * key is absent. + * + * **When to use** + * + * Use when you need a fallback for a missing `Context.Service` key while still + * resolving `Context.Reference` defaults. + * + * **Details** + * + * If the key is a `Context.Reference` and no override is stored in the + * context, its cached default value is returned instead of the fallback. + * + * **Gotchas** + * + * The fallback is not evaluated for missing `Context.Reference` keys because + * references resolve to their default value. + * + * **Example** (Falling back for missing services) * - * @example * ```ts * import { Context } from "effect" - * import * as assert from "node:assert" * * const Logger = Context.Service<{ log: (msg: string) => void }>("Logger") * const Database = Context.Service<{ query: (sql: string) => string }>( @@ -548,22 +895,39 @@ export declare const addOrOmit: { * () => ({ query: () => "fallback" }) * ) * - * assert.deepStrictEqual(logger, { log: (msg: string) => console.log(msg) }) - * assert.deepStrictEqual(database, { query: () => "fallback" }) + * console.log(logger === Context.get(context, Logger)) // true + * console.log(database.query("SELECT 1")) // "fallback" * ``` * - * @since 4.0.0 - * @category Getters + * @see {@link getOption} for returning `Option.none` when a non-reference key is missing + * + * @category getters + * @since 3.7.0 */ export declare const getOrElse: { /** - * Get a service from the context that corresponds to the given key, or - * use the fallback value. + * Gets the service for a key, or evaluates the fallback when a non-reference + * key is absent. + * + * **When to use** + * + * Use when you need a fallback for a missing `Context.Service` key while still + * resolving `Context.Reference` defaults. + * + * **Details** + * + * If the key is a `Context.Reference` and no override is stored in the + * context, its cached default value is returned instead of the fallback. + * + * **Gotchas** + * + * The fallback is not evaluated for missing `Context.Reference` keys because + * references resolve to their default value. + * + * **Example** (Falling back for missing services) * - * @example * ```ts * import { Context } from "effect" - * import * as assert from "node:assert" * * const Logger = Context.Service<{ log: (msg: string) => void }>("Logger") * const Database = Context.Service<{ query: (sql: string) => string }>( @@ -581,22 +945,39 @@ export declare const getOrElse: { * () => ({ query: () => "fallback" }) * ) * - * assert.deepStrictEqual(logger, { log: (msg: string) => console.log(msg) }) - * assert.deepStrictEqual(database, { query: () => "fallback" }) + * console.log(logger === Context.get(context, Logger)) // true + * console.log(database.query("SELECT 1")) // "fallback" * ``` * - * @since 4.0.0 - * @category Getters + * @see {@link getOption} for returning `Option.none` when a non-reference key is missing + * + * @category getters + * @since 3.7.0 */ (key: Key, orElse: LazyArg): (self: Context) => S | B; /** - * Get a service from the context that corresponds to the given key, or - * use the fallback value. + * Gets the service for a key, or evaluates the fallback when a non-reference + * key is absent. + * + * **When to use** + * + * Use when you need a fallback for a missing `Context.Service` key while still + * resolving `Context.Reference` defaults. + * + * **Details** + * + * If the key is a `Context.Reference` and no override is stored in the + * context, its cached default value is returned instead of the fallback. + * + * **Gotchas** + * + * The fallback is not evaluated for missing `Context.Reference` keys because + * references resolve to their default value. + * + * **Example** (Falling back for missing services) * - * @example * ```ts * import { Context } from "effect" - * import * as assert from "node:assert" * * const Logger = Context.Service<{ log: (msg: string) => void }>("Logger") * const Database = Context.Service<{ query: (sql: string) => string }>( @@ -614,43 +995,95 @@ export declare const getOrElse: { * () => ({ query: () => "fallback" }) * ) * - * assert.deepStrictEqual(logger, { log: (msg: string) => console.log(msg) }) - * assert.deepStrictEqual(database, { query: () => "fallback" }) + * console.log(logger === Context.get(context, Logger)) // true + * console.log(database.query("SELECT 1")) // "fallback" * ``` * - * @since 4.0.0 - * @category Getters + * @see {@link getOption} for returning `Option.none` when a non-reference key is missing + * + * @category getters + * @since 3.7.0 */ (self: Context, key: Key, orElse: LazyArg): S | B; }; /** + * Returns the service currently stored for a key, or `undefined` when the key + * is absent. + * + * **When to use** + * + * Use when you need to read the service stored for a key without resolving + * `Context.Reference` defaults. + * + * **Gotchas** + * + * This is a raw lookup and does not resolve default values for + * `Context.Reference` keys. + * + * @see {@link getOption} for a reference-aware optional lookup + * + * @category getters * @since 4.0.0 - * @category Getters */ export declare const getOrUndefined: { /** + * Returns the service currently stored for a key, or `undefined` when the key + * is absent. + * + * **When to use** + * + * Use when you need to read the service stored for a key without resolving + * `Context.Reference` defaults. + * + * **Gotchas** + * + * This is a raw lookup and does not resolve default values for + * `Context.Reference` keys. + * + * @see {@link getOption} for a reference-aware optional lookup + * + * @category getters * @since 4.0.0 - * @category Getters */ (key: Key): (self: Context) => S | undefined; /** + * Returns the service currently stored for a key, or `undefined` when the key + * is absent. + * + * **When to use** + * + * Use when you need to read the service stored for a key without resolving + * `Context.Reference` defaults. + * + * **Gotchas** + * + * This is a raw lookup and does not resolve default values for + * `Context.Reference` keys. + * + * @see {@link getOption} for a reference-aware optional lookup + * + * @category getters * @since 4.0.0 - * @category Getters */ (self: Context, key: Key): S | undefined; }; /** - * Get a service from the context that corresponds to the given key. + * Gets the service for a key, throwing if an absent non-reference key cannot be + * resolved. + * + * **When to use** * - * This function is unsafe because if the key is not present in the context, a - * runtime error will be thrown. + * Use when you need to read a service from a context whose type does not prove + * the service is present. * - * For a safer version see {@link getOption}. + * **Details** + * + * If the key is a `Context.Reference` and no override is stored in the + * context, its cached default value is returned. For absent non-reference keys, + * this function throws a runtime error. * - * @param self - The `Context` to search for the service. - * @param service - The `Service` of the service to retrieve. + * **Example** (Getting services unsafely) * - * @example * ```ts * import { Context } from "effect" * import * as assert from "node:assert" @@ -664,22 +1097,30 @@ export declare const getOrUndefined: { * assert.throws(() => Context.getUnsafe(context, Timeout)) * ``` * - * @since 4.0.0 + * @see {@link get} for type-checked service access + * @see {@link getOption} for optional service access + * * @category unsafe + * @since 4.0.0 */ export declare const getUnsafe: { /** - * Get a service from the context that corresponds to the given key. + * Gets the service for a key, throwing if an absent non-reference key cannot be + * resolved. * - * This function is unsafe because if the key is not present in the context, a - * runtime error will be thrown. + * **When to use** * - * For a safer version see {@link getOption}. + * Use when you need to read a service from a context whose type does not prove + * the service is present. * - * @param self - The `Context` to search for the service. - * @param service - The `Service` of the service to retrieve. + * **Details** + * + * If the key is a `Context.Reference` and no override is stored in the + * context, its cached default value is returned. For absent non-reference keys, + * this function throws a runtime error. + * + * **Example** (Getting services unsafely) * - * @example * ```ts * import { Context } from "effect" * import * as assert from "node:assert" @@ -693,22 +1134,30 @@ export declare const getUnsafe: { * assert.throws(() => Context.getUnsafe(context, Timeout)) * ``` * - * @since 4.0.0 + * @see {@link get} for type-checked service access + * @see {@link getOption} for optional service access + * * @category unsafe + * @since 4.0.0 */ (service: Key): (self: Context) => S; /** - * Get a service from the context that corresponds to the given key. + * Gets the service for a key, throwing if an absent non-reference key cannot be + * resolved. + * + * **When to use** * - * This function is unsafe because if the key is not present in the context, a - * runtime error will be thrown. + * Use when you need to read a service from a context whose type does not prove + * the service is present. * - * For a safer version see {@link getOption}. + * **Details** * - * @param self - The `Context` to search for the service. - * @param service - The `Service` of the service to retrieve. + * If the key is a `Context.Reference` and no override is stored in the + * context, its cached default value is returned. For absent non-reference keys, + * this function throws a runtime error. + * + * **Example** (Getting services unsafely) * - * @example * ```ts * import { Context } from "effect" * import * as assert from "node:assert" @@ -722,20 +1171,26 @@ export declare const getUnsafe: { * assert.throws(() => Context.getUnsafe(context, Timeout)) * ``` * - * @since 4.0.0 + * @see {@link get} for type-checked service access + * @see {@link getOption} for optional service access + * * @category unsafe + * @since 4.0.0 */ (self: Context, services: Key): S; }; /** - * Get a service from the context that corresponds to the given key. + * Gets a service from the context that corresponds to the given key. + * + * **When to use** * - * @param self - The `Context` to search for the service. - * @param service - The `Service` of the service to retrieve. + * Use when you need type-checked access to a service already included in the + * context type. + * + * **Example** (Getting a service from a context) * - * @example * ```ts - * import { pipe, Context } from "effect" + * import { Context, pipe } from "effect" * import * as assert from "node:assert" * * const Port = Context.Service<{ PORT: number }>("Port") @@ -749,19 +1204,25 @@ export declare const getUnsafe: { * assert.deepStrictEqual(Context.get(context, Timeout), { TIMEOUT: 5000 }) * ``` * - * @since 4.0.0 - * @category Getters + * @see {@link getOption} for optional service access + * @see {@link getOrElse} for fallback values + * + * @category getters + * @since 2.0.0 */ export declare const get: { /** - * Get a service from the context that corresponds to the given key. + * Gets a service from the context that corresponds to the given key. + * + * **When to use** + * + * Use when you need type-checked access to a service already included in the + * context type. * - * @param self - The `Context` to search for the service. - * @param service - The `Service` of the service to retrieve. + * **Example** (Getting a service from a context) * - * @example * ```ts - * import { pipe, Context } from "effect" + * import { Context, pipe } from "effect" * import * as assert from "node:assert" * * const Port = Context.Service<{ PORT: number }>("Port") @@ -775,19 +1236,25 @@ export declare const get: { * assert.deepStrictEqual(Context.get(context, Timeout), { TIMEOUT: 5000 }) * ``` * - * @since 4.0.0 - * @category Getters + * @see {@link getOption} for optional service access + * @see {@link getOrElse} for fallback values + * + * @category getters + * @since 2.0.0 */ (service: Key): (self: Context) => S; /** - * Get a service from the context that corresponds to the given key. + * Gets a service from the context that corresponds to the given key. + * + * **When to use** * - * @param self - The `Context` to search for the service. - * @param service - The `Service` of the service to retrieve. + * Use when you need type-checked access to a service already included in the + * context type. + * + * **Example** (Getting a service from a context) * - * @example * ```ts - * import { pipe, Context } from "effect" + * import { Context, pipe } from "effect" * import * as assert from "node:assert" * * const Port = Context.Service<{ PORT: number }>("Port") @@ -801,16 +1268,37 @@ export declare const get: { * assert.deepStrictEqual(Context.get(context, Timeout), { TIMEOUT: 5000 }) * ``` * - * @since 4.0.0 - * @category Getters + * @see {@link getOption} for optional service access + * @see {@link getOrElse} for fallback values + * + * @category getters + * @since 2.0.0 */ (self: Context, service: Key): S; }; /** - * @example + * Gets the value for a `Context.Reference`, returning its cached default when + * the context does not contain an override. + * + * **When to use** + * + * Use when you need a `Context.Reference` value resolved from either a stored + * override or the reference's default value. + * + * **Details** + * + * Stored overrides take precedence. If no override is present, the reference's + * default value is computed lazily and cached on the reference itself. + * + * **Gotchas** + * + * Mutable default values can be shared across contexts unless an override is + * provided, because the default is cached on the `Context.Reference`. + * + * **Example** (Getting reference defaults unsafely) + * * ```ts * import { Context } from "effect" - * import * as assert from "node:assert" * * const LoggerRef = Context.Reference("Logger", { * defaultValue: () => ({ log: (msg: string) => console.log(msg) }) @@ -819,24 +1307,35 @@ export declare const get: { * const context = Context.empty() * const logger = Context.getReferenceUnsafe(context, LoggerRef) * - * assert.deepStrictEqual(logger, { log: (msg: string) => console.log(msg) }) + * console.log(typeof logger.log) // "function" * ``` * - * @since 4.0.0 + * @see {@link getUnsafe} for unsafe access with any service key + * @see {@link get} for type-checked reference-aware access + * @see {@link getOption} for optional access to non-reference keys + * * @category unsafe + * @since 4.0.0 */ export declare const getReferenceUnsafe: (self: Context, service: Reference) => S; /** - * Get the value associated with the specified key from the context wrapped in - * an `Option` object. If the key is not found, the `Option` object will be - * `None`. + * Gets the service for a key safely wrapped in an `Option`. + * + * **When to use** + * + * Use when you need to read a `Context` service as an `Option` so absence is + * represented as data. * - * @param self - The `Context` to search for the service. - * @param service - The `Service` of the service to retrieve. + * **Details** + * + * Returns `Option.some` when the service is stored in the context. If the key + * is a `Context.Reference` and no override is stored, returns `Option.some` of + * the cached default value. Missing non-reference keys return `Option.none`. + * + * **Example** (Getting optional services) * - * @example * ```ts - * import { Option, Context } from "effect" + * import { Context, Option } from "effect" * import * as assert from "node:assert" * * const Port = Context.Service<{ PORT: number }>("Port") @@ -851,21 +1350,30 @@ export declare const getReferenceUnsafe: (self: Context, * assert.deepStrictEqual(Context.getOption(context, Timeout), Option.none()) * ``` * - * @since 4.0.0 - * @category Getters + * @see {@link getOrElse} for returning a fallback value directly + * + * @category getters + * @since 2.0.0 */ export declare const getOption: { /** - * Get the value associated with the specified key from the context wrapped in - * an `Option` object. If the key is not found, the `Option` object will be - * `None`. + * Gets the service for a key safely wrapped in an `Option`. * - * @param self - The `Context` to search for the service. - * @param service - The `Service` of the service to retrieve. + * **When to use** + * + * Use when you need to read a `Context` service as an `Option` so absence is + * represented as data. + * + * **Details** + * + * Returns `Option.some` when the service is stored in the context. If the key + * is a `Context.Reference` and no override is stored, returns `Option.some` of + * the cached default value. Missing non-reference keys return `Option.none`. + * + * **Example** (Getting optional services) * - * @example * ```ts - * import { Option, Context } from "effect" + * import { Context, Option } from "effect" * import * as assert from "node:assert" * * const Port = Context.Service<{ PORT: number }>("Port") @@ -880,21 +1388,30 @@ export declare const getOption: { * assert.deepStrictEqual(Context.getOption(context, Timeout), Option.none()) * ``` * - * @since 4.0.0 - * @category Getters + * @see {@link getOrElse} for returning a fallback value directly + * + * @category getters + * @since 2.0.0 */ (service: Key): (self: Context) => Option.Option; /** - * Get the value associated with the specified key from the context wrapped in - * an `Option` object. If the key is not found, the `Option` object will be - * `None`. + * Gets the service for a key safely wrapped in an `Option`. * - * @param self - The `Context` to search for the service. - * @param service - The `Service` of the service to retrieve. + * **When to use** + * + * Use when you need to read a `Context` service as an `Option` so absence is + * represented as data. + * + * **Details** + * + * Returns `Option.some` when the service is stored in the context. If the key + * is a `Context.Reference` and no override is stored, returns `Option.some` of + * the cached default value. Missing non-reference keys return `Option.none`. + * + * **Example** (Getting optional services) * - * @example * ```ts - * import { Option, Context } from "effect" + * import { Context, Option } from "effect" * import * as assert from "node:assert" * * const Port = Context.Service<{ PORT: number }>("Port") @@ -909,18 +1426,27 @@ export declare const getOption: { * assert.deepStrictEqual(Context.getOption(context, Timeout), Option.none()) * ``` * - * @since 4.0.0 - * @category Getters + * @see {@link getOrElse} for returning a fallback value directly + * + * @category getters + * @since 2.0.0 */ (self: Context, service: Key): Option.Option; }; /** - * Merges two `Context`s, returning a new `Context` containing the services of both. + * Merges two `Context`s into one. + * + * **When to use** + * + * Use when you need to combine two contexts. + * + * **Details** * - * @param self - The first `Context` to merge. - * @param that - The second `Context` to merge. + * When both contexts contain the same service key, the service from `that` + * overrides the service from `self`. + * + * **Example** (Merging two contexts) * - * @example * ```ts * import { Context } from "effect" * import * as assert from "node:assert" @@ -937,17 +1463,26 @@ export declare const getOption: { * assert.deepStrictEqual(Context.get(context, Timeout), { TIMEOUT: 5000 }) * ``` * - * @since 4.0.0 - * @category Utils + * @see {@link mergeAll} for merging more than two contexts at once + * + * @category combining + * @since 2.0.0 */ export declare const merge: { /** - * Merges two `Context`s, returning a new `Context` containing the services of both. + * Merges two `Context`s into one. + * + * **When to use** + * + * Use when you need to combine two contexts. * - * @param self - The first `Context` to merge. - * @param that - The second `Context` to merge. + * **Details** + * + * When both contexts contain the same service key, the service from `that` + * overrides the service from `self`. + * + * **Example** (Merging two contexts) * - * @example * ```ts * import { Context } from "effect" * import * as assert from "node:assert" @@ -964,17 +1499,26 @@ export declare const merge: { * assert.deepStrictEqual(Context.get(context, Timeout), { TIMEOUT: 5000 }) * ``` * - * @since 4.0.0 - * @category Utils + * @see {@link mergeAll} for merging more than two contexts at once + * + * @category combining + * @since 2.0.0 */ (that: Context): (self: Context) => Context; /** - * Merges two `Context`s, returning a new `Context` containing the services of both. + * Merges two `Context`s into one. + * + * **When to use** + * + * Use when you need to combine two contexts. * - * @param self - The first `Context` to merge. - * @param that - The second `Context` to merge. + * **Details** + * + * When both contexts contain the same service key, the service from `that` + * overrides the service from `self`. + * + * **Example** (Merging two contexts) * - * @example * ```ts * import { Context } from "effect" * import * as assert from "node:assert" @@ -991,15 +1535,27 @@ export declare const merge: { * assert.deepStrictEqual(Context.get(context, Timeout), { TIMEOUT: 5000 }) * ``` * - * @since 4.0.0 - * @category Utils + * @see {@link mergeAll} for merging more than two contexts at once + * + * @category combining + * @since 2.0.0 */ (self: Context, that: Context): Context; }; /** - * Merges any number of `Context`s, returning a new `Context` containing the services of all. + * Merges any number of `Context`s into one. + * + * **When to use** + * + * Use when you need to combine a variadic list of contexts. + * + * **Details** + * + * When multiple contexts contain the same service key, the service from the + * last context with that key is kept. + * + * **Example** (Merging multiple contexts) * - * @example * ```ts * import { Context } from "effect" * import * as assert from "node:assert" @@ -1023,18 +1579,23 @@ export declare const merge: { * assert.deepStrictEqual(Context.get(context, Host), { HOST: "localhost" }) * ``` * + * @see {@link merge} for merging two contexts + * + * @category combining * @since 3.12.0 */ export declare const mergeAll: >(...ctxs: [...{ [K in keyof T]: Context; }]) => Context; /** * Returns a new `Context` that contains only the specified services. * - * @param self - The `Context` to prune services from. - * @param services - The list of `Service`s to be included in the new `Context`. + * **When to use** + * + * Use when you want to keep an allowlist of services in a `Context`. + * + * **Example** (Picking services from a context) * - * @example * ```ts - * import { Option, pipe, Context } from "effect" + * import { Context, Option, pipe } from "effect" * import * as assert from "node:assert" * * const Port = Context.Service<{ PORT: number }>("Port") @@ -1054,14 +1615,23 @@ export declare const mergeAll: >(...ctxs: [...{ [K in k * assert.deepStrictEqual(Context.getOption(context, Timeout), Option.none()) * ``` * - * @since 4.0.0 - * @category Utils + * @see {@link omit} for removing selected services + * + * @category filtering + * @since 2.0.0 */ export declare const pick: >>(...services: S) => (self: Context) => Context>; /** - * @example + * Returns a new `Context` with the specified service keys removed. + * + * **When to use** + * + * Use when you want to remove a denylist of services from a `Context`. + * + * **Example** (Omitting services from a context) + * * ```ts - * import { Option, pipe, Context } from "effect" + * import { Context, Option, pipe } from "effect" * import * as assert from "node:assert" * * const Port = Context.Service<{ PORT: number }>("Port") @@ -1081,46 +1651,88 @@ export declare const pick: >>(...services: * assert.deepStrictEqual(Context.getOption(context, Timeout), Option.none()) * ``` * - * @since 4.0.0 - * @category Utils + * @see {@link pick} for keeping selected services + * + * @category filtering + * @since 2.0.0 */ export declare const omit: >>(...keys: S) => (self: Context) => Context>>; /** - * Perform a series of mutations on a `Context`. Prevents unnecessary copying + * Performs a series of mutations on a `Context`. Prevents unnecessary copying * of the underlying map when multiple mutations are needed. * + * **When to use** + * + * Use to apply several `Context` transformations in one callback while copying + * the underlying service map only once. + * + * @see {@link add} for adding or replacing a service + * @see {@link addOrOmit} for adding or removing a service from an `Option` + * @see {@link merge} for combining two contexts + * @see {@link pick} for keeping selected services + * @see {@link omit} for removing selected services + * + * @category mutations * @since 4.0.0 - * @category Utils */ export declare const mutate: { /** - * Perform a series of mutations on a `Context`. Prevents unnecessary copying + * Performs a series of mutations on a `Context`. Prevents unnecessary copying * of the underlying map when multiple mutations are needed. * + * **When to use** + * + * Use to apply several `Context` transformations in one callback while copying + * the underlying service map only once. + * + * @see {@link add} for adding or replacing a service + * @see {@link addOrOmit} for adding or removing a service from an `Option` + * @see {@link merge} for combining two contexts + * @see {@link pick} for keeping selected services + * @see {@link omit} for removing selected services + * + * @category mutations * @since 4.0.0 - * @category Utils */ (f: (context: Context) => Context): (self: Context) => Context; /** - * Perform a series of mutations on a `Context`. Prevents unnecessary copying + * Performs a series of mutations on a `Context`. Prevents unnecessary copying * of the underlying map when multiple mutations are needed. * + * **When to use** + * + * Use to apply several `Context` transformations in one callback while copying + * the underlying service map only once. + * + * @see {@link add} for adding or replacing a service + * @see {@link addOrOmit} for adding or removing a service from an `Option` + * @see {@link merge} for combining two contexts + * @see {@link pick} for keeping selected services + * @see {@link omit} for removing selected services + * + * @category mutations * @since 4.0.0 - * @category Utils */ (self: Context, f: (context: Context) => Context): Context; }; /** * Creates a context key with a default value. * + * **When to use** + * + * Use when you need to define a context key with a lazily computed default + * value. + * * **Details** * * `Context.Reference` allows you to create a key that can hold a value. You * can provide a default value for the service, which will automatically be used * when the context is accessed, or override it with a custom implementation - * when needed. + * when needed. The default value is computed lazily and cached on the + * reference. + * + * **Example** (Creating references with default values) * - * @example * ```ts * import { Context } from "effect" * @@ -1140,8 +1752,10 @@ export declare const mutate: { * const customLogger = Context.get(customContext, LoggerRef) * ``` * - * @since 4.0.0 - * @category References + * @see {@link Service} for required services without default values + * + * @category references + * @since 3.11.0 */ export declare const Reference: (key: string, options: { readonly defaultValue: () => Service; diff --git a/.opencode/node_modules/effect/dist/Context.d.ts.map b/.opencode/node_modules/effect/dist/Context.d.ts.map index 5a026c595cb99554449873453f0c2f1d9e19e3a8..a0795e49f4c027e2f6af39e19892c0b9e257f681 100644 --- a/.opencode/node_modules/effect/dist/Context.d.ts.map +++ b/.opencode/node_modules/effect/dist/Context.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../src/Context.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACpE,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA;AACnC,OAAO,EAAkB,KAAK,OAAO,EAAE,MAAM,eAAe,CAAA;AAE5D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAGnD,OAAO,KAAK,MAAM,MAAM,aAAa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/Context.js index d0100bd3107ecb5a12b9b3e791ec72b3df5cbb20..d3ea72a552880cb9be42e97c50cdf9018b7d5271 100644 --- a/.opencode/node_modules/effect/dist/Context.js +++ b/.opencode/node_modules/effect/dist/Context.js @@ -1,16 +1,41 @@ +import * as Effectable from "./Effectable.js"; import * as Equal from "./Equal.js"; -import { constant, dual } from "./Function.js"; +import { dual } from "./Function.js"; import * as Hash from "./Hash.js"; -import { exitSucceed, PipeInspectableProto, withFiber, YieldableProto } from "./internal/core.js"; +import { exitSucceed, PipeInspectableProto, withFiber } from "./internal/core.js"; import * as Option from "./Option.js"; import { hasProperty } from "./Predicate.js"; /** + * Runtime type identifier attached to `Context` service keys and used by + * `isKey` to recognize them. + * + * @category type IDs * @since 4.0.0 - * @category Type Identifiers */ export const ServiceTypeId = "~effect/Context/Service"; /** - * @example + * Creates a `Context` service key. + * + * **When to use** + * + * Use when you need to define a context service key for a dependency that must + * be provided by the surrounding context. + * + * **Details** + * + * Call `Context.Service("Key")` for a function-style key, or use the two-stage + * form `Context.Service()("Key")` for class-style service + * declarations. The returned key can be yielded as an Effect and passed to + * `Context.make`, `Context.add`, and the Context getter functions. + * + * **Gotchas** + * + * The string key is the runtime identity of the service. Reusing the same key + * string for unrelated services makes them occupy the same slot in a + * `Context`. + * + * **Example** (Creating service keys) + * * ```ts * import { Context } from "effect" * @@ -31,8 +56,10 @@ export const ServiceTypeId = "~effect/Context/Service"; * const config = Context.make(Config, { port: 8080 }) * ``` * + * @see {@link Reference} for service keys with default values + * + * @category constructors * @since 4.0.0 - * @category Constructors */ export const Service = function () { const prevLimit = Error.stackTraceLimit; @@ -42,6 +69,7 @@ export const Service = function () { function KeyClass() {} const self = KeyClass; Object.setPrototypeOf(self, ServiceProto); + // @effect-diagnostics-next-line floatingEffect:off Object.defineProperty(self, "stack", { get() { return err.stack; @@ -66,8 +94,12 @@ export const Service = function () { }; const ServiceProto = { [ServiceTypeId]: ServiceTypeId, - ...PipeInspectableProto, - ...YieldableProto, + ... /*#__PURE__*/Effectable.Prototype({ + label: "Service", + evaluate(fiber) { + return exitSucceed(get(fiber.context, this)); + } + }), toJSON() { return { _id: "Service", @@ -75,10 +107,6 @@ const ServiceProto = { stack: this.stack }; }, - asEffect() { - const fn = this.asEffect = constant(withFiber(fiber => exitSucceed(get(fiber.context, this)))); - return fn(); - }, of(self) { return self; }, @@ -95,7 +123,21 @@ const ServiceProto = { const ReferenceTypeId = "~effect/Context/Reference"; const TypeId = "~effect/Context"; /** - * @example + * Creates a `Context` from an existing service map. + * + * **When to use** + * + * Use when constructing a low-level `Context` from a trusted map whose lifecycle + * you control. + * + * **Gotchas** + * + * This is unsafe because later mutation of the provided map can affect the + * created `Context`. Prefer `empty`, `make`, `add`, or `merge` for normal + * Context construction. + * + * **Example** (Creating a context from a map) + * * ```ts * import { Context } from "effect" * @@ -107,8 +149,8 @@ const TypeId = "~effect/Context"; * const context = Context.makeUnsafe(map) * ``` * + * @category constructors * @since 4.0.0 - * @category Constructors */ export const makeUnsafe = mapUnsafe => { const self = Object.create(Proto); @@ -144,9 +186,25 @@ const Proto = { } }; /** - * Checks if the provided argument is a `Context`. + * Checks whether the provided argument is a `Context`. + * + * **When to use** + * + * Use to narrow an unknown value before passing it to APIs that require a + * `Context`. + * + * **Details** + * + * This checks the runtime `Context` marker and does not inspect which services + * the context contains. + * + * **Gotchas** + * + * This guard only proves that the value is a `Context`; it does not prove that + * any specific service is present. + * + * **Example** (Checking for contexts) * - * @example * ```ts * import { Context } from "effect" * import * as assert from "node:assert" @@ -154,14 +212,18 @@ const Proto = { * assert.strictEqual(Context.isContext(Context.empty()), true) * ``` * - * @since 4.0.0 - * @category Guards + * @see {@link isKey} for checking service keys + * @see {@link isReference} for checking references with defaults + * + * @category guards + * @since 2.0.0 */ export const isContext = u => hasProperty(u, TypeId); /** - * Checks if the provided argument is a `Key`. + * Checks whether the provided argument is a `Key`. + * + * **Example** (Checking for keys) * - * @example * ```ts * import { Context } from "effect" * import * as assert from "node:assert" @@ -169,14 +231,15 @@ export const isContext = u => hasProperty(u, TypeId); * assert.strictEqual(Context.isKey(Context.Service("Service")), true) * ``` * + * @category guards * @since 4.0.0 - * @category Guards */ export const isKey = u => hasProperty(u, ServiceTypeId); /** - * Checks if the provided argument is a `Reference`. + * Checks whether the provided argument is a `Reference`. + * + * **Example** (Checking for references) * - * @example * ```ts * import { Context } from "effect" * import * as assert from "node:assert" @@ -189,14 +252,15 @@ export const isKey = u => hasProperty(u, ServiceTypeId); * assert.strictEqual(Context.isReference(Context.Service("Key")), false) * ``` * - * @since 4.0.0 - * @category Guards + * @category guards + * @since 3.11.0 */ export const isReference = u => hasProperty(u, ReferenceTypeId); /** * Returns an empty `Context`. * - * @example + * **Example** (Creating an empty context) + * * ```ts * import { Context } from "effect" * import * as assert from "node:assert" @@ -204,15 +268,16 @@ export const isReference = u => hasProperty(u, ReferenceTypeId); * assert.strictEqual(Context.isContext(Context.empty()), true) * ``` * - * @since 4.0.0 - * @category Constructors + * @category constructors + * @since 2.0.0 */ export const empty = () => emptyContext; const emptyContext = /*#__PURE__*/makeUnsafe(/*#__PURE__*/new Map()); /** * Creates a new `Context` with a single service associated to the key. * - * @example + * **Example** (Creating a context with one service) + * * ```ts * import { Context } from "effect" * import * as assert from "node:assert" @@ -224,16 +289,26 @@ const emptyContext = /*#__PURE__*/makeUnsafe(/*#__PURE__*/new Map()); * assert.deepStrictEqual(Context.get(context, Port), { PORT: 8080 }) * ``` * - * @since 4.0.0 - * @category Constructors + * @category constructors + * @since 2.0.0 */ export const make = (key, service) => makeUnsafe(new Map([[key.key, service]])); /** * Adds a service to a given `Context`. * - * @example + * **When to use** + * + * Use when you need to store a known service value in a `Context`. + * + * **Details** + * + * If the context already contains the same service key, the new service + * replaces the previous one. + * + * **Example** (Adding a service to a context) + * * ```ts - * import { pipe, Context } from "effect" + * import { Context, pipe } from "effect" * import * as assert from "node:assert" * * const Port = Context.Service<{ PORT: number }>("Port") @@ -250,15 +325,46 @@ export const make = (key, service) => makeUnsafe(new Map([[key.key, service]])); * assert.deepStrictEqual(Context.get(context, Timeout), { TIMEOUT: 5000 }) * ``` * - * @since 4.0.0 - * @category Adders + * @see {@link addOrOmit} for adding or removing a service from an `Option` + * + * @category adders + * @since 2.0.0 */ export const add = /*#__PURE__*/dual(3, (self, key, service) => withMapUnsafe(self, map => { map.set(key.key, service); })); /** + * Adds or removes a service depending on an `Option`. + * + * **When to use** + * + * Use when you need to add or omit a `Context` service based on an `Option`. + * + * **Details** + * + * When `service` is `Option.some`, the value is stored for the key. When it is + * `Option.none`, the key is removed from the returned `Context`. + * + * **Example** (Adding optional services) + * + * ```ts + * import { Context, Option } from "effect" + * + * const Port = Context.Service<{ PORT: number }>("Port") + * + * const withPort = Context.empty().pipe( + * Context.addOrOmit(Port, Option.some({ PORT: 8080 })) + * ) + * + * const withoutPort = withPort.pipe( + * Context.addOrOmit(Port, Option.none()) + * ) + * ``` + * + * @see {@link add} for always storing a service value + * + * @category adders * @since 4.0.0 - * @category Adders */ export const addOrOmit = /*#__PURE__*/dual(3, (self, key, service) => withMapUnsafe(self, map => { if (service._tag === "None") { @@ -268,13 +374,28 @@ export const addOrOmit = /*#__PURE__*/dual(3, (self, key, service) => withMapUns } })); /** - * Get a service from the context that corresponds to the given key, or - * use the fallback value. + * Gets the service for a key, or evaluates the fallback when a non-reference + * key is absent. + * + * **When to use** + * + * Use when you need a fallback for a missing `Context.Service` key while still + * resolving `Context.Reference` defaults. + * + * **Details** + * + * If the key is a `Context.Reference` and no override is stored in the + * context, its cached default value is returned instead of the fallback. + * + * **Gotchas** + * + * The fallback is not evaluated for missing `Context.Reference` keys because + * references resolve to their default value. + * + * **Example** (Falling back for missing services) * - * @example * ```ts * import { Context } from "effect" - * import * as assert from "node:assert" * * const Logger = Context.Service<{ log: (msg: string) => void }>("Logger") * const Database = Context.Service<{ query: (sql: string) => string }>( @@ -292,12 +413,14 @@ export const addOrOmit = /*#__PURE__*/dual(3, (self, key, service) => withMapUns * () => ({ query: () => "fallback" }) * ) * - * assert.deepStrictEqual(logger, { log: (msg: string) => console.log(msg) }) - * assert.deepStrictEqual(database, { query: () => "fallback" }) + * console.log(logger === Context.get(context, Logger)) // true + * console.log(database.query("SELECT 1")) // "fallback" * ``` * - * @since 4.0.0 - * @category Getters + * @see {@link getOption} for returning `Option.none` when a non-reference key is missing + * + * @category getters + * @since 3.7.0 */ export const getOrElse = /*#__PURE__*/dual(3, (self, key, orElse) => { if (self.mapUnsafe.has(key.key)) { @@ -306,22 +429,42 @@ export const getOrElse = /*#__PURE__*/dual(3, (self, key, orElse) => { return isReference(key) ? getDefaultValue(key) : orElse(); }); /** + * Returns the service currently stored for a key, or `undefined` when the key + * is absent. + * + * **When to use** + * + * Use when you need to read the service stored for a key without resolving + * `Context.Reference` defaults. + * + * **Gotchas** + * + * This is a raw lookup and does not resolve default values for + * `Context.Reference` keys. + * + * @see {@link getOption} for a reference-aware optional lookup + * + * @category getters * @since 4.0.0 - * @category Getters */ export const getOrUndefined = /*#__PURE__*/dual(2, (self, key) => self.mapUnsafe.get(key.key)); /** - * Get a service from the context that corresponds to the given key. + * Gets the service for a key, throwing if an absent non-reference key cannot be + * resolved. + * + * **When to use** * - * This function is unsafe because if the key is not present in the context, a - * runtime error will be thrown. + * Use when you need to read a service from a context whose type does not prove + * the service is present. * - * For a safer version see {@link getOption}. + * **Details** + * + * If the key is a `Context.Reference` and no override is stored in the + * context, its cached default value is returned. For absent non-reference keys, + * this function throws a runtime error. * - * @param self - The `Context` to search for the service. - * @param service - The `Service` of the service to retrieve. + * **Example** (Getting services unsafely) * - * @example * ```ts * import { Context } from "effect" * import * as assert from "node:assert" @@ -335,8 +478,11 @@ export const getOrUndefined = /*#__PURE__*/dual(2, (self, key) => self.mapUnsafe * assert.throws(() => Context.getUnsafe(context, Timeout)) * ``` * - * @since 4.0.0 + * @see {@link get} for type-checked service access + * @see {@link getOption} for optional service access + * * @category unsafe + * @since 4.0.0 */ export const getUnsafe = /*#__PURE__*/dual(2, (self, service) => { if (!self.mapUnsafe.has(service.key)) { @@ -346,14 +492,17 @@ export const getUnsafe = /*#__PURE__*/dual(2, (self, service) => { return self.mapUnsafe.get(service.key); }); /** - * Get a service from the context that corresponds to the given key. + * Gets a service from the context that corresponds to the given key. * - * @param self - The `Context` to search for the service. - * @param service - The `Service` of the service to retrieve. + * **When to use** + * + * Use when you need type-checked access to a service already included in the + * context type. + * + * **Example** (Getting a service from a context) * - * @example * ```ts - * import { pipe, Context } from "effect" + * import { Context, pipe } from "effect" * import * as assert from "node:assert" * * const Port = Context.Service<{ PORT: number }>("Port") @@ -367,15 +516,36 @@ export const getUnsafe = /*#__PURE__*/dual(2, (self, service) => { * assert.deepStrictEqual(Context.get(context, Timeout), { TIMEOUT: 5000 }) * ``` * - * @since 4.0.0 - * @category Getters + * @see {@link getOption} for optional service access + * @see {@link getOrElse} for fallback values + * + * @category getters + * @since 2.0.0 */ export const get = getUnsafe; /** - * @example + * Gets the value for a `Context.Reference`, returning its cached default when + * the context does not contain an override. + * + * **When to use** + * + * Use when you need a `Context.Reference` value resolved from either a stored + * override or the reference's default value. + * + * **Details** + * + * Stored overrides take precedence. If no override is present, the reference's + * default value is computed lazily and cached on the reference itself. + * + * **Gotchas** + * + * Mutable default values can be shared across contexts unless an override is + * provided, because the default is cached on the `Context.Reference`. + * + * **Example** (Getting reference defaults unsafely) + * * ```ts * import { Context } from "effect" - * import * as assert from "node:assert" * * const LoggerRef = Context.Reference("Logger", { * defaultValue: () => ({ log: (msg: string) => console.log(msg) }) @@ -384,11 +554,15 @@ export const get = getUnsafe; * const context = Context.empty() * const logger = Context.getReferenceUnsafe(context, LoggerRef) * - * assert.deepStrictEqual(logger, { log: (msg: string) => console.log(msg) }) + * console.log(typeof logger.log) // "function" * ``` * - * @since 4.0.0 + * @see {@link getUnsafe} for unsafe access with any service key + * @see {@link get} for type-checked reference-aware access + * @see {@link getOption} for optional access to non-reference keys + * * @category unsafe + * @since 4.0.0 */ export const getReferenceUnsafe = (self, service) => { if (!self.mapUnsafe.has(service.key)) { @@ -422,16 +596,23 @@ const serviceNotFoundError = service => { return error; }; /** - * Get the value associated with the specified key from the context wrapped in - * an `Option` object. If the key is not found, the `Option` object will be - * `None`. + * Gets the service for a key safely wrapped in an `Option`. + * + * **When to use** + * + * Use when you need to read a `Context` service as an `Option` so absence is + * represented as data. + * + * **Details** * - * @param self - The `Context` to search for the service. - * @param service - The `Service` of the service to retrieve. + * Returns `Option.some` when the service is stored in the context. If the key + * is a `Context.Reference` and no override is stored, returns `Option.some` of + * the cached default value. Missing non-reference keys return `Option.none`. + * + * **Example** (Getting optional services) * - * @example * ```ts - * import { Option, Context } from "effect" + * import { Context, Option } from "effect" * import * as assert from "node:assert" * * const Port = Context.Service<{ PORT: number }>("Port") @@ -446,8 +627,10 @@ const serviceNotFoundError = service => { * assert.deepStrictEqual(Context.getOption(context, Timeout), Option.none()) * ``` * - * @since 4.0.0 - * @category Getters + * @see {@link getOrElse} for returning a fallback value directly + * + * @category getters + * @since 2.0.0 */ export const getOption = /*#__PURE__*/dual(2, (self, service) => { if (self.mapUnsafe.has(service.key)) { @@ -456,12 +639,19 @@ export const getOption = /*#__PURE__*/dual(2, (self, service) => { return isReference(service) ? Option.some(getDefaultValue(service)) : Option.none(); }); /** - * Merges two `Context`s, returning a new `Context` containing the services of both. + * Merges two `Context`s into one. * - * @param self - The first `Context` to merge. - * @param that - The second `Context` to merge. + * **When to use** + * + * Use when you need to combine two contexts. + * + * **Details** + * + * When both contexts contain the same service key, the service from `that` + * overrides the service from `self`. + * + * **Example** (Merging two contexts) * - * @example * ```ts * import { Context } from "effect" * import * as assert from "node:assert" @@ -478,8 +668,10 @@ export const getOption = /*#__PURE__*/dual(2, (self, service) => { * assert.deepStrictEqual(Context.get(context, Timeout), { TIMEOUT: 5000 }) * ``` * - * @since 4.0.0 - * @category Utils + * @see {@link mergeAll} for merging more than two contexts at once + * + * @category combining + * @since 2.0.0 */ export const merge = /*#__PURE__*/dual(2, (self, that) => { if (self.mapUnsafe.size === 0) return that; @@ -489,9 +681,19 @@ export const merge = /*#__PURE__*/dual(2, (self, that) => { }); }); /** - * Merges any number of `Context`s, returning a new `Context` containing the services of all. + * Merges any number of `Context`s into one. + * + * **When to use** + * + * Use when you need to combine a variadic list of contexts. + * + * **Details** + * + * When multiple contexts contain the same service key, the service from the + * last context with that key is kept. + * + * **Example** (Merging multiple contexts) * - * @example * ```ts * import { Context } from "effect" * import * as assert from "node:assert" @@ -515,6 +717,9 @@ export const merge = /*#__PURE__*/dual(2, (self, that) => { * assert.deepStrictEqual(Context.get(context, Host), { HOST: "localhost" }) * ``` * + * @see {@link merge} for merging two contexts + * + * @category combining * @since 3.12.0 */ export const mergeAll = (...ctxs) => { @@ -529,12 +734,14 @@ export const mergeAll = (...ctxs) => { /** * Returns a new `Context` that contains only the specified services. * - * @param self - The `Context` to prune services from. - * @param services - The list of `Service`s to be included in the new `Context`. + * **When to use** + * + * Use when you want to keep an allowlist of services in a `Context`. + * + * **Example** (Picking services from a context) * - * @example * ```ts - * import { Option, pipe, Context } from "effect" + * import { Context, Option, pipe } from "effect" * import * as assert from "node:assert" * * const Port = Context.Service<{ PORT: number }>("Port") @@ -554,8 +761,10 @@ export const mergeAll = (...ctxs) => { * assert.deepStrictEqual(Context.getOption(context, Timeout), Option.none()) * ``` * - * @since 4.0.0 - * @category Utils + * @see {@link omit} for removing selected services + * + * @category filtering + * @since 2.0.0 */ export const pick = (...services) => self => withMapUnsafe(self, map => { const keySet = new Set(services.map(key => key.key)); @@ -565,9 +774,16 @@ export const pick = (...services) => self => withMapUnsafe(self, map => { }); }); /** - * @example + * Returns a new `Context` with the specified service keys removed. + * + * **When to use** + * + * Use when you want to remove a denylist of services from a `Context`. + * + * **Example** (Omitting services from a context) + * * ```ts - * import { Option, pipe, Context } from "effect" + * import { Context, Option, pipe } from "effect" * import * as assert from "node:assert" * * const Port = Context.Service<{ PORT: number }>("Port") @@ -587,8 +803,10 @@ export const pick = (...services) => self => withMapUnsafe(self, map => { * assert.deepStrictEqual(Context.getOption(context, Timeout), Option.none()) * ``` * - * @since 4.0.0 - * @category Utils + * @see {@link pick} for keeping selected services + * + * @category filtering + * @since 2.0.0 */ export const omit = (...keys) => self => withMapUnsafe(self, map => { for (let i = 0; i < keys.length; i++) { @@ -596,11 +814,22 @@ export const omit = (...keys) => self => withMapUnsafe(self, map => { } }); /** - * Perform a series of mutations on a `Context`. Prevents unnecessary copying + * Performs a series of mutations on a `Context`. Prevents unnecessary copying * of the underlying map when multiple mutations are needed. * + * **When to use** + * + * Use to apply several `Context` transformations in one callback while copying + * the underlying service map only once. + * + * @see {@link add} for adding or replacing a service + * @see {@link addOrOmit} for adding or removing a service from an `Option` + * @see {@link merge} for combining two contexts + * @see {@link pick} for keeping selected services + * @see {@link omit} for removing selected services + * + * @category mutations * @since 4.0.0 - * @category Utils */ export const mutate = /*#__PURE__*/dual(2, (self, f) => { const next = makeUnsafe(new Map(self.mapUnsafe)); @@ -621,14 +850,21 @@ const withMapUnsafe = (self, f) => { /** * Creates a context key with a default value. * + * **When to use** + * + * Use when you need to define a context key with a lazily computed default + * value. + * * **Details** * * `Context.Reference` allows you to create a key that can hold a value. You * can provide a default value for the service, which will automatically be used * when the context is accessed, or override it with a custom implementation - * when needed. + * when needed. The default value is computed lazily and cached on the + * reference. + * + * **Example** (Creating references with default values) * - * @example * ```ts * import { Context } from "effect" * @@ -648,8 +884,10 @@ const withMapUnsafe = (self, f) => { * const customLogger = Context.get(customContext, LoggerRef) * ``` * - * @since 4.0.0 - * @category References + * @see {@link Service} for required services without default values + * + * @category references + * @since 3.11.0 */ export const Reference = Service; //# sourceMappingURL=Context.js.map \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Context.js.map b/.opencode/node_modules/effect/dist/Context.js.map index b4885a8e875c518e0139d7d6bbe8c4a82b6b0faf..07901063f3c9af959958864ddb175d70eb7a3f27 100644 --- a/.opencode/node_modules/effect/dist/Context.js.map +++ b/.opencode/node_modules/effect/dist/Context.js.map @@ -1 +1 @@ -{"version":3,"file":"Context.js","names":["Equal","constant","dual","Hash","exitSucceed","PipeInspectableProto","withFiber","YieldableProto","Option","hasProperty","ServiceTypeId","Service","prevLimit","Error","stackTraceLimit","err","KeyClass","self","Object","setPrototypeOf","ServiceProto","defineProperty","get","stack","arguments","length","key","defaultValue","ReferenceTypeId","options","make","toJSON","_id","asEffect","fn","fiber","context","of","use","f","useSync","TypeId","makeUnsafe","mapUnsafe","create","Proto","mutable","_Services","_","services","Array","from","map","value","symbol","that","isContext","size","k","keys","has","equals","number","u","isKey","isReference","empty","emptyContext","Map","service","add","withMapUnsafe","set","addOrOmit","_tag","delete","getOrElse","orElse","getDefaultValue","getOrUndefined","getUnsafe","serviceNotFoundError","getReferenceUnsafe","defaultValueCacheKey","ref","error","String","lines","split","afterAt","match","message","splice","join","getOption","some","none","merge","forEach","mergeAll","ctxs","i","pick","keySet","Set","omit","mutate","next","result","Reference"],"sources":["../src/Context.ts"],"sourcesContent":[null],"mappings":"AAaA,OAAO,KAAKA,KAAK,MAAM,YAAY;AACnC,SAASC,QAAQ,EAAEC,IAAI,QAAsB,eAAe;AAC5D,OAAO,KAAKC,IAAI,MAAM,WAAW;AAEjC,SAASC,WAAW,EAAEC,oBAAoB,EAAEC,SAAS,EAAEC,cAAc,QAAQ,oBAAoB;AAEjG,OAAO,KAAKC,MAAM,MAAM,aAAa;AAErC,SAASC,WAAW,QAAQ,gBAAgB;AAS5C;;;;AAIA,OAAO,MAAMC,aAAa,GAAkB,yBAAyB;AAsErE;;;;;;;;;;;;;;;;;;;;;;;;;AAyBA,OAAO,MAAMC,OAAO,GA4GhB,SAAAA,CAAA;EACF,MAAMC,SAAS,GAAIC,KAAkC,CAACC,eAAe;EACnED,KAAkC,CACjCC,eAAe,GAAG,CAAC;EACtB,MAAMC,GAAG,GAAG,IAAIF,KAAK,EAAE;EACrBA,KAAkC,CAACC,eAAe,GAAGF,SAAS;EAChE,SAASI,QAAQA,CAAA,GAAI;EACrB,MAA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ChBP,CAAC,CAACtB,IAAI,CAAC0B,SAAgB,CAAC;IACxB,OAAO1B,IAAW;EACpB;EACA,MAAMmC,GAAG,GAAG,IAAIgB,GAAG,CAACnD,IAAI,CAAC0B,SAAS,CAAC;EACnCJ,CAAC,CAACa,GAAG,CAAC;EACN,OAAOV,UAAU,CAACU,GAAG,CAAC;AACxB,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCA,OAAO,MAAMyD,SAAS,GAGIlG,OAAc","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"Context.js","names":["Effectable","Equal","dual","Hash","exitSucceed","PipeInspectableProto","withFiber","Option","hasProperty","ServiceTypeId","Service","prevLimit","Error","stackTraceLimit","err","KeyClass","self","Object","setPrototypeOf","ServiceProto","defineProperty","get","stack","arguments","length","key","defaultValue","ReferenceTypeId","options","make","Prototype","label","evaluate","fiber","context","toJSON","_id","of","use","f","useSync","TypeId","makeUnsafe","mapUnsafe","create","Proto","mutable","_Services","_","services","Array","from","map","value","symbol","that","isContext","size","k","keys","has","equals","number","u","isKey","isReference","empty","emptyContext","Map","service","add","withMapUnsafe","set","addOrOmit","_tag","delete","getOrElse","orElse","getDefaultValue","getOrUndefined","getUnsafe","serviceNotFoundError","getReferenceUnsafe","defaultValueCacheKey","ref","error","String","lines","split","afterAt","match","message","splice","join","getOption","some","none","merge","forEach","mergeAll","ctxs","i","pick","keySet","Set","omit","mutate","next","result","Reference"],"sources":["../src/Context.ts"],"sourcesContent":[null],"mappings":"AAaA,OAAO,KAAKA,UAAU,MAAM,iBAAiB;AAC7C,OAAO,KAAKC,KAAK,MAAM,YAAY;AACnC,SAASC,IAAI,QAAsB,eAAe;AAClD,OAAO,KAAKC,IAAI,MAAM,WAAW;AAEjC,SAASC,WAAW,EAAEC,oBAAoB,EAAEC,SAAS,QAAQ,oBAAoB;AAEjF,OAAO,KAAKC,MAAM,MAAM,aAAa;AAErC,SAASC,WAAW,QAAQ,gBAAgB;AAY5C;;;;;;;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E,GAAG,CAAC;EACzB;AACF,CAAC,CAAC;AAEJ;;;;;;;;;;;;;;;;;;AAkBA,OAAO,MAAMiF,MAAM,gBAuCfxG,IAAI,CACN,CAAC,EACD,CAAcc,IAAuB,EAAEuB,CAA6C,KAAgB;EAClG,MAAMoE,IAAI,GAAGjE,UAAU,CAkBb,IAAI0B,GAAG,CAACpD,IAAI,CAAC2B,SAAS,CAAC,CAAC;EAClCgE,IAAI,CAAC7D,OAAO,GAAG,IAAI;EACnB,MAAM8D,MAAM,GAAGrE,CAAC,CAACoE,IAAI,CAAC;EACtBC,MAAM,CAAC9D,OAAO,GAAG,KAAK;EACtB,OAAO8D,MAAM;AACf,CAAC,CACF;AAED,MAAMrC,aAAa,GAAGA,CAAcvD,IAAuB,EAAEuB,CAAkC,KAAgB;EAC7G,IAAIvB,IAAI,CAAC8B,OAAO,EAAE;IAChBP,CAAC,CAACvB,IAAI,CAAC2B,SAAgB,CAAC;IACxB,OAAO3B,IAAW;EACpB;EACA,MAAMoC,GAAG,GAAG,IAAIgB,GAAG,CAACpD,IAAI,CAAC2B,SAAS,CAAC;EACnCJ,CAAC,CAACa,GAAG,CAAC;EACN,OAAOV,UAAU,CAACU,GAAG,CAAC;AACxB,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0CA,OAAO,MAAMyD,SAAS,GAGInG,OAAc","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Cron.d.ts b/.opencode/node_modules/effect/dist/Cron.d.ts index 482c5cb5deb1345ec08a212e403eff644e0f2848..0736d1169ca24ba658f80d63faaab1d6f0870423 100644 --- a/.opencode/node_modules/effect/dist/Cron.d.ts +++ b/.opencode/node_modules/effect/dist/Cron.d.ts @@ -9,11 +9,19 @@ declare const TypeId = "~effect/time/Cron"; /** * Represents a cron schedule with time constraints and timezone information. * - * A Cron instance defines when a scheduled task should run, supporting - * seconds, minutes, hours, days, months, and weekdays constraints. - * It also supports timezone-aware scheduling. + * **When to use** + * + * Use to represent a recurring calendar schedule that can be matched against + * dates or used to compute scheduled occurrences. + * + * **Details** + * + * A `Cron` instance defines when a scheduled task should run, supporting + * seconds, minutes, hours, days, months, and weekday constraints. It also + * supports timezone-aware scheduling. + * + * **Example** (Creating a cron schedule) * - * @example * ```ts * import { Cron } from "effect" * @@ -63,8 +71,13 @@ declare const TypeId = "~effect/time/Cron"; * console.log(matches) // true if it's 9 AM on a weekday * ``` * - * @since 2.0.0 + * @see {@link make} for creating a schedule from explicit field constraints + * @see {@link parse} for creating a schedule from a cron expression string + * @see {@link match} for testing a date against a schedule + * @see {@link next} for finding the next scheduled occurrence + * * @category models + * @since 2.0.0 */ export interface Cron extends Pipeable, Equal.Equal, Inspectable { readonly [TypeId]: typeof TypeId; @@ -77,13 +90,20 @@ export interface Cron extends Pipeable, Equal.Equal, Inspectable { readonly weekdays: ReadonlySet; } /** - * Checks if a given value is a Cron instance. + * Checks whether a given value is a Cron instance. + * + * **When to use** + * + * Use to narrow an unknown value before treating it as a `Cron` schedule. + * + * **Details** * * This function is a type guard that determines whether the provided * value is a valid Cron instance by checking for the presence of the * Cron type identifier. * - * @example + * **Example** (Checking cron values) + * * ```ts * import { Cron } from "effect" * @@ -100,18 +120,28 @@ export interface Cron extends Pipeable, Equal.Equal, Inspectable { * console.log(Cron.isCron("not a cron")) // false * ``` * - * @since 2.0.0 + * @see {@link make} for constructing a `Cron` value directly + * @see {@link parse} for constructing a `Cron` value from a string + * * @category guards + * @since 2.0.0 */ export declare const isCron: (u: unknown) => u is Cron; /** * Creates a Cron instance from time constraints. * + * **When to use** + * + * Use to build a cron schedule from explicit sets of allowed time-field values. + * + * **Details** + * * Constructs a cron schedule by specifying which seconds, minutes, hours, * days, months, and weekdays the schedule should match. Empty arrays mean * "match all" for that time unit. * - * @example + * **Example** (Creating schedules from constraints) + * * ```ts * import { Cron } from "effect" * @@ -198,8 +228,10 @@ export declare const isCron: (u: unknown) => u is Cron; * }) * ``` * - * @since 2.0.0 + * @see {@link parse} for building a schedule from a cron expression string + * * @category constructors + * @since 2.0.0 */ export declare const make: (values: { readonly seconds?: Iterable | undefined; @@ -217,11 +249,17 @@ declare const CronParseError_base: new = {}>(args /** * Represents an error that occurs when parsing a cron expression fails. * - * This error provides detailed information about what went wrong during - * the parsing process, including the error message and optionally the - * input that caused the error. + * **When to use** + * + * Use to handle invalid cron expression failures returned by `parse`. + * + * **Details** + * + * This error provides information about what went wrong during parsing, + * including the error message and optionally the input that caused the error. + * + * **Example** (Handling cron parse failures) * - * @example * ```ts * import { Cron, Result } from "effect" * @@ -233,8 +271,11 @@ declare const CronParseError_base: new = {}>(args * } * ``` * - * @since 4.0.0 + * @see {@link parse} for the parser that returns this error in `Result.fail` + * @see {@link isCronParseError} for narrowing unknown values to this error type + * * @category models + * @since 4.0.0 */ export declare class CronParseError extends CronParseError_base<{ readonly message: string; @@ -243,13 +284,20 @@ export declare class CronParseError extends CronParseError_base<{ readonly [CronParseErrorTypeId]: typeof CronParseErrorTypeId; } /** - * Checks if a given value is a CronParseError instance. + * Checks whether a given value is a CronParseError instance. + * + * **When to use** + * + * Use to narrow an unknown failure before handling it as a cron parse error. + * + * **Details** * * This function is a type guard that determines whether the provided * value is a CronParseError by checking for the presence of the * CronParseError type identifier. * - * @example + * **Example** (Checking cron parse errors) + * * ```ts * import { Cron, Result } from "effect" * @@ -263,16 +311,31 @@ export declare class CronParseError extends CronParseError_base<{ * console.log(Cron.isCronParseError("not an error")) // false * ``` * - * @since 2.0.0 + * @see {@link CronParseError} for the parse error type + * @see {@link parse} for producing `CronParseError` values on invalid input + * * @category guards + * @since 4.0.0 */ export declare const isCronParseError: (u: unknown) => u is CronParseError; /** - * Parses a cron expression into a `Cron` instance. + * Parses a cron expression safely into a `Cron` instance, returning a `Result` + * instead of throwing. + * + * **When to use** + * + * Use to parse cron expressions from configuration or user input while handling + * invalid input as a `Result`. * - * @param cron - The cron expression to parse. + * **Details** + * + * The expression may contain five fields, where seconds default to `0`, or six + * fields including seconds. Fields support `*`, comma-separated values, ranges, + * steps, and month or weekday aliases. Invalid expressions fail with + * `CronParseError`. + * + * **Example** (Parsing cron expressions) * - * @example * ```ts * import { Cron, Result } from "effect" * import * as assert from "node:assert" @@ -291,18 +354,23 @@ export declare const isCronParseError: (u: unknown) => u is CronParseError; * ) * ``` * - * @since 2.0.0 + * @see {@link parseUnsafe} for throwing on invalid cron expressions + * @see {@link make} for constructing a schedule from explicit field constraints + * * @category constructors + * @since 2.0.0 */ export declare const parse: (cron: string, tz?: DateTime.TimeZone | string) => Result.Result; /** - * Parses a cron expression into a Cron instance, throwing on failure. + * Parses a cron expression into a `Cron` instance, throwing on failure. + * + * **When to use** * - * This function provides a convenience method for parsing cron expressions - * when you're confident the input is valid and want to avoid handling - * the Result type. + * Use when you expect the input to be valid and want to avoid handling the + * `Result` type. + * + * **Example** (Parsing cron expressions unsafely) * - * @example * ```ts * import { Cron } from "effect" * @@ -316,18 +384,26 @@ export declare const parse: (cron: string, tz?: DateTime.TimeZone | string) => R * // const invalid = Cron.parseUnsafe("invalid expression") * ``` * - * @since 2.0.0 * @category constructors + * @since 4.0.0 */ export declare const parseUnsafe: (cron: string, tz?: DateTime.TimeZone | string) => Cron; /** - * Checks if a given date/time falls within an active Cron time window. + * Returns `true` when a date/time matches a `Cron` schedule. + * + * **When to use** + * + * Use to test whether a specific date/time satisfies a cron schedule. + * + * **Details** * - * This function determines whether a specific date and time matches - * the cron schedule, taking into account all time constraints and - * the optional timezone. + * Seconds, minutes, hours, months, and the optional timezone are checked + * directly. For day constraints, an empty `days` or `weekdays` set means that + * field matches every value; when both sets are non-empty, a date matches if + * either the day-of-month or weekday matches. + * + * **Example** (Matching dates against a schedule) * - * @example * ```ts * import { Cron, Result } from "effect" * @@ -344,18 +420,29 @@ export declare const parseUnsafe: (cron: string, tz?: DateTime.TimeZone | string * console.log(matches3) // false - wrong day * ``` * + * @see {@link next} for finding the next matching date/time + * @see {@link prev} for finding the previous matching date/time + * + * @category predicates * @since 2.0.0 - * @category utils */ export declare const match: (cron: Cron, date: DateTime.DateTime.Input) => boolean; /** * Returns the next scheduled date/time for the given Cron instance. * - * This function calculates the next date and time when the cron schedule - * should trigger, starting from the specified date (or current time if - * not provided). + * **When to use** + * + * Use to find the next occurrence of a cron schedule after a specific date/time + * or after the current time. + * + * **Details** + * + * Searches for the next date and time when the cron schedule should trigger, + * starting after the specified date/time or after the current time when no + * date is provided. + * + * **Example** (Finding the next occurrence) * - * @example * ```ts * import { Cron, Result } from "effect" * @@ -371,25 +458,51 @@ export declare const match: (cron: Cron, date: DateTime.DateTime.Input) => boole * console.log(nextFromNow) // Next occurrence from now * ``` * + * @see {@link prev} for finding the previous scheduled occurrence + * @see {@link sequence} for iterating future scheduled occurrences + * + * @category getters * @since 2.0.0 - * @category utils */ export declare const next: (cron: Cron, now?: DateTime.DateTime.Input) => Date; /** * Returns the previous scheduled date/time for the given Cron instance. * - * @since 4.0.0 - * @category utils + * **When to use** + * + * Use to find the most recent occurrence of a cron schedule before a specific + * date/time or before the current time. + * + * **Details** + * + * When no date/time is provided, the search starts from the current time. + * + * **Gotchas** + * + * The search is strict: if the supplied date/time already matches the schedule, + * the result is the earlier occurrence. + * + * @see {@link next} for finding the next scheduled occurrence + * + * @category getters + * @since 3.20.0 */ export declare const prev: (cron: Cron, now?: DateTime.DateTime.Input) => Date; /** * Returns an infinite iterator that yields dates matching the Cron schedule. * - * This function creates an iterator that generates an infinite sequence - * of dates when the cron schedule should trigger, starting from the - * specified date. + * **When to use** + * + * Use to lazily iterate future occurrences of a cron schedule. + * + * **Details** + * + * The iterator generates an infinite sequence of dates when the cron schedule + * should trigger, starting after the specified date/time or after the current + * time when no date is provided. + * + * **Example** (Iterating scheduled occurrences) * - * @example * ```ts * import { Cron, Result } from "effect" * @@ -403,18 +516,28 @@ export declare const prev: (cron: Cron, now?: DateTime.DateTime.Input) => Date; * // [Mon Jan 02 2023 09:00:00, Tue Jan 03 2023 09:00:00, ...] * ``` * + * @see {@link next} for computing one next occurrence + * + * @category sequencing * @since 2.0.0 - * @category utils */ export declare const sequence: (cron: Cron, now?: DateTime.DateTime.Input) => IterableIterator; /** - * An Equivalence instance for comparing Cron schedules. + * Equivalence instance for comparing the field restrictions of two `Cron` + * schedules. + * + * **When to use** + * + * Use to compare cron schedules through APIs that accept an equivalence + * relation. + * + * **Details** + * + * This comparison checks seconds, minutes, hours, days, months, and weekdays. + * It does not compare the optional timezone. * - * This equivalence compares two Cron instances by checking if their - * time constraints (seconds, minutes, hours, days, months, weekdays) - * are equivalent, regardless of the internal order. + * **Example** (Comparing schedules with equivalence) * - * @example * ```ts * import { Cron } from "effect" * @@ -437,17 +560,27 @@ export declare const sequence: (cron: Cron, now?: DateTime.DateTime.Input) => It * console.log(Cron.Equivalence(cron1, cron2)) // true * ``` * - * @since 2.0.0 + * @see {@link equals} for directly comparing two `Cron` values + * * @category instances + * @since 2.0.0 */ export declare const Equivalence: Equ.Equivalence; /** - * Checks if two Cron instances are equal. + * Checks whether two `Cron` instances have the same field restrictions. + * + * **When to use** + * + * Use to directly compare whether two cron schedules have the same field + * restrictions. + * + * **Details** * - * This function compares two Cron instances to determine if they represent - * the same schedule by checking all their time constraints for equality. + * The comparison checks seconds, minutes, hours, days, months, and weekdays. + * It does not compare the optional timezone. + * + * **Example** (Checking schedule equality) * - * @example * ```ts * import { Cron } from "effect" * @@ -471,17 +604,27 @@ export declare const Equivalence: Equ.Equivalence; * console.log(Cron.equals(cron1)(cron2)) // true (curried form) * ``` * - * @since 2.0.0 + * @see {@link Equivalence} for the reusable equivalence instance + * * @category predicates + * @since 2.0.0 */ export declare const equals: { /** - * Checks if two Cron instances are equal. + * Checks whether two `Cron` instances have the same field restrictions. + * + * **When to use** + * + * Use to directly compare whether two cron schedules have the same field + * restrictions. * - * This function compares two Cron instances to determine if they represent - * the same schedule by checking all their time constraints for equality. + * **Details** + * + * The comparison checks seconds, minutes, hours, days, months, and weekdays. + * It does not compare the optional timezone. + * + * **Example** (Checking schedule equality) * - * @example * ```ts * import { Cron } from "effect" * @@ -505,17 +648,27 @@ export declare const equals: { * console.log(Cron.equals(cron1)(cron2)) // true (curried form) * ``` * - * @since 2.0.0 + * @see {@link Equivalence} for the reusable equivalence instance + * * @category predicates + * @since 2.0.0 */ (that: Cron): (self: Cron) => boolean; /** - * Checks if two Cron instances are equal. + * Checks whether two `Cron` instances have the same field restrictions. + * + * **When to use** * - * This function compares two Cron instances to determine if they represent - * the same schedule by checking all their time constraints for equality. + * Use to directly compare whether two cron schedules have the same field + * restrictions. + * + * **Details** + * + * The comparison checks seconds, minutes, hours, days, months, and weekdays. + * It does not compare the optional timezone. + * + * **Example** (Checking schedule equality) * - * @example * ```ts * import { Cron } from "effect" * @@ -539,8 +692,10 @@ export declare const equals: { * console.log(Cron.equals(cron1)(cron2)) // true (curried form) * ``` * - * @since 2.0.0 + * @see {@link Equivalence} for the reusable equivalence instance + * * @category predicates + * @since 2.0.0 */ (self: Cron, that: Cron): boolean; }; diff --git a/.opencode/node_modules/effect/dist/Cron.d.ts.map b/.opencode/node_modules/effect/dist/Cron.d.ts.map index 7f73c4be4acc4b808d19432c6f71862542d70407..1f27eb40c7a59e1e55aed27b1c31cd2ce442c0bd 100644 --- a/.opencode/node_modules/effect/dist/Cron.d.ts.map +++ b/.opencode/node_modules/effect/dist/Cron.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Cron.d.ts","sourceRoot":"","sources":["../src/Cron.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,KAAK,QAAQ,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,GAAG,MAAM,kBAAkB,CAAA;AAIvC,OAAO,EAAE,KAAK,WAAW,EAAqB,MAAM,kBAAkB,CAAA;AAGtE,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,EAAE,KAAK,QAAQ,EAAiB,MAAM,eAAe,CAAA;AAE5D,OAAO,KAAK,MAA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,IAAI,EAAE,MAAM,QAAQ,CAAC,QAAQ,CAAC,KAAK,KAAG,OAkCjE,CAAA;AAKD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,eAAO,MAAM,IAAI,GAAI,MAAM,IAAI,EAAE,MAAM,QAAQ,CAAC,QAAQ,CAAC,KAAK,KAAG,IAEhE,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,IAAI,GAAI,MAAM,IAAI,EAAE,MAAM,QAAQ,CAAC,QAAQ,CAAC,KAAK,KAAG,IAEhE,CAAA;AA4JD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,eAAO,MAAM,QAAQ,GAAa,MAAM,IAAI,EAAE,MAAM,QAAQ,CAAC,QAAQ,CAAC,KAAK,KAAG,gBAAgB,CAAC,IAAI,CAIlG,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,eAAO,MAAM,WAAW,EAAE,GAAG,CAAC,WAAW,CAAC,IAAI,CAO7C,CAAA;AAMD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,eAAO,MAAM,MAAM,EAAE;IACnB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA0CG;IACH,CAAC,IAAI,EAAE,IAAI,GAAG,CAAC,IAAI,EAAE,IAAI,KAAK,OAAO,CAAA;IACrC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA0CG;IACH,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,GAAG,OAAO,CAAA;CACsC,CAAA"} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Cron.js b/.opencode/node_modules/effect/dist/Cron.js index 1ed2aeb31fdb5aa227d2c80e8df27d6c1df725dc..72abfff32b5e71b85d7772d60ce63a709fdc5270 100644 --- a/.opencode/node_modules/effect/dist/Cron.js +++ b/.opencode/node_modules/effect/dist/Cron.js @@ -1,4 +1,10 @@ /** + * Utilities for recurring calendar schedules written as cron expressions or + * explicit field constraints. A `Cron` value stores allowed seconds, minutes, + * hours, days of month, months, weekdays, and an optional time zone. The module + * can create or parse schedules, compare them, test whether a date matches, and + * find previous or next scheduled occurrences. + * * @since 2.0.0 */ import * as Arr from "./Array.js"; @@ -63,13 +69,20 @@ const CronProto = { } }; /** - * Checks if a given value is a Cron instance. + * Checks whether a given value is a Cron instance. + * + * **When to use** + * + * Use to narrow an unknown value before treating it as a `Cron` schedule. + * + * **Details** * * This function is a type guard that determines whether the provided * value is a valid Cron instance by checking for the presence of the * Cron type identifier. * - * @example + * **Example** (Checking cron values) + * * ```ts * import { Cron } from "effect" * @@ -86,18 +99,28 @@ const CronProto = { * console.log(Cron.isCron("not a cron")) // false * ``` * - * @since 2.0.0 + * @see {@link make} for constructing a `Cron` value directly + * @see {@link parse} for constructing a `Cron` value from a string + * * @category guards + * @since 2.0.0 */ export const isCron = u => hasProperty(u, TypeId); /** * Creates a Cron instance from time constraints. * + * **When to use** + * + * Use to build a cron schedule from explicit sets of allowed time-field values. + * + * **Details** + * * Constructs a cron schedule by specifying which seconds, minutes, hours, * days, months, and weekdays the schedule should match. Empty arrays mean * "match all" for that time unit. * - * @example + * **Example** (Creating schedules from constraints) + * * ```ts * import { Cron } from "effect" * @@ -184,8 +207,10 @@ export const isCron = u => hasProperty(u, TypeId); * }) * ``` * - * @since 2.0.0 + * @see {@link parse} for building a schedule from a cron expression string + * * @category constructors + * @since 2.0.0 */ export const make = values => { const o = Object.create(CronProto); @@ -265,11 +290,17 @@ const CronParseErrorTypeId = "~effect/time/Cron/CronParseError"; /** * Represents an error that occurs when parsing a cron expression fails. * - * This error provides detailed information about what went wrong during - * the parsing process, including the error message and optionally the - * input that caused the error. + * **When to use** + * + * Use to handle invalid cron expression failures returned by `parse`. + * + * **Details** + * + * This error provides information about what went wrong during parsing, + * including the error message and optionally the input that caused the error. + * + * **Example** (Handling cron parse failures) * - * @example * ```ts * import { Cron, Result } from "effect" * @@ -281,20 +312,30 @@ const CronParseErrorTypeId = "~effect/time/Cron/CronParseError"; * } * ``` * - * @since 4.0.0 + * @see {@link parse} for the parser that returns this error in `Result.fail` + * @see {@link isCronParseError} for narrowing unknown values to this error type + * * @category models + * @since 4.0.0 */ export class CronParseError extends /*#__PURE__*/Data.TaggedError("CronParseError") { [CronParseErrorTypeId] = CronParseErrorTypeId; } /** - * Checks if a given value is a CronParseError instance. + * Checks whether a given value is a CronParseError instance. + * + * **When to use** + * + * Use to narrow an unknown failure before handling it as a cron parse error. + * + * **Details** * * This function is a type guard that determines whether the provided * value is a CronParseError by checking for the presence of the * CronParseError type identifier. * - * @example + * **Example** (Checking cron parse errors) + * * ```ts * import { Cron, Result } from "effect" * @@ -308,16 +349,31 @@ export class CronParseError extends /*#__PURE__*/Data.TaggedError("CronParseErro * console.log(Cron.isCronParseError("not an error")) // false * ``` * - * @since 2.0.0 + * @see {@link CronParseError} for the parse error type + * @see {@link parse} for producing `CronParseError` values on invalid input + * * @category guards + * @since 4.0.0 */ export const isCronParseError = u => hasProperty(u, CronParseErrorTypeId); /** - * Parses a cron expression into a `Cron` instance. + * Parses a cron expression safely into a `Cron` instance, returning a `Result` + * instead of throwing. + * + * **When to use** * - * @param cron - The cron expression to parse. + * Use to parse cron expressions from configuration or user input while handling + * invalid input as a `Result`. + * + * **Details** + * + * The expression may contain five fields, where seconds default to `0`, or six + * fields including seconds. Fields support `*`, comma-separated values, ranges, + * steps, and month or weekday aliases. Invalid expressions fail with + * `CronParseError`. + * + * **Example** (Parsing cron expressions) * - * @example * ```ts * import { Cron, Result } from "effect" * import * as assert from "node:assert" @@ -336,8 +392,11 @@ export const isCronParseError = u => hasProperty(u, CronParseErrorTypeId); * ) * ``` * - * @since 2.0.0 + * @see {@link parseUnsafe} for throwing on invalid cron expressions + * @see {@link make} for constructing a schedule from explicit field constraints + * * @category constructors + * @since 2.0.0 */ export const parse = (cron, tz) => { const segments = cron.split(" ").filter(String.isNonEmpty); @@ -366,13 +425,15 @@ export const parse = (cron, tz) => { }).pipe(Result.map(make)); }; /** - * Parses a cron expression into a Cron instance, throwing on failure. + * Parses a cron expression into a `Cron` instance, throwing on failure. + * + * **When to use** * - * This function provides a convenience method for parsing cron expressions - * when you're confident the input is valid and want to avoid handling - * the Result type. + * Use when you expect the input to be valid and want to avoid handling the + * `Result` type. + * + * **Example** (Parsing cron expressions unsafely) * - * @example * ```ts * import { Cron } from "effect" * @@ -386,18 +447,26 @@ export const parse = (cron, tz) => { * // const invalid = Cron.parseUnsafe("invalid expression") * ``` * - * @since 2.0.0 * @category constructors + * @since 4.0.0 */ export const parseUnsafe = (cron, tz) => Result.getOrThrow(parse(cron, tz)); /** - * Checks if a given date/time falls within an active Cron time window. + * Returns `true` when a date/time matches a `Cron` schedule. + * + * **When to use** + * + * Use to test whether a specific date/time satisfies a cron schedule. + * + * **Details** + * + * Seconds, minutes, hours, months, and the optional timezone are checked + * directly. For day constraints, an empty `days` or `weekdays` set means that + * field matches every value; when both sets are non-empty, a date matches if + * either the day-of-month or weekday matches. * - * This function determines whether a specific date and time matches - * the cron schedule, taking into account all time constraints and - * the optional timezone. + * **Example** (Matching dates against a schedule) * - * @example * ```ts * import { Cron, Result } from "effect" * @@ -414,8 +483,11 @@ export const parseUnsafe = (cron, tz) => Result.getOrThrow(parse(cron, tz)); * console.log(matches3) // false - wrong day * ``` * + * @see {@link next} for finding the next matching date/time + * @see {@link prev} for finding the previous matching date/time + * + * @category predicates * @since 2.0.0 - * @category utils */ export const match = (cron, date) => { const parts = dateTime.makeZonedUnsafe(date, { @@ -448,11 +520,19 @@ const daysInMonth = date => new Date(Date.UTC(date.getUTCFullYear(), date.getUTC /** * Returns the next scheduled date/time for the given Cron instance. * - * This function calculates the next date and time when the cron schedule - * should trigger, starting from the specified date (or current time if - * not provided). + * **When to use** + * + * Use to find the next occurrence of a cron schedule after a specific date/time + * or after the current time. + * + * **Details** + * + * Searches for the next date and time when the cron schedule should trigger, + * starting after the specified date/time or after the current time when no + * date is provided. + * + * **Example** (Finding the next occurrence) * - * @example * ```ts * import { Cron, Result } from "effect" * @@ -468,8 +548,11 @@ const daysInMonth = date => new Date(Date.UTC(date.getUTCFullYear(), date.getUTC * console.log(nextFromNow) // Next occurrence from now * ``` * + * @see {@link prev} for finding the previous scheduled occurrence + * @see {@link sequence} for iterating future scheduled occurrences + * + * @category getters * @since 2.0.0 - * @category utils */ export const next = (cron, now) => { return stepCron(cron, now, "next"); @@ -477,8 +560,24 @@ export const next = (cron, now) => { /** * Returns the previous scheduled date/time for the given Cron instance. * - * @since 4.0.0 - * @category utils + * **When to use** + * + * Use to find the most recent occurrence of a cron schedule before a specific + * date/time or before the current time. + * + * **Details** + * + * When no date/time is provided, the search starts from the current time. + * + * **Gotchas** + * + * The search is strict: if the supplied date/time already matches the schedule, + * the result is the earlier occurrence. + * + * @see {@link next} for finding the next scheduled occurrence + * + * @category getters + * @since 3.20.0 */ export const prev = (cron, now) => { return stepCron(cron, now, "prev"); @@ -619,11 +718,18 @@ const stepCron = (cron, now, direction) => { /** * Returns an infinite iterator that yields dates matching the Cron schedule. * - * This function creates an iterator that generates an infinite sequence - * of dates when the cron schedule should trigger, starting from the - * specified date. + * **When to use** + * + * Use to lazily iterate future occurrences of a cron schedule. + * + * **Details** + * + * The iterator generates an infinite sequence of dates when the cron schedule + * should trigger, starting after the specified date/time or after the current + * time when no date is provided. + * + * **Example** (Iterating scheduled occurrences) * - * @example * ```ts * import { Cron, Result } from "effect" * @@ -637,8 +743,10 @@ const stepCron = (cron, now, direction) => { * // [Mon Jan 02 2023 09:00:00, Tue Jan 03 2023 09:00:00, ...] * ``` * + * @see {@link next} for computing one next occurrence + * + * @category sequencing * @since 2.0.0 - * @category utils */ export const sequence = function* (cron, now) { while (true) { @@ -646,13 +754,21 @@ export const sequence = function* (cron, now) { } }; /** - * An Equivalence instance for comparing Cron schedules. + * Equivalence instance for comparing the field restrictions of two `Cron` + * schedules. * - * This equivalence compares two Cron instances by checking if their - * time constraints (seconds, minutes, hours, days, months, weekdays) - * are equivalent, regardless of the internal order. + * **When to use** + * + * Use to compare cron schedules through APIs that accept an equivalence + * relation. + * + * **Details** + * + * This comparison checks seconds, minutes, hours, days, months, and weekdays. + * It does not compare the optional timezone. + * + * **Example** (Comparing schedules with equivalence) * - * @example * ```ts * import { Cron } from "effect" * @@ -675,19 +791,29 @@ export const sequence = function* (cron, now) { * console.log(Cron.Equivalence(cron1, cron2)) // true * ``` * - * @since 2.0.0 + * @see {@link equals} for directly comparing two `Cron` values + * * @category instances + * @since 2.0.0 */ export const Equivalence = /*#__PURE__*/Equ.make((self, that) => restrictionsEquals(self.seconds, that.seconds) && restrictionsEquals(self.minutes, that.minutes) && restrictionsEquals(self.hours, that.hours) && restrictionsEquals(self.days, that.days) && restrictionsEquals(self.months, that.months) && restrictionsEquals(self.weekdays, that.weekdays)); const restrictionsArrayEquals = /*#__PURE__*/Equ.Array(/*#__PURE__*/Equ.strictEqual()); const restrictionsEquals = (self, that) => restrictionsArrayEquals(Arr.fromIterable(self), Arr.fromIterable(that)); /** - * Checks if two Cron instances are equal. + * Checks whether two `Cron` instances have the same field restrictions. + * + * **When to use** + * + * Use to directly compare whether two cron schedules have the same field + * restrictions. + * + * **Details** * - * This function compares two Cron instances to determine if they represent - * the same schedule by checking all their time constraints for equality. + * The comparison checks seconds, minutes, hours, days, months, and weekdays. + * It does not compare the optional timezone. + * + * **Example** (Checking schedule equality) * - * @example * ```ts * import { Cron } from "effect" * @@ -711,8 +837,10 @@ const restrictionsEquals = (self, that) => restrictionsArrayEquals(Arr.fromItera * console.log(Cron.equals(cron1)(cron2)) // true (curried form) * ``` * - * @since 2.0.0 + * @see {@link Equivalence} for the reusable equivalence instance + * * @category predicates + * @since 2.0.0 */ export const equals = /*#__PURE__*/dual(2, (self, that) => Equivalence(self, that)); const secondOptions = { diff --git a/.opencode/node_modules/effect/dist/Cron.js.map b/.opencode/node_modules/effect/dist/Cron.js.map index 4c30d85851e314a596e8b52980d5828ac635a386..634b7eb7e5d9fe0ebc2556679426501a7e0011c8 100644 --- a/.opencode/node_modules/effect/dist/Cron.js.map +++ b/.opencode/node_modules/effect/dist/Cron.js.map @@ -1 +1 @@ -{"version":3,"file":"Cron.js","names":["Arr","Data","Equal","Equ","format","constVoid","dual","pipe","Hash","NodeInspectSymbol","dateTime","N","Option","pipeArguments","hasProperty","Result","String","TypeId","toPojo","cron","tz","seconds","fromIterable","minutes","hours","days","months","weekdays","CronProto","symbol","that","isCron","equals","hash","combine","array","toObject","toString","toJSON","out","arguments","u","make","values","o","Object","create","Set","sort","Order","fromUndefinedOr","Array","from","first","second","minute","hour","day","month","weekday","last","length","next","lookupTable","prev","size","dir","result","fill","undefined","current","index","i","CronParseErrorTypeId","CronParseError","TaggedError","isCronParseError","parse","segments","split","filter","isNonEmpty","fail","message","input","unshift","zone","isTimeZone","succeed","fromOption","zoneFromString","all","parseSegment","secondOptions","minuteOptions","hourOptions","dayOptions","monthOptions","weekdayOptions","map","parseUnsafe","getOrThrow","match","date","parts","makeZonedUnsafe","timeZone","getOrUndefined","toParts","has","weekDay","daysInMonth","Date","UTC","getUTCFullYear","getUTCMonth","getUTCDate","now","stepCron","direction","zoned","reverse","tick","table","boundary","needsStep","utc","isTimeZoneNamed","id","adjustDst","adjusted","adjustForTimeZone","disambiguation","toDate","drift","getTime","setTime","mutate","setUTCSeconds","getUTCSeconds","currentSecond","nextSecond","setUTCMinutes","getUTCMinutes","currentMinute","nextMinute","setUTCHours","getUTCHours","currentHour","nextHour","setUTCDate","a","Infinity","b","currentWeekday","getUTCDay","nextWeekday","currentDay","nextDay","prevMonthDays","addDays","Math","max","min","currentMonth","nextMonth","clampBoundaryDay","targetMonthIndex","maxDayInMonth","setUTCFullYear","setUTCMonth","Error","toDateUtc","sequence","Equivalence","self","restrictionsEquals","restrictionsArrayEquals","strictEqual","aliases","jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec","sun","mon","tue","wed","thu","fri","sat","options","capacity","fields","field","raw","step","splitStep","Number","isInteger","add","left","right","splitRange","separator","indexOf","slice","aliasOrValue","toLocaleLowerCase"],"sources":["../src/Cron.ts"],"sourcesContent":[null],"mappings":"AAAA;;;AAGA,OAAO,KAAKA,GAAG,MAAM,YAAY;AACjC,OAAO,KAAKC,IAAI,MAAM,WAAW;AAEjC,OAAO,KAAKC,KAAK,MAAM,YAAY;AACnC,OAAO,KAAKC,GAAG,MAAM,kBAAkB;AACvC,SAASC,MAAM,QAAQ,gBAAgB;AACvC,SAASC,SAAS,EAAEC,IAAI,EAAEC,IAAI,QAAQ,eAAe;AACrD,OAAO,KAAKC,IAAI,MAAM,WAAW;AACjC,SAA2BC,iBAAiB,QAAQ,kBAAkB;AACtE,OAAO,KAAKC,QAAQ,MAAM,wBAAwB;AAClD,OAAO,KAAKC,CAAC,MAAM,aAAa;AAChC,OAAO,KAAKC,MAAM,MAAM,aAAa;AACrC,SAAwBC,aAAa,QAAQ,eAAe;AAC5D,SAASC,WAAW,QAAQ,gBAAgB;AAC5C,OAAO,KAAKC,MAAM,MAAM,aAAa;AACrC,OAAO,KAAKC,MAAM,MAAM,aAAa;AAGrC,MAAMC,MAAM,GAAG,mBAAmB;AA6GlC,SAASC,MAAMA,CAACC,IAAU;EACxB,OAAO;IACLC,EAAE,EAAED,IAAI,CAACC,EAAE;IACXC,OAAO,EAAErB,GAAG,CAACsB,YAAY,CAACH,IAAI,CAACE,OAAO,CAAC;IACvCE,OAAO,EAAEvB,GAAG,CAACsB,YAAY,CAACH,IAAI,CAACI,OAAO,CAAC;IACvCC,KAAK,EAAExB,GAAG,CAACsB,YAAY,CAACH,IAAI,CAACK,KAAK,CAAC;IACnCC,IAAI,EAAEzB,GAAG,CAACsB,YAAY,CAACH,IAAI,CAACM,IAAI,CAAC;IACjCC,MAAM,EAAE1B,GAAG,CAACsB,YAAY,CAACH,IAAI,CAACO,MAAM,CAAC;IACrCC,QA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AC;EACxE;EAEA,OAAO,CAAChI,KAAK,EAAEf,SAAS,CAAC;AAC3B,CAAC;AAED,MAAM8I,UAAU,GAAGA,CAAC/H,KAAa,EAAE+F,OAAgC,KAAkC;EACnG,MAAMiC,SAAS,GAAGhI,KAAK,CAACiI,OAAO,CAAC,GAAG,CAAC;EACpC,IAAID,SAAS,KAAK,CAAC,CAAC,EAAE;IACpB,OAAO,CAACG,YAAY,CAACnI,KAAK,CAACkI,KAAK,CAAC,CAAC,EAAEF,SAAS,CAAC,EAAEjC,OAAO,CAAC,EAAEoC,YAAY,CAACnI,KAAK,CAACkI,KAAK,CAACF,SAAS,GAAG,CAAC,CAAC,EAAEjC,OAAO,CAAC,CAAC;EAC9G;EAEA,OAAO,CAACoC,YAAY,CAACnI,KAAK,EAAE+F,OAAO,CAAC,EAAE9G,SAAS,CAAC;AAClD,CAAC;AAED,SAASkJ,YAAYA,CAACb,KAAa,EAAEvB,OAAgC;EACnE,OAAOA,OAAO,GAAGuB,KAAK,CAACc,iBAAiB,EAAE,CAAC,IAAIV,MAAM,CAACJ,KAAK,CAAC;AAC9D","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"Cron.js","names":["Arr","Data","Equal","Equ","format","constVoid","dual","pipe","Hash","NodeInspectSymbol","dateTime","N","Option","pipeArguments","hasProperty","Result","String","TypeId","toPojo","cron","tz","seconds","fromIterable","minutes","hours","days","months","weekdays","CronProto","symbol","that","isCron","equals","hash","combine","array","toObject","toString","toJSON","out","arguments","u","make","values","o","Object","create","Set","sort","Order","fromUndefinedOr","Array","from","first","second","minute","hour","day","month","weekday","last","length","next","lookupTable","prev","size","dir","result","fill","undefined","current","index","i","CronParseErrorTypeId","CronParseError","TaggedError","isCronParseError","parse","segments","split","filter","isNonEmpty","fail","message","input","unshift","zone","isTimeZone","succeed","fromOption","zoneFromString","all","parseSegment","secondOptions","minuteOptions","hourOptions","dayOptions","monthOptions","weekdayOptions","map","parseUnsafe","getOrThrow","match","date","parts","makeZonedUnsafe","timeZone","getOrUndefined","toParts","has","weekDay","daysInMonth","Date","UTC","getUTCFullYear","getUTCMonth","getUTCDate","now","stepCron","direction","zoned","reverse","tick","table","boundary","needsStep","utc","isTimeZoneNamed","id","adjustDst","adjusted","adjustForTimeZone","disambiguation","toDate","drift","getTime","setTime","mutate","setUTCSeconds","getUTCSeconds","currentSecond","nextSecond","setUTCMinutes","getUTCMinutes","currentMinute","nextMinute","setUTCHours","getUTCHours","currentHour","nextHour","setUTCDate","a","Infinity","b","currentWeekday","getUTCDay","nextWeekday","currentDay","nextDay","prevMonthDays","addDays","Math","max","min","currentMonth","nextMonth","clampBoundaryDay","targetMonthIndex","maxDayInMonth","setUTCFullYear","setUTCMonth","Error","toDateUtc","sequence","Equivalence","self","restrictionsEquals","restrictionsArrayEquals","strictEqual","aliases","jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec","sun","mon","tue","wed","thu","fri","sat","options","capacity","fields","field","raw","step","splitStep","Number","isInteger","add","left","right","splitRange","separator","indexOf","slice","aliasOrValue","toLocaleLowerCase"],"sources":["../src/Cron.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;AASA,OAAO,KAAKA,GAAG,MAAM,YAAY;AACjC,OAAO,KAAKC,IAAI,MAAM,WAAW;AAEjC,OAAO,KAAKC,KAAK,MAAM,YAAY;AACnC,OAAO,KAAKC,GAAG,MAAM,kBAAkB;AACvC,SAASC,MAAM,QAAQ,gBAAgB;AACvC,SAASC,SAAS,EAAEC,IAAI,EAAEC,IAAI,QAAQ,eAAe;AACrD,OAAO,KAAKC,IAAI,MAAM,WAAW;AACjC,SAA2BC,iBAAiB,QAAQ,kBAAkB;AACtE,OAAO,KAAKC,QAAQ,MAAM,wBAAwB;AAClD,OAAO,KAAKC,CAAC,MAAM,aAAa;AAChC,OAAO,KAAKC,MAAM,MAAM,aAAa;AACrC,SAAwBC,aAAa,QAAQ,eAAe;AAC5D,SAASC,WAAW,QAAQ,gBAAgB;AAC5C,OAAO,KAAKC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,YAAYA,CAACb,KAAa,EAAEvB,OAAgC;EACnE,OAAOA,OAAO,GAAGuB,KAAK,CAACc,iBAAiB,EAAE,CAAC,IAAIV,MAAM,CAACJ,KAAK,CAAC;AAC9D","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Crypto.d.ts b/.opencode/node_modules/effect/dist/Crypto.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..80987d6d8dfa05289d52ae25d227cc1677b6e24e --- /dev/null +++ b/.opencode/node_modules/effect/dist/Crypto.d.ts @@ -0,0 +1,199 @@ +/** + * Defines a platform-independent service for cryptographic operations. + * + * Runtime packages provide concrete implementations backed by the host + * platform's cryptography APIs. This module defines the service interface and a + * constructor from random-byte and digest primitives. The service provides + * secure random bytes and numbers, UUIDv4 and UUIDv7 generation, shuffling, and + * SHA message digests. + * + * @since 4.0.0 + */ +import * as Context from "./Context.ts"; +import * as Effect from "./Effect.ts"; +import * as PlatformError from "./PlatformError.ts"; +declare const TypeId = "~effect/platform/Crypto"; +/** + * Digest algorithms supported by the platform `Crypto` service. + * + * **Gotchas** + * + * SHA-1 is included for interoperability with existing protocols. Do not use + * SHA-1 for new security-sensitive designs. + * + * **Example** (Using a digest algorithm) + * + * ```ts + * import { Crypto } from "effect" + * + * const algorithm: Crypto.DigestAlgorithm = "SHA-256" + * ``` + * + * @category models + * @since 4.0.0 + */ +export type DigestAlgorithm = "SHA-1" | "SHA-256" | "SHA-384" | "SHA-512"; +/** + * Platform-agnostic cryptographic operations. + * + * **Details** + * + * `Crypto` implementations must use cryptographically secure platform APIs. + * The random generator helpers are derived by the `make` constructor from + * the random methods on this service. + * + * **Example** (Using cryptographic operations) + * + * ```ts + * import { Crypto, Effect, Layer } from "effect" + * + * const TestCrypto = Layer.succeed( + * Crypto.Crypto, + * Crypto.make({ + * randomBytes: (size) => new Uint8Array(size), + * digest: (_algorithm, data) => Effect.succeed(data) + * }) + * ) + * + * const program = Effect.gen(function*() { + * const crypto = yield* Crypto.Crypto + * const bytes = yield* crypto.randomBytes(16) + * const uuidv4 = yield* crypto.randomUUIDv4 + * const uuidv7 = yield* crypto.randomUUIDv7 + * const hash = yield* crypto.digest("SHA-256", bytes) + * return { uuidv4, uuidv7, hash } + * }) + * + * Effect.runPromise(Effect.provide(program, TestCrypto)) + * ``` + * + * @category models + * @since 4.0.0 + */ +export interface Crypto { + readonly [TypeId]: typeof TypeId; + /** + * Generates a random integer in the range Number.MIN_SAFE_INTEGER to + * Number.MAX_SAFE_INTEGER (both inclusive). + */ + nextIntUnsafe(): number; + /** + * Generates a random number in the range 0 (inclusive) to 1 (exclusive). + */ + nextDoubleUnsafe(): number; + /** + * Generates cryptographically secure random bytes. + */ + randomBytes(size: number): Effect.Effect; + /** + * Computes a cryptographic digest for the supplied data. + */ + digest(algorithm: DigestAlgorithm, data: Uint8Array): Effect.Effect; + /** + * Generates a cryptographically secure random number between 0 (inclusive) + * and 1 (exclusive). + */ + readonly random: Effect.Effect; + /** + * Generates a cryptographically secure random boolean. + */ + readonly randomBoolean: Effect.Effect; + /** + * Generates a cryptographically secure random integer between + * `Number.MIN_SAFE_INTEGER` and `Number.MAX_SAFE_INTEGER` (both inclusive). + */ + readonly randomInt: Effect.Effect; + /** + * Generates a cryptographically secure random number between `min` + * (inclusive) and `max` (exclusive). + */ + randomBetween(min: number, max: number): Effect.Effect; + /** + * Generates a cryptographically secure random integer between `min` and `max`. + * + * **Details** + * + * The lower bound is rounded up with `Math.ceil` and the upper bound is + * rounded down with `Math.floor`. By default the range is inclusive; set + * `options.halfOpen: true` to exclude the upper bound. + */ + randomIntBetween(min: number, max: number, options?: { + readonly halfOpen?: boolean | undefined; + }): Effect.Effect; + /** + * Uses the cryptographically secure random generator to shuffle the supplied + * iterable. + */ + randomShuffle(elements: Iterable): Effect.Effect>; + /** + * Generates a cryptographically secure UUIDv4 string. + */ + readonly randomUUIDv4: Effect.Effect; + /** + * Generates a cryptographically secure UUIDv7 string. + */ + readonly randomUUIDv7: Effect.Effect; +} +/** + * Service tag for platform cryptography. + * + * **When to use** + * + * Use when you need to provide or retrieve the full platform cryptography + * service from an effect's context. + * + * **Details** + * + * Providing this service supplies platform-agnostic cryptographic operations + * such as hashing, UUID generation, and secure random values. + * + * @see {@link make} for constructing a Crypto service from primitive operations + * + * @category services + * @since 4.0.0 + */ +export declare const Crypto: Context.Service; +/** + * Creates a `Crypto` service from the primitive implementation, deriving the + * random generator helpers and UUID generation from those primitives. + * + * **When to use** + * + * Use to build a Crypto service for a platform integration, test layer, or + * custom runtime from primitive random-byte and digest operations. + * + * **Details** + * + * The constructor derives random numbers, booleans, integer ranges, shuffling, + * and UUID generation from `impl.randomBytes`. Digest operations delegate to + * `impl.digest`. + * + * **Gotchas** + * + * `impl.randomBytes` must return cryptographically secure bytes of the + * requested length. UUID formatting mutates the byte array returned for UUID + * generation, so the implementation should return a fresh array for each call. + * + * **Example** (Creating a Crypto service) + * + * ```ts + * import { Crypto, Effect, Layer } from "effect" + * + * const TestCrypto = Layer.succeed( + * Crypto.Crypto, + * Crypto.make({ + * randomBytes: (size) => new Uint8Array(size), + * digest: (_algorithm, data) => Effect.succeed(data) + * }) + * ) + * ``` + * + * @category constructors + * @since 4.0.0 + */ +export declare const make: (impl: { + readonly randomBytes: (size: number) => Uint8Array; + readonly digest: (algorithm: DigestAlgorithm, data: Uint8Array) => Effect.Effect; +}) => Crypto; +export {}; +//# sourceMappingURL=Crypto.d.ts.map \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Crypto.d.ts.map b/.opencode/node_modules/effect/dist/Crypto.d.ts.map new file mode 100644 index 0000000000000000000000000000000000000000..7d5ef93ce53618b92587f0ca4d9b8abcea7a9a68 --- /dev/null +++ b/.opencode/node_modules/effect/dist/Crypto.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Crypto.d.ts","sourceRoot":"","sources":["../src/Crypto.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,OAAO,MAAM,cAAc,CAAA;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,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;KACxC,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;IAEzB;;;OAGG;IACH,aAAa,CAAC,CAAC,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAA;IAEhE;;OAEG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,aAAa,CAAC,CAAA;IAEzE;;OAEG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,aAAa,CAAC,CAAA;CAC1E;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,MAAM,EAAE,MAAM,CAAoC,CAAA;AAEvF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,eAAO,MAAM,IAAI,GACf,MAAM;IACJ,QAAQ,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,UAAU,CAAA;IAClD,QAAQ,CAAC,MAAM,EAAE,CACf,SAAS,EAAE,eAAe,EAC1B,IAAI,EAAE,UAAU,KACb,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,aAAa,CAAC,CAAA;CAC5D,KACA,MAiDF,CAAA"} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Crypto.js b/.opencode/node_modules/effect/dist/Crypto.js new file mode 100644 index 0000000000000000000000000000000000000000..00da3660fcc953f97cef731e5ab0971be495b588 --- /dev/null +++ b/.opencode/node_modules/effect/dist/Crypto.js @@ -0,0 +1,142 @@ +/** + * Defines a platform-independent service for cryptographic operations. + * + * Runtime packages provide concrete implementations backed by the host + * platform's cryptography APIs. This module defines the service interface and a + * constructor from random-byte and digest primitives. The service provides + * secure random bytes and numbers, UUIDv4 and UUIDv7 generation, shuffling, and + * SHA message digests. + * + * @since 4.0.0 + */ +import * as Context from "./Context.js"; +import * as Effect from "./Effect.js"; +import * as PlatformError from "./PlatformError.js"; +const TypeId = "~effect/platform/Crypto"; +/** + * Service tag for platform cryptography. + * + * **When to use** + * + * Use when you need to provide or retrieve the full platform cryptography + * service from an effect's context. + * + * **Details** + * + * Providing this service supplies platform-agnostic cryptographic operations + * such as hashing, UUID generation, and secure random values. + * + * @see {@link make} for constructing a Crypto service from primitive operations + * + * @category services + * @since 4.0.0 + */ +export const Crypto = /*#__PURE__*/Context.Service("effect/Crypto"); +/** + * Creates a `Crypto` service from the primitive implementation, deriving the + * random generator helpers and UUID generation from those primitives. + * + * **When to use** + * + * Use to build a Crypto service for a platform integration, test layer, or + * custom runtime from primitive random-byte and digest operations. + * + * **Details** + * + * The constructor derives random numbers, booleans, integer ranges, shuffling, + * and UUID generation from `impl.randomBytes`. Digest operations delegate to + * `impl.digest`. + * + * **Gotchas** + * + * `impl.randomBytes` must return cryptographically secure bytes of the + * requested length. UUID formatting mutates the byte array returned for UUID + * generation, so the implementation should return a fresh array for each call. + * + * **Example** (Creating a Crypto service) + * + * ```ts + * import { Crypto, Effect, Layer } from "effect" + * + * const TestCrypto = Layer.succeed( + * Crypto.Crypto, + * Crypto.make({ + * randomBytes: (size) => new Uint8Array(size), + * digest: (_algorithm, data) => Effect.succeed(data) + * }) + * ) + * ``` + * + * @category constructors + * @since 4.0.0 + */ +export const make = impl => { + const randomBytesUnsafe = impl.randomBytes; + const randomBytes = size => Effect.map(validateSize("randomBytes", size), randomBytesUnsafe); + const nextDoubleUnsafe = () => { + const bytes = randomBytesUnsafe(7); + const value = (bytes[0] & 0x1f) * 2 ** 48 + bytes[1] * 2 ** 40 + bytes[2] * 2 ** 32 + bytes[3] * 2 ** 24 + bytes[4] * 2 ** 16 + bytes[5] * 2 ** 8 + bytes[6]; + return value / 2 ** 53; + }; + const nextIntUnsafe = () => Math.floor(nextDoubleUnsafe() * (Number.MAX_SAFE_INTEGER - Number.MIN_SAFE_INTEGER + 1)) + Number.MIN_SAFE_INTEGER; + return Crypto.of({ + [TypeId]: TypeId, + randomBytes, + nextDoubleUnsafe, + nextIntUnsafe, + digest: impl.digest, + random: Effect.sync(() => nextDoubleUnsafe()), + randomBoolean: Effect.sync(() => nextDoubleUnsafe() > 0.5), + randomInt: Effect.sync(() => nextIntUnsafe()), + randomBetween: (min, max) => Effect.sync(() => nextDoubleUnsafe() * (max - min) + min), + randomIntBetween(min, max, options) { + const extra = options?.halfOpen === true ? 0 : 1; + return Effect.sync(() => { + const minInt = Math.ceil(min); + const maxInt = Math.floor(max); + return Math.floor(nextDoubleUnsafe() * (maxInt - minInt + extra)) + minInt; + }); + }, + randomShuffle: elements => Effect.sync(() => { + const buffer = Array.from(elements); + for (let i = buffer.length - 1; i >= 1; i = i - 1) { + const index = Math.min(i, Math.floor(nextDoubleUnsafe() * (i + 1))); + const value = buffer[i]; + buffer[i] = buffer[index]; + buffer[index] = value; + } + return buffer; + }), + randomUUIDv4: Effect.sync(() => formatUUIDv4(randomBytesUnsafe(16))), + randomUUIDv7: Effect.clockWith(clock => Effect.succeed(formatUUIDv7(clock.currentTimeMillisUnsafe(), randomBytesUnsafe(16)))) + }); +}; +const validateSize = (method, size) => Number.isSafeInteger(size) && size >= 0 ? Effect.succeed(size) : Effect.fail(PlatformError.badArgument({ + module: "Crypto", + method, + description: "size must be a non-negative safe integer" +})); +const hex = byte => byte.toString(16).padStart(2, "0"); +const formatUUID = bytes => { + const segments = [bytes.subarray(0, 4), bytes.subarray(4, 6), bytes.subarray(6, 8), bytes.subarray(8, 10), bytes.subarray(10, 16)]; + return segments.map(segment => Array.from(segment, hex).join("")).join("-"); +}; +const formatUUIDv4 = bytes => { + bytes[6] = bytes[6] & 0x0f | 0x40; + bytes[8] = bytes[8] & 0x3f | 0x80; + return formatUUID(bytes); +}; +const maxUUIDv7Timestamp = 2 ** 48 - 1; +const formatUUIDv7 = (timestampMillis, bytes) => { + const timestamp = Math.min(Math.max(0, Math.trunc(timestampMillis)), maxUUIDv7Timestamp); + bytes[0] = Math.floor(timestamp / 2 ** 40); + bytes[1] = Math.floor(timestamp / 2 ** 32) & 0xff; + bytes[2] = Math.floor(timestamp / 2 ** 24) & 0xff; + bytes[3] = Math.floor(timestamp / 2 ** 16) & 0xff; + bytes[4] = Math.floor(timestamp / 2 ** 8) & 0xff; + bytes[5] = timestamp & 0xff; + bytes[6] = bytes[6] & 0x0f | 0x70; + bytes[8] = bytes[8] & 0x3f | 0x80; + return formatUUID(bytes); +}; +//# sourceMappingURL=Crypto.js.map \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Crypto.js.map b/.opencode/node_modules/effect/dist/Crypto.js.map new file mode 100644 index 0000000000000000000000000000000000000000..35a1a704a49ad2225350a17975773d2458ccf122 --- /dev/null +++ b/.opencode/node_modules/effect/dist/Crypto.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Crypto.js","names":["Context","Effect","PlatformError","TypeId","Crypto","Service","make","impl","randomBytesUnsafe","randomBytes","size","map","validateSize","nextDoubleUnsafe","bytes","value","nextIntUnsafe","Math","floor","Number","MAX_SAFE_INTEGER","MIN_SAFE_INTEGER","of","digest","random","sync","randomBoolean","randomInt","randomBetween","min","max","randomIntBetween","options","extra","halfOpen","minInt","ceil","maxInt","randomShuffle","elements","buffer","Array","from","i","length","index","randomUUIDv4","formatUUIDv4","randomUUIDv7","clockWith","clock","succeed","formatUUIDv7","currentTimeMillisUnsafe","method","isSafeInteger","fail","badArgument","module","description","hex","byte","toString","padStart","formatUUID","segments","subarray","segment","join","maxUUIDv7Timestamp","timestampMillis","timestamp","trunc"],"sources":["../src/Crypto.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;;AAWA,OAAO,KAAKA,OAAO,MAAM,cAAc;AACvC,OAAO,KAAKC,MAAM,MAAM,aAAa;AACrC,OAAO,KAAKC,aAA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AC,GAAG,IAAI;EACjDzD,KAAK,CAAC,CAAC,CAAC,GAAGG,IAAI,CAACC,KAAK,CAACqD,SAAS,GAAG,CAAC,IAAI,EAAE,CAAC,GAAG,IAAI;EACjDzD,KAAK,CAAC,CAAC,CAAC,GAAGG,IAAI,CAACC,KAAK,CAACqD,SAAS,GAAG,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI;EAChDzD,KAAK,CAAC,CAAC,CAAC,GAAGyD,SAAS,GAAG,IAAI;EAC3BzD,KAAK,CAAC,CAAC,CAAC,GAAIA,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,GAAI,IAAI;EACnCA,KAAK,CAAC,CAAC,CAAC,GAAIA,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,GAAI,IAAI;EAEnC,OAAOkD,UAAU,CAAClD,KAAK,CAAC;AAC1B,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Data.d.ts b/.opencode/node_modules/effect/dist/Data.d.ts index d899b046ea0a664749073dc20e9dc73e50b336ca..500fe5e8c7c2441e9cd35d1155aea1ee612513c0 100644 --- a/.opencode/node_modules/effect/dist/Data.d.ts +++ b/.opencode/node_modules/effect/dist/Data.d.ts @@ -1,73 +1,10 @@ /** - * Immutable data constructors with discriminated-union support. - * - * The `Data` module provides base classes and factory functions for creating - * immutable value types with a `_tag` field for discriminated unions. - * It is the recommended way to define domain models, error types, and - * lightweight ADTs in Effect applications. - * - * ## Mental model - * - * - **`Class`** — base class for plain immutable data. Extend it with a type - * parameter to declare the fields. Instances are `Pipeable`. - * - **`TaggedClass`** — like `Class` but automatically adds a `readonly _tag` - * string literal field. Useful for single-variant types or ad-hoc tagged - * values. - * - **`TaggedEnum`** (type) + **`taggedEnum`** (value) — define a multi-variant - * discriminated union from a simple record. `taggedEnum()` returns per-variant - * constructors plus `$is` / `$match` helpers. - * - **`Error`** — like `Class` but extends `Cause.YieldableError`, so instances - * can be yielded inside `Effect.gen` to fail the effect. - * - **`TaggedError`** — like `TaggedClass` but extends `Cause.YieldableError`. - * Works with `Effect.catchTag` for tag-based error recovery. - * - * ## Common tasks - * - * - Define a simple value class → {@link Class} - * - Define a value class with a `_tag` → {@link TaggedClass} - * - Define a discriminated union with constructors → {@link TaggedEnum} + {@link taggedEnum} - * - Define a yieldable error → {@link Error} - * - Define a yieldable tagged error → {@link TaggedError} - * - Type-guard a tagged value → `$is` from {@link taggedEnum} - * - Pattern-match on a tagged union → `$match` from {@link taggedEnum} - * - * ## Gotchas - * - * - Variant records passed to `TaggedEnum` must **not** contain a `_tag` key; - * the `_tag` is added automatically from the record key. - * - When a class has no fields, the constructor argument is optional (`void`). - * - `taggedEnum()` creates **plain objects**, not class instances. If you need - * class-based variants, use `TaggedClass` or `TaggedError` instead. - * - `TaggedEnum.WithGenerics` supports up to 4 generic type parameters. - * - * ## Quickstart - * - * **Example** (tagged union with pattern matching) + * Defines helpers for small immutable data models. * - * ```ts - * import { Data } from "effect" - * - * type Shape = Data.TaggedEnum<{ - * Circle: { readonly radius: number } - * Rect: { readonly width: number; readonly height: number } - * }> - * const { Circle, Rect, $match } = Data.taggedEnum() - * - * const area = $match({ - * Circle: ({ radius }) => Math.PI * radius ** 2, - * Rect: ({ width, height }) => width * height - * }) - * - * console.log(area(Circle({ radius: 5 }))) - * // 78.53981633974483 - * console.log(area(Rect({ width: 3, height: 4 }))) - * // 12 - * ``` - * - * @see {@link Class} — plain immutable data class - * @see {@link TaggedEnum} — discriminated union type - * @see {@link taggedEnum} — discriminated union constructors - * @see {@link TaggedError} — yieldable tagged error class + * This module helps create plain classes, tagged classes, tagged unions, and + * typed errors with readonly fields. Tagged values carry a `_tag` field, which + * makes them easy to narrow with pattern matching or simple checks. These + * helpers are commonly used for domain values and errors in Effect programs. * * @since 2.0.0 */ @@ -76,18 +13,19 @@ import * as Pipeable from "./Pipeable.ts"; import type * as Types from "./Types.ts"; import type { Unify } from "./Unify.ts"; /** - * Base class for immutable data types. + * Provides a base class for immutable data types. + * + * **When to use** + * + * Use when you need a lightweight immutable value type with `.pipe()` support. + * + * **Details** * * Extend `Class` with a type parameter to declare fields. The constructor * accepts those fields as a single object argument. When there are no fields - * the argument is optional. - * - * - Use when you need a lightweight immutable value type with `.pipe()` support. - * - Instances are `Readonly` and `Pipeable`. - * - If you also need a `_tag` discriminator, use {@link TaggedClass} instead. - * - If you need a yieldable error, use {@link Error} or {@link TaggedError}. + * the argument is optional. Instances are `Readonly` and `Pipeable`. * - * **Example** (defining a value class) + * **Example** (Defining a value class) * * ```ts * import { Data, Equal } from "effect" @@ -111,17 +49,19 @@ export declare const Class: new = {}>(args: Types readonly [P in keyof A]: A[P]; }>) => Readonly & Pipeable.Pipeable; /** - * Base class for immutable data types with a `_tag` discriminator. + * Provides a base class for immutable data types with a `_tag` discriminator. + * + * **When to use** + * + * Use when you need a single-variant tagged type or an ad-hoc discriminator. + * + * **Details** * * Like {@link Class}, but the resulting instances also carry a * `readonly _tag: Tag` property. The `_tag` is excluded from the constructor * argument. * - * - Use when you need a single-variant tagged type or an ad-hoc discriminator. - * - For multi-variant unions, prefer {@link TaggedEnum} + {@link taggedEnum}. - * - For yieldable errors, use {@link TaggedError}. - * - * **Example** (defining a tagged class) + * **Example** (Defining a tagged class) * * ```ts * import { Data } from "effect" @@ -148,17 +88,20 @@ export declare const TaggedClass: (tag: Tag) => new (tag: Tag) => new = true extends ChildrenAreTagged ? "It looks like yo /** * Namespace for `TaggedEnum` utility types. * + * **When to use** + * + * Use to reference utility types for constructing, extracting, and matching + * `TaggedEnum` variants. + * + * **Details** + * * Provides helper types for: * - Generic tagged enums ({@link TaggedEnum.WithGenerics}, {@link TaggedEnum.Kind}) * - Extracting constructor arguments ({@link TaggedEnum.Args}) and variant * values ({@link TaggedEnum.Value}) * - Full constructor objects ({@link TaggedEnum.Constructor}) * - * @category types * @since 2.0.0 */ export declare namespace TaggedEnum { /** * Defines a tagged enum shape that accepts generic type parameters. * + * **When to use** + * + * Use when variant payloads need to be parameterized, such as `Result`. + * + * **Details** + * * Extend this interface and set `taggedEnum` to your union type, using * `this["A"]`, `this["B"]`, etc. as placeholders for the generics. The * `Count` parameter declares how many generics are used (up to 4). * - * - Use when variant payloads need to be parameterized (e.g., `Result`). - * - Pass the interface (not the type alias) to {@link taggedEnum} to get - * generic-aware constructors. - * - * **Example** (generic tagged enum) + * **Example** (Generic tagged enum) * * ```ts * import { Data } from "effect" @@ -238,8 +189,9 @@ export declare namespace TaggedEnum { * ``` * * @see {@link Kind} — apply concrete types to a `WithGenerics` definition - * @see {@link taggedEnum} — runtime constructors + * @see {@link taggedEnum} — constructors and matchers * + * @category models * @since 2.0.0 */ interface WithGenerics { @@ -256,10 +208,11 @@ export declare namespace TaggedEnum { * Applies concrete type arguments to a `WithGenerics` definition, producing * the resulting tagged union type. * - * - Use to refer to a specific instantiation of a generic tagged enum in - * type signatures. + * **When to use** * - * **Example** (applying generics) + * Use to refer to a specific instantiation of a generic tagged enum in type signatures. + * + * **Example** (Applying generics) * * ```ts * import type { Data } from "effect" @@ -279,6 +232,7 @@ export declare namespace TaggedEnum { * * @see {@link WithGenerics} — define the generic shape * + * @category utility types * @since 2.0.0 */ type Kind, A = unknown, B = unknown, C = unknown, D = unknown> = (Z & { @@ -291,9 +245,16 @@ export declare namespace TaggedEnum { * Extracts the constructor argument type for a specific variant of a tagged * union. * + * **When to use** + * + * Use to derive the argument object expected by a constructor for one tagged + * union variant. + * + * **Details** + * * Returns `void` if the variant has no fields beyond `_tag`. * - * **Example** (extracting variant args) + * **Example** (Extracting variant args) * * ```ts * import type { Data } from "effect" @@ -311,6 +272,7 @@ export declare namespace TaggedEnum { * * @see {@link Value} — extracts the full variant type (including `_tag`) * + * @category utility types * @since 2.0.0 */ type Args; /** - * The full constructor-object type returned by {@link taggedEnum}. + * The full constructors-and-matchers object type returned by {@link taggedEnum}. + * + * **When to use** + * + * Use when you want to annotate an exported constructor bundle so downstream + * code keeps exact variant constructors and exhaustive matching. + * + * **Details** * * Includes: * - A constructor function for each variant (keyed by tag name) - * - `$is(tag)` — returns a type-guard for the given variant + * - `$is(tag)` — returns a type-guard that checks only the `_tag` field; + * safe when the tag is globally unique and the value was produced by your + * constructors. For untrusted input, validate with the `Schema` module first. * - `$match` — exhaustive pattern matching (data-last or data-first) * - * **Example** (using the constructor object) + * **Example** (Using the constructor object) * * ```ts * import { Data } from "effect" @@ -378,10 +354,10 @@ export declare namespace TaggedEnum { * }) * ``` * - * @see {@link taggedEnum} — creates a `Constructor` + * @see {@link taggedEnum} — creates constructors and matchers * - * @since 3.1.0 * @category types + * @since 3.1.0 */ type Constructor = (args: Types.VoidIfEmpty<{ @@ -420,11 +404,18 @@ export declare namespace TaggedEnum { /** * Type-guard and pattern-matching interface for generic tagged enums. * + * **When to use** + * + * Use to type the `$is` and `$match` helpers for generic tagged enums. + * + * **Details** + * * This is the `$is` / `$match` portion of the object returned by * {@link taggedEnum} when used with a {@link WithGenerics} definition. * * @see {@link Constructor} — the non-generic equivalent * + * @category models * @since 3.2.0 */ interface GenericMatchers> { @@ -451,19 +442,28 @@ export declare namespace TaggedEnum { } } /** - * Creates runtime constructors, type guards, and pattern matching for a - * {@link TaggedEnum} type. + * Creates constructors and matchers for a `TaggedEnum` type. + * + * **When to use** + * + * Use when you model a closed union with plain data objects and want + * construction, tag checks, and exhaustive matching from the same definition. + * + * **Details** * * Returns an object with: * - One constructor per variant (keyed by tag name) - * - `$is(tag)` — returns a type-guard function + * - `$is(tag)` — returns a type-guard function that checks only the `_tag` field * - `$match` — exhaustive pattern matching (data-first or data-last) * - * - Use when you have a `TaggedEnum` type and need to construct/inspect values. - * - Constructors produce **plain objects** (not class instances). - * - For generic enums, pass a {@link TaggedEnum.WithGenerics} interface. + * **Gotchas** + * + * - Constructors produce **plain objects**, not class instances. + * - `$is(tag)` only checks the `_tag` field, not the full structure. It relies + * on the tag being globally unique and the value being produced by your + * constructors. For untrusted input, validate with the `Schema` module first. * - * **Example** (basic usage) + * **Example** (Basic usage) * * ```ts * import { Data } from "effect" @@ -488,7 +488,7 @@ export declare namespace TaggedEnum { * console.log(msg) // "/missing not found" * ``` * - * **Example** (generic tagged enum) + * **Example** (Generic tagged enum) * * ```ts * import { Data } from "effect" @@ -515,19 +515,28 @@ export declare namespace TaggedEnum { */ export declare const taggedEnum: { /** - * Creates runtime constructors, type guards, and pattern matching for a - * {@link TaggedEnum} type. + * Creates constructors and matchers for a `TaggedEnum` type. + * + * **When to use** + * + * Use when you model a closed union with plain data objects and want + * construction, tag checks, and exhaustive matching from the same definition. + * + * **Details** * * Returns an object with: * - One constructor per variant (keyed by tag name) - * - `$is(tag)` — returns a type-guard function + * - `$is(tag)` — returns a type-guard function that checks only the `_tag` field * - `$match` — exhaustive pattern matching (data-first or data-last) * - * - Use when you have a `TaggedEnum` type and need to construct/inspect values. - * - Constructors produce **plain objects** (not class instances). - * - For generic enums, pass a {@link TaggedEnum.WithGenerics} interface. + * **Gotchas** * - * **Example** (basic usage) + * - Constructors produce **plain objects**, not class instances. + * - `$is(tag)` only checks the `_tag` field, not the full structure. It relies + * on the tag being globally unique and the value being produced by your + * constructors. For untrusted input, validate with the `Schema` module first. + * + * **Example** (Basic usage) * * ```ts * import { Data } from "effect" @@ -552,7 +561,7 @@ export declare const taggedEnum: { * console.log(msg) // "/missing not found" * ``` * - * **Example** (generic tagged enum) + * **Example** (Generic tagged enum) * * ```ts * import { Data } from "effect" @@ -583,19 +592,28 @@ export declare const taggedEnum: { }>>) => TaggedEnum.Value, Tag>; } & TaggedEnum.GenericMatchers>; /** - * Creates runtime constructors, type guards, and pattern matching for a - * {@link TaggedEnum} type. + * Creates constructors and matchers for a `TaggedEnum` type. + * + * **When to use** + * + * Use when you model a closed union with plain data objects and want + * construction, tag checks, and exhaustive matching from the same definition. + * + * **Details** * * Returns an object with: * - One constructor per variant (keyed by tag name) - * - `$is(tag)` — returns a type-guard function + * - `$is(tag)` — returns a type-guard function that checks only the `_tag` field * - `$match` — exhaustive pattern matching (data-first or data-last) * - * - Use when you have a `TaggedEnum` type and need to construct/inspect values. - * - Constructors produce **plain objects** (not class instances). - * - For generic enums, pass a {@link TaggedEnum.WithGenerics} interface. + * **Gotchas** * - * **Example** (basic usage) + * - Constructors produce **plain objects**, not class instances. + * - `$is(tag)` only checks the `_tag` field, not the full structure. It relies + * on the tag being globally unique and the value being produced by your + * constructors. For untrusted input, validate with the `Schema` module first. + * + * **Example** (Basic usage) * * ```ts * import { Data } from "effect" @@ -620,7 +638,7 @@ export declare const taggedEnum: { * console.log(msg) // "/missing not found" * ``` * - * **Example** (generic tagged enum) + * **Example** (Generic tagged enum) * * ```ts * import { Data } from "effect" @@ -651,19 +669,28 @@ export declare const taggedEnum: { }>>) => TaggedEnum.Value, Tag>; } & TaggedEnum.GenericMatchers>; /** - * Creates runtime constructors, type guards, and pattern matching for a - * {@link TaggedEnum} type. + * Creates constructors and matchers for a `TaggedEnum` type. + * + * **When to use** + * + * Use when you model a closed union with plain data objects and want + * construction, tag checks, and exhaustive matching from the same definition. + * + * **Details** * * Returns an object with: * - One constructor per variant (keyed by tag name) - * - `$is(tag)` — returns a type-guard function + * - `$is(tag)` — returns a type-guard function that checks only the `_tag` field * - `$match` — exhaustive pattern matching (data-first or data-last) * - * - Use when you have a `TaggedEnum` type and need to construct/inspect values. - * - Constructors produce **plain objects** (not class instances). - * - For generic enums, pass a {@link TaggedEnum.WithGenerics} interface. + * **Gotchas** + * + * - Constructors produce **plain objects**, not class instances. + * - `$is(tag)` only checks the `_tag` field, not the full structure. It relies + * on the tag being globally unique and the value being produced by your + * constructors. For untrusted input, validate with the `Schema` module first. * - * **Example** (basic usage) + * **Example** (Basic usage) * * ```ts * import { Data } from "effect" @@ -688,7 +715,7 @@ export declare const taggedEnum: { * console.log(msg) // "/missing not found" * ``` * - * **Example** (generic tagged enum) + * **Example** (Generic tagged enum) * * ```ts * import { Data } from "effect" @@ -719,19 +746,28 @@ export declare const taggedEnum: { }>>) => TaggedEnum.Value, Tag>; } & TaggedEnum.GenericMatchers>; /** - * Creates runtime constructors, type guards, and pattern matching for a - * {@link TaggedEnum} type. + * Creates constructors and matchers for a `TaggedEnum` type. + * + * **When to use** + * + * Use when you model a closed union with plain data objects and want + * construction, tag checks, and exhaustive matching from the same definition. + * + * **Details** * * Returns an object with: * - One constructor per variant (keyed by tag name) - * - `$is(tag)` — returns a type-guard function + * - `$is(tag)` — returns a type-guard function that checks only the `_tag` field * - `$match` — exhaustive pattern matching (data-first or data-last) * - * - Use when you have a `TaggedEnum` type and need to construct/inspect values. - * - Constructors produce **plain objects** (not class instances). - * - For generic enums, pass a {@link TaggedEnum.WithGenerics} interface. + * **Gotchas** + * + * - Constructors produce **plain objects**, not class instances. + * - `$is(tag)` only checks the `_tag` field, not the full structure. It relies + * on the tag being globally unique and the value being produced by your + * constructors. For untrusted input, validate with the `Schema` module first. * - * **Example** (basic usage) + * **Example** (Basic usage) * * ```ts * import { Data } from "effect" @@ -756,7 +792,7 @@ export declare const taggedEnum: { * console.log(msg) // "/missing not found" * ``` * - * **Example** (generic tagged enum) + * **Example** (Generic tagged enum) * * ```ts * import { Data } from "effect" @@ -787,19 +823,28 @@ export declare const taggedEnum: { }>>) => TaggedEnum.Value, Tag>; } & TaggedEnum.GenericMatchers>; /** - * Creates runtime constructors, type guards, and pattern matching for a - * {@link TaggedEnum} type. + * Creates constructors and matchers for a `TaggedEnum` type. + * + * **When to use** + * + * Use when you model a closed union with plain data objects and want + * construction, tag checks, and exhaustive matching from the same definition. + * + * **Details** * * Returns an object with: * - One constructor per variant (keyed by tag name) - * - `$is(tag)` — returns a type-guard function + * - `$is(tag)` — returns a type-guard function that checks only the `_tag` field * - `$match` — exhaustive pattern matching (data-first or data-last) * - * - Use when you have a `TaggedEnum` type and need to construct/inspect values. - * - Constructors produce **plain objects** (not class instances). - * - For generic enums, pass a {@link TaggedEnum.WithGenerics} interface. + * **Gotchas** * - * **Example** (basic usage) + * - Constructors produce **plain objects**, not class instances. + * - `$is(tag)` only checks the `_tag` field, not the full structure. It relies + * on the tag being globally unique and the value being produced by your + * constructors. For untrusted input, validate with the `Schema` module first. + * + * **Example** (Basic usage) * * ```ts * import { Data } from "effect" @@ -824,7 +869,7 @@ export declare const taggedEnum: { * console.log(msg) // "/missing not found" * ``` * - * **Example** (generic tagged enum) + * **Example** (Generic tagged enum) * * ```ts * import { Data } from "effect" @@ -854,17 +899,21 @@ export declare const taggedEnum: { }>(): TaggedEnum.Constructor; }; /** - * Base class for yieldable errors. + * Provides a base class for yieldable errors. + * + * **When to use** + * + * Use when you need yieldable errors that do **not** need tag-based + * discrimination. + * + * **Details** * * Extends `Cause.YieldableError`, so instances can be yielded inside * `Effect.gen` to fail the enclosing effect. Fields are passed as a single - * object; when there are no fields the argument is optional. - * - * - Use for errors that do **not** need tag-based discrimination. - * - If you need `Effect.catchTag` support, use {@link TaggedError} instead. - * - If a `message` field is provided, it becomes the error's `.message`. + * object; when there are no fields the argument is optional. If a `message` + * field is provided, it becomes the error's `.message`. * - * **Example** (defining a yieldable error) + * **Example** (Defining a yieldable error) * * ```ts * import { Data, Effect } from "effect" @@ -894,15 +943,18 @@ export declare const Error: new = {}>(args: Types /** * Creates a tagged error class with a `_tag` discriminator. * + * **When to use** + * + * Use when you need domain errors with discriminated-union handling. + * + * **Details** + * * Like {@link Error}, but instances also carry a `readonly _tag` property, * enabling `Effect.catchTag` and `Effect.catchTags` for tag-based recovery. - * The `_tag` is excluded from the constructor argument. - * - * - Use for domain errors in Effect applications where you want - * discriminated-union error handling. - * - Yielding an instance inside `Effect.gen` fails the effect with this error. + * The `_tag` is excluded from the constructor argument. Yielding an instance + * inside `Effect.gen` fails the effect with this error. * - * **Example** (tag-based error recovery) + * **Example** (Tag-based error recovery) * * ```ts * import { Data, Effect } from "effect" diff --git a/.opencode/node_modules/effect/dist/Data.d.ts.map b/.opencode/node_modules/effect/dist/Data.d.ts.map index 1a0bd6c132b835d4e7e1a33c60e54e7c7afe9a28..cd7db24cab7132b6da752870b1f5d02cc75bf140 100644 --- a/.opencode/node_modules/effect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,SAAS,MAAM,GAAG,KAAK,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAE,CAAC,KACvF,KAAK,CAAC,cAAc,GAAG;IAAE,QAAQ,CAAC,IAAI,EAAE,GAAG,CAAA;CAAE,GAAG,QAAQ,CAAC,CAAC,CAA2B,CAAA"} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Data.js b/.opencode/node_modules/effect/dist/Data.js index db766071ad87cecc2528e343f18596a36a010816..f65c307e207711f94fcf1d888b3c612cc49ad483 100644 --- a/.opencode/node_modules/effect/dist/Data.js +++ b/.opencode/node_modules/effect/dist/Data.js @@ -2,18 +2,19 @@ import * as core from "./internal/core.js"; import * as Pipeable from "./Pipeable.js"; import * as Predicate from "./Predicate.js"; /** - * Base class for immutable data types. + * Provides a base class for immutable data types. + * + * **When to use** + * + * Use when you need a lightweight immutable value type with `.pipe()` support. + * + * **Details** * * Extend `Class` with a type parameter to declare fields. The constructor * accepts those fields as a single object argument. When there are no fields - * the argument is optional. + * the argument is optional. Instances are `Readonly` and `Pipeable`. * - * - Use when you need a lightweight immutable value type with `.pipe()` support. - * - Instances are `Readonly` and `Pipeable`. - * - If you also need a `_tag` discriminator, use {@link TaggedClass} instead. - * - If you need a yieldable error, use {@link Error} or {@link TaggedError}. - * - * **Example** (defining a value class) + * **Example** (Defining a value class) * * ```ts * import { Data, Equal } from "effect" @@ -42,17 +43,19 @@ export const Class = class extends Pipeable.Class { } }; /** - * Base class for immutable data types with a `_tag` discriminator. + * Provides a base class for immutable data types with a `_tag` discriminator. + * + * **When to use** + * + * Use when you need a single-variant tagged type or an ad-hoc discriminator. + * + * **Details** * * Like {@link Class}, but the resulting instances also carry a * `readonly _tag: Tag` property. The `_tag` is excluded from the constructor * argument. * - * - Use when you need a single-variant tagged type or an ad-hoc discriminator. - * - For multi-variant unions, prefer {@link TaggedEnum} + {@link taggedEnum}. - * - For yieldable errors, use {@link TaggedError}. - * - * **Example** (defining a tagged class) + * **Example** (Defining a tagged class) * * ```ts * import { Data } from "effect" @@ -77,19 +80,28 @@ export const TaggedClass = tag => class extends Class { _tag = tag; }; /** - * Creates runtime constructors, type guards, and pattern matching for a - * {@link TaggedEnum} type. + * Creates constructors and matchers for a `TaggedEnum` type. + * + * **When to use** + * + * Use when you model a closed union with plain data objects and want + * construction, tag checks, and exhaustive matching from the same definition. + * + * **Details** * * Returns an object with: * - One constructor per variant (keyed by tag name) - * - `$is(tag)` — returns a type-guard function + * - `$is(tag)` — returns a type-guard function that checks only the `_tag` field * - `$match` — exhaustive pattern matching (data-first or data-last) * - * - Use when you have a `TaggedEnum` type and need to construct/inspect values. - * - Constructors produce **plain objects** (not class instances). - * - For generic enums, pass a {@link TaggedEnum.WithGenerics} interface. + * **Gotchas** + * + * - Constructors produce **plain objects**, not class instances. + * - `$is(tag)` only checks the `_tag` field, not the full structure. It relies + * on the tag being globally unique and the value being produced by your + * constructors. For untrusted input, validate with the `Schema` module first. * - * **Example** (basic usage) + * **Example** (Basic usage) * * ```ts * import { Data } from "effect" @@ -114,7 +126,7 @@ export const TaggedClass = tag => class extends Class { * console.log(msg) // "/missing not found" * ``` * - * **Example** (generic tagged enum) + * **Example** (Generic tagged enum) * * ```ts * import { Data } from "effect" @@ -164,17 +176,21 @@ function taggedMatch() { return cases[value._tag](value); } /** - * Base class for yieldable errors. + * Provides a base class for yieldable errors. + * + * **When to use** + * + * Use when you need yieldable errors that do **not** need tag-based + * discrimination. + * + * **Details** * * Extends `Cause.YieldableError`, so instances can be yielded inside * `Effect.gen` to fail the enclosing effect. Fields are passed as a single - * object; when there are no fields the argument is optional. + * object; when there are no fields the argument is optional. If a `message` + * field is provided, it becomes the error's `.message`. * - * - Use for errors that do **not** need tag-based discrimination. - * - If you need `Effect.catchTag` support, use {@link TaggedError} instead. - * - If a `message` field is provided, it becomes the error's `.message`. - * - * **Example** (defining a yieldable error) + * **Example** (Defining a yieldable error) * * ```ts * import { Data, Effect } from "effect" @@ -202,15 +218,18 @@ export const Error = core.Error; /** * Creates a tagged error class with a `_tag` discriminator. * + * **When to use** + * + * Use when you need domain errors with discriminated-union handling. + * + * **Details** + * * Like {@link Error}, but instances also carry a `readonly _tag` property, * enabling `Effect.catchTag` and `Effect.catchTags` for tag-based recovery. - * The `_tag` is excluded from the constructor argument. - * - * - Use for domain errors in Effect applications where you want - * discriminated-union error handling. - * - Yielding an instance inside `Effect.gen` fails the effect with this error. + * The `_tag` is excluded from the constructor argument. Yielding an instance + * inside `Effect.gen` fails the effect with this error. * - * **Example** (tag-based error recovery) + * **Example** (Tag-based error recovery) * * ```ts * import { Data, Effect } from "effect" diff --git a/.opencode/node_modules/effect/dist/Data.js.map b/.opencode/node_modules/effect/dist/Data.js.map index 2b144f2a36cbfaff45ccee621316b917351e0ad9..be2f68bd0875a4c1d2f459505e4da5a926e76ec0 100644 --- a/.opencode/node_modules/effect/dist/Data.js.map +++ b/.opencode/node_modules/effect/dist/Data.js.map @@ -1 +1 @@ -{"version":3,"file":"Data.js","names":["core","Pipeable","Predicate","Class","constructor","props","Object","assign","TaggedClass","tag","_tag","taggedEnum","Proxy","get","_target","_receiver","isTagged","taggedMatch","arguments","length","cases","value","Error","TaggedError"],"sources":["../src/Data.ts"],"sourcesContent":[null],"mappings":"AA0EA,OAAO,KAAKA,IAAI,MAAM,oBAAoB;AAC1C,OAAO,KAAKC,QAAQ,MAAM,eAAe;AACzC,OAAO,KAAKC,SAAS,MAAM,gBAAgB;AAI3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCA,OAAO,MAAMC,KAAK,GAEqB,cAAcF,QAAQ,CAACE,KAAK;EACjEC,YAAYC,KAAU;IACpB,KAAK,EAAE;IACP,IAAIA,KAAK,EAAE;MACTC,MAAM,CAACC,MAAM,CAAC,IAAI,EAAEF,KAAK,CAAC;IAC5B;EACF;CACM;AAER;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCA,OAAO,MAAMG,WAAW,GACtBC,GAAQ,IAIR,cAAcN,KAAK;EACRO,IAAI,GAAGD,GAAG;CACb;AA4WV;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+DA,OAAO,MAAME,UAAU,GA6WnBA,CAAA,KACF,IAAIC,KAAK,CACP,EAAE,EACF;EACEC,GAAGA,CAACC,OAAO,EAAEL,GAAG,EAAEM,SAAS;IACzB,IAAIN,GAAG,KAAK,KAAK,EAAE;MACjB,OAAOP,SAAS,CAACc,QAAQ;IAC3B,CAAC,MAAM,IAAIP,GAAG,KAAK,QAAQ,EAAE;MAC3B,OAAOQ,WAAW;IACpB;IACA,OAAQZ,KAAU,KAAM;MAAE,GAAGA,KAAK;MAAEK,IAAI,EAAED;IAAG,CAAE,CAAC;EAClD;CACD,CACK;AAcV,SAASQ,WAAWA,CAAA;EAMlB,IAAIC,SAAS,CAACC,MAAM,KAAK,CAAC,EAAE;IAC1B,MAAMC,KAAK,GAAGF,SAAS,CAAC,CAAC,CAAU;IACnC,OAAO,UAASG,KAAQ;MACtB,OAAOD,KAAK,CAACC,KAAK,CAACX,IAAiB,CAAC,CAACW,KAAY,CAAC;IACrD,CAAC;EACH;EACA,MAAMA,KAAK,GAAGH,SAAS,CAAC,CAAC,CAAM;EAC/B,MAAME,KAAK,GAAGF,SAAS,CAAC,CAAC,CAAU;EACnC,OAAOE,KAAK,CAACC,KAAK,CAACX,IAAiB,CAAC,CAACW,KAAY,CAAC;AACrD;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmCA,OAAO,MAAMC,KAAK,GAEwBtB,IAAI,CAACsB,KAAK;AAEpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwCA,OAAO,MAAMC,WAAW,GAI2CvB,IAAI,CAACuB,WAAkB","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"Data.js","names":["core","Pipeable","Predicate","Class","constructor","props","Object","assign","TaggedClass","tag","_tag","taggedEnum","Proxy","get","_target","_receiver","isTagged","taggedMatch","arguments","length","cases","value","Error","TaggedError"],"sources":["../src/Data.ts"],"sourcesContent":[null],"mappings":"AAWA,OAAO,KAAKA,IAAI,MAAM,oBAAoB;AAC1C,OAAO,KAAKC,QAAQ,MAAM,eAAe;AACzC,OAAO,KAAKC,SAAS,MAAM,gBAAgB;AAI3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCA,OAAO,MAAMC,KAAK,GAEqB,cAAcF,QAAQ,CAACE,KAAK;EACjEC,YAAYC,KAAU;IACpB,KAAK,EAAE;IACP,IAAIA,KAAK,EAAE;MACTC,MAAM,CAACC,MAAM,CAAC,IAAI,EAAEF,KAAK,CAAC;IAC5B;EACF;CACM;AAER;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCA,OAAO,MAAMG,WAAW,GACtBC,GAAQ,IAIR,cAAcN,KAAK;EACRO,IAAI,GAAGD,GAAG;CACb;AA+ZV;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwEA,OAAO,MAAME,UAAU,GA0ZnBA,CAAA,KACF,IAAIC,KAAK,CACP,EAAE,EACF;EACEC,GAAGA,CAACC,OAAO,EAAEL,GAAG,EAAEM,SAAS;IACzB,IAAIN,GAAG,KAAK,KAAK,EAAE;MACjB,OAAOP,SAAS,CAACc,QAAQ;IAC3B,CAAC,MAAM,IAAIP,GAAG,KAAK,QAAQ,EAAE;MAC3B,OAAOQ,WAAW;IACpB;IACA,OAAQZ,KAAU,KAAM;MAAE,GAAGA,KAAK;MAAEK,IAAI,EAAED;IAAG,CAAE,CAAC;EAClD;CACD,CACK;AAcV,SAASQ,WAAWA,CAAA;EAMlB,IAAIC,SAAS,CAACC,MAAM,KAAK,CAAC,EAAE;IAC1B,MAAMC,KAAK,GAAGF,SAAS,CAAC,CAAC,CAAU;IACnC,OAAO,UAASG,KAAQ;MACtB,OAAOD,KAAK,CAACC,KAAK,CAACX,IAAiB,CAAC,CAACW,KAAY,CAAC;IACrD,CAAC;EACH;EACA,MAAMA,KAAK,GAAGH,SAAS,CAAC,CAAC,CAAM;EAC/B,MAAME,KAAK,GAAGF,SAAS,CAAC,CAAC,CAAU;EACnC,OAAOE,KAAK,CAACC,KAAK,CAACX,IAAiB,CAAC,CAACW,KAAY,CAAC;AACrD;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuCA,OAAO,MAAMC,KAAK,GAEwBtB,IAAI,CAACsB,KAAK;AAEpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2CA,OAAO,MAAMC,WAAW,GAI2CvB,IAAI,CAACuB,WAAkB","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/DateTime.d.ts b/.opencode/node_modules/effect/dist/DateTime.d.ts index 9e190784c7547de00e41f1d1ff76a93968ff0dd9..a22a2f0dcaa3001b4e2dcd7f65a54195994bcf4f 100644 --- a/.opencode/node_modules/effect/dist/DateTime.d.ts +++ b/.opencode/node_modules/effect/dist/DateTime.d.ts @@ -1,4 +1,13 @@ /** + * Works with absolute instants, UTC date-times, zoned date-times, and time + * zones. + * + * A `DateTime` always represents an absolute point in time with epoch + * milliseconds. It may also carry a `TimeZone` for calendar parts, formatting, + * and zone-aware transformations. This module includes constructors, time-zone + * helpers, comparisons, date arithmetic, current-time effects, and formatting + * functions. + * * @since 3.6.0 */ import type { IllegalArgumentError } from "./Cause.ts"; @@ -18,13 +27,20 @@ declare const TimeZoneTypeId = "~effect/time/DateTime/TimeZone"; * A `DateTime` represents a point in time. It can optionally have a time zone * associated with it. * - * @since 3.6.0 * @category models + * @since 3.6.0 */ export type DateTime = Utc | Zoned; /** - * @since 3.6.0 + * Represents a `DateTime` stored as an absolute UTC instant with no associated + * time zone. + * + * **Details** + * + * Use `DateTime.isUtc` to narrow a `DateTime` to this variant. + * * @category models + * @since 3.6.0 */ export interface Utc extends DateTime.Proto { readonly _tag: "Utc"; @@ -32,8 +48,16 @@ export interface Utc extends DateTime.Proto { partsUtc: DateTime.PartsWithWeekday | undefined; } /** - * @since 3.6.0 + * Represents a `DateTime` with an associated `TimeZone`. + * + * **Details** + * + * A zoned value still represents an absolute instant through + * `epochMilliseconds`, while the time zone is used for wall-clock parts, + * formatting, and zone-aware transformations. + * * @category models + * @since 3.6.0 */ export interface Zoned extends DateTime.Proto { readonly _tag: "Zoned"; @@ -44,38 +68,78 @@ export interface Zoned extends DateTime.Proto { partsUtc: DateTime.PartsWithWeekday | undefined; } /** + * Companion namespace containing the public helper types used by `DateTime` + * constructors, parts APIs, formatting, and date/time arithmetic. + * * @since 3.6.0 - * @category models */ export declare namespace DateTime { /** - * @since 3.6.0 + * Input accepted by `DateTime.make`, `DateTime.makeUnsafe`, and the zoned + * constructors. + * + * **Details** + * + * Includes existing `DateTime` values, partial date parts, epoch-millisecond + * objects, epoch milliseconds, JavaScript `Date` instances, and parseable date + * strings. + * * @category models + * @since 3.6.0 */ type Input = DateTime | Partial | Instant | InstantWithZone | Date | number | string; /** - * @since 3.6.0 + * Type-level helper used by constructors to preserve a zoned input. + * + * **Details** + * + * When the input type is `DateTime.Zoned`, the result type is + * `DateTime.Zoned`; otherwise the result type is `DateTime.Utc`. + * * @category models + * @since 3.6.0 */ type PreserveZone = A extends Zoned ? Zoned : Utc; /** - * @since 3.6.0 + * Date and time unit name accepted by `DateTime` rounding and arithmetic + * APIs. + * + * **Details** + * + * Includes both singular units, such as `"day"`, and plural units, such as + * `"days"`. + * * @category models + * @since 3.6.0 */ type Unit = UnitSingular | UnitPlural; /** - * @since 3.6.0 + * Singular date and time unit names used by rounding APIs such as + * `DateTime.startOf`, `DateTime.endOf`, and `DateTime.nearest`. + * * @category models + * @since 3.6.0 */ type UnitSingular = "millisecond" | "second" | "minute" | "hour" | "day" | "week" | "month" | "year"; /** - * @since 3.6.0 + * Plural date and time unit names used by `DateTime.PartsForMath` for + * amount-based arithmetic. + * * @category models + * @since 3.6.0 */ type UnitPlural = "milliseconds" | "seconds" | "minutes" | "hours" | "days" | "weeks" | "months" | "years"; /** - * @since 3.6.0 + * Calendar and time components of a `DateTime`, including the weekday. + * + * **Details** + * + * `month` is one-based (`1` for January through `12` for December), and + * `weekDay` follows JavaScript `Date#getUTCDay` numbering (`0` for Sunday + * through `6` for Saturday). + * * @category models + * @since 3.6.0 */ interface PartsWithWeekday { readonly millisecond: number; @@ -88,8 +152,14 @@ export declare namespace DateTime { readonly year: number; } /** - * @since 3.6.0 + * Calendar and time components of a `DateTime`, without weekday information. + * + * **Details** + * + * `month` is one-based (`1` for January through `12` for December). + * * @category models + * @since 3.6.0 */ interface Parts { readonly millisecond: number; @@ -101,8 +171,14 @@ export declare namespace DateTime { readonly year: number; } /** - * @since 3.6.0 + * Plural amount fields accepted by `DateTime.add` and `DateTime.subtract`. + * + * **Details** + * + * Each field represents the number of units to add or subtract for that part. + * * @category models + * @since 3.6.0 */ interface PartsForMath { readonly milliseconds: number; @@ -115,56 +191,101 @@ export declare namespace DateTime { readonly years: number; } /** - * @since 4.0.0 + * Object input representing an absolute instant as milliseconds since the Unix + * epoch. + * * @category models + * @since 4.0.0 */ interface Instant { readonly epochMilliseconds: number; } /** - * @since 4.0.0 + * Object input representing an absolute instant plus a time zone identifier. + * + * **Details** + * + * `DateTime.makeZoned` and `DateTime.makeZonedUnsafe` use `timeZoneId` when + * no explicit `timeZone` option is supplied. + * * @category models + * @since 4.0.0 */ interface InstantWithZone { readonly timeZoneId: string; readonly epochMilliseconds: number; } /** - * @since 3.6.0 + * Shared protocol implemented by all `DateTime` values. + * + * **Details** + * + * Provides the `DateTime` type identifier along with pipe and inspection + * support. + * * @category models + * @since 3.6.0 */ interface Proto extends Pipeable, Inspectable { readonly [TypeId]: typeof TypeId; } } /** - * @since 3.6.0 + * Represents a time zone used by `DateTime.Zoned`. + * + * **Details** + * + * A `TimeZone` is either a fixed offset from UTC or a named IANA time zone. + * * @category models + * @since 3.6.0 */ export type TimeZone = TimeZone.Offset | TimeZone.Named; /** + * Companion namespace containing the public variant and protocol types for + * `TimeZone`. + * * @since 3.6.0 - * @category models */ export declare namespace TimeZone { /** - * @since 3.6.0 + * Shared protocol implemented by all `TimeZone` values. + * + * **Details** + * + * Provides the `TimeZone` type identifier and inspection support. + * * @category models + * @since 3.6.0 */ interface Proto extends Inspectable { readonly [TimeZoneTypeId]: typeof TimeZoneTypeId; } /** - * @since 3.6.0 + * Fixed-offset time zone. + * + * **Details** + * + * The `offset` is measured in milliseconds from UTC. Positive offsets are + * ahead of UTC, and negative offsets are behind UTC. + * * @category models + * @since 3.6.0 */ interface Offset extends Proto { readonly _tag: "Offset"; readonly offset: number; } /** - * @since 3.6.0 + * Named IANA time zone. + * + * **Details** + * + * The `id` field contains the resolved time zone identifier, such as + * `"Europe/London"` or `"America/New_York"`. + * * @category models + * @since 3.6.0 */ interface Named extends Proto { readonly _tag: "Named"; @@ -175,6 +296,8 @@ export declare namespace TimeZone { * A `Disambiguation` is used to resolve ambiguities when a `DateTime` is * ambiguous, such as during a daylight saving time transition. * + * **Details** + * * For more information, see the [Temporal documentation](https://tc39.es/proposal-temporal/docs/timezone.html#ambiguity-due-to-dst-or-other-time-zone-offset-changes) * * - `"compatible"`: (default) Behavior matching Temporal API and legacy JavaScript Date and moment.js. @@ -188,7 +311,8 @@ export declare namespace TimeZone { * * - `"reject"`: Throw an `RangeError` when encountering ambiguous or non-existent times. * - * @example + * **Example** (Resolving ambiguous local times) + * * ```ts * import { DateTime } from "effect" * @@ -228,57 +352,109 @@ export declare namespace TimeZone { * // Time after gap: 2025-03-09T07:30:00.000Z (03:30 EDT) * ``` * - * @since 3.18.0 * @category models + * @since 3.18.0 */ export type Disambiguation = "compatible" | "earlier" | "later" | "reject"; /** - * @since 3.6.0 + * Checks whether a value is a `DateTime`. + * + * **When to use** + * + * Use to narrow an unknown value before treating it as a `DateTime`. + * + * @see {@link isUtc} for narrowing a known `DateTime` to UTC + * @see {@link isZoned} for narrowing a known `DateTime` to zoned + * * @category guards + * @since 3.6.0 */ export declare const isDateTime: (u: unknown) => u is DateTime; /** - * Checks if a value is a `TimeZone`. + * Checks whether a value is a `TimeZone`. + * + * **When to use** + * + * Use to narrow unknown input to any `TimeZone` before passing it to APIs that + * accept either fixed-offset or named time zones. + * + * @see {@link isTimeZoneOffset} for narrowing to fixed-offset time zones + * @see {@link isTimeZoneNamed} for narrowing to named time zones * - * @since 3.6.0 * @category guards + * @since 3.6.0 */ export declare const isTimeZone: (u: unknown) => u is TimeZone; /** - * Checks if a value is an offset-based `TimeZone`. + * Checks whether a value is an offset-based `TimeZone`. + * + * **When to use** + * + * Use when you need to narrow an unknown or union `TimeZone` value to the + * fixed-offset variant before reading its offset in milliseconds. + * + * @see {@link isTimeZone} for checking either time zone variant + * @see {@link isTimeZoneNamed} for narrowing to named time zones * - * @since 3.6.0 * @category guards + * @since 3.6.0 */ export declare const isTimeZoneOffset: (u: unknown) => u is TimeZone.Offset; /** - * Checks if a value is a named `TimeZone` (IANA time zone). + * Checks whether a value is a named `TimeZone` (IANA time zone). + * + * **When to use** + * + * Use to narrow an unknown value to the `TimeZone.Named` variant before + * reading named-zone fields such as `id`. + * + * @see {@link isTimeZone} for checking either time zone variant + * @see {@link isTimeZoneOffset} for narrowing to fixed-offset time zones * - * @since 3.6.0 * @category guards + * @since 3.6.0 */ export declare const isTimeZoneNamed: (u: unknown) => u is TimeZone.Named; /** - * Checks if a `DateTime` is a UTC `DateTime` (no time zone information). + * Checks whether a `DateTime` is a UTC `DateTime` (no time zone information). + * + * **When to use** + * + * Use to narrow a `DateTime` before passing it to code that requires a UTC + * value without an associated time zone. + * + * @see {@link isZoned} for narrowing to zoned date-times + * @see {@link match} for handling both UTC and zoned cases * - * @since 3.6.0 * @category guards + * @since 3.6.0 */ export declare const isUtc: (self: DateTime) => self is Utc; /** - * Checks if a `DateTime` is a zoned `DateTime` (has time zone information). + * Checks whether a `DateTime` is a zoned `DateTime` (has time zone information). + * + * **When to use** + * + * Use to narrow a known `DateTime` before reading its zone or passing it to + * APIs that require `DateTime.Zoned`. + * + * @see {@link isUtc} for narrowing to UTC date-times + * @see {@link match} for handling both UTC and zoned cases * - * @since 3.6.0 * @category guards + * @since 3.6.0 */ export declare const isZoned: (self: DateTime) => self is Zoned; /** - * An `Equivalence` for comparing two `DateTime` values for equality. + * Provides an `Equivalence` for comparing two `DateTime` values for equality. + * + * **Details** * * Two `DateTime` values are considered equivalent if they represent the same * point in time, regardless of their time zone. * - * @example + * **Example** (Comparing DateTime values for equivalence) + * * ```ts * import { DateTime } from "effect" * @@ -295,12 +471,15 @@ export declare const isZoned: (self: DateTime) => self is Zoned; */ export declare const Equivalence: Equ.Equivalence; /** - * An `Order` for comparing and sorting `DateTime` values. + * Provides an `Order` for comparing and sorting `DateTime` values. + * + * **Details** * * `DateTime` values are ordered by their epoch milliseconds, so earlier times * come before later times regardless of time zone. * - * @example + * **Example** (Sorting DateTime values chronologically) + * * ```ts * import { Array, DateTime } from "effect" * @@ -319,13 +498,16 @@ export declare const Equivalence: Equ.Equivalence; */ export declare const Order: order.Order; /** - * Clamp a `DateTime` between a minimum and maximum value. + * Returns a `DateTime` constrained between a minimum and maximum value. + * + * **Details** * * If the `DateTime` is before the minimum, the minimum is returned. * If the `DateTime` is after the maximum, the maximum is returned. * Otherwise, the original `DateTime` is returned. * - * @example + * **Example** (Clamping DateTime values) + * * ```ts * import { DateTime } from "effect" * @@ -337,18 +519,21 @@ export declare const Order: order.Order; * // clamped equals max (2024-12-31) * ``` * - * @category instances + * @category ordering * @since 3.6.0 */ export declare const clamp: { /** - * Clamp a `DateTime` between a minimum and maximum value. + * Returns a `DateTime` constrained between a minimum and maximum value. + * + * **Details** * * If the `DateTime` is before the minimum, the minimum is returned. * If the `DateTime` is after the maximum, the maximum is returned. * Otherwise, the original `DateTime` is returned. * - * @example + * **Example** (Clamping DateTime values) + * * ```ts * import { DateTime } from "effect" * @@ -360,7 +545,7 @@ export declare const clamp: { * // clamped equals max (2024-12-31) * ``` * - * @category instances + * @category ordering * @since 3.6.0 */ (options: { @@ -368,13 +553,16 @@ export declare const clamp: { readonly maximum: Max; }): (self: A) => A | Min | Max; /** - * Clamp a `DateTime` between a minimum and maximum value. + * Returns a `DateTime` constrained between a minimum and maximum value. + * + * **Details** * * If the `DateTime` is before the minimum, the minimum is returned. * If the `DateTime` is after the maximum, the maximum is returned. * Otherwise, the original `DateTime` is returned. * - * @example + * **Example** (Clamping DateTime values) + * * ```ts * import { DateTime } from "effect" * @@ -386,7 +574,7 @@ export declare const clamp: { * // clamped equals max (2024-12-31) * ``` * - * @category instances + * @category ordering * @since 3.6.0 */ (self: A, options: { @@ -397,9 +585,12 @@ export declare const clamp: { /** * Create a `DateTime` from a `Date`. * + * **Details** + * * If the `Date` is invalid, an `IllegalArgumentError` will be thrown. * - * @example + * **Example** (Creating DateTime values from Dates) + * * ```ts * import { DateTime } from "effect" * @@ -410,11 +601,18 @@ export declare const clamp: { * ``` * * @category constructors - * @since 3.6.0 + * @since 4.0.0 */ export declare const fromDateUnsafe: (date: Date) => Utc; /** - * Create a `DateTime` from one of the following: + * Create a `DateTime` from supported input values. + * + * **When to use** + * + * Use when creating a `DateTime` from trusted input and construction failures + * should throw an `IllegalArgumentError` instead of returning `Option.none`. + * + * **Details** * * - A `DateTime` * - A `Date` instance (invalid dates will throw an `IllegalArgumentError`) @@ -422,26 +620,38 @@ export declare const fromDateUnsafe: (date: Date) => Utc; * - An object with the parts of a date * - A `string` that can be parsed by `Date.parse` * - * @since 3.6.0 - * @category constructors - * @example + * **Example** (Creating DateTime values unsafely) + * * ```ts * import { DateTime } from "effect" * * // from Date - * DateTime.makeUnsafe(new Date()) + * const fromDate = DateTime.makeUnsafe(new Date("2024-01-01T12:00:00Z")) + * console.log(DateTime.formatIso(fromDate)) // "2024-01-01T12:00:00.000Z" * * // from parts - * DateTime.makeUnsafe({ year: 2024 }) + * const fromParts = DateTime.makeUnsafe({ year: 2024 }) + * console.log(DateTime.formatIso(fromParts)) // "2024-01-01T00:00:00.000Z" * * // from string - * DateTime.makeUnsafe("2024-01-01") + * const fromString = DateTime.makeUnsafe("2024-01-01") + * console.log(DateTime.formatIso(fromString)) // "2024-01-01T00:00:00.000Z" * ``` + * + * @category constructors + * @since 4.0.0 */ export declare const makeUnsafe: (input: A) => DateTime.PreserveZone; /** * Create a `DateTime.Zoned` using `DateTime.makeUnsafe` and a time zone. * + * **When to use** + * + * Use when the date/time input and zone options are trusted and invalid or + * rejected ambiguous times should throw instead of returning `Option.none`. + * + * **Details** + * * The input is treated as UTC and then the time zone is attached, unless * `adjustForTimeZone` is set to `true`. In that case, the input is treated as * already in the time zone. @@ -453,14 +663,20 @@ export declare const makeUnsafe: (input: A) => DateTim * - `later`: Always choose the later of two possible times * - `reject`: Throw an error when ambiguous times are encountered * - * @since 3.6.0 - * @category constructors - * @example + * **Example** (Creating zoned DateTime values unsafely) + * * ```ts * import { DateTime } from "effect" * - * DateTime.makeZonedUnsafe(new Date(), { timeZone: "Europe/London" }) + * const zoned = DateTime.makeZonedUnsafe("2024-06-15T14:30:00Z", { + * timeZone: "Europe/London" + * }) + * + * console.log(DateTime.formatIsoZoned(zoned)) // "2024-06-15T15:30:00.000+01:00[Europe/London]" * ``` + * + * @category constructors + * @since 4.0.0 */ export declare const makeZonedUnsafe: (input: DateTime.Input, options?: { readonly timeZone?: number | string | TimeZone | undefined; @@ -468,29 +684,43 @@ export declare const makeZonedUnsafe: (input: DateTime.Input, options?: { readonly disambiguation?: Disambiguation | undefined; }) => Zoned; /** - * Create a `DateTime.Zoned` using `DateTime.make` and a time zone. + * Creates a `DateTime.Zoned` safely from an input and a time zone. * - * The input is treated as UTC and then the time zone is attached, unless - * `adjustForTimeZone` is set to `true`. In that case, the input is treated as - * already in the time zone. + * **Details** * - * When `adjustForTimeZone` is true and ambiguous times occur during DST transitions, - * the `disambiguation` option controls how to resolve the ambiguity: - * - `compatible` (default): Choose earlier time for repeated times, later for gaps - * - `earlier`: Always choose the earlier of two possible times - * - `later`: Always choose the later of two possible times - * - `reject`: Throw an error when ambiguous times are encountered + * By default, the input is interpreted as a UTC instant and the time zone is + * attached without changing that instant. When `adjustForTimeZone` is `true`, + * the input is interpreted as wall-clock time in the target zone. * - * If the date time input or time zone is invalid, `None` will be returned. + * When `adjustForTimeZone` is `true`, `disambiguation` controls + * daylight-saving gaps and repeated times: + * + * - `"compatible"` (default): chooses the earlier occurrence for repeated + * times and the later interpretation for gaps + * - `"earlier"`: chooses the earlier possible instant + * - `"later"`: chooses the later possible instant + * - `"reject"`: rejects ambiguous or nonexistent wall-clock times + * + * Returns `Some` when construction succeeds, or `None` when the input, time + * zone, or disambiguation cannot be resolved. + * + * **Example** (Creating optional zoned DateTime values) * - * @since 3.6.0 - * @category constructors - * @example * ```ts * import { DateTime } from "effect" * - * DateTime.makeZoned(new Date(), { timeZone: "Europe/London" }) + * const result = DateTime.makeZoned("2024-06-15T14:30:00Z", { + * timeZone: "Europe/London" + * }) + * + * console.log(result._tag) // "Some" + * if (result._tag === "Some") { + * console.log(DateTime.formatIsoZoned(result.value)) // "2024-06-15T15:30:00.000+01:00[Europe/London]" + * } * ``` + * + * @category constructors + * @since 3.6.0 */ export declare const makeZoned: (input: DateTime.Input, options?: { readonly timeZone?: number | string | TimeZone | undefined; @@ -498,39 +728,57 @@ export declare const makeZoned: (input: DateTime.Input, options?: { readonly disambiguation?: Disambiguation | undefined; }) => Option.Option; /** - * Create a `DateTime` from one of the following: + * Creates a `DateTime` safely from supported input values. + * + * **Details** * * - A `DateTime` - * - A `Date` instance (invalid dates will throw an `IllegalArgumentError`) - * - The `number` of milliseconds since the Unix epoch - * - An object with the parts of a date - * - A `string` that can be parsed by `Date.parse` + * - A JavaScript `Date` + * - The number of milliseconds since the Unix epoch + * - An object with date and time parts + * - A string that can be parsed as a date * - * If the input is invalid, `None` will be returned. + * Returns `Some` with the constructed `DateTime` when the input is valid, or + * `None` when construction would fail, including invalid `Date` instances or + * unparseable strings. + * + * **Example** (Creating optional DateTime values) * - * @since 3.6.0 - * @category constructors - * @example * ```ts * import { DateTime } from "effect" * * // from Date - * DateTime.make(new Date()) + * const fromDate = DateTime.make(new Date("2024-01-01T12:00:00Z")) + * console.log(fromDate._tag) // "Some" * * // from parts - * DateTime.make({ year: 2024 }) + * const fromParts = DateTime.make({ year: 2024 }) + * console.log(fromParts._tag) // "Some" * * // from string - * DateTime.make("2024-01-01") + * const fromString = DateTime.make("2024-01-01") + * console.log(fromString._tag) // "Some" + * + * const invalid = DateTime.make("not a date") + * console.log(invalid._tag) // "None" * ``` + * + * @category constructors + * @since 3.6.0 */ export declare const make: (input: A) => Option.Option>; /** - * Create a `DateTime.Zoned` from a string. + * Parses an ISO zoned date-time string into a `DateTime.Zoned` safely. * - * It uses the format: `YYYY-MM-DDTHH:mm:ss.sss+HH:MM[Time/Zone]`. + * **Details** + * + * Accepts named-zone strings such as + * `YYYY-MM-DDTHH:mm:ss.sss+HH:MM[Time/Zone]` and offset-only strings such as + * `YYYY-MM-DDTHH:mm:ss.sss+HH:MM`. Returns `None` when the input cannot be + * parsed. + * + * **Example** (Parsing zoned DateTime strings) * - * @example * ```ts * import { DateTime } from "effect" * @@ -546,31 +794,34 @@ export declare const make: (input: A) => Option.Option * console.log(invalid._tag === "None") // true * ``` * - * @since 3.6.0 * @category constructors + * @since 3.6.0 */ export declare const makeZonedFromString: (input: string) => Option.Option; /** - * Get the current time using the `Clock` service and convert it to a `DateTime`. + * Gets the current time using the `Clock` service and convert it to a `DateTime`. + * + * **Example** (Getting the current DateTime) * - * @since 3.6.0 - * @category constructors - * @example * ```ts * import { DateTime, Effect } from "effect" * * Effect.gen(function*() { - * const now = yield* DateTime.now + * const now = yield* DateTime.nowAsDate + * console.log(now instanceof Date) // true * }) * ``` + * + * @category constructors + * @since 3.6.0 */ export declare const now: Effect.Effect; /** - * Get the current time using the `Clock` service and convert it to a `DateTime`. + * Gets the current time from the `Clock` service and returns it as a + * JavaScript `Date`. + * + * **Example** (Getting the current Date) * - * @since 3.6.0 - * @category constructors - * @example * ```ts * import { DateTime, Effect } from "effect" * @@ -578,15 +829,26 @@ export declare const now: Effect.Effect; * const now = yield* DateTime.now * }) * ``` + * + * @category constructors + * @since 3.14.0 */ export declare const nowAsDate: Effect.Effect; /** - * Get the current time using `Date.now`. + * Gets the current time using `Date.now`. + * + * **When to use** + * + * Use when synchronous wall-clock access outside an Effect program is + * acceptable and testability through the `Clock` service is not needed. + * + * **Details** * * This is a synchronous version of `now` that directly uses `Date.now()` * instead of the Effect `Clock` service. * - * @example + * **Example** (Getting the current DateTime unsafely) + * * ```ts * import { DateTime } from "effect" * @@ -595,15 +857,23 @@ export declare const nowAsDate: Effect.Effect; * ``` * * @category constructors - * @since 3.6.0 + * @since 4.0.0 */ export declare const nowUnsafe: LazyArg; /** - * For a `DateTime` returns a new `DateTime.Utc`. + * Converts a `DateTime` to a UTC `DateTime`. + * + * **When to use** + * + * Use to represent the same instant in UTC instead of its current time zone. + * + * **Details** + * + * The returned value keeps the same epoch milliseconds and changes only the + * `DateTime` representation to UTC. + * + * **Example** (Converting DateTime values to UTC) * - * @since 3.13.0 - * @category time zones - * @example * ```ts * import { DateTime } from "effect" * @@ -614,14 +884,16 @@ export declare const nowUnsafe: LazyArg; * // set as UTC * const utc: DateTime.Utc = DateTime.toUtc(now) * ``` + * + * @category time zones + * @since 3.13.0 */ export declare const toUtc: (self: DateTime) => Utc; /** - * Set the time zone of a `DateTime`, returning a new `DateTime.Zoned`. + * Sets the time zone of a `DateTime`, returning a new `DateTime.Zoned`. + * + * **Example** (Setting time zones) * - * @since 3.6.0 - * @category time zones - * @example * ```ts * import { DateTime, Effect } from "effect" * @@ -633,14 +905,16 @@ export declare const toUtc: (self: DateTime) => Utc; * const zoned: DateTime.Zoned = DateTime.setZone(now, zone) * }) * ``` + * + * @category time zones + * @since 3.6.0 */ export declare const setZone: { /** - * Set the time zone of a `DateTime`, returning a new `DateTime.Zoned`. + * Sets the time zone of a `DateTime`, returning a new `DateTime.Zoned`. + * + * **Example** (Setting time zones) * - * @since 3.6.0 - * @category time zones - * @example * ```ts * import { DateTime, Effect } from "effect" * @@ -652,17 +926,19 @@ export declare const setZone: { * const zoned: DateTime.Zoned = DateTime.setZone(now, zone) * }) * ``` + * + * @category time zones + * @since 3.6.0 */ (zone: TimeZone, options?: { readonly adjustForTimeZone?: boolean | undefined; readonly disambiguation?: Disambiguation | undefined; }): (self: DateTime) => Zoned; /** - * Set the time zone of a `DateTime`, returning a new `DateTime.Zoned`. + * Sets the time zone of a `DateTime`, returning a new `DateTime.Zoned`. + * + * **Example** (Setting time zones) * - * @since 3.6.0 - * @category time zones - * @example * ```ts * import { DateTime, Effect } from "effect" * @@ -674,6 +950,9 @@ export declare const setZone: { * const zoned: DateTime.Zoned = DateTime.setZone(now, zone) * }) * ``` + * + * @category time zones + * @since 3.6.0 */ (self: DateTime, zone: TimeZone, options?: { readonly adjustForTimeZone?: boolean | undefined; @@ -681,13 +960,14 @@ export declare const setZone: { }): Zoned; }; /** - * Add a fixed offset time zone to a `DateTime`. + * Adds a fixed offset time zone to a `DateTime`. + * + * **Details** * * The offset is in milliseconds. * - * @since 3.6.0 - * @category time zones - * @example + * **Example** (Setting fixed-offset time zones) + * * ```ts * import { DateTime, Effect } from "effect" * @@ -698,16 +978,20 @@ export declare const setZone: { * const zoned: DateTime.Zoned = DateTime.setZoneOffset(now, 3 * 60 * 60 * 1000) * }) * ``` + * + * @category time zones + * @since 3.6.0 */ export declare const setZoneOffset: { /** - * Add a fixed offset time zone to a `DateTime`. + * Adds a fixed offset time zone to a `DateTime`. + * + * **Details** * * The offset is in milliseconds. * - * @since 3.6.0 - * @category time zones - * @example + * **Example** (Setting fixed-offset time zones) + * * ```ts * import { DateTime, Effect } from "effect" * @@ -718,19 +1002,23 @@ export declare const setZoneOffset: { * const zoned: DateTime.Zoned = DateTime.setZoneOffset(now, 3 * 60 * 60 * 1000) * }) * ``` + * + * @category time zones + * @since 3.6.0 */ (offset: number, options?: { readonly adjustForTimeZone?: boolean | undefined; readonly disambiguation?: Disambiguation | undefined; }): (self: DateTime) => Zoned; /** - * Add a fixed offset time zone to a `DateTime`. + * Adds a fixed offset time zone to a `DateTime`. + * + * **Details** * * The offset is in milliseconds. * - * @since 3.6.0 - * @category time zones - * @example + * **Example** (Setting fixed-offset time zones) + * * ```ts * import { DateTime, Effect } from "effect" * @@ -741,6 +1029,9 @@ export declare const setZoneOffset: { * const zoned: DateTime.Zoned = DateTime.setZoneOffset(now, 3 * 60 * 60 * 1000) * }) * ``` + * + * @category time zones + * @since 3.6.0 */ (self: DateTime, offset: number, options?: { readonly adjustForTimeZone?: boolean | undefined; @@ -748,11 +1039,19 @@ export declare const setZoneOffset: { }): Zoned; }; /** - * Attempt to create a named time zone from a IANA time zone identifier. + * Attempts to create a named time zone from an IANA time zone identifier. + * + * **When to use** + * + * Use when the IANA zone id is trusted and invalid zones should throw instead + * of returning `Option.none` or failing in `Effect`. + * + * **Details** * * If the time zone is invalid, an `IllegalArgumentError` will be thrown. * - * @example + * **Example** (Creating named time zones unsafely) + * * ```ts * import { DateTime } from "effect" * @@ -766,17 +1065,20 @@ export declare const setZoneOffset: { * // DateTime.zoneMakeNamedUnsafe("Invalid/Zone") * ``` * - * @since 3.6.0 * @category time zones + * @since 4.0.0 */ export declare const zoneMakeNamedUnsafe: (zoneId: string) => TimeZone.Named; /** * Create a fixed offset time zone. * + * **Details** + * * The offset is specified in milliseconds from UTC. Positive values are * ahead of UTC, negative values are behind UTC. * - * @example + * **Example** (Creating fixed-offset time zones) + * * ```ts * import { DateTime } from "effect" * @@ -793,11 +1095,14 @@ export declare const zoneMakeNamedUnsafe: (zoneId: string) => TimeZone.Named; */ export declare const zoneMakeOffset: (offset: number) => TimeZone.Offset; /** - * Create a named time zone from a IANA time zone identifier. + * Creates a named time zone safely from an IANA time zone identifier. + * + * **Details** * * If the time zone is invalid, `None` will be returned. * - * @example + * **Example** (Creating optional named time zones) + * * ```ts * import { DateTime } from "effect" * @@ -813,11 +1118,15 @@ export declare const zoneMakeOffset: (offset: number) => TimeZone.Offset; */ export declare const zoneMakeNamed: (zoneId: string) => Option.Option; /** - * Create a named time zone from a IANA time zone identifier. + * Creates a named time zone effectfully from an IANA time zone identifier. * - * If the time zone is invalid, it will fail with an `IllegalArgumentError`. + * **When to use** + * + * Use when invalid IANA zone ids should fail in the Effect error channel + * instead of returning `Option.none` or throwing. + * + * **Example** (Creating named time zones effectfully) * - * @example * ```ts * import { DateTime, Effect } from "effect" * @@ -835,18 +1144,18 @@ export declare const zoneMakeNamedEffect: (zoneId: string) => Effect.Effect(self: A) => A; /** - * Set the different parts of a `DateTime` as an object. + * Sets time-zone-adjusted parts on a `DateTime`. + * + * **Details** * * The date will be time zone adjusted for `DateTime.Zoned`. * - * @example + * **Example** (Updating DateTime parts) + * * ```ts * import { DateTime } from "effect" * @@ -1936,11 +2366,14 @@ export declare const setParts: { (self: A, parts: Partial): A; }; /** - * Set the different parts of a `DateTime` as an object. + * Sets UTC parts on a `DateTime`. + * + * **Details** * * The parts are always interpreted as UTC, ignoring any time zone information. * - * @example + * **Example** (Updating UTC DateTime parts) + * * ```ts * import { DateTime } from "effect" * @@ -1958,11 +2391,14 @@ export declare const setParts: { */ export declare const setPartsUtc: { /** - * Set the different parts of a `DateTime` as an object. + * Sets UTC parts on a `DateTime`. + * + * **Details** * * The parts are always interpreted as UTC, ignoring any time zone information. * - * @example + * **Example** (Updating UTC DateTime parts) + * * ```ts * import { DateTime } from "effect" * @@ -1980,11 +2416,14 @@ export declare const setPartsUtc: { */ (parts: Partial): (self: A) => A; /** - * Set the different parts of a `DateTime` as an object. + * Sets UTC parts on a `DateTime`. + * + * **Details** * * The parts are always interpreted as UTC, ignoring any time zone information. * - * @example + * **Example** (Updating UTC DateTime parts) + * * ```ts * import { DateTime } from "effect" * @@ -2004,13 +2443,23 @@ export declare const setPartsUtc: { }; declare const CurrentTimeZone_base: Context.ServiceClass; /** - * @example + * Context service that supplies the ambient `TimeZone` for APIs that work in + * the current zone, such as `DateTime.setZoneCurrent` and + * `DateTime.nowInCurrentZone`. + * + * **Details** + * + * Provide it with `DateTime.withCurrentZone`, one of the `withCurrentZone*` + * helpers, or one of the `layerCurrentZone*` layers. + * + * **Example** (Accessing the current time zone service) + * * ```ts * import { DateTime, Effect } from "effect" * * const program = Effect.gen(function*() { * // Access the current time zone service - * const zone = yield* DateTime.CurrentTimeZone.asEffect() + * const zone = yield* DateTime.CurrentTimeZone * console.log(DateTime.zoneToString(zone)) * }) * @@ -2019,18 +2468,17 @@ declare const CurrentTimeZone_base: Context.ServiceClass Effect.Effect; /** - * Provide the `CurrentTimeZone` to an effect. + * Provides the `CurrentTimeZone` to an effect. + * + * **Example** (Providing the current time zone) * - * @since 3.6.0 - * @category current time zone - * @example * ```ts * import { DateTime, Effect } from "effect" * @@ -2058,14 +2508,16 @@ export declare const setZoneCurrent: (self: DateTime) => Effect.Effect(self: Effect.Effect) => Effect.Effect>; /** - * Provide the `CurrentTimeZone` to an effect. + * Provides the `CurrentTimeZone` to an effect. + * + * **Example** (Providing the current time zone) * - * @since 3.6.0 - * @category current time zone - * @example * ```ts * import { DateTime, Effect } from "effect" * @@ -2092,16 +2546,18 @@ export declare const withCurrentZone: { * const now = yield* DateTime.nowInCurrentZone * }).pipe(DateTime.withCurrentZone(zone)) * ``` + * + * @category current time zone + * @since 3.6.0 */ (self: Effect.Effect, value: TimeZone): Effect.Effect>; }; /** - * Provide the `CurrentTimeZone` to an effect, using the system's local time + * Provides the `CurrentTimeZone` to an effect, using the system's local time * zone. * - * @since 3.6.0 - * @category current time zone - * @example + * **Example** (Providing the local time zone) + * * ```ts * import { DateTime, Effect } from "effect" * @@ -2110,66 +2566,76 @@ export declare const withCurrentZone: { * const now = yield* DateTime.nowInCurrentZone * }).pipe(DateTime.withCurrentZoneLocal) * ``` + * + * @category current time zone + * @since 3.6.0 */ export declare const withCurrentZoneLocal: (effect: Effect.Effect) => Effect.Effect>; /** - * Provide the `CurrentTimeZone` to an effect, using a offset. + * Provides the `CurrentTimeZone` to an effect, using an offset. + * + * **Example** (Providing a fixed-offset time zone) * - * @since 3.6.0 - * @category current time zone - * @example * ```ts * import { DateTime, Effect } from "effect" * * Effect.gen(function*() { - * // will use the system's local time zone - * const now = yield* DateTime.nowInCurrentZone + * const zone = yield* DateTime.CurrentTimeZone + * console.log(DateTime.zoneToString(zone)) // "+03:00" * }).pipe(DateTime.withCurrentZoneOffset(3 * 60 * 60 * 1000)) * ``` + * + * @category current time zone + * @since 3.6.0 */ export declare const withCurrentZoneOffset: { /** - * Provide the `CurrentTimeZone` to an effect, using a offset. + * Provides the `CurrentTimeZone` to an effect, using an offset. + * + * **Example** (Providing a fixed-offset time zone) * - * @since 3.6.0 - * @category current time zone - * @example * ```ts * import { DateTime, Effect } from "effect" * * Effect.gen(function*() { - * // will use the system's local time zone - * const now = yield* DateTime.nowInCurrentZone + * const zone = yield* DateTime.CurrentTimeZone + * console.log(DateTime.zoneToString(zone)) // "+03:00" * }).pipe(DateTime.withCurrentZoneOffset(3 * 60 * 60 * 1000)) * ``` + * + * @category current time zone + * @since 3.6.0 */ (offset: number): (effect: Effect.Effect) => Effect.Effect>; /** - * Provide the `CurrentTimeZone` to an effect, using a offset. + * Provides the `CurrentTimeZone` to an effect, using an offset. + * + * **Example** (Providing a fixed-offset time zone) * - * @since 3.6.0 - * @category current time zone - * @example * ```ts * import { DateTime, Effect } from "effect" * * Effect.gen(function*() { - * // will use the system's local time zone - * const now = yield* DateTime.nowInCurrentZone + * const zone = yield* DateTime.CurrentTimeZone + * console.log(DateTime.zoneToString(zone)) // "+03:00" * }).pipe(DateTime.withCurrentZoneOffset(3 * 60 * 60 * 1000)) * ``` + * + * @category current time zone + * @since 3.6.0 */ (effect: Effect.Effect, offset: number): Effect.Effect>; }; /** - * Provide the `CurrentTimeZone` to an effect using an IANA time zone + * Provides the `CurrentTimeZone` to an effect using an IANA time zone * identifier. * + * **Details** + * * If the time zone is invalid, it will fail with an `IllegalArgumentError`. * - * @since 3.6.0 - * @category current time zone - * @example + * **Example** (Providing a named time zone) + * * ```ts * import { DateTime, Effect } from "effect" * @@ -2178,17 +2644,21 @@ export declare const withCurrentZoneOffset: { * const now = yield* DateTime.nowInCurrentZone * }).pipe(DateTime.withCurrentZoneNamed("Europe/London")) * ``` + * + * @category current time zone + * @since 3.6.0 */ export declare const withCurrentZoneNamed: { /** - * Provide the `CurrentTimeZone` to an effect using an IANA time zone + * Provides the `CurrentTimeZone` to an effect using an IANA time zone * identifier. * + * **Details** + * * If the time zone is invalid, it will fail with an `IllegalArgumentError`. * - * @since 3.6.0 - * @category current time zone - * @example + * **Example** (Providing a named time zone) + * * ```ts * import { DateTime, Effect } from "effect" * @@ -2197,17 +2667,21 @@ export declare const withCurrentZoneNamed: { * const now = yield* DateTime.nowInCurrentZone * }).pipe(DateTime.withCurrentZoneNamed("Europe/London")) * ``` + * + * @category current time zone + * @since 3.6.0 */ (zone: string): (effect: Effect.Effect) => Effect.Effect>; /** - * Provide the `CurrentTimeZone` to an effect using an IANA time zone + * Provides the `CurrentTimeZone` to an effect using an IANA time zone * identifier. * + * **Details** + * * If the time zone is invalid, it will fail with an `IllegalArgumentError`. * - * @since 3.6.0 - * @category current time zone - * @example + * **Example** (Providing a named time zone) + * * ```ts * import { DateTime, Effect } from "effect" * @@ -2216,15 +2690,17 @@ export declare const withCurrentZoneNamed: { * const now = yield* DateTime.nowInCurrentZone * }).pipe(DateTime.withCurrentZoneNamed("Europe/London")) * ``` + * + * @category current time zone + * @since 3.6.0 */ (effect: Effect.Effect, zone: string): Effect.Effect>; }; /** - * Get the current time as a `DateTime.Zoned`, using the `CurrentTimeZone`. + * Gets the current time as a `DateTime.Zoned`, using the `CurrentTimeZone`. + * + * **Example** (Getting the current time in the current zone) * - * @since 3.6.0 - * @category current time zone - * @example * ```ts * import { DateTime, Effect } from "effect" * @@ -2233,17 +2709,28 @@ export declare const withCurrentZoneNamed: { * const now = yield* DateTime.nowInCurrentZone * }).pipe(DateTime.withCurrentZoneNamed("Europe/London")) * ``` + * + * @category current time zone + * @since 3.6.0 */ export declare const nowInCurrentZone: Effect.Effect; /** - * Modify a `DateTime` by applying a function to a cloned `Date` instance. + * Modifies a `DateTime` with a mutable local `Date` copy. + * + * **When to use** + * + * Use to adjust calendar fields in the `DateTime`'s own time zone with an + * existing `Date` mutation API. + * + * **Details** * * The `Date` will first have the time zone applied if possible, and then be * converted back to a `DateTime` within the same time zone. * * Supports `disambiguation` when the new wall clock time is ambiguous. * - * @example + * **Example** (Mutating DateTime values with Dates) + * * ```ts * import { DateTime } from "effect" * @@ -2257,19 +2744,27 @@ export declare const nowInCurrentZone: Effect.Effect void, options?: { readonly disambiguation?: Disambiguation | undefined; }): (self: A) => A; /** - * Modify a `DateTime` by applying a function to a cloned `Date` instance. + * Modifies a `DateTime` with a mutable local `Date` copy. + * + * **When to use** + * + * Use to adjust calendar fields in the `DateTime`'s own time zone with an + * existing `Date` mutation API. + * + * **Details** * * The `Date` will first have the time zone applied if possible, and then be * converted back to a `DateTime` within the same time zone. * * Supports `disambiguation` when the new wall clock time is ambiguous. * - * @example + * **Example** (Mutating DateTime values with Dates) + * * ```ts * import { DateTime } from "effect" * @@ -2311,17 +2814,23 @@ export declare const mutate: { * console.log(DateTime.formatIso(modified)) // "2024-01-01T15:30:00.000Z" * ``` * - * @since 3.6.0 * @category mapping + * @since 3.6.0 */ (self: A, f: (date: Date) => void, options?: { readonly disambiguation?: Disambiguation | undefined; }): A; }; /** - * Modify a `DateTime` by applying a function to a cloned UTC `Date` instance. + * Modifies a `DateTime` with a mutable UTC `Date` copy. + * + * **When to use** + * + * Use to adjust the instant with an existing `Date` mutation API that works on + * UTC calendar fields. + * + * **Example** (Mutating DateTime values with UTC Dates) * - * @example * ```ts * import { DateTime } from "effect" * @@ -2336,14 +2845,20 @@ export declare const mutate: { * console.log(DateTime.formatIso(modified)) // "2024-01-01T18:00:00.000Z" * ``` * - * @since 3.6.0 * @category mapping + * @since 3.6.0 */ export declare const mutateUtc: { /** - * Modify a `DateTime` by applying a function to a cloned UTC `Date` instance. + * Modifies a `DateTime` with a mutable UTC `Date` copy. + * + * **When to use** + * + * Use to adjust the instant with an existing `Date` mutation API that works on + * UTC calendar fields. + * + * **Example** (Mutating DateTime values with UTC Dates) * - * @example * ```ts * import { DateTime } from "effect" * @@ -2358,14 +2873,20 @@ export declare const mutateUtc: { * console.log(DateTime.formatIso(modified)) // "2024-01-01T18:00:00.000Z" * ``` * - * @since 3.6.0 * @category mapping + * @since 3.6.0 */ (f: (date: Date) => void): (self: A) => A; /** - * Modify a `DateTime` by applying a function to a cloned UTC `Date` instance. + * Modifies a `DateTime` with a mutable UTC `Date` copy. + * + * **When to use** + * + * Use to adjust the instant with an existing `Date` mutation API that works on + * UTC calendar fields. + * + * **Example** (Mutating DateTime values with UTC Dates) * - * @example * ```ts * import { DateTime } from "effect" * @@ -2380,18 +2901,17 @@ export declare const mutateUtc: { * console.log(DateTime.formatIso(modified)) // "2024-01-01T18:00:00.000Z" * ``` * - * @since 3.6.0 * @category mapping + * @since 3.6.0 */ (self: A, f: (date: Date) => void): A; }; /** - * Transform a `DateTime` by applying a function to the number of milliseconds + * Transforms a `DateTime` by applying a function to the number of milliseconds * since the Unix epoch. * - * @since 3.6.0 - * @category mapping - * @example + * **Example** (Mapping epoch milliseconds) + * * ```ts * import { DateTime } from "effect" * @@ -2400,15 +2920,17 @@ export declare const mutateUtc: { * DateTime.mapEpochMillis((millis) => millis + 10) * ) * ``` + * + * @category mapping + * @since 3.6.0 */ export declare const mapEpochMillis: { /** - * Transform a `DateTime` by applying a function to the number of milliseconds + * Transforms a `DateTime` by applying a function to the number of milliseconds * since the Unix epoch. * - * @since 3.6.0 - * @category mapping - * @example + * **Example** (Mapping epoch milliseconds) + * * ```ts * import { DateTime } from "effect" * @@ -2417,15 +2939,17 @@ export declare const mapEpochMillis: { * DateTime.mapEpochMillis((millis) => millis + 10) * ) * ``` + * + * @category mapping + * @since 3.6.0 */ (f: (millis: number) => number): (self: A) => A; /** - * Transform a `DateTime` by applying a function to the number of milliseconds + * Transforms a `DateTime` by applying a function to the number of milliseconds * since the Unix epoch. * - * @since 3.6.0 - * @category mapping - * @example + * **Example** (Mapping epoch milliseconds) + * * ```ts * import { DateTime } from "effect" * @@ -2434,16 +2958,24 @@ export declare const mapEpochMillis: { * DateTime.mapEpochMillis((millis) => millis + 10) * ) * ``` + * + * @category mapping + * @since 3.6.0 */ (self: A, f: (millis: number) => number): A; }; /** - * Using the time zone adjusted `Date`, apply a function to the `Date` and - * return the result. + * Applies a function to a JavaScript `Date` representing the `DateTime` and + * returns the function's result. + * + * **Details** + * + * The callback receives the time-zone-adjusted wall-clock date for + * `DateTime.Zoned` values. Use `DateTime.withDateUtc` when the callback should + * receive the UTC instant. + * + * **Example** (Using time zone adjusted Dates) * - * @since 3.6.0 - * @category mapping - * @example * ```ts * import { DateTime } from "effect" * @@ -2452,15 +2984,23 @@ export declare const mapEpochMillis: { * DateTime.withDate((date) => date.getTime()) * ) * ``` + * + * @category mapping + * @since 3.6.0 */ export declare const withDate: { /** - * Using the time zone adjusted `Date`, apply a function to the `Date` and - * return the result. + * Applies a function to a JavaScript `Date` representing the `DateTime` and + * returns the function's result. + * + * **Details** + * + * The callback receives the time-zone-adjusted wall-clock date for + * `DateTime.Zoned` values. Use `DateTime.withDateUtc` when the callback should + * receive the UTC instant. + * + * **Example** (Using time zone adjusted Dates) * - * @since 3.6.0 - * @category mapping - * @example * ```ts * import { DateTime } from "effect" * @@ -2469,15 +3009,23 @@ export declare const withDate: { * DateTime.withDate((date) => date.getTime()) * ) * ``` + * + * @category mapping + * @since 3.6.0 */ (f: (date: Date) => A): (self: DateTime) => A; /** - * Using the time zone adjusted `Date`, apply a function to the `Date` and - * return the result. + * Applies a function to a JavaScript `Date` representing the `DateTime` and + * returns the function's result. + * + * **Details** + * + * The callback receives the time-zone-adjusted wall-clock date for + * `DateTime.Zoned` values. Use `DateTime.withDateUtc` when the callback should + * receive the UTC instant. + * + * **Example** (Using time zone adjusted Dates) * - * @since 3.6.0 - * @category mapping - * @example * ```ts * import { DateTime } from "effect" * @@ -2486,16 +3034,23 @@ export declare const withDate: { * DateTime.withDate((date) => date.getTime()) * ) * ``` + * + * @category mapping + * @since 3.6.0 */ (self: DateTime, f: (date: Date) => A): A; }; /** - * Using the time zone adjusted `Date`, apply a function to the `Date` and - * return the result. + * Applies a function to a JavaScript `Date` representing the `DateTime`'s UTC + * instant and returns the function's result. + * + * **Details** + * + * This ignores any associated time zone. Use `DateTime.withDate` when the + * callback should receive the time-zone-adjusted wall-clock date. + * + * **Example** (Using UTC Dates) * - * @since 3.6.0 - * @category mapping - * @example * ```ts * import { DateTime } from "effect" * @@ -2504,15 +3059,22 @@ export declare const withDate: { * DateTime.withDateUtc((date) => date.getTime()) * ) * ``` + * + * @category mapping + * @since 3.6.0 */ export declare const withDateUtc: { /** - * Using the time zone adjusted `Date`, apply a function to the `Date` and - * return the result. + * Applies a function to a JavaScript `Date` representing the `DateTime`'s UTC + * instant and returns the function's result. + * + * **Details** + * + * This ignores any associated time zone. Use `DateTime.withDate` when the + * callback should receive the time-zone-adjusted wall-clock date. + * + * **Example** (Using UTC Dates) * - * @since 3.6.0 - * @category mapping - * @example * ```ts * import { DateTime } from "effect" * @@ -2521,15 +3083,22 @@ export declare const withDateUtc: { * DateTime.withDateUtc((date) => date.getTime()) * ) * ``` + * + * @category mapping + * @since 3.6.0 */ (f: (date: Date) => A): (self: DateTime) => A; /** - * Using the time zone adjusted `Date`, apply a function to the `Date` and - * return the result. + * Applies a function to a JavaScript `Date` representing the `DateTime`'s UTC + * instant and returns the function's result. + * + * **Details** + * + * This ignores any associated time zone. Use `DateTime.withDate` when the + * callback should receive the time-zone-adjusted wall-clock date. + * + * **Example** (Using UTC Dates) * - * @since 3.6.0 - * @category mapping - * @example * ```ts * import { DateTime } from "effect" * @@ -2538,18 +3107,24 @@ export declare const withDateUtc: { * DateTime.withDateUtc((date) => date.getTime()) * ) * ``` + * + * @category mapping + * @since 3.6.0 */ (self: DateTime, f: (date: Date) => A): A; }; /** * Pattern match on a `DateTime` to handle `Utc` and `Zoned` cases differently. * - * @example + * **Example** (Pattern matching DateTime variants) + * * ```ts * import { DateTime } from "effect" * - * const dt1 = DateTime.nowUnsafe() // Utc - * const dt2 = DateTime.makeZonedUnsafe(new Date(), { timeZone: "Europe/London" }) // Zoned + * const dt1 = DateTime.makeUnsafe("2024-01-01T12:00:00Z") // Utc + * const dt2 = DateTime.makeZonedUnsafe("2024-06-15T14:30:00Z", { + * timeZone: "Europe/London" + * }) // Zoned * * const result1 = DateTime.match(dt1, { * onUtc: (utc) => `UTC: ${DateTime.formatIso(utc)}`, @@ -2560,6 +3135,9 @@ export declare const withDateUtc: { * onUtc: (utc) => `UTC: ${DateTime.formatIso(utc)}`, * onZoned: (zoned) => `Zoned: ${DateTime.formatIsoZoned(zoned)}` * }) + * + * console.log(result1) // "UTC: 2024-01-01T12:00:00.000Z" + * console.log(result2) // "Zoned: 2024-06-15T15:30:00.000+01:00[Europe/London]" * ``` * * @category mapping @@ -2569,12 +3147,15 @@ export declare const match: { /** * Pattern match on a `DateTime` to handle `Utc` and `Zoned` cases differently. * - * @example + * **Example** (Pattern matching DateTime variants) + * * ```ts * import { DateTime } from "effect" * - * const dt1 = DateTime.nowUnsafe() // Utc - * const dt2 = DateTime.makeZonedUnsafe(new Date(), { timeZone: "Europe/London" }) // Zoned + * const dt1 = DateTime.makeUnsafe("2024-01-01T12:00:00Z") // Utc + * const dt2 = DateTime.makeZonedUnsafe("2024-06-15T14:30:00Z", { + * timeZone: "Europe/London" + * }) // Zoned * * const result1 = DateTime.match(dt1, { * onUtc: (utc) => `UTC: ${DateTime.formatIso(utc)}`, @@ -2585,6 +3166,9 @@ export declare const match: { * onUtc: (utc) => `UTC: ${DateTime.formatIso(utc)}`, * onZoned: (zoned) => `Zoned: ${DateTime.formatIsoZoned(zoned)}` * }) + * + * console.log(result1) // "UTC: 2024-01-01T12:00:00.000Z" + * console.log(result2) // "Zoned: 2024-06-15T15:30:00.000+01:00[Europe/London]" * ``` * * @category mapping @@ -2597,12 +3181,15 @@ export declare const match: { /** * Pattern match on a `DateTime` to handle `Utc` and `Zoned` cases differently. * - * @example + * **Example** (Pattern matching DateTime variants) + * * ```ts * import { DateTime } from "effect" * - * const dt1 = DateTime.nowUnsafe() // Utc - * const dt2 = DateTime.makeZonedUnsafe(new Date(), { timeZone: "Europe/London" }) // Zoned + * const dt1 = DateTime.makeUnsafe("2024-01-01T12:00:00Z") // Utc + * const dt2 = DateTime.makeZonedUnsafe("2024-06-15T14:30:00Z", { + * timeZone: "Europe/London" + * }) // Zoned * * const result1 = DateTime.match(dt1, { * onUtc: (utc) => `UTC: ${DateTime.formatIso(utc)}`, @@ -2613,6 +3200,9 @@ export declare const match: { * onUtc: (utc) => `UTC: ${DateTime.formatIso(utc)}`, * onZoned: (zoned) => `Zoned: ${DateTime.formatIsoZoned(zoned)}` * }) + * + * console.log(result1) // "UTC: 2024-01-01T12:00:00.000Z" + * console.log(result2) // "Zoned: 2024-06-15T15:30:00.000+01:00[Europe/London]" * ``` * * @category mapping @@ -2624,11 +3214,26 @@ export declare const match: { }): A | B; }; /** - * Add the given `Duration` to a `DateTime`. + * Adds the given `Duration` to a `DateTime`. + * + * **When to use** + * + * Use to move a `DateTime` by an elapsed duration such as minutes, seconds, or + * milliseconds. + * + * **Details** + * + * The duration is converted to milliseconds and added to the epoch + * milliseconds. Zoned values keep their original time zone. + * + * **Gotchas** + * + * This is elapsed-time arithmetic, not calendar-aware local date arithmetic. + * Use `add` when adding days, weeks, months, or years should account for the + * date/time zone rules. + * + * **Example** (Adding durations) * - * @since 3.6.0 - * @category math - * @example * ```ts * import { DateTime } from "effect" * @@ -2637,14 +3242,35 @@ export declare const match: { * DateTime.addDuration("5 minutes") * ) * ``` + * + * @see {@link add} for calendar-aware date/time part arithmetic + * @see {@link subtractDuration} for subtracting an elapsed duration + * + * @category math + * @since 3.6.0 */ export declare const addDuration: { /** - * Add the given `Duration` to a `DateTime`. + * Adds the given `Duration` to a `DateTime`. + * + * **When to use** + * + * Use to move a `DateTime` by an elapsed duration such as minutes, seconds, or + * milliseconds. + * + * **Details** + * + * The duration is converted to milliseconds and added to the epoch + * milliseconds. Zoned values keep their original time zone. + * + * **Gotchas** + * + * This is elapsed-time arithmetic, not calendar-aware local date arithmetic. + * Use `add` when adding days, weeks, months, or years should account for the + * date/time zone rules. + * + * **Example** (Adding durations) * - * @since 3.6.0 - * @category math - * @example * ```ts * import { DateTime } from "effect" * @@ -2653,14 +3279,35 @@ export declare const addDuration: { * DateTime.addDuration("5 minutes") * ) * ``` + * + * @see {@link add} for calendar-aware date/time part arithmetic + * @see {@link subtractDuration} for subtracting an elapsed duration + * + * @category math + * @since 3.6.0 */ (duration: Duration.Input): (self: A) => A; /** - * Add the given `Duration` to a `DateTime`. + * Adds the given `Duration` to a `DateTime`. + * + * **When to use** + * + * Use to move a `DateTime` by an elapsed duration such as minutes, seconds, or + * milliseconds. + * + * **Details** + * + * The duration is converted to milliseconds and added to the epoch + * milliseconds. Zoned values keep their original time zone. + * + * **Gotchas** + * + * This is elapsed-time arithmetic, not calendar-aware local date arithmetic. + * Use `add` when adding days, weeks, months, or years should account for the + * date/time zone rules. + * + * **Example** (Adding durations) * - * @since 3.6.0 - * @category math - * @example * ```ts * import { DateTime } from "effect" * @@ -2669,15 +3316,20 @@ export declare const addDuration: { * DateTime.addDuration("5 minutes") * ) * ``` + * + * @see {@link add} for calendar-aware date/time part arithmetic + * @see {@link subtractDuration} for subtracting an elapsed duration + * + * @category math + * @since 3.6.0 */ (self: A, duration: Duration.Input): A; }; /** - * Subtract the given `Duration` from a `DateTime`. + * Subtracts the given `Duration` from a `DateTime`. + * + * **Example** (Subtracting durations) * - * @since 3.6.0 - * @category math - * @example * ```ts * import { DateTime } from "effect" * @@ -2686,14 +3338,16 @@ export declare const addDuration: { * DateTime.subtractDuration("5 minutes") * ) * ``` + * + * @category math + * @since 3.6.0 */ export declare const subtractDuration: { /** - * Subtract the given `Duration` from a `DateTime`. + * Subtracts the given `Duration` from a `DateTime`. + * + * **Example** (Subtracting durations) * - * @since 3.6.0 - * @category math - * @example * ```ts * import { DateTime } from "effect" * @@ -2702,14 +3356,16 @@ export declare const subtractDuration: { * DateTime.subtractDuration("5 minutes") * ) * ``` + * + * @category math + * @since 3.6.0 */ (duration: Duration.Input): (self: A) => A; /** - * Subtract the given `Duration` from a `DateTime`. + * Subtracts the given `Duration` from a `DateTime`. + * + * **Example** (Subtracting durations) * - * @since 3.6.0 - * @category math - * @example * ```ts * import { DateTime } from "effect" * @@ -2718,18 +3374,22 @@ export declare const subtractDuration: { * DateTime.subtractDuration("5 minutes") * ) * ``` + * + * @category math + * @since 3.6.0 */ (self: A, duration: Duration.Input): A; }; /** - * Add the given `amount` of `unit`'s to a `DateTime`. + * Adds the given `amount` of `unit` to a `DateTime`. + * + * **Details** * * The time zone is taken into account when adding days, weeks, months, and * years. * - * @since 3.6.0 - * @category math - * @example + * **Example** (Adding date and time parts) + * * ```ts * import { DateTime } from "effect" * @@ -2738,17 +3398,21 @@ export declare const subtractDuration: { * DateTime.add({ minutes: 5 }) * ) * ``` + * + * @category math + * @since 3.6.0 */ export declare const add: { /** - * Add the given `amount` of `unit`'s to a `DateTime`. + * Adds the given `amount` of `unit` to a `DateTime`. + * + * **Details** * * The time zone is taken into account when adding days, weeks, months, and * years. * - * @since 3.6.0 - * @category math - * @example + * **Example** (Adding date and time parts) + * * ```ts * import { DateTime } from "effect" * @@ -2757,17 +3421,21 @@ export declare const add: { * DateTime.add({ minutes: 5 }) * ) * ``` + * + * @category math + * @since 3.6.0 */ (parts: Partial): (self: A) => A; /** - * Add the given `amount` of `unit`'s to a `DateTime`. + * Adds the given `amount` of `unit` to a `DateTime`. + * + * **Details** * * The time zone is taken into account when adding days, weeks, months, and * years. * - * @since 3.6.0 - * @category math - * @example + * **Example** (Adding date and time parts) + * * ```ts * import { DateTime } from "effect" * @@ -2776,15 +3444,17 @@ export declare const add: { * DateTime.add({ minutes: 5 }) * ) * ``` + * + * @category math + * @since 3.6.0 */ (self: A, parts: Partial): A; }; /** - * Subtract the given `amount` of `unit`'s from a `DateTime`. + * Subtracts the given `amount` of `unit` from a `DateTime`. + * + * **Example** (Subtracting date and time parts) * - * @since 3.6.0 - * @category math - * @example * ```ts * import { DateTime } from "effect" * @@ -2793,14 +3463,16 @@ export declare const add: { * DateTime.subtract({ minutes: 5 }) * ) * ``` + * + * @category math + * @since 3.6.0 */ export declare const subtract: { /** - * Subtract the given `amount` of `unit`'s from a `DateTime`. + * Subtracts the given `amount` of `unit` from a `DateTime`. + * + * **Example** (Subtracting date and time parts) * - * @since 3.6.0 - * @category math - * @example * ```ts * import { DateTime } from "effect" * @@ -2809,14 +3481,16 @@ export declare const subtract: { * DateTime.subtract({ minutes: 5 }) * ) * ``` + * + * @category math + * @since 3.6.0 */ (parts: Partial): (self: A) => A; /** - * Subtract the given `amount` of `unit`'s from a `DateTime`. + * Subtracts the given `amount` of `unit` from a `DateTime`. + * + * **Example** (Subtracting date and time parts) * - * @since 3.6.0 - * @category math - * @example * ```ts * import { DateTime } from "effect" * @@ -2825,18 +3499,22 @@ export declare const subtract: { * DateTime.subtract({ minutes: 5 }) * ) * ``` + * + * @category math + * @since 3.6.0 */ (self: A, parts: Partial): A; }; /** * Converts a `DateTime` to the start of the given `part`. * + * **Details** + * * If the part is `week`, the `weekStartsOn` option can be used to specify the * day of the week that the week starts on. The default is 0 (Sunday). * - * @since 3.6.0 - * @category math - * @example + * **Example** (Rounding down DateTime values) + * * ```ts * import { DateTime } from "effect" * @@ -2846,17 +3524,21 @@ export declare const subtract: { * DateTime.formatIso * ) * ``` + * + * @category math + * @since 3.6.0 */ export declare const startOf: { /** * Converts a `DateTime` to the start of the given `part`. * + * **Details** + * * If the part is `week`, the `weekStartsOn` option can be used to specify the * day of the week that the week starts on. The default is 0 (Sunday). * - * @since 3.6.0 - * @category math - * @example + * **Example** (Rounding down DateTime values) + * * ```ts * import { DateTime } from "effect" * @@ -2866,6 +3548,9 @@ export declare const startOf: { * DateTime.formatIso * ) * ``` + * + * @category math + * @since 3.6.0 */ (part: DateTime.UnitSingular, options?: { readonly weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | undefined; @@ -2873,12 +3558,13 @@ export declare const startOf: { /** * Converts a `DateTime` to the start of the given `part`. * + * **Details** + * * If the part is `week`, the `weekStartsOn` option can be used to specify the * day of the week that the week starts on. The default is 0 (Sunday). * - * @since 3.6.0 - * @category math - * @example + * **Example** (Rounding down DateTime values) + * * ```ts * import { DateTime } from "effect" * @@ -2888,6 +3574,9 @@ export declare const startOf: { * DateTime.formatIso * ) * ``` + * + * @category math + * @since 3.6.0 */ (self: A, part: DateTime.UnitSingular, options?: { readonly weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | undefined; @@ -2896,12 +3585,13 @@ export declare const startOf: { /** * Converts a `DateTime` to the end of the given `part`. * + * **Details** + * * If the part is `week`, the `weekStartsOn` option can be used to specify the * day of the week that the week starts on. The default is 0 (Sunday). * - * @since 3.6.0 - * @category math - * @example + * **Example** (Rounding up DateTime values) + * * ```ts * import { DateTime } from "effect" * @@ -2911,17 +3601,21 @@ export declare const startOf: { * DateTime.formatIso * ) * ``` + * + * @category math + * @since 3.6.0 */ export declare const endOf: { /** * Converts a `DateTime` to the end of the given `part`. * + * **Details** + * * If the part is `week`, the `weekStartsOn` option can be used to specify the * day of the week that the week starts on. The default is 0 (Sunday). * - * @since 3.6.0 - * @category math - * @example + * **Example** (Rounding up DateTime values) + * * ```ts * import { DateTime } from "effect" * @@ -2931,6 +3625,9 @@ export declare const endOf: { * DateTime.formatIso * ) * ``` + * + * @category math + * @since 3.6.0 */ (part: DateTime.UnitSingular, options?: { readonly weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | undefined; @@ -2938,12 +3635,13 @@ export declare const endOf: { /** * Converts a `DateTime` to the end of the given `part`. * + * **Details** + * * If the part is `week`, the `weekStartsOn` option can be used to specify the * day of the week that the week starts on. The default is 0 (Sunday). * - * @since 3.6.0 - * @category math - * @example + * **Example** (Rounding up DateTime values) + * * ```ts * import { DateTime } from "effect" * @@ -2953,6 +3651,9 @@ export declare const endOf: { * DateTime.formatIso * ) * ``` + * + * @category math + * @since 3.6.0 */ (self: A, part: DateTime.UnitSingular, options?: { readonly weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | undefined; @@ -2961,12 +3662,13 @@ export declare const endOf: { /** * Converts a `DateTime` to the nearest given `part`. * + * **Details** + * * If the part is `week`, the `weekStartsOn` option can be used to specify the * day of the week that the week starts on. The default is 0 (Sunday). * - * @since 3.6.0 - * @category math - * @example + * **Example** (Rounding DateTime values to nearest units) + * * ```ts * import { DateTime } from "effect" * @@ -2976,17 +3678,21 @@ export declare const endOf: { * DateTime.formatIso * ) * ``` + * + * @category math + * @since 3.6.0 */ export declare const nearest: { /** * Converts a `DateTime` to the nearest given `part`. * + * **Details** + * * If the part is `week`, the `weekStartsOn` option can be used to specify the * day of the week that the week starts on. The default is 0 (Sunday). * - * @since 3.6.0 - * @category math - * @example + * **Example** (Rounding DateTime values to nearest units) + * * ```ts * import { DateTime } from "effect" * @@ -2996,6 +3702,9 @@ export declare const nearest: { * DateTime.formatIso * ) * ``` + * + * @category math + * @since 3.6.0 */ (part: DateTime.UnitSingular, options?: { readonly weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | undefined; @@ -3003,12 +3712,13 @@ export declare const nearest: { /** * Converts a `DateTime` to the nearest given `part`. * + * **Details** + * * If the part is `week`, the `weekStartsOn` option can be used to specify the * day of the week that the week starts on. The default is 0 (Sunday). * - * @since 3.6.0 - * @category math - * @example + * **Example** (Rounding DateTime values to nearest units) + * * ```ts * import { DateTime } from "effect" * @@ -3018,20 +3728,28 @@ export declare const nearest: { * DateTime.formatIso * ) * ``` + * + * @category math + * @since 3.6.0 */ (self: A, part: DateTime.UnitSingular, options?: { readonly weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | undefined; }): A; }; /** - * Format a `DateTime` as a string using the `DateTimeFormat` API. + * Formats a `DateTime` with `Intl.DateTimeFormat`. + * + * **Details** + * + * Unless a `timeZone` option is supplied, UTC values are formatted in UTC and + * zoned values are formatted in their named zone or fixed-offset zone. * - * The `timeZone` option is set to the offset of the time zone. + * Fixed-offset zones depend on runtime support for offset `timeZone` + * identifiers. When unsupported, formatting falls back to UTC with the + * `DateTime` adjusted to the offset. * - * Note: On Node versions < 22, fixed "Offset" zones will set the time zone to - * "UTC" and use the adjusted `Date`. + * **Example** (Formatting DateTime values with Intl options) * - * @example * ```ts * import { DateTime } from "effect" * @@ -3048,19 +3766,24 @@ export declare const nearest: { * console.log(formatted) // "Saturday, June 15, 2024 at 3:30 PM" * ``` * - * @since 3.6.0 * @category formatting + * @since 3.6.0 */ export declare const format: { /** - * Format a `DateTime` as a string using the `DateTimeFormat` API. + * Formats a `DateTime` with `Intl.DateTimeFormat`. + * + * **Details** + * + * Unless a `timeZone` option is supplied, UTC values are formatted in UTC and + * zoned values are formatted in their named zone or fixed-offset zone. * - * The `timeZone` option is set to the offset of the time zone. + * Fixed-offset zones depend on runtime support for offset `timeZone` + * identifiers. When unsupported, formatting falls back to UTC with the + * `DateTime` adjusted to the offset. * - * Note: On Node versions < 22, fixed "Offset" zones will set the time zone to - * "UTC" and use the adjusted `Date`. + * **Example** (Formatting DateTime values with Intl options) * - * @example * ```ts * import { DateTime } from "effect" * @@ -3077,21 +3800,26 @@ export declare const format: { * console.log(formatted) // "Saturday, June 15, 2024 at 3:30 PM" * ``` * - * @since 3.6.0 * @category formatting + * @since 3.6.0 */ (options?: Intl.DateTimeFormatOptions & { readonly locale?: string | undefined; } | undefined): (self: DateTime) => string; /** - * Format a `DateTime` as a string using the `DateTimeFormat` API. + * Formats a `DateTime` with `Intl.DateTimeFormat`. + * + * **Details** + * + * Unless a `timeZone` option is supplied, UTC values are formatted in UTC and + * zoned values are formatted in their named zone or fixed-offset zone. * - * The `timeZone` option is set to the offset of the time zone. + * Fixed-offset zones depend on runtime support for offset `timeZone` + * identifiers. When unsupported, formatting falls back to UTC with the + * `DateTime` adjusted to the offset. * - * Note: On Node versions < 22, fixed "Offset" zones will set the time zone to - * "UTC" and use the adjusted `Date`. + * **Example** (Formatting DateTime values with Intl options) * - * @example * ```ts * import { DateTime } from "effect" * @@ -3108,19 +3836,19 @@ export declare const format: { * console.log(formatted) // "Saturday, June 15, 2024 at 3:30 PM" * ``` * - * @since 3.6.0 * @category formatting + * @since 3.6.0 */ (self: DateTime, options?: Intl.DateTimeFormatOptions & { readonly locale?: string | undefined; } | undefined): string; }; /** - * Format a `DateTime` as a string using the `DateTimeFormat` API. + * Formats a `DateTime` with `Intl.DateTimeFormat` using the system local time + * zone and locale. * - * It will use the system's local time zone & locale. + * **Example** (Formatting DateTime values locally) * - * @example * ```ts * import { DateTime } from "effect" * @@ -3138,16 +3866,16 @@ export declare const format: { * console.log(local) // Output depends on system locale/timezone * ``` * - * @since 3.6.0 * @category formatting + * @since 3.6.0 */ export declare const formatLocal: { /** - * Format a `DateTime` as a string using the `DateTimeFormat` API. + * Formats a `DateTime` with `Intl.DateTimeFormat` using the system local time + * zone and locale. * - * It will use the system's local time zone & locale. + * **Example** (Formatting DateTime values locally) * - * @example * ```ts * import { DateTime } from "effect" * @@ -3165,18 +3893,18 @@ export declare const formatLocal: { * console.log(local) // Output depends on system locale/timezone * ``` * - * @since 3.6.0 * @category formatting + * @since 3.6.0 */ (options?: Intl.DateTimeFormatOptions & { readonly locale?: string | undefined; } | undefined): (self: DateTime) => string; /** - * Format a `DateTime` as a string using the `DateTimeFormat` API. + * Formats a `DateTime` with `Intl.DateTimeFormat` using the system local time + * zone and locale. * - * It will use the system's local time zone & locale. + * **Example** (Formatting DateTime values locally) * - * @example * ```ts * import { DateTime } from "effect" * @@ -3194,19 +3922,22 @@ export declare const formatLocal: { * console.log(local) // Output depends on system locale/timezone * ``` * - * @since 3.6.0 * @category formatting + * @since 3.6.0 */ (self: DateTime, options?: Intl.DateTimeFormatOptions & { readonly locale?: string | undefined; } | undefined): string; }; /** - * Format a `DateTime` as a string using the `DateTimeFormat` API. + * Formats a `DateTime` with `Intl.DateTimeFormat` using the UTC time zone. + * + * **Details** * * This forces the time zone to be UTC. * - * @example + * **Example** (Formatting DateTime values in UTC) + * * ```ts * import { DateTime } from "effect" * @@ -3227,16 +3958,19 @@ export declare const formatLocal: { * console.log(utcFormatted) // "06/15/2024, 02:30 PM UTC" * ``` * - * @since 3.6.0 * @category formatting + * @since 3.6.0 */ export declare const formatUtc: { /** - * Format a `DateTime` as a string using the `DateTimeFormat` API. + * Formats a `DateTime` with `Intl.DateTimeFormat` using the UTC time zone. + * + * **Details** * * This forces the time zone to be UTC. * - * @example + * **Example** (Formatting DateTime values in UTC) + * * ```ts * import { DateTime } from "effect" * @@ -3257,18 +3991,21 @@ export declare const formatUtc: { * console.log(utcFormatted) // "06/15/2024, 02:30 PM UTC" * ``` * - * @since 3.6.0 * @category formatting + * @since 3.6.0 */ (options?: Intl.DateTimeFormatOptions & { readonly locale?: string | undefined; } | undefined): (self: DateTime) => string; /** - * Format a `DateTime` as a string using the `DateTimeFormat` API. + * Formats a `DateTime` with `Intl.DateTimeFormat` using the UTC time zone. + * + * **Details** * * This forces the time zone to be UTC. * - * @example + * **Example** (Formatting DateTime values in UTC) + * * ```ts * import { DateTime } from "effect" * @@ -3289,17 +4026,28 @@ export declare const formatUtc: { * console.log(utcFormatted) // "06/15/2024, 02:30 PM UTC" * ``` * - * @since 3.6.0 * @category formatting + * @since 3.6.0 */ (self: DateTime, options?: Intl.DateTimeFormatOptions & { readonly locale?: string | undefined; } | undefined): string; }; /** - * Format a `DateTime` as a string using the `DateTimeFormat` API. + * Formats a `DateTime` as a string using the `Intl.DateTimeFormat` API. + * + * **When to use** + * + * Use when you already have an `Intl.DateTimeFormat` and want it to control the + * locale, time zone, and formatting options. + * + * **Details** + * + * The formatter receives the `DateTime` epoch milliseconds. Any time zone + * conversion comes from the supplied formatter. + * + * **Example** (Formatting DateTime values with custom formatters) * - * @example * ```ts * import { DateTime } from "effect" * @@ -3316,17 +4064,31 @@ export declare const formatUtc: { * }) * * const formatted = DateTime.formatIntl(dt, formatter) - * console.log(formatted) // "15. Juni 2024, 16:30" + * console.log(formatted.length > 0) // true * ``` * - * @since 3.6.0 + * @see {@link formatUtc} for formatting with options forced to UTC + * @see {@link formatIso} for stable ISO formatting + * * @category formatting + * @since 3.6.0 */ export declare const formatIntl: { /** - * Format a `DateTime` as a string using the `DateTimeFormat` API. + * Formats a `DateTime` as a string using the `Intl.DateTimeFormat` API. + * + * **When to use** + * + * Use when you already have an `Intl.DateTimeFormat` and want it to control the + * locale, time zone, and formatting options. + * + * **Details** + * + * The formatter receives the `DateTime` epoch milliseconds. Any time zone + * conversion comes from the supplied formatter. + * + * **Example** (Formatting DateTime values with custom formatters) * - * @example * ```ts * import { DateTime } from "effect" * @@ -3343,17 +4105,31 @@ export declare const formatIntl: { * }) * * const formatted = DateTime.formatIntl(dt, formatter) - * console.log(formatted) // "15. Juni 2024, 16:30" + * console.log(formatted.length > 0) // true * ``` * - * @since 3.6.0 + * @see {@link formatUtc} for formatting with options forced to UTC + * @see {@link formatIso} for stable ISO formatting + * * @category formatting + * @since 3.6.0 */ (format: Intl.DateTimeFormat): (self: DateTime) => string; /** - * Format a `DateTime` as a string using the `DateTimeFormat` API. + * Formats a `DateTime` as a string using the `Intl.DateTimeFormat` API. + * + * **When to use** + * + * Use when you already have an `Intl.DateTimeFormat` and want it to control the + * locale, time zone, and formatting options. + * + * **Details** + * + * The formatter receives the `DateTime` epoch milliseconds. Any time zone + * conversion comes from the supplied formatter. + * + * **Example** (Formatting DateTime values with custom formatters) * - * @example * ```ts * import { DateTime } from "effect" * @@ -3370,20 +4146,26 @@ export declare const formatIntl: { * }) * * const formatted = DateTime.formatIntl(dt, formatter) - * console.log(formatted) // "15. Juni 2024, 16:30" + * console.log(formatted.length > 0) // true * ``` * - * @since 3.6.0 + * @see {@link formatUtc} for formatting with options forced to UTC + * @see {@link formatIso} for stable ISO formatting + * * @category formatting + * @since 3.6.0 */ (self: DateTime, format: Intl.DateTimeFormat): string; }; /** - * Format a `DateTime` as a UTC ISO string. + * Formats a `DateTime` as a UTC ISO string. + * + * **Details** * * Always returns the UTC representation in ISO 8601 format, ignoring any time zone. * - * @example + * **Example** (Formatting DateTime values as ISO strings) + * * ```ts * import { DateTime } from "effect" * @@ -3401,11 +4183,14 @@ export declare const formatIntl: { */ export declare const formatIso: (self: DateTime) => string; /** - * Format a `DateTime` as a time zone adjusted ISO date string. + * Formats a `DateTime` as a time zone adjusted ISO date string. + * + * **Details** * * Returns only the date part (YYYY-MM-DD) after applying time zone adjustments. * - * @example + * **Example** (Formatting DateTime values as ISO dates) + * * ```ts * import { DateTime } from "effect" * @@ -3423,11 +4208,14 @@ export declare const formatIso: (self: DateTime) => string; */ export declare const formatIsoDate: (self: DateTime) => string; /** - * Format a `DateTime` as a UTC ISO date string. + * Formats a `DateTime` as a UTC ISO date string. + * + * **Details** * * Returns only the date part (YYYY-MM-DD) in UTC, ignoring any time zone. * - * @example + * **Example** (Formatting DateTime values as UTC ISO dates) + * * ```ts * import { DateTime } from "effect" * @@ -3445,12 +4233,15 @@ export declare const formatIsoDate: (self: DateTime) => string; */ export declare const formatIsoDateUtc: (self: DateTime) => string; /** - * Format a `DateTime.Zoned` as an ISO string with an offset. + * Formats a `DateTime.Zoned` as an ISO string with an offset. + * + * **Details** * * For `DateTime.Utc`, returns the same as `formatIso`. For `DateTime.Zoned`, * includes the time zone offset in the format. * - * @example + * **Example** (Formatting DateTime values with offsets) + * * ```ts * import { DateTime } from "effect" * @@ -3468,11 +4259,14 @@ export declare const formatIsoDateUtc: (self: DateTime) => string; */ export declare const formatIsoOffset: (self: DateTime) => string; /** - * Format a `DateTime.Zoned` as a string. + * Formats a `DateTime.Zoned` as a string. + * + * **Details** * * It uses the format: `YYYY-MM-DDTHH:mm:ss.sss+HH:MM[Time/Zone]`. * - * @example + * **Example** (Formatting zoned DateTime values) + * * ```ts * import { DateTime } from "effect" * @@ -3491,16 +4285,19 @@ export declare const formatIsoOffset: (self: DateTime) => string; * console.log(offsetFormatted) // "2024-06-15T17:30:45.123+03:00" * ``` * - * @since 3.6.0 * @category formatting + * @since 3.6.0 */ export declare const formatIsoZoned: (self: Zoned) => string; /** * Create a Layer from the given time zone. * + * **Details** + * * This layer provides the `CurrentTimeZone` service with the specified time zone. * - * @example + * **Example** (Providing current time zone layers) + * * ```ts * import { DateTime, Effect } from "effect" * @@ -3523,9 +4320,12 @@ export declare const layerCurrentZone: (resource: NoInfer) => Layer.La /** * Create a Layer from the given time zone offset. * + * **Details** + * * This layer provides the `CurrentTimeZone` service with a fixed offset time zone. * - * @example + * **Example** (Providing fixed-offset time zone layers) + * * ```ts * import { DateTime, Effect } from "effect" * @@ -3547,10 +4347,13 @@ export declare const layerCurrentZoneOffset: (offset: number) => Layer.Layer Layer.Layer Effect.map(CurrentTimeZone.asEffect(), zone => setZone(self, zone)); +export const setZoneCurrent = self => Effect.map(CurrentTimeZone, zone => setZone(self, zone)); /** - * Provide the `CurrentTimeZone` to an effect. + * Provides the `CurrentTimeZone` to an effect. + * + * **Example** (Providing the current time zone) * - * @since 3.6.0 - * @category current time zone - * @example * ```ts * import { DateTime, Effect } from "effect" * @@ -1123,15 +1377,17 @@ export const setZoneCurrent = self => Effect.map(CurrentTimeZone.asEffect(), zon * const now = yield* DateTime.nowInCurrentZone * }).pipe(DateTime.withCurrentZone(zone)) * ``` + * + * @category current time zone + * @since 3.6.0 */ export const withCurrentZone = /*#__PURE__*/provideService(CurrentTimeZone); /** - * Provide the `CurrentTimeZone` to an effect, using the system's local time + * Provides the `CurrentTimeZone` to an effect, using the system's local time * zone. * - * @since 3.6.0 - * @category current time zone - * @example + * **Example** (Providing the local time zone) + * * ```ts * import { DateTime, Effect } from "effect" * @@ -1140,33 +1396,39 @@ export const withCurrentZone = /*#__PURE__*/provideService(CurrentTimeZone); * const now = yield* DateTime.nowInCurrentZone * }).pipe(DateTime.withCurrentZoneLocal) * ``` + * + * @category current time zone + * @since 3.6.0 */ export const withCurrentZoneLocal = effect => Effect.provideServiceEffect(effect, CurrentTimeZone, Effect.sync(zoneMakeLocal)); /** - * Provide the `CurrentTimeZone` to an effect, using a offset. + * Provides the `CurrentTimeZone` to an effect, using an offset. + * + * **Example** (Providing a fixed-offset time zone) * - * @since 3.6.0 - * @category current time zone - * @example * ```ts * import { DateTime, Effect } from "effect" * * Effect.gen(function*() { - * // will use the system's local time zone - * const now = yield* DateTime.nowInCurrentZone + * const zone = yield* DateTime.CurrentTimeZone + * console.log(DateTime.zoneToString(zone)) // "+03:00" * }).pipe(DateTime.withCurrentZoneOffset(3 * 60 * 60 * 1000)) * ``` + * + * @category current time zone + * @since 3.6.0 */ export const withCurrentZoneOffset = /*#__PURE__*/dual(2, (effect, offset) => Effect.provideService(effect, CurrentTimeZone, zoneMakeOffset(offset))); /** - * Provide the `CurrentTimeZone` to an effect using an IANA time zone + * Provides the `CurrentTimeZone` to an effect using an IANA time zone * identifier. * + * **Details** + * * If the time zone is invalid, it will fail with an `IllegalArgumentError`. * - * @since 3.6.0 - * @category current time zone - * @example + * **Example** (Providing a named time zone) + * * ```ts * import { DateTime, Effect } from "effect" * @@ -1175,14 +1437,16 @@ export const withCurrentZoneOffset = /*#__PURE__*/dual(2, (effect, offset) => Ef * const now = yield* DateTime.nowInCurrentZone * }).pipe(DateTime.withCurrentZoneNamed("Europe/London")) * ``` + * + * @category current time zone + * @since 3.6.0 */ export const withCurrentZoneNamed = /*#__PURE__*/dual(2, (effect, zone) => Effect.provideServiceEffect(effect, CurrentTimeZone, zoneMakeNamedEffect(zone))); /** - * Get the current time as a `DateTime.Zoned`, using the `CurrentTimeZone`. + * Gets the current time as a `DateTime.Zoned`, using the `CurrentTimeZone`. + * + * **Example** (Getting the current time in the current zone) * - * @since 3.6.0 - * @category current time zone - * @example * ```ts * import { DateTime, Effect } from "effect" * @@ -1191,20 +1455,31 @@ export const withCurrentZoneNamed = /*#__PURE__*/dual(2, (effect, zone) => Effec * const now = yield* DateTime.nowInCurrentZone * }).pipe(DateTime.withCurrentZoneNamed("Europe/London")) * ``` + * + * @category current time zone + * @since 3.6.0 */ export const nowInCurrentZone = /*#__PURE__*/Effect.flatMap(now, setZoneCurrent); // ============================================================================= // mapping // ============================================================================= /** - * Modify a `DateTime` by applying a function to a cloned `Date` instance. + * Modifies a `DateTime` with a mutable local `Date` copy. + * + * **When to use** + * + * Use to adjust calendar fields in the `DateTime`'s own time zone with an + * existing `Date` mutation API. + * + * **Details** * * The `Date` will first have the time zone applied if possible, and then be * converted back to a `DateTime` within the same time zone. * * Supports `disambiguation` when the new wall clock time is ambiguous. * - * @example + * **Example** (Mutating DateTime values with Dates) + * * ```ts * import { DateTime } from "effect" * @@ -1218,14 +1493,20 @@ export const nowInCurrentZone = /*#__PURE__*/Effect.flatMap(now, setZoneCurrent) * console.log(DateTime.formatIso(modified)) // "2024-01-01T15:30:00.000Z" * ``` * - * @since 3.6.0 * @category mapping + * @since 3.6.0 */ export const mutate = Internal.mutate; /** - * Modify a `DateTime` by applying a function to a cloned UTC `Date` instance. + * Modifies a `DateTime` with a mutable UTC `Date` copy. + * + * **When to use** + * + * Use to adjust the instant with an existing `Date` mutation API that works on + * UTC calendar fields. + * + * **Example** (Mutating DateTime values with UTC Dates) * - * @example * ```ts * import { DateTime } from "effect" * @@ -1240,17 +1521,16 @@ export const mutate = Internal.mutate; * console.log(DateTime.formatIso(modified)) // "2024-01-01T18:00:00.000Z" * ``` * - * @since 3.6.0 * @category mapping + * @since 3.6.0 */ export const mutateUtc = Internal.mutateUtc; /** - * Transform a `DateTime` by applying a function to the number of milliseconds + * Transforms a `DateTime` by applying a function to the number of milliseconds * since the Unix epoch. * - * @since 3.6.0 - * @category mapping - * @example + * **Example** (Mapping epoch milliseconds) + * * ```ts * import { DateTime } from "effect" * @@ -1259,15 +1539,23 @@ export const mutateUtc = Internal.mutateUtc; * DateTime.mapEpochMillis((millis) => millis + 10) * ) * ``` + * + * @category mapping + * @since 3.6.0 */ export const mapEpochMillis = Internal.mapEpochMillis; /** - * Using the time zone adjusted `Date`, apply a function to the `Date` and - * return the result. + * Applies a function to a JavaScript `Date` representing the `DateTime` and + * returns the function's result. + * + * **Details** + * + * The callback receives the time-zone-adjusted wall-clock date for + * `DateTime.Zoned` values. Use `DateTime.withDateUtc` when the callback should + * receive the UTC instant. + * + * **Example** (Using time zone adjusted Dates) * - * @since 3.6.0 - * @category mapping - * @example * ```ts * import { DateTime } from "effect" * @@ -1276,15 +1564,22 @@ export const mapEpochMillis = Internal.mapEpochMillis; * DateTime.withDate((date) => date.getTime()) * ) * ``` + * + * @category mapping + * @since 3.6.0 */ export const withDate = Internal.withDate; /** - * Using the time zone adjusted `Date`, apply a function to the `Date` and - * return the result. + * Applies a function to a JavaScript `Date` representing the `DateTime`'s UTC + * instant and returns the function's result. + * + * **Details** + * + * This ignores any associated time zone. Use `DateTime.withDate` when the + * callback should receive the time-zone-adjusted wall-clock date. + * + * **Example** (Using UTC Dates) * - * @since 3.6.0 - * @category mapping - * @example * ```ts * import { DateTime } from "effect" * @@ -1293,17 +1588,23 @@ export const withDate = Internal.withDate; * DateTime.withDateUtc((date) => date.getTime()) * ) * ``` + * + * @category mapping + * @since 3.6.0 */ export const withDateUtc = Internal.withDateUtc; /** * Pattern match on a `DateTime` to handle `Utc` and `Zoned` cases differently. * - * @example + * **Example** (Pattern matching DateTime variants) + * * ```ts * import { DateTime } from "effect" * - * const dt1 = DateTime.nowUnsafe() // Utc - * const dt2 = DateTime.makeZonedUnsafe(new Date(), { timeZone: "Europe/London" }) // Zoned + * const dt1 = DateTime.makeUnsafe("2024-01-01T12:00:00Z") // Utc + * const dt2 = DateTime.makeZonedUnsafe("2024-06-15T14:30:00Z", { + * timeZone: "Europe/London" + * }) // Zoned * * const result1 = DateTime.match(dt1, { * onUtc: (utc) => `UTC: ${DateTime.formatIso(utc)}`, @@ -1314,6 +1615,9 @@ export const withDateUtc = Internal.withDateUtc; * onUtc: (utc) => `UTC: ${DateTime.formatIso(utc)}`, * onZoned: (zoned) => `Zoned: ${DateTime.formatIsoZoned(zoned)}` * }) + * + * console.log(result1) // "UTC: 2024-01-01T12:00:00.000Z" + * console.log(result2) // "Zoned: 2024-06-15T15:30:00.000+01:00[Europe/London]" * ``` * * @category mapping @@ -1324,11 +1628,26 @@ export const match = Internal.match; // math // ============================================================================= /** - * Add the given `Duration` to a `DateTime`. + * Adds the given `Duration` to a `DateTime`. + * + * **When to use** + * + * Use to move a `DateTime` by an elapsed duration such as minutes, seconds, or + * milliseconds. + * + * **Details** + * + * The duration is converted to milliseconds and added to the epoch + * milliseconds. Zoned values keep their original time zone. + * + * **Gotchas** + * + * This is elapsed-time arithmetic, not calendar-aware local date arithmetic. + * Use `add` when adding days, weeks, months, or years should account for the + * date/time zone rules. + * + * **Example** (Adding durations) * - * @since 3.6.0 - * @category math - * @example * ```ts * import { DateTime } from "effect" * @@ -1337,14 +1656,19 @@ export const match = Internal.match; * DateTime.addDuration("5 minutes") * ) * ``` + * + * @see {@link add} for calendar-aware date/time part arithmetic + * @see {@link subtractDuration} for subtracting an elapsed duration + * + * @category math + * @since 3.6.0 */ export const addDuration = Internal.addDuration; /** - * Subtract the given `Duration` from a `DateTime`. + * Subtracts the given `Duration` from a `DateTime`. + * + * **Example** (Subtracting durations) * - * @since 3.6.0 - * @category math - * @example * ```ts * import { DateTime } from "effect" * @@ -1353,17 +1677,21 @@ export const addDuration = Internal.addDuration; * DateTime.subtractDuration("5 minutes") * ) * ``` + * + * @category math + * @since 3.6.0 */ export const subtractDuration = Internal.subtractDuration; /** - * Add the given `amount` of `unit`'s to a `DateTime`. + * Adds the given `amount` of `unit` to a `DateTime`. + * + * **Details** * * The time zone is taken into account when adding days, weeks, months, and * years. * - * @since 3.6.0 - * @category math - * @example + * **Example** (Adding date and time parts) + * * ```ts * import { DateTime } from "effect" * @@ -1372,14 +1700,16 @@ export const subtractDuration = Internal.subtractDuration; * DateTime.add({ minutes: 5 }) * ) * ``` + * + * @category math + * @since 3.6.0 */ export const add = Internal.add; /** - * Subtract the given `amount` of `unit`'s from a `DateTime`. + * Subtracts the given `amount` of `unit` from a `DateTime`. + * + * **Example** (Subtracting date and time parts) * - * @since 3.6.0 - * @category math - * @example * ```ts * import { DateTime } from "effect" * @@ -1388,17 +1718,21 @@ export const add = Internal.add; * DateTime.subtract({ minutes: 5 }) * ) * ``` + * + * @category math + * @since 3.6.0 */ export const subtract = Internal.subtract; /** * Converts a `DateTime` to the start of the given `part`. * + * **Details** + * * If the part is `week`, the `weekStartsOn` option can be used to specify the * day of the week that the week starts on. The default is 0 (Sunday). * - * @since 3.6.0 - * @category math - * @example + * **Example** (Rounding down DateTime values) + * * ```ts * import { DateTime } from "effect" * @@ -1408,17 +1742,21 @@ export const subtract = Internal.subtract; * DateTime.formatIso * ) * ``` + * + * @category math + * @since 3.6.0 */ export const startOf = Internal.startOf; /** * Converts a `DateTime` to the end of the given `part`. * + * **Details** + * * If the part is `week`, the `weekStartsOn` option can be used to specify the * day of the week that the week starts on. The default is 0 (Sunday). * - * @since 3.6.0 - * @category math - * @example + * **Example** (Rounding up DateTime values) + * * ```ts * import { DateTime } from "effect" * @@ -1428,17 +1766,21 @@ export const startOf = Internal.startOf; * DateTime.formatIso * ) * ``` + * + * @category math + * @since 3.6.0 */ export const endOf = Internal.endOf; /** * Converts a `DateTime` to the nearest given `part`. * + * **Details** + * * If the part is `week`, the `weekStartsOn` option can be used to specify the * day of the week that the week starts on. The default is 0 (Sunday). * - * @since 3.6.0 - * @category math - * @example + * **Example** (Rounding DateTime values to nearest units) + * * ```ts * import { DateTime } from "effect" * @@ -1448,20 +1790,28 @@ export const endOf = Internal.endOf; * DateTime.formatIso * ) * ``` + * + * @category math + * @since 3.6.0 */ export const nearest = Internal.nearest; // ============================================================================= // formatting // ============================================================================= /** - * Format a `DateTime` as a string using the `DateTimeFormat` API. + * Formats a `DateTime` with `Intl.DateTimeFormat`. * - * The `timeZone` option is set to the offset of the time zone. + * **Details** * - * Note: On Node versions < 22, fixed "Offset" zones will set the time zone to - * "UTC" and use the adjusted `Date`. + * Unless a `timeZone` option is supplied, UTC values are formatted in UTC and + * zoned values are formatted in their named zone or fixed-offset zone. + * + * Fixed-offset zones depend on runtime support for offset `timeZone` + * identifiers. When unsupported, formatting falls back to UTC with the + * `DateTime` adjusted to the offset. + * + * **Example** (Formatting DateTime values with Intl options) * - * @example * ```ts * import { DateTime } from "effect" * @@ -1478,16 +1828,16 @@ export const nearest = Internal.nearest; * console.log(formatted) // "Saturday, June 15, 2024 at 3:30 PM" * ``` * - * @since 3.6.0 * @category formatting + * @since 3.6.0 */ export const format = Internal.format; /** - * Format a `DateTime` as a string using the `DateTimeFormat` API. + * Formats a `DateTime` with `Intl.DateTimeFormat` using the system local time + * zone and locale. * - * It will use the system's local time zone & locale. + * **Example** (Formatting DateTime values locally) * - * @example * ```ts * import { DateTime } from "effect" * @@ -1505,16 +1855,19 @@ export const format = Internal.format; * console.log(local) // Output depends on system locale/timezone * ``` * - * @since 3.6.0 * @category formatting + * @since 3.6.0 */ export const formatLocal = Internal.formatLocal; /** - * Format a `DateTime` as a string using the `DateTimeFormat` API. + * Formats a `DateTime` with `Intl.DateTimeFormat` using the UTC time zone. + * + * **Details** * * This forces the time zone to be UTC. * - * @example + * **Example** (Formatting DateTime values in UTC) + * * ```ts * import { DateTime } from "effect" * @@ -1535,14 +1888,25 @@ export const formatLocal = Internal.formatLocal; * console.log(utcFormatted) // "06/15/2024, 02:30 PM UTC" * ``` * - * @since 3.6.0 * @category formatting + * @since 3.6.0 */ export const formatUtc = Internal.formatUtc; /** - * Format a `DateTime` as a string using the `DateTimeFormat` API. + * Formats a `DateTime` as a string using the `Intl.DateTimeFormat` API. + * + * **When to use** + * + * Use when you already have an `Intl.DateTimeFormat` and want it to control the + * locale, time zone, and formatting options. + * + * **Details** + * + * The formatter receives the `DateTime` epoch milliseconds. Any time zone + * conversion comes from the supplied formatter. + * + * **Example** (Formatting DateTime values with custom formatters) * - * @example * ```ts * import { DateTime } from "effect" * @@ -1559,19 +1923,25 @@ export const formatUtc = Internal.formatUtc; * }) * * const formatted = DateTime.formatIntl(dt, formatter) - * console.log(formatted) // "15. Juni 2024, 16:30" + * console.log(formatted.length > 0) // true * ``` * - * @since 3.6.0 + * @see {@link formatUtc} for formatting with options forced to UTC + * @see {@link formatIso} for stable ISO formatting + * * @category formatting + * @since 3.6.0 */ export const formatIntl = Internal.formatIntl; /** - * Format a `DateTime` as a UTC ISO string. + * Formats a `DateTime` as a UTC ISO string. + * + * **Details** * * Always returns the UTC representation in ISO 8601 format, ignoring any time zone. * - * @example + * **Example** (Formatting DateTime values as ISO strings) + * * ```ts * import { DateTime } from "effect" * @@ -1589,11 +1959,14 @@ export const formatIntl = Internal.formatIntl; */ export const formatIso = Internal.formatIso; /** - * Format a `DateTime` as a time zone adjusted ISO date string. + * Formats a `DateTime` as a time zone adjusted ISO date string. + * + * **Details** * * Returns only the date part (YYYY-MM-DD) after applying time zone adjustments. * - * @example + * **Example** (Formatting DateTime values as ISO dates) + * * ```ts * import { DateTime } from "effect" * @@ -1611,11 +1984,14 @@ export const formatIso = Internal.formatIso; */ export const formatIsoDate = Internal.formatIsoDate; /** - * Format a `DateTime` as a UTC ISO date string. + * Formats a `DateTime` as a UTC ISO date string. + * + * **Details** * * Returns only the date part (YYYY-MM-DD) in UTC, ignoring any time zone. * - * @example + * **Example** (Formatting DateTime values as UTC ISO dates) + * * ```ts * import { DateTime } from "effect" * @@ -1633,12 +2009,15 @@ export const formatIsoDate = Internal.formatIsoDate; */ export const formatIsoDateUtc = Internal.formatIsoDateUtc; /** - * Format a `DateTime.Zoned` as an ISO string with an offset. + * Formats a `DateTime.Zoned` as an ISO string with an offset. + * + * **Details** * * For `DateTime.Utc`, returns the same as `formatIso`. For `DateTime.Zoned`, * includes the time zone offset in the format. * - * @example + * **Example** (Formatting DateTime values with offsets) + * * ```ts * import { DateTime } from "effect" * @@ -1656,11 +2035,14 @@ export const formatIsoDateUtc = Internal.formatIsoDateUtc; */ export const formatIsoOffset = Internal.formatIsoOffset; /** - * Format a `DateTime.Zoned` as a string. + * Formats a `DateTime.Zoned` as a string. + * + * **Details** * * It uses the format: `YYYY-MM-DDTHH:mm:ss.sss+HH:MM[Time/Zone]`. * - * @example + * **Example** (Formatting zoned DateTime values) + * * ```ts * import { DateTime } from "effect" * @@ -1679,16 +2061,19 @@ export const formatIsoOffset = Internal.formatIsoOffset; * console.log(offsetFormatted) // "2024-06-15T17:30:45.123+03:00" * ``` * - * @since 3.6.0 * @category formatting + * @since 3.6.0 */ export const formatIsoZoned = Internal.formatIsoZoned; /** * Create a Layer from the given time zone. * + * **Details** + * * This layer provides the `CurrentTimeZone` service with the specified time zone. * - * @example + * **Example** (Providing current time zone layers) + * * ```ts * import { DateTime, Effect } from "effect" * @@ -1711,9 +2096,12 @@ export const layerCurrentZone = /*#__PURE__*/Layer.succeed(CurrentTimeZone); /** * Create a Layer from the given time zone offset. * + * **Details** + * * This layer provides the `CurrentTimeZone` service with a fixed offset time zone. * - * @example + * **Example** (Providing fixed-offset time zone layers) + * * ```ts * import { DateTime, Effect } from "effect" * @@ -1735,10 +2123,13 @@ export const layerCurrentZoneOffset = offset => Layer.succeed(CurrentTimeZone)(I /** * Create a Layer from the given IANA time zone identifier. * + * **Details** + * * This layer provides the `CurrentTimeZone` service with a named time zone. * If the time zone identifier is invalid, the layer will fail. * - * @example + * **Example** (Providing named time zone layers) + * * ```ts * import { DateTime, Effect } from "effect" * @@ -1759,10 +2150,13 @@ export const layerCurrentZoneNamed = /*#__PURE__*/flow(Internal.zoneMakeNamedEff /** * Create a Layer from the system's local time zone. * + * **Details** + * * This layer provides the `CurrentTimeZone` service using the system's * configured local time zone. * - * @example + * **Example** (Providing local time zone layers) + * * ```ts * import { DateTime, Effect } from "effect" * diff --git a/.opencode/node_modules/effect/dist/DateTime.js.map b/.opencode/node_modules/effect/dist/DateTime.js.map index 046426c81b7a0919e76d61a0887ea1aa7467c242..22ca264f84e6c50c6c7c1c30940bf9abb8e5a859 100644 --- a/.opencode/node_modules/effect/dist/DateTime.js.map +++ b/.opencode/node_modules/effect/dist/DateTime.js.map @@ -1 +1 @@ -{"version":3,"file":"DateTime.js","names":["Context","Effect","dual","flow","Internal","provideService","Layer","TypeId","TimeZoneTypeId","isDateTime","isTimeZone","isTimeZoneOffset","isTimeZoneNamed","isUtc","isZoned","Equivalence","Order","clamp","fromDateUnsafe","makeUnsafe","makeZonedUnsafe","makeZoned","make","makeZonedFromString","now","nowAsDate","nowUnsafe","toUtc","setZone","setZoneOffset","zoneMakeNamedUnsafe","zoneMakeOffset","zoneMakeNamed","zoneMakeNamedEffect","zoneMakeLocal","zoneFromString","zoneToString","setZoneNamed","setZoneNamedUnsafe","distance","min","max","isGreaterThan","isGreaterThanOrEqualTo","isLessThan","isLessThanOrEqualTo","between","isFuture","isFutureUnsafe","isPast","isPastUnsafe","toDateUtc","toDate","zonedOffset","zonedOffsetIso","toEpochMillis","removeTime","toParts","toPartsUtc","getPartUtc","getPart","setParts","setPartsUtc","CurrentTimeZone","Service","setZoneCurrent","self","map","asEffect","zone","withCurrentZone","withCurrentZoneLocal","effect","provideServiceEffect","sync","withCurrentZoneOffset","offset","withCurrentZoneNamed","nowInCurrentZone","flatMap","mutate","mutateUtc","mapEpochMillis","withDate","withDateUtc","match","addDuration","subtractDuration","add","subtract","startOf","endOf","nearest","format","formatLocal","formatUtc","formatIntl","formatIso","formatIsoDate","formatIsoDateUtc","formatIsoOffset","formatIsoZoned","layerCurrentZone","succeed","layerCurrentZoneOffset","layerCurrentZoneNamed","layerCurrentZoneLocal"],"sources":["../src/DateTime.ts"],"sourcesContent":[null],"mappings":"AAIA,OAAO,KAAKA,OAAO,MAAM,cAAc;AAEvC,OAAO,KAAKC,MAAM,MAAM,aAAa;AAErC,SAASC,IAAI,EAAEC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eAAe,CAAC,CAAC7B,aAAa,CAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"DateTime.js","names":["Context","Effect","dual","flow","Internal","provideService","Layer","TypeId","TimeZoneTypeId","isDateTime","isTimeZone","isTimeZoneOffset","isTimeZoneNamed","isUtc","isZoned","Equivalence","Order","clamp","fromDateUnsafe","makeUnsafe","makeZonedUnsafe","makeZoned","make","makeZonedFromString","now","nowAsDate","nowUnsafe","toUtc","setZone","setZoneOffset","zoneMakeNamedUnsafe","zoneMakeOffset","zoneMakeNamed","zoneMakeNamedEffect","zoneMakeLocal","zoneFromString","zoneToString","setZoneNamed","setZoneNamedUnsafe","distance","min","max","isGreaterThan","isGreaterThanOrEqualTo","isLessThan","isLessThanOrEqualTo","between","isFuture","isFutureUnsafe","isPast","isPastUnsafe","toDateUtc","toDate","zonedOffset","zonedOffsetIso","toEpochMillis","removeTime","toParts","toPartsUtc","getPartUtc","getPart","setParts","setPartsUtc","CurrentTimeZone","Service","setZoneCurrent","self","map","zone","withCurrentZone","withCurrentZoneLocal","effect","provideServiceEffect","sync","withCurrentZoneOffset","offset","withCurrentZoneNamed","nowInCurrentZone","flatMap","mutate","mutateUtc","mapEpochMillis","withDate","withDateUtc","match","addDuration","subtractDuration","add","subtract","startOf","endOf","nearest","format","formatLocal","formatUtc","formatIntl","formatIso","formatIsoDate","formatIsoDateUtc","formatIsoOffset","formatIsoZoned","layerCurrentZone","succeed","layerCurrentZoneOffset","layerCurrentZoneNamed","layerCurrentZoneLocal"],"sources":["../src/DateTime.ts"],"sourcesContent":[null],"mappings":"AAaA,OAAO,KAAKA,OAAO,MAAM,cAAc;AAEvC,OAAO,KAAKC,MAAM,MAAM,aAAa;AAErC,SAASC,IAAI,EAAEC,IAAI,QAAsB,eAAe;AAExD,OAAO,KAAKC,QAAQ,MAAM,wBAAwB;AAClD,SAASC,cAAc,QAAQ,sBAAsB;AACrD,OAAO,KAAKC,KAAK,MAAM,YAAY;AAKnC,MAAMC,MAAM,GAAG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C2B,cAAc,CAAC4C,MAAM,CAAC,CAAC;AAEjE;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BA,OAAO,MAAM6B,qBAAqB,gBAG9BrG,IAAI,CAACC,QAAQ,CAAC6B,mBAAmB,eAAE3B,KAAK,CAACiE,MAAM,CAACR,eAAe,CAAC,CAAC;AAErE;;;;;;;;;;;;;;;;;;;;;;;;;AAyBA,OAAO,MAAM0C,qBAAqB,gBAAiCnG,KAAK,CAACmE,IAAI,CAACV,eAAe,CAAC,CAAC7B,aAAa,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Deferred.d.ts b/.opencode/node_modules/effect/dist/Deferred.d.ts index 81fa05ed2efb0fe9339c0a9662771037d1bf96d8..64e02a3b45fd0766b17f57b591bdb309fccdce95 100644 --- a/.opencode/node_modules/effect/dist/Deferred.d.ts +++ b/.opencode/node_modules/effect/dist/Deferred.d.ts @@ -1,68 +1,9 @@ /** - * This module provides utilities for working with `Deferred`, a powerful concurrency - * primitive that represents an asynchronous variable that can be set exactly once. - * Multiple fibers can await the same `Deferred` and will all be notified when it - * completes. - * - * A `Deferred` can be: - * - **Completed successfully** with a value of type `A` - * - **Failed** with an error of type `E` - * - **Interrupted** if the fiber setting it is interrupted - * - * Key characteristics: - * - **Single assignment**: Can only be completed once - * - **Multiple waiters**: Many fibers can await the same `Deferred` - * - **Fiber-safe**: Thread-safe operations across concurrent fibers - * - **Composable**: Works seamlessly with other Effect operations - * - * @example - * ```ts - * import { Deferred, Effect, Fiber } from "effect" - * - * // Basic usage: coordinate between fibers - * const program = Effect.gen(function*() { - * const deferred = yield* Deferred.make() - * - * // Fiber 1: waits for the value - * const waiter = yield* Effect.forkChild( - * Effect.gen(function*() { - * const value = yield* Deferred.await(deferred) - * console.log("Received:", value) - * return value - * }) - * ) - * - * // Fiber 2: sets the value after a delay - * const setter = yield* Effect.forkChild( - * Effect.gen(function*() { - * yield* Effect.sleep("1 second") - * yield* Deferred.succeed(deferred, "Hello from setter!") - * }) - * ) - * - * // Wait for both fibers - * yield* Fiber.join(waiter) - * yield* Fiber.join(setter) - * }) - * - * // Producer-consumer pattern - * const producerConsumer = Effect.gen(function*() { - * const buffer = yield* Deferred.make, never>() - * - * const producer = Effect.gen(function*() { - * const data = [1, 2, 3, 4, 5] - * yield* Deferred.succeed(buffer, data) - * }) - * - * const consumer = Effect.gen(function*() { - * const data = yield* Deferred.await(buffer) - * return data.reduce((sum, n) => sum + n, 0) - * }) - * - * const [, result] = yield* Effect.all([producer, consumer]) - * return result // 15 - * }) - * ``` + * One-time coordination cells for Effect programs. A `Deferred` starts + * empty, can be completed exactly once with a success, failure, defect, or + * interruption, and lets any number of fibers wait for that result. Awaiting a + * `Deferred` suspends the fiber instead of blocking an operating-system thread, + * and every waiter observes the same completion. * * @since 2.0.0 */ @@ -79,11 +20,13 @@ declare const TypeId = "~effect/Deferred"; * once, with the ability for an arbitrary number of fibers to suspend (by * calling `Deferred.await`) and automatically resume when the variable is set. * - * `Deferred` can be used for building primitive actions whose completions - * require the coordinated action of multiple fibers, and for building - * higher-level concurrent or asynchronous structures. + * **When to use** + * + * Use to coordinate multiple fibers around a value or failure that will be + * supplied exactly once. + * + * **Example** (Creating a Deferred for inter-fiber communication) * - * @example * ```ts * import { Deferred, Effect, Fiber } from "effect" * @@ -116,26 +59,50 @@ declare const TypeId = "~effect/Deferred"; * }) * ``` * - * @since 2.0.0 * @category models + * @since 2.0.0 */ export interface Deferred extends Deferred.Variance, Pipeable { effect?: Effect; resumes?: Array<(effect: Effect) => void> | undefined; } /** - * @since 2.0.0 - * @category Guards + * Checks whether a value is a `Deferred`. + * + * **When to use** + * + * Use to validate unknown values at runtime boundaries before treating them as + * `Deferred` values. + * + * @category guards + * @since 4.0.0 */ export declare const isDeferred: (u: unknown) => u is Deferred; /** + * Companion namespace containing type-level metadata for `Deferred`. + * + * **When to use** + * + * Use to reference type-level metadata associated with `Deferred`. + * * @since 2.0.0 - * @category models */ export declare namespace Deferred { /** - * @since 2.0.0 + * Type-level variance marker for the value and error channels of `Deferred`. + * + * **When to use** + * + * Use to carry the value and error type parameters for `Deferred` in Effect's + * type machinery. + * + * **Details** + * + * This interface is part of the public type structure and is not intended to + * be constructed directly. + * * @category models + * @since 2.0.0 */ interface Variance { readonly [TypeId]: { @@ -145,9 +112,15 @@ export declare namespace Deferred { } } /** - * Unsafely creates a new `Deferred` + * Creates an empty `Deferred` synchronously outside the `Effect` runtime. + * + * **When to use** + * + * Use to allocate a `Deferred` synchronously when direct allocation outside + * `Effect` is required. + * + * **Example** (Creating a Deferred unsafely) * - * @example * ```ts * import { Deferred } from "effect" * @@ -155,14 +128,19 @@ export declare namespace Deferred { * console.log(deferred) * ``` * - * @since 2.0.0 * @category unsafe + * @since 4.0.0 */ export declare const makeUnsafe: () => Deferred; /** * Creates a new `Deferred`. * - * @example + * **When to use** + * + * Use to allocate an empty `Deferred` inside an `Effect` workflow. + * + * **Example** (Creating a Deferred) + * * ```ts * import { Deferred, Effect } from "effect" * @@ -174,8 +152,8 @@ export declare const makeUnsafe: () => Deferred; * }) * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export declare const make: () => Effect>; declare const _await: (self: Deferred) => Effect; @@ -184,7 +162,17 @@ export { * Retrieves the value of the `Deferred`, suspending the fiber running the * workflow until the result is available. * - * @example + * **When to use** + * + * Use to wait for a `Deferred` to be completed and resume with its success, + * failure, defect, or interruption. + * + * **Details** + * + * Awaiters observe the completion effect stored in the `Deferred`. + * + * **Example** (Awaiting a Deferred value) + * * ```ts * import { Deferred, Effect } from "effect" * @@ -197,18 +185,29 @@ export { * }) * ``` * - * @since 2.0.0 + * @see {@link complete} for completing from an effect and memoizing its result + * @see {@link completeWith} for completing with an effect directly + * * @category getters + * @since 2.0.0 */ _await as await }; /** - * Completes the deferred with the result of the specified effect. If the - * deferred has already been completed, the method will produce false. + * Runs the supplied `Effect` and attempts to complete the `Deferred` with its + * memoized result. * - * Note that `Deferred.completeWith` will be much faster, so consider using - * that if you do not need to memoize the result of the specified effect. + * **When to use** + * + * Use when completing a `Deferred` should run an effect once and share its + * result with all awaiters. + * + * **Details** + * + * The returned effect succeeds with `true` when this call completed the + * `Deferred`, or `false` if it was already completed. + * + * **Example** (Completing a Deferred from an effect) * - * @example * ```ts * import { Deferred, Effect } from "effect" * @@ -222,18 +221,28 @@ _await as await }; * }) * ``` * + * @see {@link completeWith} for storing an effect directly without memoizing its result + * + * @category completion * @since 2.0.0 - * @category utils */ export declare const complete: { /** - * Completes the deferred with the result of the specified effect. If the - * deferred has already been completed, the method will produce false. + * Runs the supplied `Effect` and attempts to complete the `Deferred` with its + * memoized result. + * + * **When to use** * - * Note that `Deferred.completeWith` will be much faster, so consider using - * that if you do not need to memoize the result of the specified effect. + * Use when completing a `Deferred` should run an effect once and share its + * result with all awaiters. + * + * **Details** + * + * The returned effect succeeds with `true` when this call completed the + * `Deferred`, or `false` if it was already completed. + * + * **Example** (Completing a Deferred from an effect) * - * @example * ```ts * import { Deferred, Effect } from "effect" * @@ -247,18 +256,28 @@ export declare const complete: { * }) * ``` * + * @see {@link completeWith} for storing an effect directly without memoizing its result + * + * @category completion * @since 2.0.0 - * @category utils */ (effect: Effect): (self: Deferred) => Effect; /** - * Completes the deferred with the result of the specified effect. If the - * deferred has already been completed, the method will produce false. + * Runs the supplied `Effect` and attempts to complete the `Deferred` with its + * memoized result. * - * Note that `Deferred.completeWith` will be much faster, so consider using - * that if you do not need to memoize the result of the specified effect. + * **When to use** + * + * Use when completing a `Deferred` should run an effect once and share its + * result with all awaiters. + * + * **Details** + * + * The returned effect succeeds with `true` when this call completed the + * `Deferred`, or `false` if it was already completed. + * + * **Example** (Completing a Deferred from an effect) * - * @example * ```ts * import { Deferred, Effect } from "effect" * @@ -272,16 +291,33 @@ export declare const complete: { * }) * ``` * + * @see {@link completeWith} for storing an effect directly without memoizing its result + * + * @category completion * @since 2.0.0 - * @category utils */ (self: Deferred, effect: Effect): Effect; }; /** - * Completes the deferred with the result of the specified effect. If the - * deferred has already been completed, the method will produce false. + * Attempts to complete the `Deferred` with the specified effect directly. + * + * **When to use** + * + * Use to store an already environment-free effect as the completion without + * running it during completion. + * + * **Details** + * + * The returned effect succeeds with `true` when this call completed the + * `Deferred`, or `false` if it was already completed. + * + * **Gotchas** + * + * The supplied effect is not memoized by `completeWith`; each awaiter may run + * the stored effect independently. + * + * **Example** (Completing a Deferred with an effect) * - * @example * ```ts * import { Deferred, Effect } from "effect" * @@ -295,15 +331,33 @@ export declare const complete: { * }) * ``` * + * @see {@link complete} for running an effect once and sharing its result + * @see {@link done} for completing from an already computed `Exit` + * + * @category completion * @since 2.0.0 - * @category utils */ export declare const completeWith: { /** - * Completes the deferred with the result of the specified effect. If the - * deferred has already been completed, the method will produce false. + * Attempts to complete the `Deferred` with the specified effect directly. + * + * **When to use** + * + * Use to store an already environment-free effect as the completion without + * running it during completion. + * + * **Details** + * + * The returned effect succeeds with `true` when this call completed the + * `Deferred`, or `false` if it was already completed. + * + * **Gotchas** + * + * The supplied effect is not memoized by `completeWith`; each awaiter may run + * the stored effect independently. + * + * **Example** (Completing a Deferred with an effect) * - * @example * ```ts * import { Deferred, Effect } from "effect" * @@ -317,15 +371,33 @@ export declare const completeWith: { * }) * ``` * + * @see {@link complete} for running an effect once and sharing its result + * @see {@link done} for completing from an already computed `Exit` + * + * @category completion * @since 2.0.0 - * @category utils */ (effect: Effect): (self: Deferred) => Effect; /** - * Completes the deferred with the result of the specified effect. If the - * deferred has already been completed, the method will produce false. + * Attempts to complete the `Deferred` with the specified effect directly. + * + * **When to use** + * + * Use to store an already environment-free effect as the completion without + * running it during completion. + * + * **Details** + * + * The returned effect succeeds with `true` when this call completed the + * `Deferred`, or `false` if it was already completed. + * + * **Gotchas** + * + * The supplied effect is not memoized by `completeWith`; each awaiter may run + * the stored effect independently. + * + * **Example** (Completing a Deferred with an effect) * - * @example * ```ts * import { Deferred, Effect } from "effect" * @@ -339,16 +411,29 @@ export declare const completeWith: { * }) * ``` * + * @see {@link complete} for running an effect once and sharing its result + * @see {@link done} for completing from an already computed `Exit` + * + * @category completion * @since 2.0.0 - * @category utils */ (self: Deferred, effect: Effect): Effect; }; /** - * Exits the `Deferred` with the specified `Exit` value, which will be + * Completes the `Deferred` with the specified `Exit` value, which will be * propagated to all fibers waiting on the value of the `Deferred`. * - * @example + * **When to use** + * + * Use to complete a `Deferred` from an already computed `Exit`. + * + * **Details** + * + * The returned effect succeeds with `true` when this call completed the + * `Deferred`, or `false` if it was already completed. + * + * **Example** (Completing a Deferred with an Exit) + * * ```ts * import { Deferred, Effect, Exit } from "effect" * @@ -361,15 +446,30 @@ export declare const completeWith: { * }) * ``` * + * @see {@link complete} for completing from an effect and memoizing its result + * @see {@link completeWith} for storing an effect directly + * @see {@link succeed} for completing with a success value + * @see {@link failCause} for completing with a failure cause + * + * @category completion * @since 2.0.0 - * @category utils */ export declare const done: { /** - * Exits the `Deferred` with the specified `Exit` value, which will be + * Completes the `Deferred` with the specified `Exit` value, which will be * propagated to all fibers waiting on the value of the `Deferred`. * - * @example + * **When to use** + * + * Use to complete a `Deferred` from an already computed `Exit`. + * + * **Details** + * + * The returned effect succeeds with `true` when this call completed the + * `Deferred`, or `false` if it was already completed. + * + * **Example** (Completing a Deferred with an Exit) + * * ```ts * import { Deferred, Effect, Exit } from "effect" * @@ -382,15 +482,30 @@ export declare const done: { * }) * ``` * + * @see {@link complete} for completing from an effect and memoizing its result + * @see {@link completeWith} for storing an effect directly + * @see {@link succeed} for completing with a success value + * @see {@link failCause} for completing with a failure cause + * + * @category completion * @since 2.0.0 - * @category utils */ (exit: Exit.Exit): (self: Deferred) => Effect; /** - * Exits the `Deferred` with the specified `Exit` value, which will be + * Completes the `Deferred` with the specified `Exit` value, which will be * propagated to all fibers waiting on the value of the `Deferred`. * - * @example + * **When to use** + * + * Use to complete a `Deferred` from an already computed `Exit`. + * + * **Details** + * + * The returned effect succeeds with `true` when this call completed the + * `Deferred`, or `false` if it was already completed. + * + * **Example** (Completing a Deferred with an Exit) + * * ```ts * import { Deferred, Effect, Exit } from "effect" * @@ -403,16 +518,31 @@ export declare const done: { * }) * ``` * + * @see {@link complete} for completing from an effect and memoizing its result + * @see {@link completeWith} for storing an effect directly + * @see {@link succeed} for completing with a success value + * @see {@link failCause} for completing with a failure cause + * + * @category completion * @since 2.0.0 - * @category utils */ (self: Deferred, exit: Exit.Exit): Effect; }; /** - * Fails the `Deferred` with the specified error, which will be propagated to - * all fibers waiting on the value of the `Deferred`. + * Attempts to complete the `Deferred` with the specified error. + * + * **When to use** + * + * Use to complete a `Deferred` with a typed failure value. + * + * **Details** + * + * Fibers waiting on the `Deferred` fail with that error only if this call + * completes it. The returned effect succeeds with `true` when this call + * completed the `Deferred`, or `false` if it was already completed. + * + * **Example** (Failing a Deferred with an error) * - * @example * ```ts * import { Deferred, Effect } from "effect" * @@ -423,15 +553,25 @@ export declare const done: { * }) * ``` * + * @category completion * @since 2.0.0 - * @category utils */ export declare const fail: { /** - * Fails the `Deferred` with the specified error, which will be propagated to - * all fibers waiting on the value of the `Deferred`. + * Attempts to complete the `Deferred` with the specified error. + * + * **When to use** + * + * Use to complete a `Deferred` with a typed failure value. + * + * **Details** + * + * Fibers waiting on the `Deferred` fail with that error only if this call + * completes it. The returned effect succeeds with `true` when this call + * completed the `Deferred`, or `false` if it was already completed. + * + * **Example** (Failing a Deferred with an error) * - * @example * ```ts * import { Deferred, Effect } from "effect" * @@ -442,15 +582,25 @@ export declare const fail: { * }) * ``` * + * @category completion * @since 2.0.0 - * @category utils */ (error: E): (self: Deferred) => Effect; /** - * Fails the `Deferred` with the specified error, which will be propagated to - * all fibers waiting on the value of the `Deferred`. + * Attempts to complete the `Deferred` with the specified error. + * + * **When to use** + * + * Use to complete a `Deferred` with a typed failure value. + * + * **Details** + * + * Fibers waiting on the `Deferred` fail with that error only if this call + * completes it. The returned effect succeeds with `true` when this call + * completed the `Deferred`, or `false` if it was already completed. + * + * **Example** (Failing a Deferred with an error) * - * @example * ```ts * import { Deferred, Effect } from "effect" * @@ -461,16 +611,28 @@ export declare const fail: { * }) * ``` * + * @category completion * @since 2.0.0 - * @category utils */ (self: Deferred, error: E): Effect; }; /** - * Fails the `Deferred` with the specified error, which will be propagated to - * all fibers waiting on the value of the `Deferred`. + * Computes an error when the returned effect is run, then attempts to complete + * the `Deferred` with that error. + * + * **When to use** + * + * Use to lazily compute a typed failure value when the `Deferred` completion + * effect runs. + * + * **Details** + * + * Fibers waiting on the `Deferred` fail with the computed error only if this + * call completes it. The returned effect succeeds with `true` when this call + * completed the `Deferred`, or `false` if it was already completed. + * + * **Example** (Failing a Deferred with a lazy error) * - * @example * ```ts * import { Deferred, Effect } from "effect" * @@ -481,15 +643,27 @@ export declare const fail: { * }) * ``` * + * @category completion * @since 2.0.0 - * @category utils */ export declare const failSync: { /** - * Fails the `Deferred` with the specified error, which will be propagated to - * all fibers waiting on the value of the `Deferred`. + * Computes an error when the returned effect is run, then attempts to complete + * the `Deferred` with that error. + * + * **When to use** + * + * Use to lazily compute a typed failure value when the `Deferred` completion + * effect runs. + * + * **Details** + * + * Fibers waiting on the `Deferred` fail with the computed error only if this + * call completes it. The returned effect succeeds with `true` when this call + * completed the `Deferred`, or `false` if it was already completed. + * + * **Example** (Failing a Deferred with a lazy error) * - * @example * ```ts * import { Deferred, Effect } from "effect" * @@ -500,15 +674,27 @@ export declare const failSync: { * }) * ``` * + * @category completion * @since 2.0.0 - * @category utils */ (evaluate: LazyArg): (self: Deferred) => Effect; /** - * Fails the `Deferred` with the specified error, which will be propagated to - * all fibers waiting on the value of the `Deferred`. + * Computes an error when the returned effect is run, then attempts to complete + * the `Deferred` with that error. + * + * **When to use** + * + * Use to lazily compute a typed failure value when the `Deferred` completion + * effect runs. + * + * **Details** + * + * Fibers waiting on the `Deferred` fail with the computed error only if this + * call completes it. The returned effect succeeds with `true` when this call + * completed the `Deferred`, or `false` if it was already completed. + * + * **Example** (Failing a Deferred with a lazy error) * - * @example * ```ts * import { Deferred, Effect } from "effect" * @@ -519,16 +705,26 @@ export declare const failSync: { * }) * ``` * + * @category completion * @since 2.0.0 - * @category utils */ (self: Deferred, evaluate: LazyArg): Effect; }; /** - * Fails the `Deferred` with the specified `Cause`, which will be propagated to - * all fibers waiting on the value of the `Deferred`. + * Attempts to complete the `Deferred` with the specified `Cause`. + * + * **When to use** + * + * Use to complete a `Deferred` with a full failure cause. + * + * **Details** + * + * Fibers waiting on the `Deferred` observe that cause only if this call + * completes it. The returned effect succeeds with `true` when this call + * completed the `Deferred`, or `false` if it was already completed. + * + * **Example** (Failing a Deferred with a Cause) * - * @example * ```ts * import { Cause, Deferred, Effect } from "effect" * @@ -542,15 +738,25 @@ export declare const failSync: { * }) * ``` * + * @category completion * @since 2.0.0 - * @category utils */ export declare const failCause: { /** - * Fails the `Deferred` with the specified `Cause`, which will be propagated to - * all fibers waiting on the value of the `Deferred`. + * Attempts to complete the `Deferred` with the specified `Cause`. + * + * **When to use** + * + * Use to complete a `Deferred` with a full failure cause. + * + * **Details** + * + * Fibers waiting on the `Deferred` observe that cause only if this call + * completes it. The returned effect succeeds with `true` when this call + * completed the `Deferred`, or `false` if it was already completed. + * + * **Example** (Failing a Deferred with a Cause) * - * @example * ```ts * import { Cause, Deferred, Effect } from "effect" * @@ -564,15 +770,25 @@ export declare const failCause: { * }) * ``` * + * @category completion * @since 2.0.0 - * @category utils */ (cause: Cause.Cause): (self: Deferred) => Effect; /** - * Fails the `Deferred` with the specified `Cause`, which will be propagated to - * all fibers waiting on the value of the `Deferred`. + * Attempts to complete the `Deferred` with the specified `Cause`. + * + * **When to use** + * + * Use to complete a `Deferred` with a full failure cause. + * + * **Details** + * + * Fibers waiting on the `Deferred` observe that cause only if this call + * completes it. The returned effect succeeds with `true` when this call + * completed the `Deferred`, or `false` if it was already completed. + * + * **Example** (Failing a Deferred with a Cause) * - * @example * ```ts * import { Cause, Deferred, Effect } from "effect" * @@ -586,16 +802,28 @@ export declare const failCause: { * }) * ``` * + * @category completion * @since 2.0.0 - * @category utils */ (self: Deferred, cause: Cause.Cause): Effect; }; /** - * Fails the `Deferred` with the specified `Cause`, which will be propagated to - * all fibers waiting on the value of the `Deferred`. + * Computes a `Cause` when the returned effect is run, then attempts to + * complete the `Deferred` with that cause. + * + * **When to use** + * + * Use to lazily compute a full failure cause when the `Deferred` completion + * effect runs. + * + * **Details** + * + * Fibers waiting on the `Deferred` observe the computed cause only if this + * call completes it. The returned effect succeeds with `true` when this call + * completed the `Deferred`, or `false` if it was already completed. + * + * **Example** (Failing a Deferred with a lazy Cause) * - * @example * ```ts * import { Cause, Deferred, Effect } from "effect" * @@ -609,15 +837,27 @@ export declare const failCause: { * }) * ``` * + * @category completion * @since 2.0.0 - * @category utils */ export declare const failCauseSync: { /** - * Fails the `Deferred` with the specified `Cause`, which will be propagated to - * all fibers waiting on the value of the `Deferred`. + * Computes a `Cause` when the returned effect is run, then attempts to + * complete the `Deferred` with that cause. + * + * **When to use** + * + * Use to lazily compute a full failure cause when the `Deferred` completion + * effect runs. + * + * **Details** + * + * Fibers waiting on the `Deferred` observe the computed cause only if this + * call completes it. The returned effect succeeds with `true` when this call + * completed the `Deferred`, or `false` if it was already completed. + * + * **Example** (Failing a Deferred with a lazy Cause) * - * @example * ```ts * import { Cause, Deferred, Effect } from "effect" * @@ -631,15 +871,27 @@ export declare const failCauseSync: { * }) * ``` * + * @category completion * @since 2.0.0 - * @category utils */ (evaluate: LazyArg>): (self: Deferred) => Effect; /** - * Fails the `Deferred` with the specified `Cause`, which will be propagated to - * all fibers waiting on the value of the `Deferred`. + * Computes a `Cause` when the returned effect is run, then attempts to + * complete the `Deferred` with that cause. + * + * **When to use** + * + * Use to lazily compute a full failure cause when the `Deferred` completion + * effect runs. + * + * **Details** + * + * Fibers waiting on the `Deferred` observe the computed cause only if this + * call completes it. The returned effect succeeds with `true` when this call + * completed the `Deferred`, or `false` if it was already completed. + * + * **Example** (Failing a Deferred with a lazy Cause) * - * @example * ```ts * import { Cause, Deferred, Effect } from "effect" * @@ -653,16 +905,26 @@ export declare const failCauseSync: { * }) * ``` * + * @category completion * @since 2.0.0 - * @category utils */ (self: Deferred, evaluate: LazyArg>): Effect; }; /** - * Kills the `Deferred` with the specified defect, which will be propagated to - * all fibers waiting on the value of the `Deferred`. + * Attempts to complete the `Deferred` with a defect. + * + * **When to use** + * + * Use to complete a `Deferred` with an unexpected defect. + * + * **Details** + * + * Fibers waiting on the `Deferred` die with that defect only if this call + * completes it. The returned effect succeeds with `true` when this call + * completed the `Deferred`, or `false` if it was already completed. + * + * **Example** (Killing a Deferred with a defect) * - * @example * ```ts * import { Deferred, Effect } from "effect" * @@ -676,15 +938,25 @@ export declare const failCauseSync: { * }) * ``` * + * @category completion * @since 2.0.0 - * @category utils */ export declare const die: { /** - * Kills the `Deferred` with the specified defect, which will be propagated to - * all fibers waiting on the value of the `Deferred`. + * Attempts to complete the `Deferred` with a defect. + * + * **When to use** + * + * Use to complete a `Deferred` with an unexpected defect. + * + * **Details** + * + * Fibers waiting on the `Deferred` die with that defect only if this call + * completes it. The returned effect succeeds with `true` when this call + * completed the `Deferred`, or `false` if it was already completed. + * + * **Example** (Killing a Deferred with a defect) * - * @example * ```ts * import { Deferred, Effect } from "effect" * @@ -698,15 +970,25 @@ export declare const die: { * }) * ``` * + * @category completion * @since 2.0.0 - * @category utils */ (defect: unknown): (self: Deferred) => Effect; /** - * Kills the `Deferred` with the specified defect, which will be propagated to - * all fibers waiting on the value of the `Deferred`. + * Attempts to complete the `Deferred` with a defect. + * + * **When to use** + * + * Use to complete a `Deferred` with an unexpected defect. + * + * **Details** + * + * Fibers waiting on the `Deferred` die with that defect only if this call + * completes it. The returned effect succeeds with `true` when this call + * completed the `Deferred`, or `false` if it was already completed. + * + * **Example** (Killing a Deferred with a defect) * - * @example * ```ts * import { Deferred, Effect } from "effect" * @@ -720,16 +1002,27 @@ export declare const die: { * }) * ``` * + * @category completion * @since 2.0.0 - * @category utils */ (self: Deferred, defect: unknown): Effect; }; /** - * Kills the `Deferred` with the specified defect, which will be propagated to - * all fibers waiting on the value of the `Deferred`. + * Computes a defect when the returned effect is run, then attempts to complete + * the `Deferred` with that defect. + * + * **When to use** + * + * Use to lazily compute an unexpected defect when the completion effect runs. + * + * **Details** + * + * Fibers waiting on the `Deferred` die with the computed defect only if this + * call completes it. The returned effect succeeds with `true` when this call + * completed the `Deferred`, or `false` if it was already completed. + * + * **Example** (Killing a Deferred with a lazy defect) * - * @example * ```ts * import { Deferred, Effect } from "effect" * @@ -743,15 +1036,26 @@ export declare const die: { * }) * ``` * + * @category completion * @since 2.0.0 - * @category utils */ export declare const dieSync: { /** - * Kills the `Deferred` with the specified defect, which will be propagated to - * all fibers waiting on the value of the `Deferred`. + * Computes a defect when the returned effect is run, then attempts to complete + * the `Deferred` with that defect. + * + * **When to use** + * + * Use to lazily compute an unexpected defect when the completion effect runs. + * + * **Details** + * + * Fibers waiting on the `Deferred` die with the computed defect only if this + * call completes it. The returned effect succeeds with `true` when this call + * completed the `Deferred`, or `false` if it was already completed. + * + * **Example** (Killing a Deferred with a lazy defect) * - * @example * ```ts * import { Deferred, Effect } from "effect" * @@ -765,15 +1069,26 @@ export declare const dieSync: { * }) * ``` * + * @category completion * @since 2.0.0 - * @category utils */ (evaluate: LazyArg): (self: Deferred) => Effect; /** - * Kills the `Deferred` with the specified defect, which will be propagated to - * all fibers waiting on the value of the `Deferred`. + * Computes a defect when the returned effect is run, then attempts to complete + * the `Deferred` with that defect. + * + * **When to use** + * + * Use to lazily compute an unexpected defect when the completion effect runs. + * + * **Details** + * + * Fibers waiting on the `Deferred` die with the computed defect only if this + * call completes it. The returned effect succeeds with `true` when this call + * completed the `Deferred`, or `false` if it was already completed. + * + * **Example** (Killing a Deferred with a lazy defect) * - * @example * ```ts * import { Deferred, Effect } from "effect" * @@ -787,17 +1102,27 @@ export declare const dieSync: { * }) * ``` * + * @category completion * @since 2.0.0 - * @category utils */ (self: Deferred, evaluate: LazyArg): Effect; }; /** - * Completes the `Deferred` with interruption. This will interrupt all fibers - * waiting on the value of the `Deferred` with the `FiberId` of the fiber - * calling this method. + * Attempts to complete the `Deferred` with interruption by the current fiber. + * + * **When to use** + * + * Use to complete a `Deferred` as interrupted by the current fiber. + * + * **Details** + * + * Fibers waiting on the `Deferred` are interrupted with the current fiber id + * only if this call completes it. The returned effect succeeds with `true` + * when this call completed the `Deferred`, or `false` if it was already + * completed. + * + * **Example** (Interrupting a Deferred) * - * @example * ```ts * import { Deferred, Effect } from "effect" * @@ -808,15 +1133,26 @@ export declare const dieSync: { * }) * ``` * + * @category completion * @since 2.0.0 - * @category utils */ export declare const interrupt: (self: Deferred) => Effect; /** - * Completes the `Deferred` with interruption. This will interrupt all fibers - * waiting on the value of the `Deferred` with the specified `FiberId`. + * Attempts to complete the `Deferred` with interruption by the specified + * `FiberId`. + * + * **When to use** + * + * Use to complete a `Deferred` as interrupted by a specific fiber id. + * + * **Details** + * + * Fibers waiting on the `Deferred` are interrupted with that fiber id only if + * this call completes it. The returned effect succeeds with `true` when this + * call completed the `Deferred`, or `false` if it was already completed. + * + * **Example** (Interrupting a Deferred with a fiber id) * - * @example * ```ts * import { Deferred, Effect } from "effect" * @@ -827,15 +1163,26 @@ export declare const interrupt: (self: Deferred) => Effect; * }) * ``` * + * @category completion * @since 2.0.0 - * @category utils */ export declare const interruptWith: { /** - * Completes the `Deferred` with interruption. This will interrupt all fibers - * waiting on the value of the `Deferred` with the specified `FiberId`. + * Attempts to complete the `Deferred` with interruption by the specified + * `FiberId`. + * + * **When to use** + * + * Use to complete a `Deferred` as interrupted by a specific fiber id. + * + * **Details** + * + * Fibers waiting on the `Deferred` are interrupted with that fiber id only if + * this call completes it. The returned effect succeeds with `true` when this + * call completed the `Deferred`, or `false` if it was already completed. + * + * **Example** (Interrupting a Deferred with a fiber id) * - * @example * ```ts * import { Deferred, Effect } from "effect" * @@ -846,15 +1193,26 @@ export declare const interruptWith: { * }) * ``` * + * @category completion * @since 2.0.0 - * @category utils */ (fiberId: number): (self: Deferred) => Effect; /** - * Completes the `Deferred` with interruption. This will interrupt all fibers - * waiting on the value of the `Deferred` with the specified `FiberId`. + * Attempts to complete the `Deferred` with interruption by the specified + * `FiberId`. + * + * **When to use** + * + * Use to complete a `Deferred` as interrupted by a specific fiber id. + * + * **Details** + * + * Fibers waiting on the `Deferred` are interrupted with that fiber id only if + * this call completes it. The returned effect succeeds with `true` when this + * call completed the `Deferred`, or `false` if it was already completed. + * + * **Example** (Interrupting a Deferred with a fiber id) * - * @example * ```ts * import { Deferred, Effect } from "effect" * @@ -865,8 +1223,8 @@ export declare const interruptWith: { * }) * ``` * + * @category completion * @since 2.0.0 - * @category utils */ (self: Deferred, fiberId: number): Effect; }; @@ -874,7 +1232,12 @@ export declare const interruptWith: { * Returns `true` if this `Deferred` has already been completed with a value or * an error, `false` otherwise. * - * @example + * **When to use** + * + * Use to check completion status inside an `Effect` workflow. + * + * **Example** (Checking Deferred completion) + * * ```ts * import { Deferred, Effect } from "effect" * @@ -889,16 +1252,23 @@ export declare const interruptWith: { * }) * ``` * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ export declare const isDone: (self: Deferred) => Effect; /** - * Returns `true` if this `Deferred` has already been completed with a value or - * an error, `false` otherwise. + * Returns whether this `Deferred` has already been completed synchronously. + * + * **When to use** + * + * Use to check `Deferred` completion synchronously in code that cannot return + * an `Effect`, such as low-level integration code. + * + * @see {@link isDone} for checking completion inside `Effect` + * @see {@link poll} for reading the completed effect when available * - * @since 2.0.0 * @category getters + * @since 4.0.0 */ export declare const isDoneUnsafe: (self: Deferred) => boolean; /** @@ -906,7 +1276,13 @@ export declare const isDoneUnsafe: (self: Deferred) => boolean; * `Option.some(effect)` when the `Deferred` is completed, `Option.none()` * otherwise. * - * @example + * **When to use** + * + * Use to inspect whether a `Deferred` is already completed and retrieve its + * stored completion effect when available. + * + * **Example** (Polling Deferred completion) + * * ```ts * import { Deferred, Effect } from "effect" * @@ -921,14 +1297,25 @@ export declare const isDoneUnsafe: (self: Deferred) => boolean; * }) * ``` * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ export declare function poll(self: Deferred): Effect>>; /** - * Completes the `Deferred` with the specified value. + * Attempts to complete the `Deferred` with the specified value. + * + * **When to use** + * + * Use to complete a `Deferred` with a successful value. + * + * **Details** + * + * Fibers waiting on the `Deferred` receive the value only if this call + * completes it. The returned effect succeeds with `true` when this call + * completed the `Deferred`, or `false` if it was already completed. + * + * **Example** (Completing a Deferred with a value) * - * @example * ```ts * import { Deferred, Effect } from "effect" * @@ -941,14 +1328,25 @@ export declare function poll(self: Deferred): Effect(value: A): (self: Deferred) => Effect; /** - * Completes the `Deferred` with the specified value. + * Attempts to complete the `Deferred` with the specified value. + * + * **When to use** + * + * Use to complete a `Deferred` with a successful value. + * + * **Details** + * + * Fibers waiting on the `Deferred` receive the value only if this call + * completes it. The returned effect succeeds with `true` when this call + * completed the `Deferred`, or `false` if it was already completed. + * + * **Example** (Completing a Deferred with a value) * - * @example * ```ts * import { Deferred, Effect } from "effect" * @@ -981,15 +1390,28 @@ export declare const succeed: { * }) * ``` * + * @category completion * @since 2.0.0 - * @category utils */ (self: Deferred, value: A): Effect; }; /** - * Completes the `Deferred` with the specified lazily evaluated value. + * Computes a value when the returned effect is run, then attempts to complete + * the `Deferred` with that value. + * + * **When to use** + * + * Use to lazily compute a successful value when the `Deferred` completion + * effect runs. + * + * **Details** + * + * Fibers waiting on the `Deferred` receive the computed value only if this call + * completes it. The returned effect succeeds with `true` when this call + * completed the `Deferred`, or `false` if it was already completed. + * + * **Example** (Completing a Deferred with a lazy value) * - * @example * ```ts * import { Deferred, Effect } from "effect" * @@ -1002,14 +1424,27 @@ export declare const succeed: { * }) * ``` * + * @category completion * @since 2.0.0 - * @category utils */ export declare const sync: { /** - * Completes the `Deferred` with the specified lazily evaluated value. + * Computes a value when the returned effect is run, then attempts to complete + * the `Deferred` with that value. + * + * **When to use** + * + * Use to lazily compute a successful value when the `Deferred` completion + * effect runs. + * + * **Details** + * + * Fibers waiting on the `Deferred` receive the computed value only if this call + * completes it. The returned effect succeeds with `true` when this call + * completed the `Deferred`, or `false` if it was already completed. + * + * **Example** (Completing a Deferred with a lazy value) * - * @example * ```ts * import { Deferred, Effect } from "effect" * @@ -1022,14 +1457,27 @@ export declare const sync: { * }) * ``` * + * @category completion * @since 2.0.0 - * @category utils */ (evaluate: LazyArg): (self: Deferred) => Effect; /** - * Completes the `Deferred` with the specified lazily evaluated value. + * Computes a value when the returned effect is run, then attempts to complete + * the `Deferred` with that value. + * + * **When to use** + * + * Use to lazily compute a successful value when the `Deferred` completion + * effect runs. + * + * **Details** + * + * Fibers waiting on the `Deferred` receive the computed value only if this call + * completes it. The returned effect succeeds with `true` when this call + * completed the `Deferred`, or `false` if it was already completed. + * + * **Example** (Completing a Deferred with a lazy value) * - * @example * ```ts * import { Deferred, Effect } from "effect" * @@ -1042,16 +1490,28 @@ export declare const sync: { * }) * ``` * + * @category completion * @since 2.0.0 - * @category utils */ (self: Deferred, evaluate: LazyArg): Effect; }; /** - * Unsafely exits the `Deferred` with the specified `Exit` value, which will be - * propagated to all fibers waiting on the value of the `Deferred`. + * Attempts to complete the `Deferred` synchronously with the specified + * completion effect. + * + * **When to use** + * + * Use to complete a `Deferred` synchronously in low-level code that already has + * the completion effect. + * + * **Details** + * + * This mutates the `Deferred` directly and should be reserved for low-level + * code; prefer the effectful completion APIs when possible. Returns `true` if + * this call completed the `Deferred`, or `false` if it was already completed. + * + * **Example** (Completing a Deferred unsafely) * - * @example * ```ts * import { Deferred, Effect } from "effect" * @@ -1060,21 +1520,28 @@ export declare const sync: { * console.log(success) // true * ``` * - * @since 2.0.0 * @category unsafe + * @since 4.0.0 */ export declare const doneUnsafe: (self: Deferred, effect: Effect) => boolean; /** - * Converts an `Effect` into an operation that completes a `Deferred` with its result. + * Runs an `Effect` and attempts to complete a `Deferred` with the effect's + * result. + * + * **When to use** + * + * Use to pipe an effect result into a `Deferred` while preserving success, + * failure, defects, and interruption. * * **Details** * - * The `into` function takes an effect and a `Deferred` and ensures that the `Deferred` - * is completed based on the outcome of the effect. If the effect succeeds, the `Deferred` is - * completed with the success value. If the effect fails, the `Deferred` is completed with the - * failure. Additionally, if the effect is interrupted, the `Deferred` will also be interrupted. + * If the effect succeeds, fails, dies, or is interrupted, that result is used + * as the attempted completion. The returned effect cannot fail; it succeeds + * with `true` if it completed the `Deferred`, or `false` if the `Deferred` was + * already completed. + * + * **Example** (Completing a Deferred from an effect result) * - * @example * ```ts * import { Deferred, Effect } from "effect" * @@ -1101,21 +1568,28 @@ export declare const doneUnsafe: (self: Deferred, effect: Effect(deferred: Deferred): (self: Effect) => Effect; /** - * Converts an `Effect` into an operation that completes a `Deferred` with its result. + * Runs an `Effect` and attempts to complete a `Deferred` with the effect's + * result. + * + * **When to use** + * + * Use to pipe an effect result into a `Deferred` while preserving success, + * failure, defects, and interruption. * * **Details** * - * The `into` function takes an effect and a `Deferred` and ensures that the `Deferred` - * is completed based on the outcome of the effect. If the effect succeeds, the `Deferred` is - * completed with the success value. If the effect fails, the `Deferred` is completed with the - * failure. Additionally, if the effect is interrupted, the `Deferred` will also be interrupted. + * If the effect succeeds, fails, dies, or is interrupted, that result is used + * as the attempted completion. The returned effect cannot fail; it succeeds + * with `true` if it completed the `Deferred`, or `false` if the `Deferred` was + * already completed. + * + * **Example** (Completing a Deferred from an effect result) * - * @example * ```ts * import { Deferred, Effect } from "effect" * @@ -1183,8 +1664,8 @@ export declare const into: { * // true * ``` * - * @since 2.0.0 * @category Synchronization Utilities + * @since 4.0.0 */ (self: Effect, deferred: Deferred): Effect; }; diff --git a/.opencode/node_modules/effect/dist/Deferred.d.ts.map b/.opencode/node_modules/effect/dist/Deferred.d.ts.map index ec2ccf5c035dd470d1b9298a84af6e14f2e51619..f82acb1af14f7b23339c1dbe36006efb9e49bef0 100644 --- a/.opencode/node_modules/effect/dist/Deferred.d.ts.map +++ b/.opencode/node_modules/effect/dist/Deferred.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Deferred.d.ts","sourceRoot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AAC,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,OAAO,CAAC,CAAA;CAKpE,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,eAAO,MAAM,UAAU,GAAI,CAAC,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,QAAQ,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,KAAG,OAU7E,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,eAAO,MAAM,IAAI,EAAE;IACjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8CG;IACH,CAAC,CAAC,EAAE,CAAC,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,KAAK,MAAM,CAAC,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC,CAAA;IACzF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8CG;IACH,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,MAAM,CAAC,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC,CAAA;CAUtF,CAAA"} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Deferred.js b/.opencode/node_modules/effect/dist/Deferred.js index be96f4774e95e023771215a0e589daee0d276982..dd5334d6e42b0881f411fca56688e639cd49c176 100644 --- a/.opencode/node_modules/effect/dist/Deferred.js +++ b/.opencode/node_modules/effect/dist/Deferred.js @@ -6,8 +6,15 @@ import { pipeArguments } from "./Pipeable.js"; import { hasProperty } from "./Predicate.js"; const TypeId = "~effect/Deferred"; /** - * @since 2.0.0 - * @category Guards + * Checks whether a value is a `Deferred`. + * + * **When to use** + * + * Use to validate unknown values at runtime boundaries before treating them as + * `Deferred` values. + * + * @category guards + * @since 4.0.0 */ export const isDeferred = u => hasProperty(u, TypeId); const DeferredProto = { @@ -20,9 +27,15 @@ const DeferredProto = { } }; /** - * Unsafely creates a new `Deferred` + * Creates an empty `Deferred` synchronously outside the `Effect` runtime. + * + * **When to use** + * + * Use to allocate a `Deferred` synchronously when direct allocation outside + * `Effect` is required. + * + * **Example** (Creating a Deferred unsafely) * - * @example * ```ts * import { Deferred } from "effect" * @@ -30,8 +43,8 @@ const DeferredProto = { * console.log(deferred) * ``` * - * @since 2.0.0 * @category unsafe + * @since 4.0.0 */ export const makeUnsafe = () => { const self = Object.create(DeferredProto); @@ -42,7 +55,12 @@ export const makeUnsafe = () => { /** * Creates a new `Deferred`. * - * @example + * **When to use** + * + * Use to allocate an empty `Deferred` inside an `Effect` workflow. + * + * **Example** (Creating a Deferred) + * * ```ts * import { Deferred, Effect } from "effect" * @@ -54,8 +72,8 @@ export const makeUnsafe = () => { * }) * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export const make = () => internalEffect.sync(() => makeUnsafe()); const _await = self => internalEffect.callback(resume => { @@ -72,7 +90,17 @@ export { * Retrieves the value of the `Deferred`, suspending the fiber running the * workflow until the result is available. * - * @example + * **When to use** + * + * Use to wait for a `Deferred` to be completed and resume with its success, + * failure, defect, or interruption. + * + * **Details** + * + * Awaiters observe the completion effect stored in the `Deferred`. + * + * **Example** (Awaiting a Deferred value) + * * ```ts * import { Deferred, Effect } from "effect" * @@ -85,18 +113,29 @@ export { * }) * ``` * - * @since 2.0.0 + * @see {@link complete} for completing from an effect and memoizing its result + * @see {@link completeWith} for completing with an effect directly + * * @category getters + * @since 2.0.0 */ _await as await }; /** - * Completes the deferred with the result of the specified effect. If the - * deferred has already been completed, the method will produce false. + * Runs the supplied `Effect` and attempts to complete the `Deferred` with its + * memoized result. + * + * **When to use** + * + * Use when completing a `Deferred` should run an effect once and share its + * result with all awaiters. + * + * **Details** + * + * The returned effect succeeds with `true` when this call completed the + * `Deferred`, or `false` if it was already completed. * - * Note that `Deferred.completeWith` will be much faster, so consider using - * that if you do not need to memoize the result of the specified effect. + * **Example** (Completing a Deferred from an effect) * - * @example * ```ts * import { Deferred, Effect } from "effect" * @@ -110,15 +149,32 @@ _await as await }; * }) * ``` * + * @see {@link completeWith} for storing an effect directly without memoizing its result + * + * @category completion * @since 2.0.0 - * @category utils */ export const complete = /*#__PURE__*/dual(2, (self, effect) => internalEffect.suspend(() => self.effect ? internalEffect.succeed(false) : into(effect, self))); /** - * Completes the deferred with the result of the specified effect. If the - * deferred has already been completed, the method will produce false. + * Attempts to complete the `Deferred` with the specified effect directly. + * + * **When to use** + * + * Use to store an already environment-free effect as the completion without + * running it during completion. + * + * **Details** + * + * The returned effect succeeds with `true` when this call completed the + * `Deferred`, or `false` if it was already completed. + * + * **Gotchas** + * + * The supplied effect is not memoized by `completeWith`; each awaiter may run + * the stored effect independently. + * + * **Example** (Completing a Deferred with an effect) * - * @example * ```ts * import { Deferred, Effect } from "effect" * @@ -132,15 +188,28 @@ export const complete = /*#__PURE__*/dual(2, (self, effect) => internalEffect.su * }) * ``` * + * @see {@link complete} for running an effect once and sharing its result + * @see {@link done} for completing from an already computed `Exit` + * + * @category completion * @since 2.0.0 - * @category utils */ export const completeWith = /*#__PURE__*/dual(2, (self, effect) => internalEffect.sync(() => doneUnsafe(self, effect))); /** - * Exits the `Deferred` with the specified `Exit` value, which will be + * Completes the `Deferred` with the specified `Exit` value, which will be * propagated to all fibers waiting on the value of the `Deferred`. * - * @example + * **When to use** + * + * Use to complete a `Deferred` from an already computed `Exit`. + * + * **Details** + * + * The returned effect succeeds with `true` when this call completed the + * `Deferred`, or `false` if it was already completed. + * + * **Example** (Completing a Deferred with an Exit) + * * ```ts * import { Deferred, Effect, Exit } from "effect" * @@ -153,15 +222,30 @@ export const completeWith = /*#__PURE__*/dual(2, (self, effect) => internalEffec * }) * ``` * + * @see {@link complete} for completing from an effect and memoizing its result + * @see {@link completeWith} for storing an effect directly + * @see {@link succeed} for completing with a success value + * @see {@link failCause} for completing with a failure cause + * + * @category completion * @since 2.0.0 - * @category utils */ export const done = completeWith; /** - * Fails the `Deferred` with the specified error, which will be propagated to - * all fibers waiting on the value of the `Deferred`. + * Attempts to complete the `Deferred` with the specified error. + * + * **When to use** + * + * Use to complete a `Deferred` with a typed failure value. + * + * **Details** + * + * Fibers waiting on the `Deferred` fail with that error only if this call + * completes it. The returned effect succeeds with `true` when this call + * completed the `Deferred`, or `false` if it was already completed. + * + * **Example** (Failing a Deferred with an error) * - * @example * ```ts * import { Deferred, Effect } from "effect" * @@ -172,15 +256,27 @@ export const done = completeWith; * }) * ``` * + * @category completion * @since 2.0.0 - * @category utils */ export const fail = /*#__PURE__*/dual(2, (self, error) => done(self, core.exitFail(error))); /** - * Fails the `Deferred` with the specified error, which will be propagated to - * all fibers waiting on the value of the `Deferred`. + * Computes an error when the returned effect is run, then attempts to complete + * the `Deferred` with that error. + * + * **When to use** + * + * Use to lazily compute a typed failure value when the `Deferred` completion + * effect runs. + * + * **Details** + * + * Fibers waiting on the `Deferred` fail with the computed error only if this + * call completes it. The returned effect succeeds with `true` when this call + * completed the `Deferred`, or `false` if it was already completed. + * + * **Example** (Failing a Deferred with a lazy error) * - * @example * ```ts * import { Deferred, Effect } from "effect" * @@ -191,15 +287,25 @@ export const fail = /*#__PURE__*/dual(2, (self, error) => done(self, core.exitFa * }) * ``` * + * @category completion * @since 2.0.0 - * @category utils */ export const failSync = /*#__PURE__*/dual(2, (self, evaluate) => internalEffect.suspend(() => fail(self, evaluate()))); /** - * Fails the `Deferred` with the specified `Cause`, which will be propagated to - * all fibers waiting on the value of the `Deferred`. + * Attempts to complete the `Deferred` with the specified `Cause`. + * + * **When to use** + * + * Use to complete a `Deferred` with a full failure cause. + * + * **Details** + * + * Fibers waiting on the `Deferred` observe that cause only if this call + * completes it. The returned effect succeeds with `true` when this call + * completed the `Deferred`, or `false` if it was already completed. + * + * **Example** (Failing a Deferred with a Cause) * - * @example * ```ts * import { Cause, Deferred, Effect } from "effect" * @@ -213,15 +319,27 @@ export const failSync = /*#__PURE__*/dual(2, (self, evaluate) => internalEffect. * }) * ``` * + * @category completion * @since 2.0.0 - * @category utils */ export const failCause = /*#__PURE__*/dual(2, (self, cause) => done(self, core.exitFailCause(cause))); /** - * Fails the `Deferred` with the specified `Cause`, which will be propagated to - * all fibers waiting on the value of the `Deferred`. + * Computes a `Cause` when the returned effect is run, then attempts to + * complete the `Deferred` with that cause. + * + * **When to use** + * + * Use to lazily compute a full failure cause when the `Deferred` completion + * effect runs. + * + * **Details** + * + * Fibers waiting on the `Deferred` observe the computed cause only if this + * call completes it. The returned effect succeeds with `true` when this call + * completed the `Deferred`, or `false` if it was already completed. + * + * **Example** (Failing a Deferred with a lazy Cause) * - * @example * ```ts * import { Cause, Deferred, Effect } from "effect" * @@ -235,15 +353,25 @@ export const failCause = /*#__PURE__*/dual(2, (self, cause) => done(self, core.e * }) * ``` * + * @category completion * @since 2.0.0 - * @category utils */ export const failCauseSync = /*#__PURE__*/dual(2, (self, evaluate) => internalEffect.suspend(() => failCause(self, evaluate()))); /** - * Kills the `Deferred` with the specified defect, which will be propagated to - * all fibers waiting on the value of the `Deferred`. + * Attempts to complete the `Deferred` with a defect. + * + * **When to use** + * + * Use to complete a `Deferred` with an unexpected defect. + * + * **Details** + * + * Fibers waiting on the `Deferred` die with that defect only if this call + * completes it. The returned effect succeeds with `true` when this call + * completed the `Deferred`, or `false` if it was already completed. + * + * **Example** (Killing a Deferred with a defect) * - * @example * ```ts * import { Deferred, Effect } from "effect" * @@ -257,15 +385,26 @@ export const failCauseSync = /*#__PURE__*/dual(2, (self, evaluate) => internalEf * }) * ``` * + * @category completion * @since 2.0.0 - * @category utils */ export const die = /*#__PURE__*/dual(2, (self, defect) => done(self, core.exitDie(defect))); /** - * Kills the `Deferred` with the specified defect, which will be propagated to - * all fibers waiting on the value of the `Deferred`. + * Computes a defect when the returned effect is run, then attempts to complete + * the `Deferred` with that defect. + * + * **When to use** + * + * Use to lazily compute an unexpected defect when the completion effect runs. + * + * **Details** + * + * Fibers waiting on the `Deferred` die with the computed defect only if this + * call completes it. The returned effect succeeds with `true` when this call + * completed the `Deferred`, or `false` if it was already completed. + * + * **Example** (Killing a Deferred with a lazy defect) * - * @example * ```ts * import { Deferred, Effect } from "effect" * @@ -279,16 +418,26 @@ export const die = /*#__PURE__*/dual(2, (self, defect) => done(self, core.exitDi * }) * ``` * + * @category completion * @since 2.0.0 - * @category utils */ export const dieSync = /*#__PURE__*/dual(2, (self, evaluate) => internalEffect.suspend(() => die(self, evaluate()))); /** - * Completes the `Deferred` with interruption. This will interrupt all fibers - * waiting on the value of the `Deferred` with the `FiberId` of the fiber - * calling this method. + * Attempts to complete the `Deferred` with interruption by the current fiber. + * + * **When to use** + * + * Use to complete a `Deferred` as interrupted by the current fiber. + * + * **Details** + * + * Fibers waiting on the `Deferred` are interrupted with the current fiber id + * only if this call completes it. The returned effect succeeds with `true` + * when this call completed the `Deferred`, or `false` if it was already + * completed. + * + * **Example** (Interrupting a Deferred) * - * @example * ```ts * import { Deferred, Effect } from "effect" * @@ -299,15 +448,26 @@ export const dieSync = /*#__PURE__*/dual(2, (self, evaluate) => internalEffect.s * }) * ``` * + * @category completion * @since 2.0.0 - * @category utils */ export const interrupt = self => core.withFiber(fiber => interruptWith(self, fiber.id)); /** - * Completes the `Deferred` with interruption. This will interrupt all fibers - * waiting on the value of the `Deferred` with the specified `FiberId`. + * Attempts to complete the `Deferred` with interruption by the specified + * `FiberId`. + * + * **When to use** + * + * Use to complete a `Deferred` as interrupted by a specific fiber id. + * + * **Details** + * + * Fibers waiting on the `Deferred` are interrupted with that fiber id only if + * this call completes it. The returned effect succeeds with `true` when this + * call completed the `Deferred`, or `false` if it was already completed. + * + * **Example** (Interrupting a Deferred with a fiber id) * - * @example * ```ts * import { Deferred, Effect } from "effect" * @@ -318,15 +478,20 @@ export const interrupt = self => core.withFiber(fiber => interruptWith(self, fib * }) * ``` * + * @category completion * @since 2.0.0 - * @category utils */ export const interruptWith = /*#__PURE__*/dual(2, (self, fiberId) => failCause(self, internalEffect.causeInterrupt(fiberId))); /** * Returns `true` if this `Deferred` has already been completed with a value or * an error, `false` otherwise. * - * @example + * **When to use** + * + * Use to check completion status inside an `Effect` workflow. + * + * **Example** (Checking Deferred completion) + * * ```ts * import { Deferred, Effect } from "effect" * @@ -341,16 +506,23 @@ export const interruptWith = /*#__PURE__*/dual(2, (self, fiberId) => failCause(s * }) * ``` * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ export const isDone = self => internalEffect.sync(() => isDoneUnsafe(self)); /** - * Returns `true` if this `Deferred` has already been completed with a value or - * an error, `false` otherwise. + * Returns whether this `Deferred` has already been completed synchronously. + * + * **When to use** + * + * Use to check `Deferred` completion synchronously in code that cannot return + * an `Effect`, such as low-level integration code. + * + * @see {@link isDone} for checking completion inside `Effect` + * @see {@link poll} for reading the completed effect when available * - * @since 2.0.0 * @category getters + * @since 4.0.0 */ export const isDoneUnsafe = self => self.effect !== undefined; /** @@ -358,7 +530,13 @@ export const isDoneUnsafe = self => self.effect !== undefined; * `Option.some(effect)` when the `Deferred` is completed, `Option.none()` * otherwise. * - * @example + * **When to use** + * + * Use to inspect whether a `Deferred` is already completed and retrieve its + * stored completion effect when available. + * + * **Example** (Polling Deferred completion) + * * ```ts * import { Deferred, Effect } from "effect" * @@ -373,16 +551,27 @@ export const isDoneUnsafe = self => self.effect !== undefined; * }) * ``` * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ export function poll(self) { return internalEffect.sync(() => Option.fromUndefinedOr(self.effect)); } /** - * Completes the `Deferred` with the specified value. + * Attempts to complete the `Deferred` with the specified value. + * + * **When to use** + * + * Use to complete a `Deferred` with a successful value. + * + * **Details** + * + * Fibers waiting on the `Deferred` receive the value only if this call + * completes it. The returned effect succeeds with `true` when this call + * completed the `Deferred`, or `false` if it was already completed. + * + * **Example** (Completing a Deferred with a value) * - * @example * ```ts * import { Deferred, Effect } from "effect" * @@ -395,14 +584,27 @@ export function poll(self) { * }) * ``` * + * @category completion * @since 2.0.0 - * @category utils */ export const succeed = /*#__PURE__*/dual(2, (self, value) => done(self, core.exitSucceed(value))); /** - * Completes the `Deferred` with the specified lazily evaluated value. + * Computes a value when the returned effect is run, then attempts to complete + * the `Deferred` with that value. + * + * **When to use** + * + * Use to lazily compute a successful value when the `Deferred` completion + * effect runs. + * + * **Details** + * + * Fibers waiting on the `Deferred` receive the computed value only if this call + * completes it. The returned effect succeeds with `true` when this call + * completed the `Deferred`, or `false` if it was already completed. + * + * **Example** (Completing a Deferred with a lazy value) * - * @example * ```ts * import { Deferred, Effect } from "effect" * @@ -415,15 +617,27 @@ export const succeed = /*#__PURE__*/dual(2, (self, value) => done(self, core.exi * }) * ``` * + * @category completion * @since 2.0.0 - * @category utils */ export const sync = /*#__PURE__*/dual(2, (self, evaluate) => internalEffect.suspend(() => succeed(self, evaluate()))); /** - * Unsafely exits the `Deferred` with the specified `Exit` value, which will be - * propagated to all fibers waiting on the value of the `Deferred`. + * Attempts to complete the `Deferred` synchronously with the specified + * completion effect. + * + * **When to use** + * + * Use to complete a `Deferred` synchronously in low-level code that already has + * the completion effect. + * + * **Details** + * + * This mutates the `Deferred` directly and should be reserved for low-level + * code; prefer the effectful completion APIs when possible. Returns `true` if + * this call completed the `Deferred`, or `false` if it was already completed. + * + * **Example** (Completing a Deferred unsafely) * - * @example * ```ts * import { Deferred, Effect } from "effect" * @@ -432,8 +646,8 @@ export const sync = /*#__PURE__*/dual(2, (self, evaluate) => internalEffect.susp * console.log(success) // true * ``` * - * @since 2.0.0 * @category unsafe + * @since 4.0.0 */ export const doneUnsafe = (self, effect) => { if (self.effect) return false; @@ -447,16 +661,23 @@ export const doneUnsafe = (self, effect) => { return true; }; /** - * Converts an `Effect` into an operation that completes a `Deferred` with its result. + * Runs an `Effect` and attempts to complete a `Deferred` with the effect's + * result. + * + * **When to use** + * + * Use to pipe an effect result into a `Deferred` while preserving success, + * failure, defects, and interruption. * * **Details** * - * The `into` function takes an effect and a `Deferred` and ensures that the `Deferred` - * is completed based on the outcome of the effect. If the effect succeeds, the `Deferred` is - * completed with the success value. If the effect fails, the `Deferred` is completed with the - * failure. Additionally, if the effect is interrupted, the `Deferred` will also be interrupted. + * If the effect succeeds, fails, dies, or is interrupted, that result is used + * as the attempted completion. The returned effect cannot fail; it succeeds + * with `true` if it completed the `Deferred`, or `false` if the `Deferred` was + * already completed. + * + * **Example** (Completing a Deferred from an effect result) * - * @example * ```ts * import { Deferred, Effect } from "effect" * @@ -483,8 +704,8 @@ export const doneUnsafe = (self, effect) => { * // true * ``` * - * @since 2.0.0 * @category Synchronization Utilities + * @since 4.0.0 */ export const into = /*#__PURE__*/dual(2, (self, deferred) => internalEffect.uninterruptibleMask(restore => internalEffect.flatMap(internalEffect.exit(restore(self)), exit => done(deferred, exit)))); //# sourceMappingURL=Deferred.js.map \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Deferred.js.map b/.opencode/node_modules/effect/dist/Deferred.js.map index ded8caf3d0e2b0139ba897500713c6536d049cf3..c32b4f88d9423d2dab6e8ed7571f0a3a9bb088fc 100644 --- a/.opencode/node_modules/effect/dist/Deferred.js.map +++ b/.opencode/node_modules/effect/dist/Deferred.js.map @@ -1 +1 @@ -{"version":3,"file":"Deferred.js","names":["dual","identity","core","internalEffect","Option","pipeArguments","hasProperty","TypeId","isDeferred","u","DeferredProto","_A","_E","pipe","arguments","makeUnsafe","self","Object","create","resumes","undefined","effect","make","sync","_await","callback","resume","push","index","indexOf","splice","await","complete","suspend","succeed","into","completeWith","doneUnsafe","done","fail","error","exitFail","failSync","evaluate","failCause","cause","exitFailCause","failCauseSync","die","defect","exitDie","dieSync","interrupt","withFiber","fiber","interruptWith","id","fiberId","causeInterrupt","isDone","isDoneUnsafe","poll","fromUndefinedOr","value","exitSucceed","i","length","deferred","uninterruptibleMask","restore","flatMap","exit"],"sources":["../src/Deferred.ts"],"sourcesContent":[null],"mappings":"AAuEA,SAASA,IAAI,EAAEC,QAAQ,QAAsB,eAAe;AAC5D,OAAO,KAAKC,IAAI,MAAM,oBAAoB;AAC1C,OAAO,KAAKC,cAAc,MAAM,sBAAsB;AACtD,OAAO,KAAKC,MAAM,MAAM,aAAa;AAErC,SAASC,aAAa,QAAQ,eAAe;AAC7C,SAASC,WAAW,QAAQ,gBAAgB;AAG5C,MAAMC,MAAM,GAAG,kBAAkB;AAoDjC;;;;AAIA,OAAO,MAAMC,UAAU,GAAUC,CAAU,IAA0BH,WAAW,CAACG,CAAC,EAAEF,MAAM,CAAC;AAmB3F,MAAMG,aAAa,GAAG;EACpB,CAACH,MAAM,GAAG;IACRI,EAAE,EAAEV,QAAQ;IACZW,EAAE,EAAEX;GACL;EACDY,IAAIA,CAAA;IACF,OAAOR,aAAa,CAAC,IAAI,EAAES,SAAS,CAAC;EACvC;CACD;AAED;;;;;;;;;;;;;;AAcA,OAAO,MAAMC,UAAU,GAAGA,CAAA,KAAmC;EAC3D,MAAMC,IAAI,GAAGC,MAAM,CAACC,MAAM,CAACR,aAAa,CAAC;EACzCM,IAAI,CAACG,OAAO,GAAGC,SAAS;EACxBJ,IAAI,CAACK,MAAM,GAAGD,SAAS;EACvB,OAAOJ,IAAI;AACb,CAAC;AAED;;;;;;;;;;;;;;;;;;AAkBA,OAAO,MAAMM,IAAI,GAAGA,CAAA,KAA4CnB,cAAc,CAACoB,IAAI,CAAC,MAAMR,UAAU,EAAE,CAAC;AAEvG,MAAMS,MAAM,GAAUR,IAAoB,IACxCb,cAAc,CAACsB,QAAQ,CAAQC,MAAM,IAAI;EACvC,IAAIV,IAAI,CAACK,MAAM,EAA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,MAAM,GAAGA,MAAM;EACpB,IAAIL,IAAI,CAACG,OAAO,EAAE;IAChB,KAAK,IAAI8C,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGjD,IAAI,CAACG,OAAO,CAAC+C,MAAM,EAAED,CAAC,EAAE,EAAE;MAC5CjD,IAAI,CAACG,OAAO,CAAC8C,CAAC,CAAC,CAAC5C,MAAM,CAAC;IACzB;IACAL,IAAI,CAACG,OAAO,GAAGC,SAAS;EAC1B;EACA,OAAO,IAAI;AACb,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwCA,OAAO,MAAMe,IAAI,gBAmFbnC,IAAI,CACN,CAAC,EACD,CAAUgB,IAAqB,EAAEmD,QAAwB,KACvDhE,cAAc,CAACiE,mBAAmB,CAAEC,OAAO,IACzClE,cAAc,CAACmE,OAAO,CACpBnE,cAAc,CAACoE,IAAI,CAACF,OAAO,CAACrD,IAAI,CAAC,CAAC,EACjCuD,IAAI,IAAKjC,IAAI,CAAC6B,QAAQ,EAAEI,IAAI,CAAC,CAC/B,CACF,CACJ","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"Deferred.js","names":["dual","identity","core","internalEffect","Option","pipeArguments","hasProperty","TypeId","isDeferred","u","DeferredProto","_A","_E","pipe","arguments","makeUnsafe","self","Object","create","resumes","undefined","effect","make","sync","_await","callback","resume","push","index","indexOf","splice","await","complete","suspend","succeed","into","completeWith","doneUnsafe","done","fail","error","exitFail","failSync","evaluate","failCause","cause","exitFailCause","failCauseSync","die","defect","exitDie","dieSync","interrupt","withFiber","fiber","interruptWith","id","fiberId","causeInterrupt","isDone","isDoneUnsafe","poll","fromUndefinedOr","value","exitSucceed","i","length","deferred","uninterruptibleMask","restore","flatMap","exit"],"sources":["../src/Deferred.ts"],"sourcesContent":[null],"mappings":"AAYA,SAASA,IAAI,EAAEC,QAAQ,QAAsB,eAAe;AAC5D,OAAO,KAAKC,IAAI,MAAM,oBAAoB;AAC1C,OAAO,K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,EAAE;IAChB,KAAK,IAAI8C,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGjD,IAAI,CAACG,OAAO,CAAC+C,MAAM,EAAED,CAAC,EAAE,EAAE;MAC5CjD,IAAI,CAACG,OAAO,CAAC8C,CAAC,CAAC,CAAC5C,MAAM,CAAC;IACzB;IACAL,IAAI,CAACG,OAAO,GAAGC,SAAS;EAC1B;EACA,OAAO,IAAI;AACb,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+CA,OAAO,MAAMe,IAAI,gBAiGbnC,IAAI,CACN,CAAC,EACD,CAAUgB,IAAqB,EAAEmD,QAAwB,KACvDhE,cAAc,CAACiE,mBAAmB,CAAEC,OAAO,IACzClE,cAAc,CAACmE,OAAO,CACpBnE,cAAc,CAACoE,IAAI,CAACF,OAAO,CAACrD,IAAI,CAAC,CAAC,EACjCuD,IAAI,IAAKjC,IAAI,CAAC6B,QAAQ,EAAEI,IAAI,CAAC,CAC/B,CACF,CACJ","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Differ.d.ts b/.opencode/node_modules/effect/dist/Differ.d.ts index 8e64fae86644d22905db424d5e501b019f300527..ecb1b01168247d04f71e450f959f3bd644badfd1 100644 --- a/.opencode/node_modules/effect/dist/Differ.d.ts +++ b/.opencode/node_modules/effect/dist/Differ.d.ts @@ -1,9 +1,27 @@ /** + * Interfaces for describing changes to a value as patches. A + * `Differ` compares an old and new value, creates a patch for the + * difference, combines patches in order, and applies a patch to an old value to + * produce an updated value. + * * @since 4.0.0 */ /** - * @category Model - * @since 4.0.0 + * Describes how to compute, combine, and apply patches for values of type `T`. + * + * **When to use** + * + * Use to model patch-based updates for a value type when callers need to + * compute a patch from two values, combine patches, and apply a patch later. + * + * **Details** + * + * A `Differ` provides an empty patch, computes the patch between two values, + * combines patches, and applies a patch to an old value to produce an updated + * value. + * + * @category models + * @since 2.0.0 */ export interface Differ { readonly empty: Patch; diff --git a/.opencode/node_modules/effect/dist/Differ.d.ts.map b/.opencode/node_modules/effect/dist/Differ.d.ts.map index a8fc00b60a587ad2f6dca6252b17da340e689ed4..3c776cf98d992d83a5fe9c64f0d2f4a051a951a0 100644 --- a/.opencode/node_modules/effect/dist/Differ.d.ts.map +++ b/.opencode/node_modules/effect/dist/Differ.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Differ.d.ts","sourceRoot":"","sources":["../src/Differ.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;GAGG;AACH,MAAM,WAAW,MAAM,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,KAAK;IAC5C,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAA;IACrB,IAAI,CAAC,QAAQ,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,GAAG,KAAK,CAAA;IACrC,OAAO,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,GAAG,KAAK,CAAA;IAC3C,KAAK,CAAC,QAAQ,EAAE,CAAC,EAAE,KAAK,EAAE,KAAK,GAAG,CAAC,CAAA;CACpC"} \ No newline at end of file +{"version":3,"file":"Differ.d.ts","sourceRoot":"","sources":["../src/Differ.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,WAAW,MAAM,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,KAAK;IAC5C,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAA;IACrB,IAAI,CAAC,QAAQ,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,GAAG,KAAK,CAAA;IACrC,OAAO,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,GAAG,KAAK,CAAA;IAC3C,KAAK,CAAC,QAAQ,EAAE,CAAC,EAAE,KAAK,EAAE,KAAK,GAAG,CAAC,CAAA;CACpC"} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Differ.js b/.opencode/node_modules/effect/dist/Differ.js index 922bd5e5d867360460d559bc037ec985601aa266..048b12a7169d7e03c85235e0d457f6d571ee9620 100644 --- a/.opencode/node_modules/effect/dist/Differ.js +++ b/.opencode/node_modules/effect/dist/Differ.js @@ -1,4 +1,9 @@ /** + * Interfaces for describing changes to a value as patches. A + * `Differ` compares an old and new value, creates a patch for the + * difference, combines patches in order, and applies a patch to an old value to + * produce an updated value. + * * @since 4.0.0 */ export {}; diff --git a/.opencode/node_modules/effect/dist/Duration.d.ts b/.opencode/node_modules/effect/dist/Duration.d.ts index 153d83ee73d23b7150d9585ff477d61ddf89d1da..e04edf1ea13fc6b832df26fbd07adf0781ab4460 100644 --- a/.opencode/node_modules/effect/dist/Duration.d.ts +++ b/.opencode/node_modules/effect/dist/Duration.d.ts @@ -1,15 +1,11 @@ /** - * This module provides utilities for working with durations of time. A `Duration` - * is an immutable data type that represents a span of time with high precision, - * supporting operations from nanoseconds to weeks. - * - * Durations support: - * - **High precision**: Nanosecond-level accuracy using BigInt - * - **Multiple formats**: Numbers (millis), BigInt (nanos), tuples, strings - * - **Arithmetic operations**: Add, subtract, multiply, divide - * - **Comparisons**: Equal, less than, greater than - * - **Conversions**: Between different time units - * - **Human-readable formatting**: Pretty printing and parsing + * Represents immutable spans of time. + * + * A `Duration` can be finite, positive infinity, or negative infinity. It is + * the standard representation for delays, timeouts, intervals, and + * time-to-live values across Effect APIs. This module includes constructors + * from common input shapes, unit conversions, comparisons, arithmetic, + * formatting, and reusable reducer or combiner helpers. * * @since 2.0.0 */ @@ -26,18 +22,43 @@ declare const TypeId = "~effect/time/Duration"; * Represents a span of time with high precision, supporting operations from * nanoseconds to weeks. * - * @since 2.0.0 + * **When to use** + * + * Use to model elapsed time, delays, timeouts, schedule intervals, and cache + * TTLs as immutable duration values. + * + * @see {@link Input} for values accepted by APIs that decode duration-like + * inputs + * @see {@link DurationValue} for the tagged representation exposed by the + * `value` field + * * @category models + * @since 2.0.0 */ export interface Duration extends Equal.Equal, Pipeable, Inspectable.Inspectable { readonly [TypeId]: typeof TypeId; readonly value: DurationValue; } /** - * The internal representation of a `Duration` value. + * Tagged representation of a `Duration` value. + * + * **When to use** + * + * Use when modeling or inspecting the exact tagged representation stored in a + * `Duration`, including finite millisecond or nanosecond values and infinite + * sentinels. + * + * **Details** + * + * A duration is represented as milliseconds, nanoseconds, positive infinity, + * or negative infinity. + * + * @see {@link Duration} for the public type whose `value` field contains this + * representation + * @see {@link match} for pattern matching without reading `value` directly * - * @since 2.0.0 * @category models + * @since 2.0.0 */ export type DurationValue = { _tag: "Millis"; @@ -53,27 +74,53 @@ export type DurationValue = { /** * Valid time units that can be used in duration string representations. * - * @since 2.0.0 + * **When to use** + * + * Use when typing the unit portion of duration string inputs accepted by + * `Duration.Input`. + * + * @see {@link Input} for the full duration input union + * * @category models + * @since 2.0.0 */ export type Unit = "nano" | "nanos" | "micro" | "micros" | "milli" | "millis" | "second" | "seconds" | "minute" | "minutes" | "hour" | "hours" | "day" | "days" | "week" | "weeks"; /** * Valid input types that can be converted to a Duration. * + * **When to use** + * + * Use when an API should accept any value that Effect can convert into a + * `Duration`, including existing durations, millisecond numbers, nanosecond + * bigints, high-resolution tuples, duration strings, infinity strings, or + * duration objects. + * + * **Details** + * * String inputs accept values like `"10 seconds"`, `"500 millis"`, - * `"Infinity"`, and `"-Infinity"`. + * `"Infinity"`, and `"-Infinity"`. Finite fractional values that are + * normalized to nanoseconds are rounded to the nearest nanosecond, with ties + * away from zero. + * + * @see {@link fromInput} for safe conversion to `Option` + * @see {@link fromInputUnsafe} for throwing conversion + * @see {@link DurationObject} for object-shaped duration input + * @see {@link Unit} for supported string units * - * @since 2.0.0 * @category models + * @since 4.0.0 */ export type Input = Duration | number | bigint | readonly [seconds: number, nanos: number] | `${number} ${Unit}` | "Infinity" | "-Infinity" | DurationObject; /** * An object with optional duration components that can be combined to create * a Duration. All fields are optional and additive. * + * **Details** + * * Compatible with Temporal.Duration-like objects. * - * @example + * **Example** (Combining duration object fields) + * * ```ts * import { Duration } from "effect" * @@ -82,8 +129,8 @@ export type Input = Duration | number | bigint | readonly [seconds: number, nano * Duration.fromInputUnsafe({ seconds: 1, nanoseconds: 500 }) * ``` * - * @since 4.0.0 * @category models + * @since 4.0.0 */ export interface DurationObject { readonly weeks?: number | undefined; @@ -98,9 +145,17 @@ export interface DurationObject { /** * Decodes a `Duration.Input` into a `Duration`. * + * **When to use** + * + * Use when the input has already been validated or comes from a trusted source + * and throwing is acceptable for invalid duration syntax. + * + * **Gotchas** + * * If the input is not a valid `Duration.Input`, it throws an error. * - * @example + * **Example** (Decoding duration inputs) + * * ```ts * import { Duration } from "effect" * @@ -110,15 +165,15 @@ export interface DurationObject { * const duration4 = Duration.fromInputUnsafe([2, 500_000_000]) // 2 seconds and 500ms * ``` * - * @since 2.0.0 * @category constructors + * @since 4.0.0 */ export declare const fromInputUnsafe: (input: Input) => Duration; /** - * Safely decodes a `Input` value into a `Duration`, returning + * Decodes a `Input` value into a `Duration` safely, returning * `Option.none()` if decoding fails. * - * **Example** + * **Example** (Safely decoding duration inputs) * * ```ts * import { Duration, Option } from "effect" @@ -133,9 +188,10 @@ export declare const fromInputUnsafe: (input: Input) => Duration; */ export declare const fromInput: (u: Input) => Option.Option; /** - * Checks if a value is a Duration. + * Checks whether a value is a Duration. + * + * **Example** (Checking for durations) * - * @example * ```ts * import { Duration } from "effect" * @@ -143,14 +199,15 @@ export declare const fromInput: (u: Input) => Option.Option; * console.log(Duration.isDuration(1000)) // false * ``` * - * @since 2.0.0 * @category guards + * @since 2.0.0 */ export declare const isDuration: (u: unknown) => u is Duration; /** - * Checks if a Duration is finite (not infinite). + * Checks whether a Duration is finite (not infinite). + * + * **Example** (Checking finite durations) * - * @example * ```ts * import { Duration } from "effect" * @@ -158,14 +215,15 @@ export declare const isDuration: (u: unknown) => u is Duration; * console.log(Duration.isFinite(Duration.infinity)) // false * ``` * - * @since 2.0.0 * @category guards + * @since 2.0.0 */ export declare const isFinite: (self: Duration) => boolean; /** - * Checks if a Duration is zero. + * Checks whether a Duration is zero. + * + * **Example** (Checking for zero durations) * - * @example * ```ts * import { Duration } from "effect" * @@ -173,14 +231,15 @@ export declare const isFinite: (self: Duration) => boolean; * console.log(Duration.isZero(Duration.seconds(1))) // false * ``` * - * @since 3.5.0 * @category guards + * @since 3.5.0 */ export declare const isZero: (self: Duration) => boolean; /** * Returns `true` if the duration is negative (strictly less than zero). * - * @example + * **Example** (Checking for negative durations) + * * ```ts * import { Duration } from "effect" * @@ -189,14 +248,15 @@ export declare const isZero: (self: Duration) => boolean; * console.log(Duration.isNegative(Duration.negativeInfinity)) // true * ``` * - * @since 4.0.0 * @category guards + * @since 4.0.0 */ export declare const isNegative: (self: Duration) => boolean; /** * Returns `true` if the duration is positive (strictly greater than zero). * - * @example + * **Example** (Checking for positive durations) + * * ```ts * import { Duration } from "effect" * @@ -205,14 +265,15 @@ export declare const isNegative: (self: Duration) => boolean; * console.log(Duration.isPositive(Duration.infinity)) // true * ``` * - * @since 4.0.0 * @category guards + * @since 4.0.0 */ export declare const isPositive: (self: Duration) => boolean; /** * Returns the absolute value of the duration. * - * @example + * **Example** (Taking absolute duration values) + * * ```ts * import { Duration } from "effect" * @@ -220,14 +281,15 @@ export declare const isPositive: (self: Duration) => boolean; * Duration.abs(Duration.negativeInfinity) === Duration.infinity // true * ``` * - * @since 4.0.0 * @category math + * @since 4.0.0 */ export declare const abs: (self: Duration) => Duration; /** - * Negates the duration. + * Returns the negated duration. + * + * **Example** (Negating durations) * - * @example * ```ts * import { Duration } from "effect" * @@ -235,56 +297,60 @@ export declare const abs: (self: Duration) => Duration; * Duration.negate(Duration.infinity) === Duration.negativeInfinity // true * ``` * - * @since 4.0.0 * @category math + * @since 4.0.0 */ export declare const negate: (self: Duration) => Duration; /** * A Duration representing zero time. * - * @example + * **Example** (Using the zero duration) + * * ```ts * import { Duration } from "effect" * * console.log(Duration.toMillis(Duration.zero)) // 0 * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export declare const zero: Duration; /** * A Duration representing infinite time. * - * @example + * **Example** (Using infinite duration) + * * ```ts * import { Duration } from "effect" * * console.log(Duration.toMillis(Duration.infinity)) // Infinity * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export declare const infinity: Duration; /** * A Duration representing negative infinite time. * - * @example + * **Example** (Using negative infinite duration) + * * ```ts * import { Duration } from "effect" * * console.log(Duration.toMillis(Duration.negativeInfinity)) // -Infinity * ``` * - * @since 4.0.0 * @category constructors + * @since 4.0.0 */ export declare const negativeInfinity: Duration; /** * Creates a Duration from nanoseconds. * - * @example + * **Example** (Creating durations from nanoseconds) + * * ```ts * import { Duration } from "effect" * @@ -292,14 +358,15 @@ export declare const negativeInfinity: Duration; * console.log(Duration.toMillis(duration)) // 500 * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export declare const nanos: (nanos: bigint) => Duration; /** * Creates a Duration from microseconds. * - * @example + * **Example** (Creating durations from microseconds) + * * ```ts * import { Duration } from "effect" * @@ -307,14 +374,15 @@ export declare const nanos: (nanos: bigint) => Duration; * console.log(Duration.toMillis(duration)) // 500 * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export declare const micros: (micros: bigint) => Duration; /** * Creates a Duration from milliseconds. * - * @example + * **Example** (Creating durations from milliseconds) + * * ```ts * import { Duration } from "effect" * @@ -322,14 +390,15 @@ export declare const micros: (micros: bigint) => Duration; * console.log(Duration.toMillis(duration)) // 1000 * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export declare const millis: (millis: number) => Duration; /** * Creates a Duration from seconds. * - * @example + * **Example** (Creating durations from seconds) + * * ```ts * import { Duration } from "effect" * @@ -337,14 +406,15 @@ export declare const millis: (millis: number) => Duration; * console.log(Duration.toMillis(duration)) // 30000 * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export declare const seconds: (seconds: number) => Duration; /** * Creates a Duration from minutes. * - * @example + * **Example** (Creating durations from minutes) + * * ```ts * import { Duration } from "effect" * @@ -352,14 +422,15 @@ export declare const seconds: (seconds: number) => Duration; * console.log(Duration.toMillis(duration)) // 300000 * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export declare const minutes: (minutes: number) => Duration; /** * Creates a Duration from hours. * - * @example + * **Example** (Creating durations from hours) + * * ```ts * import { Duration } from "effect" * @@ -367,14 +438,15 @@ export declare const minutes: (minutes: number) => Duration; * console.log(Duration.toMillis(duration)) // 7200000 * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export declare const hours: (hours: number) => Duration; /** * Creates a Duration from days. * - * @example + * **Example** (Creating durations from days) + * * ```ts * import { Duration } from "effect" * @@ -382,14 +454,15 @@ export declare const hours: (hours: number) => Duration; * console.log(Duration.toMillis(duration)) // 86400000 * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export declare const days: (days: number) => Duration; /** * Creates a Duration from weeks. * - * @example + * **Example** (Creating durations from weeks) + * * ```ts * import { Duration } from "effect" * @@ -397,14 +470,15 @@ export declare const days: (days: number) => Duration; * console.log(Duration.toMillis(duration)) // 604800000 * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export declare const weeks: (weeks: number) => Duration; /** * Converts a Duration to milliseconds. * - * @example + * **Example** (Converting durations to milliseconds) + * * ```ts * import { Duration } from "effect" * @@ -412,14 +486,15 @@ export declare const weeks: (weeks: number) => Duration; * console.log(Duration.toMillis(Duration.minutes(2))) // 120000 * ``` * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ export declare const toMillis: (self: Input) => number; /** * Converts a Duration to seconds. * - * @example + * **Example** (Converting durations to seconds) + * * ```ts * import { Duration } from "effect" * @@ -427,14 +502,15 @@ export declare const toMillis: (self: Input) => number; * console.log(Duration.toSeconds(Duration.minutes(2))) // 120 * ``` * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ export declare const toSeconds: (self: Input) => number; /** * Converts a Duration to minutes. * - * @example + * **Example** (Converting durations to minutes) + * * ```ts * import { Duration } from "effect" * @@ -442,14 +518,15 @@ export declare const toSeconds: (self: Input) => number; * console.log(Duration.toMinutes(Duration.hours(1))) // 60 * ``` * - * @since 3.8.0 * @category getters + * @since 3.8.0 */ export declare const toMinutes: (self: Input) => number; /** * Converts a Duration to hours. * - * @example + * **Example** (Converting durations to hours) + * * ```ts * import { Duration } from "effect" * @@ -457,14 +534,15 @@ export declare const toMinutes: (self: Input) => number; * console.log(Duration.toHours(Duration.days(1))) // 24 * ``` * - * @since 3.8.0 * @category getters + * @since 3.8.0 */ export declare const toHours: (self: Input) => number; /** * Converts a Duration to days. * - * @example + * **Example** (Converting durations to days) + * * ```ts * import { Duration } from "effect" * @@ -472,14 +550,15 @@ export declare const toHours: (self: Input) => number; * console.log(Duration.toDays(Duration.weeks(1))) // 7 * ``` * - * @since 3.8.0 * @category getters + * @since 3.8.0 */ export declare const toDays: (self: Input) => number; /** * Converts a Duration to weeks. * - * @example + * **Example** (Converting durations to weeks) + * * ```ts * import { Duration } from "effect" * @@ -487,16 +566,29 @@ export declare const toDays: (self: Input) => number; * console.log(Duration.toWeeks(Duration.days(7))) // 1 * ``` * - * @since 3.8.0 * @category getters + * @since 3.8.0 */ export declare const toWeeks: (self: Input) => number; /** - * Get the duration in nanoseconds as a bigint. + * Gets the duration in nanoseconds as a bigint. + * + * **When to use** + * + * Use when the duration is known to be finite and you need the nanosecond value + * as a `bigint`. + * + * **Details** + * + * Millisecond-backed fractional durations are rounded to the nearest + * nanosecond, with ties away from zero. + * + * **Gotchas** * * If the duration is infinite, it throws an error. * - * @example + * **Example** (Reading nanoseconds unsafely) + * * ```ts * import { Duration } from "effect" * @@ -504,24 +596,22 @@ export declare const toWeeks: (self: Input) => number; * const nanos = Duration.toNanosUnsafe(duration) * console.log(nanos) // 2000000000n * - * // This will throw an error - * try { - * Duration.toNanosUnsafe(Duration.infinity) - * } catch (error) { - * console.log((error as Error).message) // "Cannot convert infinite duration to nanos" - * } + * // Duration.toNanosUnsafe(Duration.infinity) + * // throws Error: "Cannot convert infinite duration to nanos" * ``` * - * @since 2.0.0 * @category getters + * @since 4.0.0 */ export declare const toNanosUnsafe: (input: Input) => bigint; /** - * Get the duration in nanoseconds as a bigint. + * Gets the duration in nanoseconds safely as an `Option`. + * + * **Details** * * If the duration is infinite, returns `Option.none()`. * - * **Example** + * **Example** (Safely reading nanoseconds) * * ```ts * import { Duration, Option } from "effect" @@ -533,13 +623,14 @@ export declare const toNanosUnsafe: (input: Input) => bigint; * ``` * * @category getters - * @since 4.0.0 + * @since 2.0.0 */ export declare const toNanos: (self: Input) => Option.Option; /** * Converts a Duration to high-resolution time format [seconds, nanoseconds]. * - * @example + * **Example** (Converting durations to high-resolution time) + * * ```ts * import { Duration } from "effect" * @@ -548,14 +639,21 @@ export declare const toNanos: (self: Input) => Option.Option; * console.log(hrtime) // [1, 500000000] * ``` * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ export declare const toHrTime: (input: Input) => [seconds: number, nanos: number]; /** - * Pattern matches on a Duration, providing different handlers for millis and nanos. + * Pattern matches on the representation of a `Duration`. + * + * **Details** + * + * Provide handlers for millisecond-backed values, nanosecond-backed values, + * and positive infinity. Use `onNegativeInfinity` to handle negative infinity + * separately; otherwise negative infinity is handled by `onInfinity`. + * + * **Example** (Pattern matching on duration representations) * - * @example * ```ts * import { Duration } from "effect" * @@ -567,14 +665,21 @@ export declare const toHrTime: (input: Input) => [seconds: number, nanos: number * console.log(result) // "5000 milliseconds" * ``` * - * @since 2.0.0 * @category pattern matching + * @since 2.0.0 */ export declare const match: { /** - * Pattern matches on a Duration, providing different handlers for millis and nanos. + * Pattern matches on the representation of a `Duration`. + * + * **Details** + * + * Provide handlers for millisecond-backed values, nanosecond-backed values, + * and positive infinity. Use `onNegativeInfinity` to handle negative infinity + * separately; otherwise negative infinity is handled by `onInfinity`. + * + * **Example** (Pattern matching on duration representations) * - * @example * ```ts * import { Duration } from "effect" * @@ -586,8 +691,8 @@ export declare const match: { * console.log(result) // "5000 milliseconds" * ``` * - * @since 2.0.0 * @category pattern matching + * @since 2.0.0 */ (options: { readonly onMillis: (millis: number) => A; @@ -596,9 +701,16 @@ export declare const match: { readonly onNegativeInfinity?: () => D; }): (self: Duration) => A | B | C | D; /** - * Pattern matches on a Duration, providing different handlers for millis and nanos. + * Pattern matches on the representation of a `Duration`. + * + * **Details** + * + * Provide handlers for millisecond-backed values, nanosecond-backed values, + * and positive infinity. Use `onNegativeInfinity` to handle negative infinity + * separately; otherwise negative infinity is handled by `onInfinity`. + * + * **Example** (Pattern matching on duration representations) * - * @example * ```ts * import { Duration } from "effect" * @@ -610,8 +722,8 @@ export declare const match: { * console.log(result) // "5000 milliseconds" * ``` * - * @since 2.0.0 * @category pattern matching + * @since 2.0.0 */ (self: Duration, options: { readonly onMillis: (millis: number) => A; @@ -623,7 +735,8 @@ export declare const match: { /** * Pattern matches on two `Duration`s, providing handlers that receive both values. * - * @example + * **Example** (Pattern matching on duration pairs) + * * ```ts * import { Duration } from "effect" * @@ -635,14 +748,15 @@ export declare const match: { * console.log(sum) // 5000 * ``` * - * @since 2.0.0 * @category pattern matching + * @since 4.0.0 */ export declare const matchPair: { /** * Pattern matches on two `Duration`s, providing handlers that receive both values. * - * @example + * **Example** (Pattern matching on duration pairs) + * * ```ts * import { Duration } from "effect" * @@ -654,8 +768,8 @@ export declare const matchPair: { * console.log(sum) // 5000 * ``` * - * @since 2.0.0 * @category pattern matching + * @since 4.0.0 */ (that: Duration, options: { readonly onMillis: (self: number, that: number) => A; @@ -665,7 +779,8 @@ export declare const matchPair: { /** * Pattern matches on two `Duration`s, providing handlers that receive both values. * - * @example + * **Example** (Pattern matching on duration pairs) + * * ```ts * import { Duration } from "effect" * @@ -677,8 +792,8 @@ export declare const matchPair: { * console.log(sum) // 5000 * ``` * - * @since 2.0.0 * @category pattern matching + * @since 4.0.0 */ (self: Duration, that: Duration, options: { readonly onMillis: (self: number, that: number) => A; @@ -687,11 +802,14 @@ export declare const matchPair: { }): A | B | C; }; /** - * Order instance for `Duration`, allowing comparison operations. + * Provides an `Order` instance for comparing `Duration` values. + * + * **Details** * * `NegativeInfinity` < any finite value < `Infinity`. * - * @example + * **Example** (Sorting durations) + * * ```ts * import { Duration } from "effect" * @@ -709,9 +827,24 @@ export declare const matchPair: { */ export declare const Order: order.Order; /** - * Checks if a `Duration` is between a `minimum` and `maximum` value. + * Returns `true` if a `Duration` is greater than or equal to `minimum` and + * less than or equal to `maximum`, according to `Duration.Order`. + * + * **When to use** + * + * Use to test whether a duration is inside an inclusive range. + * + * **Details** + * + * Both bounds are inclusive and compared with `Duration.Order`. + * + * **Gotchas** + * + * The bounds are not normalized. If `minimum` is greater than `maximum`, the + * predicate returns `false` for every duration. + * + * **Example** (Checking duration ranges) * - * @example * ```ts * import { Duration } from "effect" * @@ -722,14 +855,33 @@ export declare const Order: order.Order; * console.log(isInRange) // true * ``` * + * @see {@link clamp} for constraining a duration to a range + * @see {@link isGreaterThanOrEqualTo} for checking only the lower bound + * @see {@link isLessThanOrEqualTo} for checking only the upper bound + * * @category predicates * @since 2.0.0 */ export declare const between: { /** - * Checks if a `Duration` is between a `minimum` and `maximum` value. + * Returns `true` if a `Duration` is greater than or equal to `minimum` and + * less than or equal to `maximum`, according to `Duration.Order`. + * + * **When to use** + * + * Use to test whether a duration is inside an inclusive range. + * + * **Details** + * + * Both bounds are inclusive and compared with `Duration.Order`. + * + * **Gotchas** + * + * The bounds are not normalized. If `minimum` is greater than `maximum`, the + * predicate returns `false` for every duration. + * + * **Example** (Checking duration ranges) * - * @example * ```ts * import { Duration } from "effect" * @@ -740,6 +892,10 @@ export declare const between: { * console.log(isInRange) // true * ``` * + * @see {@link clamp} for constraining a duration to a range + * @see {@link isGreaterThanOrEqualTo} for checking only the lower bound + * @see {@link isLessThanOrEqualTo} for checking only the upper bound + * * @category predicates * @since 2.0.0 */ @@ -748,9 +904,24 @@ export declare const between: { maximum: Duration; }): (self: Duration) => boolean; /** - * Checks if a `Duration` is between a `minimum` and `maximum` value. + * Returns `true` if a `Duration` is greater than or equal to `minimum` and + * less than or equal to `maximum`, according to `Duration.Order`. + * + * **When to use** + * + * Use to test whether a duration is inside an inclusive range. + * + * **Details** + * + * Both bounds are inclusive and compared with `Duration.Order`. + * + * **Gotchas** + * + * The bounds are not normalized. If `minimum` is greater than `maximum`, the + * predicate returns `false` for every duration. + * + * **Example** (Checking duration ranges) * - * @example * ```ts * import { Duration } from "effect" * @@ -761,6 +932,10 @@ export declare const between: { * console.log(isInRange) // true * ``` * + * @see {@link clamp} for constraining a duration to a range + * @see {@link isGreaterThanOrEqualTo} for checking only the lower bound + * @see {@link isLessThanOrEqualTo} for checking only the upper bound + * * @category predicates * @since 2.0.0 */ @@ -770,9 +945,10 @@ export declare const between: { }): boolean; }; /** - * Equivalence instance for `Duration`, allowing equality comparisons. + * Provides an `Equivalence` instance for comparing `Duration` values. + * + * **Example** (Comparing durations for equivalence) * - * @example * ```ts * import { Duration } from "effect" * @@ -787,7 +963,8 @@ export declare const Equivalence: Equ.Equivalence; /** * Returns the smaller of two Durations. * - * @example + * **Example** (Selecting the shorter duration) + * * ```ts * import { Duration } from "effect" * @@ -795,14 +972,15 @@ export declare const Equivalence: Equ.Equivalence; * console.log(Duration.toSeconds(shorter)) // 3 * ``` * + * @category ordering * @since 2.0.0 - * @category order */ export declare const min: { /** * Returns the smaller of two Durations. * - * @example + * **Example** (Selecting the shorter duration) + * * ```ts * import { Duration } from "effect" * @@ -810,14 +988,15 @@ export declare const min: { * console.log(Duration.toSeconds(shorter)) // 3 * ``` * + * @category ordering * @since 2.0.0 - * @category order */ (that: Duration): (self: Duration) => Duration; /** * Returns the smaller of two Durations. * - * @example + * **Example** (Selecting the shorter duration) + * * ```ts * import { Duration } from "effect" * @@ -825,15 +1004,16 @@ export declare const min: { * console.log(Duration.toSeconds(shorter)) // 3 * ``` * + * @category ordering * @since 2.0.0 - * @category order */ (self: Duration, that: Duration): Duration; }; /** * Returns the larger of two Durations. * - * @example + * **Example** (Selecting the longer duration) + * * ```ts * import { Duration } from "effect" * @@ -841,14 +1021,15 @@ export declare const min: { * console.log(Duration.toSeconds(longer)) // 5 * ``` * + * @category ordering * @since 2.0.0 - * @category order */ export declare const max: { /** * Returns the larger of two Durations. * - * @example + * **Example** (Selecting the longer duration) + * * ```ts * import { Duration } from "effect" * @@ -856,14 +1037,15 @@ export declare const max: { * console.log(Duration.toSeconds(longer)) // 5 * ``` * + * @category ordering * @since 2.0.0 - * @category order */ (that: Duration): (self: Duration) => Duration; /** * Returns the larger of two Durations. * - * @example + * **Example** (Selecting the longer duration) + * * ```ts * import { Duration } from "effect" * @@ -871,15 +1053,16 @@ export declare const max: { * console.log(Duration.toSeconds(longer)) // 5 * ``` * + * @category ordering * @since 2.0.0 - * @category order */ (self: Duration, that: Duration): Duration; }; /** - * Clamps a Duration between a minimum and maximum value. + * Returns a `Duration` constrained between a minimum and maximum value. + * + * **Example** (Clamping durations to a range) * - * @example * ```ts * import { Duration } from "effect" * @@ -890,14 +1073,15 @@ export declare const max: { * console.log(Duration.toSeconds(clamped)) // 5 * ``` * + * @category ordering * @since 2.0.0 - * @category order */ export declare const clamp: { /** - * Clamps a Duration between a minimum and maximum value. + * Returns a `Duration` constrained between a minimum and maximum value. + * + * **Example** (Clamping durations to a range) * - * @example * ```ts * import { Duration } from "effect" * @@ -908,17 +1092,18 @@ export declare const clamp: { * console.log(Duration.toSeconds(clamped)) // 5 * ``` * + * @category ordering * @since 2.0.0 - * @category order */ (options: { minimum: Duration; maximum: Duration; }): (self: Duration) => Duration; /** - * Clamps a Duration between a minimum and maximum value. + * Returns a `Duration` constrained between a minimum and maximum value. + * + * **Example** (Clamping durations to a range) * - * @example * ```ts * import { Duration } from "effect" * @@ -929,8 +1114,8 @@ export declare const clamp: { * console.log(Duration.toSeconds(clamped)) // 5 * ``` * + * @category ordering * @since 2.0.0 - * @category order */ (self: Duration, options: { minimum: Duration; @@ -938,9 +1123,15 @@ export declare const clamp: { }): Duration; }; /** - * Divides a Duration by a number, returning `Option.none()` if division is invalid. + * Divides a `Duration` by a finite, non-zero number safely. + * + * **Details** * - * **Example** + * Returns `Option.none()` for zero, negative zero, or non-finite divisors. For + * nanosecond-backed durations, also returns `Option.none()` when the divisor + * cannot be converted to a `bigint`, such as a fractional divisor. + * + * **Example** (Safely dividing durations) * * ```ts * import { Duration, Option } from "effect" @@ -951,14 +1142,20 @@ export declare const clamp: { * Duration.divide(Duration.seconds(10), 0) // None * ``` * - * @since 4.0.0 * @category math + * @since 2.4.19 */ export declare const divide: { /** - * Divides a Duration by a number, returning `Option.none()` if division is invalid. + * Divides a `Duration` by a finite, non-zero number safely. + * + * **Details** + * + * Returns `Option.none()` for zero, negative zero, or non-finite divisors. For + * nanosecond-backed durations, also returns `Option.none()` when the divisor + * cannot be converted to a `bigint`, such as a fractional divisor. * - * **Example** + * **Example** (Safely dividing durations) * * ```ts * import { Duration, Option } from "effect" @@ -969,14 +1166,20 @@ export declare const divide: { * Duration.divide(Duration.seconds(10), 0) // None * ``` * - * @since 4.0.0 * @category math + * @since 2.4.19 */ (by: number): (self: Duration) => Option.Option; /** - * Divides a Duration by a number, returning `Option.none()` if division is invalid. + * Divides a `Duration` by a finite, non-zero number safely. * - * **Example** + * **Details** + * + * Returns `Option.none()` for zero, negative zero, or non-finite divisors. For + * nanosecond-backed durations, also returns `Option.none()` when the divisor + * cannot be converted to a `bigint`, such as a fractional divisor. + * + * **Example** (Safely dividing durations) * * ```ts * import { Duration, Option } from "effect" @@ -987,15 +1190,30 @@ export declare const divide: { * Duration.divide(Duration.seconds(10), 0) // None * ``` * - * @since 4.0.0 * @category math + * @since 2.4.19 */ (self: Duration, by: number): Option.Option; }; /** - * Divides a Duration by a number, potentially returning infinity or zero. + * Divides a `Duration` by a number using fallback rules instead of returning + * an `Option`. + * + * **When to use** + * + * Use when dividing a `Duration` should return `Duration.zero` or signed + * infinity for invalid cases instead of forcing callers to handle `Option.none`. + * + * **Details** + * + * Non-finite divisors return `Duration.zero`. Division by positive or negative + * zero can produce signed infinity for non-zero finite durations, while zero + * or infinite durations divided by zero produce `Duration.zero`. + * Nanosecond-backed durations return `Duration.zero` when the divisor cannot + * be converted to a `bigint`. + * + * **Example** (Dividing durations unsafely) * - * @example * ```ts * import { Duration } from "effect" * @@ -1006,14 +1224,29 @@ export declare const divide: { * console.log(Duration.toMillis(infinite)) // Infinity * ``` * - * @since 2.4.19 * @category math + * @since 4.0.0 */ export declare const divideUnsafe: { /** - * Divides a Duration by a number, potentially returning infinity or zero. + * Divides a `Duration` by a number using fallback rules instead of returning + * an `Option`. + * + * **When to use** + * + * Use when dividing a `Duration` should return `Duration.zero` or signed + * infinity for invalid cases instead of forcing callers to handle `Option.none`. + * + * **Details** + * + * Non-finite divisors return `Duration.zero`. Division by positive or negative + * zero can produce signed infinity for non-zero finite durations, while zero + * or infinite durations divided by zero produce `Duration.zero`. + * Nanosecond-backed durations return `Duration.zero` when the divisor cannot + * be converted to a `bigint`. + * + * **Example** (Dividing durations unsafely) * - * @example * ```ts * import { Duration } from "effect" * @@ -1024,14 +1257,29 @@ export declare const divideUnsafe: { * console.log(Duration.toMillis(infinite)) // Infinity * ``` * - * @since 2.4.19 * @category math + * @since 4.0.0 */ (by: number): (self: Duration) => Duration; /** - * Divides a Duration by a number, potentially returning infinity or zero. + * Divides a `Duration` by a number using fallback rules instead of returning + * an `Option`. + * + * **When to use** + * + * Use when dividing a `Duration` should return `Duration.zero` or signed + * infinity for invalid cases instead of forcing callers to handle `Option.none`. + * + * **Details** + * + * Non-finite divisors return `Duration.zero`. Division by positive or negative + * zero can produce signed infinity for non-zero finite durations, while zero + * or infinite durations divided by zero produce `Duration.zero`. + * Nanosecond-backed durations return `Duration.zero` when the divisor cannot + * be converted to a `bigint`. + * + * **Example** (Dividing durations unsafely) * - * @example * ```ts * import { Duration } from "effect" * @@ -1042,15 +1290,23 @@ export declare const divideUnsafe: { * console.log(Duration.toMillis(infinite)) // Infinity * ``` * - * @since 2.4.19 * @category math + * @since 4.0.0 */ (self: Duration, by: number): Duration; }; /** - * Multiplies a Duration by a number. + * Returns a `Duration` multiplied by a number. + * + * **Details** + * + * For nanosecond-backed durations, the multiplier must be convertible to a + * `bigint`; fractional or non-finite multipliers can throw. Infinite + * durations return positive infinity, negative infinity, or zero depending on + * the multiplier sign. + * + * **Example** (Multiplying durations) * - * @example * ```ts * import { Duration } from "effect" * @@ -1058,14 +1314,22 @@ export declare const divideUnsafe: { * console.log(Duration.toSeconds(doubled)) // 10 * ``` * - * @since 2.0.0 * @category math + * @since 2.0.0 */ export declare const times: { /** - * Multiplies a Duration by a number. + * Returns a `Duration` multiplied by a number. + * + * **Details** + * + * For nanosecond-backed durations, the multiplier must be convertible to a + * `bigint`; fractional or non-finite multipliers can throw. Infinite + * durations return positive infinity, negative infinity, or zero depending on + * the multiplier sign. + * + * **Example** (Multiplying durations) * - * @example * ```ts * import { Duration } from "effect" * @@ -1073,14 +1337,22 @@ export declare const times: { * console.log(Duration.toSeconds(doubled)) // 10 * ``` * - * @since 2.0.0 * @category math + * @since 2.0.0 */ (times: number): (self: Duration) => Duration; /** - * Multiplies a Duration by a number. + * Returns a `Duration` multiplied by a number. + * + * **Details** + * + * For nanosecond-backed durations, the multiplier must be convertible to a + * `bigint`; fractional or non-finite multipliers can throw. Infinite + * durations return positive infinity, negative infinity, or zero depending on + * the multiplier sign. + * + * **Example** (Multiplying durations) * - * @example * ```ts * import { Duration } from "effect" * @@ -1088,25 +1360,25 @@ export declare const times: { * console.log(Duration.toSeconds(doubled)) // 10 * ``` * - * @since 2.0.0 * @category math + * @since 2.0.0 */ (self: Duration, times: number): Duration; }; /** * Subtracts one Duration from another. The result can be negative. * - * **Infinity Subtraction Rules** - * - infinity - infinity = 0 - * - infinity - negativeInfinity = infinity - * - infinity - finite = infinity - * - negativeInfinity - negativeInfinity = 0 - * - negativeInfinity - infinity = negativeInfinity - * - negativeInfinity - finite = negativeInfinity - * - finite - infinity = negativeInfinity - * - finite - negativeInfinity = infinity - * - * @example + * **Details** + * + * Infinity subtraction follows signed-infinity arithmetic. Subtracting the + * same infinity from itself returns zero. Positive infinity minus negative + * infinity or any finite duration remains positive infinity. Negative infinity + * minus positive infinity or any finite duration remains negative infinity. + * Finite durations minus positive infinity produce negative infinity, and + * finite durations minus negative infinity produce positive infinity. + * + * **Example** (Subtracting durations) + * * ```ts * import { Duration } from "effect" * @@ -1114,24 +1386,24 @@ export declare const times: { * console.log(Duration.toSeconds(result)) // 7 * ``` * - * @since 2.0.0 * @category math + * @since 2.0.0 */ export declare const subtract: { /** * Subtracts one Duration from another. The result can be negative. * - * **Infinity Subtraction Rules** - * - infinity - infinity = 0 - * - infinity - negativeInfinity = infinity - * - infinity - finite = infinity - * - negativeInfinity - negativeInfinity = 0 - * - negativeInfinity - infinity = negativeInfinity - * - negativeInfinity - finite = negativeInfinity - * - finite - infinity = negativeInfinity - * - finite - negativeInfinity = infinity - * - * @example + * **Details** + * + * Infinity subtraction follows signed-infinity arithmetic. Subtracting the + * same infinity from itself returns zero. Positive infinity minus negative + * infinity or any finite duration remains positive infinity. Negative infinity + * minus positive infinity or any finite duration remains negative infinity. + * Finite durations minus positive infinity produce negative infinity, and + * finite durations minus negative infinity produce positive infinity. + * + * **Example** (Subtracting durations) + * * ```ts * import { Duration } from "effect" * @@ -1139,24 +1411,24 @@ export declare const subtract: { * console.log(Duration.toSeconds(result)) // 7 * ``` * - * @since 2.0.0 * @category math + * @since 2.0.0 */ (that: Duration): (self: Duration) => Duration; /** * Subtracts one Duration from another. The result can be negative. * - * **Infinity Subtraction Rules** - * - infinity - infinity = 0 - * - infinity - negativeInfinity = infinity - * - infinity - finite = infinity - * - negativeInfinity - negativeInfinity = 0 - * - negativeInfinity - infinity = negativeInfinity - * - negativeInfinity - finite = negativeInfinity - * - finite - infinity = negativeInfinity - * - finite - negativeInfinity = infinity - * - * @example + * **Details** + * + * Infinity subtraction follows signed-infinity arithmetic. Subtracting the + * same infinity from itself returns zero. Positive infinity minus negative + * infinity or any finite duration remains positive infinity. Negative infinity + * minus positive infinity or any finite duration remains negative infinity. + * Finite durations minus positive infinity produce negative infinity, and + * finite durations minus negative infinity produce positive infinity. + * + * **Example** (Subtracting durations) + * * ```ts * import { Duration } from "effect" * @@ -1164,22 +1436,26 @@ export declare const subtract: { * console.log(Duration.toSeconds(result)) // 7 * ``` * - * @since 2.0.0 * @category math + * @since 2.0.0 */ (self: Duration, that: Duration): Duration; }; /** * Adds two Durations together. * - * **Infinity Addition Rules** + * **Details** + * + * Infinity addition follows these rules: + * * - infinity + infinity = infinity * - infinity + negativeInfinity = zero * - infinity + finite = infinity * - negativeInfinity + negativeInfinity = negativeInfinity * - negativeInfinity + finite = negativeInfinity * - * @example + * **Example** (Adding durations) + * * ```ts * import { Duration } from "effect" * @@ -1187,21 +1463,25 @@ export declare const subtract: { * console.log(Duration.toSeconds(total)) // 8 * ``` * - * @since 2.0.0 * @category math + * @since 2.0.0 */ export declare const sum: { /** * Adds two Durations together. * - * **Infinity Addition Rules** + * **Details** + * + * Infinity addition follows these rules: + * * - infinity + infinity = infinity * - infinity + negativeInfinity = zero * - infinity + finite = infinity * - negativeInfinity + negativeInfinity = negativeInfinity * - negativeInfinity + finite = negativeInfinity * - * @example + * **Example** (Adding durations) + * * ```ts * import { Duration } from "effect" * @@ -1209,21 +1489,25 @@ export declare const sum: { * console.log(Duration.toSeconds(total)) // 8 * ``` * - * @since 2.0.0 * @category math + * @since 2.0.0 */ (that: Duration): (self: Duration) => Duration; /** * Adds two Durations together. * - * **Infinity Addition Rules** + * **Details** + * + * Infinity addition follows these rules: + * * - infinity + infinity = infinity * - infinity + negativeInfinity = zero * - infinity + finite = infinity * - negativeInfinity + negativeInfinity = negativeInfinity * - negativeInfinity + finite = negativeInfinity * - * @example + * **Example** (Adding durations) + * * ```ts * import { Duration } from "effect" * @@ -1231,15 +1515,16 @@ export declare const sum: { * console.log(Duration.toSeconds(total)) // 8 * ``` * - * @since 2.0.0 * @category math + * @since 2.0.0 */ (self: Duration, that: Duration): Duration; }; /** - * Checks if the first Duration is less than the second. + * Checks whether the first Duration is less than the second. + * + * **Example** (Comparing durations with less than) * - * @example * ```ts * import { Duration } from "effect" * @@ -1247,14 +1532,15 @@ export declare const sum: { * console.log(isLess) // true * ``` * - * @since 2.0.0 * @category predicates + * @since 4.0.0 */ export declare const isLessThan: { /** - * Checks if the first Duration is less than the second. + * Checks whether the first Duration is less than the second. + * + * **Example** (Comparing durations with less than) * - * @example * ```ts * import { Duration } from "effect" * @@ -1262,14 +1548,15 @@ export declare const isLessThan: { * console.log(isLess) // true * ``` * - * @since 2.0.0 * @category predicates + * @since 4.0.0 */ (that: Duration): (self: Duration) => boolean; /** - * Checks if the first Duration is less than the second. + * Checks whether the first Duration is less than the second. + * + * **Example** (Comparing durations with less than) * - * @example * ```ts * import { Duration } from "effect" * @@ -1277,15 +1564,16 @@ export declare const isLessThan: { * console.log(isLess) // true * ``` * - * @since 2.0.0 * @category predicates + * @since 4.0.0 */ (self: Duration, that: Duration): boolean; }; /** - * Checks if the first Duration is less than or equal to the second. + * Checks whether the first Duration is less than or equal to the second. + * + * **Example** (Comparing durations with less than or equal) * - * @example * ```ts * import { Duration } from "effect" * @@ -1296,14 +1584,15 @@ export declare const isLessThan: { * console.log(isLessOrEqual) // true * ``` * - * @since 2.0.0 * @category predicates + * @since 4.0.0 */ export declare const isLessThanOrEqualTo: { /** - * Checks if the first Duration is less than or equal to the second. + * Checks whether the first Duration is less than or equal to the second. + * + * **Example** (Comparing durations with less than or equal) * - * @example * ```ts * import { Duration } from "effect" * @@ -1314,14 +1603,15 @@ export declare const isLessThanOrEqualTo: { * console.log(isLessOrEqual) // true * ``` * - * @since 2.0.0 * @category predicates + * @since 4.0.0 */ (that: Duration): (self: Duration) => boolean; /** - * Checks if the first Duration is less than or equal to the second. + * Checks whether the first Duration is less than or equal to the second. + * + * **Example** (Comparing durations with less than or equal) * - * @example * ```ts * import { Duration } from "effect" * @@ -1332,15 +1622,16 @@ export declare const isLessThanOrEqualTo: { * console.log(isLessOrEqual) // true * ``` * - * @since 2.0.0 * @category predicates + * @since 4.0.0 */ (self: Duration, that: Duration): boolean; }; /** - * Checks if the first Duration is greater than the second. + * Checks whether the first Duration is greater than the second. + * + * **Example** (Comparing durations with greater than) * - * @example * ```ts * import { Duration } from "effect" * @@ -1348,14 +1639,15 @@ export declare const isLessThanOrEqualTo: { * console.log(isGreater) // true * ``` * - * @since 2.0.0 * @category predicates + * @since 4.0.0 */ export declare const isGreaterThan: { /** - * Checks if the first Duration is greater than the second. + * Checks whether the first Duration is greater than the second. + * + * **Example** (Comparing durations with greater than) * - * @example * ```ts * import { Duration } from "effect" * @@ -1363,14 +1655,15 @@ export declare const isGreaterThan: { * console.log(isGreater) // true * ``` * - * @since 2.0.0 * @category predicates + * @since 4.0.0 */ (that: Duration): (self: Duration) => boolean; /** - * Checks if the first Duration is greater than the second. + * Checks whether the first Duration is greater than the second. + * + * **Example** (Comparing durations with greater than) * - * @example * ```ts * import { Duration } from "effect" * @@ -1378,15 +1671,16 @@ export declare const isGreaterThan: { * console.log(isGreater) // true * ``` * - * @since 2.0.0 * @category predicates + * @since 4.0.0 */ (self: Duration, that: Duration): boolean; }; /** - * Checks if the first Duration is greater than or equal to the second. + * Checks whether the first Duration is greater than or equal to the second. + * + * **Example** (Comparing durations with greater than or equal) * - * @example * ```ts * import { Duration } from "effect" * @@ -1397,14 +1691,15 @@ export declare const isGreaterThan: { * console.log(isGreaterOrEqual) // true * ``` * - * @since 2.0.0 * @category predicates + * @since 4.0.0 */ export declare const isGreaterThanOrEqualTo: { /** - * Checks if the first Duration is greater than or equal to the second. + * Checks whether the first Duration is greater than or equal to the second. + * + * **Example** (Comparing durations with greater than or equal) * - * @example * ```ts * import { Duration } from "effect" * @@ -1415,14 +1710,15 @@ export declare const isGreaterThanOrEqualTo: { * console.log(isGreaterOrEqual) // true * ``` * - * @since 2.0.0 * @category predicates + * @since 4.0.0 */ (that: Duration): (self: Duration) => boolean; /** - * Checks if the first Duration is greater than or equal to the second. + * Checks whether the first Duration is greater than or equal to the second. + * + * **Example** (Comparing durations with greater than or equal) * - * @example * ```ts * import { Duration } from "effect" * @@ -1433,15 +1729,16 @@ export declare const isGreaterThanOrEqualTo: { * console.log(isGreaterOrEqual) // true * ``` * - * @since 2.0.0 * @category predicates + * @since 4.0.0 */ (self: Duration, that: Duration): boolean; }; /** - * Checks if two Durations are equal. + * Checks whether two Durations are equal. + * + * **Example** (Checking duration equality) * - * @example * ```ts * import { Duration } from "effect" * @@ -1449,14 +1746,15 @@ export declare const isGreaterThanOrEqualTo: { * console.log(isEqual) // true * ``` * - * @since 2.0.0 * @category predicates + * @since 2.0.0 */ export declare const equals: { /** - * Checks if two Durations are equal. + * Checks whether two Durations are equal. + * + * **Example** (Checking duration equality) * - * @example * ```ts * import { Duration } from "effect" * @@ -1464,14 +1762,15 @@ export declare const equals: { * console.log(isEqual) // true * ``` * - * @since 2.0.0 * @category predicates + * @since 2.0.0 */ (that: Duration): (self: Duration) => boolean; /** - * Checks if two Durations are equal. + * Checks whether two Durations are equal. + * + * **Example** (Checking duration equality) * - * @example * ```ts * import { Duration } from "effect" * @@ -1479,15 +1778,22 @@ export declare const equals: { * console.log(isEqual) // true * ``` * - * @since 2.0.0 * @category predicates + * @since 2.0.0 */ (self: Duration, that: Duration): boolean; }; /** - * Converts a `Duration` to its parts. + * Decomposes a `Duration` into normalized signed components. + * + * **Details** + * + * Finite durations are returned as `{ days, hours, minutes, seconds, millis, + * nanos }`. Infinite durations return every component as `Infinity` or + * `-Infinity`. + * + * **Example** (Decomposing durations into parts) * - * @example * ```ts * import { Duration } from "effect" * @@ -1523,8 +1829,8 @@ export declare const equals: { * // } * ``` * + * @category converting * @since 3.8.0 - * @category conversions */ export declare const parts: (self: Duration) => { days: number; @@ -1537,32 +1843,64 @@ export declare const parts: (self: Duration) => { /** * Converts a `Duration` to a human readable string. * - * @since 2.0.0 - * @category conversions - * @example + * **Example** (Formatting durations) + * * ```ts * import { Duration } from "effect" * * Duration.format(Duration.millis(1000)) // "1s" * Duration.format(Duration.millis(1001)) // "1s 1ms" * ``` + * + * @category converting + * @since 2.0.0 */ export declare const format: (self: Duration) => string; /** - * A `Reducer` for summing `Duration`s. + * Reducer for summing `Duration`s. + * + * **When to use** + * + * Use to sum many `Duration` values through APIs that consume a `Reducer`. + * + * **Details** + * + * `ReducerSum` uses `sum` and starts from `zero`, so `combineAll([])` returns + * `zero`. * + * @see {@link sum} for adding two duration values directly + * @see {@link CombinerMax} for keeping the longest duration instead of summing + * @see {@link CombinerMin} for keeping the shortest duration instead of summing + * + * @category math * @since 4.0.0 */ export declare const ReducerSum: Reducer.Reducer; /** - * A `Combiner` that returns the maximum `Duration`. + * Combiner that returns the maximum `Duration`. + * + * **When to use** + * + * Use to keep the longest `Duration` when an API consumes a `Combiner`. + * + * @see {@link CombinerMin} for keeping the shortest `Duration` + * @see {@link max} for comparing two `Duration` values directly * + * @category math * @since 4.0.0 */ export declare const CombinerMax: Combiner.Combiner; /** - * A `Combiner` that returns the minimum `Duration`. + * Combiner that returns the minimum `Duration`. + * + * **When to use** + * + * Use to keep the shortest `Duration` through APIs that consume a `Combiner`. * + * @see {@link CombinerMax} for keeping the longest `Duration` + * @see {@link min} for comparing two `Duration` values directly + * + * @category math * @since 4.0.0 */ export declare const CombinerMin: Combiner.Combiner; diff --git a/.opencode/node_modules/effect/dist/Duration.d.ts.map b/.opencode/node_modules/effect/dist/Duration.d.ts.map index 9e4834456aea715cb557db453930d6b38d42e5a3..9416c8ea3ce24d7326e6d533c94042abac848ba7 100644 --- a/.opencode/node_modules/effect/dist/Duration.d.ts.map +++ b/.opencode/node_modules/effect/dist/Duration.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Duration.d.ts","sourceRoot":"","sources":["../src/Duration.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAA;AACzC,OAAO,KAAK,KAAK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;;;GAgDG;AACH,eAAO,MAAM,KAAK,GAAI,MAAM,QAAQ,KAAG;IACrC,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;CAyCd,CAAA;AAED;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,MAAM,GAAI,MAAM,QAAQ,KAAG,MAyCvC,CAAA;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,UAAU,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAA2B,CAAA;AAE5E;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAuB,CAAA;AAE3E;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAuB,CAAA"} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Duration.js b/.opencode/node_modules/effect/dist/Duration.js index 7e4cbfdb7cc86ce2179ef61c746b8d04ea8e5eeb..a4f18b44ff1da05264f5bf1b41b42e541f45f540 100644 --- a/.opencode/node_modules/effect/dist/Duration.js +++ b/.opencode/node_modules/effect/dist/Duration.js @@ -1,15 +1,11 @@ /** - * This module provides utilities for working with durations of time. A `Duration` - * is an immutable data type that represents a span of time with high precision, - * supporting operations from nanoseconds to weeks. - * - * Durations support: - * - **High precision**: Nanosecond-level accuracy using BigInt - * - **Multiple formats**: Numbers (millis), BigInt (nanos), tuples, strings - * - **Arithmetic operations**: Add, subtract, multiply, divide - * - **Comparisons**: Equal, less than, greater than - * - **Conversions**: Between different time units - * - **Human-readable formatting**: Pretty printing and parsing + * Represents immutable spans of time. + * + * A `Duration` can be finite, positive infinity, or negative infinity. It is + * the standard representation for delays, timeouts, intervals, and + * time-to-live values across Effect APIs. This module includes constructors + * from common input shapes, unit conversions, comparisons, arithmetic, + * formatting, and reusable reducer or combiner helpers. * * @since 2.0.0 */ @@ -25,18 +21,35 @@ import { hasProperty, isNumber } from "./Predicate.js"; import * as Reducer from "./Reducer.js"; const TypeId = "~effect/time/Duration"; const bigint0 = /*#__PURE__*/BigInt(0); +const bigint1 = /*#__PURE__*/BigInt(1); const bigint24 = /*#__PURE__*/BigInt(24); const bigint60 = /*#__PURE__*/BigInt(60); const bigint1e3 = /*#__PURE__*/BigInt(1_000); const bigint1e6 = /*#__PURE__*/BigInt(1_000_000); const bigint1e9 = /*#__PURE__*/BigInt(1_000_000_000); +const roundTiesAwayFromZero = input => BigInt(input < 0 ? Math.ceil(input - 0.5) : Math.floor(input + 0.5)); +const roundMillisToNanos = millis => roundTiesAwayFromZero(millis * 1_000_000); +const parseNanos = (input, scale) => input.includes(".") ? roundTiesAwayFromZero(Number(input) * Number(scale)) : BigInt(input) * scale; +const nanosToHrTime = nanos => { + const sign = nanos < bigint0 ? -bigint1 : bigint1; + const absolute = nanos < bigint0 ? -nanos : nanos; + return [Number(sign * (absolute / bigint1e9)), Number(sign * (absolute % bigint1e9))]; +}; const DURATION_REGEXP = /^(-?\d+(?:\.\d+)?)\s+(nanos?|micros?|millis?|seconds?|minutes?|hours?|days?|weeks?)$/; /** * Decodes a `Duration.Input` into a `Duration`. * + * **When to use** + * + * Use when the input has already been validated or comes from a trusted source + * and throwing is acceptable for invalid duration syntax. + * + * **Gotchas** + * * If the input is not a valid `Duration.Input`, it throws an error. * - * @example + * **Example** (Decoding duration inputs) + * * ```ts * import { Duration } from "effect" * @@ -46,8 +59,8 @@ const DURATION_REGEXP = /^(-?\d+(?:\.\d+)?)\s+(nanos?|micros?|millis?|seconds?|m * const duration4 = Duration.fromInputUnsafe([2, 500_000_000]) // 2 seconds and 500ms * ``` * - * @since 2.0.0 * @category constructors + * @since 4.0.0 */ export const fromInputUnsafe = input => { switch (typeof input) { @@ -66,14 +79,14 @@ export const fromInputUnsafe = input => { const match = DURATION_REGEXP.exec(input); if (!match) break; const [_, valueStr, unit] = match; + if (unit === "nano" || unit === "nanos") { + return nanos(parseNanos(valueStr, bigint1)); + } + if (unit === "micro" || unit === "micros") { + return nanos(parseNanos(valueStr, bigint1e3)); + } const value = Number(valueStr); switch (unit) { - case "nano": - case "nanos": - return nanos(BigInt(valueStr)); - case "micro": - case "micros": - return micros(BigInt(valueStr)); case "milli": case "millis": return millis(value); @@ -112,7 +125,7 @@ export const fromInputUnsafe = input => { if (input[0] === Infinity || input[1] === Infinity) { return infinity; } - return make(BigInt(Math.round(input[0] * 1_000_000_000)) + BigInt(Math.round(input[1]))); + return make(roundTiesAwayFromZero(input[0] * 1_000_000_000 + input[1])); } const obj = input; let millis = 0; @@ -124,10 +137,7 @@ export const fromInputUnsafe = input => { if (obj.seconds) millis += obj.seconds * 1_000; if (obj.milliseconds) millis += obj.milliseconds; if (!obj.microseconds && !obj.nanoseconds) return make(millis); - let nanos = BigInt(millis) * bigint1e6; - if (obj.microseconds) nanos += BigInt(obj.microseconds) * bigint1e3; - if (obj.nanoseconds) nanos += BigInt(obj.nanoseconds); - return make(nanos); + return make(roundTiesAwayFromZero(millis * 1_000_000 + (obj.microseconds ?? 0) * 1_000 + (obj.nanoseconds ?? 0))); } } return invalid(input); @@ -136,10 +146,10 @@ const invalid = input => { throw new Error(`Invalid Input: ${input}`); }; /** - * Safely decodes a `Input` value into a `Duration`, returning + * Decodes a `Input` value into a `Duration` safely, returning * `Option.none()` if decoding fails. * - * **Example** + * **Example** (Safely decoding duration inputs) * * ```ts * import { Duration, Option } from "effect" @@ -226,7 +236,7 @@ const make = input => { } else if (!Number.isInteger(input)) { duration.value = { _tag: "Nanos", - nanos: BigInt(Math.round(input * 1_000_000)) + nanos: roundMillisToNanos(input) }; } else { duration.value = { @@ -245,9 +255,10 @@ const make = input => { return duration; }; /** - * Checks if a value is a Duration. + * Checks whether a value is a Duration. + * + * **Example** (Checking for durations) * - * @example * ```ts * import { Duration } from "effect" * @@ -255,14 +266,15 @@ const make = input => { * console.log(Duration.isDuration(1000)) // false * ``` * - * @since 2.0.0 * @category guards + * @since 2.0.0 */ export const isDuration = u => hasProperty(u, TypeId); /** - * Checks if a Duration is finite (not infinite). + * Checks whether a Duration is finite (not infinite). + * + * **Example** (Checking finite durations) * - * @example * ```ts * import { Duration } from "effect" * @@ -270,14 +282,15 @@ export const isDuration = u => hasProperty(u, TypeId); * console.log(Duration.isFinite(Duration.infinity)) // false * ``` * - * @since 2.0.0 * @category guards + * @since 2.0.0 */ export const isFinite = self => self.value._tag !== "Infinity" && self.value._tag !== "NegativeInfinity"; /** - * Checks if a Duration is zero. + * Checks whether a Duration is zero. + * + * **Example** (Checking for zero durations) * - * @example * ```ts * import { Duration } from "effect" * @@ -285,8 +298,8 @@ export const isFinite = self => self.value._tag !== "Infinity" && self.value._ta * console.log(Duration.isZero(Duration.seconds(1))) // false * ``` * - * @since 3.5.0 * @category guards + * @since 3.5.0 */ export const isZero = self => { switch (self.value._tag) { @@ -302,7 +315,8 @@ export const isZero = self => { /** * Returns `true` if the duration is negative (strictly less than zero). * - * @example + * **Example** (Checking for negative durations) + * * ```ts * import { Duration } from "effect" * @@ -311,8 +325,8 @@ export const isZero = self => { * console.log(Duration.isNegative(Duration.negativeInfinity)) // true * ``` * - * @since 4.0.0 * @category guards + * @since 4.0.0 */ export const isNegative = self => { switch (self.value._tag) { @@ -329,7 +343,8 @@ export const isNegative = self => { /** * Returns `true` if the duration is positive (strictly greater than zero). * - * @example + * **Example** (Checking for positive durations) + * * ```ts * import { Duration } from "effect" * @@ -338,8 +353,8 @@ export const isNegative = self => { * console.log(Duration.isPositive(Duration.infinity)) // true * ``` * - * @since 4.0.0 * @category guards + * @since 4.0.0 */ export const isPositive = self => { switch (self.value._tag) { @@ -356,7 +371,8 @@ export const isPositive = self => { /** * Returns the absolute value of the duration. * - * @example + * **Example** (Taking absolute duration values) + * * ```ts * import { Duration } from "effect" * @@ -364,8 +380,8 @@ export const isPositive = self => { * Duration.abs(Duration.negativeInfinity) === Duration.infinity // true * ``` * - * @since 4.0.0 * @category math + * @since 4.0.0 */ export const abs = self => { switch (self.value._tag) { @@ -379,9 +395,10 @@ export const abs = self => { } }; /** - * Negates the duration. + * Returns the negated duration. + * + * **Example** (Negating durations) * - * @example * ```ts * import { Duration } from "effect" * @@ -389,8 +406,8 @@ export const abs = self => { * Duration.negate(Duration.infinity) === Duration.negativeInfinity // true * ``` * - * @since 4.0.0 * @category math + * @since 4.0.0 */ export const negate = self => { switch (self.value._tag) { @@ -407,49 +424,53 @@ export const negate = self => { /** * A Duration representing zero time. * - * @example + * **Example** (Using the zero duration) + * * ```ts * import { Duration } from "effect" * * console.log(Duration.toMillis(Duration.zero)) // 0 * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export const zero = /*#__PURE__*/make(0); /** * A Duration representing infinite time. * - * @example + * **Example** (Using infinite duration) + * * ```ts * import { Duration } from "effect" * * console.log(Duration.toMillis(Duration.infinity)) // Infinity * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export const infinity = /*#__PURE__*/make(Infinity); /** * A Duration representing negative infinite time. * - * @example + * **Example** (Using negative infinite duration) + * * ```ts * import { Duration } from "effect" * * console.log(Duration.toMillis(Duration.negativeInfinity)) // -Infinity * ``` * - * @since 4.0.0 * @category constructors + * @since 4.0.0 */ export const negativeInfinity = /*#__PURE__*/make(-Infinity); /** * Creates a Duration from nanoseconds. * - * @example + * **Example** (Creating durations from nanoseconds) + * * ```ts * import { Duration } from "effect" * @@ -457,14 +478,15 @@ export const negativeInfinity = /*#__PURE__*/make(-Infinity); * console.log(Duration.toMillis(duration)) // 500 * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export const nanos = nanos => make(nanos); /** * Creates a Duration from microseconds. * - * @example + * **Example** (Creating durations from microseconds) + * * ```ts * import { Duration } from "effect" * @@ -472,14 +494,15 @@ export const nanos = nanos => make(nanos); * console.log(Duration.toMillis(duration)) // 500 * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export const micros = micros => make(micros * bigint1e3); /** * Creates a Duration from milliseconds. * - * @example + * **Example** (Creating durations from milliseconds) + * * ```ts * import { Duration } from "effect" * @@ -487,14 +510,15 @@ export const micros = micros => make(micros * bigint1e3); * console.log(Duration.toMillis(duration)) // 1000 * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export const millis = millis => make(millis); /** * Creates a Duration from seconds. * - * @example + * **Example** (Creating durations from seconds) + * * ```ts * import { Duration } from "effect" * @@ -502,14 +526,15 @@ export const millis = millis => make(millis); * console.log(Duration.toMillis(duration)) // 30000 * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export const seconds = seconds => make(seconds * 1000); /** * Creates a Duration from minutes. * - * @example + * **Example** (Creating durations from minutes) + * * ```ts * import { Duration } from "effect" * @@ -517,14 +542,15 @@ export const seconds = seconds => make(seconds * 1000); * console.log(Duration.toMillis(duration)) // 300000 * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export const minutes = minutes => make(minutes * 60_000); /** * Creates a Duration from hours. * - * @example + * **Example** (Creating durations from hours) + * * ```ts * import { Duration } from "effect" * @@ -532,14 +558,15 @@ export const minutes = minutes => make(minutes * 60_000); * console.log(Duration.toMillis(duration)) // 7200000 * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export const hours = hours => make(hours * 3_600_000); /** * Creates a Duration from days. * - * @example + * **Example** (Creating durations from days) + * * ```ts * import { Duration } from "effect" * @@ -547,14 +574,15 @@ export const hours = hours => make(hours * 3_600_000); * console.log(Duration.toMillis(duration)) // 86400000 * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export const days = days => make(days * 86_400_000); /** * Creates a Duration from weeks. * - * @example + * **Example** (Creating durations from weeks) + * * ```ts * import { Duration } from "effect" * @@ -562,14 +590,15 @@ export const days = days => make(days * 86_400_000); * console.log(Duration.toMillis(duration)) // 604800000 * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export const weeks = weeks => make(weeks * 604_800_000); /** * Converts a Duration to milliseconds. * - * @example + * **Example** (Converting durations to milliseconds) + * * ```ts * import { Duration } from "effect" * @@ -577,8 +606,8 @@ export const weeks = weeks => make(weeks * 604_800_000); * console.log(Duration.toMillis(Duration.minutes(2))) // 120000 * ``` * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ export const toMillis = self => match(fromInputUnsafe(self), { onMillis: identity, @@ -589,7 +618,8 @@ export const toMillis = self => match(fromInputUnsafe(self), { /** * Converts a Duration to seconds. * - * @example + * **Example** (Converting durations to seconds) + * * ```ts * import { Duration } from "effect" * @@ -597,8 +627,8 @@ export const toMillis = self => match(fromInputUnsafe(self), { * console.log(Duration.toSeconds(Duration.minutes(2))) // 120 * ``` * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ export const toSeconds = self => match(fromInputUnsafe(self), { onMillis: millis => millis / 1_000, @@ -609,7 +639,8 @@ export const toSeconds = self => match(fromInputUnsafe(self), { /** * Converts a Duration to minutes. * - * @example + * **Example** (Converting durations to minutes) + * * ```ts * import { Duration } from "effect" * @@ -617,8 +648,8 @@ export const toSeconds = self => match(fromInputUnsafe(self), { * console.log(Duration.toMinutes(Duration.hours(1))) // 60 * ``` * - * @since 3.8.0 * @category getters + * @since 3.8.0 */ export const toMinutes = self => match(fromInputUnsafe(self), { onMillis: millis => millis / 60_000, @@ -629,7 +660,8 @@ export const toMinutes = self => match(fromInputUnsafe(self), { /** * Converts a Duration to hours. * - * @example + * **Example** (Converting durations to hours) + * * ```ts * import { Duration } from "effect" * @@ -637,8 +669,8 @@ export const toMinutes = self => match(fromInputUnsafe(self), { * console.log(Duration.toHours(Duration.days(1))) // 24 * ``` * - * @since 3.8.0 * @category getters + * @since 3.8.0 */ export const toHours = self => match(fromInputUnsafe(self), { onMillis: millis => millis / 3_600_000, @@ -649,7 +681,8 @@ export const toHours = self => match(fromInputUnsafe(self), { /** * Converts a Duration to days. * - * @example + * **Example** (Converting durations to days) + * * ```ts * import { Duration } from "effect" * @@ -657,8 +690,8 @@ export const toHours = self => match(fromInputUnsafe(self), { * console.log(Duration.toDays(Duration.weeks(1))) // 7 * ``` * - * @since 3.8.0 * @category getters + * @since 3.8.0 */ export const toDays = self => match(fromInputUnsafe(self), { onMillis: millis => millis / 86_400_000, @@ -669,7 +702,8 @@ export const toDays = self => match(fromInputUnsafe(self), { /** * Converts a Duration to weeks. * - * @example + * **Example** (Converting durations to weeks) + * * ```ts * import { Duration } from "effect" * @@ -677,8 +711,8 @@ export const toDays = self => match(fromInputUnsafe(self), { * console.log(Duration.toWeeks(Duration.days(7))) // 1 * ``` * - * @since 3.8.0 * @category getters + * @since 3.8.0 */ export const toWeeks = self => match(fromInputUnsafe(self), { onMillis: millis => millis / 604_800_000, @@ -687,11 +721,24 @@ export const toWeeks = self => match(fromInputUnsafe(self), { onNegativeInfinity: () => -Infinity }); /** - * Get the duration in nanoseconds as a bigint. + * Gets the duration in nanoseconds as a bigint. + * + * **When to use** + * + * Use when the duration is known to be finite and you need the nanosecond value + * as a `bigint`. + * + * **Details** + * + * Millisecond-backed fractional durations are rounded to the nearest + * nanosecond, with ties away from zero. + * + * **Gotchas** * * If the duration is infinite, it throws an error. * - * @example + * **Example** (Reading nanoseconds unsafely) + * * ```ts * import { Duration } from "effect" * @@ -699,16 +746,12 @@ export const toWeeks = self => match(fromInputUnsafe(self), { * const nanos = Duration.toNanosUnsafe(duration) * console.log(nanos) // 2000000000n * - * // This will throw an error - * try { - * Duration.toNanosUnsafe(Duration.infinity) - * } catch (error) { - * console.log((error as Error).message) // "Cannot convert infinite duration to nanos" - * } + * // Duration.toNanosUnsafe(Duration.infinity) + * // throws Error: "Cannot convert infinite duration to nanos" * ``` * - * @since 2.0.0 * @category getters + * @since 4.0.0 */ export const toNanosUnsafe = input => { const self = fromInputUnsafe(input); @@ -719,15 +762,17 @@ export const toNanosUnsafe = input => { case "Nanos": return self.value.nanos; case "Millis": - return BigInt(Math.round(self.value.millis * 1_000_000)); + return roundMillisToNanos(self.value.millis); } }; /** - * Get the duration in nanoseconds as a bigint. + * Gets the duration in nanoseconds safely as an `Option`. + * + * **Details** * * If the duration is infinite, returns `Option.none()`. * - * **Example** + * **Example** (Safely reading nanoseconds) * * ```ts * import { Duration, Option } from "effect" @@ -739,13 +784,14 @@ export const toNanosUnsafe = input => { * ``` * * @category getters - * @since 4.0.0 + * @since 2.0.0 */ export const toNanos = /*#__PURE__*/Option.liftThrowable(toNanosUnsafe); /** * Converts a Duration to high-resolution time format [seconds, nanoseconds]. * - * @example + * **Example** (Converting durations to high-resolution time) + * * ```ts * import { Duration } from "effect" * @@ -754,8 +800,8 @@ export const toNanos = /*#__PURE__*/Option.liftThrowable(toNanosUnsafe); * console.log(hrtime) // [1, 500000000] * ``` * - * @since 2.0.0 * @category getters + * @since 2.0.0 */ export const toHrTime = input => { const self = fromInputUnsafe(input); @@ -765,25 +811,22 @@ export const toHrTime = input => { case "NegativeInfinity": return [-Infinity, 0]; case "Nanos": - { - const n = self.value.nanos; - const sign = n < bigint0 ? -BigInt(1) : BigInt(1); - const a = n < bigint0 ? -n : n; - return [Number(sign * (a / bigint1e9)), Number(sign * (a % bigint1e9))]; - } + return nanosToHrTime(self.value.nanos); case "Millis": - { - const m = self.value.millis; - const sign = m < 0 ? -1 : 1; - const a = Math.abs(m); - return [sign * Math.floor(a / 1000), sign * Math.round(a % 1000 * 1_000_000)]; - } + return nanosToHrTime(roundMillisToNanos(self.value.millis)); } }; /** - * Pattern matches on a Duration, providing different handlers for millis and nanos. + * Pattern matches on the representation of a `Duration`. + * + * **Details** + * + * Provide handlers for millisecond-backed values, nanosecond-backed values, + * and positive infinity. Use `onNegativeInfinity` to handle negative infinity + * separately; otherwise negative infinity is handled by `onInfinity`. + * + * **Example** (Pattern matching on duration representations) * - * @example * ```ts * import { Duration } from "effect" * @@ -795,8 +838,8 @@ export const toHrTime = input => { * console.log(result) // "5000 milliseconds" * ``` * - * @since 2.0.0 * @category pattern matching + * @since 2.0.0 */ export const match = /*#__PURE__*/dual(2, (self, options) => { switch (self.value._tag) { @@ -813,7 +856,8 @@ export const match = /*#__PURE__*/dual(2, (self, options) => { /** * Pattern matches on two `Duration`s, providing handlers that receive both values. * - * @example + * **Example** (Pattern matching on duration pairs) + * * ```ts * import { Duration } from "effect" * @@ -825,8 +869,8 @@ export const match = /*#__PURE__*/dual(2, (self, options) => { * console.log(sum) // 5000 * ``` * - * @since 2.0.0 * @category pattern matching + * @since 4.0.0 */ export const matchPair = /*#__PURE__*/dual(3, (self, that, options) => { if (self.value._tag === "Infinity" || self.value._tag === "NegativeInfinity" || that.value._tag === "Infinity" || that.value._tag === "NegativeInfinity") return options.onInfinity(self, that); @@ -837,11 +881,14 @@ export const matchPair = /*#__PURE__*/dual(3, (self, that, options) => { } }); /** - * Order instance for `Duration`, allowing comparison operations. + * Provides an `Order` instance for comparing `Duration` values. + * + * **Details** * * `NegativeInfinity` < any finite value < `Infinity`. * - * @example + * **Example** (Sorting durations) + * * ```ts * import { Duration } from "effect" * @@ -871,9 +918,24 @@ export const Order = /*#__PURE__*/order.make((self, that) => matchPair(self, tha } })); /** - * Checks if a `Duration` is between a `minimum` and `maximum` value. + * Returns `true` if a `Duration` is greater than or equal to `minimum` and + * less than or equal to `maximum`, according to `Duration.Order`. + * + * **When to use** + * + * Use to test whether a duration is inside an inclusive range. + * + * **Details** + * + * Both bounds are inclusive and compared with `Duration.Order`. + * + * **Gotchas** + * + * The bounds are not normalized. If `minimum` is greater than `maximum`, the + * predicate returns `false` for every duration. + * + * **Example** (Checking duration ranges) * - * @example * ```ts * import { Duration } from "effect" * @@ -884,14 +946,19 @@ export const Order = /*#__PURE__*/order.make((self, that) => matchPair(self, tha * console.log(isInRange) // true * ``` * + * @see {@link clamp} for constraining a duration to a range + * @see {@link isGreaterThanOrEqualTo} for checking only the lower bound + * @see {@link isLessThanOrEqualTo} for checking only the upper bound + * * @category predicates * @since 2.0.0 */ export const between = /*#__PURE__*/order.isBetween(Order); /** - * Equivalence instance for `Duration`, allowing equality comparisons. + * Provides an `Equivalence` instance for comparing `Duration` values. + * + * **Example** (Comparing durations for equivalence) * - * @example * ```ts * import { Duration } from "effect" * @@ -910,7 +977,8 @@ export const Equivalence = (self, that) => matchPair(self, that, { /** * Returns the smaller of two Durations. * - * @example + * **Example** (Selecting the shorter duration) + * * ```ts * import { Duration } from "effect" * @@ -918,14 +986,15 @@ export const Equivalence = (self, that) => matchPair(self, that, { * console.log(Duration.toSeconds(shorter)) // 3 * ``` * + * @category ordering * @since 2.0.0 - * @category order */ export const min = /*#__PURE__*/order.min(Order); /** * Returns the larger of two Durations. * - * @example + * **Example** (Selecting the longer duration) + * * ```ts * import { Duration } from "effect" * @@ -933,14 +1002,15 @@ export const min = /*#__PURE__*/order.min(Order); * console.log(Duration.toSeconds(longer)) // 5 * ``` * + * @category ordering * @since 2.0.0 - * @category order */ export const max = /*#__PURE__*/order.max(Order); /** - * Clamps a Duration between a minimum and maximum value. + * Returns a `Duration` constrained between a minimum and maximum value. + * + * **Example** (Clamping durations to a range) * - * @example * ```ts * import { Duration } from "effect" * @@ -951,14 +1021,20 @@ export const max = /*#__PURE__*/order.max(Order); * console.log(Duration.toSeconds(clamped)) // 5 * ``` * + * @category ordering * @since 2.0.0 - * @category order */ export const clamp = /*#__PURE__*/order.clamp(Order); /** - * Divides a Duration by a number, returning `Option.none()` if division is invalid. + * Divides a `Duration` by a finite, non-zero number safely. + * + * **Details** + * + * Returns `Option.none()` for zero, negative zero, or non-finite divisors. For + * nanosecond-backed durations, also returns `Option.none()` when the divisor + * cannot be converted to a `bigint`, such as a fractional divisor. * - * **Example** + * **Example** (Safely dividing durations) * * ```ts * import { Duration, Option } from "effect" @@ -969,8 +1045,8 @@ export const clamp = /*#__PURE__*/order.clamp(Order); * Duration.divide(Duration.seconds(10), 0) // None * ``` * - * @since 4.0.0 * @category math + * @since 2.4.19 */ export const divide = /*#__PURE__*/dual(2, (self, by) => { if (!Number.isFinite(by)) return Option.none(); @@ -989,9 +1065,24 @@ export const divide = /*#__PURE__*/dual(2, (self, by) => { }); }); /** - * Divides a Duration by a number, potentially returning infinity or zero. + * Divides a `Duration` by a number using fallback rules instead of returning + * an `Option`. + * + * **When to use** + * + * Use when dividing a `Duration` should return `Duration.zero` or signed + * infinity for invalid cases instead of forcing callers to handle `Option.none`. + * + * **Details** + * + * Non-finite divisors return `Duration.zero`. Division by positive or negative + * zero can produce signed infinity for non-zero finite durations, while zero + * or infinite durations divided by zero produce `Duration.zero`. + * Nanosecond-backed durations return `Duration.zero` when the divisor cannot + * be converted to a `bigint`. + * + * **Example** (Dividing durations unsafely) * - * @example * ```ts * import { Duration } from "effect" * @@ -1002,8 +1093,8 @@ export const divide = /*#__PURE__*/dual(2, (self, by) => { * console.log(Duration.toMillis(infinite)) // Infinity * ``` * - * @since 2.4.19 * @category math + * @since 4.0.0 */ export const divideUnsafe = /*#__PURE__*/dual(2, (self, by) => { if (!Number.isFinite(by)) return zero; @@ -1028,9 +1119,17 @@ export const divideUnsafe = /*#__PURE__*/dual(2, (self, by) => { }); }); /** - * Multiplies a Duration by a number. + * Returns a `Duration` multiplied by a number. + * + * **Details** + * + * For nanosecond-backed durations, the multiplier must be convertible to a + * `bigint`; fractional or non-finite multipliers can throw. Infinite + * durations return positive infinity, negative infinity, or zero depending on + * the multiplier sign. + * + * **Example** (Multiplying durations) * - * @example * ```ts * import { Duration } from "effect" * @@ -1038,8 +1137,8 @@ export const divideUnsafe = /*#__PURE__*/dual(2, (self, by) => { * console.log(Duration.toSeconds(doubled)) // 10 * ``` * - * @since 2.0.0 * @category math + * @since 2.0.0 */ export const times = /*#__PURE__*/dual(2, (self, times) => match(self, { onMillis: millis => make(millis * times), @@ -1050,17 +1149,17 @@ export const times = /*#__PURE__*/dual(2, (self, times) => match(self, { /** * Subtracts one Duration from another. The result can be negative. * - * **Infinity Subtraction Rules** - * - infinity - infinity = 0 - * - infinity - negativeInfinity = infinity - * - infinity - finite = infinity - * - negativeInfinity - negativeInfinity = 0 - * - negativeInfinity - infinity = negativeInfinity - * - negativeInfinity - finite = negativeInfinity - * - finite - infinity = negativeInfinity - * - finite - negativeInfinity = infinity - * - * @example + * **Details** + * + * Infinity subtraction follows signed-infinity arithmetic. Subtracting the + * same infinity from itself returns zero. Positive infinity minus negative + * infinity or any finite duration remains positive infinity. Negative infinity + * minus positive infinity or any finite duration remains negative infinity. + * Finite durations minus positive infinity produce negative infinity, and + * finite durations minus negative infinity produce positive infinity. + * + * **Example** (Subtracting durations) + * * ```ts * import { Duration } from "effect" * @@ -1068,8 +1167,8 @@ export const times = /*#__PURE__*/dual(2, (self, times) => match(self, { * console.log(Duration.toSeconds(result)) // 7 * ``` * - * @since 2.0.0 * @category math + * @since 2.0.0 */ export const subtract = /*#__PURE__*/dual(2, (self, that) => matchPair(self, that, { onMillis: (self, that) => make(self - that), @@ -1085,14 +1184,18 @@ export const subtract = /*#__PURE__*/dual(2, (self, that) => matchPair(self, tha /** * Adds two Durations together. * - * **Infinity Addition Rules** + * **Details** + * + * Infinity addition follows these rules: + * * - infinity + infinity = infinity * - infinity + negativeInfinity = zero * - infinity + finite = infinity * - negativeInfinity + negativeInfinity = negativeInfinity * - negativeInfinity + finite = negativeInfinity * - * @example + * **Example** (Adding durations) + * * ```ts * import { Duration } from "effect" * @@ -1100,8 +1203,8 @@ export const subtract = /*#__PURE__*/dual(2, (self, that) => matchPair(self, tha * console.log(Duration.toSeconds(total)) // 8 * ``` * - * @since 2.0.0 * @category math + * @since 2.0.0 */ export const sum = /*#__PURE__*/dual(2, (self, that) => matchPair(self, that, { onMillis: (self, that) => make(self + that), @@ -1118,9 +1221,10 @@ export const sum = /*#__PURE__*/dual(2, (self, that) => matchPair(self, that, { } })); /** - * Checks if the first Duration is less than the second. + * Checks whether the first Duration is less than the second. + * + * **Example** (Comparing durations with less than) * - * @example * ```ts * import { Duration } from "effect" * @@ -1128,14 +1232,15 @@ export const sum = /*#__PURE__*/dual(2, (self, that) => matchPair(self, that, { * console.log(isLess) // true * ``` * - * @since 2.0.0 * @category predicates + * @since 4.0.0 */ export const isLessThan = /*#__PURE__*/order.isLessThan(Order); /** - * Checks if the first Duration is less than or equal to the second. + * Checks whether the first Duration is less than or equal to the second. + * + * **Example** (Comparing durations with less than or equal) * - * @example * ```ts * import { Duration } from "effect" * @@ -1146,14 +1251,15 @@ export const isLessThan = /*#__PURE__*/order.isLessThan(Order); * console.log(isLessOrEqual) // true * ``` * - * @since 2.0.0 * @category predicates + * @since 4.0.0 */ export const isLessThanOrEqualTo = /*#__PURE__*/order.isLessThanOrEqualTo(Order); /** - * Checks if the first Duration is greater than the second. + * Checks whether the first Duration is greater than the second. + * + * **Example** (Comparing durations with greater than) * - * @example * ```ts * import { Duration } from "effect" * @@ -1161,14 +1267,15 @@ export const isLessThanOrEqualTo = /*#__PURE__*/order.isLessThanOrEqualTo(Order) * console.log(isGreater) // true * ``` * - * @since 2.0.0 * @category predicates + * @since 4.0.0 */ export const isGreaterThan = /*#__PURE__*/order.isGreaterThan(Order); /** - * Checks if the first Duration is greater than or equal to the second. + * Checks whether the first Duration is greater than or equal to the second. + * + * **Example** (Comparing durations with greater than or equal) * - * @example * ```ts * import { Duration } from "effect" * @@ -1179,14 +1286,15 @@ export const isGreaterThan = /*#__PURE__*/order.isGreaterThan(Order); * console.log(isGreaterOrEqual) // true * ``` * - * @since 2.0.0 * @category predicates + * @since 4.0.0 */ export const isGreaterThanOrEqualTo = /*#__PURE__*/order.isGreaterThanOrEqualTo(Order); /** - * Checks if two Durations are equal. + * Checks whether two Durations are equal. + * + * **Example** (Checking duration equality) * - * @example * ```ts * import { Duration } from "effect" * @@ -1194,14 +1302,21 @@ export const isGreaterThanOrEqualTo = /*#__PURE__*/order.isGreaterThanOrEqualTo( * console.log(isEqual) // true * ``` * - * @since 2.0.0 * @category predicates + * @since 2.0.0 */ export const equals = /*#__PURE__*/dual(2, (self, that) => Equivalence(self, that)); /** - * Converts a `Duration` to its parts. + * Decomposes a `Duration` into normalized signed components. + * + * **Details** + * + * Finite durations are returned as `{ days, hours, minutes, seconds, millis, + * nanos }`. Infinite durations return every component as `Infinity` or + * `-Infinity`. + * + * **Example** (Decomposing durations into parts) * - * @example * ```ts * import { Duration } from "effect" * @@ -1237,8 +1352,8 @@ export const equals = /*#__PURE__*/dual(2, (self, that) => Equivalence(self, tha * // } * ``` * + * @category converting * @since 3.8.0 - * @category conversions */ export const parts = self => { if (self.value._tag === "Infinity") { @@ -1282,15 +1397,17 @@ export const parts = self => { /** * Converts a `Duration` to a human readable string. * - * @since 2.0.0 - * @category conversions - * @example + * **Example** (Formatting durations) + * * ```ts * import { Duration } from "effect" * * Duration.format(Duration.millis(1000)) // "1s" * Duration.format(Duration.millis(1001)) // "1s 1ms" * ``` + * + * @category converting + * @since 2.0.0 */ export const format = self => { if (self.value._tag === "Infinity") { @@ -1328,20 +1445,50 @@ export const format = self => { return pieces.join(" "); }; /** - * A `Reducer` for summing `Duration`s. + * Reducer for summing `Duration`s. + * + * **When to use** + * + * Use to sum many `Duration` values through APIs that consume a `Reducer`. + * + * **Details** * + * `ReducerSum` uses `sum` and starts from `zero`, so `combineAll([])` returns + * `zero`. + * + * @see {@link sum} for adding two duration values directly + * @see {@link CombinerMax} for keeping the longest duration instead of summing + * @see {@link CombinerMin} for keeping the shortest duration instead of summing + * + * @category math * @since 4.0.0 */ export const ReducerSum = /*#__PURE__*/Reducer.make(sum, zero); /** - * A `Combiner` that returns the maximum `Duration`. + * Combiner that returns the maximum `Duration`. + * + * **When to use** + * + * Use to keep the longest `Duration` when an API consumes a `Combiner`. + * + * @see {@link CombinerMin} for keeping the shortest `Duration` + * @see {@link max} for comparing two `Duration` values directly * + * @category math * @since 4.0.0 */ export const CombinerMax = /*#__PURE__*/Combiner.max(Order); /** - * A `Combiner` that returns the minimum `Duration`. + * Combiner that returns the minimum `Duration`. + * + * **When to use** + * + * Use to keep the shortest `Duration` through APIs that consume a `Combiner`. * + * @see {@link CombinerMax} for keeping the longest `Duration` + * @see {@link min} for comparing two `Duration` values directly + * + * @category math * @since 4.0.0 */ export const CombinerMin = /*#__PURE__*/Combiner.min(Order); diff --git a/.opencode/node_modules/effect/dist/Duration.js.map b/.opencode/node_modules/effect/dist/Duration.js.map index 3d4aa9715db2456bc01131d94786a2ce482ce9bb..e79328f95d83a0fe0044222c941d123e8c9e62ba 100644 --- a/.opencode/node_modules/effect/dist/Duration.js.map +++ b/.opencode/node_modules/effect/dist/Duration.js.map @@ -1 +1 @@ -{"version":3,"file":"Duration.js","names":["Combiner","Equal","dual","identity","Hash","NodeInspectSymbol","Option","order","pipeArguments","hasProperty","isNumber","Reducer","TypeId","bigint0","BigInt","bigint24","bigint60","bigint1e3","bigint1e6","bigint1e9","DURATION_REGEXP","fromInputUnsafe","input","millis","nanos","infinity","negativeInfinity","match","exec","_","valueStr","unit","value","Number","micros","seconds","minutes","hours","days","weeks","Array","isArray","length","every","invalid","isNaN","zero","Infinity","make","Math","round","obj","milliseconds","microseconds","nanoseconds","Error","fromInput","liftThrowable","zeroDurationValue","_tag","infinityDurationValue","negativeInfinityDurationValue","DurationProto","symbol","structure","that","isDuration","equals","toString","toJSON","_id","String","pipe","arguments","duration","Object","create","is","isFinite","isInteger","u","self","isZero","isNegative","isPositive","abs","negate","toMillis","onMillis","onNanos","onInfinity","onNegativeInfinity","toSeconds","toMinutes","toHours","toDays","toWeeks","toNanosUnsafe","toNanos","toHrTime","n","sign","a","m","floor","options","matchPair","Order","between","isBetween","Equivalence","min","max","clamp","divide","by","none","some","divideUnsafe","positiveNanos","positiveZero","times","subtract","s","t","sum","isLessThan","isLessThanOrEqualTo","isGreaterThan","isGreaterThanOrEqualTo","parts","neg","ms","sec","hr","d","format","fragments","pieces","push","join","ReducerSum","CombinerMax","CombinerMin"],"sources":["../src/Duration.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;;;;;;AAeA,OAAO,KAAKA,QAAQ,MAAM,eAAe;AACzC,OA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AACpG,KAAK,KAAK,CAAC,EAAE;IACzBqG,MAAM,CAACC,IAAI,CAAC,GAAGF,SAAS,CAACpG,KAAK,GAAG,CAAC;EACpC;EAEA,IAAIoG,SAAS,CAACrG,OAAO,KAAK,CAAC,EAAE;IAC3BsG,MAAM,CAACC,IAAI,CAAC,GAAGF,SAAS,CAACrG,OAAO,GAAG,CAAC;EACtC;EAEA,IAAIqG,SAAS,CAACtG,OAAO,KAAK,CAAC,EAAE;IAC3BuG,MAAM,CAACC,IAAI,CAAC,GAAGF,SAAS,CAACtG,OAAO,GAAG,CAAC;EACtC;EAEA,IAAIsG,SAAS,CAAClH,MAAM,KAAK,CAAC,EAAE;IAC1BmH,MAAM,CAACC,IAAI,CAAC,GAAGF,SAAS,CAAClH,MAAM,IAAI,CAAC;EACtC;EAEA,IAAIkH,SAAS,CAACjH,KAAK,KAAK,CAAC,EAAE;IACzBkH,MAAM,CAACC,IAAI,CAAC,GAAGF,SAAS,CAACjH,KAAK,IAAI,CAAC;EACrC;EAEA,OAAOkH,MAAM,CAACE,IAAI,CAAC,GAAG,CAAC;AACzB,CAAC;AAED;;;;;AAKA,OAAO,MAAMC,UAAU,gBAA8BlI,OAAO,CAACqC,IAAI,CAAC6E,GAAG,EAAE/E,IAAI,CAAC;AAE5E;;;;;AAKA,OAAO,MAAMgG,WAAW,gBAAgC9I,QAAQ,CAACgH,GAAG,CAACL,KAAK,CAAC;AAE3E;;;;;AAKA,OAAO,MAAMoC,WAAW,gBAAgC/I,QAAQ,CAAC+G,GAAG,CAACJ,KAAK,CAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"Duration.js","names":["Combiner","Equal","dual","identity","Hash","NodeInspectSymbol","Option","order","pipeArguments","hasProperty","isNumber","Reducer","TypeId","bigint0","BigInt","bigint1","bigint24","bigint60","bigint1e3","bigint1e6","bigint1e9","roundTiesAwayFromZero","input","Math","ceil","floor","roundMillisToNanos","millis","parseNanos","scale","includes","Number","nanosToHrTime","nanos","sign","absolute","DURATION_REGEXP","fromInputUnsafe","infinity","negativeInfinity","match","exec","_","valueStr","unit","value","seconds","minutes","hours","days","weeks","Array","isArray","length","every","invalid","isNaN","zero","Infinity","make","obj","milliseconds","microseconds","nanoseconds","Error","fromInput","liftThrowable","zeroDurationValue","_tag","infinityDurationValue","negativeInfinityDurationValue","DurationProto","symbol","structure","that","isDuration","equals","toString","toJSON","_id","String","pipe","arguments","duration","Object","create","is","isFinite","isInteger","u","self","isZero","isNegative","isPositive","abs","negate","micros","toMillis","onMillis","onNanos","onInfinity","onNegativeInfinity","toSeconds","toMinutes","toHours","toDays","toWeeks","toNanosUnsafe","toNanos","toHrTime","options","matchPair","Order","between","isBetween","Equivalence","min","max","clamp","divide","by","none","some","divideUnsafe","positiveNanos","positiveZero","times","subtract","s","t","sum","isLessThan","isLessThanOrEqualTo","isGreaterThan","isGreaterThanOrEqualTo","parts","n","neg","a","ms","sec","hr","d","format","fragments","pieces","push","join","ReducerSum","CombinerMax","CombinerMin"],"sources":["../src/Duration.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;;AAWA,OAAO,KAAKA,QAAQ,MAAM,eAAe;AACzC,OAAO,KAAKC,KAAK,MAAM,YAAY;AAEnC,SAASC,IAAI,EAAEC,QAAQ,QAAQ,eAAe;AAC9C,OAAO,KAAKC,IAAI,MAAM,WAAW;AAEjC,SAASC,iBAAiB,QAAQ,kBAAkB;AACpD,OAAO,KAAKC,MAAM,MAAM,aAAa;AACrC,OAAO,KAAKC,KAAK,MAAM,YAAY;AAEnC,SAASC,aAAa,QAAQ,eAAe;AAC7C,SAASC,WAAW,EAAEC,QAAQ,QAAQ,gBAAgB;AACtD,OAAO,KAAKC,OAAO,MAAM,cAAc;AAEvC,MAAMC,MAAM,GAAG,uBAAuB;AAEtC,MAAMC,OAAO,gBAAGC,MAAM,CAAC,CAAC,CAAC;AACzB,MAAMC,OAAO,gBAAGD,MAAM,CAAC,CAAC,CAAC;AACzB,MAAME,QAAQ,gBAAGF,MA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ACtC;EAEA,IAAIiG,SAAS,CAAClG,OAAO,KAAK,CAAC,EAAE;IAC3BmG,MAAM,CAACC,IAAI,CAAC,GAAGF,SAAS,CAAClG,OAAO,GAAG,CAAC;EACtC;EAEA,IAAIkG,SAAS,CAACrH,MAAM,KAAK,CAAC,EAAE;IAC1BsH,MAAM,CAACC,IAAI,CAAC,GAAGF,SAAS,CAACrH,MAAM,IAAI,CAAC;EACtC;EAEA,IAAIqH,SAAS,CAAC/G,KAAK,KAAK,CAAC,EAAE;IACzBgH,MAAM,CAACC,IAAI,CAAC,GAAGF,SAAS,CAAC/G,KAAK,IAAI,CAAC;EACrC;EAEA,OAAOgH,MAAM,CAACE,IAAI,CAAC,GAAG,CAAC;AACzB,CAAC;AAED;;;;;;;;;;;;;;;;;;;AAmBA,OAAO,MAAMC,UAAU,gBAA8BzI,OAAO,CAACgD,IAAI,CAACuE,GAAG,EAAEzE,IAAI,CAAC;AAE5E;;;;;;;;;;;;;AAaA,OAAO,MAAM4F,WAAW,gBAAgCrJ,QAAQ,CAACqH,GAAG,CAACL,KAAK,CAAC;AAE3E;;;;;;;;;;;;;AAaA,OAAO,MAAMsC,WAAW,gBAAgCtJ,QAAQ,CAACoH,GAAG,CAACJ,KAAK,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Effect.d.ts b/.opencode/node_modules/effect/dist/Effect.d.ts index 09d2c79e938feb5a79431e5f1b06501fdd37c6e4..a1eef54e1145aa3112cd119a0b73c8132bd13bc6 100644 --- a/.opencode/node_modules/effect/dist/Effect.d.ts +++ b/.opencode/node_modules/effect/dist/Effect.d.ts @@ -1,70 +1,12 @@ /** - * The `Effect` module is the core of the Effect library, providing a powerful and expressive - * way to model and compose asynchronous, concurrent, and effectful computations. + * Describes workflows that run only when executed by the Effect runtime. * - * An `Effect` represents a computation that: - * - May succeed with a value of type `A` - * - May fail with an error of type `E` - * - Requires a context/environment of type `R` - * - * Effects are lazy and immutable - they describe computations that can be executed later. - * This allows for powerful composition, error handling, resource management, and concurrency - * patterns. - * - * ## Key Features - * - * - **Type-safe error handling**: Errors are tracked in the type system - * - **Resource management**: Automatic cleanup with scoped resources - * - **Structured concurrency**: Safe parallel and concurrent execution - * - **Composable**: Effects can be combined using operators like `flatMap`, `map`, `zip` - * - **Testable**: Built-in support for testing with controlled environments - * - **Interruptible**: Effects can be safely interrupted and cancelled - * - * @example - * ```ts - * import { Console, Effect } from "effect" - * - * // Creating a simple effect - * const hello = Effect.succeed("Hello, World!") - * - * // Composing effects - * const program = Effect.gen(function*() { - * const message = yield* hello - * yield* Console.log(message) - * return message.length - * }) - * - * // Running the effect - * Effect.runPromise(program).then(console.log) // 13 - * ``` - * - * @example - * ```ts - * import { Data, Effect } from "effect" - * - * class DiscountRateError extends Data.TaggedError("DiscountRateError")<{}> {} - * - * // Effect that may fail - * const divide = (a: number, b: number) => - * b === 0 - * ? Effect.fail(new DiscountRateError()) - * : Effect.succeed(a / b) - * - * // Error handling - * const program = Effect.gen(function*() { - * const result = yield* divide(10, 2) - * console.log("Result:", result) // Result: 5 - * return result - * }) - * - * // Handle errors - * const safeProgram = program.pipe( - * Effect.match({ - * onFailure: (error) => -1, - * onSuccess: (value) => value - * }) - * ) - * ``` + * An `Effect` can succeed with an `A`, fail with an `E`, and require + * services `R`. Creating an effect does not perform the work; it builds a value + * that can be composed, provided with services, retried, interrupted, run + * concurrently, or inspected by the runtime. This module is the main API for + * creating effects, combining them, handling failures, managing resources, and + * running effect programs. * * @since 2.0.0 */ @@ -97,12 +39,32 @@ import type { AnySpan, ParentSpan, Span, SpanLink, SpanOptions, SpanOptionsNoTra import type { TxRef } from "./TxRef.ts"; import type { Concurrency, Covariant, EqualsWith, ExcludeReason, ExcludeTag, ExtractReason, ExtractTag, NarrowReason, NoInfer, OmitReason, ReasonOf, ReasonTags, Simplify, Tags, unassigned } from "./Types.ts"; import type * as Unify from "./Unify.ts"; -declare const TypeId: "~effect/Effect"; +/** + * Type-level identifier for `Effect` values. + * + * @category type IDs + * @since 4.0.0 + */ +export type TypeId = "~effect/Effect"; +/** + * Runtime identifier used to recognize `Effect` values. + * + * @category type IDs + * @since 4.0.0 + */ +export declare const TypeId: TypeId; /** * The `Effect` interface defines a value that lazily describes a workflow or * job. The workflow requires some context `R`, and may fail with an error of * type `E`, or succeed with a value of type `A`. * + * **When to use** + * + * Use when you need to represent a lazy, composable workflow that can require + * services, fail with a typed error, or succeed with a typed value. + * + * **Details** + * * `Effect` values model resourceful interaction with the outside world, * including synchronous, asynchronous, concurrent, and parallel interaction. * They use a fiber-based concurrency model, with built-in support for @@ -112,84 +74,21 @@ declare const TypeId: "~effect/Effect"; * To run an `Effect` value, you need a `Runtime`, which is a type that is * capable of executing `Effect` values. * - * @example - * ```ts - * import { Data, Effect } from "effect" - * - * class TaskError extends Data.TaggedError("TaskError")<{ readonly message: string }> {} - * - * // A simple effect that succeeds with a value - * const success = Effect.succeed(42) - * - * // An effect that will always fail - * const risky = Effect.fail(new TaskError({ message: "Something went wrong" })) - * - * // Effects can be composed using generator functions - * const program = Effect.gen(function*() { - * const value = yield* success - * console.log(value) // 42 - * return value * 2 - * }) - * ``` - * + * @category models * @since 2.0.0 - * @category Models */ -export interface Effect extends Pipeable, Inspectable, Yieldable, A, E, R> { +export interface Effect extends Pipeable, Inspectable { readonly [TypeId]: Variance; + [Symbol.iterator](): EffectIterator>; [Unify.typeSymbol]?: unknown; [Unify.unifySymbol]?: EffectUnify; [Unify.ignoreSymbol]?: {}; } /** - * A type that can be yielded in an Effect generator function. + * Type-level unification support for `Effect` values. * - * The `Yieldable` interface allows values to be used with the `yield*` syntax - * in Effect generator functions, providing a clean way to sequence effectful operations. - * - * @example - * ```ts - * import { Effect } from "effect" - * - * // Effects implement Yieldable and can be used with yield* - * const effect1 = Effect.succeed(10) - * const effect2 = Effect.succeed(20) - * - * const program = Effect.gen(function*() { - * const a = yield* effect1 // yields the Effect which implements Yieldable - * const b = yield* effect2 - * return a + b - * }) - * - * Effect.runPromise(program).then(console.log) // 30 - * ``` - * - * @since 4.0.0 - * @category Yieldable - */ -export interface Yieldable, out A, out E = never, out R = never> { - asEffect(): Effect; - [Symbol.iterator](): EffectIterator; -} -/** - * @since 4.0.0 - * @category Yieldable - */ -export declare abstract class YieldableClass implements Yieldable { - [Symbol.iterator](): EffectIterator; - abstract asEffect(): Effect; -} -/** - * @category Models + * @category models * @since 2.0.0 - * @example - * ```ts - * import type { Effect } from "effect" - * - * // EffectUnify is used internally for type unification - * // It enables automatic unification of Effect types in unions - * declare const unified: Effect.EffectUnify - * ``` */ export interface EffectUnify A[Unify.typeSymbol] extends Effect | infer _ ? Effect : never; } /** - * @category Type Lambdas - * @since 2.0.0 - * @example - * ```ts - * import type { Effect } from "effect" + * Type lambda used to represent `Effect` in higher-kinded APIs. * - * // EffectTypeLambda is used for higher-kinded type operations - * // It defines the type structure for Effect in higher-kinded contexts - * declare const lambda: Effect.EffectTypeLambda - * ``` + * @category type lambdas + * @since 2.0.0 */ export interface EffectTypeLambda extends TypeLambda { readonly type: Effect; @@ -214,8 +107,8 @@ export interface EffectTypeLambda extends TypeLambda { /** * Variance interface for Effect, encoding the type parameters' variance. * + * @category models * @since 2.0.0 - * @category Models */ export interface Variance { _A: Covariant; @@ -223,73 +116,59 @@ export interface Variance { _R: Covariant; } /** - * @since 2.0.0 - * @category Models - * @example - * ```ts - * import type { Effect } from "effect" + * Extracts the success type from an `Effect`. * - * // Extract the success type from an Effect - * declare const myEffect: Effect.Effect - * // This type utility extracts the success type A from Effect - * ``` + * **When to use** + * + * Use to derive the value produced by an existing effect when declaring + * reusable type aliases, service interfaces, or function signatures. + * + * @see {@link Error} for extracting the failure type from the same `Effect` + * @see {@link Services} for extracting the required services from the same `Effect` + * + * @category models + * @since 2.0.0 */ export type Success = T extends Effect ? _A : never; /** - * @since 2.0.0 - * @category Models - * @example - * ```ts - * import type { Effect } from "effect" + * Extracts the error type from an `Effect`. * - * // Extract the error type from an Effect - * declare const myEffect: Effect.Effect - * // This type utility extracts the error type E from Effect - * ``` + * **When to use** + * + * Use to derive the error type from an existing `Effect` type when declaring + * helper types, wrappers, or APIs that preserve the effect's failure channel. + * + * **Details** + * + * Non-`Effect` inputs resolve to `never`. + * + * @see {@link Success} for extracting the success value type instead + * @see {@link Services} for extracting the required services type instead + * + * @category models + * @since 2.0.0 */ export type Error = T extends Effect ? _E : never; /** - * @since 2.0.0 - * @category Models - * @example - * ```ts - * import type { Effect } from "effect" + * Extracts the required services type from an `Effect`. * - * // Extract the context/services type from an Effect - * declare const myEffect: Effect.Effect - * // This type utility extracts the context type R from Effect - * ``` - */ -export type Services = T extends Effect ? _R : never; -/** - * Namespace containing type utilities for Yieldable values. + * **When to use** * + * Use to derive the context requirements of a generic or inferred `Effect` + * without restating its `R` type parameter. + * + * @see {@link Success} for extracting the success value type instead + * @see {@link Error} for extracting the failure type instead + * + * @category models * @since 4.0.0 - * @category Yieldable */ -export declare namespace Yieldable { - /** - * @since 4.0.0 - * @category Yieldable - */ - type Any = Yieldable; - /** - * @since 4.0.0 - * @category Yieldable - * @example - * ```ts - * import type { Effect } from "effect" - * - * // Extract the success type from a Yieldable - * type SuccessType = Effect.Yieldable.Success> // string - * ``` - */ - type Success = T extends Yieldable ? _A : never; -} +export type Services = T extends Effect ? _R : never; /** - * Tests if a value is an `Effect`. + * Checks whether a value is an `Effect`. + * + * **Example** (Checking whether a value is an Effect) * - * @example * ```ts * import { Effect } from "effect" * @@ -297,127 +176,61 @@ export declare namespace Yieldable { * console.log(Effect.isEffect("hello")) // false * ``` * + * @category guards * @since 2.0.0 - * @category Guards */ export declare const isEffect: (u: unknown) => u is Effect; /** * Iterator interface for Effect generators, enabling Effect values to work with generator functions. * - * @example - * ```ts - * import { Effect } from "effect" + * **When to use** * - * // Effects are iterable and work with generator functions - * const program = Effect.gen(function*() { - * const effect: Effect.Effect = Effect.succeed(42) + * Use when defining or typing `[Symbol.iterator]()` for values typed as + * `Effect`s so `yield*` can pass their success type back into `Effect.gen`. * - * // The effect's iterator is used internally by yield* - * const result = yield* effect - * return result * 2 - * }) + * @see {@link gen} for writing generator-based `Effect` programs that consume this iterator protocol * - * Effect.runPromise(program).then(console.log) // 84 - * ``` - * - * @since 2.0.0 - * @category Models + * @category models + * @since 4.0.0 */ -export interface EffectIterator> { - next(...args: ReadonlyArray): IteratorResult>; +export interface EffectIterator> { + next(...args: ReadonlyArray): IteratorResult>; } /** * Namespace containing type utilities for the `Effect.all` function, which handles * collecting multiple effects into various output structures. * - * @example - * ```ts - * import { Effect } from "effect" - * - * // All namespace types are used when working with Effect.all - * const effects = [ - * Effect.succeed(1), - * Effect.succeed("hello"), - * Effect.succeed(true) - * ] as const - * - * const program = Effect.all(effects).pipe( - * Effect.map(([num, str, bool]) => ({ num, str, bool })) - * ) - * - * Effect.runPromise(program).then(console.log) // { num: 1, str: "hello", bool: true } - * ``` - * * @since 2.0.0 - * @category Models */ export declare namespace All { /** - * @since 2.0.0 - * @category Models - * @example - * ```ts - * import { Data, Effect } from "effect" - * - * class OopsError extends Data.TaggedError("OopsError")<{}> {} + * Alias for any `Effect` value accepted by `Effect.all`. * - * // EffectAny represents an Effect with any type parameters - * const effects: Array = [ - * Effect.succeed(42), - * Effect.succeed("hello"), - * Effect.fail(new OopsError()) - * ] - * ``` + * @category utility types + * @since 2.0.0 */ type EffectAny = Effect; /** - * @since 2.0.0 - * @category Models - * @example - * ```ts - * import type { Effect } from "effect" + * Computes the return type for `Effect.all` when collecting an iterable. * - * // ReturnIterable computes the return type for Effect.all with iterables - * type EffectArray = Array> - * type Result = Effect.All.ReturnIterable - * // Result: Effect, string, never> - * ``` + * @category utility types + * @since 2.0.0 */ type ReturnIterable, Discard extends boolean, Mode extends boolean = false> = [T] extends [Iterable>] ? Effect : A>, Mode extends true ? never : E, R> : never; /** - * @since 2.0.0 - * @category Models - * @example - * ```ts - * import type { Effect } from "effect" + * Computes the return type for `Effect.all` when collecting a tuple. * - * // ReturnTuple computes the return type for Effect.all with tuples - * type EffectTuple = [ - * Effect.Effect, - * Effect.Effect - * ] - * type Result = Effect.All.ReturnTuple - * // Result: Effect<[string, number], Error, never> - * ``` + * @category utility types + * @since 2.0.0 */ type ReturnTuple, Discard extends boolean, Mode extends boolean = false> = Effect ? Mode extends true ? Result.Result<_A, _E> : _A : never; }, Mode extends true ? never : T[number] extends never ? never : T[number] extends Effect ? _E : never, T[number] extends never ? never : T[number] extends Effect ? _R : never> extends infer X ? X : never; /** - * @since 2.0.0 - * @category Models - * @example - * ```ts - * import type { Effect } from "effect" + * Computes the return type for `Effect.all` when collecting a record. * - * // ReturnObject computes the return type for Effect.all with objects - * type EffectRecord = { - * a: Effect.Effect - * b: Effect.Effect - * } - * type Result = Effect.All.ReturnObject - * // Result: Effect<{ a: string, b: number }, Error, never> - * ``` + * @category utility types + * @since 2.0.0 */ type ReturnObject = [T] extends [ Record @@ -427,18 +240,10 @@ export declare namespace All { ] ? Mode extends true ? Result.Result<_A, _E> : _A : never; }, Mode extends true ? never : keyof T extends never ? never : T[keyof T] extends Effect ? _E : never, keyof T extends never ? never : T[keyof T] extends Effect ? _R : never> : never; /** - * @since 2.0.0 - * @category Models - * @example - * ```ts - * import type { Effect } from "effect" + * Detects whether `Effect.all` should discard collected values. * - * // IsDiscard checks if options have discard flag set to true - * type DiscardOptions = { discard: true } - * type NoDiscardOptions = { discard: false } - * type WithDiscard = Effect.All.IsDiscard // true - * type WithoutDiscard = Effect.All.IsDiscard // false - * ``` + * @category utility types + * @since 2.0.0 */ type IsDiscard = [Extract = [Extract] extends [never] ? false : true; /** - * @since 2.0.0 - * @category Models - * @example - * ```ts - * import type { Effect } from "effect" + * Computes the return type for `Effect.all` from its input and options. * - * // Return determines the result type based on input and options - * type EffectArray = Array> - * type Options = { discard: false } - * type Result = Effect.All.Return - * // Result: Effect, string, never> - * ``` + * @category utility types + * @since 2.0.0 */ type Return | Record, O extends { readonly concurrency?: Concurrency | undefined; @@ -473,49 +272,30 @@ export declare namespace All { }> = [Arg] extends [ReadonlyArray] ? ReturnTuple, IsResult> : [Arg] extends [Iterable] ? ReturnIterable, IsResult> : [Arg] extends [Record] ? ReturnObject, IsResult> : never; } /** - * Combines multiple effects into one, returning results based on the input - * structure. + * Combines an iterable or record of effects into one effect whose success shape + * follows the input. * - * **Details** - * - * Use this function when you need to run multiple effects and combine their - * results into a single output. It supports tuples, iterables, structs, and - * records, making it flexible for different input types. - * - * For instance, if the input is a tuple: - * - * ```ts skip-type-checking - * // ┌─── a tuple of effects - * // ▼ - * Effect.all([effect1, effect2, ...]) - * ``` + * **When to use** * - * the effects are executed sequentially, and the result is a new effect - * containing the results as a tuple. The results in the tuple match the order - * of the effects passed to `Effect.all`. + * Use to run a known collection of effects and collect results in the same + * tuple, iterable, or record shape. * - * **Concurrency** - * - * You can control the execution order (e.g., sequential vs. concurrent) using - * the `concurrency` option. + * **Details** * - * **Short-Circuiting Behavior** + * Tuple and iterable inputs collect results in order. Record inputs collect + * results under the same keys. By default, the combined effect fails on the + * first failure; with concurrent execution, effects that have already started + * may be interrupted, while effects not yet started are skipped. * - * This function stops execution on the first error it encounters, this is - * called "short-circuiting". If any effect in the collection fails, the - * remaining effects will not run, and the error will be propagated. To change - * this behavior, you can use the `mode` option, which allows all effects to run - * and collect every success / failure as `Result` values. + * Options: * - * **The `mode` option** + * Use `concurrency` to control sequential or concurrent execution. Use + * `mode: "result"` to run every effect and collect each success or failure as a + * `Result` in the same output shape. Use `discard: true` to ignore successful + * values and return `void`. * - * The `{ mode: "result" }` option changes the behavior of `Effect.all` to - * ensure all effects run, even if some fail. Instead of stopping on the first - * failure, this mode collects both successes and failures, returning an array - * of `Result` instances where each result is either an `Ok` (success) or a - * `Err` (failure). + * **Example** (Collecting tuple results in order) * - * @example Combining Effects in Tuples * ```ts * import { Console, Effect } from "effect" * @@ -535,7 +315,8 @@ export declare namespace All { * // [ 42, 'Hello' ] * ``` * - * @example Combining Effects in Iterables + * **Example** (Collecting iterable results in order) + * * ```ts * import { Console, Effect } from "effect" * @@ -555,7 +336,8 @@ export declare namespace All { * // [ 1, 2, 3 ] * ``` * - * @example Combining Effects in Structs + * **Example** (Collecting struct results by key) + * * ```ts * import { Console, Effect } from "effect" * @@ -575,7 +357,8 @@ export declare namespace All { * // { a: 42, b: 'Hello' } * ``` * - * @example Combining Effects in Records + * **Example** (Collecting record results by key) + * * ```ts * import { Console, Effect } from "effect" * @@ -595,7 +378,8 @@ export declare namespace All { * // { key1: 1, key2: 2 } * ``` * - * @example Short-Circuiting Behavior + * **Example** (Stopping on the first failure) + * * ```ts * import { Console, Effect } from "effect" * @@ -617,9 +401,8 @@ export declare namespace All { * ``` * * @see {@link forEach} for iterating over elements and applying an effect. - * + * @category collecting * @since 2.0.0 - * @category Collecting */ export declare const all: > | Record>, O extends { readonly concurrency?: Concurrency | undefined; @@ -630,15 +413,16 @@ export declare const all: > | R * Applies an effectful function to each element and partitions failures and * successes. * - * The returned tuple is `[excluded, satisfying]`, where: + * **Details** * - * - `excluded` contains all failures. - * - `satisfying` contains all successes. + * The returned tuple is `[excluded, satisfying]`, where `excluded` contains + * all failures and `satisfying` contains all successes. * * This function runs every effect and never fails. Use `concurrency` to control * parallelism. * - * @example + * **Example** (Separating successes and failures) + * * ```ts * import { Effect } from "effect" * @@ -650,23 +434,24 @@ export declare const all: > | R * // [ ["0 is even", "2 is even"], [1, 3] ] * ``` * - * @since 3.0.0 - * @category Collecting + * @category collecting + * @since 2.0.0 */ export declare const partition: { /** * Applies an effectful function to each element and partitions failures and * successes. * - * The returned tuple is `[excluded, satisfying]`, where: + * **Details** * - * - `excluded` contains all failures. - * - `satisfying` contains all successes. + * The returned tuple is `[excluded, satisfying]`, where `excluded` contains + * all failures and `satisfying` contains all successes. * * This function runs every effect and never fails. Use `concurrency` to control * parallelism. * - * @example + * **Example** (Separating successes and failures) + * * ```ts * import { Effect } from "effect" * @@ -678,8 +463,8 @@ export declare const partition: { * // [ ["0 is even", "2 is even"], [1, 3] ] * ``` * - * @since 3.0.0 - * @category Collecting + * @category collecting + * @since 2.0.0 */ (f: (a: A, i: number) => Effect, options?: { readonly concurrency?: Concurrency | undefined; @@ -688,15 +473,16 @@ export declare const partition: { * Applies an effectful function to each element and partitions failures and * successes. * - * The returned tuple is `[excluded, satisfying]`, where: + * **Details** * - * - `excluded` contains all failures. - * - `satisfying` contains all successes. + * The returned tuple is `[excluded, satisfying]`, where `excluded` contains + * all failures and `satisfying` contains all successes. * * This function runs every effect and never fails. Use `concurrency` to control * parallelism. * - * @example + * **Example** (Separating successes and failures) + * * ```ts * import { Effect } from "effect" * @@ -708,8 +494,8 @@ export declare const partition: { * // [ ["0 is even", "2 is even"], [1, 3] ] * ``` * - * @since 3.0.0 - * @category Collecting + * @category collecting + * @since 2.0.0 */ (elements: Iterable, f: (a: A, i: number) => Effect, options?: { readonly concurrency?: Concurrency | undefined; @@ -718,6 +504,8 @@ export declare const partition: { /** * Applies an effectful function to each element and accumulates all failures. * + * **Details** + * * This function always evaluates every element. If at least one effect fails, * all failures are returned as a non-empty array and successes are discarded. * If all effects succeed, it returns all collected successes. @@ -725,7 +513,8 @@ export declare const partition: { * Use `discard: true` to ignore successful values while still validating all * elements. * - * @example + * **Example** (Validating every element) + * * ```ts * import { Effect } from "effect" * @@ -747,13 +536,15 @@ export declare const partition: { * // } * ``` * - * @since 4.0.0 - * @category Error Accumulation + * @category error accumulation + * @since 2.0.0 */ export declare const validate: { /** * Applies an effectful function to each element and accumulates all failures. * + * **Details** + * * This function always evaluates every element. If at least one effect fails, * all failures are returned as a non-empty array and successes are discarded. * If all effects succeed, it returns all collected successes. @@ -761,7 +552,8 @@ export declare const validate: { * Use `discard: true` to ignore successful values while still validating all * elements. * - * @example + * **Example** (Validating every element) + * * ```ts * import { Effect } from "effect" * @@ -783,8 +575,8 @@ export declare const validate: { * // } * ``` * - * @since 4.0.0 - * @category Error Accumulation + * @category error accumulation + * @since 2.0.0 */ (f: (a: A, i: number) => Effect, options?: { readonly concurrency?: Concurrency | undefined; @@ -793,6 +585,8 @@ export declare const validate: { /** * Applies an effectful function to each element and accumulates all failures. * + * **Details** + * * This function always evaluates every element. If at least one effect fails, * all failures are returned as a non-empty array and successes are discarded. * If all effects succeed, it returns all collected successes. @@ -800,7 +594,8 @@ export declare const validate: { * Use `discard: true` to ignore successful values while still validating all * elements. * - * @example + * **Example** (Validating every element) + * * ```ts * import { Effect } from "effect" * @@ -822,8 +617,8 @@ export declare const validate: { * // } * ``` * - * @since 4.0.0 - * @category Error Accumulation + * @category error accumulation + * @since 2.0.0 */ (f: (a: A, i: number) => Effect, options: { readonly concurrency?: Concurrency | undefined; @@ -832,6 +627,8 @@ export declare const validate: { /** * Applies an effectful function to each element and accumulates all failures. * + * **Details** + * * This function always evaluates every element. If at least one effect fails, * all failures are returned as a non-empty array and successes are discarded. * If all effects succeed, it returns all collected successes. @@ -839,7 +636,8 @@ export declare const validate: { * Use `discard: true` to ignore successful values while still validating all * elements. * - * @example + * **Example** (Validating every element) + * * ```ts * import { Effect } from "effect" * @@ -861,8 +659,8 @@ export declare const validate: { * // } * ``` * - * @since 4.0.0 - * @category Error Accumulation + * @category error accumulation + * @since 2.0.0 */ (elements: Iterable, f: (a: A, i: number) => Effect, options?: { readonly concurrency?: Concurrency | undefined; @@ -871,6 +669,8 @@ export declare const validate: { /** * Applies an effectful function to each element and accumulates all failures. * + * **Details** + * * This function always evaluates every element. If at least one effect fails, * all failures are returned as a non-empty array and successes are discarded. * If all effects succeed, it returns all collected successes. @@ -878,7 +678,8 @@ export declare const validate: { * Use `discard: true` to ignore successful values while still validating all * elements. * - * @example + * **Example** (Validating every element) + * * ```ts * import { Effect } from "effect" * @@ -900,8 +701,8 @@ export declare const validate: { * // } * ``` * - * @since 4.0.0 - * @category Error Accumulation + * @category error accumulation + * @since 2.0.0 */ (elements: Iterable, f: (a: A, i: number) => Effect, options: { readonly concurrency?: Concurrency | undefined; @@ -911,10 +712,13 @@ export declare const validate: { /** * Returns the first element that satisfies an effectful predicate. * + * **Details** + * * The predicate receives the element and its index. Evaluation short-circuits * as soon as an element matches. * - * @example + * **Example** (Finding the first successful match) + * * ```ts * import { Effect } from "effect" * @@ -924,17 +728,20 @@ export declare const validate: { * // { _id: 'Option', _tag: 'Some', value: 3 } * ``` * + * @category collecting * @since 2.0.0 - * @category Collecting */ export declare const findFirst: { /** * Returns the first element that satisfies an effectful predicate. * + * **Details** + * * The predicate receives the element and its index. Evaluation short-circuits * as soon as an element matches. * - * @example + * **Example** (Finding the first successful match) + * * ```ts * import { Effect } from "effect" * @@ -944,17 +751,20 @@ export declare const findFirst: { * // { _id: 'Option', _tag: 'Some', value: 3 } * ``` * + * @category collecting * @since 2.0.0 - * @category Collecting */ (predicate: (a: NoInfer, i: number) => Effect): (elements: Iterable) => Effect, E, R>; /** * Returns the first element that satisfies an effectful predicate. * + * **Details** + * * The predicate receives the element and its index. Evaluation short-circuits * as soon as an element matches. * - * @example + * **Example** (Finding the first successful match) + * * ```ts * import { Effect } from "effect" * @@ -964,45 +774,77 @@ export declare const findFirst: { * // { _id: 'Option', _tag: 'Some', value: 3 } * ``` * + * @category collecting * @since 2.0.0 - * @category Collecting */ (elements: Iterable, predicate: (a: NoInfer, i: number) => Effect): Effect, E, R>; }; /** * Returns the first value that passes an effectful `FilterEffect`. * + * **When to use** + * + * Use when you need to find the first element that satisfies an effectful + * filter returning a `Result`, which also transforms the matching element. + * + * **Details** + * * The filter receives the element and index. Evaluation short-circuits on the * first `Result.succeed` and returns the transformed value in `Option.some`. * + * @see {@link findFirst} for the simpler effectful predicate-based variant + * + * @category collecting * @since 4.0.0 - * @category Collecting */ export declare const findFirstFilter: { /** * Returns the first value that passes an effectful `FilterEffect`. * + * **When to use** + * + * Use when you need to find the first element that satisfies an effectful + * filter returning a `Result`, which also transforms the matching element. + * + * **Details** + * * The filter receives the element and index. Evaluation short-circuits on the * first `Result.succeed` and returns the transformed value in `Option.some`. * + * @see {@link findFirst} for the simpler effectful predicate-based variant + * + * @category collecting * @since 4.0.0 - * @category Collecting */ (filter: (input: NoInfer, i: number) => Effect, E, R>): (elements: Iterable) => Effect, E, R>; /** * Returns the first value that passes an effectful `FilterEffect`. * + * **When to use** + * + * Use when you need to find the first element that satisfies an effectful + * filter returning a `Result`, which also transforms the matching element. + * + * **Details** + * * The filter receives the element and index. Evaluation short-circuits on the * first `Result.succeed` and returns the transformed value in `Option.some`. * + * @see {@link findFirst} for the simpler effectful predicate-based variant + * + * @category collecting * @since 4.0.0 - * @category Collecting */ (elements: Iterable, filter: (input: NoInfer, i: number) => Effect, E, R>): Effect, E, R>; }; /** * Executes an effectful operation for each element in an `Iterable`. * + * **When to use** + * + * Use to traverse an iterable with an effectful function while preserving + * element order in the collected results. + * * **Details** * * The `forEach` function applies a provided operation to each element in the @@ -1011,23 +853,20 @@ export declare const findFirstFilter: { * If any effect fails, the iteration stops immediately (short-circuiting), and * the error is propagated. * - * **Concurrency** + * Concurrency: * * The `concurrency` option controls how many operations are performed * concurrently. By default, the operations are performed sequentially. * - * **Discarding Results** + * Discarding Results: * * If the `discard` option is set to `true`, the intermediate results are not * collected, and the final result of the operation is `void`. * - * @see {@link all} for combining multiple effects into one. + * **Example** (Mapping over an iterable with effects) * - * @example * ```ts - * // Title: Applying Effects to Iterable Elements - * import { Effect } from "effect" - * import { Console } from "effect" + * import { Console, Effect } from "effect" * * const result = Effect.forEach( * [1, 2, 3, 4, 5], @@ -1045,10 +884,10 @@ export declare const findFirstFilter: { * // [ 2, 4, 6, 8, 10 ] * ``` * - * @example - * // Title: Using discard to Ignore Results - * import { Effect } from "effect" - * import { Console } from "effect" + * **Example** (Running effects without collecting results) + * + * ```ts + * import { Console, Effect } from "effect" * * // Apply effects but discard the results * const result = Effect.forEach( @@ -1066,14 +905,21 @@ export declare const findFirstFilter: { * // Currently at index 3 * // Currently at index 4 * // undefined + * ``` * + * @see {@link all} for combining multiple effects into one. + * @category collecting * @since 2.0.0 - * @category Collecting */ export declare const forEach: { /** * Executes an effectful operation for each element in an `Iterable`. * + * **When to use** + * + * Use to traverse an iterable with an effectful function while preserving + * element order in the collected results. + * * **Details** * * The `forEach` function applies a provided operation to each element in the @@ -1082,23 +928,20 @@ export declare const forEach: { * If any effect fails, the iteration stops immediately (short-circuiting), and * the error is propagated. * - * **Concurrency** + * Concurrency: * * The `concurrency` option controls how many operations are performed * concurrently. By default, the operations are performed sequentially. * - * **Discarding Results** + * Discarding Results: * * If the `discard` option is set to `true`, the intermediate results are not * collected, and the final result of the operation is `void`. * - * @see {@link all} for combining multiple effects into one. + * **Example** (Mapping over an iterable with effects) * - * @example * ```ts - * // Title: Applying Effects to Iterable Elements - * import { Effect } from "effect" - * import { Console } from "effect" + * import { Console, Effect } from "effect" * * const result = Effect.forEach( * [1, 2, 3, 4, 5], @@ -1116,10 +959,10 @@ export declare const forEach: { * // [ 2, 4, 6, 8, 10 ] * ``` * - * @example - * // Title: Using discard to Ignore Results - * import { Effect } from "effect" - * import { Console } from "effect" + * **Example** (Running effects without collecting results) + * + * ```ts + * import { Console, Effect } from "effect" * * // Apply effects but discard the results * const result = Effect.forEach( @@ -1137,9 +980,11 @@ export declare const forEach: { * // Currently at index 3 * // Currently at index 4 * // undefined + * ``` * + * @see {@link all} for combining multiple effects into one. + * @category collecting * @since 2.0.0 - * @category Collecting */ , const Discard extends boolean = false>(f: (a: Arr.ReadonlyArray.Infer, i: number) => Effect, options?: { readonly concurrency?: Concurrency | undefined; @@ -1148,6 +993,11 @@ export declare const forEach: { /** * Executes an effectful operation for each element in an `Iterable`. * + * **When to use** + * + * Use to traverse an iterable with an effectful function while preserving + * element order in the collected results. + * * **Details** * * The `forEach` function applies a provided operation to each element in the @@ -1156,23 +1006,20 @@ export declare const forEach: { * If any effect fails, the iteration stops immediately (short-circuiting), and * the error is propagated. * - * **Concurrency** + * Concurrency: * * The `concurrency` option controls how many operations are performed * concurrently. By default, the operations are performed sequentially. * - * **Discarding Results** + * Discarding Results: * * If the `discard` option is set to `true`, the intermediate results are not * collected, and the final result of the operation is `void`. * - * @see {@link all} for combining multiple effects into one. + * **Example** (Mapping over an iterable with effects) * - * @example * ```ts - * // Title: Applying Effects to Iterable Elements - * import { Effect } from "effect" - * import { Console } from "effect" + * import { Console, Effect } from "effect" * * const result = Effect.forEach( * [1, 2, 3, 4, 5], @@ -1190,10 +1037,10 @@ export declare const forEach: { * // [ 2, 4, 6, 8, 10 ] * ``` * - * @example - * // Title: Using discard to Ignore Results - * import { Effect } from "effect" - * import { Console } from "effect" + * **Example** (Running effects without collecting results) + * + * ```ts + * import { Console, Effect } from "effect" * * // Apply effects but discard the results * const result = Effect.forEach( @@ -1211,9 +1058,11 @@ export declare const forEach: { * // Currently at index 3 * // Currently at index 4 * // undefined + * ``` * + * @see {@link all} for combining multiple effects into one. + * @category collecting * @since 2.0.0 - * @category Collecting */ , const Discard extends boolean = false>(self: S, f: (a: Arr.ReadonlyArray.Infer, i: number) => Effect, options?: { readonly concurrency?: Concurrency | undefined; @@ -1223,7 +1072,8 @@ export declare const forEach: { /** * Executes a body effect repeatedly while a condition holds true. * - * @example + * **Example** (Repeating an effectful loop) + * * ```ts * import { Effect } from "effect" * @@ -1244,8 +1094,8 @@ export declare const forEach: { * // Current count: 5 * ``` * + * @category collecting * @since 2.0.0 - * @category Collecting */ export declare const whileLoop: (options: { readonly while: LazyArg; @@ -1256,30 +1106,27 @@ export declare const whileLoop: (options: { * Creates an `Effect` that represents an asynchronous computation guaranteed to * succeed. * - * **When to Use** + * **When to use** * - * Use `promise` when you are sure the operation will not reject. + * Use to convert a `Promise` into an `Effect` when the async operation is + * guaranteed to succeed and will not reject. * * **Details** * - * The provided function (`thunk`) returns a `Promise` that should never reject; if it does, the error - * will be treated as a "defect". + * An optional `AbortSignal` can be provided to allow for interruption of the + * wrapped `Promise` API. * - * This defect is not a standard error but indicates a flaw in the logic that - * was expected to be error-free. You can think of it similar to an unexpected - * crash in the program, which can be further managed or logged using tools like - * {@link catchAllDefect}. + * **Gotchas** * - * **Interruptions** + * The `Promise` must not reject. If it rejects, the rejection is treated as a + * defect, not as a typed failure. Use `tryPromise` when rejection is expected. * - * An optional `AbortSignal` can be provided to allow for interruption of the - * wrapped `Promise` API. + * Interruption aborts the provided `AbortSignal`, but the underlying + * asynchronous operation only stops if it observes that signal. * - * @see {@link tryPromise} for a version that can handle failures. + * **Example** (Wrapping a non-rejecting Promise) * - * @example * ```ts - * // Title: Delayed Message * import { Effect } from "effect" * * const delay = (message: string) => @@ -1297,23 +1144,24 @@ export declare const whileLoop: (options: { * const program = delay("Async operation completed successfully!") * ``` * + * @see {@link tryPromise} for a version that can handle failures. + * @category constructors * @since 2.0.0 - * @category Creating Effects */ export declare const promise: (evaluate: (signal: AbortSignal) => PromiseLike) => Effect; /** * Creates an `Effect` that represents an asynchronous computation that might * fail. * - * **When to Use** + * **When to use** * - * In situations where you need to perform asynchronous operations that might - * fail, such as fetching data from an API, you can use the `tryPromise` - * constructor. This constructor is designed to handle operations that could - * throw exceptions by capturing those exceptions and transforming them into - * manageable errors. + * Use when you need to perform asynchronous operations that might fail, such + * as fetching data from an API, and want thrown exceptions or rejected promises + * captured as Effect errors. + * + * **Details** * - * **Error Handling** + * Error Handling: * * There are two ways to handle errors with `tryPromise`: * @@ -1322,12 +1170,13 @@ export declare const promise: (evaluate: (signal: AbortSignal) => PromiseLike * 2. If you provide a `catch` function, the error is caught and the `catch` * function maps it to an error of type `E`. * - * **Interruptions** + * Interruptions: * * An optional `AbortSignal` can be provided to allow for interruption of the * wrapped `Promise` API. * - * @example Fetching a TODO Item + * **Example** (Wrapping a fetch request that may fail) + * * ```ts * import { Effect } from "effect" * @@ -1342,7 +1191,8 @@ export declare const promise: (evaluate: (signal: AbortSignal) => PromiseLike * const program = getTodo(1) * ``` * - * @example Custom Error Handling + * **Example** (Mapping Promise rejections to a tagged error) + * * ```ts * import { Data, Effect } from "effect" * @@ -1361,9 +1211,8 @@ export declare const promise: (evaluate: (signal: AbortSignal) => PromiseLike * ``` * * @see {@link promise} if the effectful computation is asynchronous and does not throw errors. - * + * @category constructors * @since 2.0.0 - * @category Creating Effects */ export declare const tryPromise: (options: { readonly try: (signal: AbortSignal) => PromiseLike; @@ -1372,16 +1221,14 @@ export declare const tryPromise: (options: { /** * Creates an `Effect` that always succeeds with a given value. * - * **When to Use** + * **When to use** * - * Use this function when you need an effect that completes successfully with a - * specific value without any errors or external dependencies. + * Use when an effect should complete successfully with a specific value without any errors + * or external dependencies. * - * @see {@link fail} to create an effect that represents a failure. + * **Example** (Creating a successful effect) * - * @example * ```ts - * // Title: Creating a Successful Effect * import { Effect } from "effect" * * // Creating an effect that represents a successful scenario @@ -1391,14 +1238,16 @@ export declare const tryPromise: (options: { * const success = Effect.succeed(42) * ``` * + * @see {@link fail} to create an effect that represents a failure. + * @category constructors * @since 2.0.0 - * @category Creating Effects */ export declare const succeed: (value: A) => Effect; /** * Returns an effect which succeeds with `None`. * - * @example + * **Example** (Succeeding with Option.none) + * * ```ts * import { Effect } from "effect" * @@ -1408,14 +1257,15 @@ export declare const succeed: (value: A) => Effect; * // Output: { _id: 'Option', _tag: 'None' } * ``` * + * @category constructors * @since 2.0.0 - * @category Creating Effects */ export declare const succeedNone: Effect>; /** * Returns an effect which succeeds with the value wrapped in a `Some`. * - * @example + * **Example** (Succeeding with Option.some) + * * ```ts * import { Effect } from "effect" * @@ -1425,27 +1275,29 @@ export declare const succeedNone: Effect>; * // Output: { _id: 'Option', _tag: 'Some', value: 42 } * ``` * + * @category constructors * @since 2.0.0 - * @category Creating Effects */ export declare const succeedSome: (value: A) => Effect>; /** - * Delays the creation of an `Effect` until it is actually needed. + * Creates an `Effect` lazily, delaying construction until it is needed. * - * **When to Use** + * **When to use** * - * Use `suspend` when you need to defer the evaluation of an effect until it is required. This is particularly useful for optimizing expensive computations, managing circular dependencies, or resolving type inference issues. + * Use when you need to defer the evaluation of an effect until it is required. * * **Details** * - * `suspend` takes a thunk that represents the effect and wraps it in a suspended effect. This means the effect will not be created until it is explicitly needed, which is helpful in various scenarios: - * - **Lazy Evaluation**: Helps optimize performance by deferring computations, especially when the effect might not be needed, or when its computation is expensive. This also ensures that any side effects or scoped captures are re-executed on each invocation. - * - **Handling Circular Dependencies**: Useful in managing circular dependencies, such as recursive functions that need to avoid eager evaluation to prevent stack overflow. - * - **Unifying Return Types**: Can help TypeScript unify return types in situations where multiple branches of logic return different effects, simplifying type inference. + * `suspend` takes a thunk that represents an effect and delays creating it + * until the suspended effect is evaluated. This is useful for optimizing + * expensive computations, managing circular dependencies such as recursive + * functions, and helping TypeScript unify return types when branches construct + * different effects. Any side effects or scoped captures inside the thunk are + * re-executed on each invocation. + * + * **Example** (Lazily evaluating side effects) * - * @example * ```ts - * // Title: Lazy Evaluation with Side Effects * import { Effect } from "effect" * * let i = 0 @@ -1461,8 +1313,9 @@ export declare const succeedSome: (value: A) => Effect>; * console.log(Effect.runSync(good)) // Output: 2 * ``` * - * @example - * // Title: Recursive Fibonacci + * **Example** (Suspending recursive Fibonacci evaluation) + * + * ```ts * import { Effect } from "effect" * * const blowsUp = (n: number): Effect.Effect => @@ -1484,9 +1337,11 @@ export declare const succeedSome: (value: A) => Effect>; * * console.log(Effect.runSync(allGood(32))) * // Output: 3524578 + * ``` * - * @example - * // Title: Using Effect.suspend to Help TypeScript Infer Types + * **Example** (Helping TypeScript infer recursive effect types) + * + * ```ts * import { Effect } from "effect" * * // Without suspend, TypeScript may struggle with type inference. @@ -1507,33 +1362,32 @@ export declare const succeedSome: (value: A) => Effect>; * ? Effect.fail(new Error("Cannot divide by zero")) * : Effect.succeed(a / b) * ) + * ``` * + * @category constructors * @since 2.0.0 - * @category Creating Effects */ export declare const suspend: (effect: LazyArg>) => Effect; /** * Creates an `Effect` that represents a synchronous side-effectful computation. * - * **When to Use** + * **When to use** * - * Use `sync` when you are sure the operation will not fail. + * Use when you need to wrap a synchronous side-effectful operation that is not + * expected to throw. * * **Details** * - * The provided function (`thunk`) must not throw errors; if it does, the error - * will be treated as a "defect". + * The provided function is evaluated lazily when the effect runs. * - * This defect is not a standard error but indicates a flaw in the logic that - * was expected to be error-free. You can think of it similar to an unexpected - * crash in the program, which can be further managed or logged using tools like - * {@link catchAllDefect}. + * **Gotchas** * - * @see {@link try_ | try} for a version that can handle failures. + * The function must not throw. If it throws, the thrown value is treated as a + * defect, not as a typed failure. Use `try` when throwing is expected. + * + * **Example** (Capturing synchronous logging in an Effect) * - * @example * ```ts - * // Title: Logging a Message * import { Effect } from "effect" * * const log = (message: string) => @@ -1546,54 +1400,46 @@ export declare const suspend: (effect: LazyArg>) => Eff * const program = log("Hello, World!") * ``` * + * @see {@link try_ | try} for a version that can handle failures. + * @category constructors * @since 2.0.0 - * @category Creating Effects */ export declare const sync: (thunk: LazyArg) => Effect; declare const void_: Effect; export { /** + * Returns an effect that succeeds with `void`. + * + * @category constructors * @since 2.0.0 - * @category Creating Effects */ void_ as void }; declare const undefined_: Effect; export { /** + * Returns an effect that succeeds with `undefined`. + * + * @category constructors * @since 4.0.0 - * @category Creating Effects */ undefined_ as undefined }; /** - * Creates an `Effect` from a callback-based asynchronous function. - * - * **Details** - * - * The `resume` function: - * - Must be called exactly once. Any additional calls will be ignored. - * - Can return an optional `Effect` that will be run if the `Fiber` executing - * this `Effect` is interrupted. This can be useful in scenarios where you - * need to handle resource cleanup if the operation is interrupted. - * - Can receive an `AbortSignal` to handle interruption if needed. + * Creates an `Effect` from a callback-based asynchronous API. * - * The `FiberId` of the fiber that may complete the async callback may also be - * specified using the `blockingOn` argument. This is called the "blocking - * fiber" because it suspends the fiber executing the `async` effect (i.e. - * semantically blocks the fiber from making progress). Specifying this fiber id - * in cases where it is known will improve diagnostics, but not affect the - * behavior of the returned effect. + * **When to use** * - * **When to Use** + * Use when you need to integrate APIs that complete through callbacks instead + * of returning a `Promise`. * - * Use `Effect.callback` when dealing with APIs that use callback-style instead of - * `async/await` or `Promise`. - * * **Previously Known As** + * **Details** * - * This API replaces the following from Effect 3.x: + * The registration function receives a `resume` callback and, when requested, + * an `AbortSignal`. Call `resume` at most once with the effect that should + * complete the fiber; later calls are ignored. Return an optional cleanup + * effect from the registration function to run if the fiber is interrupted. * - * - `Effect.async` + * **Example** (Integrating callback APIs) * - * @example * ```ts * import { Effect } from "effect" * @@ -1609,15 +1455,16 @@ undefined_ as undefined }; * const program = delay(1000) * ``` * - * @since 2.0.0 - * @category Creating Effects + * @category constructors + * @since 4.0.0 */ export declare const callback: (register: (this: Scheduler, resume: (effect: Effect) => void, signal: AbortSignal) => void | Effect) => Effect; /** * Returns an effect that will never produce anything. The moral equivalent of * `while(true) {}`, only without the wasted CPU cycles. * - * @example + * **Example** (Creating a never-ending effect) + * * ```ts * import { Effect } from "effect" * @@ -1631,18 +1478,18 @@ export declare const callback: (register: (this: Schedu * const timedProgram = Effect.timeout(program, "1 second") * ``` * + * @category constructors * @since 2.0.0 - * @category Creating Effects */ export declare const never: Effect; /** - * An `Effect` containing an empty record `{}`, used as the starting point for - * do notation chains. + * Effect that succeeds with an empty record `{}`, used as the starting point + * for do notation chains. + * + * **Example** (Starting do notation) * - * @example * ```ts - * import { Effect } from "effect" - * import { pipe } from "effect/Function" + * import { Effect, pipe } from "effect" * * const program = pipe( * Effect.Do, @@ -1652,24 +1499,40 @@ export declare const never: Effect; * ) * ``` * - * @since 4.0.0 - * @category Do notation + * @category do notation + * @since 2.0.0 */ export declare const Do: Effect<{}>; /** * Gives a name to the success value of an `Effect`, creating a single-key * record used in do notation pipelines. * - * @since 4.0.0 - * @category Do notation + * **When to use** + * + * Use to start a do-notation pipeline from an existing `Effect` when its + * success value should become the first named field in the accumulated record. + * + * @see {@link Do} for starting from an empty accumulated record + * @see {@link bind} for adding fields produced by effects + * + * @category do notation + * @since 2.0.0 */ export declare const bindTo: { /** * Gives a name to the success value of an `Effect`, creating a single-key * record used in do notation pipelines. * - * @since 4.0.0 - * @category Do notation + * **When to use** + * + * Use to start a do-notation pipeline from an existing `Effect` when its + * success value should become the first named field in the accumulated record. + * + * @see {@link Do} for starting from an empty accumulated record + * @see {@link bind} for adding fields produced by effects + * + * @category do notation + * @since 2.0.0 */ (name: N): (self: Effect) => Effect<{ [K in N]: A; @@ -1678,8 +1541,16 @@ export declare const bindTo: { * Gives a name to the success value of an `Effect`, creating a single-key * record used in do notation pipelines. * - * @since 4.0.0 - * @category Do notation + * **When to use** + * + * Use to start a do-notation pipeline from an existing `Effect` when its + * success value should become the first named field in the accumulated record. + * + * @see {@link Do} for starting from an empty accumulated record + * @see {@link bind} for adding fields produced by effects + * + * @category do notation + * @since 2.0.0 */ (self: Effect, name: N): Effect<{ [K in N]: A; @@ -1693,29 +1564,108 @@ export { /** * Adds a computed plain value to the do notation record. * - * @since 4.0.0 - * @category Do notation + * **When to use** + * + * Use to add a derived, synchronous value to a do-notation pipeline when it + * depends on fields already accumulated in the record and does not need to run + * another `Effect`. + * + * **Details** + * + * The new field is added with object spreading. If the name already exists in + * the record, the computed value replaces it in the returned type. + * + * @see {@link bind} for adding fields produced by effects + * @see {@link bindTo} for naming an existing success value + * @see {@link Do} for starting from an empty accumulated record + * @see {@link gen} for sequencing without accumulating a record + * + * @category do notation + * @since 2.0.0 */ let_ as let }; /** * Adds an `Effect` value to the do notation record under a given name. * - * @since 4.0.0 - * @category Do notation + * **When to use** + * + * Use to sequence an effectful step in a do-notation pipeline when that step + * depends on fields already accumulated in the record and its success value + * should be stored under a name. + * + * **Details** + * + * The function receives the current record, runs the returned effect after the + * input effect succeeds, and inserts its success value under `name`. The + * resulting effect combines the error and service requirements of both steps. + * + * **Gotchas** + * + * Binding a name that already exists replaces that field in the resulting + * record. + * + * @see {@link Do} for starting from an empty do-notation record + * @see {@link bindTo} for naming the success value of an existing effect + * @see {@link gen} for generator-based sequencing without accumulating a record + * + * @category do notation + * @since 2.0.0 */ export declare const bind: { /** * Adds an `Effect` value to the do notation record under a given name. * - * @since 4.0.0 - * @category Do notation + * **When to use** + * + * Use to sequence an effectful step in a do-notation pipeline when that step + * depends on fields already accumulated in the record and its success value + * should be stored under a name. + * + * **Details** + * + * The function receives the current record, runs the returned effect after the + * input effect succeeds, and inserts its success value under `name`. The + * resulting effect combines the error and service requirements of both steps. + * + * **Gotchas** + * + * Binding a name that already exists replaces that field in the resulting + * record. + * + * @see {@link Do} for starting from an empty do-notation record + * @see {@link bindTo} for naming the success value of an existing effect + * @see {@link gen} for generator-based sequencing without accumulating a record + * + * @category do notation + * @since 2.0.0 */ , B, E2, R2>(name: N, f: (a: NoInfer) => Effect): (self: Effect) => Effect & Record>, E | E2, R | R2>; /** * Adds an `Effect` value to the do notation record under a given name. * - * @since 4.0.0 - * @category Do notation + * **When to use** + * + * Use to sequence an effectful step in a do-notation pipeline when that step + * depends on fields already accumulated in the record and its success value + * should be stored under a name. + * + * **Details** + * + * The function receives the current record, runs the returned effect after the + * input effect succeeds, and inserts its success value under `name`. The + * resulting effect combines the error and service requirements of both steps. + * + * **Gotchas** + * + * Binding a name that already exists replaces that field in the resulting + * record. + * + * @see {@link Do} for starting from an empty do-notation record + * @see {@link bindTo} for naming the success value of an existing effect + * @see {@link gen} for generator-based sequencing without accumulating a record + * + * @category do notation + * @since 2.0.0 */ , E, R, B, E2, R2, N extends string>(self: Effect, name: N, f: (a: NoInfer) => Effect): Effect & Record>, E | E2, R | R2>; }; @@ -1723,18 +1673,18 @@ export declare const bind: { * Provides a way to write effectful code using generator functions, simplifying * control flow and error handling. * - * **When to Use** + * **When to use** * - * `gen` allows you to write code that looks and behaves like synchronous - * code, but it can handle asynchronous tasks, errors, and complex control flow - * (like loops and conditions). It helps make asynchronous code more readable - * and easier to manage. + * Use when you want to write effectful code that looks and behaves like + * synchronous code, while still handling asynchronous tasks, errors, and complex + * control flow such as loops and conditions. * - * The generator functions work similarly to `async/await` but with more - * explicit control over the execution of effects. You can `yield*` values from - * effects and return the final result at the end. + * Generator functions work similarly to `async/await` but keep errors, + * requirements, and interruption in the Effect type. You can `yield*` values + * from effects and return the final result at the end. + * + * **Example** (Sequencing effects with generators) * - * @example * ```ts * import { Data, Effect } from "effect" * @@ -1766,26 +1716,26 @@ export declare const bind: { * }) * ``` * + * @category constructors * @since 2.0.0 - * @category Creating Effects */ export declare const gen: { /** * Provides a way to write effectful code using generator functions, simplifying * control flow and error handling. * - * **When to Use** + * **When to use** + * + * Use when you want to write effectful code that looks and behaves like + * synchronous code, while still handling asynchronous tasks, errors, and complex + * control flow such as loops and conditions. * - * `gen` allows you to write code that looks and behaves like synchronous - * code, but it can handle asynchronous tasks, errors, and complex control flow - * (like loops and conditions). It helps make asynchronous code more readable - * and easier to manage. + * Generator functions work similarly to `async/await` but keep errors, + * requirements, and interruption in the Effect type. You can `yield*` values + * from effects and return the final result at the end. * - * The generator functions work similarly to `async/await` but with more - * explicit control over the execution of effects. You can `yield*` values from - * effects and return the final result at the end. + * **Example** (Sequencing effects with generators) * - * @example * ```ts * import { Data, Effect } from "effect" * @@ -1817,30 +1767,30 @@ export declare const gen: { * }) * ``` * + * @category constructors * @since 2.0.0 - * @category Creating Effects */ - , AEff>(f: () => Generator): Effect, AEff>(f: () => Generator): Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>; + ] extends [never] ? never : [Eff] extends [Effect] ? R : never>; /** * Provides a way to write effectful code using generator functions, simplifying * control flow and error handling. * - * **When to Use** + * **When to use** * - * `gen` allows you to write code that looks and behaves like synchronous - * code, but it can handle asynchronous tasks, errors, and complex control flow - * (like loops and conditions). It helps make asynchronous code more readable - * and easier to manage. + * Use when you want to write effectful code that looks and behaves like + * synchronous code, while still handling asynchronous tasks, errors, and complex + * control flow such as loops and conditions. * - * The generator functions work similarly to `async/await` but with more - * explicit control over the execution of effects. You can `yield*` values from - * effects and return the final result at the end. + * Generator functions work similarly to `async/await` but keep errors, + * requirements, and interruption in the Effect type. You can `yield*` values + * from effects and return the final result at the end. + * + * **Example** (Sequencing effects with generators) * - * @example * ```ts * import { Data, Effect } from "effect" * @@ -1872,42 +1822,46 @@ export declare const gen: { * }) * ``` * + * @category constructors * @since 2.0.0 - * @category Creating Effects */ - , AEff>(options: { + , AEff>(options: { readonly self: Self; }, f: (this: Self) => Generator): Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>; + ] extends [never] ? never : [Eff] extends [Effect] ? R : never>; }; /** * Type helpers for `Effect.gen` generator return signatures. * - * @since 4.0.0 + * @since 2.0.0 */ export declare namespace gen { /** + * Generator return type accepted by `Effect.gen`. + * + * @category constructors * @since 4.0.0 */ - type Return = Generator, A, any>; + type Return = Generator, A, any>; } /** * Creates an `Effect` that represents a recoverable error. * - * **When to Use** + * **When to use** * - * Use this function to explicitly signal an error in an `Effect`. The error - * will keep propagating unless it is handled. You can handle the error with - * functions like {@link catchAll} or {@link catchTag}. + * Use to explicitly signal a recoverable error in an `Effect`. * - * @see {@link succeed} to create an effect that represents a successful value. + * **Details** + * + * The error keeps propagating unless it is handled. You can handle tagged + * errors with functions like {@link catchTag} or {@link catchTags}. + * + * **Example** (Creating a failed effect) * - * @example * ```ts - * // Title: Creating a Failed Effect * import { Data, Effect } from "effect" * * class OperationFailedError extends Data.TaggedError("OperationFailedError")<{}> {} @@ -1919,17 +1873,24 @@ export declare namespace gen { * ) * ``` * + * @see {@link succeed} to create an effect that represents a successful value. + * @category constructors * @since 2.0.0 - * @category Creating Effects */ export declare const fail: (error: E) => Effect; /** * Creates an `Effect` that represents a recoverable error using a lazy evaluation. * - * This function is useful when you need to create an error effect but want to - * defer the computation of the error value until the effect is actually run. + * **When to use** + * + * Use to defer computing a recoverable error value until the effect is run. + * + * **Details** + * + * The error-producing function is evaluated each time the effect is executed. + * + * **Example** (Lazily creating failures) * - * @example * ```ts * import { Data, Effect } from "effect" * @@ -1941,17 +1902,26 @@ export declare const fail: (error: E) => Effect; * // Output: { _id: 'Exit', _tag: 'Failure', cause: ... } * ``` * + * @category constructors * @since 2.0.0 - * @category Creating Effects */ export declare const failSync: (evaluate: LazyArg) => Effect; /** * Creates an `Effect` that represents a failure with a specific `Cause`. * + * **When to use** + * + * Use when you already have a full `Cause` and need to preserve defects, + * interruptions, annotations, or combined failures in the effect's failure + * channel. + * + * **Details** + * * This function allows you to create effects that fail with complex error * structures, including multiple errors, defects, interruptions, and more. * - * @example + * **Example** (Failing with a full Cause) + * * ```ts * import { Cause, Effect } from "effect" * @@ -1963,17 +1933,23 @@ export declare const failSync: (evaluate: LazyArg) => Effect; * // Output: { _id: 'Exit', _tag: 'Failure', cause: ... } * ``` * + * @category constructors * @since 2.0.0 - * @category Creating Effects */ export declare const failCause: (cause: Cause.Cause) => Effect; /** * Creates an `Effect` that represents a failure with a `Cause` computed lazily. * - * This function is useful when you need to create a failure effect with a - * complex cause but want to defer the computation until the effect is run. + * **When to use** + * + * Use to defer computing a full `Cause` until the effect is run. + * + * **Details** + * + * The cause-producing function is evaluated each time the effect is executed. + * + * **Example** (Lazily creating a Cause) * - * @example * ```ts * import { Cause, Effect } from "effect" * @@ -1985,17 +1961,17 @@ export declare const failCause: (cause: Cause.Cause) => Effect; * // Output: { _id: 'Exit', _tag: 'Failure', cause: ... } * ``` * + * @category constructors * @since 2.0.0 - * @category Creating Effects */ export declare const failCauseSync: (evaluate: LazyArg>) => Effect; /** * Creates an effect that terminates a fiber with a specified error. * - * **When to Use** + * **When to use** * - * Use `die` when encountering unexpected conditions in your code that should - * not be handled as regular errors but instead represent unrecoverable defects. + * Use when you need an `Effect` to report an unrecoverable defect instead of a + * typed error. * * **Details** * @@ -2006,12 +1982,9 @@ export declare const failCauseSync: (evaluate: LazyArg>) => Ef * The error channel of the resulting effect is of type `never`, indicating that * it cannot recover from this failure. * - * @see {@link dieSync} for a variant that throws a specified error, evaluated lazily. - * @see {@link dieMessage} for a variant that throws a `RuntimeException` with a message. + * **Example** (Failing when division by zero) * - * @example * ```ts - * // Title: Terminating on Division by Zero with a Specified Error * import { Effect } from "effect" * * const divide = (a: number, b: number) => @@ -2029,8 +2002,8 @@ export declare const failCauseSync: (evaluate: LazyArg>) => Ef * // ...stack trace... * ``` * + * @category constructors * @since 2.0.0 - * @category Creating Effects */ export declare const die: (defect: unknown) => Effect; declare const try_: (options: { @@ -2042,14 +2015,14 @@ export { * Creates an `Effect` that represents a synchronous computation that might * fail. * - * **When to Use** + * **When to use** * - * In situations where you need to perform synchronous operations that might - * fail, such as parsing JSON, you can use the `try` constructor. This - * constructor is designed to handle operations that could throw exceptions by - * capturing those exceptions and transforming them into manageable errors. + * Use when you need to perform synchronous operations that might throw, such + * as parsing JSON, and convert thrown exceptions into typed Effect failures. * - * **Error Handling** + * **Details** + * + * Error Handling: * * There are two ways to handle errors with `try`: * @@ -2058,10 +2031,8 @@ export { * 2. If you provide a `catch` function, the error is caught and the `catch` * function maps it to an error of type `E`. * - * @see {@link sync} if the effectful computation is synchronous and does not - * throw errors. + * **Example** (Parsing JSON with typed error mapping) * - * @example Basic Usage with Default Error Handling * ```ts * import { Effect } from "effect" * @@ -2080,7 +2051,8 @@ export { * // Output: Exit.failure with Error * ``` * - * @example Custom Error Handling + * **Example** (Mapping synchronous exceptions to a tagged error) + * * ```ts * import { Data, Effect } from "effect" * @@ -2096,14 +2068,17 @@ export { * // Output: Exit.failure with custom Error message * ``` * + * @see {@link sync} if the effectful computation is synchronous and does not + * throw errors. + * @category constructors * @since 2.0.0 - * @category Creating Effects */ try_ as try }; /** * Yields control back to the Effect runtime, allowing other fibers to execute. * - * @example + * **Example** (Yielding to other fibers) + * * ```ts * import { Effect } from "effect" * @@ -2116,14 +2091,15 @@ try_ as try }; * Effect.runPromise(program) * ``` * + * @category constructors * @since 2.0.0 - * @category Creating Effects */ export declare const yieldNow: Effect; /** * Yields control back to the Effect runtime with a specified priority, allowing other fibers to execute. * - * @example + * **Example** (Yielding with priority) + * * ```ts * import { Effect } from "effect" * @@ -2136,14 +2112,15 @@ export declare const yieldNow: Effect; * Effect.runPromise(program) * ``` * - * @since 2.0.0 - * @category Creating Effects + * @category constructors + * @since 4.0.0 */ export declare const yieldNowWith: (priority?: number) => Effect; /** * Provides access to the current fiber within an effect computation. * - * @example + * **Example** (Reading the current fiber) + * * ```ts * import { Effect } from "effect" * @@ -2155,14 +2132,15 @@ export declare const yieldNowWith: (priority?: number) => Effect; * // Output: Fiber ID: 1 * ``` * - * @since 2.0.0 - * @category Creating Effects + * @category constructors + * @since 4.0.0 */ export declare const withFiber: (evaluate: (fiber: Fiber) => Effect) => Effect; /** * Converts a `Result` to an `Effect`. * - * @example + * **Example** (Converting a Result into an Effect) + * * ```ts * import { Effect, Result } from "effect" * @@ -2177,14 +2155,25 @@ export declare const withFiber: (evaluate: (fiber: Fibe * // { _id: 'Exit', _tag: 'Failure', cause: { _id: 'Cause', _tag: 'Fail', failure: 'Something went wrong' } } * ``` * + * @category converting * @since 4.0.0 - * @category Conversions */ export declare const fromResult: (result: Result.Result) => Effect; /** - * Converts an `Option` to an `Effect`. + * Converts an `Option` into an `Effect`. + * + * **When to use** + * + * Use when absence should become a typed `NoSuchElementError` in the effect error + * channel. + * + * **Details** + * + * `Option.some` becomes a successful effect with the contained value, while + * `Option.none` becomes a failed effect with `NoSuchElementError`. + * + * **Example** (Converting an Option into an Effect) * - * @example * ```ts * import { Effect, Option } from "effect" * @@ -2199,15 +2188,16 @@ export declare const fromResult: (result: Result.Result) => Effect(option: Option) => Effect; /** * Converts a nullable value to an `Effect`, failing with a `NoSuchElementError` * when the value is `null` or `undefined`. * - * @example + * **Example** (Failing on nullish values) + * * ```ts * import { Console, Effect } from "effect" * @@ -2224,45 +2214,19 @@ export declare const fromOption: (option: Option) => Effect(value: A) => Effect, Cause.NoSuchElementError>; -/** - * Converts a yieldable value to an Effect. - * - * @example - * ```ts - * import { Effect } from "effect" - * import * as Option from "effect/Option" - * - * // Option is yieldable in Effect - * const program = Effect.gen(function*() { - * const value = yield* Effect.fromYieldable(Option.some(42)) - * return value * 2 - * }) - * - * Effect.runPromise(program).then(console.log) - * // Output: 84 - * ``` - * - * @since 4.0.0 - * @category Conversions - */ -export declare const fromYieldable: (yieldable: Yieldable) => Effect; /** * Chains effects to produce new `Effect` instances, useful for combining * operations that depend on previous results. * - * **Syntax** + * **When to use** * - * ```ts skip-type-checking - * const flatMappedEffect = pipe(myEffect, Effect.flatMap(transformation)) - * // or - * const flatMappedEffect = Effect.flatMap(myEffect, transformation) - * // or - * const flatMappedEffect = myEffect.pipe(Effect.flatMap(transformation)) - * ``` + * Use when you need to chain multiple effects, ensuring that each + * step produces a new `Effect` while flattening any nested effects that may + * occur. * * **Details** * @@ -2274,13 +2238,21 @@ export declare const fromYieldable: (yielda * Since effects are immutable, `flatMap` always returns a new effect instead of * changing the original one. * - * **When to Use** + * **Example** (Syntax) * - * Use `flatMap` when you need to chain multiple effects, ensuring that each - * step produces a new `Effect` while flattening any nested effects that may - * occur. + * ```ts + * import { Effect, pipe } from "effect" + * + * const myEffect = Effect.succeed(1) + * const transformation = (n: number) => Effect.succeed(n + 1) + * + * const flatMappedWithPipe = pipe(myEffect, Effect.flatMap(transformation)) + * const flatMappedWithDataFirst = Effect.flatMap(myEffect, transformation) + * const flatMappedWithMethod = myEffect.pipe(Effect.flatMap(transformation)) + * ``` + * + * **Example** (Sequencing dependent effects) * - * @example * ```ts * import { Data, Effect, pipe } from "effect" * @@ -2309,24 +2281,19 @@ export declare const fromYieldable: (yielda * ``` * * @see {@link tap} for a version that ignores the result of the effect. - * + * @category sequencing * @since 2.0.0 - * @category Sequencing */ export declare const flatMap: { /** * Chains effects to produce new `Effect` instances, useful for combining * operations that depend on previous results. * - * **Syntax** + * **When to use** * - * ```ts skip-type-checking - * const flatMappedEffect = pipe(myEffect, Effect.flatMap(transformation)) - * // or - * const flatMappedEffect = Effect.flatMap(myEffect, transformation) - * // or - * const flatMappedEffect = myEffect.pipe(Effect.flatMap(transformation)) - * ``` + * Use when you need to chain multiple effects, ensuring that each + * step produces a new `Effect` while flattening any nested effects that may + * occur. * * **Details** * @@ -2338,13 +2305,21 @@ export declare const flatMap: { * Since effects are immutable, `flatMap` always returns a new effect instead of * changing the original one. * - * **When to Use** + * **Example** (Syntax) * - * Use `flatMap` when you need to chain multiple effects, ensuring that each - * step produces a new `Effect` while flattening any nested effects that may - * occur. + * ```ts + * import { Effect, pipe } from "effect" + * + * const myEffect = Effect.succeed(1) + * const transformation = (n: number) => Effect.succeed(n + 1) + * + * const flatMappedWithPipe = pipe(myEffect, Effect.flatMap(transformation)) + * const flatMappedWithDataFirst = Effect.flatMap(myEffect, transformation) + * const flatMappedWithMethod = myEffect.pipe(Effect.flatMap(transformation)) + * ``` + * + * **Example** (Sequencing dependent effects) * - * @example * ```ts * import { Data, Effect, pipe } from "effect" * @@ -2373,24 +2348,19 @@ export declare const flatMap: { * ``` * * @see {@link tap} for a version that ignores the result of the effect. - * + * @category sequencing * @since 2.0.0 - * @category Sequencing */ (f: (a: A) => Effect): (self: Effect) => Effect; /** * Chains effects to produce new `Effect` instances, useful for combining * operations that depend on previous results. * - * **Syntax** + * **When to use** * - * ```ts skip-type-checking - * const flatMappedEffect = pipe(myEffect, Effect.flatMap(transformation)) - * // or - * const flatMappedEffect = Effect.flatMap(myEffect, transformation) - * // or - * const flatMappedEffect = myEffect.pipe(Effect.flatMap(transformation)) - * ``` + * Use when you need to chain multiple effects, ensuring that each + * step produces a new `Effect` while flattening any nested effects that may + * occur. * * **Details** * @@ -2402,13 +2372,21 @@ export declare const flatMap: { * Since effects are immutable, `flatMap` always returns a new effect instead of * changing the original one. * - * **When to Use** + * **Example** (Syntax) * - * Use `flatMap` when you need to chain multiple effects, ensuring that each - * step produces a new `Effect` while flattening any nested effects that may - * occur. + * ```ts + * import { Effect, pipe } from "effect" + * + * const myEffect = Effect.succeed(1) + * const transformation = (n: number) => Effect.succeed(n + 1) + * + * const flatMappedWithPipe = pipe(myEffect, Effect.flatMap(transformation)) + * const flatMappedWithDataFirst = Effect.flatMap(myEffect, transformation) + * const flatMappedWithMethod = myEffect.pipe(Effect.flatMap(transformation)) + * ``` + * + * **Example** (Sequencing dependent effects) * - * @example * ```ts * import { Data, Effect, pipe } from "effect" * @@ -2437,16 +2415,16 @@ export declare const flatMap: { * ``` * * @see {@link tap} for a version that ignores the result of the effect. - * + * @category sequencing * @since 2.0.0 - * @category Sequencing */ (self: Effect, f: (a: A) => Effect): Effect; }; /** * Flattens an `Effect` that produces another `Effect` into a single effect. * - * @example + * **Example** (Flattening nested effects) + * * ```ts * import { Console, Effect } from "effect" * @@ -2459,51 +2437,44 @@ export declare const flatMap: { * }) * ``` * + * @category sequencing * @since 2.0.0 - * @category Sequencing */ export declare const flatten: (self: Effect, E2, R2>) => Effect; /** - * Chains two actions, where the second action can depend on the result of the - * first. + * Runs this effect and then runs another effect, optionally using the first + * effect's success value to choose the next effect. * - * **Syntax** + * **When to use** * - * ```ts skip-type-checking - * const transformedEffect = pipe(myEffect, Effect.andThen(anotherEffect)) - * // or - * const transformedEffect = Effect.andThen(myEffect, anotherEffect) - * // or - * const transformedEffect = myEffect.pipe(Effect.andThen(anotherEffect)) - * ``` - * - * **When to Use** - * - * Use `andThen` when you need to run multiple actions in sequence, with the - * second action depending on the result of the first. This is useful for - * combining effects or handling computations that must happen in order. + * Use when you need one effect to run after another and the second effect may + * depend on the first effect's success value. * * **Details** * - * The second action can be: + * When the second argument is an `Effect`, the first success value is discarded + * and the returned effect produces the second effect's value. When the second + * argument is a function, it receives the first success value and must return + * the next `Effect`. + * + * Failures or requirements from either effect are preserved in the returned + * effect. * - * - A constant value (similar to {@link as}) - * - A function returning a value (similar to {@link map}) - * - A `Promise` - * - A function returning a `Promise` - * - An `Effect` - * - A function returning an `Effect` (similar to {@link flatMap}) + * **Example** (Syntax) * - * **Note:** `andThen` works well with both `Option` and `Result` types, - * treating them as effects. + * ```ts + * import { Effect, pipe } from "effect" * - * **Previously Known As** + * const myEffect = Effect.succeed(1) + * const anotherEffect = Effect.succeed("done") * - * This API replaces the following from Effect 3.x: + * const transformedWithPipe = pipe(myEffect, Effect.andThen(anotherEffect)) + * const transformedWithDataFirst = Effect.andThen(myEffect, anotherEffect) + * const transformedWithMethod = myEffect.pipe(Effect.andThen(anotherEffect)) + * ``` * - * - `Effect.zipRight` + * **Example** (Sequencing a discount calculation after fetching a total) * - * @example Applying a Discount Based on Fetched Amount * ```ts * import { Data, Effect, pipe } from "effect" * @@ -2542,51 +2513,44 @@ export declare const flatten: (self: Effect, E2 * // Output: 190 * ``` * + * @category sequencing * @since 2.0.0 - * @category Sequencing */ export declare const andThen: { /** - * Chains two actions, where the second action can depend on the result of the - * first. + * Runs this effect and then runs another effect, optionally using the first + * effect's success value to choose the next effect. * - * **Syntax** + * **When to use** * - * ```ts skip-type-checking - * const transformedEffect = pipe(myEffect, Effect.andThen(anotherEffect)) - * // or - * const transformedEffect = Effect.andThen(myEffect, anotherEffect) - * // or - * const transformedEffect = myEffect.pipe(Effect.andThen(anotherEffect)) - * ``` - * - * **When to Use** - * - * Use `andThen` when you need to run multiple actions in sequence, with the - * second action depending on the result of the first. This is useful for - * combining effects or handling computations that must happen in order. + * Use when you need one effect to run after another and the second effect may + * depend on the first effect's success value. * * **Details** * - * The second action can be: + * When the second argument is an `Effect`, the first success value is discarded + * and the returned effect produces the second effect's value. When the second + * argument is a function, it receives the first success value and must return + * the next `Effect`. + * + * Failures or requirements from either effect are preserved in the returned + * effect. * - * - A constant value (similar to {@link as}) - * - A function returning a value (similar to {@link map}) - * - A `Promise` - * - A function returning a `Promise` - * - An `Effect` - * - A function returning an `Effect` (similar to {@link flatMap}) + * **Example** (Syntax) * - * **Note:** `andThen` works well with both `Option` and `Result` types, - * treating them as effects. + * ```ts + * import { Effect, pipe } from "effect" * - * **Previously Known As** + * const myEffect = Effect.succeed(1) + * const anotherEffect = Effect.succeed("done") * - * This API replaces the following from Effect 3.x: + * const transformedWithPipe = pipe(myEffect, Effect.andThen(anotherEffect)) + * const transformedWithDataFirst = Effect.andThen(myEffect, anotherEffect) + * const transformedWithMethod = myEffect.pipe(Effect.andThen(anotherEffect)) + * ``` * - * - `Effect.zipRight` + * **Example** (Sequencing a discount calculation after fetching a total) * - * @example Applying a Discount Based on Fetched Amount * ```ts * import { Data, Effect, pipe } from "effect" * @@ -2625,51 +2589,44 @@ export declare const andThen: { * // Output: 190 * ``` * + * @category sequencing * @since 2.0.0 - * @category Sequencing */ (f: (a: A) => Effect): (self: Effect) => Effect; /** - * Chains two actions, where the second action can depend on the result of the - * first. + * Runs this effect and then runs another effect, optionally using the first + * effect's success value to choose the next effect. * - * **Syntax** + * **When to use** * - * ```ts skip-type-checking - * const transformedEffect = pipe(myEffect, Effect.andThen(anotherEffect)) - * // or - * const transformedEffect = Effect.andThen(myEffect, anotherEffect) - * // or - * const transformedEffect = myEffect.pipe(Effect.andThen(anotherEffect)) - * ``` - * - * **When to Use** - * - * Use `andThen` when you need to run multiple actions in sequence, with the - * second action depending on the result of the first. This is useful for - * combining effects or handling computations that must happen in order. + * Use when you need one effect to run after another and the second effect may + * depend on the first effect's success value. * * **Details** * - * The second action can be: + * When the second argument is an `Effect`, the first success value is discarded + * and the returned effect produces the second effect's value. When the second + * argument is a function, it receives the first success value and must return + * the next `Effect`. + * + * Failures or requirements from either effect are preserved in the returned + * effect. * - * - A constant value (similar to {@link as}) - * - A function returning a value (similar to {@link map}) - * - A `Promise` - * - A function returning a `Promise` - * - An `Effect` - * - A function returning an `Effect` (similar to {@link flatMap}) + * **Example** (Syntax) * - * **Note:** `andThen` works well with both `Option` and `Result` types, - * treating them as effects. + * ```ts + * import { Effect, pipe } from "effect" * - * **Previously Known As** + * const myEffect = Effect.succeed(1) + * const anotherEffect = Effect.succeed("done") * - * This API replaces the following from Effect 3.x: + * const transformedWithPipe = pipe(myEffect, Effect.andThen(anotherEffect)) + * const transformedWithDataFirst = Effect.andThen(myEffect, anotherEffect) + * const transformedWithMethod = myEffect.pipe(Effect.andThen(anotherEffect)) + * ``` * - * - `Effect.zipRight` + * **Example** (Sequencing a discount calculation after fetching a total) * - * @example Applying a Discount Based on Fetched Amount * ```ts * import { Data, Effect, pipe } from "effect" * @@ -2708,51 +2665,44 @@ export declare const andThen: { * // Output: 190 * ``` * + * @category sequencing * @since 2.0.0 - * @category Sequencing */ (f: Effect): (self: Effect) => Effect; /** - * Chains two actions, where the second action can depend on the result of the - * first. + * Runs this effect and then runs another effect, optionally using the first + * effect's success value to choose the next effect. * - * **Syntax** + * **When to use** * - * ```ts skip-type-checking - * const transformedEffect = pipe(myEffect, Effect.andThen(anotherEffect)) - * // or - * const transformedEffect = Effect.andThen(myEffect, anotherEffect) - * // or - * const transformedEffect = myEffect.pipe(Effect.andThen(anotherEffect)) - * ``` - * - * **When to Use** - * - * Use `andThen` when you need to run multiple actions in sequence, with the - * second action depending on the result of the first. This is useful for - * combining effects or handling computations that must happen in order. + * Use when you need one effect to run after another and the second effect may + * depend on the first effect's success value. * * **Details** * - * The second action can be: + * When the second argument is an `Effect`, the first success value is discarded + * and the returned effect produces the second effect's value. When the second + * argument is a function, it receives the first success value and must return + * the next `Effect`. + * + * Failures or requirements from either effect are preserved in the returned + * effect. * - * - A constant value (similar to {@link as}) - * - A function returning a value (similar to {@link map}) - * - A `Promise` - * - A function returning a `Promise` - * - An `Effect` - * - A function returning an `Effect` (similar to {@link flatMap}) + * **Example** (Syntax) * - * **Note:** `andThen` works well with both `Option` and `Result` types, - * treating them as effects. + * ```ts + * import { Effect, pipe } from "effect" * - * **Previously Known As** + * const myEffect = Effect.succeed(1) + * const anotherEffect = Effect.succeed("done") * - * This API replaces the following from Effect 3.x: + * const transformedWithPipe = pipe(myEffect, Effect.andThen(anotherEffect)) + * const transformedWithDataFirst = Effect.andThen(myEffect, anotherEffect) + * const transformedWithMethod = myEffect.pipe(Effect.andThen(anotherEffect)) + * ``` * - * - `Effect.zipRight` + * **Example** (Sequencing a discount calculation after fetching a total) * - * @example Applying a Discount Based on Fetched Amount * ```ts * import { Data, Effect, pipe } from "effect" * @@ -2791,51 +2741,44 @@ export declare const andThen: { * // Output: 190 * ``` * + * @category sequencing * @since 2.0.0 - * @category Sequencing */ (self: Effect, f: (a: A) => Effect): Effect; /** - * Chains two actions, where the second action can depend on the result of the - * first. + * Runs this effect and then runs another effect, optionally using the first + * effect's success value to choose the next effect. * - * **Syntax** + * **When to use** * - * ```ts skip-type-checking - * const transformedEffect = pipe(myEffect, Effect.andThen(anotherEffect)) - * // or - * const transformedEffect = Effect.andThen(myEffect, anotherEffect) - * // or - * const transformedEffect = myEffect.pipe(Effect.andThen(anotherEffect)) - * ``` - * - * **When to Use** - * - * Use `andThen` when you need to run multiple actions in sequence, with the - * second action depending on the result of the first. This is useful for - * combining effects or handling computations that must happen in order. + * Use when you need one effect to run after another and the second effect may + * depend on the first effect's success value. * * **Details** * - * The second action can be: + * When the second argument is an `Effect`, the first success value is discarded + * and the returned effect produces the second effect's value. When the second + * argument is a function, it receives the first success value and must return + * the next `Effect`. + * + * Failures or requirements from either effect are preserved in the returned + * effect. * - * - A constant value (similar to {@link as}) - * - A function returning a value (similar to {@link map}) - * - A `Promise` - * - A function returning a `Promise` - * - An `Effect` - * - A function returning an `Effect` (similar to {@link flatMap}) + * **Example** (Syntax) * - * **Note:** `andThen` works well with both `Option` and `Result` types, - * treating them as effects. + * ```ts + * import { Effect, pipe } from "effect" * - * **Previously Known As** + * const myEffect = Effect.succeed(1) + * const anotherEffect = Effect.succeed("done") * - * This API replaces the following from Effect 3.x: + * const transformedWithPipe = pipe(myEffect, Effect.andThen(anotherEffect)) + * const transformedWithDataFirst = Effect.andThen(myEffect, anotherEffect) + * const transformedWithMethod = myEffect.pipe(Effect.andThen(anotherEffect)) + * ``` * - * - `Effect.zipRight` + * **Example** (Sequencing a discount calculation after fetching a total) * - * @example Applying a Discount Based on Fetched Amount * ```ts * import { Data, Effect, pipe } from "effect" * @@ -2874,8 +2817,8 @@ export declare const andThen: { * // Output: 190 * ``` * + * @category sequencing * @since 2.0.0 - * @category Sequencing */ (self: Effect, f: Effect): Effect; }; @@ -2883,11 +2826,10 @@ export declare const andThen: { * Runs a side effect with the result of an effect without changing the original * value. * - * **When to Use** + * **When to use** * - * Use `tap` when you want to perform a side effect, like logging or tracking, - * without modifying the main value. This is useful when you need to observe or - * record an action but want the original value to be passed to the next step. + * Use when you need to run an effectful observation, such as logging or + * tracking, while passing the original success value to the next step. * * **Details** * @@ -2896,17 +2838,10 @@ export declare const andThen: { * next part of the chain. Note that if the side effect fails, the entire chain * will fail too. * - * **Previously Known As** + * **Example** (Logging a step in a pipeline) * - * This API replaces the following from Effect 3.x: - * - * - `Effect.zipLeft` - * - * @example * ```ts - * // Title: Logging a step in a pipeline - * import { Data, Effect, pipe } from "effect" - * import { Console } from "effect" + * import { Console, Data, Effect, pipe } from "effect" * * class DiscountRateError extends Data.TaggedError("DiscountRateError")<{}> {} * @@ -2936,19 +2871,18 @@ export declare const andThen: { * // 95 * ``` * + * @category sequencing * @since 2.0.0 - * @category Sequencing */ export declare const tap: { /** * Runs a side effect with the result of an effect without changing the original * value. * - * **When to Use** + * **When to use** * - * Use `tap` when you want to perform a side effect, like logging or tracking, - * without modifying the main value. This is useful when you need to observe or - * record an action but want the original value to be passed to the next step. + * Use when you need to run an effectful observation, such as logging or + * tracking, while passing the original success value to the next step. * * **Details** * @@ -2957,17 +2891,10 @@ export declare const tap: { * next part of the chain. Note that if the side effect fails, the entire chain * will fail too. * - * **Previously Known As** - * - * This API replaces the following from Effect 3.x: + * **Example** (Logging a step in a pipeline) * - * - `Effect.zipLeft` - * - * @example * ```ts - * // Title: Logging a step in a pipeline - * import { Data, Effect, pipe } from "effect" - * import { Console } from "effect" + * import { Console, Data, Effect, pipe } from "effect" * * class DiscountRateError extends Data.TaggedError("DiscountRateError")<{}> {} * @@ -2997,19 +2924,18 @@ export declare const tap: { * // 95 * ``` * + * @category sequencing * @since 2.0.0 - * @category Sequencing */ (f: (a: NoInfer) => Effect): (self: Effect) => Effect; /** * Runs a side effect with the result of an effect without changing the original * value. * - * **When to Use** + * **When to use** * - * Use `tap` when you want to perform a side effect, like logging or tracking, - * without modifying the main value. This is useful when you need to observe or - * record an action but want the original value to be passed to the next step. + * Use when you need to run an effectful observation, such as logging or + * tracking, while passing the original success value to the next step. * * **Details** * @@ -3018,17 +2944,10 @@ export declare const tap: { * next part of the chain. Note that if the side effect fails, the entire chain * will fail too. * - * **Previously Known As** - * - * This API replaces the following from Effect 3.x: - * - * - `Effect.zipLeft` + * **Example** (Logging a step in a pipeline) * - * @example * ```ts - * // Title: Logging a step in a pipeline - * import { Data, Effect, pipe } from "effect" - * import { Console } from "effect" + * import { Console, Data, Effect, pipe } from "effect" * * class DiscountRateError extends Data.TaggedError("DiscountRateError")<{}> {} * @@ -3058,19 +2977,18 @@ export declare const tap: { * // 95 * ``` * + * @category sequencing * @since 2.0.0 - * @category Sequencing */ (f: Effect): (self: Effect) => Effect; /** * Runs a side effect with the result of an effect without changing the original * value. * - * **When to Use** + * **When to use** * - * Use `tap` when you want to perform a side effect, like logging or tracking, - * without modifying the main value. This is useful when you need to observe or - * record an action but want the original value to be passed to the next step. + * Use when you need to run an effectful observation, such as logging or + * tracking, while passing the original success value to the next step. * * **Details** * @@ -3079,17 +2997,10 @@ export declare const tap: { * next part of the chain. Note that if the side effect fails, the entire chain * will fail too. * - * **Previously Known As** - * - * This API replaces the following from Effect 3.x: + * **Example** (Logging a step in a pipeline) * - * - `Effect.zipLeft` - * - * @example * ```ts - * // Title: Logging a step in a pipeline - * import { Data, Effect, pipe } from "effect" - * import { Console } from "effect" + * import { Console, Data, Effect, pipe } from "effect" * * class DiscountRateError extends Data.TaggedError("DiscountRateError")<{}> {} * @@ -3119,19 +3030,18 @@ export declare const tap: { * // 95 * ``` * + * @category sequencing * @since 2.0.0 - * @category Sequencing */ (self: Effect, f: (a: NoInfer) => Effect): Effect; /** * Runs a side effect with the result of an effect without changing the original * value. * - * **When to Use** + * **When to use** * - * Use `tap` when you want to perform a side effect, like logging or tracking, - * without modifying the main value. This is useful when you need to observe or - * record an action but want the original value to be passed to the next step. + * Use when you need to run an effectful observation, such as logging or + * tracking, while passing the original success value to the next step. * * **Details** * @@ -3140,17 +3050,10 @@ export declare const tap: { * next part of the chain. Note that if the side effect fails, the entire chain * will fail too. * - * **Previously Known As** + * **Example** (Logging a step in a pipeline) * - * This API replaces the following from Effect 3.x: - * - * - `Effect.zipLeft` - * - * @example * ```ts - * // Title: Logging a step in a pipeline - * import { Data, Effect, pipe } from "effect" - * import { Console } from "effect" + * import { Console, Data, Effect, pipe } from "effect" * * class DiscountRateError extends Data.TaggedError("DiscountRateError")<{}> {} * @@ -3180,41 +3083,42 @@ export declare const tap: { * // 95 * ``` * + * @category sequencing * @since 2.0.0 - * @category Sequencing */ (self: Effect, f: Effect): Effect; }; /** - * Encapsulates both success and failure of an `Effect` into a `Result` type. + * Converts both success and failure of an `Effect` into a `Result` type. + * + * **When to use** + * + * Use when you want an `Effect`'s typed failures to be handled as `Result` + * data while preserving the original error value. * * **Details** * * This function converts an effect that may fail into an effect that always * succeeds, wrapping the outcome in a `Result` type. The result will be - * `Result.Err` if the effect fails, containing the recoverable error, or - * `Result.Ok` if it succeeds, containing the result. + * `Result.Failure` if the effect fails, containing the recoverable error, or + * `Result.Success` if it succeeds, containing the result. * * Using this function, you can handle recoverable errors explicitly without * causing the effect to fail. This is particularly useful in scenarios where * you want to chain effects and manage both success and failure in the same * logical flow. * - * It's important to note that unrecoverable errors, often referred to as - * "defects," are still thrown and not captured within the `Result` type. Only - * failures that are explicitly represented as recoverable errors in the effect - * are encapsulated. - * * The resulting effect cannot fail directly because all recoverable failures * are represented inside the `Result` type. * - * **Previously Known As** + * **Gotchas** * - * This API replaces the following from Effect 3.x: + * `result` only captures typed, recoverable failures. Defects and + * interruptions are not captured inside the `Result` and still fail the + * effect. * - * - `Effect.either` + * **Example** (Capturing success or failure as Result) * - * @example * ```ts * import { Effect } from "effect" * @@ -3234,19 +3138,34 @@ export declare const tap: { * @see {@link option} for a version that uses `Option` instead. * @see {@link exit} for a version that encapsulates both recoverable errors and defects in an `Exit`. * + * @category outcome encapsulation * @since 4.0.0 - * @category Outcome Encapsulation */ export declare const result: (self: Effect) => Effect, never, R>; /** - * Convert success to `Option.some` and failure to `Option.none`. + * Converts success to `Option.some` and failure to `Option.none`. + * + * **When to use** + * + * Use when you only care whether an effect succeeds and want recoverable + * failures represented as `Option.none`. * * **Details** * * Success values become `Option.some`, recoverable failures become * `Option.none`, and defects still fail the effect. * - * @example + * **Gotchas** + * + * `option` only captures typed, recoverable failures as `Option.none`. + * Defects and interruptions are not captured inside the `Option` and still + * fail the effect. + * + * `option` also discards typed failure values. Use `result` if the failure + * value matters. + * + * **Example** (Capturing success or failure as Option) + * * ```ts * import { Console, Effect, Option } from "effect" * @@ -3266,14 +3185,19 @@ export declare const result: (self: Effect) => Effect(self: Effect) => Effect, never, R>; /** * Transforms an effect to encapsulate both failure and success using the `Exit` * data type. * + * **When to use** + * + * Use when you need to inspect the full outcome, including typed failures, defects, + * and interruptions. + * * **Details** * * `exit` wraps an effect's success or failure inside an `Exit` type, allowing @@ -3283,7 +3207,8 @@ export declare const option: (self: Effect) => Effect(self: Effect) => Effect(self: Effect) => Effect, never, R>; /** * Transforms the value inside an effect by applying a function to it. * - * **Syntax** + * **When to use** * - * ```ts skip-type-checking - * const mappedEffect = pipe(myEffect, Effect.map(transformation)) - * // or - * const mappedEffect = Effect.map(myEffect, transformation) - * // or - * const mappedEffect = myEffect.pipe(Effect.map(transformation)) - * ``` + * Use to transform an effect's success value with a function that returns a + * plain value, producing a new effect without changing the original effect's + * typed error or context requirements. * * **Details** * @@ -3329,7 +3250,21 @@ export declare const exit: (self: Effect) => Effect n + 1 + * + * const mappedWithPipe = pipe(myEffect, Effect.map(transformation)) + * const mappedWithDataFirst = Effect.map(myEffect, transformation) + * const mappedWithMethod = myEffect.pipe(Effect.map(transformation)) + * ``` + * + * **Example** (Adding a service charge) + * * ```ts * import { Effect, pipe } from "effect" * @@ -3349,23 +3284,18 @@ export declare const exit: (self: Effect) => Effect n + 1 + * + * const mappedWithPipe = pipe(myEffect, Effect.map(transformation)) + * const mappedWithDataFirst = Effect.map(myEffect, transformation) + * const mappedWithMethod = myEffect.pipe(Effect.map(transformation)) + * ``` + * + * **Example** (Adding a service charge) + * * ```ts * import { Effect, pipe } from "effect" * @@ -3396,23 +3340,18 @@ export declare const map: { * @see {@link mapError} for a version that operates on the error channel. * @see {@link mapBoth} for a version that operates on both channels. * @see {@link flatMap} or {@link andThen} for a version that can return a new effect. - * + * @category mapping * @since 2.0.0 - * @category Mapping */ (f: (a: A) => B): (self: Effect) => Effect; /** * Transforms the value inside an effect by applying a function to it. * - * **Syntax** + * **When to use** * - * ```ts skip-type-checking - * const mappedEffect = pipe(myEffect, Effect.map(transformation)) - * // or - * const mappedEffect = Effect.map(myEffect, transformation) - * // or - * const mappedEffect = myEffect.pipe(Effect.map(transformation)) - * ``` + * Use to transform an effect's success value with a function that returns a + * plain value, producing a new effect without changing the original effect's + * typed error or context requirements. * * **Details** * @@ -3423,7 +3362,21 @@ export declare const map: { * effect is not modified. Instead, a new effect is returned with the updated * value. * - * @example Adding a Service Charge + * **Example** (Syntax) + * + * ```ts + * import { Effect, pipe } from "effect" + * + * const myEffect = Effect.succeed(1) + * const transformation = (n: number) => n + 1 + * + * const mappedWithPipe = pipe(myEffect, Effect.map(transformation)) + * const mappedWithDataFirst = Effect.map(myEffect, transformation) + * const mappedWithMethod = myEffect.pipe(Effect.map(transformation)) + * ``` + * + * **Example** (Adding a service charge) + * * ```ts * import { Effect, pipe } from "effect" * @@ -3443,21 +3396,27 @@ export declare const map: { * @see {@link mapError} for a version that operates on the error channel. * @see {@link mapBoth} for a version that operates on both channels. * @see {@link flatMap} or {@link andThen} for a version that can return a new effect. - * + * @category mapping * @since 2.0.0 - * @category Mapping */ (self: Effect, f: (a: A) => B): Effect; }; /** * Replaces the value inside an effect with a constant value. * + * **When to use** + * + * Use to replace a successful value with a constant while preserving failures + * and requirements. + * + * **Details** + * * `as` allows you to ignore the original value inside an effect and * replace it with a new constant value. * - * @example + * **Example** (Replacing a success value) + * * ```ts - * // Title: Replacing a Value * import { Effect, pipe } from "effect" * * // Replaces the value 5 with the constant "new value" @@ -3467,19 +3426,29 @@ export declare const map: { * // Output: "new value" * ``` * + * @see {@link map} for deriving the replacement value from the success value + * @see {@link asVoid} for replacing the success value with `void` + * + * @category mapping * @since 2.0.0 - * @category Mapping */ export declare const as: { /** * Replaces the value inside an effect with a constant value. * + * **When to use** + * + * Use to replace a successful value with a constant while preserving failures + * and requirements. + * + * **Details** + * * `as` allows you to ignore the original value inside an effect and * replace it with a new constant value. * - * @example + * **Example** (Replacing a success value) + * * ```ts - * // Title: Replacing a Value * import { Effect, pipe } from "effect" * * // Replaces the value 5 with the constant "new value" @@ -3489,19 +3458,29 @@ export declare const as: { * // Output: "new value" * ``` * + * @see {@link map} for deriving the replacement value from the success value + * @see {@link asVoid} for replacing the success value with `void` + * + * @category mapping * @since 2.0.0 - * @category Mapping */ (value: B): (self: Effect) => Effect; /** * Replaces the value inside an effect with a constant value. * + * **When to use** + * + * Use to replace a successful value with a constant while preserving failures + * and requirements. + * + * **Details** + * * `as` allows you to ignore the original value inside an effect and * replace it with a new constant value. * - * @example + * **Example** (Replacing a success value) + * * ```ts - * // Title: Replacing a Value * import { Effect, pipe } from "effect" * * // Replaces the value 5 with the constant "new value" @@ -3511,17 +3490,19 @@ export declare const as: { * // Output: "new value" * ``` * + * @see {@link map} for deriving the replacement value from the success value + * @see {@link asVoid} for replacing the success value with `void` + * + * @category mapping * @since 2.0.0 - * @category Mapping */ (self: Effect, value: B): Effect; }; /** - * This function maps the success value of an `Effect` value to a `Some` value - * in an `Option` value. If the original `Effect` value fails, the returned - * `Effect` value will also fail. + * Maps the success value of an `Effect` to `Some`, preserving failures. + * + * **Example** (Wrapping success in Option.some) * - * @example * ```ts * import { Effect } from "effect" * @@ -3531,17 +3512,15 @@ export declare const as: { * // { _id: 'Option', _tag: 'Some', value: 42 } * ``` * - * @category Mapping + * @category mapping * @since 2.0.0 */ export declare const asSome: (self: Effect) => Effect, E, R>; /** - * This function maps the success value of an `Effect` value to `void`. If the - * original `Effect` value succeeds, the returned `Effect` value will also - * succeed. If the original `Effect` value fails, the returned `Effect` value - * will fail with the same error. + * Maps the success value of an `Effect` to `void`, preserving failures. + * + * **Example** (Discarding success values) * - * @example * ```ts * import { Effect } from "effect" * @@ -3551,20 +3530,23 @@ export declare const asSome: (self: Effect) => Effect(self: Effect) => Effect; /** - * The `flip` function swaps the success and error channels of an effect, - * so that the success becomes the error, and the error becomes the success. + * Swaps an effect's success and failure channels. + * + * **When to use** + * + * Use to swap an `Effect`'s success and failure channels. * - * This function is useful when you need to reverse the flow of an effect, - * treating the previously successful values as errors and vice versa. This can - * be helpful in scenarios where you want to handle a success as a failure or - * treat an error as a valid result. + * **Details** + * + * For an `Effect`, the returned effect has type `Effect`. + * + * **Example** (Swapping success and failure channels) * - * @example * ```ts * import { Effect } from "effect" * @@ -3577,27 +3559,30 @@ export declare const asVoid: (self: Effect) => Effect(self: Effect) => Effect; /** * Combines two effects into a single effect, producing a tuple with the results of both effects. * + * **When to use** + * + * Use to combine exactly two effects into a tuple. + * + * **Details** + * * The `zip` function executes the first effect (left) and then the second effect (right). * Once both effects succeed, their results are combined into a tuple. * - * **Concurrency** + * Concurrency: * * By default, `zip` processes the effects sequentially. To execute the effects concurrently, * use the `{ concurrent: true }` option. * - * @see {@link zipWith} for a version that combines the results with a custom function. - * @see {@link validate} for a version that accumulates errors. + * **Example** (Combining two effects sequentially) * - * @example * ```ts - * // Title: Combining Two Effects Sequentially * import { Effect } from "effect" * * const task1 = Effect.succeed(1).pipe( @@ -3622,8 +3607,9 @@ export declare const flip: (self: Effect) => Effect; * // [ 1, 'hello' ] * ``` * - * @example - * // Title: Combining Two Effects Concurrently + * **Example** (Combining two effects concurrently) + * + * ```ts * import { Effect } from "effect" * * const task1 = Effect.succeed(1).pipe( @@ -3643,28 +3629,35 @@ export declare const flip: (self: Effect) => Effect; * // timestamp=... level=INFO fiber=#0 message="task2 done" * // timestamp=... level=INFO fiber=#0 message="task1 done" * // [ 1, 'hello' ] + * ``` + * + * @see {@link zipWith} for a version that combines the results with a custom function. + * @see {@link all} for collecting a larger structure of effects. * + * @category zipping * @since 2.0.0 - * @category Zipping */ export declare const zip: { /** * Combines two effects into a single effect, producing a tuple with the results of both effects. * + * **When to use** + * + * Use to combine exactly two effects into a tuple. + * + * **Details** + * * The `zip` function executes the first effect (left) and then the second effect (right). * Once both effects succeed, their results are combined into a tuple. * - * **Concurrency** + * Concurrency: * * By default, `zip` processes the effects sequentially. To execute the effects concurrently, * use the `{ concurrent: true }` option. * - * @see {@link zipWith} for a version that combines the results with a custom function. - * @see {@link validate} for a version that accumulates errors. + * **Example** (Combining two effects sequentially) * - * @example * ```ts - * // Title: Combining Two Effects Sequentially * import { Effect } from "effect" * * const task1 = Effect.succeed(1).pipe( @@ -3689,8 +3682,9 @@ export declare const zip: { * // [ 1, 'hello' ] * ``` * - * @example - * // Title: Combining Two Effects Concurrently + * **Example** (Combining two effects concurrently) + * + * ```ts * import { Effect } from "effect" * * const task1 = Effect.succeed(1).pipe( @@ -3710,9 +3704,13 @@ export declare const zip: { * // timestamp=... level=INFO fiber=#0 message="task2 done" * // timestamp=... level=INFO fiber=#0 message="task1 done" * // [ 1, 'hello' ] + * ``` + * + * @see {@link zipWith} for a version that combines the results with a custom function. + * @see {@link all} for collecting a larger structure of effects. * + * @category zipping * @since 2.0.0 - * @category Zipping */ (that: Effect, options?: { readonly concurrent?: boolean | undefined; @@ -3720,20 +3718,23 @@ export declare const zip: { /** * Combines two effects into a single effect, producing a tuple with the results of both effects. * + * **When to use** + * + * Use to combine exactly two effects into a tuple. + * + * **Details** + * * The `zip` function executes the first effect (left) and then the second effect (right). * Once both effects succeed, their results are combined into a tuple. * - * **Concurrency** + * Concurrency: * * By default, `zip` processes the effects sequentially. To execute the effects concurrently, * use the `{ concurrent: true }` option. * - * @see {@link zipWith} for a version that combines the results with a custom function. - * @see {@link validate} for a version that accumulates errors. + * **Example** (Combining two effects sequentially) * - * @example * ```ts - * // Title: Combining Two Effects Sequentially * import { Effect } from "effect" * * const task1 = Effect.succeed(1).pipe( @@ -3758,8 +3759,9 @@ export declare const zip: { * // [ 1, 'hello' ] * ``` * - * @example - * // Title: Combining Two Effects Concurrently + * **Example** (Combining two effects concurrently) + * + * ```ts * import { Effect } from "effect" * * const task1 = Effect.succeed(1).pipe( @@ -3779,9 +3781,13 @@ export declare const zip: { * // timestamp=... level=INFO fiber=#0 message="task2 done" * // timestamp=... level=INFO fiber=#0 message="task1 done" * // [ 1, 'hello' ] + * ``` + * + * @see {@link zipWith} for a version that combines the results with a custom function. + * @see {@link all} for collecting a larger structure of effects. * + * @category zipping * @since 2.0.0 - * @category Zipping */ (self: Effect, that: Effect, options?: { readonly concurrent?: boolean | undefined; @@ -3791,20 +3797,21 @@ export declare const zip: { * Combines two effects sequentially and applies a function to their results to * produce a single value. * - * **When to Use** + * **When to use** + * + * Use when you need to run two effects sequentially and combine their results + * with a function instead of keeping the results as a tuple. * - * The `zipWith` function is similar to {@link zip}, but instead of returning a - * tuple of results, it applies a provided function to the results of the two - * effects, combining them into a single value. + * **Details** * - * **Concurrency** + * Concurrency: * * By default, the effects are run sequentially. To execute them concurrently, * use the `{ concurrent: true }` option. * - * @example + * **Example** (Combining two success values with a function) + * * ```ts - * // Title: Combining Effects with a Custom Function * import { Effect } from "effect" * * const task1 = Effect.succeed(1).pipe( @@ -3830,28 +3837,29 @@ export declare const zip: { * // 6 * ``` * + * @category zipping * @since 2.0.0 - * @category Zipping */ export declare const zipWith: { /** * Combines two effects sequentially and applies a function to their results to * produce a single value. * - * **When to Use** + * **When to use** * - * The `zipWith` function is similar to {@link zip}, but instead of returning a - * tuple of results, it applies a provided function to the results of the two - * effects, combining them into a single value. + * Use when you need to run two effects sequentially and combine their results + * with a function instead of keeping the results as a tuple. * - * **Concurrency** + * **Details** + * + * Concurrency: * * By default, the effects are run sequentially. To execute them concurrently, * use the `{ concurrent: true }` option. * - * @example + * **Example** (Combining two success values with a function) + * * ```ts - * // Title: Combining Effects with a Custom Function * import { Effect } from "effect" * * const task1 = Effect.succeed(1).pipe( @@ -3877,8 +3885,8 @@ export declare const zipWith: { * // 6 * ``` * + * @category zipping * @since 2.0.0 - * @category Zipping */ (that: Effect, f: (a: A, b: A2) => B, options?: { readonly concurrent?: boolean | undefined; @@ -3887,20 +3895,21 @@ export declare const zipWith: { * Combines two effects sequentially and applies a function to their results to * produce a single value. * - * **When to Use** + * **When to use** + * + * Use when you need to run two effects sequentially and combine their results + * with a function instead of keeping the results as a tuple. * - * The `zipWith` function is similar to {@link zip}, but instead of returning a - * tuple of results, it applies a provided function to the results of the two - * effects, combining them into a single value. + * **Details** * - * **Concurrency** + * Concurrency: * * By default, the effects are run sequentially. To execute them concurrently, * use the `{ concurrent: true }` option. * - * @example + * **Example** (Combining two success values with a function) + * * ```ts - * // Title: Combining Effects with a Custom Function * import { Effect } from "effect" * * const task1 = Effect.succeed(1).pipe( @@ -3926,8 +3935,8 @@ export declare const zipWith: { * // 6 * ``` * + * @category zipping * @since 2.0.0 - * @category Zipping */ (self: Effect, that: Effect, f: (a: A, b: A2) => B, options?: { readonly concurrent?: boolean | undefined; @@ -3941,6 +3950,11 @@ export { /** * Handles all errors in an effect by providing a fallback effect. * + * **When to use** + * + * Use when every recoverable error from an effect should be handled by the same + * fallback function while unrecoverable defects remain defects. + * * **Details** * * The `catch` function catches any errors that may occur during the @@ -3948,36 +3962,33 @@ export { * effect. This ensures that the program continues without failing by recovering * from errors using the provided fallback logic. * - * **Note**: `catch` only handles recoverable errors. It will not recover - * from unrecoverable defects. + * **Gotchas** * - * @see {@link catchCause} for a version that can recover from both recoverable and unrecoverable errors. - * - * **Previously Known As** + * `catch` only handles recoverable errors. It will not recover from + * unrecoverable defects. * - * This API replaces the following from Effect 3.x: - * - * - `Effect.catchAll` + * @see {@link catchCause} for a version that can recover from both recoverable and unrecoverable errors. * + * @category error handling * @since 4.0.0 - * @category Error Handling */ catch_ as catch }; /** * Catches and handles specific errors by their `_tag` field, which is used as a * discriminator. * - * **When to Use** + * **When to use** * - * `catchTag` is useful when your errors are tagged with a readonly `_tag` field - * that identifies the error type. You can use this function to handle specific - * error types by matching the `_tag` value. This allows for precise error - * handling, ensuring that only specific errors are caught and handled. + * Use when you need to recover from one specific tagged error in an effect + * error channel. * - * The error type must have a readonly `_tag` field to use `catchTag`. This - * field is used to identify and match errors. + * **Details** + * + * The error type must have a readonly `_tag` field. `catchTag` matches that + * field and only handles errors with the requested tag. + * + * **Example** (Handling a tagged error) * - * @example * ```ts * import { Effect } from "effect" * @@ -4000,25 +4011,29 @@ catch_ as catch }; * ) * ``` * + * @see {@link catchTags} for handling multiple tagged errors in one call + * @see {@link catchIf} for recovering from errors that match a predicate + * + * @category error handling * @since 2.0.0 - * @category Error Handling */ export declare const catchTag: { /** * Catches and handles specific errors by their `_tag` field, which is used as a * discriminator. * - * **When to Use** + * **When to use** * - * `catchTag` is useful when your errors are tagged with a readonly `_tag` field - * that identifies the error type. You can use this function to handle specific - * error types by matching the `_tag` value. This allows for precise error - * handling, ensuring that only specific errors are caught and handled. + * Use when you need to recover from one specific tagged error in an effect + * error channel. * - * The error type must have a readonly `_tag` field to use `catchTag`. This - * field is used to identify and match errors. + * **Details** + * + * The error type must have a readonly `_tag` field. `catchTag` matches that + * field and only handles errors with the requested tag. + * + * **Example** (Handling a tagged error) * - * @example * ```ts * import { Effect } from "effect" * @@ -4041,25 +4056,29 @@ export declare const catchTag: { * ) * ``` * + * @see {@link catchTags} for handling multiple tagged errors in one call + * @see {@link catchIf} for recovering from errors that match a predicate + * + * @category error handling * @since 2.0.0 - * @category Error Handling */ - | Arr.NonEmptyReadonlyArray>, E, A1, E1, R1, A2 = never, E2 = ExcludeTag, R2 = never>(k: K, f: (e: ExtractTag, K extends Arr.NonEmptyReadonlyArray ? K[number] : K>) => Effect, orElse?: ((e: ExcludeTag ? K[number] : K>) => Effect) | undefined): (self: Effect) => Effect; + | Arr.NonEmptyReadonlyArray>, E, A1, E1, R1, A2 = unassigned, E2 = never, R2 = never>(k: K, f: (e: ExtractTag, K extends Arr.NonEmptyReadonlyArray ? K[number] : K>) => Effect, orElse?: ((e: ExcludeTag ? K[number] : K>) => Effect) | undefined): (self: Effect) => Effect, E1 | E2 | (A2 extends unassigned ? ExcludeTag ? K[number] : K> : never), R | R1 | R2>; /** * Catches and handles specific errors by their `_tag` field, which is used as a * discriminator. * - * **When to Use** + * **When to use** * - * `catchTag` is useful when your errors are tagged with a readonly `_tag` field - * that identifies the error type. You can use this function to handle specific - * error types by matching the `_tag` value. This allows for precise error - * handling, ensuring that only specific errors are caught and handled. + * Use when you need to recover from one specific tagged error in an effect + * error channel. * - * The error type must have a readonly `_tag` field to use `catchTag`. This - * field is used to identify and match errors. + * **Details** + * + * The error type must have a readonly `_tag` field. `catchTag` matches that + * field and only handles errors with the requested tag. + * + * **Example** (Handling a tagged error) * - * @example * ```ts * import { Effect } from "effect" * @@ -4082,27 +4101,32 @@ export declare const catchTag: { * ) * ``` * + * @see {@link catchTags} for handling multiple tagged errors in one call + * @see {@link catchIf} for recovering from errors that match a predicate + * + * @category error handling * @since 2.0.0 - * @category Error Handling */ - | Arr.NonEmptyReadonlyArray>, R1, E1, A1, A2 = never, E2 = ExcludeTag, R2 = never>(self: Effect, k: K, f: (e: ExtractTag ? K[number] : K>) => Effect, orElse?: ((e: ExcludeTag ? K[number] : K>) => Effect) | undefined): Effect; + | Arr.NonEmptyReadonlyArray>, R1, E1, A1, A2 = unassigned, E2 = never, R2 = never>(self: Effect, k: K, f: (e: ExtractTag ? K[number] : K>) => Effect, orElse?: ((e: ExcludeTag ? K[number] : K>) => Effect) | undefined): Effect, E1 | E2 | (A2 extends unassigned ? ExcludeTag ? K[number] : K> : never), R | R1 | R2>; }; /** * Handles multiple errors in a single block of code using their `_tag` field. * - * **When to Use** + * **When to use** + * + * Use when one recovery step should handle several tagged error types by + * matching their readonly `_tag` fields. * - * `catchTags` is a convenient way to handle multiple error types at - * once. Instead of using {@link catchTag} multiple times, you can pass an - * object where each key is an error type's `_tag`, and the value is the handler - * for that specific error. This allows you to catch and recover from multiple - * error types in a single call. You can also provide a fallback handler for - * unhandled errors. + * **Details** + * + * Pass a handler table whose keys are tags, plus an optional fallback for + * unmatched errors. * - * The error type must have a readonly `_tag` field to use `catchTag`. This + * The error type must have a readonly `_tag` field to use `catchTags`. This * field is used to identify and match errors. * - * @example + * **Example** (Handling multiple tagged errors) + * * ```ts * import { Data, Effect } from "effect" * @@ -4126,26 +4150,28 @@ export declare const catchTag: { * }) * ``` * + * @category error handling * @since 2.0.0 - * @category Error Handling */ export declare const catchTags: { /** * Handles multiple errors in a single block of code using their `_tag` field. * - * **When to Use** + * **When to use** + * + * Use when one recovery step should handle several tagged error types by + * matching their readonly `_tag` fields. * - * `catchTags` is a convenient way to handle multiple error types at - * once. Instead of using {@link catchTag} multiple times, you can pass an - * object where each key is an error type's `_tag`, and the value is the handler - * for that specific error. This allows you to catch and recover from multiple - * error types in a single call. You can also provide a fallback handler for - * unhandled errors. + * **Details** + * + * Pass a handler table whose keys are tags, plus an optional fallback for + * unmatched errors. * - * The error type must have a readonly `_tag` field to use `catchTag`. This + * The error type must have a readonly `_tag` field to use `catchTags`. This * field is used to identify and match errors. * - * @example + * **Example** (Handling multiple tagged errors) + * * ```ts * import { Data, Effect } from "effect" * @@ -4169,8 +4195,8 @@ export declare const catchTags: { * }) * ``` * + * @category error handling * @since 2.0.0 - * @category Error Handling */ ["_tag"]>]: never; - }), A2 = never, E2 = Exclude, R2 = never>(cases: Cases, orElse?: ((e: Exclude(cases: Cases, orElse?: ((e: Exclude) => Effect) | undefined): (self: Effect) => Effect) => Effect) | undefined): (self: Effect) => Effect | { [K in keyof Cases]: Cases[K] extends (...args: Array) => Effect ? A : never; - }[keyof Cases], E2 | { + }[keyof Cases], E2 | (A2 extends unassigned ? Exclude : never) | { [K in keyof Cases]: Cases[K] extends (...args: Array) => Effect ? E : never; }[keyof Cases], R | R2 | { [K in keyof Cases]: Cases[K] extends (...args: Array) => Effect ? R : never; @@ -4196,19 +4222,21 @@ export declare const catchTags: { /** * Handles multiple errors in a single block of code using their `_tag` field. * - * **When to Use** + * **When to use** + * + * Use when one recovery step should handle several tagged error types by + * matching their readonly `_tag` fields. + * + * **Details** * - * `catchTags` is a convenient way to handle multiple error types at - * once. Instead of using {@link catchTag} multiple times, you can pass an - * object where each key is an error type's `_tag`, and the value is the handler - * for that specific error. This allows you to catch and recover from multiple - * error types in a single call. You can also provide a fallback handler for - * unhandled errors. + * Pass a handler table whose keys are tags, plus an optional fallback for + * unmatched errors. * - * The error type must have a readonly `_tag` field to use `catchTag`. This + * The error type must have a readonly `_tag` field to use `catchTags`. This * field is used to identify and match errors. * - * @example + * **Example** (Handling multiple tagged errors) + * * ```ts * import { Data, Effect } from "effect" * @@ -4232,8 +4260,8 @@ export declare const catchTags: { * }) * ``` * + * @category error handling * @since 2.0.0 - * @category Error Handling */ ["_tag"]>]: never; - }), A2 = never, E2 = Exclude, R2 = never>(self: Effect, cases: Cases, orElse?: ((e: Exclude(self: Effect, cases: Cases, orElse?: ((e: Exclude) => Effect) | undefined): Effect) => Effect) | undefined): Effect | { [K in keyof Cases]: Cases[K] extends (...args: Array) => Effect ? A : never; - }[keyof Cases], E2 | { + }[keyof Cases], E2 | (A2 extends unassigned ? Exclude : never) | { [K in keyof Cases]: Cases[K] extends (...args: Array) => Effect ? E : never; }[keyof Cases], R | R2 | { [K in keyof Cases]: Cases[K] extends (...args: Array) => Effect ? R : never; @@ -4260,10 +4288,18 @@ export declare const catchTags: { /** * Catches a specific reason within a tagged error. * + * **When to use** + * + * Use to handle one nested reason inside an `Effect`'s tagged error while + * preserving the parent error shape for unmatched reasons. + * + * **Details** + * * Use this to handle nested error causes without removing the parent error * from the error channel. The handler receives the unwrapped reason. * - * @example + * **Example** (Handling an error reason) + * * ```ts * import { Data, Effect } from "effect" * @@ -4289,17 +4325,27 @@ export declare const catchTags: { * ) * ``` * + * @see {@link catchReasons} for handling several nested reason tags + * + * @category error handling * @since 4.0.0 - * @category Error Handling */ export declare const catchReason: { /** * Catches a specific reason within a tagged error. * + * **When to use** + * + * Use to handle one nested reason inside an `Effect`'s tagged error while + * preserving the parent error shape for unmatched reasons. + * + * **Details** + * * Use this to handle nested error causes without removing the parent error * from the error channel. The handler receives the unwrapped reason. * - * @example + * **Example** (Handling an error reason) + * * ```ts * import { Data, Effect } from "effect" * @@ -4325,17 +4371,27 @@ export declare const catchReason: { * ) * ``` * + * @see {@link catchReasons} for handling several nested reason tags + * + * @category error handling * @since 4.0.0 - * @category Error Handling */ - , E, RK extends ReasonTags, K>>, A2, E2, R2, A3 = unassigned, E3 = never, R3 = never>(errorTag: K, reasonTag: RK, f: (reason: ExtractReason, K>, RK>, error: NarrowReason, K>, RK>) => Effect, orElse?: ((reasons: ExcludeReason, K>, RK>, error: OmitReason, K>, RK>) => Effect) | undefined): (self: Effect) => Effect, (A3 extends unassigned ? E : ExcludeTag) | E2 | E3, R | R2 | R3>; + , E, RK extends ReasonTags, K>>, A2, E2, R2, A3 = unassigned, E3 = never, R3 = never>(errorTag: K, reasonTag: RK, f: (reason: ExtractReason, K>, RK>, error: NarrowReason, K>, RK>) => Effect, orElse?: ((reasons: ExcludeReason, K>, RK>, error: OmitReason, K>, RK>) => Effect) | undefined): (self: Effect) => Effect, ExcludeTag | E2 | E3 | (A3 extends unassigned ? ExtractTag : never), R | R2 | R3>; /** * Catches a specific reason within a tagged error. * + * **When to use** + * + * Use to handle one nested reason inside an `Effect`'s tagged error while + * preserving the parent error shape for unmatched reasons. + * + * **Details** + * * Use this to handle nested error causes without removing the parent error * from the error channel. The handler receives the unwrapped reason. * - * @example + * **Example** (Handling an error reason) + * * ```ts * import { Data, Effect } from "effect" * @@ -4361,15 +4417,18 @@ export declare const catchReason: { * ) * ``` * + * @see {@link catchReasons} for handling several nested reason tags + * + * @category error handling * @since 4.0.0 - * @category Error Handling */ - , RK extends ReasonTags>, A2, E2, R2, A3 = unassigned, E3 = never, R3 = never>(self: Effect, errorTag: K, reasonTag: RK, f: (reason: ExtractReason, RK>, error: NarrowReason, RK>) => Effect, orElse?: ((reasons: ExcludeReason, RK>, error: OmitReason, RK>) => Effect) | undefined): Effect, (A3 extends unassigned ? E : ExcludeTag) | E2 | E3, R | R2 | R3>; + , RK extends ReasonTags>, A2, E2, R2, A3 = unassigned, E3 = never, R3 = never>(self: Effect, errorTag: K, reasonTag: RK, f: (reason: ExtractReason, RK>, error: NarrowReason, RK>) => Effect, orElse?: ((reasons: ExcludeReason, RK>, error: OmitReason, RK>) => Effect) | undefined): Effect, ExcludeTag | E2 | E3 | (A3 extends unassigned ? ExtractTag : never), R | R2 | R3>; }; /** * Catches multiple reasons within a tagged error using an object of handlers. * - * @example + * **Example** (Handling multiple error reasons) + * * ```ts * import { Data, Effect } from "effect" * @@ -4397,14 +4456,15 @@ export declare const catchReason: { * ) * ``` * + * @category error handling * @since 4.0.0 - * @category Error Handling */ export declare const catchReasons: { /** * Catches multiple reasons within a tagged error using an object of handlers. * - * @example + * **Example** (Handling multiple error reasons) + * * ```ts * import { Data, Effect } from "effect" * @@ -4432,14 +4492,14 @@ export declare const catchReasons: { * ) * ``` * + * @category error handling * @since 4.0.0 - * @category Error Handling */ , E, Cases extends { [RK in ReasonTags, K>>]+?: (reason: ExtractReason, K>, RK>, error: NarrowReason, K>, RK>) => Effect; }, A2 = unassigned, E2 = never, R2 = never>(errorTag: K, cases: Cases, orElse?: ((reason: ExcludeReason, K>, Extract>, error: OmitReason, K>, Extract>) => Effect) | undefined): (self: Effect) => Effect | { [RK in keyof Cases]: Cases[RK] extends (...args: Array) => Effect ? A : never; - }[keyof Cases], (A2 extends unassigned ? E : ExcludeTag) | E2 | { + }[keyof Cases], ExcludeTag | E2 | (A2 extends unassigned ? ExtractTag : never) | { [RK in keyof Cases]: Cases[RK] extends (...args: Array) => Effect ? E : never; }[keyof Cases], R | R2 | { [RK in keyof Cases]: Cases[RK] extends (...args: Array) => Effect ? R : never; @@ -4447,7 +4507,8 @@ export declare const catchReasons: { /** * Catches multiple reasons within a tagged error using an object of handlers. * - * @example + * **Example** (Handling multiple error reasons) + * * ```ts * import { Data, Effect } from "effect" * @@ -4475,14 +4536,14 @@ export declare const catchReasons: { * ) * ``` * + * @category error handling * @since 4.0.0 - * @category Error Handling */ , Cases extends { [RK in ReasonTags>]+?: (reason: ExtractReason, RK>, error: NarrowReason, RK>) => Effect; }, A2 = unassigned, E2 = never, R2 = never>(self: Effect, errorTag: K, cases: Cases, orElse?: ((reason: ExcludeReason, K>, Extract>, error: OmitReason, K>, Extract>) => Effect) | undefined): Effect | { [RK in keyof Cases]: Cases[RK] extends (...args: Array) => Effect ? A : never; - }[keyof Cases], (A2 extends unassigned ? E : ExcludeTag) | E2 | { + }[keyof Cases], ExcludeTag | E2 | (A2 extends unassigned ? ExtractTag : never) | { [RK in keyof Cases]: Cases[RK] extends (...args: Array) => Effect ? E : never; }[keyof Cases], R | R2 | { [RK in keyof Cases]: Cases[RK] extends (...args: Array) => Effect ? R : never; @@ -4491,10 +4552,22 @@ export declare const catchReasons: { /** * Type helper that keeps only error tags whose tagged error contains a tagged `reason` field. * - * Used by `catchReasons` and `unwrapReason` to constrain the parent error tag to reason-bearing errors. + * **When to use** + * + * Use to constrain custom helpers or overloads to parent error tags whose error + * contains a tagged reason. + * + * **Details** + * + * The mapped type keeps each parent error tag whose extracted tagged error has + * at least one reason tag, and removes tags that do not carry tagged reasons. * + * @see {@link unwrapReason} for promoting nested reason errors into the error channel + * @see {@link catchReason} for handling one nested reason tag + * @see {@link catchReasons} for handling several nested reason tags + * + * @category error handling * @since 4.0.0 - * @category Error Handling */ export type TagsWithReason = { [T in Tags]: ReasonTags> extends never ? never : T; @@ -4503,7 +4576,8 @@ export type TagsWithReason = { * Promotes nested reason errors into the Effect error channel, replacing * the parent error. * - * @example + * **Example** (Extracting the reason from a tagged error) + * * ```ts * import { Data, Effect } from "effect" * @@ -4526,15 +4600,16 @@ export type TagsWithReason = { * const unwrapped = program.pipe(Effect.unwrapReason("AiError")) * ``` * + * @category error handling * @since 4.0.0 - * @category Error Handling */ export declare const unwrapReason: { /** * Promotes nested reason errors into the Effect error channel, replacing * the parent error. * - * @example + * **Example** (Extracting the reason from a tagged error) + * * ```ts * import { Data, Effect } from "effect" * @@ -4557,15 +4632,16 @@ export declare const unwrapReason: { * const unwrapped = program.pipe(Effect.unwrapReason("AiError")) * ``` * + * @category error handling * @since 4.0.0 - * @category Error Handling */ , E>(errorTag: K): (self: Effect) => Effect | ReasonOf>, R>; /** * Promotes nested reason errors into the Effect error channel, replacing * the parent error. * - * @example + * **Example** (Extracting the reason from a tagged error) + * * ```ts * import { Data, Effect } from "effect" * @@ -4588,8 +4664,8 @@ export declare const unwrapReason: { * const unwrapped = program.pipe(Effect.unwrapReason("AiError")) * ``` * + * @category error handling * @since 4.0.0 - * @category Error Handling */ >(self: Effect, errorTag: K): Effect | ReasonOf>, R>; }; @@ -4597,26 +4673,22 @@ export declare const unwrapReason: { * Handles both recoverable and unrecoverable errors by providing a recovery * effect. * - * **When to Use** + * **When to use** * - * The `catchCause` function allows you to handle all errors, including - * unrecoverable defects, by providing a recovery effect. The recovery logic is - * based on the `Cause` of the error, which provides detailed information about - * the failure. + * Use when you need to recover from an `Effect` by inspecting the full `Cause`, + * including recoverable failures, defects, and interruptions, instead of only + * the typed error value. * - * **When to Recover from Defects** + * **Details** + * + * When to Recover from Defects: * * Defects are unexpected errors that typically shouldn't be recovered from, as * they often indicate serious issues. However, in some cases, such as * dynamically loaded plugins, controlled recovery might be needed. * - * **Previously Known As** - * - * This API replaces the following from Effect 3.x: - * - * - `Effect.catchAllCause` + * **Example** (Recovering from full failure causes) * - * @example * ```ts * import { Cause, Console, Effect } from "effect" * @@ -4634,34 +4706,30 @@ export declare const unwrapReason: { * }) * ``` * + * @category error handling * @since 4.0.0 - * @category Error Handling */ export declare const catchCause: { /** * Handles both recoverable and unrecoverable errors by providing a recovery * effect. * - * **When to Use** + * **When to use** * - * The `catchCause` function allows you to handle all errors, including - * unrecoverable defects, by providing a recovery effect. The recovery logic is - * based on the `Cause` of the error, which provides detailed information about - * the failure. + * Use when you need to recover from an `Effect` by inspecting the full `Cause`, + * including recoverable failures, defects, and interruptions, instead of only + * the typed error value. * - * **When to Recover from Defects** + * **Details** + * + * When to Recover from Defects: * * Defects are unexpected errors that typically shouldn't be recovered from, as * they often indicate serious issues. However, in some cases, such as * dynamically loaded plugins, controlled recovery might be needed. * - * **Previously Known As** - * - * This API replaces the following from Effect 3.x: - * - * - `Effect.catchAllCause` + * **Example** (Recovering from full failure causes) * - * @example * ```ts * import { Cause, Console, Effect } from "effect" * @@ -4679,34 +4747,30 @@ export declare const catchCause: { * }) * ``` * + * @category error handling * @since 4.0.0 - * @category Error Handling */ (f: (cause: Cause.Cause) => Effect): (self: Effect) => Effect; /** * Handles both recoverable and unrecoverable errors by providing a recovery * effect. * - * **When to Use** + * **When to use** * - * The `catchCause` function allows you to handle all errors, including - * unrecoverable defects, by providing a recovery effect. The recovery logic is - * based on the `Cause` of the error, which provides detailed information about - * the failure. + * Use when you need to recover from an `Effect` by inspecting the full `Cause`, + * including recoverable failures, defects, and interruptions, instead of only + * the typed error value. * - * **When to Recover from Defects** + * **Details** + * + * When to Recover from Defects: * * Defects are unexpected errors that typically shouldn't be recovered from, as * they often indicate serious issues. However, in some cases, such as * dynamically loaded plugins, controlled recovery might be needed. * - * **Previously Known As** - * - * This API replaces the following from Effect 3.x: - * - * - `Effect.catchAllCause` + * **Example** (Recovering from full failure causes) * - * @example * ```ts * import { Cause, Console, Effect } from "effect" * @@ -4724,41 +4788,31 @@ export declare const catchCause: { * }) * ``` * + * @category error handling * @since 4.0.0 - * @category Error Handling */ (self: Effect, f: (cause: Cause.Cause) => Effect): Effect; }; /** - * Recovers from all defects using a provided recovery function. + * Recovers from defects using a provided recovery function. * - * **When to Use** + * **When to use** * - * There is no sensible way to recover from defects. This method should be used - * only at the boundary between Effect and an external system, to transmit - * information on a defect for diagnostic or explanatory purposes. + * Use when you need to report or translate defects at integration boundaries. * * **Details** * - * `catchAllDefect` allows you to handle defects, which are unexpected errors - * that usually cause the program to terminate. This function lets you recover - * from these defects by providing a function that handles the error. However, - * it does not handle expected errors (like those from {@link fail}) or - * execution interruptions (like those from {@link interrupt}). + * `catchDefect` handles unexpected defects, such as thrown exceptions or + * values passed to `die`, without catching typed failures or interruptions. * - * **When to Recover from Defects** + * When to Recover from Defects: * - * Defects are unexpected errors that typically shouldn't be recovered from, as - * they often indicate serious issues. However, in some cases, such as - * dynamically loaded plugins, controlled recovery might be needed. - * - * **Previously Known As** + * Defects are unexpected errors that typically should not be recovered from, as + * they often indicate serious issues. In some cases, such as dynamically loaded + * plugins, controlled recovery may be needed. * - * This API replaces the following from Effect 3.x: + * **Example** (Recovering from defects) * - * - `Effect.catchAllDefect` - * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -4775,40 +4829,30 @@ export declare const catchCause: { * }) * ``` * + * @category error handling * @since 4.0.0 - * @category Error Handling */ export declare const catchDefect: { /** - * Recovers from all defects using a provided recovery function. + * Recovers from defects using a provided recovery function. * - * **When to Use** + * **When to use** * - * There is no sensible way to recover from defects. This method should be used - * only at the boundary between Effect and an external system, to transmit - * information on a defect for diagnostic or explanatory purposes. + * Use when you need to report or translate defects at integration boundaries. * * **Details** * - * `catchAllDefect` allows you to handle defects, which are unexpected errors - * that usually cause the program to terminate. This function lets you recover - * from these defects by providing a function that handles the error. However, - * it does not handle expected errors (like those from {@link fail}) or - * execution interruptions (like those from {@link interrupt}). - * - * **When to Recover from Defects** - * - * Defects are unexpected errors that typically shouldn't be recovered from, as - * they often indicate serious issues. However, in some cases, such as - * dynamically loaded plugins, controlled recovery might be needed. + * `catchDefect` handles unexpected defects, such as thrown exceptions or + * values passed to `die`, without catching typed failures or interruptions. * - * **Previously Known As** + * When to Recover from Defects: * - * This API replaces the following from Effect 3.x: + * Defects are unexpected errors that typically should not be recovered from, as + * they often indicate serious issues. In some cases, such as dynamically loaded + * plugins, controlled recovery may be needed. * - * - `Effect.catchAllDefect` + * **Example** (Recovering from defects) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -4825,40 +4869,30 @@ export declare const catchDefect: { * }) * ``` * + * @category error handling * @since 4.0.0 - * @category Error Handling */ (f: (defect: unknown) => Effect): (self: Effect) => Effect; /** - * Recovers from all defects using a provided recovery function. + * Recovers from defects using a provided recovery function. * - * **When to Use** + * **When to use** * - * There is no sensible way to recover from defects. This method should be used - * only at the boundary between Effect and an external system, to transmit - * information on a defect for diagnostic or explanatory purposes. + * Use when you need to report or translate defects at integration boundaries. * * **Details** * - * `catchAllDefect` allows you to handle defects, which are unexpected errors - * that usually cause the program to terminate. This function lets you recover - * from these defects by providing a function that handles the error. However, - * it does not handle expected errors (like those from {@link fail}) or - * execution interruptions (like those from {@link interrupt}). - * - * **When to Recover from Defects** - * - * Defects are unexpected errors that typically shouldn't be recovered from, as - * they often indicate serious issues. However, in some cases, such as - * dynamically loaded plugins, controlled recovery might be needed. + * `catchDefect` handles unexpected defects, such as thrown exceptions or + * values passed to `die`, without catching typed failures or interruptions. * - * **Previously Known As** + * When to Recover from Defects: * - * This API replaces the following from Effect 3.x: + * Defects are unexpected errors that typically should not be recovered from, as + * they often indicate serious issues. In some cases, such as dynamically loaded + * plugins, controlled recovery may be needed. * - * - `Effect.catchAllDefect` + * **Example** (Recovering from defects) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -4875,29 +4909,26 @@ export declare const catchDefect: { * }) * ``` * + * @category error handling * @since 4.0.0 - * @category Error Handling */ (self: Effect, f: (defect: unknown) => Effect): Effect; }; /** * Recovers from specific errors using a `Predicate` or `Refinement`. * - * **When to Use** + * **When to use** * - * `catchIf` lets you recover from errors that match a condition. Use a - * `Refinement` for type narrowing or a `Predicate` for simple boolean - * matching. Non-matching errors re-fail with the original cause. Defects and - * interrupts are not caught. + * Use when you need to recover from errors that match a condition. * - * **Previously Known As** + * **Details** * - * This API replaces the following: + * Use a `Refinement` for type narrowing or a `Predicate` for simple boolean + * matching. Non-matching errors re-fail with the original cause. Defects and + * interrupts are not caught. * - * - `Effect.catchSome` (Effect 3.x) - * - `Effect.catchIf` + * **Example** (Recovering when a predicate matches) * - * @example * ```ts * import { Data, Effect, Filter } from "effect" * @@ -4922,28 +4953,25 @@ export declare const catchDefect: { * ) * ``` * + * @category error handling * @since 2.0.0 - * @category Error Handling */ export declare const catchIf: { /** * Recovers from specific errors using a `Predicate` or `Refinement`. * - * **When to Use** + * **When to use** * - * `catchIf` lets you recover from errors that match a condition. Use a - * `Refinement` for type narrowing or a `Predicate` for simple boolean - * matching. Non-matching errors re-fail with the original cause. Defects and - * interrupts are not caught. + * Use when you need to recover from errors that match a condition. * - * **Previously Known As** + * **Details** * - * This API replaces the following: + * Use a `Refinement` for type narrowing or a `Predicate` for simple boolean + * matching. Non-matching errors re-fail with the original cause. Defects and + * interrupts are not caught. * - * - `Effect.catchSome` (Effect 3.x) - * - `Effect.catchIf` + * **Example** (Recovering when a predicate matches) * - * @example * ```ts * import { Data, Effect, Filter } from "effect" * @@ -4968,28 +4996,25 @@ export declare const catchIf: { * ) * ``` * + * @category error handling * @since 2.0.0 - * @category Error Handling */ - , R3 = never>(refinement: Predicate.Refinement, EB>, f: (e: EB) => Effect, orElse?: ((e: Exclude) => Effect) | undefined): (self: Effect) => Effect; + (refinement: Predicate.Refinement, EB>, f: (e: EB) => Effect, orElse?: ((e: Exclude) => Effect) | undefined): (self: Effect) => Effect, E2 | E3 | (A3 extends unassigned ? Exclude : never), R | R2 | R3>; /** * Recovers from specific errors using a `Predicate` or `Refinement`. * - * **When to Use** + * **When to use** * - * `catchIf` lets you recover from errors that match a condition. Use a - * `Refinement` for type narrowing or a `Predicate` for simple boolean - * matching. Non-matching errors re-fail with the original cause. Defects and - * interrupts are not caught. + * Use when you need to recover from errors that match a condition. * - * **Previously Known As** + * **Details** * - * This API replaces the following: + * Use a `Refinement` for type narrowing or a `Predicate` for simple boolean + * matching. Non-matching errors re-fail with the original cause. Defects and + * interrupts are not caught. * - * - `Effect.catchSome` (Effect 3.x) - * - `Effect.catchIf` + * **Example** (Recovering when a predicate matches) * - * @example * ```ts * import { Data, Effect, Filter } from "effect" * @@ -5014,28 +5039,25 @@ export declare const catchIf: { * ) * ``` * + * @category error handling * @since 2.0.0 - * @category Error Handling */ - (predicate: Predicate.Predicate>, f: (e: NoInfer) => Effect, orElse?: ((e: NoInfer) => Effect) | undefined): (self: Effect) => Effect; + (predicate: Predicate.Predicate>, f: (e: NoInfer) => Effect, orElse?: ((e: NoInfer) => Effect) | undefined): (self: Effect) => Effect, E2 | E3 | (A3 extends unassigned ? E : never), R | R2 | R3>; /** * Recovers from specific errors using a `Predicate` or `Refinement`. * - * **When to Use** + * **When to use** * - * `catchIf` lets you recover from errors that match a condition. Use a - * `Refinement` for type narrowing or a `Predicate` for simple boolean - * matching. Non-matching errors re-fail with the original cause. Defects and - * interrupts are not caught. + * Use when you need to recover from errors that match a condition. * - * **Previously Known As** + * **Details** * - * This API replaces the following: + * Use a `Refinement` for type narrowing or a `Predicate` for simple boolean + * matching. Non-matching errors re-fail with the original cause. Defects and + * interrupts are not caught. * - * - `Effect.catchSome` (Effect 3.x) - * - `Effect.catchIf` + * **Example** (Recovering when a predicate matches) * - * @example * ```ts * import { Data, Effect, Filter } from "effect" * @@ -5060,28 +5082,25 @@ export declare const catchIf: { * ) * ``` * + * @category error handling * @since 2.0.0 - * @category Error Handling */ - , R3 = never>(self: Effect, refinement: Predicate.Refinement, f: (e: EB) => Effect, orElse?: ((e: Exclude) => Effect) | undefined): Effect; + (self: Effect, refinement: Predicate.Refinement, f: (e: EB) => Effect, orElse?: ((e: Exclude) => Effect) | undefined): Effect, E2 | E3 | (A3 extends unassigned ? Exclude : never), R | R2 | R3>; /** * Recovers from specific errors using a `Predicate` or `Refinement`. * - * **When to Use** + * **When to use** * - * `catchIf` lets you recover from errors that match a condition. Use a - * `Refinement` for type narrowing or a `Predicate` for simple boolean - * matching. Non-matching errors re-fail with the original cause. Defects and - * interrupts are not caught. + * Use when you need to recover from errors that match a condition. * - * **Previously Known As** + * **Details** * - * This API replaces the following: + * Use a `Refinement` for type narrowing or a `Predicate` for simple boolean + * matching. Non-matching errors re-fail with the original cause. Defects and + * interrupts are not caught. * - * - `Effect.catchSome` (Effect 3.x) - * - `Effect.catchIf` + * **Example** (Recovering when a predicate matches) * - * @example * ```ts * import { Data, Effect, Filter } from "effect" * @@ -5106,40 +5125,102 @@ export declare const catchIf: { * ) * ``` * + * @category error handling * @since 2.0.0 - * @category Error Handling */ - (self: Effect, predicate: Predicate.Predicate, f: (e: E) => Effect, orElse?: ((e: E) => Effect) | undefined): Effect; + (self: Effect, predicate: Predicate.Predicate, f: (e: E) => Effect, orElse?: ((e: E) => Effect) | undefined): Effect, E2 | E3 | (A3 extends unassigned ? E : never), R | R2 | R3>; }; /** * Recovers from specific errors using a `Filter`. * + * **When to use** + * + * Use to recover from typed `Effect` errors with a reusable `Filter` when + * matching can also narrow or transform the error before choosing the recovery + * effect. + * + * **Details** + * + * The filter runs on typed failures extracted from the `Cause`. Successful + * filter results are passed to `f`; failed filter results are passed to + * `orElse` when provided. Without `orElse`, the original failure cause is + * preserved. + * + * @see {@link catchIf} for predicate-based recovery from typed errors + * @see {@link catchTag} for recovering from a single tagged error + * @see {@link catchTags} for recovering from several tagged errors + * @see {@link catchCauseFilter} for filtering full causes instead of typed errors + * + * @category error handling * @since 4.0.0 - * @category Error Handling */ export declare const catchFilter: { /** * Recovers from specific errors using a `Filter`. * + * **When to use** + * + * Use to recover from typed `Effect` errors with a reusable `Filter` when + * matching can also narrow or transform the error before choosing the recovery + * effect. + * + * **Details** + * + * The filter runs on typed failures extracted from the `Cause`. Successful + * filter results are passed to `f`; failed filter results are passed to + * `orElse` when provided. Without `orElse`, the original failure cause is + * preserved. + * + * @see {@link catchIf} for predicate-based recovery from typed errors + * @see {@link catchTag} for recovering from a single tagged error + * @see {@link catchTags} for recovering from several tagged errors + * @see {@link catchCauseFilter} for filtering full causes instead of typed errors + * + * @category error handling * @since 4.0.0 - * @category Error Handling */ - (filter: Filter.Filter, EB, X>, f: (e: EB) => Effect, orElse?: ((e: X) => Effect) | undefined): (self: Effect) => Effect; + (filter: Filter.Filter, EB, X>, f: (e: EB) => Effect, orElse?: ((e: X) => Effect) | undefined): (self: Effect) => Effect, E2 | E3 | (A3 extends unassigned ? X : never), R | R2 | R3>; /** * Recovers from specific errors using a `Filter`. * + * **When to use** + * + * Use to recover from typed `Effect` errors with a reusable `Filter` when + * matching can also narrow or transform the error before choosing the recovery + * effect. + * + * **Details** + * + * The filter runs on typed failures extracted from the `Cause`. Successful + * filter results are passed to `f`; failed filter results are passed to + * `orElse` when provided. Without `orElse`, the original failure cause is + * preserved. + * + * @see {@link catchIf} for predicate-based recovery from typed errors + * @see {@link catchTag} for recovering from a single tagged error + * @see {@link catchTags} for recovering from several tagged errors + * @see {@link catchCauseFilter} for filtering full causes instead of typed errors + * + * @category error handling * @since 4.0.0 - * @category Error Handling */ - (self: Effect, filter: Filter.Filter, EB, X>, f: (e: EB) => Effect, orElse?: ((e: X) => Effect) | undefined): Effect; + (self: Effect, filter: Filter.Filter, EB, X>, f: (e: EB) => Effect, orElse?: ((e: X) => Effect) | undefined): Effect, E2 | E3 | (A3 extends unassigned ? X : never), R | R2 | R3>; }; /** * Catches `NoSuchElementError` failures and converts them to `Option.none`. * + * **When to use** + * + * Use when you expect missing-value failures and want them to become an + * optional success while all other failures keep failing. + * + * **Details** + * * Success values become `Option.some`, `NoSuchElementError` becomes * `Option.none`, and all other errors are preserved. * - * @example + * **Example** (Recovering from missing Option values) + * * ```ts * import { Effect, Option } from "effect" * @@ -5150,30 +5231,29 @@ export declare const catchFilter: { * Effect.runPromise(none).then(console.log) // { _id: 'Option', _tag: 'None' } * ``` * - * **Previously Known As** - * - * This API replaces the following from Effect 3.x: - * - * - `Effect.optionFromOptional` + * @see {@link fromOption} for converting `Option.none` into `NoSuchElementError` + * @see {@link fromNullishOr} for converting nullish values into `NoSuchElementError` + * @see {@link option} for converting any failure into `Option.none` * - * @since 2.0.0 - * @category Error Handling + * @category error handling + * @since 4.0.0 */ export declare const catchNoSuchElement: (self: Effect) => Effect, Exclude, R>; /** * Recovers from specific failures based on a predicate. * + * **When to use** + * + * Use to recover an `Effect` from full causes selected by a predicate. + * + * **Details** + * * This function allows you to conditionally catch and recover from failures * that match a specific predicate. This is useful when you want to handle * only certain types of errors while letting others propagate. * - * **Previously Known As** - * - * This API replaces the following from Effect 3.x: - * - * - `Effect.catchSomeCause` + * **Example** (Recovering from selected causes) * - * @example * ```ts * import { Cause, Console, Effect } from "effect" * @@ -5195,24 +5275,29 @@ export declare const catchNoSuchElement: (self: Effect) => Eff * // Then: "Fallback response" * ``` * + * @see {@link catchCause} for recovering from every cause + * @see {@link catchCauseFilter} for selecting full causes with a `Filter` + * @see {@link catchIf} for predicate-based recovery from typed errors + * + * @category error handling * @since 4.0.0 - * @category Error Handling */ export declare const catchCauseIf: { /** * Recovers from specific failures based on a predicate. * + * **When to use** + * + * Use to recover an `Effect` from full causes selected by a predicate. + * + * **Details** + * * This function allows you to conditionally catch and recover from failures * that match a specific predicate. This is useful when you want to handle * only certain types of errors while letting others propagate. * - * **Previously Known As** - * - * This API replaces the following from Effect 3.x: + * **Example** (Recovering from selected causes) * - * - `Effect.catchSomeCause` - * - * @example * ```ts * import { Cause, Console, Effect } from "effect" * @@ -5234,24 +5319,29 @@ export declare const catchCauseIf: { * // Then: "Fallback response" * ``` * + * @see {@link catchCause} for recovering from every cause + * @see {@link catchCauseFilter} for selecting full causes with a `Filter` + * @see {@link catchIf} for predicate-based recovery from typed errors + * + * @category error handling * @since 4.0.0 - * @category Error Handling */ (predicate: Predicate.Predicate>, f: (cause: Cause.Cause) => Effect): (self: Effect) => Effect; /** * Recovers from specific failures based on a predicate. * + * **When to use** + * + * Use to recover an `Effect` from full causes selected by a predicate. + * + * **Details** + * * This function allows you to conditionally catch and recover from failures * that match a specific predicate. This is useful when you want to handle * only certain types of errors while letting others propagate. * - * **Previously Known As** + * **Example** (Recovering from selected causes) * - * This API replaces the following from Effect 3.x: - * - * - `Effect.catchSomeCause` - * - * @example * ```ts * import { Cause, Console, Effect } from "effect" * @@ -5273,47 +5363,100 @@ export declare const catchCauseIf: { * // Then: "Fallback response" * ``` * + * @see {@link catchCause} for recovering from every cause + * @see {@link catchCauseFilter} for selecting full causes with a `Filter` + * @see {@link catchIf} for predicate-based recovery from typed errors + * + * @category error handling * @since 4.0.0 - * @category Error Handling */ (self: Effect, predicate: Predicate.Predicate>, f: (cause: Cause.Cause) => Effect): Effect; }; /** * Recovers from specific failures based on a `Filter`. * + * **When to use** + * + * Use when you need to recover an `Effect` only from causes selected by a + * `Filter`, while giving the recovery both the selected value and the original + * `Cause`. + * + * **Details** + * + * The filter is applied to the full `Cause`. When it succeeds, the handler + * receives the selected value and the original cause. When it fails, the effect + * re-fails with the residual cause returned by the filter. + * + * @see {@link catchCauseIf} for predicate-based cause selection + * @see {@link catchFilter} for filtering typed error values instead of full causes + * @see {@link catchCause} for recovering from every cause without filtering + * + * @category error handling * @since 4.0.0 - * @category Error Handling */ export declare const catchCauseFilter: { /** * Recovers from specific failures based on a `Filter`. * + * **When to use** + * + * Use when you need to recover an `Effect` only from causes selected by a + * `Filter`, while giving the recovery both the selected value and the original + * `Cause`. + * + * **Details** + * + * The filter is applied to the full `Cause`. When it succeeds, the handler + * receives the selected value and the original cause. When it fails, the effect + * re-fails with the residual cause returned by the filter. + * + * @see {@link catchCauseIf} for predicate-based cause selection + * @see {@link catchFilter} for filtering typed error values instead of full causes + * @see {@link catchCause} for recovering from every cause without filtering + * + * @category error handling * @since 4.0.0 - * @category Error Handling */ >(filter: Filter.Filter, EB, X>, f: (failure: EB, cause: Cause.Cause) => Effect): (self: Effect) => Effect | E2, R | R2>; /** * Recovers from specific failures based on a `Filter`. * + * **When to use** + * + * Use when you need to recover an `Effect` only from causes selected by a + * `Filter`, while giving the recovery both the selected value and the original + * `Cause`. + * + * **Details** + * + * The filter is applied to the full `Cause`. When it succeeds, the handler + * receives the selected value and the original cause. When it fails, the effect + * re-fails with the residual cause returned by the filter. + * + * @see {@link catchCauseIf} for predicate-based cause selection + * @see {@link catchFilter} for filtering typed error values instead of full causes + * @see {@link catchCause} for recovering from every cause without filtering + * + * @category error handling * @since 4.0.0 - * @category Error Handling */ >(self: Effect, filter: Filter.Filter, EB, X>, f: (failure: EB, cause: Cause.Cause) => Effect): Effect | E2, R | R2>; }; /** - * The `mapError` function is used to transform or modify the error - * produced by an effect, without affecting its success value. + * Transforms the failure value of an effect without changing its success value. + * + * **When to use** + * + * Use to translate an `Effect`'s typed failures while leaving successful values + * unchanged. + * + * **Details** * - * This function is helpful when you want to enhance the error with additional - * information, change the error type, or apply custom error handling while - * keeping the original behavior of the effect's success values intact. It only - * operates on the error channel and leaves the success channel unchanged. + * Only the failure channel is transformed. The success channel and requirements + * are preserved. * - * @see {@link map} for a version that operates on the success channel. - * @see {@link mapBoth} for a version that operates on both channels. - * @see {@link orElseFail} if you want to replace the error with a new one. + * **Example** (Transforming the error channel) * - * @example * ```ts * import { Data, Effect } from "effect" * @@ -5331,24 +5474,28 @@ export declare const catchCauseFilter: { * ) * ``` * + * @see {@link map} for a version that operates on the success channel. + * @see {@link mapBoth} for a version that operates on both channels. + * + * @category error handling * @since 2.0.0 - * @category Error Handling */ export declare const mapError: { /** - * The `mapError` function is used to transform or modify the error - * produced by an effect, without affecting its success value. + * Transforms the failure value of an effect without changing its success value. * - * This function is helpful when you want to enhance the error with additional - * information, change the error type, or apply custom error handling while - * keeping the original behavior of the effect's success values intact. It only - * operates on the error channel and leaves the success channel unchanged. + * **When to use** * - * @see {@link map} for a version that operates on the success channel. - * @see {@link mapBoth} for a version that operates on both channels. - * @see {@link orElseFail} if you want to replace the error with a new one. + * Use to translate an `Effect`'s typed failures while leaving successful values + * unchanged. + * + * **Details** + * + * Only the failure channel is transformed. The success channel and requirements + * are preserved. + * + * **Example** (Transforming the error channel) * - * @example * ```ts * import { Data, Effect } from "effect" * @@ -5366,24 +5513,28 @@ export declare const mapError: { * ) * ``` * + * @see {@link map} for a version that operates on the success channel. + * @see {@link mapBoth} for a version that operates on both channels. + * + * @category error handling * @since 2.0.0 - * @category Error Handling */ (f: (e: E) => E2): (self: Effect) => Effect; /** - * The `mapError` function is used to transform or modify the error - * produced by an effect, without affecting its success value. + * Transforms the failure value of an effect without changing its success value. * - * This function is helpful when you want to enhance the error with additional - * information, change the error type, or apply custom error handling while - * keeping the original behavior of the effect's success values intact. It only - * operates on the error channel and leaves the success channel unchanged. + * **When to use** * - * @see {@link map} for a version that operates on the success channel. - * @see {@link mapBoth} for a version that operates on both channels. - * @see {@link orElseFail} if you want to replace the error with a new one. + * Use to translate an `Effect`'s typed failures while leaving successful values + * unchanged. + * + * **Details** + * + * Only the failure channel is transformed. The success channel and requirements + * are preserved. + * + * **Example** (Transforming the error channel) * - * @example * ```ts * import { Data, Effect } from "effect" * @@ -5401,14 +5552,22 @@ export declare const mapError: { * ) * ``` * + * @see {@link map} for a version that operates on the success channel. + * @see {@link mapBoth} for a version that operates on both channels. + * + * @category error handling * @since 2.0.0 - * @category Error Handling */ (self: Effect, f: (e: E) => E2): Effect; }; /** * Applies transformations to both the success and error channels of an effect. * + * **When to use** + * + * Use to transform both success and failure channels of an `Effect` without + * changing whether it succeeds or fails. + * * **Details** * * This function takes two map functions as arguments: one for the error channel @@ -5416,7 +5575,8 @@ export declare const mapError: { * the error and the success values without altering the overall success or * failure status of the effect. * - * @example + * **Example** (Transforming success and failure channels) + * * ```ts * import { Data, Effect } from "effect" * @@ -5437,13 +5597,18 @@ export declare const mapError: { * @see {@link map} for a version that operates on the success channel. * @see {@link mapError} for a version that operates on the error channel. * + * @category mapping * @since 2.0.0 - * @category Mapping */ export declare const mapBoth: { /** * Applies transformations to both the success and error channels of an effect. * + * **When to use** + * + * Use to transform both success and failure channels of an `Effect` without + * changing whether it succeeds or fails. + * * **Details** * * This function takes two map functions as arguments: one for the error channel @@ -5451,7 +5616,8 @@ export declare const mapBoth: { * the error and the success values without altering the overall success or * failure status of the effect. * - * @example + * **Example** (Transforming success and failure channels) + * * ```ts * import { Data, Effect } from "effect" * @@ -5472,8 +5638,8 @@ export declare const mapBoth: { * @see {@link map} for a version that operates on the success channel. * @see {@link mapError} for a version that operates on the error channel. * + * @category mapping * @since 2.0.0 - * @category Mapping */ (options: { readonly onFailure: (e: E) => E2; @@ -5482,6 +5648,11 @@ export declare const mapBoth: { /** * Applies transformations to both the success and error channels of an effect. * + * **When to use** + * + * Use to transform both success and failure channels of an `Effect` without + * changing whether it succeeds or fails. + * * **Details** * * This function takes two map functions as arguments: one for the error channel @@ -5489,7 +5660,8 @@ export declare const mapBoth: { * the error and the success values without altering the overall success or * failure status of the effect. * - * @example + * **Example** (Transforming success and failure channels) + * * ```ts * import { Data, Effect } from "effect" * @@ -5510,8 +5682,8 @@ export declare const mapBoth: { * @see {@link map} for a version that operates on the success channel. * @see {@link mapError} for a version that operates on the error channel. * + * @category mapping * @since 2.0.0 - * @category Mapping */ (self: Effect, options: { readonly onFailure: (e: E) => E2; @@ -5519,23 +5691,17 @@ export declare const mapBoth: { }): Effect; }; /** - * Converts an effect's failure into a fiber termination, removing the error from the effect's type. - * - * **When to Use* + * Converts typed failures from the error channel into defects, removing the + * error type from the returned effect. * - * Use `orDie` when failures should be treated as unrecoverable defects and no error handling is required. - * - * **Details** + * **When to use** * - * The `orDie` function is used when you encounter errors that you do not want to handle or recover from. - * It removes the error type from the effect and ensures that any failure will terminate the fiber. - * This is useful for propagating failures as defects, signaling that they should not be handled within the effect. + * Use when you need to turn an `Effect` typed failure that represents an + * unrecoverable bug or invalid state into a defect. * - * @see {@link orDieWith} if you need to customize the error. + * **Example** (Converting typed failures into defects) * - * @example * ```ts - * // Title: Propagating an Error as a Defect * import { Data, Effect } from "effect" * * class DivideByZeroError extends Data.TaggedError("DivideByZeroError")<{}> {} @@ -5555,20 +5721,22 @@ export declare const mapBoth: { * // ...stack trace... * ``` * + * @category converting failures to defects * @since 2.0.0 - * @category Converting Failures to Defects */ export declare const orDie: (self: Effect) => Effect; /** - * The `tapError` function executes an effectful operation to inspect the - * failure of an effect without modifying it. + * Runs an effectful operation when the source effect fails, while preserving + * the original failure when the operation succeeds. * - * This function is useful when you want to perform some side effect (like - * logging or tracking) on the failure of an effect, but without changing the - * result of the effect itself. The error remains in the effect's error channel, - * while the operation you provide can inspect or act on it. + * **Details** + * + * Use this for logging, metrics, or other failure-side observations. If the + * operation passed to `tapError` fails, that error is also represented in the + * returned effect's error channel. + * + * **Example** (Running effects on failure) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -5586,20 +5754,22 @@ export declare const orDie: (self: Effect) => Effect(f: (e: NoInfer) => Effect): (self: Effect) => Effect; /** - * The `tapError` function executes an effectful operation to inspect the - * failure of an effect without modifying it. + * Runs an effectful operation when the source effect fails, while preserving + * the original failure when the operation succeeds. + * + * **Details** * - * This function is useful when you want to perform some side effect (like - * logging or tracking) on the failure of an effect, but without changing the - * result of the effect itself. The error remains in the effect's error channel, - * while the operation you provide can inspect or act on it. + * Use this for logging, metrics, or other failure-side observations. If the + * operation passed to `tapError` fails, that error is also represented in the + * returned effect's error channel. + * + * **Example** (Running effects on failure) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -5648,18 +5820,22 @@ export declare const tapError: { * // expected error: NetworkError * ``` * + * @category sequencing * @since 2.0.0 - * @category Sequencing */ (self: Effect, f: (e: E) => Effect): Effect; }; /** * Runs an effectful handler when a failure's `_tag` matches. * - * Use this with tagged-union errors to perform side effects for a tag (or tag - * list) while preserving the original failure. + * **Details** + * + * Use this with tagged-union errors to perform side effects for one tag or a + * list of tags. When the handler succeeds, the original failure is preserved; + * if the handler fails, its error is also included in the returned effect. + * + * **Example** (Running effects for tagged failures) * - * @example * ```ts * import { Console, Data, Effect } from "effect" * @@ -5683,17 +5859,21 @@ export declare const tapError: { * // expected error: 504 * ``` * + * @category sequencing * @since 2.0.0 - * @category Sequencing */ export declare const tapErrorTag: { /** * Runs an effectful handler when a failure's `_tag` matches. * - * Use this with tagged-union errors to perform side effects for a tag (or tag - * list) while preserving the original failure. + * **Details** + * + * Use this with tagged-union errors to perform side effects for one tag or a + * list of tags. When the handler succeeds, the original failure is preserved; + * if the handler fails, its error is also included in the returned effect. + * + * **Example** (Running effects for tagged failures) * - * @example * ```ts * import { Console, Data, Effect } from "effect" * @@ -5717,17 +5897,21 @@ export declare const tapErrorTag: { * // expected error: 504 * ``` * + * @category sequencing * @since 2.0.0 - * @category Sequencing */ | Arr.NonEmptyReadonlyArray>, E, A1, E1, R1>(k: K, f: (e: ExtractTag, K extends Arr.NonEmptyReadonlyArray ? K[number] : K>) => Effect): (self: Effect) => Effect; /** * Runs an effectful handler when a failure's `_tag` matches. * - * Use this with tagged-union errors to perform side effects for a tag (or tag - * list) while preserving the original failure. + * **Details** + * + * Use this with tagged-union errors to perform side effects for one tag or a + * list of tags. When the handler succeeds, the original failure is preserved; + * if the handler fails, its error is also included in the returned effect. + * + * **Example** (Running effects for tagged failures) * - * @example * ```ts * import { Console, Data, Effect } from "effect" * @@ -5751,27 +5935,28 @@ export declare const tapErrorTag: { * // expected error: 504 * ``` * + * @category sequencing * @since 2.0.0 - * @category Sequencing */ | Arr.NonEmptyReadonlyArray>, R1, E1, A1>(self: Effect, k: K, f: (e: ExtractTag ? K[number] : K>) => Effect): Effect; }; /** - * The `tapCause` function allows you to inspect the complete cause - * of an error, including failures and defects. + * Runs an effectful operation with the full `Cause` when the source effect + * fails. * - * This function is helpful when you need to log, monitor, or handle specific - * error causes in your effects. It gives you access to the full error cause, - * whether it's a failure, defect, or other exceptional conditions, without - * altering the error or the overall result of the effect. + * **When to use** * - * **Previously Known As** + * Use when failure observation needs typed failures, defects, and interruptions + * rather than only the typed error value. + * + * **Details** * - * This API replaces the following from Effect 3.x: + * Use this to log or inspect typed failures, defects, and interruptions. When + * the operation succeeds, the original cause is preserved. If the operation + * fails, its error is also represented in the returned effect. * - * - `Effect.tapErrorCause` + * **Example** (Observing full failure causes) * - * @example * ```ts * import { Cause, Console, Effect } from "effect" * @@ -5787,26 +5972,27 @@ export declare const tapErrorTag: { * // Then: { _id: 'Exit', _tag: 'Failure', cause: ... } * ``` * - * @since 2.0.0 - * @category Sequencing + * @category sequencing + * @since 4.0.0 */ export declare const tapCause: { /** - * The `tapCause` function allows you to inspect the complete cause - * of an error, including failures and defects. + * Runs an effectful operation with the full `Cause` when the source effect + * fails. * - * This function is helpful when you need to log, monitor, or handle specific - * error causes in your effects. It gives you access to the full error cause, - * whether it's a failure, defect, or other exceptional conditions, without - * altering the error or the overall result of the effect. + * **When to use** * - * **Previously Known As** + * Use when failure observation needs typed failures, defects, and interruptions + * rather than only the typed error value. + * + * **Details** * - * This API replaces the following from Effect 3.x: + * Use this to log or inspect typed failures, defects, and interruptions. When + * the operation succeeds, the original cause is preserved. If the operation + * fails, its error is also represented in the returned effect. * - * - `Effect.tapErrorCause` + * **Example** (Observing full failure causes) * - * @example * ```ts * import { Cause, Console, Effect } from "effect" * @@ -5822,26 +6008,27 @@ export declare const tapCause: { * // Then: { _id: 'Exit', _tag: 'Failure', cause: ... } * ``` * - * @since 2.0.0 - * @category Sequencing + * @category sequencing + * @since 4.0.0 */ (f: (cause: Cause.Cause>) => Effect): (self: Effect) => Effect; /** - * The `tapCause` function allows you to inspect the complete cause - * of an error, including failures and defects. + * Runs an effectful operation with the full `Cause` when the source effect + * fails. * - * This function is helpful when you need to log, monitor, or handle specific - * error causes in your effects. It gives you access to the full error cause, - * whether it's a failure, defect, or other exceptional conditions, without - * altering the error or the overall result of the effect. + * **When to use** * - * **Previously Known As** + * Use when failure observation needs typed failures, defects, and interruptions + * rather than only the typed error value. + * + * **Details** * - * This API replaces the following from Effect 3.x: + * Use this to log or inspect typed failures, defects, and interruptions. When + * the operation succeeds, the original cause is preserved. If the operation + * fails, its error is also represented in the returned effect. * - * - `Effect.tapErrorCause` + * **Example** (Observing full failure causes) * - * @example * ```ts * import { Cause, Console, Effect } from "effect" * @@ -5857,19 +6044,22 @@ export declare const tapCause: { * // Then: { _id: 'Exit', _tag: 'Failure', cause: ... } * ``` * - * @since 2.0.0 - * @category Sequencing + * @category sequencing + * @since 4.0.0 */ (self: Effect, f: (cause: Cause.Cause) => Effect): Effect; }; /** - * Conditionally executes a side effect based on the cause of a failed effect. + * Executes a side effect conditionally when a failed effect's cause matches a predicate. + * + * **Details** * * This function allows you to tap into the cause of an effect's failure only when * the cause matches a specific predicate. This is useful for conditional logging, * monitoring, or other side effects based on the type of failure. * - * @example + * **Example** (Observing selected failure causes) + * * ```ts * import { Cause, Console, Effect } from "effect" * @@ -5887,18 +6077,21 @@ export declare const tapCause: { * // Then: { _id: 'Exit', _tag: 'Failure', cause: ... } * ``` * + * @category sequencing * @since 4.0.0 - * @category Sequencing */ export declare const tapCauseIf: { /** - * Conditionally executes a side effect based on the cause of a failed effect. + * Executes a side effect conditionally when a failed effect's cause matches a predicate. + * + * **Details** * * This function allows you to tap into the cause of an effect's failure only when * the cause matches a specific predicate. This is useful for conditional logging, * monitoring, or other side effects based on the type of failure. * - * @example + * **Example** (Observing selected failure causes) + * * ```ts * import { Cause, Console, Effect } from "effect" * @@ -5916,18 +6109,21 @@ export declare const tapCauseIf: { * // Then: { _id: 'Exit', _tag: 'Failure', cause: ... } * ``` * + * @category sequencing * @since 4.0.0 - * @category Sequencing */ (predicate: Predicate.Predicate>, f: (cause: Cause.Cause) => Effect): (self: Effect) => Effect; /** - * Conditionally executes a side effect based on the cause of a failed effect. + * Executes a side effect conditionally when a failed effect's cause matches a predicate. + * + * **Details** * * This function allows you to tap into the cause of an effect's failure only when * the cause matches a specific predicate. This is useful for conditional logging, * monitoring, or other side effects based on the type of failure. * - * @example + * **Example** (Observing selected failure causes) + * * ```ts * import { Cause, Console, Effect } from "effect" * @@ -5945,50 +6141,93 @@ export declare const tapCauseIf: { * // Then: { _id: 'Exit', _tag: 'Failure', cause: ... } * ``` * + * @category sequencing * @since 4.0.0 - * @category Sequencing */ (self: Effect, predicate: Predicate.Predicate>, f: (cause: Cause.Cause) => Effect): Effect; }; /** - * Conditionally executes a side effect based on the cause of a failed effect. + * Executes a side effect conditionally when a failed effect's cause passes a filter. + * + * **When to use** + * + * Use when you need to observe only failure causes selected by a `Filter`, + * while giving the side effect both the selected value and the original + * `Cause`. + * + * **Details** + * + * A successful filter result runs the side effect with the selected value and + * original cause. A failed filter result skips the side effect and preserves the + * original cause. * + * @see {@link tapCauseIf} for selecting causes with a boolean predicate + * @see {@link tapCause} for observing every failure cause + * @see {@link catchCauseFilter} for recovering from selected causes instead of only observing them + * + * @category sequencing * @since 4.0.0 - * @category Sequencing */ export declare const tapCauseFilter: { /** - * Conditionally executes a side effect based on the cause of a failed effect. + * Executes a side effect conditionally when a failed effect's cause passes a filter. + * + * **When to use** + * + * Use when you need to observe only failure causes selected by a `Filter`, + * while giving the side effect both the selected value and the original + * `Cause`. + * + * **Details** + * + * A successful filter result runs the side effect with the selected value and + * original cause. A failed filter result skips the side effect and preserves the + * original cause. * + * @see {@link tapCauseIf} for selecting causes with a boolean predicate + * @see {@link tapCause} for observing every failure cause + * @see {@link catchCauseFilter} for recovering from selected causes instead of only observing them + * + * @category sequencing * @since 4.0.0 - * @category Sequencing */ >(filter: Filter.Filter, EB, X>, f: (a: EB, cause: Cause.Cause) => Effect): (self: Effect) => Effect; /** - * Conditionally executes a side effect based on the cause of a failed effect. + * Executes a side effect conditionally when a failed effect's cause passes a filter. + * + * **When to use** * + * Use when you need to observe only failure causes selected by a `Filter`, + * while giving the side effect both the selected value and the original + * `Cause`. + * + * **Details** + * + * A successful filter result runs the side effect with the selected value and + * original cause. A failed filter result skips the side effect and preserves the + * original cause. + * + * @see {@link tapCauseIf} for selecting causes with a boolean predicate + * @see {@link tapCause} for observing every failure cause + * @see {@link catchCauseFilter} for recovering from selected causes instead of only observing them + * + * @category sequencing * @since 4.0.0 - * @category Sequencing */ >(self: Effect, filter: Filter.Filter, EB, X>, f: (a: EB, cause: Cause.Cause) => Effect): Effect; }; /** - * Inspect severe errors or defects (non-recoverable failures) in an effect. + * Runs an effectful operation when the source effect dies with a defect. * * **Details** * - * This function is specifically designed to handle and inspect defects, which - * are critical failures in your program, such as unexpected runtime exceptions - * or system-level errors. Unlike normal recoverable errors, defects typically - * indicate serious issues that cannot be addressed through standard error - * handling. + * Use this for diagnostics such as logging unexpected thrown exceptions or + * values passed to `die`. Recoverable failures are not handled. When the + * operation succeeds, the original defect is preserved; if the operation fails, + * its error is also represented in the returned effect. * - * When a defect occurs in an effect, the function you provide to this function - * will be executed, allowing you to log, monitor, or handle the defect in some - * way. Importantly, this does not alter the main result of the effect. If no - * defect occurs, the effect behaves as if this function was not used. + * **Example** (Observing defects) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -6021,27 +6260,22 @@ export declare const tapCauseFilter: { * // ... stack trace ... * ``` * + * @category sequencing * @since 2.0.0 - * @category Sequencing */ export declare const tapDefect: { /** - * Inspect severe errors or defects (non-recoverable failures) in an effect. + * Runs an effectful operation when the source effect dies with a defect. * * **Details** * - * This function is specifically designed to handle and inspect defects, which - * are critical failures in your program, such as unexpected runtime exceptions - * or system-level errors. Unlike normal recoverable errors, defects typically - * indicate serious issues that cannot be addressed through standard error - * handling. + * Use this for diagnostics such as logging unexpected thrown exceptions or + * values passed to `die`. Recoverable failures are not handled. When the + * operation succeeds, the original defect is preserved; if the operation fails, + * its error is also represented in the returned effect. * - * When a defect occurs in an effect, the function you provide to this function - * will be executed, allowing you to log, monitor, or handle the defect in some - * way. Importantly, this does not alter the main result of the effect. If no - * defect occurs, the effect behaves as if this function was not used. + * **Example** (Observing defects) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -6074,27 +6308,22 @@ export declare const tapDefect: { * // ... stack trace ... * ``` * + * @category sequencing * @since 2.0.0 - * @category Sequencing */ (f: (defect: unknown) => Effect): (self: Effect) => Effect; /** - * Inspect severe errors or defects (non-recoverable failures) in an effect. + * Runs an effectful operation when the source effect dies with a defect. * * **Details** * - * This function is specifically designed to handle and inspect defects, which - * are critical failures in your program, such as unexpected runtime exceptions - * or system-level errors. Unlike normal recoverable errors, defects typically - * indicate serious issues that cannot be addressed through standard error - * handling. + * Use this for diagnostics such as logging unexpected thrown exceptions or + * values passed to `die`. Recoverable failures are not handled. When the + * operation succeeds, the original defect is preserved; if the operation fails, + * its error is also represented in the returned effect. * - * When a defect occurs in an effect, the function you provide to this function - * will be executed, allowing you to log, monitor, or handle the defect in some - * way. Importantly, this does not alter the main result of the effect. If no - * defect occurs, the effect behaves as if this function was not used. + * **Example** (Observing defects) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -6127,17 +6356,20 @@ export declare const tapDefect: { * // ... stack trace ... * ``` * + * @category sequencing * @since 2.0.0 - * @category Sequencing */ (self: Effect, f: (defect: unknown) => Effect): Effect; }; /** * Retries an effect until it succeeds, discarding failures. * + * **Details** + * * Yields between attempts so other fibers can run. * - * @example + * **Example** (Retrying until success) + * * ```ts * import { Console, Effect } from "effect" * @@ -6162,36 +6394,21 @@ export declare const tapDefect: { * // Ready * ``` * + * @category repetition * @since 2.0.0 - * @category Repetition / Recursion */ export declare const eventually: (self: Effect) => Effect; /** - * @since 2.0.0 - * @category Error Handling - * @example - * ```ts - * import type { Effect } from "effect" + * Type helpers for retrying effects. * - * // Retry namespace contains types for retry operations - * declare const effect: Effect.Effect - * declare const options: Effect.Retry.Options - * // Use Effect.retry with these types for retrying failed effects - * ``` + * @since 2.0.0 */ export declare namespace Retry { /** - * @since 2.0.0 - * @category Error Handling - * @example - * ```ts - * import type { Effect } from "effect" + * Computes the result type of `Effect.retry` from the original effect and retry options. * - * // Return type for retry operations with specific options - * declare const options: Effect.Retry.Options - * type RetryResult = Effect.Retry.Return - * // Result: Effect with retried operation result types - * ``` + * @category error handling + * @since 2.0.0 */ type Return> = Effect; @@ -6215,20 +6432,10 @@ export declare namespace Retry { until: (...args: Array) => Effect; } ? R : never)> extends infer Z ? Z : never; /** - * @since 2.0.0 - * @category Error Handling - * @example - * ```ts - * import { Schedule } from "effect" - * import type { Effect } from "effect" + * Options that control whether and how a failing effect is retried. * - * // Options for configuring retry behavior - * const retryOptions: Effect.Retry.Options = { - * times: 3, - * schedule: Schedule.exponential("100 millis"), - * while: (error) => error.message !== "STOP" - * } - * ``` + * @category error handling + * @since 2.0.0 */ interface Options { while?: ((error: E) => boolean | Effect) | undefined; @@ -6238,27 +6445,30 @@ export declare namespace Retry { } } /** - * Retries a failing effect based on a defined retry policy. + * Retries typed failures from an effect according to a retry policy. + * + * **When to use** + * + * Use when you need to rerun an effect after transient typed failures, such as + * network issues or temporary resource unavailability. * * **Details** * - * The `Effect.retry` function takes an effect and a {@link Schedule} policy, - * and will automatically retry the effect if it fails, following the rules of - * the policy. + * The policy can be a `Schedule`, a schedule builder, or a `Retry.Options` + * object using `schedule`, `times`, `while`, or `until`. If a retry eventually + * succeeds, the returned effect succeeds with that value. If the policy stops + * while the effect is still failing, the last failure is propagated. * - * If the effect ultimately succeeds, the result will be returned. + * **Gotchas** * - * If the maximum retries are exhausted and the effect still fails, the failure - * is propagated. + * The source effect is always evaluated once before any retry policy is + * applied. For example, `Schedule.recurs(3)` allows up to three retries after + * the initial attempt. * - * **When to Use** + * Defects and interruptions are not retried. * - * This can be useful when dealing with intermittent failures, such as network - * issues or temporary resource unavailability. By defining a retry policy, you - * can control the number of retries, the delay between them, and when to stop - * retrying. + * **Example** (Retrying with a schedule) * - * @example * ```ts * import { Data, Effect, Schedule } from "effect" * @@ -6283,33 +6493,35 @@ export declare namespace Retry { * * @see {@link retryOrElse} for a version that allows you to run a fallback. * @see {@link repeat} if your retry condition is based on successful outcomes rather than errors. - * + * @category error handling * @since 2.0.0 - * @category Error Handling */ export declare const retry: { /** - * Retries a failing effect based on a defined retry policy. + * Retries typed failures from an effect according to a retry policy. + * + * **When to use** + * + * Use when you need to rerun an effect after transient typed failures, such as + * network issues or temporary resource unavailability. * * **Details** * - * The `Effect.retry` function takes an effect and a {@link Schedule} policy, - * and will automatically retry the effect if it fails, following the rules of - * the policy. + * The policy can be a `Schedule`, a schedule builder, or a `Retry.Options` + * object using `schedule`, `times`, `while`, or `until`. If a retry eventually + * succeeds, the returned effect succeeds with that value. If the policy stops + * while the effect is still failing, the last failure is propagated. * - * If the effect ultimately succeeds, the result will be returned. + * **Gotchas** * - * If the maximum retries are exhausted and the effect still fails, the failure - * is propagated. + * The source effect is always evaluated once before any retry policy is + * applied. For example, `Schedule.recurs(3)` allows up to three retries after + * the initial attempt. * - * **When to Use** + * Defects and interruptions are not retried. * - * This can be useful when dealing with intermittent failures, such as network - * issues or temporary resource unavailability. By defining a retry policy, you - * can control the number of retries, the delay between them, and when to stop - * retrying. + * **Example** (Retrying with a schedule) * - * @example * ```ts * import { Data, Effect, Schedule } from "effect" * @@ -6334,33 +6546,35 @@ export declare const retry: { * * @see {@link retryOrElse} for a version that allows you to run a fallback. * @see {@link repeat} if your retry condition is based on successful outcomes rather than errors. - * + * @category error handling * @since 2.0.0 - * @category Error Handling */ >(options: O): (self: Effect) => Retry.Return; /** - * Retries a failing effect based on a defined retry policy. + * Retries typed failures from an effect according to a retry policy. + * + * **When to use** + * + * Use when you need to rerun an effect after transient typed failures, such as + * network issues or temporary resource unavailability. * * **Details** * - * The `Effect.retry` function takes an effect and a {@link Schedule} policy, - * and will automatically retry the effect if it fails, following the rules of - * the policy. + * The policy can be a `Schedule`, a schedule builder, or a `Retry.Options` + * object using `schedule`, `times`, `while`, or `until`. If a retry eventually + * succeeds, the returned effect succeeds with that value. If the policy stops + * while the effect is still failing, the last failure is propagated. * - * If the effect ultimately succeeds, the result will be returned. + * **Gotchas** * - * If the maximum retries are exhausted and the effect still fails, the failure - * is propagated. + * The source effect is always evaluated once before any retry policy is + * applied. For example, `Schedule.recurs(3)` allows up to three retries after + * the initial attempt. * - * **When to Use** + * Defects and interruptions are not retried. * - * This can be useful when dealing with intermittent failures, such as network - * issues or temporary resource unavailability. By defining a retry policy, you - * can control the number of retries, the delay between them, and when to stop - * retrying. + * **Example** (Retrying with a schedule) * - * @example * ```ts * import { Data, Effect, Schedule } from "effect" * @@ -6385,33 +6599,35 @@ export declare const retry: { * * @see {@link retryOrElse} for a version that allows you to run a fallback. * @see {@link repeat} if your retry condition is based on successful outcomes rather than errors. - * + * @category error handling * @since 2.0.0 - * @category Error Handling */ (policy: Schedule, Error, Env>): (self: Effect) => Effect; /** - * Retries a failing effect based on a defined retry policy. + * Retries typed failures from an effect according to a retry policy. + * + * **When to use** + * + * Use when you need to rerun an effect after transient typed failures, such as + * network issues or temporary resource unavailability. * * **Details** * - * The `Effect.retry` function takes an effect and a {@link Schedule} policy, - * and will automatically retry the effect if it fails, following the rules of - * the policy. + * The policy can be a `Schedule`, a schedule builder, or a `Retry.Options` + * object using `schedule`, `times`, `while`, or `until`. If a retry eventually + * succeeds, the returned effect succeeds with that value. If the policy stops + * while the effect is still failing, the last failure is propagated. * - * If the effect ultimately succeeds, the result will be returned. + * **Gotchas** * - * If the maximum retries are exhausted and the effect still fails, the failure - * is propagated. + * The source effect is always evaluated once before any retry policy is + * applied. For example, `Schedule.recurs(3)` allows up to three retries after + * the initial attempt. * - * **When to Use** + * Defects and interruptions are not retried. * - * This can be useful when dealing with intermittent failures, such as network - * issues or temporary resource unavailability. By defining a retry policy, you - * can control the number of retries, the delay between them, and when to stop - * retrying. + * **Example** (Retrying with a schedule) * - * @example * ```ts * import { Data, Effect, Schedule } from "effect" * @@ -6436,33 +6652,35 @@ export declare const retry: { * * @see {@link retryOrElse} for a version that allows you to run a fallback. * @see {@link repeat} if your retry condition is based on successful outcomes rather than errors. - * + * @category error handling * @since 2.0.0 - * @category Error Handling */ (builder: ($: (_: Schedule, SE, R>) => Schedule) => Schedule, Error, Env>): (self: Effect) => Effect; /** - * Retries a failing effect based on a defined retry policy. + * Retries typed failures from an effect according to a retry policy. + * + * **When to use** + * + * Use when you need to rerun an effect after transient typed failures, such as + * network issues or temporary resource unavailability. * * **Details** * - * The `Effect.retry` function takes an effect and a {@link Schedule} policy, - * and will automatically retry the effect if it fails, following the rules of - * the policy. + * The policy can be a `Schedule`, a schedule builder, or a `Retry.Options` + * object using `schedule`, `times`, `while`, or `until`. If a retry eventually + * succeeds, the returned effect succeeds with that value. If the policy stops + * while the effect is still failing, the last failure is propagated. * - * If the effect ultimately succeeds, the result will be returned. + * **Gotchas** * - * If the maximum retries are exhausted and the effect still fails, the failure - * is propagated. + * The source effect is always evaluated once before any retry policy is + * applied. For example, `Schedule.recurs(3)` allows up to three retries after + * the initial attempt. * - * **When to Use** + * Defects and interruptions are not retried. * - * This can be useful when dealing with intermittent failures, such as network - * issues or temporary resource unavailability. By defining a retry policy, you - * can control the number of retries, the delay between them, and when to stop - * retrying. + * **Example** (Retrying with a schedule) * - * @example * ```ts * import { Data, Effect, Schedule } from "effect" * @@ -6487,33 +6705,35 @@ export declare const retry: { * * @see {@link retryOrElse} for a version that allows you to run a fallback. * @see {@link repeat} if your retry condition is based on successful outcomes rather than errors. - * + * @category error handling * @since 2.0.0 - * @category Error Handling */ >(self: Effect, options: O): Retry.Return; /** - * Retries a failing effect based on a defined retry policy. + * Retries typed failures from an effect according to a retry policy. + * + * **When to use** + * + * Use when you need to rerun an effect after transient typed failures, such as + * network issues or temporary resource unavailability. * * **Details** * - * The `Effect.retry` function takes an effect and a {@link Schedule} policy, - * and will automatically retry the effect if it fails, following the rules of - * the policy. + * The policy can be a `Schedule`, a schedule builder, or a `Retry.Options` + * object using `schedule`, `times`, `while`, or `until`. If a retry eventually + * succeeds, the returned effect succeeds with that value. If the policy stops + * while the effect is still failing, the last failure is propagated. * - * If the effect ultimately succeeds, the result will be returned. + * **Gotchas** * - * If the maximum retries are exhausted and the effect still fails, the failure - * is propagated. + * The source effect is always evaluated once before any retry policy is + * applied. For example, `Schedule.recurs(3)` allows up to three retries after + * the initial attempt. * - * **When to Use** + * Defects and interruptions are not retried. * - * This can be useful when dealing with intermittent failures, such as network - * issues or temporary resource unavailability. By defining a retry policy, you - * can control the number of retries, the delay between them, and when to stop - * retrying. + * **Example** (Retrying with a schedule) * - * @example * ```ts * import { Data, Effect, Schedule } from "effect" * @@ -6538,33 +6758,35 @@ export declare const retry: { * * @see {@link retryOrElse} for a version that allows you to run a fallback. * @see {@link repeat} if your retry condition is based on successful outcomes rather than errors. - * + * @category error handling * @since 2.0.0 - * @category Error Handling */ (self: Effect, policy: Schedule, Error, Env>): Effect; /** - * Retries a failing effect based on a defined retry policy. + * Retries typed failures from an effect according to a retry policy. + * + * **When to use** + * + * Use when you need to rerun an effect after transient typed failures, such as + * network issues or temporary resource unavailability. * * **Details** * - * The `Effect.retry` function takes an effect and a {@link Schedule} policy, - * and will automatically retry the effect if it fails, following the rules of - * the policy. + * The policy can be a `Schedule`, a schedule builder, or a `Retry.Options` + * object using `schedule`, `times`, `while`, or `until`. If a retry eventually + * succeeds, the returned effect succeeds with that value. If the policy stops + * while the effect is still failing, the last failure is propagated. * - * If the effect ultimately succeeds, the result will be returned. + * **Gotchas** * - * If the maximum retries are exhausted and the effect still fails, the failure - * is propagated. + * The source effect is always evaluated once before any retry policy is + * applied. For example, `Schedule.recurs(3)` allows up to three retries after + * the initial attempt. * - * **When to Use** + * Defects and interruptions are not retried. * - * This can be useful when dealing with intermittent failures, such as network - * issues or temporary resource unavailability. By defining a retry policy, you - * can control the number of retries, the delay between them, and when to stop - * retrying. + * **Example** (Retrying with a schedule) * - * @example * ```ts * import { Data, Effect, Schedule } from "effect" * @@ -6589,15 +6811,19 @@ export declare const retry: { * * @see {@link retryOrElse} for a version that allows you to run a fallback. * @see {@link repeat} if your retry condition is based on successful outcomes rather than errors. - * + * @category error handling * @since 2.0.0 - * @category Error Handling */ (self: Effect, builder: ($: (_: Schedule, SE, R>) => Schedule) => Schedule, Error, Env>): Effect; }; /** * Retries a failing effect and runs a fallback effect if retries are exhausted. * + * **When to use** + * + * Use when you want to handle failures gracefully by specifying an alternative + * action after repeated failures. + * * **Details** * * The `Effect.retryOrElse` function attempts to retry a failing effect multiple @@ -6606,14 +6832,8 @@ export declare const retry: { * If the retries are exhausted and the effect still fails, it runs a fallback * effect instead. * - * **When to Use** + * **Example** (Falling back after retries are exhausted) * - * This function is useful when you want to handle failures gracefully by - * specifying an alternative action after repeated failures. - * - * @see {@link retry} for a version that does not run a fallback effect. - * - * @example * ```ts * import { Console, Data, Effect, Schedule } from "effect" * @@ -6648,13 +6868,19 @@ export declare const retry: { * // Network data * ``` * + * @see {@link retry} for a version that does not run a fallback effect. + * @category error handling * @since 2.0.0 - * @category Error Handling */ export declare const retryOrElse: { /** * Retries a failing effect and runs a fallback effect if retries are exhausted. * + * **When to use** + * + * Use when you want to handle failures gracefully by specifying an alternative + * action after repeated failures. + * * **Details** * * The `Effect.retryOrElse` function attempts to retry a failing effect multiple @@ -6663,14 +6889,8 @@ export declare const retryOrElse: { * If the retries are exhausted and the effect still fails, it runs a fallback * effect instead. * - * **When to Use** - * - * This function is useful when you want to handle failures gracefully by - * specifying an alternative action after repeated failures. - * - * @see {@link retry} for a version that does not run a fallback effect. + * **Example** (Falling back after retries are exhausted) * - * @example * ```ts * import { Console, Data, Effect, Schedule } from "effect" * @@ -6705,13 +6925,19 @@ export declare const retryOrElse: { * // Network data * ``` * + * @see {@link retry} for a version that does not run a fallback effect. + * @category error handling * @since 2.0.0 - * @category Error Handling */ (policy: Schedule, E1, R1>, orElse: (e: NoInfer, out: A1) => Effect): (self: Effect) => Effect; /** * Retries a failing effect and runs a fallback effect if retries are exhausted. * + * **When to use** + * + * Use when you want to handle failures gracefully by specifying an alternative + * action after repeated failures. + * * **Details** * * The `Effect.retryOrElse` function attempts to retry a failing effect multiple @@ -6720,14 +6946,8 @@ export declare const retryOrElse: { * If the retries are exhausted and the effect still fails, it runs a fallback * effect instead. * - * **When to Use** + * **Example** (Falling back after retries are exhausted) * - * This function is useful when you want to handle failures gracefully by - * specifying an alternative action after repeated failures. - * - * @see {@link retry} for a version that does not run a fallback effect. - * - * @example * ```ts * import { Console, Data, Effect, Schedule } from "effect" * @@ -6762,25 +6982,23 @@ export declare const retryOrElse: { * // Network data * ``` * + * @see {@link retry} for a version that does not run a fallback effect. + * @category error handling * @since 2.0.0 - * @category Error Handling */ (self: Effect, policy: Schedule, E1, R1>, orElse: (e: NoInfer, out: A1) => Effect): Effect; }; /** - * The `sandbox` function transforms an effect by exposing the full cause - * of any error, defect, or fiber interruption that might occur during its - * execution. It changes the error channel of the effect to include detailed - * information about the cause, which is wrapped in a `Cause` type. - * - * This function is useful when you need access to the complete underlying cause - * of failures, defects, or interruptions, enabling more detailed error - * handling. Once you apply `sandbox`, you can use operators like - * {@link catchAll} and {@link catchTags} to handle specific error conditions. - * If necessary, you can revert the sandboxing operation with {@link unsandbox} - * to return to the original error handling behavior. - * - * @example + * Exposes an effect's full failure cause in the error channel as `Cause`. + * + * **Details** + * + * Use `sandbox` when downstream error handling needs to distinguish typed + * failures, defects, and interruptions. Use `unsandbox` to restore the original + * typed error channel after cause-level handling. + * + * **Example** (Exposing failures as causes) + * * ```ts * import { Cause, Effect } from "effect" * @@ -6796,27 +7014,26 @@ export declare const retryOrElse: { * // Output: "Caught cause: Something went wrong" * ``` * - * @see {@link unsandbox} to restore the original error handling. - * + * @category error handling * @since 2.0.0 - * @category Error Handling */ export declare const sandbox: (self: Effect) => Effect, R>; /** * Discards both the success and failure values of an effect. * - * **When to Use** + * **When to use** * - * `ignore` allows you to run an effect without caring about its result, whether - * it succeeds or fails. This is useful when you only care about the side - * effects of the effect and do not need to handle or process its outcome. + * Use when an effect should run for its side effects while both success and + * failure values are discarded. + * + * **Details** * * Use the `log` option to emit the full {@link Cause} when the effect fails, * and `message` to prepend a custom log message. * - * @example + * **Example** (Discarding success and failure values) + * * ```ts - * // Title: Using Effect.ignore to Discard Values * import { Effect } from "effect" * * // ┌─── Effect @@ -6828,9 +7045,9 @@ export declare const sandbox: (self: Effect) => Effect(self: Effect) => Effect | { readonly log?: boolean | Severity | undefined; @@ -6861,10 +7072,18 @@ export declare const ignore: | { /** * Ignores the effect's failure cause, including defects and interruptions. * + * **When to use** + * + * Use when a best-effort effect should never fail, even from defects or + * interruption, and optional cause logging is enough. + * + * **Details** + * * Use the `log` option to emit the full {@link Cause} when the effect fails, * and `message` to prepend a custom log message. * - * @example + * **Example** (Ignoring failures and logging causes) + * * ```ts * import { Effect } from "effect" * @@ -6874,8 +7093,8 @@ export declare const ignore: | { * const programLog = task.pipe(Effect.ignoreCause({ log: true, message: "Ignoring failure cause" })) * ``` * + * @category error handling * @since 4.0.0 - * @category Error Handling */ export declare const ignoreCause: | { readonly log?: boolean | Severity | undefined; @@ -6888,16 +7107,19 @@ export declare const ignoreCause: | { readonly message?: string | undefined; } | undefined) => [Arg] extends [Effect] ? Effect : (self: Effect) => Effect; /** - * Apply an `ExecutionPlan` to an effect, retrying with step-provided resources + * Applies an `ExecutionPlan` to an effect, retrying with step-provided resources * until it succeeds or the plan is exhausted. * + * **Details** + * * Each attempt updates `ExecutionPlan.CurrentMetadata` (attempt and step index), * and retry timing is derived per step (the first attempt uses the remaining * attempts schedule; later retries apply the step schedule at least once). * - * @example + * **Example** (Retrying with an execution plan) + * * ```ts - * import { Effect, ExecutionPlan, Layer, Context } from "effect" + * import { Context, Effect, ExecutionPlan, Layer } from "effect" * * const Endpoint = Context.Service<{ url: string }>("Endpoint") * @@ -6917,21 +7139,24 @@ export declare const ignoreCause: | { * const program = Effect.withExecutionPlan(fetchUrl, plan) * ``` * + * @category fallback * @since 3.16.0 - * @category Fallback */ export declare const withExecutionPlan: { /** - * Apply an `ExecutionPlan` to an effect, retrying with step-provided resources + * Applies an `ExecutionPlan` to an effect, retrying with step-provided resources * until it succeeds or the plan is exhausted. * + * **Details** + * * Each attempt updates `ExecutionPlan.CurrentMetadata` (attempt and step index), * and retry timing is derived per step (the first attempt uses the remaining * attempts schedule; later retries apply the step schedule at least once). * - * @example + * **Example** (Retrying with an execution plan) + * * ```ts - * import { Effect, ExecutionPlan, Layer, Context } from "effect" + * import { Context, Effect, ExecutionPlan, Layer } from "effect" * * const Endpoint = Context.Service<{ url: string }>("Endpoint") * @@ -6951,8 +7176,8 @@ export declare const withExecutionPlan: { * const program = Effect.withExecutionPlan(fetchUrl, plan) * ``` * + * @category fallback * @since 3.16.0 - * @category Fallback */ (plan: ExecutionPlan<{ provides: Provides; @@ -6961,16 +7186,19 @@ export declare const withExecutionPlan: { requirements: PlanR; }>): (effect: Effect) => Effect | PlanR>; /** - * Apply an `ExecutionPlan` to an effect, retrying with step-provided resources + * Applies an `ExecutionPlan` to an effect, retrying with step-provided resources * until it succeeds or the plan is exhausted. * + * **Details** + * * Each attempt updates `ExecutionPlan.CurrentMetadata` (attempt and step index), * and retry timing is derived per step (the first attempt uses the remaining * attempts schedule; later retries apply the step schedule at least once). * - * @example + * **Example** (Retrying with an execution plan) + * * ```ts - * import { Effect, ExecutionPlan, Layer, Context } from "effect" + * import { Context, Effect, ExecutionPlan, Layer } from "effect" * * const Endpoint = Context.Service<{ url: string }>("Endpoint") * @@ -6990,8 +7218,8 @@ export declare const withExecutionPlan: { * const program = Effect.withExecutionPlan(fetchUrl, plan) * ``` * + * @category fallback * @since 3.16.0 - * @category Fallback */ (effect: Effect, plan: ExecutionPlan<{ provides: Provides; @@ -7003,11 +7231,13 @@ export declare const withExecutionPlan: { /** * Runs an effect and reports any errors to the configured `ErrorReporter`s. * + * **Details** + * * If the `defectsOnly` option is set to `true`, only defects (unrecoverable * errors) will be reported, while regular failures will be ignored. * + * @category error handling * @since 4.0.0 - * @category Error Handling */ export declare const withErrorReporting: | { readonly defectsOnly?: boolean | undefined; @@ -7017,23 +7247,18 @@ export declare const withErrorReporting: | { readonly defectsOnly?: boolean | undefined; } | undefined) => [Arg] extends [Effect] ? Arg : (self: Effect) => Effect; /** - * Replaces the original failure with a success value, ensuring the effect - * cannot fail. + * Recovers from a typed failure by producing a fallback success value. + * + * **Details** * - * `orElseSucceed` allows you to replace the failure of an effect with a - * success value. If the effect fails, it will instead succeed with the provided - * value, ensuring the effect always completes successfully. This is useful when - * you want to guarantee a successful result regardless of whether the original - * effect failed. + * If the source effect succeeds, its value is preserved. If it fails in the + * error channel, `orElseSucceed` evaluates the fallback and succeeds with that + * value, removing the typed error from the returned effect. * - * The function ensures that any failure is effectively "swallowed" and replaced - * by a successful value, which can be helpful for providing default values in - * case of failure. + * Defects and interruptions are not recovered by this operator. * - * **Important**: This function only applies to failed effects. If the effect - * already succeeds, it will remain unchanged. + * **Example** (Replacing failures with a value) * - * @example * ```ts * import { Effect } from "effect" * @@ -7054,28 +7279,23 @@ export declare const withErrorReporting: | { * // { _id: 'Exit', _tag: 'Success', value: 18 } * ``` * + * @category fallback * @since 2.0.0 - * @category Fallback */ export declare const orElseSucceed: { /** - * Replaces the original failure with a success value, ensuring the effect - * cannot fail. + * Recovers from a typed failure by producing a fallback success value. + * + * **Details** * - * `orElseSucceed` allows you to replace the failure of an effect with a - * success value. If the effect fails, it will instead succeed with the provided - * value, ensuring the effect always completes successfully. This is useful when - * you want to guarantee a successful result regardless of whether the original - * effect failed. + * If the source effect succeeds, its value is preserved. If it fails in the + * error channel, `orElseSucceed` evaluates the fallback and succeeds with that + * value, removing the typed error from the returned effect. * - * The function ensures that any failure is effectively "swallowed" and replaced - * by a successful value, which can be helpful for providing default values in - * case of failure. + * Defects and interruptions are not recovered by this operator. * - * **Important**: This function only applies to failed effects. If the effect - * already succeeds, it will remain unchanged. + * **Example** (Replacing failures with a value) * - * @example * ```ts * import { Effect } from "effect" * @@ -7096,28 +7316,23 @@ export declare const orElseSucceed: { * // { _id: 'Exit', _tag: 'Success', value: 18 } * ``` * + * @category fallback * @since 2.0.0 - * @category Fallback */ (evaluate: LazyArg): (self: Effect) => Effect; /** - * Replaces the original failure with a success value, ensuring the effect - * cannot fail. + * Recovers from a typed failure by producing a fallback success value. + * + * **Details** * - * `orElseSucceed` allows you to replace the failure of an effect with a - * success value. If the effect fails, it will instead succeed with the provided - * value, ensuring the effect always completes successfully. This is useful when - * you want to guarantee a successful result regardless of whether the original - * effect failed. + * If the source effect succeeds, its value is preserved. If it fails in the + * error channel, `orElseSucceed` evaluates the fallback and succeeds with that + * value, removing the typed error from the returned effect. * - * The function ensures that any failure is effectively "swallowed" and replaced - * by a successful value, which can be helpful for providing default values in - * case of failure. + * Defects and interruptions are not recovered by this operator. * - * **Important**: This function only applies to failed effects. If the effect - * already succeeds, it will remain unchanged. + * **Example** (Replacing failures with a value) * - * @example * ```ts * import { Effect } from "effect" * @@ -7138,8 +7353,8 @@ export declare const orElseSucceed: { * // { _id: 'Exit', _tag: 'Success', value: 18 } * ``` * + * @category fallback * @since 2.0.0 - * @category Fallback */ (self: Effect, evaluate: LazyArg): Effect; }; @@ -7147,6 +7362,12 @@ export declare const orElseSucceed: { * Runs a sequence of effects and returns the result of the first successful * one. * + * **When to use** + * + * Use when you have prioritized fallback `Effect`s, such as attempting + * multiple APIs, reading configuration from several sources, or trying + * alternative resource locations in order. + * * **Details** * * This function executes the provided effects in sequence, stopping at the @@ -7157,13 +7378,8 @@ export declare const orElseSucceed: { * effect. If the collection is empty, the returned effect defects with an * `Error` whose message is `"Received an empty collection of effects"`. * - * **When to Use** - * - * Use `firstSuccessOf` when you have prioritized fallback strategies, such as - * attempting multiple APIs, reading configuration from several sources, or - * trying alternative resource locations in order. + * **Example** (Trying alternatives until one succeeds) * - * @example * ```ts * import { Effect } from "effect" * @@ -7183,25 +7399,33 @@ export declare const orElseSucceed: { * // Output: "secondary result" * ``` * + * @category fallback * @since 2.0.0 - * @category Fallback */ export declare const firstSuccessOf: >(effects: Iterable) => Effect, Error, Services>; /** * Adds a time limit to an effect, triggering a timeout if the effect exceeds * the duration. * + * **When to use** + * + * Use when you need a timeout of an `Effect` to be represented as a typed + * failure. + * + * **Details** + * * The `timeout` function allows you to specify a time limit for an * effect's execution. If the effect does not complete within the given time, a * `TimeoutException` is raised. This can be useful for controlling how long * your program waits for a task to finish, ensuring that it doesn't hang * indefinitely if the task takes too long. * - * @see {@link timeoutFail} for a version that raises a custom error. - * @see {@link timeoutFailCause} for a version that raises a custom defect. - * @see {@link timeoutTo} for a version that allows specifying both success and timeout handlers. + * **Gotchas** + * + * If the timeout wins, the source effect is interrupted. + * + * **Example** (Failing when work takes too long) * - * @example * ```ts * import { Effect } from "effect" * @@ -7230,25 +7454,36 @@ export declare const firstSuccessOf: >(effects * // } * ``` * + * @see {@link timeoutOption} for returning `Option.none` on timeout. + * @see {@link timeoutOrElse} for a version that allows specifying both success and timeout handlers. + * + * @category delays & timeouts * @since 2.0.0 - * @category Delays & Timeouts */ export declare const timeout: { /** * Adds a time limit to an effect, triggering a timeout if the effect exceeds * the duration. * + * **When to use** + * + * Use when you need a timeout of an `Effect` to be represented as a typed + * failure. + * + * **Details** + * * The `timeout` function allows you to specify a time limit for an * effect's execution. If the effect does not complete within the given time, a * `TimeoutException` is raised. This can be useful for controlling how long * your program waits for a task to finish, ensuring that it doesn't hang * indefinitely if the task takes too long. * - * @see {@link timeoutFail} for a version that raises a custom error. - * @see {@link timeoutFailCause} for a version that raises a custom defect. - * @see {@link timeoutTo} for a version that allows specifying both success and timeout handlers. + * **Gotchas** + * + * If the timeout wins, the source effect is interrupted. + * + * **Example** (Failing when work takes too long) * - * @example * ```ts * import { Effect } from "effect" * @@ -7277,25 +7512,36 @@ export declare const timeout: { * // } * ``` * + * @see {@link timeoutOption} for returning `Option.none` on timeout. + * @see {@link timeoutOrElse} for a version that allows specifying both success and timeout handlers. + * + * @category delays & timeouts * @since 2.0.0 - * @category Delays & Timeouts */ (duration: Duration.Input): (self: Effect) => Effect; /** * Adds a time limit to an effect, triggering a timeout if the effect exceeds * the duration. * + * **When to use** + * + * Use when you need a timeout of an `Effect` to be represented as a typed + * failure. + * + * **Details** + * * The `timeout` function allows you to specify a time limit for an * effect's execution. If the effect does not complete within the given time, a * `TimeoutException` is raised. This can be useful for controlling how long * your program waits for a task to finish, ensuring that it doesn't hang * indefinitely if the task takes too long. * - * @see {@link timeoutFail} for a version that raises a custom error. - * @see {@link timeoutFailCause} for a version that raises a custom defect. - * @see {@link timeoutTo} for a version that allows specifying both success and timeout handlers. + * **Gotchas** + * + * If the timeout wins, the source effect is interrupted. + * + * **Example** (Failing when work takes too long) * - * @example * ```ts * import { Effect } from "effect" * @@ -7324,31 +7570,31 @@ export declare const timeout: { * // } * ``` * + * @see {@link timeoutOption} for returning `Option.none` on timeout. + * @see {@link timeoutOrElse} for a version that allows specifying both success and timeout handlers. + * + * @category delays & timeouts * @since 2.0.0 - * @category Delays & Timeouts */ (self: Effect, duration: Duration.Input): Effect; }; /** - * Handles timeouts by returning an `Option` that represents either the result - * or a timeout. + * Runs an effect with a time limit and represents only the timeout case as + * `Option.none`. * - * The `timeoutOption` function provides a way to gracefully handle - * timeouts by wrapping the outcome of an effect in an `Option` type. If the - * effect completes within the specified time, it returns a `Some` containing - * the result. If the effect times out, it returns a `None`, allowing you to - * treat the timeout as a regular result instead of throwing an error. + * **When to use** * - * This is useful when you want to handle timeouts without causing the program - * to fail, making it easier to manage situations where you expect tasks might - * take too long but want to continue executing other tasks. + * Use when a timeout of an `Effect` should be handled as `Option.none`. * - * @see {@link timeout} for a version that raises a `TimeoutException`. - * @see {@link timeoutFail} for a version that raises a custom error. - * @see {@link timeoutFailCause} for a version that raises a custom defect. - * @see {@link timeoutTo} for a version that allows specifying both success and timeout handlers. + * **Details** + * + * If the source effect succeeds before the timeout, the returned effect + * succeeds with `Option.some(value)`. If the timeout wins, the source effect is + * interrupted and the returned effect succeeds with `Option.none`. If the + * source effect fails before the timeout, that failure is preserved. + * + * **Example** (Returning None on timeout) * - * @example * ```ts * import { Effect } from "effect" * @@ -7375,30 +7621,30 @@ export declare const timeout: { * // ] * ``` * + * @see {@link timeout} for a version that raises a `TimeoutException`. + * @see {@link timeoutOrElse} for a version that allows specifying both success and timeout handlers. + * + * @category delays & timeouts * @since 3.1.0 - * @category Delays & Timeouts */ export declare const timeoutOption: { /** - * Handles timeouts by returning an `Option` that represents either the result - * or a timeout. + * Runs an effect with a time limit and represents only the timeout case as + * `Option.none`. * - * The `timeoutOption` function provides a way to gracefully handle - * timeouts by wrapping the outcome of an effect in an `Option` type. If the - * effect completes within the specified time, it returns a `Some` containing - * the result. If the effect times out, it returns a `None`, allowing you to - * treat the timeout as a regular result instead of throwing an error. + * **When to use** * - * This is useful when you want to handle timeouts without causing the program - * to fail, making it easier to manage situations where you expect tasks might - * take too long but want to continue executing other tasks. + * Use when a timeout of an `Effect` should be handled as `Option.none`. * - * @see {@link timeout} for a version that raises a `TimeoutException`. - * @see {@link timeoutFail} for a version that raises a custom error. - * @see {@link timeoutFailCause} for a version that raises a custom defect. - * @see {@link timeoutTo} for a version that allows specifying both success and timeout handlers. + * **Details** + * + * If the source effect succeeds before the timeout, the returned effect + * succeeds with `Option.some(value)`. If the timeout wins, the source effect is + * interrupted and the returned effect succeeds with `Option.none`. If the + * source effect fails before the timeout, that failure is preserved. + * + * **Example** (Returning None on timeout) * - * @example * ```ts * import { Effect } from "effect" * @@ -7425,30 +7671,30 @@ export declare const timeoutOption: { * // ] * ``` * + * @see {@link timeout} for a version that raises a `TimeoutException`. + * @see {@link timeoutOrElse} for a version that allows specifying both success and timeout handlers. + * + * @category delays & timeouts * @since 3.1.0 - * @category Delays & Timeouts */ (duration: Duration.Input): (self: Effect) => Effect, E, R>; /** - * Handles timeouts by returning an `Option` that represents either the result - * or a timeout. + * Runs an effect with a time limit and represents only the timeout case as + * `Option.none`. * - * The `timeoutOption` function provides a way to gracefully handle - * timeouts by wrapping the outcome of an effect in an `Option` type. If the - * effect completes within the specified time, it returns a `Some` containing - * the result. If the effect times out, it returns a `None`, allowing you to - * treat the timeout as a regular result instead of throwing an error. + * **When to use** * - * This is useful when you want to handle timeouts without causing the program - * to fail, making it easier to manage situations where you expect tasks might - * take too long but want to continue executing other tasks. + * Use when a timeout of an `Effect` should be handled as `Option.none`. * - * @see {@link timeout} for a version that raises a `TimeoutException`. - * @see {@link timeoutFail} for a version that raises a custom error. - * @see {@link timeoutFailCause} for a version that raises a custom defect. - * @see {@link timeoutTo} for a version that allows specifying both success and timeout handlers. + * **Details** + * + * If the source effect succeeds before the timeout, the returned effect + * succeeds with `Option.some(value)`. If the timeout wins, the source effect is + * interrupted and the returned effect succeeds with `Option.none`. If the + * source effect fails before the timeout, that failure is preserved. + * + * **Example** (Returning None on timeout) * - * @example * ```ts * import { Effect } from "effect" * @@ -7475,18 +7721,33 @@ export declare const timeoutOption: { * // ] * ``` * + * @see {@link timeout} for a version that raises a `TimeoutException`. + * @see {@link timeoutOrElse} for a version that allows specifying both success and timeout handlers. + * + * @category delays & timeouts * @since 3.1.0 - * @category Delays & Timeouts */ (self: Effect, duration: Duration.Input): Effect, E, R>; }; /** * Applies a timeout to an effect, with a fallback effect executed if the timeout is reached. * - * This function is useful when you want to set a maximum duration for an operation - * and provide an alternative action if the timeout is exceeded. + * **When to use** + * + * Use when a timeout of an `Effect` should switch to a fallback effect. + * + * **Details** + * + * The fallback effect is created lazily by `orElse` and may introduce its own + * success, failure, and requirement types. + * + * **Gotchas** + * + * If the timeout wins, the source effect is interrupted before the fallback is + * run. + * + * **Example** (Falling back on timeout) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -7513,17 +7774,32 @@ export declare const timeoutOption: { * // Cached result * ``` * - * @since 3.1.0 - * @category Delays & Timeouts + * @see {@link timeout} for failing with a `TimeoutException`. + * @see {@link timeoutOption} for returning `Option.none` on timeout. + * + * @category delays & timeouts + * @since 4.0.0 */ export declare const timeoutOrElse: { /** * Applies a timeout to an effect, with a fallback effect executed if the timeout is reached. * - * This function is useful when you want to set a maximum duration for an operation - * and provide an alternative action if the timeout is exceeded. + * **When to use** + * + * Use when a timeout of an `Effect` should switch to a fallback effect. + * + * **Details** + * + * The fallback effect is created lazily by `orElse` and may introduce its own + * success, failure, and requirement types. + * + * **Gotchas** + * + * If the timeout wins, the source effect is interrupted before the fallback is + * run. + * + * **Example** (Falling back on timeout) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -7550,8 +7826,11 @@ export declare const timeoutOrElse: { * // Cached result * ``` * - * @since 3.1.0 - * @category Delays & Timeouts + * @see {@link timeout} for failing with a `TimeoutException`. + * @see {@link timeoutOption} for returning `Option.none` on timeout. + * + * @category delays & timeouts + * @since 4.0.0 */ (options: { readonly duration: Duration.Input; @@ -7560,10 +7839,22 @@ export declare const timeoutOrElse: { /** * Applies a timeout to an effect, with a fallback effect executed if the timeout is reached. * - * This function is useful when you want to set a maximum duration for an operation - * and provide an alternative action if the timeout is exceeded. + * **When to use** + * + * Use when a timeout of an `Effect` should switch to a fallback effect. + * + * **Details** + * + * The fallback effect is created lazily by `orElse` and may introduce its own + * success, failure, and requirement types. + * + * **Gotchas** + * + * If the timeout wins, the source effect is interrupted before the fallback is + * run. + * + * **Example** (Falling back on timeout) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -7590,8 +7881,11 @@ export declare const timeoutOrElse: { * // Cached result * ``` * - * @since 3.1.0 - * @category Delays & Timeouts + * @see {@link timeout} for failing with a `TimeoutException`. + * @see {@link timeoutOption} for returning `Option.none` on timeout. + * + * @category delays & timeouts + * @since 4.0.0 */ (self: Effect, options: { readonly duration: Duration.Input; @@ -7602,7 +7896,8 @@ export declare const timeoutOrElse: { * Returns an effect that is delayed from this effect by the specified * `Duration`. * - * @example + * **Example** (Delaying an effect) + * * ```ts * import { Console, Effect } from "effect" * @@ -7615,15 +7910,16 @@ export declare const timeoutOrElse: { * // Waits 1 second, then prints: "Delayed message" * ``` * + * @category delays & timeouts * @since 2.0.0 - * @category Delays & Timeouts */ export declare const delay: { /** * Returns an effect that is delayed from this effect by the specified * `Duration`. * - * @example + * **Example** (Delaying an effect) + * * ```ts * import { Console, Effect } from "effect" * @@ -7636,15 +7932,16 @@ export declare const delay: { * // Waits 1 second, then prints: "Delayed message" * ``` * + * @category delays & timeouts * @since 2.0.0 - * @category Delays & Timeouts */ (duration: Duration.Input): (self: Effect) => Effect; /** * Returns an effect that is delayed from this effect by the specified * `Duration`. * - * @example + * **Example** (Delaying an effect) + * * ```ts * import { Console, Effect } from "effect" * @@ -7657,16 +7954,17 @@ export declare const delay: { * // Waits 1 second, then prints: "Delayed message" * ``` * + * @category delays & timeouts * @since 2.0.0 - * @category Delays & Timeouts */ (self: Effect, duration: Duration.Input): Effect; }; /** - * Returns an effect that suspends for the specified duration. This method is - * asynchronous, and does not actually block the fiber executing the effect. + * Returns an effect that suspends the current fiber for the specified duration + * without blocking a JavaScript thread. + * + * **Example** (Pausing without blocking) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -7681,17 +7979,20 @@ export declare const delay: { * // Output: "End" (after 2 seconds) * ``` * + * @category delays & timeouts * @since 2.0.0 - * @category Delays & Timeouts */ export declare const sleep: (duration: Duration.Input) => Effect; /** - * Measures the runtime of an effect and returns the duration with its result. + * Returns the runtime duration of an effect together with its result. + * + * **Details** * * The original success, failure, or interruption is preserved; only the success * value is paired with the duration. * - * @example + * **Example** (Measuring execution time) + * * ```ts * import { Console, Duration, Effect } from "effect" * @@ -7701,32 +8002,27 @@ export declare const sleep: (duration: Duration.Input) => Effect; * }) * ``` * + * @category delays & timeouts * @since 2.0.0 - * @category Delays & Timeouts */ export declare const timed: (self: Effect) => Effect<[duration: Duration.Duration, result: A], E, R>; /** - * Races multiple effects and returns the first successful result. - * - * **Details** + * Runs multiple effects concurrently and returns the first successful result. * - * This function runs multiple effects concurrently and returns the result of - * the first one to succeed. If one effect succeeds, the others will be - * interrupted. + * **When to use** * - * If none of the effects succeed, the function will fail with the last error - * encountered. + * Use when early failures should be ignored until a success occurs + * or all effects fail. * - * **When to Use** + * **Details** * - * This is useful when you want to race multiple effects, but only care about - * the first one to succeed. It is commonly used in cases like timeouts, - * retries, or when you want to optimize for the faster response without - * worrying about the other effects. + * Early failures do not finish the race; `raceAll` keeps waiting until one + * effect succeeds or every effect has failed. When one effect succeeds, the + * remaining effects are interrupted. If every effect fails, the returned effect + * fails with a cause containing the collected failure reasons. * - * @see {@link race} for a version that handles only two effects. + * **Example** (Racing many effects) * - * @example * ```ts * import { Duration, Effect } from "effect" * @@ -7741,8 +8037,9 @@ export declare const timed: (self: Effect) => Effect<[duration * // Result: "Fast" (after ~100ms) * ``` * + * @see {@link race} for a version that handles only two effects. + * @category racing * @since 2.0.0 - * @category Racing */ export declare const raceAll: >(all: Iterable, options?: { readonly onWinner?: (options: { @@ -7752,15 +8049,17 @@ export declare const raceAll: >(all: Iterable< }) => void; }) => Effect, Error, Services>; /** - * Races multiple effects and returns the first successful result. + * Runs multiple effects concurrently and completes with the first effect to + * finish, whether it succeeds or fails. * * **Details** * - * Similar to `raceAll`, this function runs multiple effects concurrently - * and returns the result of the first one to succeed. If one effect succeeds, - * the others will be interrupted. + * After the first effect completes, all remaining effects are interrupted. Use + * `raceAll` when early failures should be ignored until a success occurs or + * all effects fail. + * + * **Example** (Taking the first settled result) * - * @example * ```ts * import { Duration, Effect } from "effect" * @@ -7775,8 +8074,8 @@ export declare const raceAll: >(all: Iterable< * // Result: "First" (after ~200ms, even though effect2 completes first but fails) * ``` * + * @category racing * @since 4.0.0 - * @category Racing */ export declare const raceAllFirst: >(all: Iterable, options?: { readonly onWinner?: (options: { @@ -7788,10 +8087,13 @@ export declare const raceAllFirst: >(all: Iter /** * Races two effects and returns the first successful result. * + * **Details** + * * If one effect succeeds, the other is interrupted and `onWinner` can observe the * winning fiber. If both fail, the race fails. * - * @example + * **Example** (Racing two effects) + * * ```ts * import { Console, Duration, Effect } from "effect" * @@ -7807,17 +8109,20 @@ export declare const raceAllFirst: >(all: Iter * // Output: winner: slow-success * ``` * + * @category racing * @since 2.0.0 - * @category Racing */ export declare const race: { /** * Races two effects and returns the first successful result. * + * **Details** + * * If one effect succeeds, the other is interrupted and `onWinner` can observe the * winning fiber. If both fail, the race fails. * - * @example + * **Example** (Racing two effects) + * * ```ts * import { Console, Duration, Effect } from "effect" * @@ -7833,8 +8138,8 @@ export declare const race: { * // Output: winner: slow-success * ``` * + * @category racing * @since 2.0.0 - * @category Racing */ (that: Effect, options?: { readonly onWinner?: (options: { @@ -7846,10 +8151,13 @@ export declare const race: { /** * Races two effects and returns the first successful result. * + * **Details** + * * If one effect succeeds, the other is interrupted and `onWinner` can observe the * winning fiber. If both fail, the race fails. * - * @example + * **Example** (Racing two effects) + * * ```ts * import { Console, Duration, Effect } from "effect" * @@ -7865,8 +8173,8 @@ export declare const race: { * // Output: winner: slow-success * ``` * + * @category racing * @since 2.0.0 - * @category Racing */ (self: Effect, that: Effect, options?: { readonly onWinner?: (options: { @@ -7880,9 +8188,17 @@ export declare const race: { * Races two effects and returns the result of the first one to complete, whether * it succeeds or fails. * + * **When to use** + * + * Use when any completion, including failure, should decide the race and + * interrupt the losing effect. + * + * **Details** + * * The losing effect is interrupted, and `onWinner` can observe the winning fiber. * - * @example + * **Example** (Observing the winning fiber) + * * ```ts * import { Console, Duration, Effect } from "effect" * @@ -7901,17 +8217,25 @@ export declare const race: { * // Output: failed: fast-fail * ``` * + * @category racing * @since 2.0.0 - * @category Racing */ export declare const raceFirst: { /** * Races two effects and returns the result of the first one to complete, whether * it succeeds or fails. * + * **When to use** + * + * Use when any completion, including failure, should decide the race and + * interrupt the losing effect. + * + * **Details** + * * The losing effect is interrupted, and `onWinner` can observe the winning fiber. * - * @example + * **Example** (Observing the winning fiber) + * * ```ts * import { Console, Duration, Effect } from "effect" * @@ -7930,8 +8254,8 @@ export declare const raceFirst: { * // Output: failed: fast-fail * ``` * + * @category racing * @since 2.0.0 - * @category Racing */ (that: Effect, options?: { readonly onWinner?: (options: { @@ -7944,9 +8268,17 @@ export declare const raceFirst: { * Races two effects and returns the result of the first one to complete, whether * it succeeds or fails. * + * **When to use** + * + * Use when any completion, including failure, should decide the race and + * interrupt the losing effect. + * + * **Details** + * * The losing effect is interrupted, and `onWinner` can observe the winning fiber. * - * @example + * **Example** (Observing the winning fiber) + * * ```ts * import { Console, Duration, Effect } from "effect" * @@ -7965,8 +8297,8 @@ export declare const raceFirst: { * // Output: failed: fast-fail * ``` * + * @category racing * @since 2.0.0 - * @category Racing */ (self: Effect, that: Effect, options?: { readonly onWinner?: (options: { @@ -7980,7 +8312,8 @@ export declare const raceFirst: { * Filters elements of an iterable using a predicate, refinement, or effectful * predicate. * - * @example + * **Example** (Filtering success values) + * * ```ts * import { Effect } from "effect" * @@ -7993,15 +8326,16 @@ export declare const raceFirst: { * // Use Effect.filterMapEffect for effectful Filter.Filter callbacks * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ export declare const filter: { /** * Filters elements of an iterable using a predicate, refinement, or effectful * predicate. * - * @example + * **Example** (Filtering success values) + * * ```ts * import { Effect } from "effect" * @@ -8014,15 +8348,16 @@ export declare const filter: { * // Use Effect.filterMapEffect for effectful Filter.Filter callbacks * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ (refinement: Predicate.Refinement, B>): (elements: Iterable) => Effect>; /** * Filters elements of an iterable using a predicate, refinement, or effectful * predicate. * - * @example + * **Example** (Filtering success values) + * * ```ts * import { Effect } from "effect" * @@ -8035,15 +8370,16 @@ export declare const filter: { * // Use Effect.filterMapEffect for effectful Filter.Filter callbacks * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ (predicate: Predicate.Predicate>): (elements: Iterable) => Effect>; /** * Filters elements of an iterable using a predicate, refinement, or effectful * predicate. * - * @example + * **Example** (Filtering success values) + * * ```ts * import { Effect } from "effect" * @@ -8056,8 +8392,8 @@ export declare const filter: { * // Use Effect.filterMapEffect for effectful Filter.Filter callbacks * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ (predicate: (a: NoInfer, i: number) => Effect, options?: { readonly concurrency?: Concurrency | undefined; @@ -8066,7 +8402,8 @@ export declare const filter: { * Filters elements of an iterable using a predicate, refinement, or effectful * predicate. * - * @example + * **Example** (Filtering success values) + * * ```ts * import { Effect } from "effect" * @@ -8079,15 +8416,16 @@ export declare const filter: { * // Use Effect.filterMapEffect for effectful Filter.Filter callbacks * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ (elements: Iterable, refinement: Predicate.Refinement): Effect>; /** * Filters elements of an iterable using a predicate, refinement, or effectful * predicate. * - * @example + * **Example** (Filtering success values) + * * ```ts * import { Effect } from "effect" * @@ -8100,15 +8438,16 @@ export declare const filter: { * // Use Effect.filterMapEffect for effectful Filter.Filter callbacks * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ (elements: Iterable, predicate: Predicate.Predicate): Effect>; /** * Filters elements of an iterable using a predicate, refinement, or effectful * predicate. * - * @example + * **Example** (Filtering success values) + * * ```ts * import { Effect } from "effect" * @@ -8121,8 +8460,8 @@ export declare const filter: { * // Use Effect.filterMapEffect for effectful Filter.Filter callbacks * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ (iterable: Iterable, predicate: (a: NoInfer, i: number) => Effect, options?: { readonly concurrency?: Concurrency | undefined; @@ -8131,46 +8470,139 @@ export declare const filter: { /** * Filters and maps elements of an iterable with a `Filter`. * - * @since 4.0.0 - * @category Filtering + * **When to use** + * + * Use when you need to filter an iterable with a `Filter` inside an `Effect`, + * collecting each filter success value. + * + * **Details** + * + * `Result.succeed` values are collected in the returned array, and + * `Result.fail` values are skipped. + * + * @see {@link filter} for keeping original elements with a boolean predicate, refinement, or effectful predicate + * @see {@link filterMapEffect} for using an effectful `Filter` + * + * @category filtering + * @since 2.0.0 */ export declare const filterMap: { /** * Filters and maps elements of an iterable with a `Filter`. * - * @since 4.0.0 - * @category Filtering + * **When to use** + * + * Use when you need to filter an iterable with a `Filter` inside an `Effect`, + * collecting each filter success value. + * + * **Details** + * + * `Result.succeed` values are collected in the returned array, and + * `Result.fail` values are skipped. + * + * @see {@link filter} for keeping original elements with a boolean predicate, refinement, or effectful predicate + * @see {@link filterMapEffect} for using an effectful `Filter` + * + * @category filtering + * @since 2.0.0 */ (filter: Filter.Filter, B, X>): (elements: Iterable) => Effect>; /** * Filters and maps elements of an iterable with a `Filter`. * - * @since 4.0.0 - * @category Filtering + * **When to use** + * + * Use when you need to filter an iterable with a `Filter` inside an `Effect`, + * collecting each filter success value. + * + * **Details** + * + * `Result.succeed` values are collected in the returned array, and + * `Result.fail` values are skipped. + * + * @see {@link filter} for keeping original elements with a boolean predicate, refinement, or effectful predicate + * @see {@link filterMapEffect} for using an effectful `Filter` + * + * @category filtering + * @since 2.0.0 */ (elements: Iterable, filter: Filter.Filter, B, X>): Effect>; }; /** - * Effectfully filters and maps elements of an iterable with a `FilterEffect`. + * Filters and maps elements of an iterable effectfully with a `FilterEffect`. + * + * **When to use** + * + * Use when you need to filter each iterable element effectfully and transform + * accepted elements into successful output values. + * + * **Details** + * + * `Result.succeed` values are collected in the returned array, and + * `Result.fail` values are skipped. * + * **Gotchas** + * + * With concurrent execution, successful values are collected in completion + * order, not input order. + * + * @see {@link filterMap} for using a synchronous `Filter` + * @see {@link filter} for keeping original elements with a predicate + * + * @category filtering * @since 4.0.0 - * @category Filtering */ export declare const filterMapEffect: { /** - * Effectfully filters and maps elements of an iterable with a `FilterEffect`. + * Filters and maps elements of an iterable effectfully with a `FilterEffect`. + * + * **When to use** + * + * Use when you need to filter each iterable element effectfully and transform + * accepted elements into successful output values. + * + * **Details** + * + * `Result.succeed` values are collected in the returned array, and + * `Result.fail` values are skipped. * + * **Gotchas** + * + * With concurrent execution, successful values are collected in completion + * order, not input order. + * + * @see {@link filterMap} for using a synchronous `Filter` + * @see {@link filter} for keeping original elements with a predicate + * + * @category filtering * @since 4.0.0 - * @category Filtering */ (filter: Filter.FilterEffect, B, X, E, R>, options?: { readonly concurrency?: Concurrency | undefined; }): (elements: Iterable) => Effect, E, R>; /** - * Effectfully filters and maps elements of an iterable with a `FilterEffect`. + * Filters and maps elements of an iterable effectfully with a `FilterEffect`. + * + * **When to use** + * + * Use when you need to filter each iterable element effectfully and transform + * accepted elements into successful output values. + * + * **Details** + * + * `Result.succeed` values are collected in the returned array, and + * `Result.fail` values are skipped. * + * **Gotchas** + * + * With concurrent execution, successful values are collected in completion + * order, not input order. + * + * @see {@link filterMap} for using a synchronous `Filter` + * @see {@link filter} for keeping original elements with a predicate + * + * @category filtering * @since 4.0.0 - * @category Filtering */ (elements: Iterable, filter: Filter.FilterEffect, B, X, E, R>, options?: { readonly concurrency?: Concurrency | undefined; @@ -8179,6 +8611,11 @@ export declare const filterMapEffect: { /** * Filters an effect, providing an alternative effect if the predicate fails. * + * **When to use** + * + * Use when a successful value that fails a predicate should continue with an + * effectful fallback instead of failing the effect. + * * **Details** * * This function applies a predicate to the result of an effect. If the @@ -8186,7 +8623,8 @@ export declare const filterMapEffect: { * `orElse` effect can produce an alternative value or perform additional * computations. * - * @example + * **Example** (Filtering with a fallback effect) + * * ```ts * import { Effect } from "effect" * @@ -8203,13 +8641,18 @@ export declare const filterMapEffect: { * // Result: "Number 5 is odd" (since 5 is not even) * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ export declare const filterOrElse: { /** * Filters an effect, providing an alternative effect if the predicate fails. * + * **When to use** + * + * Use when a successful value that fails a predicate should continue with an + * effectful fallback instead of failing the effect. + * * **Details** * * This function applies a predicate to the result of an effect. If the @@ -8217,7 +8660,8 @@ export declare const filterOrElse: { * `orElse` effect can produce an alternative value or perform additional * computations. * - * @example + * **Example** (Filtering with a fallback effect) + * * ```ts * import { Effect } from "effect" * @@ -8234,13 +8678,18 @@ export declare const filterOrElse: { * // Result: "Number 5 is odd" (since 5 is not even) * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ (refinement: Predicate.Refinement, B>, orElse: (a: EqualsWith, Exclude, B>>) => Effect): (self: Effect) => Effect; /** * Filters an effect, providing an alternative effect if the predicate fails. * + * **When to use** + * + * Use when a successful value that fails a predicate should continue with an + * effectful fallback instead of failing the effect. + * * **Details** * * This function applies a predicate to the result of an effect. If the @@ -8248,7 +8697,8 @@ export declare const filterOrElse: { * `orElse` effect can produce an alternative value or perform additional * computations. * - * @example + * **Example** (Filtering with a fallback effect) + * * ```ts * import { Effect } from "effect" * @@ -8265,13 +8715,18 @@ export declare const filterOrElse: { * // Result: "Number 5 is odd" (since 5 is not even) * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ (predicate: Predicate.Predicate>, orElse: (a: NoInfer) => Effect): (self: Effect) => Effect; /** * Filters an effect, providing an alternative effect if the predicate fails. * + * **When to use** + * + * Use when a successful value that fails a predicate should continue with an + * effectful fallback instead of failing the effect. + * * **Details** * * This function applies a predicate to the result of an effect. If the @@ -8279,7 +8734,8 @@ export declare const filterOrElse: { * `orElse` effect can produce an alternative value or perform additional * computations. * - * @example + * **Example** (Filtering with a fallback effect) + * * ```ts * import { Effect } from "effect" * @@ -8296,13 +8752,18 @@ export declare const filterOrElse: { * // Result: "Number 5 is odd" (since 5 is not even) * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ (self: Effect, refinement: Predicate.Refinement, orElse: (a: EqualsWith>) => Effect): Effect; /** * Filters an effect, providing an alternative effect if the predicate fails. * + * **When to use** + * + * Use when a successful value that fails a predicate should continue with an + * effectful fallback instead of failing the effect. + * * **Details** * * This function applies a predicate to the result of an effect. If the @@ -8310,7 +8771,8 @@ export declare const filterOrElse: { * `orElse` effect can produce an alternative value or perform additional * computations. * - * @example + * **Example** (Filtering with a fallback effect) + * * ```ts * import { Effect } from "effect" * @@ -8327,30 +8789,72 @@ export declare const filterOrElse: { * // Result: "Number 5 is odd" (since 5 is not even) * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ (self: Effect, predicate: Predicate.Predicate>, orElse: (a: NoInfer) => Effect): Effect; }; /** * Filters an effect with a `Filter`, providing an alternative effect on failure. * + * **When to use** + * + * Use when a successful effect value should be accepted and transformed by a + * `Filter`, while rejected values should continue with an alternative effect + * built from the filter failure. + * + * **Details** + * + * `Result.succeed` becomes the returned success value, and `Result.fail` is + * passed to `orElse`. + * + * @see {@link filterOrElse} for using a predicate and fallback effect + * @see {@link filterMapOrFail} for failing the effect when the filter fails + * + * @category filtering * @since 4.0.0 - * @category Filtering */ export declare const filterMapOrElse: { /** * Filters an effect with a `Filter`, providing an alternative effect on failure. * + * **When to use** + * + * Use when a successful effect value should be accepted and transformed by a + * `Filter`, while rejected values should continue with an alternative effect + * built from the filter failure. + * + * **Details** + * + * `Result.succeed` becomes the returned success value, and `Result.fail` is + * passed to `orElse`. + * + * @see {@link filterOrElse} for using a predicate and fallback effect + * @see {@link filterMapOrFail} for failing the effect when the filter fails + * + * @category filtering * @since 4.0.0 - * @category Filtering */ (filter: Filter.Filter, B, X>, orElse: (x: X) => Effect): (self: Effect) => Effect; /** * Filters an effect with a `Filter`, providing an alternative effect on failure. * + * **When to use** + * + * Use when a successful effect value should be accepted and transformed by a + * `Filter`, while rejected values should continue with an alternative effect + * built from the filter failure. + * + * **Details** + * + * `Result.succeed` becomes the returned success value, and `Result.fail` is + * passed to `orElse`. + * + * @see {@link filterOrElse} for using a predicate and fallback effect + * @see {@link filterMapOrFail} for failing the effect when the filter fails + * + * @category filtering * @since 4.0.0 - * @category Filtering */ (self: Effect, filter: Filter.Filter, B, X>, orElse: (x: X) => Effect): Effect; }; @@ -8363,7 +8867,8 @@ export declare const filterMapOrElse: { * predicate evaluates to `false`, the effect fails with either a custom * error (if `orFailWith` is provided) or a `NoSuchElementError`. * - * @example + * **Example** (Filtering with a custom failure) + * * ```ts * import { Effect } from "effect" * @@ -8380,8 +8885,8 @@ export declare const filterMapOrElse: { * // Result: Effect.fail("Expected even number, got 5") * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ export declare const filterOrFail: { /** @@ -8393,7 +8898,8 @@ export declare const filterOrFail: { * predicate evaluates to `false`, the effect fails with either a custom * error (if `orFailWith` is provided) or a `NoSuchElementError`. * - * @example + * **Example** (Filtering with a custom failure) + * * ```ts * import { Effect } from "effect" * @@ -8410,8 +8916,8 @@ export declare const filterOrFail: { * // Result: Effect.fail("Expected even number, got 5") * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ (refinement: Predicate.Refinement, B>, orFailWith: (a: NoInfer) => E2): (self: Effect) => Effect; /** @@ -8423,7 +8929,8 @@ export declare const filterOrFail: { * predicate evaluates to `false`, the effect fails with either a custom * error (if `orFailWith` is provided) or a `NoSuchElementError`. * - * @example + * **Example** (Filtering with a custom failure) + * * ```ts * import { Effect } from "effect" * @@ -8440,8 +8947,8 @@ export declare const filterOrFail: { * // Result: Effect.fail("Expected even number, got 5") * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ (predicate: Predicate.Predicate>, orFailWith: (a: NoInfer) => E2): (self: Effect) => Effect; /** @@ -8453,7 +8960,8 @@ export declare const filterOrFail: { * predicate evaluates to `false`, the effect fails with either a custom * error (if `orFailWith` is provided) or a `NoSuchElementError`. * - * @example + * **Example** (Filtering with a custom failure) + * * ```ts * import { Effect } from "effect" * @@ -8470,8 +8978,8 @@ export declare const filterOrFail: { * // Result: Effect.fail("Expected even number, got 5") * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ (refinement: Predicate.Refinement, B>): (self: Effect) => Effect; /** @@ -8483,7 +8991,8 @@ export declare const filterOrFail: { * predicate evaluates to `false`, the effect fails with either a custom * error (if `orFailWith` is provided) or a `NoSuchElementError`. * - * @example + * **Example** (Filtering with a custom failure) + * * ```ts * import { Effect } from "effect" * @@ -8500,8 +9009,8 @@ export declare const filterOrFail: { * // Result: Effect.fail("Expected even number, got 5") * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ (predicate: Predicate.Predicate>): (self: Effect) => Effect; /** @@ -8513,7 +9022,8 @@ export declare const filterOrFail: { * predicate evaluates to `false`, the effect fails with either a custom * error (if `orFailWith` is provided) or a `NoSuchElementError`. * - * @example + * **Example** (Filtering with a custom failure) + * * ```ts * import { Effect } from "effect" * @@ -8530,8 +9040,8 @@ export declare const filterOrFail: { * // Result: Effect.fail("Expected even number, got 5") * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ (self: Effect, refinement: Predicate.Refinement, B>, orFailWith: (a: NoInfer) => E2): Effect; /** @@ -8543,7 +9053,8 @@ export declare const filterOrFail: { * predicate evaluates to `false`, the effect fails with either a custom * error (if `orFailWith` is provided) or a `NoSuchElementError`. * - * @example + * **Example** (Filtering with a custom failure) + * * ```ts * import { Effect } from "effect" * @@ -8560,8 +9071,8 @@ export declare const filterOrFail: { * // Result: Effect.fail("Expected even number, got 5") * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ (self: Effect, predicate: Predicate.Predicate>, orFailWith: (a: NoInfer) => E2): Effect; /** @@ -8573,7 +9084,8 @@ export declare const filterOrFail: { * predicate evaluates to `false`, the effect fails with either a custom * error (if `orFailWith` is provided) or a `NoSuchElementError`. * - * @example + * **Example** (Filtering with a custom failure) + * * ```ts * import { Effect } from "effect" * @@ -8590,8 +9102,8 @@ export declare const filterOrFail: { * // Result: Effect.fail("Expected even number, got 5") * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ (self: Effect, refinement: Predicate.Refinement, B>): Effect; /** @@ -8603,7 +9115,8 @@ export declare const filterOrFail: { * predicate evaluates to `false`, the effect fails with either a custom * error (if `orFailWith` is provided) or a `NoSuchElementError`. * - * @example + * **Example** (Filtering with a custom failure) + * * ```ts * import { Effect } from "effect" * @@ -8620,64 +9133,135 @@ export declare const filterOrFail: { * // Result: Effect.fail("Expected even number, got 5") * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ (self: Effect, predicate: Predicate.Predicate>): Effect; }; /** - * Filters an effect with a `Filter`, failing when the filter fails. + * Filters and maps an effect with a `Filter`, failing when the filter fails. + * + * **When to use** + * + * Use when validating and transforming one effect success with a synchronous + * `Filter`, while rejected values should fail the effect. + * + * **Details** + * + * `Result.succeed` becomes the returned success value. `Result.fail` is mapped + * with `orFailWith` when provided, or fails with `NoSuchElementError`. * + * @see {@link filterMapOrElse} for continuing with a fallback effect when the filter fails + * @see {@link filterOrFail} for validating with a predicate instead of a `Filter` + * @see {@link filterMap} for filtering and mapping iterable elements + * + * @category filtering * @since 4.0.0 - * @category Filtering */ export declare const filterMapOrFail: { /** - * Filters an effect with a `Filter`, failing when the filter fails. + * Filters and maps an effect with a `Filter`, failing when the filter fails. + * + * **When to use** + * + * Use when validating and transforming one effect success with a synchronous + * `Filter`, while rejected values should fail the effect. + * + * **Details** + * + * `Result.succeed` becomes the returned success value. `Result.fail` is mapped + * with `orFailWith` when provided, or fails with `NoSuchElementError`. * + * @see {@link filterMapOrElse} for continuing with a fallback effect when the filter fails + * @see {@link filterOrFail} for validating with a predicate instead of a `Filter` + * @see {@link filterMap} for filtering and mapping iterable elements + * + * @category filtering * @since 4.0.0 - * @category Filtering */ (filter: Filter.Filter, B, X>, orFailWith: (x: X) => E2): (self: Effect) => Effect; /** - * Filters an effect with a `Filter`, failing when the filter fails. + * Filters and maps an effect with a `Filter`, failing when the filter fails. + * + * **When to use** + * + * Use when validating and transforming one effect success with a synchronous + * `Filter`, while rejected values should fail the effect. + * + * **Details** + * + * `Result.succeed` becomes the returned success value. `Result.fail` is mapped + * with `orFailWith` when provided, or fails with `NoSuchElementError`. * + * @see {@link filterMapOrElse} for continuing with a fallback effect when the filter fails + * @see {@link filterOrFail} for validating with a predicate instead of a `Filter` + * @see {@link filterMap} for filtering and mapping iterable elements + * + * @category filtering * @since 4.0.0 - * @category Filtering */ (filter: Filter.Filter, B, X>): (self: Effect) => Effect; /** - * Filters an effect with a `Filter`, failing when the filter fails. + * Filters and maps an effect with a `Filter`, failing when the filter fails. + * + * **When to use** * + * Use when validating and transforming one effect success with a synchronous + * `Filter`, while rejected values should fail the effect. + * + * **Details** + * + * `Result.succeed` becomes the returned success value. `Result.fail` is mapped + * with `orFailWith` when provided, or fails with `NoSuchElementError`. + * + * @see {@link filterMapOrElse} for continuing with a fallback effect when the filter fails + * @see {@link filterOrFail} for validating with a predicate instead of a `Filter` + * @see {@link filterMap} for filtering and mapping iterable elements + * + * @category filtering * @since 4.0.0 - * @category Filtering */ (self: Effect, filter: Filter.Filter, orFailWith: (x: X) => E2): Effect; /** - * Filters an effect with a `Filter`, failing when the filter fails. + * Filters and maps an effect with a `Filter`, failing when the filter fails. + * + * **When to use** + * + * Use when validating and transforming one effect success with a synchronous + * `Filter`, while rejected values should fail the effect. + * + * **Details** + * + * `Result.succeed` becomes the returned success value. `Result.fail` is mapped + * with `orFailWith` when provided, or fails with `NoSuchElementError`. * + * @see {@link filterMapOrElse} for continuing with a fallback effect when the filter fails + * @see {@link filterOrFail} for validating with a predicate instead of a `Filter` + * @see {@link filterMap} for filtering and mapping iterable elements + * + * @category filtering * @since 4.0.0 - * @category Filtering */ (self: Effect, filter: Filter.Filter): Effect; }; /** - * Conditionally executes an effect based on a boolean condition. + * Runs an effect conditionally based on the result of an effectful boolean + * condition. * - * **Details** + * **When to use** * - * This function allows you to run an effect only if a given condition evaluates - * to `true`. If the condition is `true`, the effect is executed, and its result - * is wrapped in an `Option.some`. If the condition is `false`, the effect is - * skipped, and the result is `Option.none`. + * Use when you need an effectful check to decide whether another effect should + * run while representing the skipped case explicitly. * - * **When to Use** + * **Details** + * + * The condition effect is evaluated first. If it succeeds with `true`, the + * source effect is run and its success value is wrapped in `Option.some`. If it + * succeeds with `false`, the source effect is skipped and the result is + * `Option.none`. If the condition effect fails, that failure is preserved. * - * This function is useful for scenarios where you need to dynamically decide - * whether to execute an effect based on runtime logic, while also representing - * the skipped case explicitly. + * **Example** (Conditionally running an effect) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -8693,30 +9277,28 @@ export declare const filterMapOrFail: { * // { _id: 'Option', _tag: 'Some', value: undefined } * ``` * - * @see {@link whenEffect} for a version that allows the condition to be an effect. - * @see {@link unless} for a version that executes the effect when the condition is `false`. - * + * @category conditional operators * @since 2.0.0 - * @category Conditional Operators */ export declare const when: { /** - * Conditionally executes an effect based on a boolean condition. + * Runs an effect conditionally based on the result of an effectful boolean + * condition. * - * **Details** + * **When to use** * - * This function allows you to run an effect only if a given condition evaluates - * to `true`. If the condition is `true`, the effect is executed, and its result - * is wrapped in an `Option.some`. If the condition is `false`, the effect is - * skipped, and the result is `Option.none`. + * Use when you need an effectful check to decide whether another effect should + * run while representing the skipped case explicitly. * - * **When to Use** + * **Details** + * + * The condition effect is evaluated first. If it succeeds with `true`, the + * source effect is run and its success value is wrapped in `Option.some`. If it + * succeeds with `false`, the source effect is skipped and the result is + * `Option.none`. If the condition effect fails, that failure is preserved. * - * This function is useful for scenarios where you need to dynamically decide - * whether to execute an effect based on runtime logic, while also representing - * the skipped case explicitly. + * **Example** (Conditionally running an effect) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -8732,30 +9314,28 @@ export declare const when: { * // { _id: 'Option', _tag: 'Some', value: undefined } * ``` * - * @see {@link whenEffect} for a version that allows the condition to be an effect. - * @see {@link unless} for a version that executes the effect when the condition is `false`. - * + * @category conditional operators * @since 2.0.0 - * @category Conditional Operators */ (condition: Effect): (self: Effect) => Effect, E | E2, R | R2>; /** - * Conditionally executes an effect based on a boolean condition. + * Runs an effect conditionally based on the result of an effectful boolean + * condition. * - * **Details** + * **When to use** * - * This function allows you to run an effect only if a given condition evaluates - * to `true`. If the condition is `true`, the effect is executed, and its result - * is wrapped in an `Option.some`. If the condition is `false`, the effect is - * skipped, and the result is `Option.none`. + * Use when you need an effectful check to decide whether another effect should + * run while representing the skipped case explicitly. * - * **When to Use** + * **Details** + * + * The condition effect is evaluated first. If it succeeds with `true`, the + * source effect is run and its success value is wrapped in `Option.some`. If it + * succeeds with `false`, the source effect is skipped and the result is + * `Option.none`. If the condition effect fails, that failure is preserved. * - * This function is useful for scenarios where you need to dynamically decide - * whether to execute an effect based on runtime logic, while also representing - * the skipped case explicitly. + * **Example** (Conditionally running an effect) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -8771,11 +9351,8 @@ export declare const when: { * // { _id: 'Option', _tag: 'Some', value: undefined } * ``` * - * @see {@link whenEffect} for a version that allows the condition to be an effect. - * @see {@link unless} for a version that executes the effect when the condition is `false`. - * + * @category conditional operators * @since 2.0.0 - * @category Conditional Operators */ (self: Effect, condition: Effect): Effect, E | E2, R | R2>; }; @@ -8783,6 +9360,11 @@ export declare const when: { * Handles both success and failure cases of an effect without performing side * effects. * + * **When to use** + * + * Use when you need to fold an `Effect` into a value by handling success and + * failure differently without triggering side effects. + * * **Details** * * `match` lets you define custom handlers for both success and failure @@ -8790,16 +9372,9 @@ export declare const when: { * to process the result if the effect succeeds, or handle the error if the * effect fails. * - * **When to Use** - * - * This is useful for structuring your code to respond differently to success or - * failure without triggering side effects. - * - * @see {@link matchEffect} if you need to perform side effects in the handlers. + * **Example** (Matching success and failure values) * - * @example * ```ts - * // Title: Handling Both Success and Failure Cases * import { Data, Effect } from "effect" * * class ExampleError extends Data.TaggedError("ExampleError")<{ readonly message: string }> {} @@ -8829,14 +9404,20 @@ export declare const when: { * // Output: "failure: Uh oh!" * ``` * + * @see {@link matchEffect} if you need to perform side effects in the handlers. + * @category pattern matching * @since 2.0.0 - * @category Pattern Matching */ export declare const match: { /** * Handles both success and failure cases of an effect without performing side * effects. * + * **When to use** + * + * Use when you need to fold an `Effect` into a value by handling success and + * failure differently without triggering side effects. + * * **Details** * * `match` lets you define custom handlers for both success and failure @@ -8844,16 +9425,9 @@ export declare const match: { * to process the result if the effect succeeds, or handle the error if the * effect fails. * - * **When to Use** - * - * This is useful for structuring your code to respond differently to success or - * failure without triggering side effects. + * **Example** (Matching success and failure values) * - * @see {@link matchEffect} if you need to perform side effects in the handlers. - * - * @example * ```ts - * // Title: Handling Both Success and Failure Cases * import { Data, Effect } from "effect" * * class ExampleError extends Data.TaggedError("ExampleError")<{ readonly message: string }> {} @@ -8883,8 +9457,9 @@ export declare const match: { * // Output: "failure: Uh oh!" * ``` * + * @see {@link matchEffect} if you need to perform side effects in the handlers. + * @category pattern matching * @since 2.0.0 - * @category Pattern Matching */ (options: { readonly onFailure: (error: E) => A2; @@ -8894,6 +9469,11 @@ export declare const match: { * Handles both success and failure cases of an effect without performing side * effects. * + * **When to use** + * + * Use when you need to fold an `Effect` into a value by handling success and + * failure differently without triggering side effects. + * * **Details** * * `match` lets you define custom handlers for both success and failure @@ -8901,16 +9481,9 @@ export declare const match: { * to process the result if the effect succeeds, or handle the error if the * effect fails. * - * **When to Use** - * - * This is useful for structuring your code to respond differently to success or - * failure without triggering side effects. - * - * @see {@link matchEffect} if you need to perform side effects in the handlers. + * **Example** (Matching success and failure values) * - * @example * ```ts - * // Title: Handling Both Success and Failure Cases * import { Data, Effect } from "effect" * * class ExampleError extends Data.TaggedError("ExampleError")<{ readonly message: string }> {} @@ -8940,8 +9513,9 @@ export declare const match: { * // Output: "failure: Uh oh!" * ``` * + * @see {@link matchEffect} if you need to perform side effects in the handlers. + * @category pattern matching * @since 2.0.0 - * @category Pattern Matching */ (self: Effect, options: { readonly onFailure: (error: E) => A2; @@ -8952,6 +9526,11 @@ export declare const match: { * Handles both success and failure cases of an effect without performing side * effects, with eager evaluation for resolved effects. * + * **When to use** + * + * Use when you need to handle both success and failure cases of an + * already-resolved `Effect` with optimized handling. + * * **Details** * * `matchEager` works like `match` but provides better performance for resolved @@ -8959,13 +9538,8 @@ export declare const match: { * the handlers immediately without fiber scheduling. For unresolved effects, * it falls back to the regular `match` behavior. * - * **When to Use** - * - * Use this when you need to handle both success and failure cases and want - * optimal performance for resolved effects. This is particularly useful in - * scenarios where you frequently work with already computed values. + * **Example** (Pattern matching eagerly when possible) * - * @example * ```ts * import { Effect } from "effect" * @@ -8980,15 +9554,19 @@ export declare const match: { * * @see {@link match} for the non-eager version. * @see {@link matchEffect} if you need to perform side effects in the handlers. - * - * @since 2.0.0 - * @category Pattern Matching + * @category pattern matching + * @since 4.0.0 */ export declare const matchEager: { /** * Handles both success and failure cases of an effect without performing side * effects, with eager evaluation for resolved effects. * + * **When to use** + * + * Use when you need to handle both success and failure cases of an + * already-resolved `Effect` with optimized handling. + * * **Details** * * `matchEager` works like `match` but provides better performance for resolved @@ -8996,13 +9574,8 @@ export declare const matchEager: { * the handlers immediately without fiber scheduling. For unresolved effects, * it falls back to the regular `match` behavior. * - * **When to Use** - * - * Use this when you need to handle both success and failure cases and want - * optimal performance for resolved effects. This is particularly useful in - * scenarios where you frequently work with already computed values. + * **Example** (Pattern matching eagerly when possible) * - * @example * ```ts * import { Effect } from "effect" * @@ -9017,9 +9590,8 @@ export declare const matchEager: { * * @see {@link match} for the non-eager version. * @see {@link matchEffect} if you need to perform side effects in the handlers. - * - * @since 2.0.0 - * @category Pattern Matching + * @category pattern matching + * @since 4.0.0 */ (options: { readonly onFailure: (error: E) => A2; @@ -9029,6 +9601,11 @@ export declare const matchEager: { * Handles both success and failure cases of an effect without performing side * effects, with eager evaluation for resolved effects. * + * **When to use** + * + * Use when you need to handle both success and failure cases of an + * already-resolved `Effect` with optimized handling. + * * **Details** * * `matchEager` works like `match` but provides better performance for resolved @@ -9036,13 +9613,8 @@ export declare const matchEager: { * the handlers immediately without fiber scheduling. For unresolved effects, * it falls back to the regular `match` behavior. * - * **When to Use** - * - * Use this when you need to handle both success and failure cases and want - * optimal performance for resolved effects. This is particularly useful in - * scenarios where you frequently work with already computed values. + * **Example** (Pattern matching eagerly when possible) * - * @example * ```ts * import { Effect } from "effect" * @@ -9057,9 +9629,8 @@ export declare const matchEager: { * * @see {@link match} for the non-eager version. * @see {@link matchEffect} if you need to perform side effects in the handlers. - * - * @since 2.0.0 - * @category Pattern Matching + * @category pattern matching + * @since 4.0.0 */ (self: Effect, options: { readonly onFailure: (error: E) => A2; @@ -9069,18 +9640,18 @@ export declare const matchEager: { /** * Handles failures by matching the cause of failure. * + * **When to use** + * + * Use when you need to fold an `Effect` while the failure handler inspects the + * full `Cause`. + * * **Details** * * The `matchCause` function allows you to handle failures with access to the * full cause of the failure within a fiber. * - * **When to Use** - * - * This is useful for differentiating between different types of errors, such as - * regular failures, defects, or interruptions. You can provide specific - * handling logic for each failure type based on the cause. + * **Example** (Matching on success or failure causes) * - * @example * ```ts * import { Cause, Effect } from "effect" * @@ -9098,26 +9669,25 @@ export declare const matchEager: { * @see {@link matchCauseEffect} if you need to perform side effects in the * handlers. * @see {@link match} if you don't need to handle the cause of the failure. - * + * @category pattern matching * @since 2.0.0 - * @category Pattern Matching */ export declare const matchCause: { /** * Handles failures by matching the cause of failure. * + * **When to use** + * + * Use when you need to fold an `Effect` while the failure handler inspects the + * full `Cause`. + * * **Details** * * The `matchCause` function allows you to handle failures with access to the * full cause of the failure within a fiber. * - * **When to Use** - * - * This is useful for differentiating between different types of errors, such as - * regular failures, defects, or interruptions. You can provide specific - * handling logic for each failure type based on the cause. + * **Example** (Matching on success or failure causes) * - * @example * ```ts * import { Cause, Effect } from "effect" * @@ -9135,9 +9705,8 @@ export declare const matchCause: { * @see {@link matchCauseEffect} if you need to perform side effects in the * handlers. * @see {@link match} if you don't need to handle the cause of the failure. - * + * @category pattern matching * @since 2.0.0 - * @category Pattern Matching */ (options: { readonly onFailure: (cause: Cause.Cause) => A2; @@ -9146,18 +9715,18 @@ export declare const matchCause: { /** * Handles failures by matching the cause of failure. * + * **When to use** + * + * Use when you need to fold an `Effect` while the failure handler inspects the + * full `Cause`. + * * **Details** * * The `matchCause` function allows you to handle failures with access to the * full cause of the failure within a fiber. * - * **When to Use** - * - * This is useful for differentiating between different types of errors, such as - * regular failures, defects, or interruptions. You can provide specific - * handling logic for each failure type based on the cause. + * **Example** (Matching on success or failure causes) * - * @example * ```ts * import { Cause, Effect } from "effect" * @@ -9175,9 +9744,8 @@ export declare const matchCause: { * @see {@link matchCauseEffect} if you need to perform side effects in the * handlers. * @see {@link match} if you don't need to handle the cause of the failure. - * + * @category pattern matching * @since 2.0.0 - * @category Pattern Matching */ (self: Effect, options: { readonly onFailure: (cause: Cause.Cause) => A2; @@ -9187,19 +9755,19 @@ export declare const matchCause: { /** * Handles failures by matching the cause of failure with eager evaluation. * + * **When to use** + * + * Use when you expect an `Effect` to already be resolved and want to match the + * `Cause` without regular effect pipeline overhead. + * * **Details** * * `matchCauseEager` works like `matchCause` but provides better performance for resolved * effects by immediately applying the matching function instead of deferring it * through the effect pipeline. * - * **When to Use** - * - * This is useful when you have effects that are likely to be already resolved - * and you want to avoid the overhead of the effect pipeline. For pending effects, - * it automatically falls back to the regular `matchCause` behavior. + * **Example** (Eagerly matching already completed effects) * - * @example * ```ts * import { Effect } from "effect" * @@ -9209,26 +9777,26 @@ export declare const matchCause: { * }) * ``` * - * @since 3.8.0 - * @category Pattern Matching + * @category pattern matching + * @since 4.0.0 */ export declare const matchCauseEager: { /** * Handles failures by matching the cause of failure with eager evaluation. * + * **When to use** + * + * Use when you expect an `Effect` to already be resolved and want to match the + * `Cause` without regular effect pipeline overhead. + * * **Details** * * `matchCauseEager` works like `matchCause` but provides better performance for resolved * effects by immediately applying the matching function instead of deferring it * through the effect pipeline. * - * **When to Use** - * - * This is useful when you have effects that are likely to be already resolved - * and you want to avoid the overhead of the effect pipeline. For pending effects, - * it automatically falls back to the regular `matchCause` behavior. + * **Example** (Eagerly matching already completed effects) * - * @example * ```ts * import { Effect } from "effect" * @@ -9238,8 +9806,8 @@ export declare const matchCauseEager: { * }) * ``` * - * @since 3.8.0 - * @category Pattern Matching + * @category pattern matching + * @since 4.0.0 */ (options: { readonly onFailure: (cause: Cause.Cause) => A2; @@ -9248,19 +9816,19 @@ export declare const matchCauseEager: { /** * Handles failures by matching the cause of failure with eager evaluation. * + * **When to use** + * + * Use when you expect an `Effect` to already be resolved and want to match the + * `Cause` without regular effect pipeline overhead. + * * **Details** * * `matchCauseEager` works like `matchCause` but provides better performance for resolved * effects by immediately applying the matching function instead of deferring it * through the effect pipeline. * - * **When to Use** - * - * This is useful when you have effects that are likely to be already resolved - * and you want to avoid the overhead of the effect pipeline. For pending effects, - * it automatically falls back to the regular `matchCause` behavior. + * **Example** (Eagerly matching already completed effects) * - * @example * ```ts * import { Effect } from "effect" * @@ -9270,8 +9838,8 @@ export declare const matchCauseEager: { * }) * ``` * - * @since 3.8.0 - * @category Pattern Matching + * @category pattern matching + * @since 4.0.0 */ (self: Effect, options: { readonly onFailure: (cause: Cause.Cause) => A2; @@ -9279,36 +9847,69 @@ export declare const matchCauseEager: { }): Effect; }; /** - * Eagerly handles success or failure with effectful handlers when the effect is already resolved. + * Handles success or failure eagerly with effectful handlers when the effect is already resolved. + * + * **When to use** + * + * Use when you need effectful success and cause-aware failure handlers for + * `Effect` inputs that may already be resolved. + * + * **Details** * * If the effect is an `Exit`, the matching handler runs immediately; otherwise it behaves like * {@link matchCauseEffect}. * + * @see {@link matchCauseEffect} for the non-eager effectful variant + * @see {@link matchCauseEager} for eager cause matching with pure handlers + * @see {@link matchEffect} for effectful matching on typed failures instead of full causes + * + * @category pattern matching * @since 4.0.0 - * @category Pattern Matching */ export declare const matchCauseEffectEager: { /** - * Eagerly handles success or failure with effectful handlers when the effect is already resolved. + * Handles success or failure eagerly with effectful handlers when the effect is already resolved. + * + * **When to use** + * + * Use when you need effectful success and cause-aware failure handlers for + * `Effect` inputs that may already be resolved. + * + * **Details** * * If the effect is an `Exit`, the matching handler runs immediately; otherwise it behaves like * {@link matchCauseEffect}. * + * @see {@link matchCauseEffect} for the non-eager effectful variant + * @see {@link matchCauseEager} for eager cause matching with pure handlers + * @see {@link matchEffect} for effectful matching on typed failures instead of full causes + * + * @category pattern matching * @since 4.0.0 - * @category Pattern Matching */ (options: { readonly onFailure: (cause: Cause.Cause) => Effect; readonly onSuccess: (a: A) => Effect; }): (self: Effect) => Effect; /** - * Eagerly handles success or failure with effectful handlers when the effect is already resolved. + * Handles success or failure eagerly with effectful handlers when the effect is already resolved. + * + * **When to use** + * + * Use when you need effectful success and cause-aware failure handlers for + * `Effect` inputs that may already be resolved. + * + * **Details** * * If the effect is an `Exit`, the matching handler runs immediately; otherwise it behaves like * {@link matchCauseEffect}. * + * @see {@link matchCauseEffect} for the non-eager effectful variant + * @see {@link matchCauseEager} for eager cause matching with pure handlers + * @see {@link matchEffect} for effectful matching on typed failures instead of full causes + * + * @category pattern matching * @since 4.0.0 - * @category Pattern Matching */ (self: Effect, options: { readonly onFailure: (cause: Cause.Cause) => Effect; @@ -9318,6 +9919,11 @@ export declare const matchCauseEffectEager: { /** * Handles failures with access to the cause and allows performing side effects. * + * **When to use** + * + * Use when you need to fold an `Effect` with effectful success handlers and + * `Cause`-aware failure handlers. + * * **Details** * * The `matchCauseEffect` function works similarly to {@link matchCause}, but it @@ -9327,7 +9933,8 @@ export declare const matchCauseEffectEager: { * you to respond accordingly while performing side effects (like logging or * other operations). * - * @example + * **Example** (Effectfully matching on causes) + * * ```ts * import { Cause, Console, Data, Effect, Result } from "effect" * @@ -9365,13 +9972,18 @@ export declare const matchCauseEffectEager: { * @see {@link matchCause} if you don't need side effects and only want to handle the result or failure. * @see {@link matchEffect} if you don't need to handle the cause of the failure. * + * @category pattern matching * @since 2.0.0 - * @category Pattern Matching */ export declare const matchCauseEffect: { /** * Handles failures with access to the cause and allows performing side effects. * + * **When to use** + * + * Use when you need to fold an `Effect` with effectful success handlers and + * `Cause`-aware failure handlers. + * * **Details** * * The `matchCauseEffect` function works similarly to {@link matchCause}, but it @@ -9381,7 +9993,8 @@ export declare const matchCauseEffect: { * you to respond accordingly while performing side effects (like logging or * other operations). * - * @example + * **Example** (Effectfully matching on causes) + * * ```ts * import { Cause, Console, Data, Effect, Result } from "effect" * @@ -9419,8 +10032,8 @@ export declare const matchCauseEffect: { * @see {@link matchCause} if you don't need side effects and only want to handle the result or failure. * @see {@link matchEffect} if you don't need to handle the cause of the failure. * + * @category pattern matching * @since 2.0.0 - * @category Pattern Matching */ (options: { readonly onFailure: (cause: Cause.Cause) => Effect; @@ -9429,6 +10042,11 @@ export declare const matchCauseEffect: { /** * Handles failures with access to the cause and allows performing side effects. * + * **When to use** + * + * Use when you need to fold an `Effect` with effectful success handlers and + * `Cause`-aware failure handlers. + * * **Details** * * The `matchCauseEffect` function works similarly to {@link matchCause}, but it @@ -9438,7 +10056,8 @@ export declare const matchCauseEffect: { * you to respond accordingly while performing side effects (like logging or * other operations). * - * @example + * **Example** (Effectfully matching on causes) + * * ```ts * import { Cause, Console, Data, Effect, Result } from "effect" * @@ -9476,8 +10095,8 @@ export declare const matchCauseEffect: { * @see {@link matchCause} if you don't need side effects and only want to handle the result or failure. * @see {@link matchEffect} if you don't need to handle the cause of the failure. * + * @category pattern matching * @since 2.0.0 - * @category Pattern Matching */ (self: Effect, options: { readonly onFailure: (cause: Cause.Cause) => Effect; @@ -9485,25 +10104,22 @@ export declare const matchCauseEffect: { }): Effect; }; /** - * Handles both success and failure cases of an effect, allowing for additional - * side effects. + * Handles both success and failure by running effectful handlers. * - * **Details** + * **When to use** * - * The `matchEffect` function is similar to {@link match}, but it enables you to - * perform side effects in the handlers for both success and failure outcomes. + * Use when you need to handle an `Effect`'s failure or success with handlers + * that return effects. * - * **When to Use** + * **Details** * - * This is useful when you need to execute additional actions, like logging or - * notifying users, based on whether an effect succeeds or fails. + * Use `matchEffect` when either branch needs to return an `Effect`, such as + * performing logging, recovery, notification, or other effectful work. The + * returned effect succeeds or fails according to the handler that is run. * - * @see {@link match} if you don't need side effects and only want to handle the - * result or failure. + * **Example** (Matching success and failure with effectful handlers) * - * @example * ```ts - * // Title: Handling Both Success and Failure Cases with Side Effects * import { Data, Effect } from "effect" * * class ExampleError extends Data.TaggedError("ExampleError")<{ readonly message: string }> {} @@ -9542,30 +10158,29 @@ export declare const matchCauseEffect: { * // failure: Uh oh! * ``` * + * @see {@link match} if you don't need side effects and only want to handle the + * result or failure. + * @category pattern matching * @since 2.0.0 - * @category Pattern Matching */ export declare const matchEffect: { /** - * Handles both success and failure cases of an effect, allowing for additional - * side effects. + * Handles both success and failure by running effectful handlers. * - * **Details** + * **When to use** * - * The `matchEffect` function is similar to {@link match}, but it enables you to - * perform side effects in the handlers for both success and failure outcomes. + * Use when you need to handle an `Effect`'s failure or success with handlers + * that return effects. * - * **When to Use** + * **Details** * - * This is useful when you need to execute additional actions, like logging or - * notifying users, based on whether an effect succeeds or fails. + * Use `matchEffect` when either branch needs to return an `Effect`, such as + * performing logging, recovery, notification, or other effectful work. The + * returned effect succeeds or fails according to the handler that is run. * - * @see {@link match} if you don't need side effects and only want to handle the - * result or failure. + * **Example** (Matching success and failure with effectful handlers) * - * @example * ```ts - * // Title: Handling Both Success and Failure Cases with Side Effects * import { Data, Effect } from "effect" * * class ExampleError extends Data.TaggedError("ExampleError")<{ readonly message: string }> {} @@ -9604,33 +10219,32 @@ export declare const matchEffect: { * // failure: Uh oh! * ``` * + * @see {@link match} if you don't need side effects and only want to handle the + * result or failure. + * @category pattern matching * @since 2.0.0 - * @category Pattern Matching */ (options: { readonly onFailure: (e: E) => Effect; readonly onSuccess: (a: A) => Effect; }): (self: Effect) => Effect; /** - * Handles both success and failure cases of an effect, allowing for additional - * side effects. + * Handles both success and failure by running effectful handlers. * - * **Details** + * **When to use** * - * The `matchEffect` function is similar to {@link match}, but it enables you to - * perform side effects in the handlers for both success and failure outcomes. + * Use when you need to handle an `Effect`'s failure or success with handlers + * that return effects. * - * **When to Use** + * **Details** * - * This is useful when you need to execute additional actions, like logging or - * notifying users, based on whether an effect succeeds or fails. + * Use `matchEffect` when either branch needs to return an `Effect`, such as + * performing logging, recovery, notification, or other effectful work. The + * returned effect succeeds or fails according to the handler that is run. * - * @see {@link match} if you don't need side effects and only want to handle the - * result or failure. + * **Example** (Matching success and failure with effectful handlers) * - * @example * ```ts - * // Title: Handling Both Success and Failure Cases with Side Effects * import { Data, Effect } from "effect" * * class ExampleError extends Data.TaggedError("ExampleError")<{ readonly message: string }> {} @@ -9669,8 +10283,10 @@ export declare const matchEffect: { * // failure: Uh oh! * ``` * + * @see {@link match} if you don't need side effects and only want to handle the + * result or failure. + * @category pattern matching * @since 2.0.0 - * @category Pattern Matching */ (self: Effect, options: { readonly onFailure: (e: E) => Effect; @@ -9680,9 +10296,11 @@ export declare const matchEffect: { /** * Determines whether an effect fails. * + * **Details** + * * Defects are not converted; if the effect dies, the resulting effect dies too. * - * **Example** + * **Example** (Checking whether an effect fails) * * ```ts * import { Console, Effect } from "effect" @@ -9696,17 +10314,19 @@ export declare const matchEffect: { * // Output: true * ``` * + * @category condition checking * @since 2.0.0 - * @category Condition Checking */ export declare const isFailure: (self: Effect) => Effect; /** * Returns whether an effect completes successfully. * + * **Details** + * * Returns `false` for failures in the error channel, but defects still fail the * effect. * - * **Example** + * **Example** (Checking whether an effect succeeds) * * ```ts * import { Console, Effect } from "effect" @@ -9724,20 +10344,27 @@ export declare const isFailure: (self: Effect) => Effect(self: Effect) => Effect; /** * Returns the complete context. * + * **When to use** + * + * Use to read the complete `Context` available to the current effect. + * + * **Details** + * * This function allows you to access all services that are currently available * in the effect's environment. This can be useful for debugging, introspection, * or when you need to pass the entire context to another function. * - * @example + * **Example** (Reading the full context) + * * ```ts - * import { Console, Effect, Option, Context } from "effect" + * import { Console, Context, Effect, Option } from "effect" * * const Logger = Context.Service<{ * log: (msg: string) => void @@ -9763,20 +10390,30 @@ export declare const isSuccess: (self: Effect) => Effect() => Effect, never, R>; /** * Transforms the current context using the provided function. * + * **When to use** + * + * Use to derive an effect from the complete `Context`. + * + * **Details** + * * This function allows you to access the complete context and perform * computations based on all available services. This is useful when you need * to conditionally execute logic based on what services are available. * - * @example + * **Example** (Deriving values from the context) + * * ```ts - * import { Console, Effect, Option, Context } from "effect" + * import { Console, Context, Effect, Option } from "effect" * * const Logger = Context.Service<{ * log: (msg: string) => void @@ -9808,8 +10445,11 @@ export declare const context: () => Effect, never, * }) * ``` * + * @see {@link context} for reading the complete context as a value + * @see {@link service} for reading one service from the context + * + * @category environment * @since 2.0.0 - * @category Environment */ export declare const contextWith: (f: (context: Context.Context) => Effect) => Effect; /** @@ -9817,9 +10457,10 @@ export declare const contextWith: (f: (context: Context.Context) * to build the layer every time; by default, layers are shared between provide * calls. * - * @example + * **Example** (Providing dependencies with a layer) + * * ```ts - * import { Effect, Layer, Context } from "effect" + * import { Context, Effect, Layer } from "effect" * * interface Database { * readonly query: (sql: string) => Effect.Effect @@ -9842,8 +10483,8 @@ export declare const contextWith: (f: (context: Context.Context) * // Output: "Result for: SELECT * FROM users" * ``` * + * @category environment * @since 2.0.0 - * @category Environment */ export declare const provide: { /** @@ -9851,9 +10492,10 @@ export declare const provide: { * to build the layer every time; by default, layers are shared between provide * calls. * - * @example + * **Example** (Providing dependencies with a layer) + * * ```ts - * import { Effect, Layer, Context } from "effect" + * import { Context, Effect, Layer } from "effect" * * interface Database { * readonly query: (sql: string) => Effect.Effect @@ -9876,8 +10518,8 @@ export declare const provide: { * // Output: "Result for: SELECT * FROM users" * ``` * + * @category environment * @since 2.0.0 - * @category Environment */ ]>(layers: Layers, options?: { readonly local?: boolean | undefined; @@ -9887,9 +10529,10 @@ export declare const provide: { * to build the layer every time; by default, layers are shared between provide * calls. * - * @example + * **Example** (Providing dependencies with a layer) + * * ```ts - * import { Effect, Layer, Context } from "effect" + * import { Context, Effect, Layer } from "effect" * * interface Database { * readonly query: (sql: string) => Effect.Effect @@ -9912,8 +10555,8 @@ export declare const provide: { * // Output: "Result for: SELECT * FROM users" * ``` * + * @category environment * @since 2.0.0 - * @category Environment */ (layer: Layer.Layer, options?: { readonly local?: boolean | undefined; @@ -9923,9 +10566,10 @@ export declare const provide: { * to build the layer every time; by default, layers are shared between provide * calls. * - * @example + * **Example** (Providing dependencies with a layer) + * * ```ts - * import { Effect, Layer, Context } from "effect" + * import { Context, Effect, Layer } from "effect" * * interface Database { * readonly query: (sql: string) => Effect.Effect @@ -9948,8 +10592,8 @@ export declare const provide: { * // Output: "Result for: SELECT * FROM users" * ``` * + * @category environment * @since 2.0.0 - * @category Environment */ (context: Context.Context): (self: Effect) => Effect>; /** @@ -9957,9 +10601,10 @@ export declare const provide: { * to build the layer every time; by default, layers are shared between provide * calls. * - * @example + * **Example** (Providing dependencies with a layer) + * * ```ts - * import { Effect, Layer, Context } from "effect" + * import { Context, Effect, Layer } from "effect" * * interface Database { * readonly query: (sql: string) => Effect.Effect @@ -9982,8 +10627,8 @@ export declare const provide: { * // Output: "Result for: SELECT * FROM users" * ``` * + * @category environment * @since 2.0.0 - * @category Environment */ ]>(self: Effect, layers: Layers, options?: { readonly local?: boolean | undefined; @@ -9993,9 +10638,10 @@ export declare const provide: { * to build the layer every time; by default, layers are shared between provide * calls. * - * @example + * **Example** (Providing dependencies with a layer) + * * ```ts - * import { Effect, Layer, Context } from "effect" + * import { Context, Effect, Layer } from "effect" * * interface Database { * readonly query: (sql: string) => Effect.Effect @@ -10018,8 +10664,8 @@ export declare const provide: { * // Output: "Result for: SELECT * FROM users" * ``` * + * @category environment * @since 2.0.0 - * @category Environment */ (self: Effect, layer: Layer.Layer, options?: { readonly local?: boolean | undefined; @@ -10029,9 +10675,10 @@ export declare const provide: { * to build the layer every time; by default, layers are shared between provide * calls. * - * @example + * **Example** (Providing dependencies with a layer) + * * ```ts - * import { Effect, Layer, Context } from "effect" + * import { Context, Effect, Layer } from "effect" * * interface Database { * readonly query: (sql: string) => Effect.Effect @@ -10054,8 +10701,8 @@ export declare const provide: { * // Output: "Result for: SELECT * FROM users" * ``` * + * @category environment * @since 2.0.0 - * @category Environment */ (self: Effect, context: Context.Context): Effect>; }; @@ -10068,9 +10715,10 @@ export declare const provide: { * that contains all the required services. It removes the provided services * from the effect's requirements, making them available to the effect. * - * @example + * **Example** (Providing a complete context) + * * ```ts - * import { Effect, Context } from "effect" + * import { Context, Effect } from "effect" * * // Define service keys * const Logger = Context.Service<{ @@ -10095,8 +10743,8 @@ export declare const provide: { * const provided = Effect.provideContext(program, context) * ``` * - * @since 2.0.0 - * @category Environment + * @category environment + * @since 4.0.0 */ export declare const provideContext: { /** @@ -10108,9 +10756,10 @@ export declare const provideContext: { * that contains all the required services. It removes the provided services * from the effect's requirements, making them available to the effect. * - * @example + * **Example** (Providing a complete context) + * * ```ts - * import { Effect, Context } from "effect" + * import { Context, Effect } from "effect" * * // Define service keys * const Logger = Context.Service<{ @@ -10135,8 +10784,8 @@ export declare const provideContext: { * const provided = Effect.provideContext(program, context) * ``` * - * @since 2.0.0 - * @category Environment + * @category environment + * @since 4.0.0 */ (context: Context.Context): (self: Effect) => Effect>; /** @@ -10148,9 +10797,10 @@ export declare const provideContext: { * that contains all the required services. It removes the provided services * from the effect's requirements, making them available to the effect. * - * @example + * **Example** (Providing a complete context) + * * ```ts - * import { Effect, Context } from "effect" + * import { Context, Effect } from "effect" * * // Define service keys * const Logger = Context.Service<{ @@ -10175,17 +10825,18 @@ export declare const provideContext: { * const provided = Effect.provideContext(program, context) * ``` * - * @since 2.0.0 - * @category Environment + * @category environment + * @since 4.0.0 */ (self: Effect, context: Context.Context): Effect>; }; /** * Accesses a service from the context. * - * @example + * **Example** (Accessing a required service) + * * ```ts - * import { Effect, Context } from "effect" + * import { Context, Effect } from "effect" * * interface Database { * readonly query: (sql: string) => Effect.Effect @@ -10199,13 +10850,18 @@ export declare const provideContext: { * }) * ``` * + * @category context * @since 4.0.0 - * @category Context */ export declare const service: (service: Context.Key) => Effect; /** * Optionally accesses a service from the environment. * + * **When to use** + * + * Use to read an optional dependency from the current context without making + * that dependency part of the effect's required environment. + * * **Details** * * This function attempts to access a service from the environment. If the @@ -10213,9 +10869,10 @@ export declare const service: (service: Context.Key) => Effect(service: Context.Key) => Effect(key: Context.Key) => Effect>; /** @@ -10246,9 +10903,10 @@ export declare const serviceOption: (key: Context.Key) => Effect(key: Context.Key) => Effect(f: (context: Context.Context) => Context.Context>): (self: Effect) => Effect; /** @@ -10328,9 +10987,10 @@ export declare const updateContext: { * This function allows you to transform the context required by an effect, * providing part of the context and leaving the rest to be fulfilled later. * - * @example + * **Example** (Updating the context before running) + * * ```ts - * import { Effect, Context } from "effect" + * import { Context, Effect } from "effect" * * // Define services * const Logger = Context.Service<{ @@ -10357,17 +11017,24 @@ export declare const updateContext: { * }) * ``` * + * @category context * @since 4.0.0 - * @category Context */ (self: Effect, f: (context: Context.Context) => Context.Context>): Effect; }; /** - * Updates the service with the required service entry. + * Runs an effect with a service implementation transformed by the provided + * function. + * + * **Details** + * + * The service must be available in the effect's context; `updateService` + * replaces it for the wrapped effect with the value returned by the updater. + * + * **Example** (Replacing a service for one effect) * - * @example * ```ts - * import { Console, Effect, Context } from "effect" + * import { Console, Context, Effect } from "effect" * * // Define a counter service * const Counter = Context.Service<{ count: number }>("Counter") @@ -10387,16 +11054,23 @@ export declare const updateContext: { * // 1 * ``` * + * @category context * @since 2.0.0 - * @category Context */ export declare const updateService: { /** - * Updates the service with the required service entry. + * Runs an effect with a service implementation transformed by the provided + * function. + * + * **Details** + * + * The service must be available in the effect's context; `updateService` + * replaces it for the wrapped effect with the value returned by the updater. + * + * **Example** (Replacing a service for one effect) * - * @example * ```ts - * import { Console, Effect, Context } from "effect" + * import { Console, Context, Effect } from "effect" * * // Define a counter service * const Counter = Context.Service<{ count: number }>("Counter") @@ -10416,16 +11090,23 @@ export declare const updateService: { * // 1 * ``` * + * @category context * @since 2.0.0 - * @category Context */ (service: Context.Key, f: (value: A) => A): (self: Effect) => Effect; /** - * Updates the service with the required service entry. + * Runs an effect with a service implementation transformed by the provided + * function. + * + * **Details** + * + * The service must be available in the effect's context; `updateService` + * replaces it for the wrapped effect with the value returned by the updater. + * + * **Example** (Replacing a service for one effect) * - * @example * ```ts - * import { Console, Effect, Context } from "effect" + * import { Console, Context, Effect } from "effect" * * // Define a counter service * const Counter = Context.Service<{ count: number }>("Counter") @@ -10445,26 +11126,27 @@ export declare const updateService: { * // 1 * ``` * + * @category context * @since 2.0.0 - * @category Context */ (self: Effect, service: Context.Key, f: (value: A) => A): Effect; }; /** - * The `provideService` function is used to provide an actual - * implementation for a service in the context of an effect. + * Provides one concrete service implementation to an effect. * - * This function allows you to associate a service with its implementation so - * that it can be used in your program. You define the service (e.g., a random - * number generator), and then you use `provideService` to link that - * service to its implementation. Once the implementation is provided, the - * effect can be run successfully without further requirements. + * **When to use** * - * @see {@link provide} for providing multiple layers to an effect. + * Use to satisfy one service requirement with an already-built implementation. + * + * **Details** + * + * The service requirement identified by the `Context.Key` is removed from the + * effect requirements after the implementation is provided. + * + * **Example** (Providing a service value) * - * @example * ```ts - * import { Console, Effect, Context } from "effect" + * import { Console, Context, Effect } from "effect" * * // Define a service for configuration * const Config = Context.Service<{ @@ -10492,25 +11174,29 @@ export declare const updateService: { * // data * ``` * + * @see {@link provide} for providing multiple layers to an effect. + * @see {@link provideServiceEffect} for acquiring the service implementation effectfully. + * @see {@link provideContext} for providing a complete context. + * @category context * @since 2.0.0 - * @category Context */ export declare const provideService: { /** - * The `provideService` function is used to provide an actual - * implementation for a service in the context of an effect. + * Provides one concrete service implementation to an effect. * - * This function allows you to associate a service with its implementation so - * that it can be used in your program. You define the service (e.g., a random - * number generator), and then you use `provideService` to link that - * service to its implementation. Once the implementation is provided, the - * effect can be run successfully without further requirements. + * **When to use** * - * @see {@link provide} for providing multiple layers to an effect. + * Use to satisfy one service requirement with an already-built implementation. + * + * **Details** + * + * The service requirement identified by the `Context.Key` is removed from the + * effect requirements after the implementation is provided. + * + * **Example** (Providing a service value) * - * @example * ```ts - * import { Console, Effect, Context } from "effect" + * import { Console, Context, Effect } from "effect" * * // Define a service for configuration * const Config = Context.Service<{ @@ -10538,25 +11224,29 @@ export declare const provideService: { * // data * ``` * + * @see {@link provide} for providing multiple layers to an effect. + * @see {@link provideServiceEffect} for acquiring the service implementation effectfully. + * @see {@link provideContext} for providing a complete context. + * @category context * @since 2.0.0 - * @category Context */ (service: Context.Key): { /** - * The `provideService` function is used to provide an actual - * implementation for a service in the context of an effect. + * Provides one concrete service implementation to an effect. * - * This function allows you to associate a service with its implementation so - * that it can be used in your program. You define the service (e.g., a random - * number generator), and then you use `provideService` to link that - * service to its implementation. Once the implementation is provided, the - * effect can be run successfully without further requirements. + * **When to use** * - * @see {@link provide} for providing multiple layers to an effect. + * Use to satisfy one service requirement with an already-built implementation. + * + * **Details** + * + * The service requirement identified by the `Context.Key` is removed from the + * effect requirements after the implementation is provided. + * + * **Example** (Providing a service value) * - * @example * ```ts - * import { Console, Effect, Context } from "effect" + * import { Console, Context, Effect } from "effect" * * // Define a service for configuration * const Config = Context.Service<{ @@ -10584,25 +11274,29 @@ export declare const provideService: { * // data * ``` * + * @see {@link provide} for providing multiple layers to an effect. + * @see {@link provideServiceEffect} for acquiring the service implementation effectfully. + * @see {@link provideContext} for providing a complete context. + * @category context * @since 2.0.0 - * @category Context */ (implementation: S): (self: Effect) => Effect>; /** - * The `provideService` function is used to provide an actual - * implementation for a service in the context of an effect. + * Provides one concrete service implementation to an effect. * - * This function allows you to associate a service with its implementation so - * that it can be used in your program. You define the service (e.g., a random - * number generator), and then you use `provideService` to link that - * service to its implementation. Once the implementation is provided, the - * effect can be run successfully without further requirements. + * **When to use** * - * @see {@link provide} for providing multiple layers to an effect. + * Use to satisfy one service requirement with an already-built implementation. + * + * **Details** + * + * The service requirement identified by the `Context.Key` is removed from the + * effect requirements after the implementation is provided. + * + * **Example** (Providing a service value) * - * @example * ```ts - * import { Console, Effect, Context } from "effect" + * import { Console, Context, Effect } from "effect" * * // Define a service for configuration * const Config = Context.Service<{ @@ -10630,26 +11324,30 @@ export declare const provideService: { * // data * ``` * + * @see {@link provide} for providing multiple layers to an effect. + * @see {@link provideServiceEffect} for acquiring the service implementation effectfully. + * @see {@link provideContext} for providing a complete context. + * @category context * @since 2.0.0 - * @category Context */ (self: Effect, implementation: S): Effect>; }; /** - * The `provideService` function is used to provide an actual - * implementation for a service in the context of an effect. + * Provides one concrete service implementation to an effect. * - * This function allows you to associate a service with its implementation so - * that it can be used in your program. You define the service (e.g., a random - * number generator), and then you use `provideService` to link that - * service to its implementation. Once the implementation is provided, the - * effect can be run successfully without further requirements. + * **When to use** * - * @see {@link provide} for providing multiple layers to an effect. + * Use to satisfy one service requirement with an already-built implementation. + * + * **Details** + * + * The service requirement identified by the `Context.Key` is removed from the + * effect requirements after the implementation is provided. + * + * **Example** (Providing a service value) * - * @example * ```ts - * import { Console, Effect, Context } from "effect" + * import { Console, Context, Effect } from "effect" * * // Define a service for configuration * const Config = Context.Service<{ @@ -10677,25 +11375,29 @@ export declare const provideService: { * // data * ``` * + * @see {@link provide} for providing multiple layers to an effect. + * @see {@link provideServiceEffect} for acquiring the service implementation effectfully. + * @see {@link provideContext} for providing a complete context. + * @category context * @since 2.0.0 - * @category Context */ (service: Context.Key, implementation: S): (self: Effect) => Effect>; /** - * The `provideService` function is used to provide an actual - * implementation for a service in the context of an effect. + * Provides one concrete service implementation to an effect. * - * This function allows you to associate a service with its implementation so - * that it can be used in your program. You define the service (e.g., a random - * number generator), and then you use `provideService` to link that - * service to its implementation. Once the implementation is provided, the - * effect can be run successfully without further requirements. + * **When to use** * - * @see {@link provide} for providing multiple layers to an effect. + * Use to satisfy one service requirement with an already-built implementation. + * + * **Details** + * + * The service requirement identified by the `Context.Key` is removed from the + * effect requirements after the implementation is provided. + * + * **Example** (Providing a service value) * - * @example * ```ts - * import { Console, Effect, Context } from "effect" + * import { Console, Context, Effect } from "effect" * * // Define a service for configuration * const Config = Context.Service<{ @@ -10723,24 +11425,33 @@ export declare const provideService: { * // data * ``` * + * @see {@link provide} for providing multiple layers to an effect. + * @see {@link provideServiceEffect} for acquiring the service implementation effectfully. + * @see {@link provideContext} for providing a complete context. + * @category context * @since 2.0.0 - * @category Context */ (self: Effect, service: Context.Key, implementation: S): Effect>; }; /** - * Provides the effect with the single service it requires. If the effect - * requires more than one service use `provide` instead. + * Provides one service to an effect using an effectful acquisition. + * + * **When to use** + * + * Use when the service implementation must be created by an effect and its + * acquisition failure should remain in the returned effect. + * + * **Details** + * + * `provideServiceEffect` runs the acquisition effect to produce the service + * implementation, removes that service from the wrapped effect's requirements, + * and leaves any other requirements to be provided later. Acquisition failures + * are included in the returned effect's error channel. * - * This function is similar to `provideService`, but instead of providing a - * static service implementation, it allows you to provide an effect that - * will produce the service. This is useful when the service needs to be - * acquired through an effectful computation (e.g., reading from a database, - * making an HTTP request, or allocating resources). + * **Example** (Providing a service with an effect) * - * @example * ```ts - * import { Console, Effect, Context } from "effect" + * import { Console, Context, Effect } from "effect" * * // Define a database connection service * interface DatabaseConnection { @@ -10777,23 +11488,29 @@ export declare const provideService: { * // Result for: SELECT * FROM users * ``` * + * @category context * @since 2.0.0 - * @category Context */ export declare const provideServiceEffect: { /** - * Provides the effect with the single service it requires. If the effect - * requires more than one service use `provide` instead. + * Provides one service to an effect using an effectful acquisition. * - * This function is similar to `provideService`, but instead of providing a - * static service implementation, it allows you to provide an effect that - * will produce the service. This is useful when the service needs to be - * acquired through an effectful computation (e.g., reading from a database, - * making an HTTP request, or allocating resources). + * **When to use** + * + * Use when the service implementation must be created by an effect and its + * acquisition failure should remain in the returned effect. + * + * **Details** + * + * `provideServiceEffect` runs the acquisition effect to produce the service + * implementation, removes that service from the wrapped effect's requirements, + * and leaves any other requirements to be provided later. Acquisition failures + * are included in the returned effect's error channel. + * + * **Example** (Providing a service with an effect) * - * @example * ```ts - * import { Console, Effect, Context } from "effect" + * import { Console, Context, Effect } from "effect" * * // Define a database connection service * interface DatabaseConnection { @@ -10830,23 +11547,29 @@ export declare const provideServiceEffect: { * // Result for: SELECT * FROM users * ``` * + * @category context * @since 2.0.0 - * @category Context */ (service: Context.Key, acquire: Effect): (self: Effect) => Effect | R2>; /** - * Provides the effect with the single service it requires. If the effect - * requires more than one service use `provide` instead. + * Provides one service to an effect using an effectful acquisition. + * + * **When to use** + * + * Use when the service implementation must be created by an effect and its + * acquisition failure should remain in the returned effect. + * + * **Details** + * + * `provideServiceEffect` runs the acquisition effect to produce the service + * implementation, removes that service from the wrapped effect's requirements, + * and leaves any other requirements to be provided later. Acquisition failures + * are included in the returned effect's error channel. * - * This function is similar to `provideService`, but instead of providing a - * static service implementation, it allows you to provide an effect that - * will produce the service. This is useful when the service needs to be - * acquired through an effectful computation (e.g., reading from a database, - * making an HTTP request, or allocating resources). + * **Example** (Providing a service with an effect) * - * @example * ```ts - * import { Console, Effect, Context } from "effect" + * import { Console, Context, Effect } from "effect" * * // Define a database connection service * interface DatabaseConnection { @@ -10883,15 +11606,16 @@ export declare const provideServiceEffect: { * // Result for: SELECT * FROM users * ``` * + * @category context * @since 2.0.0 - * @category Context */ (self: Effect, service: Context.Key, acquire: Effect): Effect | R2>; }; /** * Sets the concurrency level for parallel operations within an effect. * - * @example + * **Example** (Setting local concurrency) + * * ```ts * import { Console, Effect } from "effect" * @@ -10916,14 +11640,15 @@ export declare const provideServiceEffect: { * // [1, 2, 3, 4, 5] * ``` * + * @category references * @since 2.0.0 - * @category References */ export declare const withConcurrency: { /** * Sets the concurrency level for parallel operations within an effect. * - * @example + * **Example** (Setting local concurrency) + * * ```ts * import { Console, Effect } from "effect" * @@ -10948,14 +11673,15 @@ export declare const withConcurrency: { * // [1, 2, 3, 4, 5] * ``` * + * @category references * @since 2.0.0 - * @category References */ (concurrency: number | "unbounded"): (self: Effect) => Effect; /** * Sets the concurrency level for parallel operations within an effect. * - * @example + * **Example** (Setting local concurrency) + * * ```ts * import { Console, Effect } from "effect" * @@ -10980,15 +11706,16 @@ export declare const withConcurrency: { * // [1, 2, 3, 4, 5] * ``` * + * @category references * @since 2.0.0 - * @category References */ (self: Effect, concurrency: number | "unbounded"): Effect; }; /** * Returns the current scope for resource management. * - * @example + * **Example** (Accessing the current scope) + * * ```ts * import { Console, Effect } from "effect" * @@ -11013,16 +11740,24 @@ export declare const withConcurrency: { * // Releasing resource * ``` * + * @category resource management * @since 2.0.0 - * @category Resource Management & Finalization */ export declare const scope: Effect; /** - * Scopes all resources used in this workflow to the lifetime of the workflow, - * ensuring that their finalizers are run as soon as this workflow completes - * execution, whether by success, failure, or interruption. + * Runs an effect with a scope that closes when the effect completes. + * + * **When to use** + * + * Use to acquire scoped resources for the duration of a single workflow. + * + * **Details** + * + * Finalizers for resources acquired inside the workflow run as soon as the + * workflow completes, whether by success, failure, or interruption. + * + * **Example** (Running a scoped acquisition) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -11045,14 +11780,20 @@ export declare const scope: Effect; * // Output: "Releasing resource" * ``` * + * @category resource management * @since 2.0.0 - * @category Resource Management & Finalization */ export declare const scoped: (self: Effect) => Effect>; /** * Creates a scoped effect by providing access to the scope. * - * @example + * **When to use** + * + * Use when resource acquisition needs direct access to the scope being created, + * for example to register finalizers manually. + * + * **Example** (Working with an explicit scope) + * * ```ts * import { Console, Effect, Scope } from "effect" * @@ -11084,24 +11825,29 @@ export declare const scoped: (self: Effect) => Effect(f: (scope: Scope) => Effect) => Effect; /** - * This function constructs a scoped resource from an `acquire` and `release` - * `Effect` value. + * Constructs a scoped resource from an acquisition effect and a release + * finalizer. * - * If the `acquire` `Effect` value successfully completes execution, then the - * `release` `Effect` value will be added to the finalizers associated with the - * scope of this `Effect` value, and it is guaranteed to be run when the scope - * is closed. + * **When to use** * - * The `acquire` and `release` `Effect` values will be run uninterruptibly. - * Additionally, the `release` `Effect` value may depend on the `Exit` value - * specified when the scope is closed. + * Use to acquire a scoped resource with an explicit release finalizer. + * + * **Details** + * + * If acquisition succeeds, the release finalizer is added to the current scope + * and is guaranteed to run when that scope closes. The finalizer receives the + * `Exit` value used to close the scope. + * + * By default, acquisition is protected by an uninterruptible region. Pass + * `{ interruptible: true }` to allow the acquisition effect to be interrupted. + * + * **Example** (Acquiring and releasing a resource) * - * @example * ```ts * import { Console, Effect, Exit } from "effect" * @@ -11138,15 +11884,24 @@ export declare const scopedWith: (f: (scope: Scope) => Effect) * ) * ``` * + * @see {@link acquireDisposable} for resources that implement JavaScript disposal protocols + * @see {@link acquireUseRelease} for bracketing acquire, use, and release in one effect + * + * @category resource management * @since 2.0.0 - * @category Resource Management & Finalization */ export declare const acquireRelease: (acquire: Effect, release: (a: A, exit: Exit.Exit) => Effect, options?: { readonly interruptible?: boolean; }) => Effect; /** - * This function constructs a scoped resource from an Effect that acquires a - * disposable value. + * Acquires a scoped resource that implements JavaScript disposal protocols. + * + * **When to use** + * + * Use when you work with JavaScript `Disposable` or `AsyncDisposable` resources + * that should be closed with the surrounding scope. + * + * **Details** * * The resource is automatically disposed when the surrounding * {@link Scope} is closed, using {@link Symbol.dispose} for @@ -11154,15 +11909,15 @@ export declare const acquireRelease: (acquire: Effect, rel * disposables. * * This is similar to {@link acquireRelease}, but uses the standard - * JavaScript disposal protocal instead of requiring an explicit release - * function. + * JavaScript disposal protocol instead of requiring an explicit release + * function. It works with JavaScript `Disposable` and `AsyncDisposable` + * resources. * - * @see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/using} + * **Example** (Acquiring a disposable resource) * - * @example * ```ts * import sqlite from "node:sqlite"; - * import { Effect } from "effect"; + * import { Effect } from "effect" * * const program = Effect.scoped( * Effect.gen(function* () { @@ -11178,15 +11933,20 @@ export declare const acquireRelease: (acquire: Effect, rel * ) * ``` * + * @see {@link acquireRelease} for resources that need an explicit finalizer + * + * @category resource management * @since 4.0.0 - * @category Resource Management & Finalization */ export declare const acquireDisposable: (acquire: Effect) => Effect; /** - * This function is used to ensure that an `Effect` value that represents the - * acquisition of a resource (for example, opening a file, launching a thread, - * etc.) will not be interrupted, and that the resource will always be released - * when the `Effect` value completes execution. + * Runs resource acquisition, usage, and release as one bracketed effect. + * + * **When to use** + * + * Use to bracket acquire, use, and release logic in one effect. + * + * **Details** * * `acquireUseRelease` does the following: * @@ -11205,7 +11965,8 @@ export declare const acquireDisposable: (acquire: Effect, use: (a: Resource) => Effect, release: (a: Resource, exit: Exit.Exit) => Effect) => Effect; /** - * This function adds a finalizer to the scope of the calling `Effect` value. - * The finalizer is guaranteed to be run when the scope is closed, and it may - * depend on the `Exit` value that the scope is closed with. + * Adds a finalizer to the current scope. + * + * **When to use** + * + * Use to register low-level cleanup in the current scope. + * + * **Details** + * + * The finalizer runs when the surrounding scope is closed and receives the + * `Exit` value used to close the scope. * - * Finalizers are useful for cleanup operations that must run regardless of - * whether the effect succeeds or fails. They're commonly used for resource - * cleanup, logging, or other side effects that should always occur. + * **Example** (Registering scope finalizers) * - * @example * ```ts * import { Console, Effect, Exit } from "effect" * @@ -11292,8 +12059,11 @@ export declare const acquireUseRelease: (acqu * // operation result * ``` * + * @see {@link acquireRelease} for resource acquisition with a release finalizer + * @see {@link ensuring} for attaching a finalizer to one effect + * + * @category resource management * @since 2.0.0 - * @category Resource Management & Finalization */ export declare const addFinalizer: (finalizer: (exit: Exit.Exit) => Effect) => Effect; /** @@ -11301,13 +12071,16 @@ export declare const addFinalizer: (finalizer: (exit: Exit.Exit(finalizer: (exit: Exit.Exit(finalizer: Effect): (self: Effect) => Effect; /** @@ -11381,13 +12157,16 @@ export declare const ensuring: { * specified `finalizer` is guaranteed to be executed, whether this effect * succeeds, fails, or is interrupted. * + * **Details** + * * For use cases that need access to the effect's result, see `onExit`. * * Finalizers offer very powerful guarantees, but they are low-level, and * should generally not be used for releasing resources. For higher-level * logic built on `ensuring`, see the `acquireRelease` family of methods. * - * @example + * **Example** (Always running cleanup) + * * ```ts * import { Console, Effect } from "effect" * @@ -11412,8 +12191,8 @@ export declare const ensuring: { * // 42 * ``` * + * @category resource management * @since 2.0.0 - * @category Resource Management & Finalization */ (self: Effect, finalizer: Effect): Effect; }; @@ -11421,9 +12200,10 @@ export declare const ensuring: { * Runs the specified effect if this effect fails, providing the error to the * effect if it exists. The provided effect will not be interrupted. * - * @example + * **Example** (Running cleanup on failure) + * * ```ts - * import { Cause, Data, Console, Effect } from "effect" + * import { Cause, Console, Data, Effect } from "effect" * * class TaskError extends Data.TaggedError("TaskError")<{ readonly message: string }> {} * @@ -11440,17 +12220,18 @@ export declare const ensuring: { * // TaskError: Something went wrong * ``` * + * @category resource management * @since 2.0.0 - * @category Resource Management & Finalization */ export declare const onError: { /** * Runs the specified effect if this effect fails, providing the error to the * effect if it exists. The provided effect will not be interrupted. * - * @example + * **Example** (Running cleanup on failure) + * * ```ts - * import { Cause, Data, Console, Effect } from "effect" + * import { Cause, Console, Data, Effect } from "effect" * * class TaskError extends Data.TaggedError("TaskError")<{ readonly message: string }> {} * @@ -11467,17 +12248,18 @@ export declare const onError: { * // TaskError: Something went wrong * ``` * + * @category resource management * @since 2.0.0 - * @category Resource Management & Finalization */ (cleanup: (cause: Cause.Cause) => Effect): (self: Effect) => Effect; /** * Runs the specified effect if this effect fails, providing the error to the * effect if it exists. The provided effect will not be interrupted. * - * @example + * **Example** (Running cleanup on failure) + * * ```ts - * import { Cause, Data, Console, Effect } from "effect" + * import { Cause, Console, Data, Effect } from "effect" * * class TaskError extends Data.TaggedError("TaskError")<{ readonly message: string }> {} * @@ -11494,8 +12276,8 @@ export declare const onError: { * // TaskError: Something went wrong * ``` * + * @category resource management * @since 2.0.0 - * @category Resource Management & Finalization */ (self: Effect, cleanup: (cause: Cause.Cause) => Effect): Effect; }; @@ -11503,7 +12285,8 @@ export declare const onError: { * Runs the finalizer only when this effect fails and the `Cause` matches the * provided predicate. * - * @example + * **Example** (Running cleanup for selected failures) + * * ```ts * import { Cause, Console, Effect } from "effect" * @@ -11519,15 +12302,16 @@ export declare const onError: { * ) * ``` * + * @category resource management * @since 4.0.0 - * @category Resource Management & Finalization */ export declare const onErrorIf: { /** * Runs the finalizer only when this effect fails and the `Cause` matches the * provided predicate. * - * @example + * **Example** (Running cleanup for selected failures) + * * ```ts * import { Cause, Console, Effect } from "effect" * @@ -11543,15 +12327,16 @@ export declare const onErrorIf: { * ) * ``` * + * @category resource management * @since 4.0.0 - * @category Resource Management & Finalization */ (predicate: Predicate.Predicate>, f: (cause: Cause.Cause) => Effect): (self: Effect) => Effect; /** * Runs the finalizer only when this effect fails and the `Cause` matches the * provided predicate. * - * @example + * **Example** (Running cleanup for selected failures) + * * ```ts * import { Cause, Console, Effect } from "effect" * @@ -11567,47 +12352,90 @@ export declare const onErrorIf: { * ) * ``` * + * @category resource management * @since 4.0.0 - * @category Resource Management & Finalization */ (self: Effect, predicate: Predicate.Predicate>, f: (cause: Cause.Cause) => Effect): Effect; }; /** * Runs the finalizer only when this effect fails and the cause matches the provided `Filter`. * + * **When to use** + * + * Use when cleanup or diagnostics should run only for failures whose full + * `Cause` is accepted or transformed by a `Filter`, and the finalizer needs the + * filter's pass value plus the original cause. + * + * @see {@link onError} for cleanup on every failure + * @see {@link onErrorIf} for selecting failures with a boolean predicate + * @see {@link onExitFilter} for selecting from every exit instead of only failures + * + * @category resource management * @since 4.0.0 - * @category Resource Management & Finalization */ export declare const onErrorFilter: { /** * Runs the finalizer only when this effect fails and the cause matches the provided `Filter`. * + * **When to use** + * + * Use when cleanup or diagnostics should run only for failures whose full + * `Cause` is accepted or transformed by a `Filter`, and the finalizer needs the + * filter's pass value plus the original cause. + * + * @see {@link onError} for cleanup on every failure + * @see {@link onErrorIf} for selecting failures with a boolean predicate + * @see {@link onExitFilter} for selecting from every exit instead of only failures + * + * @category resource management * @since 4.0.0 - * @category Resource Management & Finalization */ (filter: Filter.Filter, EB, X>, f: (failure: EB, cause: Cause.Cause) => Effect): (self: Effect) => Effect; /** * Runs the finalizer only when this effect fails and the cause matches the provided `Filter`. * + * **When to use** + * + * Use when cleanup or diagnostics should run only for failures whose full + * `Cause` is accepted or transformed by a `Filter`, and the finalizer needs the + * filter's pass value plus the original cause. + * + * @see {@link onError} for cleanup on every failure + * @see {@link onErrorIf} for selecting failures with a boolean predicate + * @see {@link onExitFilter} for selecting from every exit instead of only failures + * + * @category resource management * @since 4.0.0 - * @category Resource Management & Finalization */ (self: Effect, filter: Filter.Filter, EB, X>, f: (failure: EB, cause: Cause.Cause) => Effect): Effect; }; /** - * The low level primitive that powers `onExit`. - * function is used to run a finalizer when the effect exits, regardless of the - * exit status. + * Runs an optional finalizer with the effect's `Exit` value when the effect + * completes. * - * @since 2.0.0 - * @category Resource Management & Finalization + * **When to use** + * + * Use when you are building a low-level `Effect` operator that must inspect the + * source effect's `Exit`, may skip finalization by returning `undefined`, or + * must choose whether finalization is forced into an uninterruptible region. + * + * **Details** + * + * This low-level operator preserves the source effect's result unless the + * finalizer fails. Prefer `onExit` for normal cleanup logic. + * + * @see {@link onExit} for ordinary exit-aware cleanup whose finalizer always returns an effect + * + * @category resource management + * @since 4.0.0 */ export declare const onExitPrimitive: (self: Effect, f: (exit: Exit.Exit) => Effect | undefined, interruptible?: boolean) => Effect; /** - * Ensures that a cleanup functions runs, whether this effect succeeds, fails, - * or is interrupted. + * Ensures that a cleanup function runs whether this effect succeeds, fails, or + * is interrupted. + * + * **Example** (Observing every exit) * - * @example * ```ts * import { Console, Effect, Exit } from "effect" * @@ -11626,15 +12454,16 @@ export declare const onExitPrimitive: (self: Ef * // 42 * ``` * + * @category resource management * @since 2.0.0 - * @category Resource Management & Finalization */ export declare const onExit: { /** - * Ensures that a cleanup functions runs, whether this effect succeeds, fails, - * or is interrupted. + * Ensures that a cleanup function runs whether this effect succeeds, fails, or + * is interrupted. + * + * **Example** (Observing every exit) * - * @example * ```ts * import { Console, Effect, Exit } from "effect" * @@ -11653,15 +12482,16 @@ export declare const onExit: { * // 42 * ``` * + * @category resource management * @since 2.0.0 - * @category Resource Management & Finalization */ (f: (exit: Exit.Exit) => Effect): (self: Effect) => Effect; /** - * Ensures that a cleanup functions runs, whether this effect succeeds, fails, - * or is interrupted. + * Ensures that a cleanup function runs whether this effect succeeds, fails, or + * is interrupted. + * + * **Example** (Observing every exit) * - * @example * ```ts * import { Console, Effect, Exit } from "effect" * @@ -11680,8 +12510,8 @@ export declare const onExit: { * // 42 * ``` * + * @category resource management * @since 2.0.0 - * @category Resource Management & Finalization */ (self: Effect, f: (exit: Exit.Exit) => Effect): Effect; }; @@ -11689,7 +12519,8 @@ export declare const onExit: { * Runs the cleanup effect only when the `Exit` satisfies the provided * predicate. * - * @example + * **Example** (Observing selected exits) + * * ```ts * import { Console, Effect, Exit } from "effect" * @@ -11703,15 +12534,16 @@ export declare const onExit: { * ) * ``` * + * @category resource management * @since 4.0.0 - * @category Resource Management & Finalization */ export declare const onExitIf: { /** * Runs the cleanup effect only when the `Exit` satisfies the provided * predicate. * - * @example + * **Example** (Observing selected exits) + * * ```ts * import { Console, Effect, Exit } from "effect" * @@ -11725,15 +12557,16 @@ export declare const onExitIf: { * ) * ``` * + * @category resource management * @since 4.0.0 - * @category Resource Management & Finalization */ (predicate: Predicate.Predicate, NoInfer>>, f: (exit: Exit.Exit, NoInfer>) => Effect): (self: Effect) => Effect; /** * Runs the cleanup effect only when the `Exit` satisfies the provided * predicate. * - * @example + * **Example** (Observing selected exits) + * * ```ts * import { Console, Effect, Exit } from "effect" * @@ -11747,30 +12580,75 @@ export declare const onExitIf: { * ) * ``` * + * @category resource management * @since 4.0.0 - * @category Resource Management & Finalization */ (self: Effect, predicate: Predicate.Predicate, NoInfer>>, f: (exit: Exit.Exit, NoInfer>) => Effect): Effect; }; /** * Runs the cleanup effect only when the `Exit` matches the provided `Filter`. * + * **When to use** + * + * Use when cleanup should run only for `Exit` values selected by a `Filter`, + * and the cleanup needs the extracted pass value together with the original + * `Exit`. + * + * **Details** + * + * `Result.fail` skips cleanup, and `Result.succeed` runs cleanup with the + * selected value and the original `Exit`. + * + * @see {@link onExit} for cleanup on every exit + * @see {@link onExitIf} for selecting exits with a boolean predicate + * @see {@link onErrorFilter} for selecting only failure causes + * + * @category resource management * @since 4.0.0 - * @category Resource Management & Finalization */ export declare const onExitFilter: { /** * Runs the cleanup effect only when the `Exit` matches the provided `Filter`. * + * **When to use** + * + * Use when cleanup should run only for `Exit` values selected by a `Filter`, + * and the cleanup needs the extracted pass value together with the original + * `Exit`. + * + * **Details** + * + * `Result.fail` skips cleanup, and `Result.succeed` runs cleanup with the + * selected value and the original `Exit`. + * + * @see {@link onExit} for cleanup on every exit + * @see {@link onExitIf} for selecting exits with a boolean predicate + * @see {@link onErrorFilter} for selecting only failure causes + * + * @category resource management * @since 4.0.0 - * @category Resource Management & Finalization */ (filter: Filter.Filter, NoInfer>, B, X>, f: (b: B, exit: Exit.Exit, NoInfer>) => Effect): (self: Effect) => Effect; /** * Runs the cleanup effect only when the `Exit` matches the provided `Filter`. * + * **When to use** + * + * Use when cleanup should run only for `Exit` values selected by a `Filter`, + * and the cleanup needs the extracted pass value together with the original + * `Exit`. + * + * **Details** + * + * `Result.fail` skips cleanup, and `Result.succeed` runs cleanup with the + * selected value and the original `Exit`. + * + * @see {@link onExit} for cleanup on every exit + * @see {@link onExitIf} for selecting exits with a boolean predicate + * @see {@link onErrorFilter} for selecting only failure causes + * + * @category resource management * @since 4.0.0 - * @category Resource Management & Finalization */ (self: Effect, filter: Filter.Filter, NoInfer>, B, X>, f: (b: B, exit: Exit.Exit, NoInfer>) => Effect): Effect; }; @@ -11778,6 +12656,11 @@ export declare const onExitFilter: { * Returns an effect that lazily computes a result and caches it for subsequent * evaluations. * + * **When to use** + * + * Use when you need an expensive or time-consuming operation to be evaluated + * once and reused by later callers. + * * **Details** * * This function wraps an effect and ensures that its result is computed only @@ -11785,19 +12668,8 @@ export declare const onExitFilter: { * evaluations of the same effect will return the cached result without * re-executing the logic. * - * **When to Use** - * - * Use this function when you have an expensive or time-consuming operation that - * you want to avoid repeating. The first evaluation will compute the result, - * and all following evaluations will immediately return the cached value, - * improving performance and reducing unnecessary work. - * - * @see {@link cachedWithTTL} for a similar function that includes a - * time-to-live duration for the cached value. - * @see {@link cachedInvalidateWithTTL} for a similar function that includes an - * additional effect for manually invalidating the cached value. + * **Example** (Memoizing an effect until invalidated) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -11834,14 +12706,23 @@ export declare const onExitFilter: { * // result 3 * ``` * + * @see {@link cachedWithTTL} for a similar function that includes a + * time-to-live duration for the cached value. + * @see {@link cachedInvalidateWithTTL} for a similar function that includes an + * additional effect for manually invalidating the cached value. + * @category caching * @since 2.0.0 - * @category Caching */ export declare const cached: (self: Effect) => Effect>; /** * Returns an effect that caches its result for a specified `Duration`, * known as "timeToLive" (TTL). * + * **When to use** + * + * Use when you need a costly effect result to be reused for a bounded duration + * before being recomputed. + * * **Details** * * This function is used to cache the result of an effect for a specified amount @@ -11854,23 +12735,8 @@ export declare const cached: (self: Effect) => Effect(self: Effect) => Effect(self: Effect) => Effect>; /** * Returns an effect that caches its result for a specified `Duration`, * known as "timeToLive" (TTL). * + * **When to use** + * + * Use when you need a costly effect result to be reused for a bounded duration + * before being recomputed. + * * **Details** * * This function is used to cache the result of an effect for a specified amount @@ -11988,23 +12857,8 @@ export declare const cachedWithTTL: { * After the specified duration has passed, the cache expires, and the effect * will be recomputed upon the next evaluation. * - * **When to Use** - * - * Use this function when you have an effect that involves costly operations or - * computations, and you want to avoid repeating them within a short time frame. - * - * It's ideal for scenarios where the result of an effect doesn't change - * frequently and can be reused for a specified duration. - * - * By caching the result, you can improve efficiency and reduce unnecessary - * computations, especially in performance-critical applications. - * - * @see {@link cached} for a similar function that caches the result - * indefinitely. - * @see {@link cachedInvalidateWithTTL} for a similar function that includes an - * additional effect for manually invalidating the cached value. + * **Example** (Memoizing an effect with TTL) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -12035,15 +12889,25 @@ export declare const cachedWithTTL: { * // result 2 * ``` * + * @see {@link cached} for a similar function that caches the result + * indefinitely. + * @see {@link cachedInvalidateWithTTL} for a similar function that includes an + * additional effect for manually invalidating the cached value. + * @category caching * @since 2.0.0 - * @category Caching */ (self: Effect, timeToLive: Duration.Input): Effect>; }; /** - * Caches an effect's result for a specified duration and allows manual + * Creates a cached effect result for a specified duration and allows manual * invalidation before expiration. * + * **When to use** + * + * Use when an effect result should be cached for a bounded time and callers + * also need a manual invalidation effect to force recomputation before + * expiration. + * * **Details** * * This function behaves similarly to {@link cachedWithTTL} by caching the @@ -12057,22 +12921,8 @@ export declare const cachedWithTTL: { * Once the cache is invalidated, the next time the effect is evaluated, the * result will be recomputed, and the cache will be refreshed. * - * **When to Use** - * - * Use this function when you have an effect whose result needs to be cached for - * a certain period, but you also want the option to refresh the cache manually - * before the expiration time. - * - * This is useful when you need to ensure that the cached data remains valid for - * a certain period but still want to invalidate it if the underlying data - * changes or if you want to force a recomputation. - * - * @see {@link cached} for a similar function that caches the result - * indefinitely. - * @see {@link cachedWithTTL} for a similar function that caches the result for - * a specified duration but does not include an effect for manual invalidation. + * **Example** (Memoizing with TTL and invalidation) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -12106,14 +12956,24 @@ export declare const cachedWithTTL: { * // result 2 * ``` * + * @see {@link cached} for a similar function that caches the result + * indefinitely. + * @see {@link cachedWithTTL} for a similar function that caches the result for + * a specified duration but does not include an effect for manual invalidation. + * @category caching * @since 2.0.0 - * @category Caching */ export declare const cachedInvalidateWithTTL: { /** - * Caches an effect's result for a specified duration and allows manual + * Creates a cached effect result for a specified duration and allows manual * invalidation before expiration. * + * **When to use** + * + * Use when an effect result should be cached for a bounded time and callers + * also need a manual invalidation effect to force recomputation before + * expiration. + * * **Details** * * This function behaves similarly to {@link cachedWithTTL} by caching the @@ -12127,22 +12987,8 @@ export declare const cachedInvalidateWithTTL: { * Once the cache is invalidated, the next time the effect is evaluated, the * result will be recomputed, and the cache will be refreshed. * - * **When to Use** - * - * Use this function when you have an effect whose result needs to be cached for - * a certain period, but you also want the option to refresh the cache manually - * before the expiration time. + * **Example** (Memoizing with TTL and invalidation) * - * This is useful when you need to ensure that the cached data remains valid for - * a certain period but still want to invalidate it if the underlying data - * changes or if you want to force a recomputation. - * - * @see {@link cached} for a similar function that caches the result - * indefinitely. - * @see {@link cachedWithTTL} for a similar function that caches the result for - * a specified duration but does not include an effect for manual invalidation. - * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -12176,14 +13022,24 @@ export declare const cachedInvalidateWithTTL: { * // result 2 * ``` * + * @see {@link cached} for a similar function that caches the result + * indefinitely. + * @see {@link cachedWithTTL} for a similar function that caches the result for + * a specified duration but does not include an effect for manual invalidation. + * @category caching * @since 2.0.0 - * @category Caching */ (timeToLive: Duration.Input): (self: Effect) => Effect<[Effect, Effect]>; /** - * Caches an effect's result for a specified duration and allows manual + * Creates a cached effect result for a specified duration and allows manual * invalidation before expiration. * + * **When to use** + * + * Use when an effect result should be cached for a bounded time and callers + * also need a manual invalidation effect to force recomputation before + * expiration. + * * **Details** * * This function behaves similarly to {@link cachedWithTTL} by caching the @@ -12197,22 +13053,8 @@ export declare const cachedInvalidateWithTTL: { * Once the cache is invalidated, the next time the effect is evaluated, the * result will be recomputed, and the cache will be refreshed. * - * **When to Use** - * - * Use this function when you have an effect whose result needs to be cached for - * a certain period, but you also want the option to refresh the cache manually - * before the expiration time. - * - * This is useful when you need to ensure that the cached data remains valid for - * a certain period but still want to invalidate it if the underlying data - * changes or if you want to force a recomputation. - * - * @see {@link cached} for a similar function that caches the result - * indefinitely. - * @see {@link cachedWithTTL} for a similar function that caches the result for - * a specified duration but does not include an effect for manual invalidation. + * **Example** (Memoizing with TTL and invalidation) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -12246,15 +13088,20 @@ export declare const cachedInvalidateWithTTL: { * // result 2 * ``` * + * @see {@link cached} for a similar function that caches the result + * indefinitely. + * @see {@link cachedWithTTL} for a similar function that caches the result for + * a specified duration but does not include an effect for manual invalidation. + * @category caching * @since 2.0.0 - * @category Caching */ (self: Effect, timeToLive: Duration.Input): Effect<[Effect, Effect]>; }; /** * Returns an effect that is immediately interrupted. * - * @example + * **Example** (Creating an interrupted effect) + * * ```ts * import { Effect } from "effect" * @@ -12267,14 +13114,15 @@ export declare const cachedInvalidateWithTTL: { * // Throws: InterruptedException * ``` * + * @category interruption * @since 2.0.0 - * @category Interruption */ export declare const interrupt: Effect; /** * Returns a new effect that allows the effect to be interruptible. * - * @example + * **Example** (Allowing interruption) + * * ```ts * import { Effect } from "effect" * @@ -12287,14 +13135,15 @@ export declare const interrupt: Effect; * // Later: fiber.interrupt() * ``` * + * @category interruption * @since 2.0.0 - * @category Interruption */ export declare const interruptible: (self: Effect) => Effect; /** * Runs the specified finalizer effect if this effect is interrupted. * - * @example + * **Example** (Running cleanup on interruption) + * * ```ts * import { Console, Effect, Fiber } from "effect" * @@ -12311,14 +13160,15 @@ export declare const interruptible: (self: Effect) => Effect(finalizer: (interruptors: ReadonlySet) => Effect): (self: Effect) => Effect; /** * Runs the specified finalizer effect if this effect is interrupted. * - * @example + * **Example** (Running cleanup on interruption) + * * ```ts * import { Console, Effect, Fiber } from "effect" * @@ -12359,15 +13210,16 @@ export declare const onInterrupt: { * // Output: Task was interrupted, cleaning up... * ``` * + * @category interruption * @since 2.0.0 - * @category Interruption */ (self: Effect, finalizer: (interruptors: ReadonlySet) => Effect): Effect; }; /** * Returns a new effect that disables interruption for the given effect. * - * @example + * **Example** (Preventing interruption) + * * ```ts * import { Console, Effect, Fiber } from "effect" * @@ -12384,15 +13236,16 @@ export declare const onInterrupt: { * Effect.runPromise(Fiber.interrupt(fiber)) * ``` * + * @category interruption * @since 2.0.0 - * @category Interruption */ export declare const uninterruptible: (self: Effect) => Effect; /** * Disables interruption and provides a restore function to restore the * interruptible state within the effect. * - * @example + * **Example** (Restoring interruption in protected regions) + * * ```ts * import { Console, Effect } from "effect" * @@ -12414,16 +13267,16 @@ export declare const uninterruptible: (self: Effect) => Effect * ) * ``` * + * @category interruption * @since 2.0.0 - * @category Interruption */ export declare const uninterruptibleMask: (f: (restore: (effect: Effect) => Effect) => Effect) => Effect; /** - * This function behaves like {@link interruptible}, but it also provides a - * `restore` function. This function can be used to restore the interruptibility - * of any specific region of code. + * Runs an effect in an interruptible region while providing `restore` for + * locally restoring the previous interruptibility. + * + * **Example** (Controlling interruptibility locally) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -12445,43 +13298,46 @@ export declare const uninterruptibleMask: (f: (restore: (ef * ) * ``` * + * @category interruption * @since 2.0.0 - * @category Interruption */ export declare const interruptibleMask: (f: (restore: (effect: Effect) => Effect) => Effect) => Effect; /** * Creates an AbortSignal that is managed by the provided scope. * + * **When to use** + * + * Use to obtain a scope-managed `AbortSignal` for APIs that accept cancellation + * through a signal. + * + * **Details** + * + * Each acquisition creates a fresh `AbortController`. Closing the owning scope + * runs a finalizer that aborts the controller and the effect succeeds with the + * controller's signal. + * + * **Gotchas** + * + * The signal is aborted when its owning scope closes, so avoid keeping it for + * work that outlives that scope. + * + * @see {@link scoped} for binding resource lifetime to a scope + * + * @category interruption * @since 4.0.0 - * @category Interruption */ export declare const abortSignal: Effect; /** - * @since 2.0.0 - * @category Repetition / Recursion - * @example - * ```ts - * import type { Effect } from "effect" + * Type helpers for repeating effects. * - * // Repeat namespace contains types for repeating operations - * declare const effect: Effect.Effect - * declare const options: Effect.Repeat.Options - * // Use Effect.repeat with these types for repeating successful effects - * ``` + * @since 2.0.0 */ export declare namespace Repeat { /** - * @since 2.0.0 - * @category Repetition / Recursion - * @example - * ```ts - * import type { Effect } from "effect" + * Computes the result type of `Effect.repeat` from the original effect and repeat options. * - * // Return type for repeat operations with specific options - * declare const options: Effect.Repeat.Options - * type RepeatResult = Effect.Repeat.Return - * // Result: Effect with repeated operation result types - * ``` + * @category repetition + * @since 2.0.0 */ type Return> = Effect; @@ -12501,20 +13357,10 @@ export declare namespace Repeat { until: (...args: Array) => Effect; } ? R : never)> extends infer Z ? Z : never; /** - * @since 2.0.0 - * @category Repetition / Recursion - * @example - * ```ts - * import { Schedule } from "effect" - * import type { Effect } from "effect" + * Options that control whether and how an effect is repeated. * - * // Options for configuring repeat behavior - * const repeatOptions: Effect.Repeat.Options = { - * times: 5, - * schedule: Schedule.fixed("100 millis"), - * while: (result) => result < 10 - * } - * ``` + * @category repetition + * @since 2.0.0 */ interface Options { while?: ((_: A) => boolean | Effect) | undefined; @@ -12526,7 +13372,8 @@ export declare namespace Repeat { /** * Repeats this effect forever (until the first error). * - * @example + * **Example** (Repeating forever) + * * ```ts * import { Console, Effect, Fiber } from "effect" * @@ -12549,8 +13396,8 @@ export declare namespace Repeat { * }) * ``` * + * @category repetition * @since 2.0.0 - * @category Repetition / Recursion */ export declare const forever: | { readonly disableYield?: boolean | undefined; @@ -12562,6 +13409,10 @@ export declare const forever: | { /** * Repeats an effect based on a specified schedule or until the first failure. * + * **When to use** + * + * Use to rerun an effect after successful executions. + * * **Details** * * This function executes an effect repeatedly according to the given schedule. @@ -12581,12 +13432,16 @@ export declare const forever: | { * delays, limiting recursions, or dynamically adjusting based on the outcome of * each execution. * - * @example + * **Gotchas** + * + * The source effect is always evaluated once before the schedule is stepped. + * The schedule controls additional repetitions, not the initial execution. + * + * **Example** (Repeating successful effects with a schedule) + * * ```ts * // Success Example - * import { Effect } from "effect" - * import { Schedule } from "effect" - * import { Console } from "effect" + * import { Console, Effect, Schedule } from "effect" * * const action = Console.log("success") * const policy = Schedule.addDelay(Schedule.recurs(2), () => Effect.succeed("100 millis")) @@ -12595,10 +13450,11 @@ export declare const forever: | { * // Effect.runPromise(program).then((n) => console.log(`repetitions: ${n}`)) * ``` * - * @example + * **Example** (Stopping repetition on failure) + * + * ```ts * // Failure Example - * import { Effect } from "effect" - * import { Schedule } from "effect" + * import { Effect, Schedule } from "effect" * * let count = 0 * @@ -12618,14 +13474,22 @@ export declare const forever: | { * const program = Effect.repeat(action, policy) * * // Effect.runPromiseExit(program).then(console.log) + * ``` * + * @see {@link retry} for failure-based repetition + * @see {@link repeatOrElse} for fallback handling when repetition fails + * + * @category repetition * @since 2.0.0 - * @category Repetition / Recursion */ export declare const repeat: { /** * Repeats an effect based on a specified schedule or until the first failure. * + * **When to use** + * + * Use to rerun an effect after successful executions. + * * **Details** * * This function executes an effect repeatedly according to the given schedule. @@ -12645,12 +13509,16 @@ export declare const repeat: { * delays, limiting recursions, or dynamically adjusting based on the outcome of * each execution. * - * @example + * **Gotchas** + * + * The source effect is always evaluated once before the schedule is stepped. + * The schedule controls additional repetitions, not the initial execution. + * + * **Example** (Repeating successful effects with a schedule) + * * ```ts * // Success Example - * import { Effect } from "effect" - * import { Schedule } from "effect" - * import { Console } from "effect" + * import { Console, Effect, Schedule } from "effect" * * const action = Console.log("success") * const policy = Schedule.addDelay(Schedule.recurs(2), () => Effect.succeed("100 millis")) @@ -12659,10 +13527,11 @@ export declare const repeat: { * // Effect.runPromise(program).then((n) => console.log(`repetitions: ${n}`)) * ``` * - * @example + * **Example** (Stopping repetition on failure) + * + * ```ts * // Failure Example - * import { Effect } from "effect" - * import { Schedule } from "effect" + * import { Effect, Schedule } from "effect" * * let count = 0 * @@ -12682,14 +13551,22 @@ export declare const repeat: { * const program = Effect.repeat(action, policy) * * // Effect.runPromiseExit(program).then(console.log) + * ``` * + * @see {@link retry} for failure-based repetition + * @see {@link repeatOrElse} for fallback handling when repetition fails + * + * @category repetition * @since 2.0.0 - * @category Repetition / Recursion */ , A>(options: O): (self: Effect) => Repeat.Return; /** * Repeats an effect based on a specified schedule or until the first failure. * + * **When to use** + * + * Use to rerun an effect after successful executions. + * * **Details** * * This function executes an effect repeatedly according to the given schedule. @@ -12709,12 +13586,16 @@ export declare const repeat: { * delays, limiting recursions, or dynamically adjusting based on the outcome of * each execution. * - * @example + * **Gotchas** + * + * The source effect is always evaluated once before the schedule is stepped. + * The schedule controls additional repetitions, not the initial execution. + * + * **Example** (Repeating successful effects with a schedule) + * * ```ts * // Success Example - * import { Effect } from "effect" - * import { Schedule } from "effect" - * import { Console } from "effect" + * import { Console, Effect, Schedule } from "effect" * * const action = Console.log("success") * const policy = Schedule.addDelay(Schedule.recurs(2), () => Effect.succeed("100 millis")) @@ -12723,10 +13604,11 @@ export declare const repeat: { * // Effect.runPromise(program).then((n) => console.log(`repetitions: ${n}`)) * ``` * - * @example + * **Example** (Stopping repetition on failure) + * + * ```ts * // Failure Example - * import { Effect } from "effect" - * import { Schedule } from "effect" + * import { Effect, Schedule } from "effect" * * let count = 0 * @@ -12746,14 +13628,22 @@ export declare const repeat: { * const program = Effect.repeat(action, policy) * * // Effect.runPromiseExit(program).then(console.log) + * ``` * + * @see {@link retry} for failure-based repetition + * @see {@link repeatOrElse} for fallback handling when repetition fails + * + * @category repetition * @since 2.0.0 - * @category Repetition / Recursion */ (schedule: Schedule, Error, Env>): (self: Effect) => Effect; /** * Repeats an effect based on a specified schedule or until the first failure. * + * **When to use** + * + * Use to rerun an effect after successful executions. + * * **Details** * * This function executes an effect repeatedly according to the given schedule. @@ -12773,12 +13663,16 @@ export declare const repeat: { * delays, limiting recursions, or dynamically adjusting based on the outcome of * each execution. * - * @example + * **Gotchas** + * + * The source effect is always evaluated once before the schedule is stepped. + * The schedule controls additional repetitions, not the initial execution. + * + * **Example** (Repeating successful effects with a schedule) + * * ```ts * // Success Example - * import { Effect } from "effect" - * import { Schedule } from "effect" - * import { Console } from "effect" + * import { Console, Effect, Schedule } from "effect" * * const action = Console.log("success") * const policy = Schedule.addDelay(Schedule.recurs(2), () => Effect.succeed("100 millis")) @@ -12787,10 +13681,11 @@ export declare const repeat: { * // Effect.runPromise(program).then((n) => console.log(`repetitions: ${n}`)) * ``` * - * @example + * **Example** (Stopping repetition on failure) + * + * ```ts * // Failure Example - * import { Effect } from "effect" - * import { Schedule } from "effect" + * import { Effect, Schedule } from "effect" * * let count = 0 * @@ -12810,14 +13705,22 @@ export declare const repeat: { * const program = Effect.repeat(action, policy) * * // Effect.runPromiseExit(program).then(console.log) + * ``` * + * @see {@link retry} for failure-based repetition + * @see {@link repeatOrElse} for fallback handling when repetition fails + * + * @category repetition * @since 2.0.0 - * @category Repetition / Recursion */ (builder: ($: (_: Schedule, E, R>) => Schedule) => Schedule, Error, Env>): (self: Effect) => Effect; /** * Repeats an effect based on a specified schedule or until the first failure. * + * **When to use** + * + * Use to rerun an effect after successful executions. + * * **Details** * * This function executes an effect repeatedly according to the given schedule. @@ -12837,12 +13740,16 @@ export declare const repeat: { * delays, limiting recursions, or dynamically adjusting based on the outcome of * each execution. * - * @example + * **Gotchas** + * + * The source effect is always evaluated once before the schedule is stepped. + * The schedule controls additional repetitions, not the initial execution. + * + * **Example** (Repeating successful effects with a schedule) + * * ```ts * // Success Example - * import { Effect } from "effect" - * import { Schedule } from "effect" - * import { Console } from "effect" + * import { Console, Effect, Schedule } from "effect" * * const action = Console.log("success") * const policy = Schedule.addDelay(Schedule.recurs(2), () => Effect.succeed("100 millis")) @@ -12851,10 +13758,11 @@ export declare const repeat: { * // Effect.runPromise(program).then((n) => console.log(`repetitions: ${n}`)) * ``` * - * @example + * **Example** (Stopping repetition on failure) + * + * ```ts * // Failure Example - * import { Effect } from "effect" - * import { Schedule } from "effect" + * import { Effect, Schedule } from "effect" * * let count = 0 * @@ -12874,14 +13782,22 @@ export declare const repeat: { * const program = Effect.repeat(action, policy) * * // Effect.runPromiseExit(program).then(console.log) + * ``` * + * @see {@link retry} for failure-based repetition + * @see {@link repeatOrElse} for fallback handling when repetition fails + * + * @category repetition * @since 2.0.0 - * @category Repetition / Recursion */ >(self: Effect, options: O): Repeat.Return; /** * Repeats an effect based on a specified schedule or until the first failure. * + * **When to use** + * + * Use to rerun an effect after successful executions. + * * **Details** * * This function executes an effect repeatedly according to the given schedule. @@ -12901,12 +13817,16 @@ export declare const repeat: { * delays, limiting recursions, or dynamically adjusting based on the outcome of * each execution. * - * @example + * **Gotchas** + * + * The source effect is always evaluated once before the schedule is stepped. + * The schedule controls additional repetitions, not the initial execution. + * + * **Example** (Repeating successful effects with a schedule) + * * ```ts * // Success Example - * import { Effect } from "effect" - * import { Schedule } from "effect" - * import { Console } from "effect" + * import { Console, Effect, Schedule } from "effect" * * const action = Console.log("success") * const policy = Schedule.addDelay(Schedule.recurs(2), () => Effect.succeed("100 millis")) @@ -12915,10 +13835,11 @@ export declare const repeat: { * // Effect.runPromise(program).then((n) => console.log(`repetitions: ${n}`)) * ``` * - * @example + * **Example** (Stopping repetition on failure) + * + * ```ts * // Failure Example - * import { Effect } from "effect" - * import { Schedule } from "effect" + * import { Effect, Schedule } from "effect" * * let count = 0 * @@ -12938,14 +13859,22 @@ export declare const repeat: { * const program = Effect.repeat(action, policy) * * // Effect.runPromiseExit(program).then(console.log) + * ``` * + * @see {@link retry} for failure-based repetition + * @see {@link repeatOrElse} for fallback handling when repetition fails + * + * @category repetition * @since 2.0.0 - * @category Repetition / Recursion */ (self: Effect, schedule: Schedule, Error, Env>): Effect; /** * Repeats an effect based on a specified schedule or until the first failure. * + * **When to use** + * + * Use to rerun an effect after successful executions. + * * **Details** * * This function executes an effect repeatedly according to the given schedule. @@ -12965,12 +13894,16 @@ export declare const repeat: { * delays, limiting recursions, or dynamically adjusting based on the outcome of * each execution. * - * @example + * **Gotchas** + * + * The source effect is always evaluated once before the schedule is stepped. + * The schedule controls additional repetitions, not the initial execution. + * + * **Example** (Repeating successful effects with a schedule) + * * ```ts * // Success Example - * import { Effect } from "effect" - * import { Schedule } from "effect" - * import { Console } from "effect" + * import { Console, Effect, Schedule } from "effect" * * const action = Console.log("success") * const policy = Schedule.addDelay(Schedule.recurs(2), () => Effect.succeed("100 millis")) @@ -12979,10 +13912,11 @@ export declare const repeat: { * // Effect.runPromise(program).then((n) => console.log(`repetitions: ${n}`)) * ``` * - * @example + * **Example** (Stopping repetition on failure) + * + * ```ts * // Failure Example - * import { Effect } from "effect" - * import { Schedule } from "effect" + * import { Effect, Schedule } from "effect" * * let count = 0 * @@ -13002,34 +13936,36 @@ export declare const repeat: { * const program = Effect.repeat(action, policy) * * // Effect.runPromiseExit(program).then(console.log) + * ``` * + * @see {@link retry} for failure-based repetition + * @see {@link repeatOrElse} for fallback handling when repetition fails + * + * @category repetition * @since 2.0.0 - * @category Repetition / Recursion */ (self: Effect, builder: ($: (_: Schedule, E, R>) => Schedule) => Schedule, Error, Env>): Effect; }; /** - * Repeats an effect with a schedule, handling failures using a custom handler. + * Repeats an effect according to a schedule and runs a fallback effect if + * repetition fails before the schedule completes. + * + * **When to use** + * + * Use when successful repetitions should follow a schedule, but failures from + * the repeated effect or schedule need an effectful fallback. * * **Details** * - * This function allows you to execute an effect repeatedly based on a specified - * schedule. If the effect fails at any point, a custom failure handler is - * invoked. The handler is provided with both the failure value and the output - * of the schedule at the time of failure. If the effect fails immediately, the - * schedule will never be executed and the output provided to the handler will - * be `None`. This enables advanced error recovery or alternative fallback logic - * while maintaining flexibility in how repetitions are handled. + * If the repeated effect or schedule step fails, `orElse` receives the failure + * and the latest schedule metadata when at least one schedule step has run; + * otherwise it receives `None`. If the schedule completes normally, the + * returned effect succeeds with the schedule's output. * - * For example, using a schedule with `recurs(2)` will allow for two additional - * repetitions after the initial execution, provided the effect succeeds. If a - * failure occurs during any iteration, the failure handler is invoked to handle - * the situation. + * **Example** (Recovering after repetition stops) * - * @example * ```ts - * import { Console, Effect, Schedule } from "effect" - * import * as Option from "effect/Option" + * import { Console, Effect, Option, Schedule } from "effect" * * let attempt = 0 * const task = Effect.gen(function*() { @@ -13054,32 +13990,30 @@ export declare const repeat: { * ) * ``` * + * @category repetition * @since 2.0.0 - * @category Repetition / Recursion */ export declare const repeatOrElse: { /** - * Repeats an effect with a schedule, handling failures using a custom handler. + * Repeats an effect according to a schedule and runs a fallback effect if + * repetition fails before the schedule completes. + * + * **When to use** + * + * Use when successful repetitions should follow a schedule, but failures from + * the repeated effect or schedule need an effectful fallback. * * **Details** * - * This function allows you to execute an effect repeatedly based on a specified - * schedule. If the effect fails at any point, a custom failure handler is - * invoked. The handler is provided with both the failure value and the output - * of the schedule at the time of failure. If the effect fails immediately, the - * schedule will never be executed and the output provided to the handler will - * be `None`. This enables advanced error recovery or alternative fallback logic - * while maintaining flexibility in how repetitions are handled. + * If the repeated effect or schedule step fails, `orElse` receives the failure + * and the latest schedule metadata when at least one schedule step has run; + * otherwise it receives `None`. If the schedule completes normally, the + * returned effect succeeds with the schedule's output. * - * For example, using a schedule with `recurs(2)` will allow for two additional - * repetitions after the initial execution, provided the effect succeeds. If a - * failure occurs during any iteration, the failure handler is invoked to handle - * the situation. + * **Example** (Recovering after repetition stops) * - * @example * ```ts - * import { Console, Effect, Schedule } from "effect" - * import * as Option from "effect/Option" + * import { Console, Effect, Option, Schedule } from "effect" * * let attempt = 0 * const task = Effect.gen(function*() { @@ -13104,32 +14038,30 @@ export declare const repeatOrElse: { * ) * ``` * + * @category repetition * @since 2.0.0 - * @category Repetition / Recursion */ (schedule: Schedule, orElse: (error: E | E2, option: Option) => Effect): (self: Effect) => Effect; /** - * Repeats an effect with a schedule, handling failures using a custom handler. + * Repeats an effect according to a schedule and runs a fallback effect if + * repetition fails before the schedule completes. + * + * **When to use** + * + * Use when successful repetitions should follow a schedule, but failures from + * the repeated effect or schedule need an effectful fallback. * * **Details** * - * This function allows you to execute an effect repeatedly based on a specified - * schedule. If the effect fails at any point, a custom failure handler is - * invoked. The handler is provided with both the failure value and the output - * of the schedule at the time of failure. If the effect fails immediately, the - * schedule will never be executed and the output provided to the handler will - * be `None`. This enables advanced error recovery or alternative fallback logic - * while maintaining flexibility in how repetitions are handled. + * If the repeated effect or schedule step fails, `orElse` receives the failure + * and the latest schedule metadata when at least one schedule step has run; + * otherwise it receives `None`. If the schedule completes normally, the + * returned effect succeeds with the schedule's output. * - * For example, using a schedule with `recurs(2)` will allow for two additional - * repetitions after the initial execution, provided the effect succeeds. If a - * failure occurs during any iteration, the failure handler is invoked to handle - * the situation. + * **Example** (Recovering after repetition stops) * - * @example * ```ts - * import { Console, Effect, Schedule } from "effect" - * import * as Option from "effect/Option" + * import { Console, Effect, Option, Schedule } from "effect" * * let attempt = 0 * const task = Effect.gen(function*() { @@ -13154,45 +14086,83 @@ export declare const repeatOrElse: { * ) * ``` * + * @category repetition * @since 2.0.0 - * @category Repetition / Recursion */ (self: Effect, schedule: Schedule, orElse: (error: E | E2, option: Option) => Effect): Effect; }; /** * Returns an array of `n` identical effects. * - * Use with `Effect.all` to run the replicated effects and collect results. + * **When to use** + * + * Use when you need an array of identical effect values without running them + * yet. + * + * **Details** + * + * This only creates the array of effects. It does not run or collect them. * + * @see {@link all} for running the returned effects and collecting results + * @see {@link replicateEffect} for repeating an effect and collecting results in one step with concurrency and discard options + * + * @category collecting * @since 2.0.0 - * @category Collecting */ export declare const replicate: { /** * Returns an array of `n` identical effects. * - * Use with `Effect.all` to run the replicated effects and collect results. + * **When to use** + * + * Use when you need an array of identical effect values without running them + * yet. * + * **Details** + * + * This only creates the array of effects. It does not run or collect them. + * + * @see {@link all} for running the returned effects and collecting results + * @see {@link replicateEffect} for repeating an effect and collecting results in one step with concurrency and discard options + * + * @category collecting * @since 2.0.0 - * @category Collecting */ (n: number): (self: Effect) => Array>; /** * Returns an array of `n` identical effects. * - * Use with `Effect.all` to run the replicated effects and collect results. + * **When to use** + * + * Use when you need an array of identical effect values without running them + * yet. + * + * **Details** + * + * This only creates the array of effects. It does not run or collect them. * + * @see {@link all} for running the returned effects and collecting results + * @see {@link replicateEffect} for repeating an effect and collecting results in one step with concurrency and discard options + * + * @category collecting * @since 2.0.0 - * @category Collecting */ (self: Effect, n: number): Array>; }; /** * Performs this effect `n` times and collects results with `Effect.all` semantics. * + * **When to use** + * + * Use when you want to run the repeated effects immediately, with optional + * concurrency control or result discarding. + * + * **Details** + * * Use `concurrency` to control parallelism and `discard: true` to ignore results. * - * @example + * **Example** (Replicating an effect) + * * ```ts * import { Console, Effect } from "effect" * @@ -13202,16 +14172,24 @@ export declare const replicate: { * }) * ``` * + * @category collecting * @since 2.0.0 - * @category Collecting */ export declare const replicateEffect: { /** * Performs this effect `n` times and collects results with `Effect.all` semantics. * + * **When to use** + * + * Use when you want to run the repeated effects immediately, with optional + * concurrency control or result discarding. + * + * **Details** + * * Use `concurrency` to control parallelism and `discard: true` to ignore results. * - * @example + * **Example** (Replicating an effect) + * * ```ts * import { Console, Effect } from "effect" * @@ -13221,8 +14199,8 @@ export declare const replicateEffect: { * }) * ``` * + * @category collecting * @since 2.0.0 - * @category Collecting */ (n: number, options?: { readonly concurrency?: Concurrency | undefined; @@ -13231,9 +14209,17 @@ export declare const replicateEffect: { /** * Performs this effect `n` times and collects results with `Effect.all` semantics. * + * **When to use** + * + * Use when you want to run the repeated effects immediately, with optional + * concurrency control or result discarding. + * + * **Details** + * * Use `concurrency` to control parallelism and `discard: true` to ignore results. * - * @example + * **Example** (Replicating an effect) + * * ```ts * import { Console, Effect } from "effect" * @@ -13243,8 +14229,8 @@ export declare const replicateEffect: { * }) * ``` * + * @category collecting * @since 2.0.0 - * @category Collecting */ (n: number, options: { readonly concurrency?: Concurrency | undefined; @@ -13253,9 +14239,17 @@ export declare const replicateEffect: { /** * Performs this effect `n` times and collects results with `Effect.all` semantics. * + * **When to use** + * + * Use when you want to run the repeated effects immediately, with optional + * concurrency control or result discarding. + * + * **Details** + * * Use `concurrency` to control parallelism and `discard: true` to ignore results. * - * @example + * **Example** (Replicating an effect) + * * ```ts * import { Console, Effect } from "effect" * @@ -13265,8 +14259,8 @@ export declare const replicateEffect: { * }) * ``` * + * @category collecting * @since 2.0.0 - * @category Collecting */ (self: Effect, n: number, options?: { readonly concurrency?: Concurrency | undefined; @@ -13275,9 +14269,17 @@ export declare const replicateEffect: { /** * Performs this effect `n` times and collects results with `Effect.all` semantics. * + * **When to use** + * + * Use when you want to run the repeated effects immediately, with optional + * concurrency control or result discarding. + * + * **Details** + * * Use `concurrency` to control parallelism and `discard: true` to ignore results. * - * @example + * **Example** (Replicating an effect) + * * ```ts * import { Console, Effect } from "effect" * @@ -13287,8 +14289,8 @@ export declare const replicateEffect: { * }) * ``` * + * @category collecting * @since 2.0.0 - * @category Collecting */ (self: Effect, n: number, options: { readonly concurrency?: Concurrency | undefined; @@ -13296,22 +14298,24 @@ export declare const replicateEffect: { }): Effect; }; /** - * Repeats an effect based on a specified schedule. + * Runs an effect repeatedly according to a schedule and returns the schedule's + * final output. + * + * **When to use** + * + * Use to rerun a successful effect according to a `Schedule` when the schedule + * does not need a custom initial input. * * **Details** * - * This function allows you to execute an effect repeatedly according to a given - * schedule. The schedule determines the timing and number of repetitions. Each - * repetition can also depend on the decision of the schedule, providing - * flexibility for complex workflows. This function does not modify the effect's - * success or failure; it only controls its repetition. + * The schedule is first stepped with `undefined`. After each successful + * execution, the effect's success value is fed to the schedule to decide + * whether to run again. The returned effect fails if the effect or schedule + * fails, and otherwise succeeds with the schedule output when the schedule + * completes. * - * For example, you can use a schedule that recurs a specific number of times, - * adds delays between repetitions, or customizes repetition behavior based on - * external inputs. The effect runs initially and is repeated according to the - * schedule. + * **Example** (Scheduling repeated execution) * - * @example * ```ts * import { Console, Effect, Schedule } from "effect" * @@ -13337,27 +14341,29 @@ export declare const replicateEffect: { * @see {@link scheduleFrom} for a variant that allows the schedule's decision * to depend on the result of this effect. * + * @category repetition * @since 2.0.0 - * @category Repetition / Recursion */ export declare const schedule: { /** - * Repeats an effect based on a specified schedule. + * Runs an effect repeatedly according to a schedule and returns the schedule's + * final output. + * + * **When to use** + * + * Use to rerun a successful effect according to a `Schedule` when the schedule + * does not need a custom initial input. * * **Details** * - * This function allows you to execute an effect repeatedly according to a given - * schedule. The schedule determines the timing and number of repetitions. Each - * repetition can also depend on the decision of the schedule, providing - * flexibility for complex workflows. This function does not modify the effect's - * success or failure; it only controls its repetition. + * The schedule is first stepped with `undefined`. After each successful + * execution, the effect's success value is fed to the schedule to decide + * whether to run again. The returned effect fails if the effect or schedule + * fails, and otherwise succeeds with the schedule output when the schedule + * completes. * - * For example, you can use a schedule that recurs a specific number of times, - * adds delays between repetitions, or customizes repetition behavior based on - * external inputs. The effect runs initially and is repeated according to the - * schedule. + * **Example** (Scheduling repeated execution) * - * @example * ```ts * import { Console, Effect, Schedule } from "effect" * @@ -13383,27 +14389,29 @@ export declare const schedule: { * @see {@link scheduleFrom} for a variant that allows the schedule's decision * to depend on the result of this effect. * + * @category repetition * @since 2.0.0 - * @category Repetition / Recursion */ (schedule: Schedule): (self: Effect) => Effect; /** - * Repeats an effect based on a specified schedule. + * Runs an effect repeatedly according to a schedule and returns the schedule's + * final output. + * + * **When to use** + * + * Use to rerun a successful effect according to a `Schedule` when the schedule + * does not need a custom initial input. * * **Details** * - * This function allows you to execute an effect repeatedly according to a given - * schedule. The schedule determines the timing and number of repetitions. Each - * repetition can also depend on the decision of the schedule, providing - * flexibility for complex workflows. This function does not modify the effect's - * success or failure; it only controls its repetition. + * The schedule is first stepped with `undefined`. After each successful + * execution, the effect's success value is fed to the schedule to decide + * whether to run again. The returned effect fails if the effect or schedule + * fails, and otherwise succeeds with the schedule output when the schedule + * completes. * - * For example, you can use a schedule that recurs a specific number of times, - * adds delays between repetitions, or customizes repetition behavior based on - * external inputs. The effect runs initially and is repeated according to the - * schedule. + * **Example** (Scheduling repeated execution) * - * @example * ```ts * import { Console, Effect, Schedule } from "effect" * @@ -13429,27 +14437,25 @@ export declare const schedule: { * @see {@link scheduleFrom} for a variant that allows the schedule's decision * to depend on the result of this effect. * + * @category repetition * @since 2.0.0 - * @category Repetition / Recursion */ (self: Effect, schedule: Schedule): Effect; }; /** - * Runs an effect repeatedly according to a schedule, starting from a specified - * initial input value. + * Runs an effect repeatedly according to a schedule that is initialized with a + * specific schedule input. * * **Details** * - * This function allows you to repeatedly execute an effect based on a schedule. - * The schedule starts with the given `initial` input value, which is passed to - * the first execution. Subsequent executions of the effect are controlled by - * the schedule's rules, using the output of the previous iteration as the input - * for the next one. + * `initial` is passed to the schedule before the first execution, not to the + * effect itself. After each successful execution, the effect's success value is + * fed back into the schedule to decide whether to continue. The returned effect + * succeeds with the schedule output when the schedule completes and fails if + * the effect or schedule fails. * - * The returned effect will complete when the schedule ends or the effect fails, - * propagating the error. + * **Example** (Scheduling from an initial value) * - * @example * ```ts * import { Console, Effect, Schedule } from "effect" * @@ -13470,26 +14476,24 @@ export declare const schedule: { * // Returns the schedule count * ``` * + * @category repetition * @since 2.0.0 - * @category Repetition / Recursion */ export declare const scheduleFrom: { /** - * Runs an effect repeatedly according to a schedule, starting from a specified - * initial input value. + * Runs an effect repeatedly according to a schedule that is initialized with a + * specific schedule input. * * **Details** * - * This function allows you to repeatedly execute an effect based on a schedule. - * The schedule starts with the given `initial` input value, which is passed to - * the first execution. Subsequent executions of the effect are controlled by - * the schedule's rules, using the output of the previous iteration as the input - * for the next one. + * `initial` is passed to the schedule before the first execution, not to the + * effect itself. After each successful execution, the effect's success value is + * fed back into the schedule to decide whether to continue. The returned effect + * succeeds with the schedule output when the schedule completes and fails if + * the effect or schedule fails. * - * The returned effect will complete when the schedule ends or the effect fails, - * propagating the error. + * **Example** (Scheduling from an initial value) * - * @example * ```ts * import { Console, Effect, Schedule } from "effect" * @@ -13510,26 +14514,24 @@ export declare const scheduleFrom: { * // Returns the schedule count * ``` * + * @category repetition * @since 2.0.0 - * @category Repetition / Recursion */ (initial: Input, schedule: Schedule): (self: Effect) => Effect; /** - * Runs an effect repeatedly according to a schedule, starting from a specified - * initial input value. + * Runs an effect repeatedly according to a schedule that is initialized with a + * specific schedule input. * * **Details** * - * This function allows you to repeatedly execute an effect based on a schedule. - * The schedule starts with the given `initial` input value, which is passed to - * the first execution. Subsequent executions of the effect are controlled by - * the schedule's rules, using the output of the previous iteration as the input - * for the next one. + * `initial` is passed to the schedule before the first execution, not to the + * effect itself. After each successful execution, the effect's success value is + * fed back into the schedule to decide whether to continue. The returned effect + * succeeds with the schedule output when the schedule completes and fails if + * the effect or schedule fails. * - * The returned effect will complete when the schedule ends or the effect fails, - * propagating the error. + * **Example** (Scheduling from an initial value) * - * @example * ```ts * import { Console, Effect, Schedule } from "effect" * @@ -13550,15 +14552,16 @@ export declare const scheduleFrom: { * // Returns the schedule count * ``` * + * @category repetition * @since 2.0.0 - * @category Repetition / Recursion */ (self: Effect, initial: Input, schedule: Schedule): Effect; }; /** * Returns the current tracer from the context. * - * @example + * **Example** (Accessing the current tracer) + * * ```ts * import { Effect } from "effect" * @@ -13569,14 +14572,15 @@ export declare const scheduleFrom: { * }) * ``` * + * @category tracing * @since 2.0.0 - * @category Tracing */ export declare const tracer: Effect; /** * Provides a tracer to an effect. * - * @example + * **Example** (Providing a tracer) + * * ```ts * import { Effect } from "effect" * @@ -13589,14 +14593,15 @@ export declare const tracer: Effect; * // const traced = Effect.withTracer(program, customTracer) * ``` * + * @category tracing * @since 2.0.0 - * @category Tracing */ export declare const withTracer: { /** * Provides a tracer to an effect. * - * @example + * **Example** (Providing a tracer) + * * ```ts * import { Effect } from "effect" * @@ -13609,14 +14614,15 @@ export declare const withTracer: { * // const traced = Effect.withTracer(program, customTracer) * ``` * + * @category tracing * @since 2.0.0 - * @category Tracing */ (value: Tracer): (effect: Effect) => Effect; /** * Provides a tracer to an effect. * - * @example + * **Example** (Providing a tracer) + * * ```ts * import { Effect } from "effect" * @@ -13629,15 +14635,21 @@ export declare const withTracer: { * // const traced = Effect.withTracer(program, customTracer) * ``` * + * @category tracing * @since 2.0.0 - * @category Tracing */ (effect: Effect, value: Tracer): Effect; }; /** - * Disable the tracer for the given Effect. + * Enables or disables tracing for spans created by the given effect. + * + * **Details** + * + * When `enabled` is `false`, spans created inside the effect are not registered + * with the current tracer and do not propagate as normal trace parents. + * + * **Example** (Enabling or disabling tracing) * - * @example * ```ts * import { Effect } from "effect" * @@ -13648,14 +14660,20 @@ export declare const withTracer: { * ) * ``` * + * @category tracing * @since 2.0.0 - * @category Tracing */ export declare const withTracerEnabled: { /** - * Disable the tracer for the given Effect. + * Enables or disables tracing for spans created by the given effect. + * + * **Details** + * + * When `enabled` is `false`, spans created inside the effect are not registered + * with the current tracer and do not propagate as normal trace parents. + * + * **Example** (Enabling or disabling tracing) * - * @example * ```ts * import { Effect } from "effect" * @@ -13666,14 +14684,20 @@ export declare const withTracerEnabled: { * ) * ``` * + * @category tracing * @since 2.0.0 - * @category Tracing */ (enabled: boolean): (effect: Effect) => Effect; /** - * Disable the tracer for the given Effect. + * Enables or disables tracing for spans created by the given effect. + * + * **Details** + * + * When `enabled` is `false`, spans created inside the effect are not registered + * with the current tracer and do not propagate as normal trace parents. + * + * **Example** (Enabling or disabling tracing) * - * @example * ```ts * import { Effect } from "effect" * @@ -13684,15 +14708,16 @@ export declare const withTracerEnabled: { * ) * ``` * + * @category tracing * @since 2.0.0 - * @category Tracing */ (effect: Effect, enabled: boolean): Effect; }; /** * Enables or disables tracer timing for the given Effect. * - * @example + * **Example** (Enabling or disabling tracing timing) + * * ```ts * import { Effect } from "effect" * @@ -13703,14 +14728,15 @@ export declare const withTracerEnabled: { * ) * ``` * + * @category tracing * @since 2.0.0 - * @category Tracing */ export declare const withTracerTiming: { /** * Enables or disables tracer timing for the given Effect. * - * @example + * **Example** (Enabling or disabling tracing timing) + * * ```ts * import { Effect } from "effect" * @@ -13721,14 +14747,15 @@ export declare const withTracerTiming: { * ) * ``` * + * @category tracing * @since 2.0.0 - * @category Tracing */ (enabled: boolean): (effect: Effect) => Effect; /** * Enables or disables tracer timing for the given Effect. * - * @example + * **Example** (Enabling or disabling tracing timing) + * * ```ts * import { Effect } from "effect" * @@ -13739,15 +14766,16 @@ export declare const withTracerTiming: { * ) * ``` * + * @category tracing * @since 2.0.0 - * @category Tracing */ (effect: Effect, enabled: boolean): Effect; }; /** * Adds an annotation to each span in this effect. * - * @example + * **Example** (Annotating all spans) + * * ```ts * import { Effect } from "effect" * @@ -13767,14 +14795,15 @@ export declare const withTracerTiming: { * }) * ``` * + * @category tracing * @since 2.0.0 - * @category Tracing */ export declare const annotateSpans: { /** * Adds an annotation to each span in this effect. * - * @example + * **Example** (Annotating all spans) + * * ```ts * import { Effect } from "effect" * @@ -13794,14 +14823,15 @@ export declare const annotateSpans: { * }) * ``` * + * @category tracing * @since 2.0.0 - * @category Tracing */ (key: string, value: unknown): (effect: Effect) => Effect; /** * Adds an annotation to each span in this effect. * - * @example + * **Example** (Annotating all spans) + * * ```ts * import { Effect } from "effect" * @@ -13821,14 +14851,15 @@ export declare const annotateSpans: { * }) * ``` * + * @category tracing * @since 2.0.0 - * @category Tracing */ (values: Record): (effect: Effect) => Effect; /** * Adds an annotation to each span in this effect. * - * @example + * **Example** (Annotating all spans) + * * ```ts * import { Effect } from "effect" * @@ -13848,14 +14879,15 @@ export declare const annotateSpans: { * }) * ``` * + * @category tracing * @since 2.0.0 - * @category Tracing */ (effect: Effect, key: string, value: unknown): Effect; /** * Adds an annotation to each span in this effect. * - * @example + * **Example** (Annotating all spans) + * * ```ts * import { Effect } from "effect" * @@ -13875,15 +14907,16 @@ export declare const annotateSpans: { * }) * ``` * + * @category tracing * @since 2.0.0 - * @category Tracing */ (effect: Effect, values: Record): Effect; }; /** * Adds an annotation to the current span if available. * - * @example + * **Example** (Annotating the current span) + * * ```ts * import { Effect } from "effect" * @@ -13900,14 +14933,15 @@ export declare const annotateSpans: { * const traced = Effect.withSpan(program, "user-operation") * ``` * + * @category tracing * @since 2.0.0 - * @category Tracing */ export declare const annotateCurrentSpan: { /** * Adds an annotation to the current span if available. * - * @example + * **Example** (Annotating the current span) + * * ```ts * import { Effect } from "effect" * @@ -13924,14 +14958,15 @@ export declare const annotateCurrentSpan: { * const traced = Effect.withSpan(program, "user-operation") * ``` * + * @category tracing * @since 2.0.0 - * @category Tracing */ (key: string, value: unknown): Effect; /** * Adds an annotation to the current span if available. * - * @example + * **Example** (Annotating the current span) + * * ```ts * import { Effect } from "effect" * @@ -13948,15 +14983,21 @@ export declare const annotateCurrentSpan: { * const traced = Effect.withSpan(program, "user-operation") * ``` * + * @category tracing * @since 2.0.0 - * @category Tracing */ (values: Record): Effect; }; /** - * Returns the current span from the context. + * Returns the currently active local tracing span. + * + * **Details** + * + * The effect fails with `NoSuchElementError` when there is no active local + * `Span`. + * + * **Example** (Reading the current span) * - * @example * ```ts * import { Effect } from "effect" * @@ -13969,14 +15010,21 @@ export declare const annotateCurrentSpan: { * const traced = Effect.withSpan(program, "my-span") * ``` * + * @category tracing * @since 2.0.0 - * @category Tracing */ export declare const currentSpan: Effect; /** - * Returns the current parent span from the context. + * Returns the current parent span from the effect context. + * + * **Details** + * + * The effect succeeds with either a local span or external span when one is + * present, and fails with `NoSuchElementError` when no parent span is + * available. + * + * **Example** (Reading the parent span) * - * @example * ```ts * import { Effect } from "effect" * @@ -13994,14 +15042,20 @@ export declare const currentSpan: Effect; * const traced = Effect.withSpan(program, "parent-span") * ``` * + * @category tracing * @since 2.0.0 - * @category Tracing */ export declare const currentParentSpan: Effect; /** - * Returns the annotations of the current span. + * Returns the tracing span annotations currently carried in the effect context. + * + * **Details** + * + * These annotations are applied to spans created inside the context, such as + * spans created by `withSpan`, `useSpan`, or `makeSpan`. + * + * **Example** (Providing span annotations) * - * @example * ```ts * import { Effect } from "effect" * @@ -14021,18 +15075,20 @@ export declare const currentParentSpan: Effect>>; /** - * Retrieves the span links associated with the current span. + * Returns the tracing span links currently carried in the effect context. + * + * **Details** * - * Span links are connections between spans that are related but not in a - * parent-child relationship. They are useful for linking spans across different - * traces or connecting spans from parallel operations. + * These links are attached to spans created inside the context. Span links + * connect related spans without making one span the parent of another. + * + * **Example** (Providing span links) * - * @example * ```ts * import { Effect } from "effect" * @@ -14044,18 +15100,21 @@ export declare const spanAnnotations: Effect>>; * }) * ``` * + * @category tracing * @since 2.0.0 - * @category Tracing */ export declare const spanLinks: Effect>; /** - * For all spans in this effect, add a link with the provided span. + * Adds a link with the provided span to all spans in this effect. + * + * **Details** * * This is useful for connecting spans that are related but not in a direct * parent-child relationship. For example, you might want to link spans from * parallel operations or connect spans across different traces. * - * @example + * **Example** (Linking one span to another span) + * * ```ts * import { Effect } from "effect" * @@ -14077,7 +15136,8 @@ export declare const spanLinks: Effect>; * }) * ``` * - * @example + * **Example** (Linking multiple spans at once) + * * ```ts * import { Effect } from "effect" * @@ -14095,18 +15155,21 @@ export declare const spanLinks: Effect>; * }) * ``` * + * @category tracing * @since 2.0.0 - * @category Tracing */ export declare const linkSpans: { /** - * For all spans in this effect, add a link with the provided span. + * Adds a link with the provided span to all spans in this effect. + * + * **Details** * * This is useful for connecting spans that are related but not in a direct * parent-child relationship. For example, you might want to link spans from * parallel operations or connect spans across different traces. * - * @example + * **Example** (Linking one span to another span) + * * ```ts * import { Effect } from "effect" * @@ -14128,7 +15191,8 @@ export declare const linkSpans: { * }) * ``` * - * @example + * **Example** (Linking multiple spans at once) + * * ```ts * import { Effect } from "effect" * @@ -14146,18 +15210,21 @@ export declare const linkSpans: { * }) * ``` * + * @category tracing * @since 2.0.0 - * @category Tracing */ (span: AnySpan | ReadonlyArray, attributes?: Record): (self: Effect) => Effect; /** - * For all spans in this effect, add a link with the provided span. + * Adds a link with the provided span to all spans in this effect. + * + * **Details** * * This is useful for connecting spans that are related but not in a direct * parent-child relationship. For example, you might want to link spans from * parallel operations or connect spans across different traces. * - * @example + * **Example** (Linking one span to another span) + * * ```ts * import { Effect } from "effect" * @@ -14179,7 +15246,8 @@ export declare const linkSpans: { * }) * ``` * - * @example + * **Example** (Linking multiple spans at once) + * * ```ts * import { Effect } from "effect" * @@ -14197,15 +15265,22 @@ export declare const linkSpans: { * }) * ``` * + * @category tracing * @since 2.0.0 - * @category Tracing */ (self: Effect, span: AnySpan | ReadonlyArray, attributes?: Record): Effect; }; /** - * Create a new span for tracing. + * Creates a new tracing span and returns it without managing its lifetime. + * + * **Details** + * + * The span is not added to the current span stack and is not ended + * automatically. Use `withSpan`, `useSpan`, or `makeSpanScoped` when the span + * should be installed as context or closed automatically. + * + * **Example** (Creating a span manually) * - * @example * ```ts * import { Effect } from "effect" * @@ -14216,18 +15291,21 @@ export declare const linkSpans: { * }) * ``` * + * @category tracing * @since 2.0.0 - * @category Tracing */ export declare const makeSpan: (name: string, options?: SpanOptionsNoTrace) => Effect; /** * Create a new span for tracing, and automatically close it when the Scope * finalizes. * + * **Details** + * * The span is not added to the current span stack, so no child spans will be * created for it. * - * @example + * **Example** (Creating a scoped standalone span) + * * ```ts * import { Effect } from "effect" * @@ -14241,18 +15319,21 @@ export declare const makeSpan: (name: string, options?: SpanOptionsNoTrace) => E * ) * ``` * + * @category tracing * @since 2.0.0 - * @category Tracing */ export declare const makeSpanScoped: (name: string, options?: SpanOptionsNoTrace | undefined) => Effect; /** * Create a new span for tracing, and automatically close it when the effect * completes. * + * **Details** + * * The span is not added to the current span stack, so no child spans will be * created for it. * - * @example + * **Example** (Running an effect with a standalone span) + * * ```ts * import { Effect } from "effect" * @@ -14266,18 +15347,21 @@ export declare const makeSpanScoped: (name: string, options?: SpanOptionsNoTrace * ) * ``` * + * @category tracing * @since 2.0.0 - * @category Tracing */ export declare const useSpan: { /** * Create a new span for tracing, and automatically close it when the effect * completes. * + * **Details** + * * The span is not added to the current span stack, so no child spans will be * created for it. * - * @example + * **Example** (Running an effect with a standalone span) + * * ```ts * import { Effect } from "effect" * @@ -14291,18 +15375,21 @@ export declare const useSpan: { * ) * ``` * + * @category tracing * @since 2.0.0 - * @category Tracing */ (name: string, evaluate: (span: Span) => Effect): Effect; /** * Create a new span for tracing, and automatically close it when the effect * completes. * + * **Details** + * * The span is not added to the current span stack, so no child spans will be * created for it. * - * @example + * **Example** (Running an effect with a standalone span) + * * ```ts * import { Effect } from "effect" * @@ -14316,15 +15403,16 @@ export declare const useSpan: { * ) * ``` * + * @category tracing * @since 2.0.0 - * @category Tracing */ (name: string, options: SpanOptionsNoTrace, evaluate: (span: Span) => Effect): Effect; }; /** - * Wraps the effect with a new span for tracing. + * Wraps the effect with a child span for tracing. + * + * **Example** (Wrapping an effect in a child span) * - * @example * ```ts * import { Effect } from "effect" * @@ -14338,14 +15426,15 @@ export declare const useSpan: { * }) * ``` * + * @category tracing * @since 2.0.0 - * @category Tracing */ export declare const withSpan: { /** - * Wraps the effect with a new span for tracing. + * Wraps the effect with a child span for tracing. + * + * **Example** (Wrapping an effect in a child span) * - * @example * ```ts * import { Effect } from "effect" * @@ -14359,14 +15448,15 @@ export declare const withSpan: { * }) * ``` * + * @category tracing * @since 2.0.0 - * @category Tracing */ >(name: string, options?: SpanOptionsNoTrace | ((...args: NoInfer) => SpanOptionsNoTrace) | undefined, traceOptions?: TraceOptions | undefined): (self: Effect, ...args: Args) => Effect>; /** - * Wraps the effect with a new span for tracing. + * Wraps the effect with a child span for tracing. + * + * **Example** (Wrapping an effect in a child span) * - * @example * ```ts * import { Effect } from "effect" * @@ -14380,17 +15470,20 @@ export declare const withSpan: { * }) * ``` * + * @category tracing * @since 2.0.0 - * @category Tracing */ (self: Effect, name: string, options?: SpanOptions | undefined): Effect>; }; /** - * Wraps the effect with a new span for tracing. + * Wraps the effect with a scoped child span for tracing. + * + * **Details** * * The span is ended when the Scope is finalized. * - * @example + * **Example** (Creating a scoped child span) + * * ```ts * import { Effect } from "effect" * @@ -14403,16 +15496,19 @@ export declare const withSpan: { * ) * ``` * + * @category tracing * @since 2.0.0 - * @category Tracing */ export declare const withSpanScoped: { /** - * Wraps the effect with a new span for tracing. + * Wraps the effect with a scoped child span for tracing. + * + * **Details** * * The span is ended when the Scope is finalized. * - * @example + * **Example** (Creating a scoped child span) + * * ```ts * import { Effect } from "effect" * @@ -14425,16 +15521,19 @@ export declare const withSpanScoped: { * ) * ``` * + * @category tracing * @since 2.0.0 - * @category Tracing */ (name: string, options?: SpanOptions): (self: Effect) => Effect | Scope>; /** - * Wraps the effect with a new span for tracing. + * Wraps the effect with a scoped child span for tracing. + * + * **Details** * * The span is ended when the Scope is finalized. * - * @example + * **Example** (Creating a scoped child span) + * * ```ts * import { Effect } from "effect" * @@ -14447,15 +15546,16 @@ export declare const withSpanScoped: { * ) * ``` * + * @category tracing * @since 2.0.0 - * @category Tracing */ (self: Effect, name: string, options?: SpanOptions): Effect | Scope>; }; /** * Adds the provided span to the current span stack. * - * @example + * **Example** (Setting a parent span) + * * ```ts * import { Effect } from "effect" * @@ -14467,14 +15567,15 @@ export declare const withSpanScoped: { * }) * ``` * + * @category tracing * @since 2.0.0 - * @category Tracing */ export declare const withParentSpan: { /** * Adds the provided span to the current span stack. * - * @example + * **Example** (Setting a parent span) + * * ```ts * import { Effect } from "effect" * @@ -14486,14 +15587,15 @@ export declare const withParentSpan: { * }) * ``` * + * @category tracing * @since 2.0.0 - * @category Tracing */ (value: AnySpan, options?: TraceOptions): (self: Effect) => Effect>; /** * Adds the provided span to the current span stack. * - * @example + * **Example** (Setting a parent span) + * * ```ts * import { Effect } from "effect" * @@ -14505,18 +15607,20 @@ export declare const withParentSpan: { * }) * ``` * + * @category tracing * @since 2.0.0 - * @category Tracing */ (self: Effect, value: AnySpan, options?: TraceOptions): Effect>; }; /** * Executes a request using the provided resolver. * - * @since 2.0.0 - * @category Requests & Batching + * **When to use** + * + * Use when you need resolver-driven batching for a typed `Request`. + * + * **Example** (Executing a request through a resolver) * - * @example * ```ts * import { Console, Effect, Exit, Request, RequestResolver } from "effect" * @@ -14539,15 +15643,22 @@ export declare const withParentSpan: { * yield* Console.log(name) * }) * ``` + * + * @see {@link requestUnsafe} for the low-level entry point when you already have a `Context` and need to enqueue outside an `Effect` + * + * @category requests & batching + * @since 2.0.0 */ export declare const request: { /** * Executes a request using the provided resolver. * - * @since 2.0.0 - * @category Requests & Batching + * **When to use** + * + * Use when you need resolver-driven batching for a typed `Request`. + * + * **Example** (Executing a request through a resolver) * - * @example * ```ts * import { Console, Effect, Exit, Request, RequestResolver } from "effect" * @@ -14570,15 +15681,22 @@ export declare const request: { * yield* Console.log(name) * }) * ``` + * + * @see {@link requestUnsafe} for the low-level entry point when you already have a `Context` and need to enqueue outside an `Effect` + * + * @category requests & batching + * @since 2.0.0 */ (resolver: RequestResolver | Effect, EX, RX>): (self: A) => Effect, Request.Error | EX, Request.Services | RX>; /** * Executes a request using the provided resolver. * - * @since 2.0.0 - * @category Requests & Batching + * **When to use** + * + * Use when you need resolver-driven batching for a typed `Request`. + * + * **Example** (Executing a request through a resolver) * - * @example * ```ts * import { Console, Effect, Exit, Request, RequestResolver } from "effect" * @@ -14601,17 +15719,30 @@ export declare const request: { * yield* Console.log(name) * }) * ``` + * + * @see {@link requestUnsafe} for the low-level entry point when you already have a `Context` and need to enqueue outside an `Effect` + * + * @category requests & batching + * @since 2.0.0 */ (self: A, resolver: RequestResolver | Effect, EX, RX>): Effect, Request.Error | EX, Request.Services | RX>; }; /** - * Low-level entry point that registers a request with a resolver and delivers the exit value via `onExit`. - * Use this when you already have a `Context` and need to enqueue a request outside an `Effect`. + * Registers a request with a resolver and delivers the exit value via `onExit`. + * + * **When to use** + * + * Use when you already have a `Context` and need to enqueue a request outside + * an `Effect` while receiving completion through `onExit`. + * + * **Details** * * It returns a canceler that removes the pending request entry. * + * @see {@link request} for the `Effect`-returning API used for normal request execution + * + * @category requests & batching * @since 4.0.0 - * @category Requests & Batching */ export declare const requestUnsafe: (self: A, options: { readonly resolver: RequestResolver; @@ -14623,6 +15754,8 @@ export declare const requestUnsafe: (self: A, options: { * returning the fiber immediately, without waiting for it to begin executing * the effect. * + * **Details** + * * You can use the `forkChild` method whenever you want to execute an effect in a * new fiber, concurrently and without "blocking" the fiber executing other * effects. Using fibers can be tricky, so instead of using this method @@ -14639,7 +15772,8 @@ export declare const requestUnsafe: (self: A, options: { * fibers leak. This behavior is called "auto supervision", and if this * behavior is not desired, you may use the `forkDetach` or `forkIn` methods. * - * @example + * **Example** (Forking a child fiber) + * * ```ts * import { Effect, Fiber } from "effect" * @@ -14661,8 +15795,8 @@ export declare const requestUnsafe: (self: A, options: { * }) * ``` * + * @category supervision & fibers * @since 4.0.0 - * @category Supervision & Fibers */ export declare const forkChild: | { readonly startImmediately?: boolean | undefined; @@ -14678,7 +15812,8 @@ export declare const forkChild: | { * Forks the effect in the specified scope. The fiber will be interrupted * when the scope is closed. * - * @example + * **Example** (Forking into a supplied scope) + * * ```ts * import { Effect } from "effect" * @@ -14698,15 +15833,16 @@ export declare const forkChild: | { * ) * ``` * + * @category supervision & fibers * @since 2.0.0 - * @category Supervision & Fibers */ export declare const forkIn: { /** * Forks the effect in the specified scope. The fiber will be interrupted * when the scope is closed. * - * @example + * **Example** (Forking into a supplied scope) + * * ```ts * import { Effect } from "effect" * @@ -14726,8 +15862,8 @@ export declare const forkIn: { * ) * ``` * + * @category supervision & fibers * @since 2.0.0 - * @category Supervision & Fibers */ (scope: Scope, options?: { readonly startImmediately?: boolean | undefined; @@ -14737,7 +15873,8 @@ export declare const forkIn: { * Forks the effect in the specified scope. The fiber will be interrupted * when the scope is closed. * - * @example + * **Example** (Forking into a supplied scope) + * * ```ts * import { Effect } from "effect" * @@ -14757,8 +15894,8 @@ export declare const forkIn: { * ) * ``` * + * @category supervision & fibers * @since 2.0.0 - * @category Supervision & Fibers */ (self: Effect, scope: Scope, options?: { readonly startImmediately?: boolean | undefined; @@ -14768,7 +15905,8 @@ export declare const forkIn: { /** * Forks the fiber in a `Scope`, interrupting it when the scope is closed. * - * @example + * **Example** (Forking into the current scope) + * * ```ts * import { Effect } from "effect" * @@ -14794,8 +15932,8 @@ export declare const forkIn: { * ) * ``` * + * @category supervision & fibers * @since 2.0.0 - * @category Supervision & Fibers */ export declare const forkScoped: | { readonly startImmediately?: boolean | undefined; @@ -14812,7 +15950,8 @@ export declare const forkScoped: | { * new fiber is attached to the global scope, when the fiber executing the * returned effect terminates, the forked fiber will continue running. * - * @example + * **Example** (Forking a detached fiber) + * * ```ts * import { Effect } from "effect" * @@ -14836,8 +15975,8 @@ export declare const forkScoped: | { * }) * ``` * - * @since 2.0.0 - * @category Supervision & Fibers + * @category supervision & fibers + * @since 4.0.0 */ export declare const forkDetach: | { readonly startImmediately?: boolean | undefined; @@ -14853,14 +15992,30 @@ export declare const forkDetach: | { * Waits for all child fibers forked by this effect to complete before this * effect completes. * + * **When to use** + * + * Use to let an effect start child work concurrently while still delaying its + * own completion until that child work is done. + * + * **Gotchas** + * + * Child fibers that already exist before the wrapped effect starts are not + * awaited. + * + * @see {@link forkChild} for forking child fibers that are awaited by this operator + * @see {@link forkDetach} for forking fibers outside the child scope + * @see {@link forkIn} for forking into an explicit scope + * @see {@link forkScoped} for forking fibers tied to the current scope + * + * @category supervision & fibers * @since 2.0.0 - * @category Supervision & Fibers */ export declare const awaitAllChildren: (self: Effect) => Effect; /** - * Access the fiber currently executing the effect. + * Accesses the fiber currently executing the effect. + * + * **Example** (Accessing the current fiber) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -14870,14 +16025,15 @@ export declare const awaitAllChildren: (self: Effect) => Effec * }) * ``` * + * @category supervision & fibers * @since 4.0.0 - * @category Supervision & Fibers */ export declare const fiber: Effect>; /** - * Access the current fiber id executing the effect. + * Accesses the current fiber id executing the effect. + * + * **Example** (Accessing the current fiber id) * - * @example * ```ts * import { Effect } from "effect" * @@ -14892,35 +16048,32 @@ export declare const fiber: Effect>; * ) * ``` * - * @since 4.0.0 - * @category Supervision & Fibers + * @category supervision & fibers + * @since 2.0.0 */ export declare const fiberId: Effect; /** * Configuration options for running Effect programs, providing control over * interruption and scheduling behavior. * - * @example - * ```ts - * import { Effect } from "effect" + * **When to use** * - * const program = Effect.gen(function*() { - * yield* Effect.sleep("2 seconds") - * return "completed" - * }) + * Use to pass cancellation, scheduler, interruptibility, and fiber-start hooks + * when running an `Effect` at a program boundary. * - * // Run with abort signal for cancellation - * const controller = new AbortController() - * const options: Effect.RunOptions = { - * signal: controller.signal - * } + * **Details** * - * const fiber = Effect.runFork(program, options) - * // Later: controller.abort() to cancel - * ``` + * `signal` interrupts the fiber, `scheduler` provides the scheduler service, + * `uninterruptible` starts the fiber uninterruptibly, and `onFiberStart` + * receives the created fiber. + * + * @see {@link runFork} for starting a fiber with these options + * @see {@link runCallback} for callback-based running with these options + * @see {@link runPromise} for promise-based running with these options + * @see {@link runPromiseExit} for promise-based running that returns an `Exit` * + * @category running * @since 4.0.0 - * @category Running Effects */ export interface RunOptions { readonly signal?: AbortSignal | undefined; @@ -14929,25 +16082,17 @@ export interface RunOptions { readonly onFiberStart?: ((fiber: Fiber) => void) | undefined; } /** - * The foundational function for running effects, returning a "fiber" that can + * Runs an effect in the background, returning a fiber that can * be observed or interrupted. * - * **When to Use** + * **When to use** * - * `runFork` is used to run an effect in the background by creating a - * fiber. It is the base function for all other run functions. It starts a fiber - * that can be observed or interrupted. + * Use when you need to start an effect in the background and receive a fiber. * - * Unless you specifically need a `Promise` or synchronous operation, - * `runFork` is a good default choice. + * **Example** (Running an effect in the background) * - * @example * ```ts - * // Title: Running an Effect in the Background - * import { Effect } from "effect" - * import { Schedule } from "effect" - * import { Fiber } from "effect" - * import { Console } from "effect" + * import { Console, Effect, Fiber, Schedule } from "effect" * * // ┌─── Effect * // ▼ @@ -14965,16 +16110,22 @@ export interface RunOptions { * }, 500) * ``` * + * @category running * @since 2.0.0 - * @category Running Effects */ export declare const runFork: (effect: Effect, options?: RunOptions | undefined) => Fiber; /** * Runs an effect in the background with the provided services. * - * @example + * **When to use** + * + * Use when an effect still requires services, you already have a `Context`, and + * you want a background fiber. + * + * **Example** (Running with services in the background) + * * ```ts - * import { Effect, Context } from "effect" + * import { Context, Effect } from "effect" * * interface Logger { * log: (message: string) => void @@ -14995,18 +16146,26 @@ export declare const runFork: (effect: Effect, options?: RunO * const fiber = Effect.runForkWith(services)(program) * ``` * + * @category running * @since 4.0.0 - * @category Running Effects */ export declare const runForkWith: (context: Context.Context) => (effect: Effect, options?: RunOptions | undefined) => Fiber; /** * Forks an effect with the provided services, registers `onExit` as a fiber observer, and returns an interruptor. * + * **When to use** + * + * Use when embedding an effect into callback-style code with explicit services + * and a synchronous interruptor. + * + * **Details** + * * The returned interruptor calls `fiber.interruptUnsafe`, optionally with an interruptor id. * - * @example + * **Example** (Running with services and a callback) + * * ```ts - * import { Console, Effect, Exit, Context } from "effect" + * import { Console, Context, Effect, Exit } from "effect" * * interface Logger { * log: (message: string) => Effect.Effect @@ -15036,8 +16195,8 @@ export declare const runForkWith: (context: Context.Context) => (eff * interrupt() * ``` * + * @category running * @since 4.0.0 - * @category Running Effects */ export declare const runCallbackWith: (context: Context.Context) => (effect: Effect, options?: (RunOptions & { readonly onExit: (exit: Exit.Exit) => void; @@ -15046,10 +16205,13 @@ export declare const runCallbackWith: (context: Context.Context) => * Runs an effect asynchronously, registering `onExit` as a fiber observer and * returning an interruptor. * + * **Details** + * * The interruptor calls `fiber.interruptUnsafe` with the optional interruptor * id. * - * @example + * **Example** (Running with a callback) + * * ```ts * import { Console, Effect, Exit } from "effect" * @@ -15076,8 +16238,8 @@ export declare const runCallbackWith: (context: Context.Context) => * // interrupt() to cancel the fiber if needed * ``` * - * @since 4.0.0 - * @category Running Effects + * @category running + * @since 2.0.0 */ export declare const runCallback: (effect: Effect, options?: (RunOptions & { readonly onExit: (exit: Exit.Exit) => void; @@ -15085,44 +16247,52 @@ export declare const runCallback: (effect: Effect, options?: /** * Executes an effect and returns the result as a `Promise`. * - * **When to Use** + * **When to use** * - * Use `runPromise` when you need to execute an effect and work with the + * Use when you need to execute an effect and work with the * result using `Promise` syntax, typically for compatibility with other * promise-based code. * * If the effect succeeds, the promise will resolve with the result. If the * effect fails, the promise will reject with an error. * - * @see {@link runPromiseExit} for a version that returns an `Exit` type instead of rejecting. + * **Example** (Running a successful effect as a Promise) * - * @example * ```ts - * // Title: Running a Successful Effect as a Promise * import { Effect } from "effect" * * Effect.runPromise(Effect.succeed(1)).then(console.log) * // Output: 1 * ``` * - * @example + * **Example** (Running effects as promises) + * + * ```ts * //Example: Handling a Failing Effect as a Rejected Promise * import { Effect } from "effect" * * Effect.runPromise(Effect.fail("my error")).catch(console.error) * // Output: * // (FiberFailure) Error: my error + * ``` * + * @see {@link runPromiseExit} for a version that returns an `Exit` type instead of rejecting. + * @category running * @since 2.0.0 - * @category Running Effects */ export declare const runPromise: (effect: Effect, options?: RunOptions | undefined) => Promise; /** * Executes an effect as a Promise with the provided services. * - * @example + * **When to use** + * + * Use when you already have a `Context` and need Promise interop that rejects on + * effect failure. + * + * **Example** (Running with services as a promise) + * * ```ts - * import { Effect, Context } from "effect" + * import { Context, Effect } from "effect" * * interface Config { * apiUrl: string @@ -15142,29 +16312,28 @@ export declare const runPromise: (effect: Effect, options?: RunOptio * Effect.runPromiseWith(context)(program).then(console.log) * ``` * + * @category running * @since 4.0.0 - * @category Running Effects */ export declare const runPromiseWith: (context: Context.Context) => (effect: Effect, options?: RunOptions | undefined) => Promise; /** * Runs an effect and returns a `Promise` that resolves to an `Exit`, which * represents the outcome (success or failure) of the effect. * - * **When to Use** + * **When to use** * - * Use `runPromiseExit` when you need to determine if an effect succeeded + * Use when you need to determine if an effect succeeded * or failed, including any defects, and you want to work with a `Promise`. * * **Details** * - * The `Exit` type represents the result of the effect: - * - If the effect succeeds, the result is wrapped in a `Success`. - * - If it fails, the failure information is provided as a `Failure` containing - * a `Cause` type. + * The `Exit` type represents the result of the effect. Successful effects are + * wrapped in `Success`, and failed effects are wrapped in `Failure` with a + * `Cause`. + * + * **Example** (Observing promise results as Exit) * - * @example * ```ts - * // Title: Handling Results as Exit * import { Effect } from "effect" * * // Execute a successful effect and get the Exit result as a Promise @@ -15190,16 +16359,24 @@ export declare const runPromiseWith: (context: Context.Context) => ( * // } * ``` * + * @see {@link runPromise} for a version that rejects on failure. + * + * @category running * @since 2.0.0 - * @category Running Effects */ export declare const runPromiseExit: (effect: Effect, options?: RunOptions | undefined) => Promise>; /** * Runs an effect and returns a Promise of Exit with provided services. * - * @example + * **When to use** + * + * Use when you already have a `Context` and need Promise interop that preserves + * success and failure as an `Exit`. + * + * **Example** (Running with services as an Exit promise) + * * ```ts - * import { Effect, Exit, Context } from "effect" + * import { Context, Effect, Exit } from "effect" * * interface Database { * query: (sql: string) => string @@ -15223,28 +16400,27 @@ export declare const runPromiseExit: (effect: Effect, options?: RunO * }) * ``` * + * @category running * @since 4.0.0 - * @category Running Effects */ export declare const runPromiseExitWith: (context: Context.Context) => (effect: Effect, options?: RunOptions | undefined) => Promise>; /** - * Executes an effect synchronously, running it immediately and returning the - * result. + * Executes an effect synchronously and returns its success value. + * + * **When to use** * - * **When to Use** + * Use when you need to execute an effect that is guaranteed to complete + * synchronously. * - * Use `runSync` to run an effect that does not fail and does not include - * any asynchronous operations. + * **Details** * - * If the effect fails or involves asynchronous work, it will throw an error, - * and execution will stop where the failure or async operation occurs. + * If the effect fails, dies, is interrupted, or performs asynchronous work, + * `runSync` throws a `FiberFailure` instead of returning a value. Use + * `runSyncExit` when you want the failure captured as an `Exit`. * - * @see {@link runSyncExit} for a version that returns an `Exit` type instead of - * throwing an error. + * **Example** (Running a synchronous effect) * - * @example * ```ts - * // Title: Synchronous Logging * import { Effect } from "effect" * * const program = Effect.sync(() => { @@ -15259,8 +16435,9 @@ export declare const runPromiseExitWith: (context: Context.Context) => (context: Context.Context) => (effect: Effect) => A; /** * Executes an effect synchronously with provided services. * - * @example + * **When to use** + * + * Use when you already have a `Context`, the effect is known to complete + * synchronously, and failures should throw. + * + * **Example** (Running synchronously with services) + * * ```ts - * import { Effect, Context } from "effect" + * import { Context, Effect } from "effect" * * interface MathService { * add: (a: number, b: number) => number @@ -15311,33 +16497,32 @@ export declare const runSync: (effect: Effect) => A; * console.log(result) // 5 * ``` * + * @category running * @since 4.0.0 - * @category Running Effects */ export declare const runSyncWith: (context: Context.Context) => (effect: Effect) => A; /** - * Runs an effect synchronously and returns the result as an `Exit` type, which + * Runs an effect synchronously and captures the outcome safely as an `Exit` type, which * represents the outcome (success or failure) of the effect. * - * **When to Use** + * **When to use** * - * Use `runSyncExit` to find out whether an effect succeeded or failed, + * Use to find out whether an effect succeeded or failed, * including any defects, without dealing with asynchronous operations. * * **Details** * - * The `Exit` type represents the result of the effect: - * - If the effect succeeds, the result is wrapped in a `Success`. - * - If it fails, the failure information is provided as a `Failure` containing - * a `Cause` type. + * The `Exit` type represents the result of the effect. Successful effects are + * wrapped in `Success`, and failed effects are wrapped in `Failure` with a + * `Cause`. * * If the effect contains asynchronous operations, `runSyncExit` will * return an `Failure` with a `Die` cause, indicating that the effect cannot be * resolved synchronously. * - * @example + * **Example** (Observing synchronous results as Exit) + * * ```ts - * // Title: Handling Results as Exit * import { Effect } from "effect" * * console.log(Effect.runSyncExit(Effect.succeed(1))) @@ -15361,8 +16546,9 @@ export declare const runSyncWith: (context: Context.Context) => (eff * // } * ``` * - * @example - * // Title: Asynchronous Operation Resulting in Die + * **Example** (Capturing async work as a Die cause) + * + * ```ts * import { Effect } from "effect" * * console.log(Effect.runSyncExit(Effect.promise(() => Promise.resolve(1)))) @@ -15380,17 +16566,26 @@ export declare const runSyncWith: (context: Context.Context) => (eff * // } * // } * // } + * ``` + * + * @see {@link runSync} for a version that throws on failure. * + * @category running * @since 2.0.0 - * @category Running Effects */ export declare const runSyncExit: (effect: Effect) => Exit.Exit; /** - * Runs an effect synchronously with provided services, returning an Exit result. + * Runs an effect synchronously with provided services, returning an Exit result safely. + * + * **When to use** + * + * Use when you already have a `Context` and need a synchronous `Exit` instead of + * throwing on failure. + * + * **Example** (Running synchronously with services as Exit) * - * @example * ```ts - * import { Effect, Exit, Context } from "effect" + * import { Context, Effect, Exit } from "effect" * * // Define a logger service * const Logger = Context.Service<{ @@ -15420,651 +16615,855 @@ export declare const runSyncExit: (effect: Effect) => Exit.Exit(context: Context.Context) => (effect: Effect) => Exit.Exit; /** * Type helpers for functions built with `Effect.fn` and `Effect.fnUntraced`. * + * **Details** + * * Use these to describe generator-based signatures and traced or untraced variants. * - * @since 3.12.0 - * @category Function + * @since 3.11.0 */ export declare namespace fn { /** + * Generator return type accepted by {@link fn} and {@link fnUntraced}. + * + * **When to use** + * + * Use when you need to annotate the return type of a generator body while + * keeping the produced function's `Effect` return type inferred. + * + * **Example** (Annotating an Effect function) + * + * ```ts + * import { Effect } from "effect" + * + * const f = Effect.fnUntraced(function*( + * value: string + * ): Effect.fn.Return { + * return yield* Effect.succeed(value.length) + * }) + * + * // ┌─── Effect.Effect + * // ▼ + * const program = f("hello") + * ``` + * + * **Example** (Annotating a parametric Effect function) + * + * ```ts + * import { Effect } from "effect" + * + * const f = Effect.fnUntraced(function*( + * value: A + * ): Effect.fn.Return { + * return yield* Effect.succeed(value) + * }) + * + * // ┌─── Effect.Effect + * // ▼ + * const program = f("hello") + * ``` + * + * @category utility types * @since 3.19.0 - * @category Models */ - type Return = Generator, A, any>; + type Return = Generator, A, any>; /** + * Type of the untraced function builder used by `Effect.fnUntraced`. + * + * @category utility types * @since 3.11.0 - * @category Models */ type Untraced = { - , AEff, Args extends Array>(body: (this: unassigned, ...args: Args) => Generator): (...args: Args) => Effect, AEff, Args extends Array>(body: (this: unassigned, ...args: Args) => Generator): (...args: Args) => Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>; - , AEff, Args extends Array>(body: (this: Self, ...args: Args) => Generator): (this: Self, ...args: Args) => Effect] ? R : never>; + , AEff, Args extends Array>(body: (this: Self, ...args: Args) => Generator): (this: Self, ...args: Args) => Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>; - , AEff, Args extends Array, A>(body: (this: unassigned, ...args: Args) => Generator, a: (_: Effect] ? R : never>; + , AEff, Args extends Array, A>(body: (this: unassigned, ...args: Args) => Generator, a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A): (...args: Args) => A; - , AEff, Args extends Array, A>(body: (this: Self, ...args: Args) => Generator, a: (_: Effect] ? R : never>, ...args: Args) => A): (...args: Args) => A; + , AEff, Args extends Array, A>(body: (this: Self, ...args: Args) => Generator, a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A): (this: Self, ...args: Args) => A; - , AEff, Args extends Array, A, B>(body: (this: unassigned, ...args: Args) => Generator, a: (_: Effect] ? R : never>, ...args: Args) => A): (this: Self, ...args: Args) => A; + , AEff, Args extends Array, A, B>(body: (this: unassigned, ...args: Args) => Generator, a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B): (...args: Args) => B; - , AEff, Args extends Array, A, B>(body: (this: Self, ...args: Args) => Generator, a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B): (...args: Args) => B; + , AEff, Args extends Array, A, B>(body: (this: Self, ...args: Args) => Generator, a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B): (this: Self, ...args: Args) => B; - , AEff, Args extends Array, A, B, C>(body: (this: unassigned, ...args: Args) => Generator, a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B): (this: Self, ...args: Args) => B; + , AEff, Args extends Array, A, B, C>(body: (this: unassigned, ...args: Args) => Generator, a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C): (...args: Args) => C; - , AEff, Args extends Array, A, B, C>(body: (this: Self, ...args: Args) => Generator, a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C): (...args: Args) => C; + , AEff, Args extends Array, A, B, C>(body: (this: Self, ...args: Args) => Generator, a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C): (this: Self, ...args: Args) => C; - , AEff, Args extends Array, A, B, C, D>(body: (...args: Args) => Generator, a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C): (this: Self, ...args: Args) => C; + , AEff, Args extends Array, A, B, C, D>(body: (...args: Args) => Generator, a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D): (...args: Args) => D; - , AEff, Args extends Array, A, B, C, D>(body: (this: Self, ...args: Args) => Generator, a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D): (...args: Args) => D; + , AEff, Args extends Array, A, B, C, D>(body: (this: Self, ...args: Args) => Generator, a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D): (this: Self, ...args: Args) => D; - , AEff, Args extends Array, A, B, C, D, E>(body: (this: unassigned, ...args: Args) => Generator, a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D): (this: Self, ...args: Args) => D; + , AEff, Args extends Array, A, B, C, D, E>(body: (this: unassigned, ...args: Args) => Generator, a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E): (...args: Args) => E; - , AEff, Args extends Array, A, B, C, D, E>(body: (this: Self, ...args: Args) => Generator, a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E): (...args: Args) => E; + , AEff, Args extends Array, A, B, C, D, E>(body: (this: Self, ...args: Args) => Generator, a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E): (this: Self, ...args: Args) => E; - , AEff, Args extends Array, A, B, C, D, E, F>(body: (this: unassigned, ...args: Args) => Generator, a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E): (this: Self, ...args: Args) => E; + , AEff, Args extends Array, A, B, C, D, E, F>(body: (this: unassigned, ...args: Args) => Generator, a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F): (...args: Args) => F; - , AEff, Args extends Array, A, B, C, D, E, F>(body: (this: Self, ...args: Args) => Generator, a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F): (...args: Args) => F; + , AEff, Args extends Array, A, B, C, D, E, F>(body: (this: Self, ...args: Args) => Generator, a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F): (this: Self, ...args: Args) => F; - , AEff, Args extends Array, A, B, C, D, E, F, G>(body: (this: unassigned, ...args: Args) => Generator, a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F): (this: Self, ...args: Args) => F; + , AEff, Args extends Array, A, B, C, D, E, F, G>(body: (this: unassigned, ...args: Args) => Generator, a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G): (...args: Args) => G; - , AEff, Args extends Array, A, B, C, D, E, F, G>(body: (this: Self, ...args: Args) => Generator, a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G): (...args: Args) => G; + , AEff, Args extends Array, A, B, C, D, E, F, G>(body: (this: Self, ...args: Args) => Generator, a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G): (this: Self, ...args: Args) => G; - , AEff, Args extends Array, A, B, C, D, E, F, G, H>(body: (this: unassigned, ...args: Args) => Generator, a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G): (this: Self, ...args: Args) => G; + , AEff, Args extends Array, A, B, C, D, E, F, G, H>(body: (this: unassigned, ...args: Args) => Generator, a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H): (...args: Args) => H; - , AEff, Args extends Array, A, B, C, D, E, F, G, H>(body: (this: Self, ...args: Args) => Generator, a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H): (...args: Args) => H; + , AEff, Args extends Array, A, B, C, D, E, F, G, H>(body: (this: Self, ...args: Args) => Generator, a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H): (this: Self, ...args: Args) => H; - , AEff, Args extends Array, A, B, C, D, E, F, G, H, I>(body: (this: unassigned, ...args: Args) => Generator, a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H): (this: Self, ...args: Args) => H; + , AEff, Args extends Array, A, B, C, D, E, F, G, H, I>(body: (this: unassigned, ...args: Args) => Generator, a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I): (...args: Args) => I; - , AEff, Args extends Array, A, B, C, D, E, F, G, H, I>(body: (this: Self, ...args: Args) => Generator, a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I): (...args: Args) => I; + , AEff, Args extends Array, A, B, C, D, E, F, G, H, I>(body: (this: Self, ...args: Args) => Generator, a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I): (this: Self, ...args: Args) => I; - , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J>(body: (this: unassigned, ...args: Args) => Generator, a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I): (this: Self, ...args: Args) => I; + , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J>(body: (this: unassigned, ...args: Args) => Generator, a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J): (...args: Args) => J; - , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J>(body: (this: Self, ...args: Args) => Generator, a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J): (...args: Args) => J; + , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J>(body: (this: Self, ...args: Args) => Generator, a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J): (this: Self, ...args: Args) => J; - , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K>(body: (this: unassigned, ...args: Args) => Generator, a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J): (this: Self, ...args: Args) => J; + , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K>(body: (this: unassigned, ...args: Args) => Generator, a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K): (...args: Args) => K; - , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K>(body: (this: Self, ...args: Args) => Generator, a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K): (...args: Args) => K; + , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K>(body: (this: Self, ...args: Args) => Generator, a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K): (this: Self, ...args: Args) => K; - , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L>(body: (this: unassigned, ...args: Args) => Generator, a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K): (this: Self, ...args: Args) => K; + , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L>(body: (this: unassigned, ...args: Args) => Generator, a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L): (...args: Args) => L; - , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L>(body: (this: Self, ...args: Args) => Generator, a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L): (...args: Args) => L; + , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L>(body: (this: Self, ...args: Args) => Generator, a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L): (this: Self, ...args: Args) => L; - , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M>(body: (this: unassigned, ...args: Args) => Generator, a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L): (this: Self, ...args: Args) => L; + , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M>(body: (this: unassigned, ...args: Args) => Generator, a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M): (...args: Args) => M; - , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M>(body: (this: Self, ...args: Args) => Generator, a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M): (...args: Args) => M; + , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M>(body: (this: Self, ...args: Args) => Generator, a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M): (this: Self, ...args: Args) => M; - , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N>(body: (this: unassigned, ...args: Args) => Generator, a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M): (this: Self, ...args: Args) => M; + , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N>(body: (this: unassigned, ...args: Args) => Generator, a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N): (...args: Args) => N; - , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N>(body: (this: Self, ...args: Args) => Generator, a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N): (...args: Args) => N; + , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N>(body: (this: Self, ...args: Args) => Generator, a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N): (this: Self, ...args: Args) => N; - , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O>(body: (this: unassigned, ...args: Args) => Generator, a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N): (this: Self, ...args: Args) => N; + , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O>(body: (this: unassigned, ...args: Args) => Generator, a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N, o: (_: N, ...args: Args) => O): (...args: Args) => O; - , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O>(body: (this: Self, ...args: Args) => Generator, a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N, o: (_: N, ...args: Args) => O): (...args: Args) => O; + , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O>(body: (this: Self, ...args: Args) => Generator, a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N, o: (_: N, ...args: Args) => O): (this: Self, ...args: Args) => O; - , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>(body: (this: unassigned, ...args: Args) => Generator, a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N, o: (_: N, ...args: Args) => O): (this: Self, ...args: Args) => O; + , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>(body: (this: unassigned, ...args: Args) => Generator, a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N, o: (_: N, ...args: Args) => O, p: (_: O, ...args: Args) => P): (...args: Args) => P; - , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>(body: (this: Self, ...args: Args) => Generator, a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N, o: (_: N, ...args: Args) => O, p: (_: O, ...args: Args) => P): (...args: Args) => P; + , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>(body: (this: Self, ...args: Args) => Generator, a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N, o: (_: N, ...args: Args) => O, p: (_: O, ...args: Args) => P): (this: Self, ...args: Args) => P; - , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q>(body: (this: unassigned, ...args: Args) => Generator, a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N, o: (_: N, ...args: Args) => O, p: (_: O, ...args: Args) => P): (this: Self, ...args: Args) => P; + , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q>(body: (this: unassigned, ...args: Args) => Generator, a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N, o: (_: N, ...args: Args) => O, p: (_: O, ...args: Args) => P, q: (_: P, ...args: Args) => Q): (...args: Args) => Q; - , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q>(body: (this: Self, ...args: Args) => Generator, a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N, o: (_: N, ...args: Args) => O, p: (_: O, ...args: Args) => P, q: (_: P, ...args: Args) => Q): (...args: Args) => Q; + , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q>(body: (this: Self, ...args: Args) => Generator, a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N, o: (_: N, ...args: Args) => O, p: (_: O, ...args: Args) => P, q: (_: P, ...args: Args) => Q): (this: Self, ...args: Args) => Q; - , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R>(body: (this: unassigned, ...args: Args) => Generator, a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N, o: (_: N, ...args: Args) => O, p: (_: O, ...args: Args) => P, q: (_: P, ...args: Args) => Q): (this: Self, ...args: Args) => Q; + , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R>(body: (this: unassigned, ...args: Args) => Generator, a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N, o: (_: N, ...args: Args) => O, p: (_: O, ...args: Args) => P, q: (_: P, ...args: Args) => Q, r: (_: Q, ...args: Args) => R): (...args: Args) => R; - , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R>(body: (this: Self, ...args: Args) => Generator, a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N, o: (_: N, ...args: Args) => O, p: (_: O, ...args: Args) => P, q: (_: P, ...args: Args) => Q, r: (_: Q, ...args: Args) => R): (...args: Args) => R; + , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R>(body: (this: Self, ...args: Args) => Generator, a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N, o: (_: N, ...args: Args) => O, p: (_: O, ...args: Args) => P, q: (_: P, ...args: Args) => Q, r: (_: Q, ...args: Args) => R): (this: Self, ...args: Args) => R; - , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S>(body: (this: unassigned, ...args: Args) => Generator, a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N, o: (_: N, ...args: Args) => O, p: (_: O, ...args: Args) => P, q: (_: P, ...args: Args) => Q, r: (_: Q, ...args: Args) => R): (this: Self, ...args: Args) => R; + , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S>(body: (this: unassigned, ...args: Args) => Generator, a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N, o: (_: N, ...args: Args) => O, p: (_: O, ...args: Args) => P, q: (_: P, ...args: Args) => Q, r: (_: Q, ...args: Args) => R, s: (_: R, ...args: Args) => S): (...args: Args) => S; - , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S>(body: (this: Self, ...args: Args) => Generator, a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N, o: (_: N, ...args: Args) => O, p: (_: O, ...args: Args) => P, q: (_: P, ...args: Args) => Q, r: (_: Q, ...args: Args) => R, s: (_: R, ...args: Args) => S): (...args: Args) => S; + , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S>(body: (this: Self, ...args: Args) => Generator, a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N, o: (_: N, ...args: Args) => O, p: (_: O, ...args: Args) => P, q: (_: P, ...args: Args) => Q, r: (_: Q, ...args: Args) => R, s: (_: R, ...args: Args) => S): (this: Self, ...args: Args) => S; - , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T>(body: (this: unassigned, ...args: Args) => Generator, a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N, o: (_: N, ...args: Args) => O, p: (_: O, ...args: Args) => P, q: (_: P, ...args: Args) => Q, r: (_: Q, ...args: Args) => R, s: (_: R, ...args: Args) => S): (this: Self, ...args: Args) => S; + , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T>(body: (this: unassigned, ...args: Args) => Generator, a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N, o: (_: N, ...args: Args) => O, p: (_: O, ...args: Args) => P, q: (_: P, ...args: Args) => Q, r: (_: Q, ...args: Args) => R, s: (_: R, ...args: Args) => S, t: (_: S, ...args: Args) => T): (...args: Args) => T; - , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T>(body: (this: Self, ...args: Args) => Generator, a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N, o: (_: N, ...args: Args) => O, p: (_: O, ...args: Args) => P, q: (_: P, ...args: Args) => Q, r: (_: Q, ...args: Args) => R, s: (_: R, ...args: Args) => S, t: (_: S, ...args: Args) => T): (...args: Args) => T; + , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T>(body: (this: Self, ...args: Args) => Generator, a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N, o: (_: N, ...args: Args) => O, p: (_: O, ...args: Args) => P, q: (_: P, ...args: Args) => Q, r: (_: Q, ...args: Args) => R, s: (_: R, ...args: Args) => S, t: (_: S, ...args: Args) => T): (this: Self, ...args: Args) => T; + ] extends [never] ? never : [Eff] extends [Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N, o: (_: N, ...args: Args) => O, p: (_: O, ...args: Args) => P, q: (_: P, ...args: Args) => Q, r: (_: Q, ...args: Args) => R, s: (_: R, ...args: Args) => S, t: (_: S, ...args: Args) => T): (this: Self, ...args: Args) => T; }; /** - * @since 3.11.0 - * @category Models + * Type of the traced function builder used by `Effect.fn`. + * + * @category utility types + * @since 4.0.0 */ type Traced = { - , AEff, Args extends Array>(body: (this: unassigned, ...args: Args) => Generator | (Eff & Effect)): (...args: Args) => Effect, AEff, Args extends Array>(body: (this: unassigned, ...args: Args) => Generator | (Eff & Effect)): (...args: Args) => Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>; - , AEff, Args extends Array>(body: (this: Self, ...args: Args) => Generator | (Eff & Effect)): (this: Self, ...args: Args) => Effect] ? R : never>; + , AEff, Args extends Array>(body: (this: Self, ...args: Args) => Generator | (Eff & Effect)): (this: Self, ...args: Args) => Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>; - , AEff, Args extends Array>(options: { + ] extends [never] ? never : [Eff] extends [Effect] ? R : never>; + , AEff, Args extends Array>(options: { readonly self: Self; }, body: (this: Self, ...args: Args) => Generator | (Eff & Effect)): (...args: Args) => Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>; - , AEff, Args extends Array, A>(body: (this: unassigned, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? R : never>; + , AEff, Args extends Array, A>(body: (this: unassigned, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A): (...args: Args) => A; - , AEff, Args extends Array, A>(body: (this: Self, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? R : never>, ...args: Args) => A): (...args: Args) => A; + , AEff, Args extends Array, A>(body: (this: Self, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A): (this: Self, ...args: Args) => A; - , AEff, Args extends Array, A>(options: { + ] extends [never] ? never : [Eff] extends [Effect] ? R : never>, ...args: Args) => A): (this: Self, ...args: Args) => A; + , AEff, Args extends Array, A>(options: { readonly self: Self; }, body: (this: Self, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A): (...args: Args) => A; - , AEff, Args extends Array, A, B>(body: (this: unassigned, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? R : never>, ...args: Args) => A): (...args: Args) => A; + , AEff, Args extends Array, A, B>(body: (this: unassigned, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B): (...args: Args) => B; - , AEff, Args extends Array, A, B>(body: (this: Self, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B): (...args: Args) => B; + , AEff, Args extends Array, A, B>(body: (this: Self, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B): (this: Self, ...args: Args) => B; - , AEff, Args extends Array, A, B>(options: { + ] extends [never] ? never : [Eff] extends [Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B): (this: Self, ...args: Args) => B; + , AEff, Args extends Array, A, B>(options: { readonly self: Self; }, body: (this: Self, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B): (...args: Args) => B; - , AEff, Args extends Array, A, B, C>(body: (this: unassigned, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B): (...args: Args) => B; + , AEff, Args extends Array, A, B, C>(body: (this: unassigned, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C): (...args: Args) => C; - , AEff, Args extends Array, A, B, C>(body: (this: Self, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C): (...args: Args) => C; + , AEff, Args extends Array, A, B, C>(body: (this: Self, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C): (this: Self, ...args: Args) => C; - , AEff, Args extends Array, A, B, C>(options: { + ] extends [never] ? never : [Eff] extends [Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C): (this: Self, ...args: Args) => C; + , AEff, Args extends Array, A, B, C>(options: { readonly self: Self; }, body: (this: Self, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C): (...args: Args) => C; - , AEff, Args extends Array, A, B, C, D>(body: (this: unassigned, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C): (...args: Args) => C; + , AEff, Args extends Array, A, B, C, D>(body: (this: unassigned, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D): (...args: Args) => D; - , AEff, Args extends Array, A, B, C, D>(body: (this: Self, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D): (...args: Args) => D; + , AEff, Args extends Array, A, B, C, D>(body: (this: Self, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D): (this: Self, ...args: Args) => D; - , AEff, Args extends Array, A, B, C, D>(options: { + ] extends [never] ? never : [Eff] extends [Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D): (this: Self, ...args: Args) => D; + , AEff, Args extends Array, A, B, C, D>(options: { readonly self: Self; }, body: (this: Self, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D): (...args: Args) => D; - , AEff, Args extends Array, A, B, C, D, E>(body: (this: unassigned, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D): (...args: Args) => D; + , AEff, Args extends Array, A, B, C, D, E>(body: (this: unassigned, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E): (...args: Args) => E; - , AEff, Args extends Array, A, B, C, D, E>(body: (this: Self, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E): (...args: Args) => E; + , AEff, Args extends Array, A, B, C, D, E>(body: (this: Self, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E): (this: Self, ...args: Args) => E; - , AEff, Args extends Array, A, B, C, D, E>(options: { + ] extends [never] ? never : [Eff] extends [Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E): (this: Self, ...args: Args) => E; + , AEff, Args extends Array, A, B, C, D, E>(options: { readonly self: Self; }, body: (this: Self, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E): (...args: Args) => E; - , AEff, Args extends Array, A, B, C, D, E, F>(body: (this: unassigned, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E): (...args: Args) => E; + , AEff, Args extends Array, A, B, C, D, E, F>(body: (this: unassigned, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F): (...args: Args) => F; - , AEff, Args extends Array, A, B, C, D, E, F>(body: (this: Self, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F): (...args: Args) => F; + , AEff, Args extends Array, A, B, C, D, E, F>(body: (this: Self, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F): (this: Self, ...args: Args) => F; - , AEff, Args extends Array, A, B, C, D, E, F>(options: { + ] extends [never] ? never : [Eff] extends [Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F): (this: Self, ...args: Args) => F; + , AEff, Args extends Array, A, B, C, D, E, F>(options: { readonly self: Self; }, body: (this: Self, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F): (...args: Args) => F; - , AEff, Args extends Array, A, B, C, D, E, F, G>(body: (this: unassigned, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F): (...args: Args) => F; + , AEff, Args extends Array, A, B, C, D, E, F, G>(body: (this: unassigned, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G): (...args: Args) => G; - , AEff, Args extends Array, A, B, C, D, E, F, G>(body: (this: Self, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G): (...args: Args) => G; + , AEff, Args extends Array, A, B, C, D, E, F, G>(body: (this: Self, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G): (this: Self, ...args: Args) => G; - , AEff, Args extends Array, A, B, C, D, E, F, G>(options: { + ] extends [never] ? never : [Eff] extends [Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G): (this: Self, ...args: Args) => G; + , AEff, Args extends Array, A, B, C, D, E, F, G>(options: { readonly self: Self; }, body: (this: Self, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G): (...args: Args) => G; - , AEff, Args extends Array, A, B, C, D, E, F, G, H>(body: (this: unassigned, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G): (...args: Args) => G; + , AEff, Args extends Array, A, B, C, D, E, F, G, H>(body: (this: unassigned, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H): (...args: Args) => H; - , AEff, Args extends Array, A, B, C, D, E, F, G, H>(body: (this: Self, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H): (...args: Args) => H; + , AEff, Args extends Array, A, B, C, D, E, F, G, H>(body: (this: Self, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H): (this: Self, ...args: Args) => H; - , AEff, Args extends Array, A, B, C, D, E, F, G, H>(options: { + ] extends [never] ? never : [Eff] extends [Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H): (this: Self, ...args: Args) => H; + , AEff, Args extends Array, A, B, C, D, E, F, G, H>(options: { readonly self: Self; }, body: (this: Self, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H): (...args: Args) => H; - , AEff, Args extends Array, A, B, C, D, E, F, G, H, I>(body: (this: unassigned, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H): (...args: Args) => H; + , AEff, Args extends Array, A, B, C, D, E, F, G, H, I>(body: (this: unassigned, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I): (...args: Args) => I; - , AEff, Args extends Array, A, B, C, D, E, F, G, H, I>(body: (this: Self, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I): (...args: Args) => I; + , AEff, Args extends Array, A, B, C, D, E, F, G, H, I>(body: (this: Self, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I): (this: Self, ...args: Args) => I; - , AEff, Args extends Array, A, B, C, D, E, F, G, H, I>(options: { + ] extends [never] ? never : [Eff] extends [Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I): (this: Self, ...args: Args) => I; + , AEff, Args extends Array, A, B, C, D, E, F, G, H, I>(options: { readonly self: Self; }, body: (this: Self, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I): (...args: Args) => I; - , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J>(body: (this: unassigned, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I): (...args: Args) => I; + , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J>(body: (this: unassigned, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J): (...args: Args) => J; - , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J>(body: (this: Self, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J): (...args: Args) => J; + , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J>(body: (this: Self, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J): (this: Self, ...args: Args) => J; - , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J>(options: { + ] extends [never] ? never : [Eff] extends [Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J): (this: Self, ...args: Args) => J; + , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J>(options: { readonly self: Self; }, body: (this: Self, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J): (...args: Args) => J; - , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K>(body: (this: unassigned, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J): (...args: Args) => J; + , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K>(body: (this: unassigned, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K): (...args: Args) => K; - , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K>(body: (this: Self, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K): (...args: Args) => K; + , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K>(body: (this: Self, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K): (this: Self, ...args: Args) => K; - , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K>(options: { + ] extends [never] ? never : [Eff] extends [Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K): (this: Self, ...args: Args) => K; + , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K>(options: { readonly self: Self; }, body: (this: Self, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K): (...args: Args) => K; - , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L>(body: (this: unassigned, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K): (...args: Args) => K; + , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L>(body: (this: unassigned, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L): (...args: Args) => L; - , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L>(body: (this: Self, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L): (...args: Args) => L; + , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L>(body: (this: Self, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L): (this: Self, ...args: Args) => L; - , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L>(options: { + ] extends [never] ? never : [Eff] extends [Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L): (this: Self, ...args: Args) => L; + , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L>(options: { readonly self: Self; }, body: (this: Self, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L): (...args: Args) => L; - , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M>(body: (this: unassigned, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L): (...args: Args) => L; + , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M>(body: (this: unassigned, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M): (...args: Args) => M; - , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M>(body: (this: Self, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M): (...args: Args) => M; + , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M>(body: (this: Self, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M): (this: Self, ...args: Args) => M; - , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M>(options: { + ] extends [never] ? never : [Eff] extends [Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M): (this: Self, ...args: Args) => M; + , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M>(options: { readonly self: Self; }, body: (this: Self, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M): (...args: Args) => M; - , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N>(body: (this: unassigned, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M): (...args: Args) => M; + , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N>(body: (this: unassigned, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N): (...args: Args) => N; - , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N>(body: (this: Self, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N): (...args: Args) => N; + , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N>(body: (this: Self, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N): (this: Self, ...args: Args) => N; - , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N>(options: { + ] extends [never] ? never : [Eff] extends [Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N): (this: Self, ...args: Args) => N; + , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N>(options: { readonly self: Self; }, body: (this: Self, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N): (...args: Args) => N; - , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O>(body: (this: unassigned, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N): (...args: Args) => N; + , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O>(body: (this: unassigned, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N, o: (_: N, ...args: Args) => O): (...args: Args) => O; - , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O>(body: (this: Self, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N, o: (_: N, ...args: Args) => O): (...args: Args) => O; + , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O>(body: (this: Self, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N, o: (_: N, ...args: Args) => O): (this: Self, ...args: Args) => O; - , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O>(options: { + ] extends [never] ? never : [Eff] extends [Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N, o: (_: N, ...args: Args) => O): (this: Self, ...args: Args) => O; + , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O>(options: { readonly self: Self; }, body: (this: Self, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N, o: (_: N, ...args: Args) => O): (...args: Args) => O; - , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>(body: (this: unassigned, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N, o: (_: N, ...args: Args) => O): (...args: Args) => O; + , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>(body: (this: unassigned, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N, o: (_: N, ...args: Args) => O, p: (_: O, ...args: Args) => P): (...args: Args) => P; - , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>(body: (this: Self, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N, o: (_: N, ...args: Args) => O, p: (_: O, ...args: Args) => P): (...args: Args) => P; + , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>(body: (this: Self, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N, o: (_: N, ...args: Args) => O, p: (_: O, ...args: Args) => P): (this: Self, ...args: Args) => P; - , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>(options: { + ] extends [never] ? never : [Eff] extends [Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N, o: (_: N, ...args: Args) => O, p: (_: O, ...args: Args) => P): (this: Self, ...args: Args) => P; + , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>(options: { readonly self: Self; }, body: (this: Self, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N, o: (_: N, ...args: Args) => O, p: (_: O, ...args: Args) => P): (...args: Args) => P; - , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q>(body: (this: unassigned, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N, o: (_: N, ...args: Args) => O, p: (_: O, ...args: Args) => P): (...args: Args) => P; + , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q>(body: (this: unassigned, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N, o: (_: N, ...args: Args) => O, p: (_: O, ...args: Args) => P, q: (_: P, ...args: Args) => Q): (...args: Args) => Q; - , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q>(body: (this: Self, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N, o: (_: N, ...args: Args) => O, p: (_: O, ...args: Args) => P, q: (_: P, ...args: Args) => Q): (...args: Args) => Q; + , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q>(body: (this: Self, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N, o: (_: N, ...args: Args) => O, p: (_: O, ...args: Args) => P, q: (_: P, ...args: Args) => Q): (this: Self, ...args: Args) => Q; - , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q>(options: { + ] extends [never] ? never : [Eff] extends [Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N, o: (_: N, ...args: Args) => O, p: (_: O, ...args: Args) => P, q: (_: P, ...args: Args) => Q): (this: Self, ...args: Args) => Q; + , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q>(options: { readonly self: Self; }, body: (this: Self, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N, o: (_: N, ...args: Args) => O, p: (_: O, ...args: Args) => P, q: (_: P, ...args: Args) => Q): (...args: Args) => Q; - , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R>(body: (this: unassigned, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N, o: (_: N, ...args: Args) => O, p: (_: O, ...args: Args) => P, q: (_: P, ...args: Args) => Q): (...args: Args) => Q; + , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R>(body: (this: unassigned, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N, o: (_: N, ...args: Args) => O, p: (_: O, ...args: Args) => P, q: (_: P, ...args: Args) => Q, r: (_: Q, ...args: Args) => R): (...args: Args) => R; - , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R>(body: (this: Self, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N, o: (_: N, ...args: Args) => O, p: (_: O, ...args: Args) => P, q: (_: P, ...args: Args) => Q, r: (_: Q, ...args: Args) => R): (...args: Args) => R; + , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R>(body: (this: Self, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N, o: (_: N, ...args: Args) => O, p: (_: O, ...args: Args) => P, q: (_: P, ...args: Args) => Q, r: (_: Q, ...args: Args) => R): (this: Self, ...args: Args) => R; - , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R>(options: { + ] extends [never] ? never : [Eff] extends [Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N, o: (_: N, ...args: Args) => O, p: (_: O, ...args: Args) => P, q: (_: P, ...args: Args) => Q, r: (_: Q, ...args: Args) => R): (this: Self, ...args: Args) => R; + , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R>(options: { readonly self: Self; }, body: (this: Self, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N, o: (_: N, ...args: Args) => O, p: (_: O, ...args: Args) => P, q: (_: P, ...args: Args) => Q, r: (_: Q, ...args: Args) => R): (...args: Args) => R; - , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S>(body: (this: unassigned, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N, o: (_: N, ...args: Args) => O, p: (_: O, ...args: Args) => P, q: (_: P, ...args: Args) => Q, r: (_: Q, ...args: Args) => R): (...args: Args) => R; + , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S>(body: (this: unassigned, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N, o: (_: N, ...args: Args) => O, p: (_: O, ...args: Args) => P, q: (_: P, ...args: Args) => Q, r: (_: Q, ...args: Args) => R, s: (_: R, ...args: Args) => S): (...args: Args) => S; - , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S>(body: (this: Self, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N, o: (_: N, ...args: Args) => O, p: (_: O, ...args: Args) => P, q: (_: P, ...args: Args) => Q, r: (_: Q, ...args: Args) => R, s: (_: R, ...args: Args) => S): (...args: Args) => S; + , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S>(body: (this: Self, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N, o: (_: N, ...args: Args) => O, p: (_: O, ...args: Args) => P, q: (_: P, ...args: Args) => Q, r: (_: Q, ...args: Args) => R, s: (_: R, ...args: Args) => S): (this: Self, ...args: Args) => S; - , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S>(options: { + ] extends [never] ? never : [Eff] extends [Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N, o: (_: N, ...args: Args) => O, p: (_: O, ...args: Args) => P, q: (_: P, ...args: Args) => Q, r: (_: Q, ...args: Args) => R, s: (_: R, ...args: Args) => S): (this: Self, ...args: Args) => S; + , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S>(options: { readonly self: Self; }, body: (this: Self, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N, o: (_: N, ...args: Args) => O, p: (_: O, ...args: Args) => P, q: (_: P, ...args: Args) => Q, r: (_: Q, ...args: Args) => R, s: (_: R, ...args: Args) => S): (...args: Args) => S; - , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T>(body: (this: unassigned, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N, o: (_: N, ...args: Args) => O, p: (_: O, ...args: Args) => P, q: (_: P, ...args: Args) => Q, r: (_: Q, ...args: Args) => R, s: (_: R, ...args: Args) => S): (...args: Args) => S; + , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T>(body: (this: unassigned, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N, o: (_: N, ...args: Args) => O, p: (_: O, ...args: Args) => P, q: (_: P, ...args: Args) => Q, r: (_: Q, ...args: Args) => R, s: (_: R, ...args: Args) => S, t: (_: S, ...args: Args) => T): (...args: Args) => T; - , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T>(body: (this: Self, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N, o: (_: N, ...args: Args) => O, p: (_: O, ...args: Args) => P, q: (_: P, ...args: Args) => Q, r: (_: Q, ...args: Args) => R, s: (_: R, ...args: Args) => S, t: (_: S, ...args: Args) => T): (...args: Args) => T; + , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T>(body: (this: Self, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N, o: (_: N, ...args: Args) => O, p: (_: O, ...args: Args) => P, q: (_: P, ...args: Args) => Q, r: (_: Q, ...args: Args) => R, s: (_: R, ...args: Args) => S, t: (_: S, ...args: Args) => T): (this: Self, ...args: Args) => T; - , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T>(options: { + ] extends [never] ? never : [Eff] extends [Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N, o: (_: N, ...args: Args) => O, p: (_: O, ...args: Args) => P, q: (_: P, ...args: Args) => Q, r: (_: Q, ...args: Args) => R, s: (_: R, ...args: Args) => S, t: (_: S, ...args: Args) => T): (this: Self, ...args: Args) => T; + , AEff, Args extends Array, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T>(options: { readonly self: Self; }, body: (this: Self, ...args: Args) => Generator | (Eff & Effect), a: (_: Effect] ? E : never, [ + ] extends [never] ? never : [Eff] extends [Effect] ? E : never, [ Eff - ] extends [never] ? never : [Eff] extends [Yieldable] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N, o: (_: N, ...args: Args) => O, p: (_: O, ...args: Args) => P, q: (_: P, ...args: Args) => Q, r: (_: Q, ...args: Args) => R, s: (_: R, ...args: Args) => S, t: (_: S, ...args: Args) => T): (...args: Args) => T; + ] extends [never] ? never : [Eff] extends [Effect] ? R : never>, ...args: Args) => A, b: (_: A, ...args: Args) => B, c: (_: B, ...args: Args) => C, d: (_: C, ...args: Args) => D, e: (_: D, ...args: Args) => E, f: (_: E, ...args: Args) => F, g: (_: F, ...args: Args) => G, h: (_: G, ...args: Args) => H, i: (_: H, ...args: Args) => I, j: (_: I, ...args: Args) => J, k: (_: J, ...args: Args) => K, l: (_: K, ...args: Args) => L, m: (_: L, ...args: Args) => M, n: (_: M, ...args: Args) => N, o: (_: N, ...args: Args) => O, p: (_: O, ...args: Args) => P, q: (_: P, ...args: Args) => Q, r: (_: Q, ...args: Args) => R, s: (_: R, ...args: Args) => S, t: (_: S, ...args: Args) => T): (...args: Args) => T; }; } /** * Creates an Effect-returning function without tracing. * - * `Effect.fnUntraced` also acts as a `pipe` function, so you can append transforms after the body. + * **When to use** + * + * Use when you are defining a reusable Effect function whose implementation + * would otherwise be a normal function returning {@link gen}, especially when + * tracing spans or stack-frame capture are not needed. + * + * **Details** + * + * Compared to a plain function that returns {@link gen}, `Effect.fnUntraced` + * reuses the generator body instead of allocating a fresh generator closure + * around the arguments on every call. It does not record an Effect stack-frame + * boundary and does not create tracing spans. Use {@link fn} when you need + * those stack frames or spans. Additional arguments after the generator body + * act like `pipe` transforms: each transform receives the previous result and + * the original function arguments. Annotate the generator return type with + * `Effect.fn.Return` when the produced `Effect` type needs to be + * stated explicitly. + * + * **Example** (Defining untraced effect functions) + * + * ```ts + * import { Effect } from "effect" + * + * const f = Effect.fnUntraced(function*( + * value: string + * ) { + * return yield* Effect.succeed(value.length) + * }) + * + * // ┌─── Effect.Effect + * // ▼ + * const program = f("hello") + * ``` + * + * **Example** (Transforming the returned Effect) + * + * ```ts + * import { Effect } from "effect" + * + * const f = Effect.fnUntraced( + * function*(value: string) { + * return yield* Effect.succeed(value.length) + * }, + * (effect, value) => + * effect.pipe(Effect.map((length) => `${value}: ${length}`)) + * ) + * + * // ┌─── Effect.Effect + * // ▼ + * const program = f("hello") + * ``` + * + * **Example** (Annotating an untraced non-parametric function) + * + * ```ts + * import { Effect } from "effect" + * + * const f = Effect.fnUntraced(function*( + * value: string + * ): Effect.fn.Return { + * return yield* Effect.succeed(value.length) + * }) + * + * // ┌─── Effect.Effect + * // ▼ + * const program = f("hello") + * ``` + * + * **Example** (Annotating an untraced parametric function) + * + * ```ts + * import { Effect } from "effect" + * + * const f = Effect.fnUntraced(function*( + * value: A + * ): Effect.fn.Return { + * return yield* Effect.succeed(value) + * }) + * + * // ┌─── Effect.Effect + * // ▼ + * const program = f("hello") + * ``` + * + * @category functions + * @since 3.12.0 + */ +export declare const fnUntraced: fn.Untraced; +/** + * Creates a reusable traced function from an Effect body. + * + * **When to use** + * + * Use when you are defining a reusable Effect function whose implementation + * would otherwise be a normal function returning {@link gen}, and you want + * tracing spans or stack-frame capture. + * + * **Details** + * + * Compared to a plain function that returns {@link gen}, `Effect.fn` reuses the + * generator body instead of allocating a fresh generator closure around the + * arguments on every call. Call `Effect.fn(body, ...)` for a generic + * stack-frame boundary without creating a span. Call + * `Effect.fn("operationName", options?)(body, ...)` when that boundary should + * have a readable operation name and the returned `Effect` should create a + * tracing span when run. {@link SpanOptionsNoTrace} configures span metadata + * such as attributes, links, parent or root selection, kind, sampling, and log + * level. Additional arguments after the generator body act like `pipe` + * transforms: each transform receives the previous result and the original + * function arguments. When those transforms return an `Effect`, the returned + * effect includes stack-frame metadata and, for the named form, a tracing span. + * Generator bodies may declare a `this` parameter; pass `{ self }` before the + * body to bind `this` when the function is created. + * + * **Example** (Defining traced effect functions) + * + * ```ts + * import { Effect } from "effect" + * + * const f = Effect.fn("calculateLength")(function*(value: string) { + * return yield* Effect.succeed(value.length) + * }) + * + * // ┌─── Effect.Effect + * // ▼ + * const program = f("hello") + * ``` + * + * **Example** (Transforming the returned Effect) + * + * ```ts + * import { Effect } from "effect" + * + * const f = Effect.fn("formatLength")( + * function*(value: string) { + * return yield* Effect.succeed(value.length) + * }, + * (effect, value) => + * effect.pipe(Effect.map((length) => `${value}: ${length}`)) + * ) + * + * // ┌─── Effect.Effect + * // ▼ + * const program = f("hello") + * ``` + * + * **Example** (Binding this) + * + * ```ts + * import { Effect } from "effect" + * + * class Counter { + * count = 0 + * + * increment = Effect.fn("Counter.increment")( + * { self: this }, + * function*(this: Counter, by: number) { + * this.count += by + * return yield* Effect.succeed(this.count) + * } + * ) + * } + * + * const counter = new Counter() + * + * // ┌─── Effect.Effect + * // ▼ + * const program = counter.increment(1) + * ``` + * + * **Example** (Annotating a traced non-parametric function) * - * @example * ```ts - * import { Console, Effect } from "effect" + * import { Effect } from "effect" * - * const greet = Effect.fnUntraced(function* (name: string) { - * yield* Console.log(`Hello, ${name}`) - * return name.length + * const f = Effect.fn("calculateLength")(function*( + * value: string + * ): Effect.fn.Return { + * return yield* Effect.succeed(value.length) * }) * - * Effect.runFork(greet("Ada")) + * // ┌─── Effect.Effect + * // ▼ + * const program = f("hello") * ``` * - * @since 3.12.0 - * @category Function - */ -export declare const fnUntraced: fn.Untraced; -/** - * Creates a traced function with an optional span name and `SpanOptionsNoTrace` that adds spans and stack frames, plus pipeable post-processing that receives the Effect and the original arguments. - * - * Pipeable functions run after the body and can transform the resulting Effect. + * **Example** (Annotating a traced parametric function) * - * @example * ```ts - * import { Console, Effect } from "effect" - * - * // Create a named span and post-process the returned Effect. - * const greet = Effect.fn("greet")( - * function*(name: string) { - * yield* Console.log(`Hello, ${name}`) - * return name.length - * }, - * Effect.map((length) => length + 1) - * ) + * import { Effect } from "effect" * - * const program = Effect.gen(function*() { - * const result = yield* greet("Ada") - * yield* Console.log(`Length: ${result}`) + * const f = Effect.fn("succeed")(function*( + * value: A + * ): Effect.fn.Return { + * return yield* Effect.succeed(value) * }) + * + * // ┌─── Effect.Effect + * // ▼ + * const program = f("hello") * ``` * - * @since 3.12.0 - * @category Function + * @category functions + * @since 3.11.0 */ export declare const fn: fn.Traced & { (name: string, options?: SpanOptionsNoTrace): fn.Traced; @@ -16073,7 +17472,8 @@ export declare const fn: fn.Traced & { * Retrieves the `Clock` service from the context and provides it to the * specified effectful function. * - * @example + * **Example** (Accessing the Clock service) + * * ```ts * import { Console, Effect } from "effect" * @@ -16089,17 +17489,20 @@ export declare const fn: fn.Traced & { * // Current time is: 1735484929744 * ``` * + * @category clock * @since 2.0.0 - * @category Clock */ export declare const clockWith: (f: (clock: Clock) => Effect) => Effect; /** * Creates a logger function that logs at the specified level. * + * **Details** + * * If no level is provided, the logger uses the fiber's current log level and * extracts any `Cause` values from the message list. * - * @example + * **Example** (Logging at a dynamic level) + * * ```ts * import { Effect } from "effect" * @@ -16110,14 +17513,15 @@ export declare const clockWith: (f: (clock: Clock) => Effect) * }) * ``` * + * @category logging * @since 2.0.0 - * @category Logging */ export declare const logWithLevel: (level?: Severity) => (...message: ReadonlyArray) => Effect; /** * Logs one or more messages using the default log level. * - * @example + * **Example** (Logging at the default level) + * * ```ts * import { Effect } from "effect" * @@ -16137,14 +17541,15 @@ export declare const logWithLevel: (level?: Severity) => (...message: ReadonlyAr * // 4 * ``` * + * @category logging * @since 2.0.0 - * @category Logging */ export declare const log: (...message: ReadonlyArray) => Effect; /** * Logs one or more messages at the FATAL level. * - * @example + * **Example** (Logging fatal messages) + * * ```ts * import { Effect } from "effect" * @@ -16165,14 +17570,15 @@ export declare const log: (...message: ReadonlyArray) => Effect; * // timestamp=2023-... level=FATAL message="System shutting down" * ``` * + * @category logging * @since 2.0.0 - * @category Logging */ export declare const logFatal: (...message: ReadonlyArray) => Effect; /** * Logs one or more messages at the WARNING level. * - * @example + * **Example** (Logging warnings) + * * ```ts * import { Effect } from "effect" * @@ -16194,14 +17600,15 @@ export declare const logFatal: (...message: ReadonlyArray) => Effect; * // timestamp=2023-... level=WARN message="Using deprecated API endpoint" * ``` * + * @category logging * @since 2.0.0 - * @category Logging */ export declare const logWarning: (...message: ReadonlyArray) => Effect; /** * Logs one or more messages at the ERROR level. * - * @example + * **Example** (Logging errors) + * * ```ts * import { Effect } from "effect" * @@ -16226,14 +17633,15 @@ export declare const logWarning: (...message: ReadonlyArray) => Effect) => Effect; /** * Logs one or more messages at the INFO level. * - * @example + * **Example** (Logging information) + * * ```ts * import { Effect } from "effect" * @@ -16253,14 +17661,15 @@ export declare const logError: (...message: ReadonlyArray) => Effect; * // timestamp=2023-... level=INFO message="Application version: 1.2.3" * ``` * + * @category logging * @since 2.0.0 - * @category Logging */ export declare const logInfo: (...message: ReadonlyArray) => Effect; /** * Logs one or more messages at the DEBUG level. * - * @example + * **Example** (Logging debug messages) + * * ```ts * import { Effect } from "effect" * @@ -16281,14 +17690,15 @@ export declare const logInfo: (...message: ReadonlyArray) => Effect; * // timestamp=2023-... level=DEBUG message="Variable state: x=10 y=20 z=30" * ``` * + * @category logging * @since 2.0.0 - * @category Logging */ export declare const logDebug: (...message: ReadonlyArray) => Effect; /** * Logs one or more messages at the TRACE level. * - * @example + * **Example** (Logging trace messages) + * * ```ts * import { Effect } from "effect" * @@ -16312,14 +17722,15 @@ export declare const logDebug: (...message: ReadonlyArray) => Effect; * // timestamp=2023-... level=TRACE message="Exiting function processData" * ``` * + * @category logging * @since 2.0.0 - * @category Logging */ export declare const logTrace: (...message: ReadonlyArray) => Effect; /** * Adds a logger to the set of loggers which will output logs for this effect. * - * @example + * **Example** (Adding a logger to an effect) + * * ```ts * import { Effect, Logger } from "effect" * @@ -16340,14 +17751,15 @@ export declare const logTrace: (...message: ReadonlyArray) => Effect; * // Output includes both default and custom log outputs * ``` * - * @since 2.0.0 - * @category Logging + * @category logging + * @since 4.0.0 */ export declare const withLogger: ((logger: Logger) => (effect: Effect) => Effect) & ((effect: Effect, logger: Logger) => Effect); /** * Adds an annotation to each log line in this effect. * - * @example + * **Example** (Adding log annotations) + * * ```ts * import { Effect } from "effect" * @@ -16370,8 +17782,8 @@ export declare const withLogger: ((logger: Logger) => < * // All log messages will include the userId and operation annotations * ``` * + * @category logging * @since 2.0.0 - * @category Logging */ export declare const annotateLogs: { (key: string, value: unknown): (effect: Effect) => Effect; @@ -16383,11 +17795,18 @@ export declare const annotateLogs: { /** * Adds log annotations to the current scope. * + * **When to use** + * + * Use to attach log annotations that last until the current scope closes. + * + * **Details** + * * This differs from `annotateLogs`, which only annotates a specific effect. * `annotateLogsScoped` updates annotations for the entire current `Scope` and * restores the previous annotations when the scope closes. * - * @example + * **Example** (Adding scoped log annotations) + * * ```ts * import { Effect } from "effect" * @@ -16402,18 +17821,27 @@ export declare const annotateLogs: { * Effect.runPromise(program) * ``` * - * @since 4.0.0 - * @category Logging + * @see {@link annotateLogs} for annotating one effect + * + * @category logging + * @since 3.1.0 */ export declare const annotateLogsScoped: { /** * Adds log annotations to the current scope. * + * **When to use** + * + * Use to attach log annotations that last until the current scope closes. + * + * **Details** + * * This differs from `annotateLogs`, which only annotates a specific effect. * `annotateLogsScoped` updates annotations for the entire current `Scope` and * restores the previous annotations when the scope closes. * - * @example + * **Example** (Adding scoped log annotations) + * * ```ts * import { Effect } from "effect" * @@ -16428,18 +17856,27 @@ export declare const annotateLogsScoped: { * Effect.runPromise(program) * ``` * - * @since 4.0.0 - * @category Logging + * @see {@link annotateLogs} for annotating one effect + * + * @category logging + * @since 3.1.0 */ (key: string, value: unknown): Effect; /** * Adds log annotations to the current scope. * + * **When to use** + * + * Use to attach log annotations that last until the current scope closes. + * + * **Details** + * * This differs from `annotateLogs`, which only annotates a specific effect. * `annotateLogsScoped` updates annotations for the entire current `Scope` and * restores the previous annotations when the scope closes. * - * @example + * **Example** (Adding scoped log annotations) + * * ```ts * import { Effect } from "effect" * @@ -16454,15 +17891,18 @@ export declare const annotateLogsScoped: { * Effect.runPromise(program) * ``` * - * @since 4.0.0 - * @category Logging + * @see {@link annotateLogs} for annotating one effect + * + * @category logging + * @since 3.1.0 */ (values: Record): Effect; }; /** * Adds a span to each log line in this effect. * - * @example + * **Example** (Adding a log span) + * * ```ts * import { Effect } from "effect" * @@ -16486,17 +17926,20 @@ export declare const annotateLogsScoped: { * // All log messages will include span information showing the nested operation context * ``` * + * @category logging * @since 2.0.0 - * @category Logging */ export declare const withLogSpan: ((label: string) => (effect: Effect) => Effect) & ((effect: Effect, label: string) => Effect); /** * Updates the `Metric` every time the `Effect` is executed. * + * **Details** + * * Also accepts an optional function which can be used to map the `Exit` value * of the `Effect` into a valid `Input` for the `Metric`. * - * @example + * **Example** (Incrementing a metric for each execution) + * * ```ts * import { Effect, Metric } from "effect" * @@ -16515,7 +17958,8 @@ export declare const withLogSpan: ((label: string) => (effect: Effect (effect: Effect(metric: Metric.Metric, f: (exit: Exit.Exit) => Input): (self: Effect) => Effect; /** * Updates the `Metric` every time the `Effect` is executed. * + * **Details** + * * Also accepts an optional function which can be used to map the `Exit` value * of the `Effect` into a valid `Input` for the `Metric`. * - * @example + * **Example** (Incrementing a metric for each execution) + * * ```ts * import { Effect, Metric } from "effect" * @@ -16613,7 +18064,8 @@ export declare const track: { * ) * ``` * - * @example + * **Example** (Mapping exits before updating a metric) + * * ```ts * import { Effect, Exit, Metric } from "effect" * @@ -16633,17 +18085,20 @@ export declare const track: { * ) * ``` * + * @category tracking * @since 4.0.0 - * @category Tracking */ (metric: Metric.Metric, NoInfer>, State>): (self: Effect) => Effect; /** * Updates the `Metric` every time the `Effect` is executed. * + * **Details** + * * Also accepts an optional function which can be used to map the `Exit` value * of the `Effect` into a valid `Input` for the `Metric`. * - * @example + * **Example** (Incrementing a metric for each execution) + * * ```ts * import { Effect, Metric } from "effect" * @@ -16662,7 +18117,8 @@ export declare const track: { * ) * ``` * - * @example + * **Example** (Mapping exits before updating a metric) + * * ```ts * import { Effect, Exit, Metric } from "effect" * @@ -16682,17 +18138,20 @@ export declare const track: { * ) * ``` * + * @category tracking * @since 4.0.0 - * @category Tracking */ (self: Effect, metric: Metric.Metric, f: (exit: Exit.Exit) => Input): Effect; /** * Updates the `Metric` every time the `Effect` is executed. * + * **Details** + * * Also accepts an optional function which can be used to map the `Exit` value * of the `Effect` into a valid `Input` for the `Metric`. * - * @example + * **Example** (Incrementing a metric for each execution) + * * ```ts * import { Effect, Metric } from "effect" * @@ -16711,7 +18170,8 @@ export declare const track: { * ) * ``` * - * @example + * **Example** (Mapping exits before updating a metric) + * * ```ts * import { Effect, Exit, Metric } from "effect" * @@ -16731,8 +18191,8 @@ export declare const track: { * ) * ``` * + * @category tracking * @since 4.0.0 - * @category Tracking */ (self: Effect, metric: Metric.Metric, NoInfer>, State>): Effect; }; @@ -16740,10 +18200,13 @@ export declare const track: { * Updates the provided `Metric` every time the wrapped `Effect` succeeds with * a value. * + * **Details** + * * Also accepts an optional function which can be used to map the success value * of the `Effect` into a valid `Input` for the `Metric`. * - * @example + * **Example** (Counting successful results) + * * ```ts * import { Effect, Metric } from "effect" * @@ -16761,7 +18224,8 @@ export declare const track: { * ) * ``` * - * @example + * **Example** (Mapping successes before tracking) + * * ```ts * import { Effect, Metric } from "effect" * @@ -16778,18 +18242,21 @@ export declare const track: { * ) * ``` * + * @category tracking * @since 4.0.0 - * @category Tracking */ export declare const trackSuccesses: { /** * Updates the provided `Metric` every time the wrapped `Effect` succeeds with * a value. * + * **Details** + * * Also accepts an optional function which can be used to map the success value * of the `Effect` into a valid `Input` for the `Metric`. * - * @example + * **Example** (Counting successful results) + * * ```ts * import { Effect, Metric } from "effect" * @@ -16807,7 +18274,8 @@ export declare const trackSuccesses: { * ) * ``` * - * @example + * **Example** (Mapping successes before tracking) + * * ```ts * import { Effect, Metric } from "effect" * @@ -16824,18 +18292,21 @@ export declare const trackSuccesses: { * ) * ``` * + * @category tracking * @since 4.0.0 - * @category Tracking */ (metric: Metric.Metric, f: (value: A) => Input): (self: Effect) => Effect; /** * Updates the provided `Metric` every time the wrapped `Effect` succeeds with * a value. * + * **Details** + * * Also accepts an optional function which can be used to map the success value * of the `Effect` into a valid `Input` for the `Metric`. * - * @example + * **Example** (Counting successful results) + * * ```ts * import { Effect, Metric } from "effect" * @@ -16853,7 +18324,8 @@ export declare const trackSuccesses: { * ) * ``` * - * @example + * **Example** (Mapping successes before tracking) + * * ```ts * import { Effect, Metric } from "effect" * @@ -16870,18 +18342,21 @@ export declare const trackSuccesses: { * ) * ``` * + * @category tracking * @since 4.0.0 - * @category Tracking */ (metric: Metric.Metric, State>): (self: Effect) => Effect; /** * Updates the provided `Metric` every time the wrapped `Effect` succeeds with * a value. * + * **Details** + * * Also accepts an optional function which can be used to map the success value * of the `Effect` into a valid `Input` for the `Metric`. * - * @example + * **Example** (Counting successful results) + * * ```ts * import { Effect, Metric } from "effect" * @@ -16899,7 +18374,8 @@ export declare const trackSuccesses: { * ) * ``` * - * @example + * **Example** (Mapping successes before tracking) + * * ```ts * import { Effect, Metric } from "effect" * @@ -16916,18 +18392,21 @@ export declare const trackSuccesses: { * ) * ``` * + * @category tracking * @since 4.0.0 - * @category Tracking */ (self: Effect, metric: Metric.Metric, f: (value: A) => Input): Effect; /** * Updates the provided `Metric` every time the wrapped `Effect` succeeds with * a value. * + * **Details** + * * Also accepts an optional function which can be used to map the success value * of the `Effect` into a valid `Input` for the `Metric`. * - * @example + * **Example** (Counting successful results) + * * ```ts * import { Effect, Metric } from "effect" * @@ -16945,7 +18424,8 @@ export declare const trackSuccesses: { * ) * ``` * - * @example + * **Example** (Mapping successes before tracking) + * * ```ts * import { Effect, Metric } from "effect" * @@ -16962,8 +18442,8 @@ export declare const trackSuccesses: { * ) * ``` * + * @category tracking * @since 4.0.0 - * @category Tracking */ (self: Effect, metric: Metric.Metric, State>): Effect; }; @@ -16971,10 +18451,13 @@ export declare const trackSuccesses: { * Updates the provided `Metric` every time the wrapped `Effect` fails with an * **expected** error. * + * **Details** + * * Also accepts an optional function which can be used to map the error value * of the `Effect` into a valid `Input` for the `Metric`. * - * @example + * **Example** (Counting expected failures) + * * ```ts * import { Effect, Metric } from "effect" * @@ -16992,7 +18475,8 @@ export declare const trackSuccesses: { * ) * ``` * - * @example + * **Example** (Mapping errors before tracking) + * * ```ts * import { Data, Effect, Metric } from "effect" * @@ -17011,18 +18495,21 @@ export declare const trackSuccesses: { * ) * ``` * + * @category tracking * @since 4.0.0 - * @category Tracking */ export declare const trackErrors: { /** * Updates the provided `Metric` every time the wrapped `Effect` fails with an * **expected** error. * + * **Details** + * * Also accepts an optional function which can be used to map the error value * of the `Effect` into a valid `Input` for the `Metric`. * - * @example + * **Example** (Counting expected failures) + * * ```ts * import { Effect, Metric } from "effect" * @@ -17040,7 +18527,8 @@ export declare const trackErrors: { * ) * ``` * - * @example + * **Example** (Mapping errors before tracking) + * * ```ts * import { Data, Effect, Metric } from "effect" * @@ -17059,18 +18547,21 @@ export declare const trackErrors: { * ) * ``` * + * @category tracking * @since 4.0.0 - * @category Tracking */ (metric: Metric.Metric, f: (error: E) => Input): (self: Effect) => Effect; /** * Updates the provided `Metric` every time the wrapped `Effect` fails with an * **expected** error. * + * **Details** + * * Also accepts an optional function which can be used to map the error value * of the `Effect` into a valid `Input` for the `Metric`. * - * @example + * **Example** (Counting expected failures) + * * ```ts * import { Effect, Metric } from "effect" * @@ -17088,7 +18579,8 @@ export declare const trackErrors: { * ) * ``` * - * @example + * **Example** (Mapping errors before tracking) + * * ```ts * import { Data, Effect, Metric } from "effect" * @@ -17107,18 +18599,21 @@ export declare const trackErrors: { * ) * ``` * + * @category tracking * @since 4.0.0 - * @category Tracking */ (metric: Metric.Metric, State>): (self: Effect) => Effect; /** * Updates the provided `Metric` every time the wrapped `Effect` fails with an * **expected** error. * + * **Details** + * * Also accepts an optional function which can be used to map the error value * of the `Effect` into a valid `Input` for the `Metric`. * - * @example + * **Example** (Counting expected failures) + * * ```ts * import { Effect, Metric } from "effect" * @@ -17136,7 +18631,8 @@ export declare const trackErrors: { * ) * ``` * - * @example + * **Example** (Mapping errors before tracking) + * * ```ts * import { Data, Effect, Metric } from "effect" * @@ -17155,18 +18651,21 @@ export declare const trackErrors: { * ) * ``` * + * @category tracking * @since 4.0.0 - * @category Tracking */ (self: Effect, metric: Metric.Metric, f: (error: E) => Input): Effect; /** * Updates the provided `Metric` every time the wrapped `Effect` fails with an * **expected** error. * + * **Details** + * * Also accepts an optional function which can be used to map the error value * of the `Effect` into a valid `Input` for the `Metric`. * - * @example + * **Example** (Counting expected failures) + * * ```ts * import { Effect, Metric } from "effect" * @@ -17184,7 +18683,8 @@ export declare const trackErrors: { * ) * ``` * - * @example + * **Example** (Mapping errors before tracking) + * * ```ts * import { Data, Effect, Metric } from "effect" * @@ -17203,8 +18703,8 @@ export declare const trackErrors: { * ) * ``` * + * @category tracking * @since 4.0.0 - * @category Tracking */ (self: Effect, metric: Metric.Metric, State>): Effect; }; @@ -17212,10 +18712,13 @@ export declare const trackErrors: { * Updates the provided `Metric` every time the wrapped `Effect` fails with an * **unexpected** error (i.e. a defect). * + * **Details** + * * Also accepts an optional function which can be used to map the defect value * of the `Effect` into a valid `Input` for the `Metric`. * - * @example + * **Example** (Counting defects) + * * ```ts * import { Effect, Metric } from "effect" * @@ -17233,7 +18736,8 @@ export declare const trackErrors: { * ) * ``` * - * @example + * **Example** (Mapping defects before tracking) + * * ```ts * import { Effect, Metric } from "effect" * @@ -17253,18 +18757,21 @@ export declare const trackErrors: { * ) * ``` * + * @category tracking * @since 4.0.0 - * @category Tracking */ export declare const trackDefects: { /** * Updates the provided `Metric` every time the wrapped `Effect` fails with an * **unexpected** error (i.e. a defect). * + * **Details** + * * Also accepts an optional function which can be used to map the defect value * of the `Effect` into a valid `Input` for the `Metric`. * - * @example + * **Example** (Counting defects) + * * ```ts * import { Effect, Metric } from "effect" * @@ -17282,7 +18789,8 @@ export declare const trackDefects: { * ) * ``` * - * @example + * **Example** (Mapping defects before tracking) + * * ```ts * import { Effect, Metric } from "effect" * @@ -17302,18 +18810,21 @@ export declare const trackDefects: { * ) * ``` * + * @category tracking * @since 4.0.0 - * @category Tracking */ (metric: Metric.Metric, f: (defect: unknown) => Input): (self: Effect) => Effect; /** * Updates the provided `Metric` every time the wrapped `Effect` fails with an * **unexpected** error (i.e. a defect). * + * **Details** + * * Also accepts an optional function which can be used to map the defect value * of the `Effect` into a valid `Input` for the `Metric`. * - * @example + * **Example** (Counting defects) + * * ```ts * import { Effect, Metric } from "effect" * @@ -17331,7 +18842,8 @@ export declare const trackDefects: { * ) * ``` * - * @example + * **Example** (Mapping defects before tracking) + * * ```ts * import { Effect, Metric } from "effect" * @@ -17351,18 +18863,21 @@ export declare const trackDefects: { * ) * ``` * + * @category tracking * @since 4.0.0 - * @category Tracking */ (metric: Metric.Metric): (self: Effect) => Effect; /** * Updates the provided `Metric` every time the wrapped `Effect` fails with an * **unexpected** error (i.e. a defect). * + * **Details** + * * Also accepts an optional function which can be used to map the defect value * of the `Effect` into a valid `Input` for the `Metric`. * - * @example + * **Example** (Counting defects) + * * ```ts * import { Effect, Metric } from "effect" * @@ -17380,7 +18895,8 @@ export declare const trackDefects: { * ) * ``` * - * @example + * **Example** (Mapping defects before tracking) + * * ```ts * import { Effect, Metric } from "effect" * @@ -17400,18 +18916,21 @@ export declare const trackDefects: { * ) * ``` * + * @category tracking * @since 4.0.0 - * @category Tracking */ (self: Effect, metric: Metric.Metric, f: (defect: unknown) => Input): Effect; /** * Updates the provided `Metric` every time the wrapped `Effect` fails with an * **unexpected** error (i.e. a defect). * + * **Details** + * * Also accepts an optional function which can be used to map the defect value * of the `Effect` into a valid `Input` for the `Metric`. * - * @example + * **Example** (Counting defects) + * * ```ts * import { Effect, Metric } from "effect" * @@ -17429,7 +18948,8 @@ export declare const trackDefects: { * ) * ``` * - * @example + * **Example** (Mapping defects before tracking) + * * ```ts * import { Effect, Metric } from "effect" * @@ -17449,8 +18969,8 @@ export declare const trackDefects: { * ) * ``` * + * @category tracking * @since 4.0.0 - * @category Tracking */ (self: Effect, metric: Metric.Metric): Effect; }; @@ -17458,11 +18978,14 @@ export declare const trackDefects: { * Updates the provided `Metric` with the `Duration` of time (in nanoseconds) * that the wrapped `Effect` took to complete. * + * **Details** + * * Also accepts an optional function which can be used to map the `Duration` * that the wrapped `Effect` took to complete into a valid `Input` for the * `Metric`. * - * @example + * **Example** (Recording execution duration) + * * ```ts * import { Effect, Metric } from "effect" * @@ -17478,7 +19001,8 @@ export declare const trackDefects: { * ) * ``` * - * @example + * **Example** (Mapping duration before tracking) + * * ```ts * import { Duration, Effect, Metric } from "effect" * @@ -17495,19 +19019,22 @@ export declare const trackDefects: { * ) * ``` * + * @category tracking * @since 4.0.0 - * @category Tracking */ export declare const trackDuration: { /** * Updates the provided `Metric` with the `Duration` of time (in nanoseconds) * that the wrapped `Effect` took to complete. * + * **Details** + * * Also accepts an optional function which can be used to map the `Duration` * that the wrapped `Effect` took to complete into a valid `Input` for the * `Metric`. * - * @example + * **Example** (Recording execution duration) + * * ```ts * import { Effect, Metric } from "effect" * @@ -17523,7 +19050,8 @@ export declare const trackDuration: { * ) * ``` * - * @example + * **Example** (Mapping duration before tracking) + * * ```ts * import { Duration, Effect, Metric } from "effect" * @@ -17540,19 +19068,22 @@ export declare const trackDuration: { * ) * ``` * + * @category tracking * @since 4.0.0 - * @category Tracking */ (metric: Metric.Metric, f: (duration: Duration.Duration) => Input): (self: Effect) => Effect; /** * Updates the provided `Metric` with the `Duration` of time (in nanoseconds) * that the wrapped `Effect` took to complete. * + * **Details** + * * Also accepts an optional function which can be used to map the `Duration` * that the wrapped `Effect` took to complete into a valid `Input` for the * `Metric`. * - * @example + * **Example** (Recording execution duration) + * * ```ts * import { Effect, Metric } from "effect" * @@ -17568,7 +19099,8 @@ export declare const trackDuration: { * ) * ``` * - * @example + * **Example** (Mapping duration before tracking) + * * ```ts * import { Duration, Effect, Metric } from "effect" * @@ -17585,19 +19117,22 @@ export declare const trackDuration: { * ) * ``` * + * @category tracking * @since 4.0.0 - * @category Tracking */ (metric: Metric.Metric): (self: Effect) => Effect; /** * Updates the provided `Metric` with the `Duration` of time (in nanoseconds) * that the wrapped `Effect` took to complete. * + * **Details** + * * Also accepts an optional function which can be used to map the `Duration` * that the wrapped `Effect` took to complete into a valid `Input` for the * `Metric`. * - * @example + * **Example** (Recording execution duration) + * * ```ts * import { Effect, Metric } from "effect" * @@ -17613,7 +19148,8 @@ export declare const trackDuration: { * ) * ``` * - * @example + * **Example** (Mapping duration before tracking) + * * ```ts * import { Duration, Effect, Metric } from "effect" * @@ -17630,19 +19166,22 @@ export declare const trackDuration: { * ) * ``` * + * @category tracking * @since 4.0.0 - * @category Tracking */ (self: Effect, metric: Metric.Metric, f: (duration: Duration.Duration) => Input): Effect; /** * Updates the provided `Metric` with the `Duration` of time (in nanoseconds) * that the wrapped `Effect` took to complete. * + * **Details** + * * Also accepts an optional function which can be used to map the `Duration` * that the wrapped `Effect` took to complete into a valid `Input` for the * `Metric`. * - * @example + * **Example** (Recording execution duration) + * * ```ts * import { Effect, Metric } from "effect" * @@ -17658,7 +19197,8 @@ export declare const trackDuration: { * ) * ``` * - * @example + * **Example** (Mapping duration before tracking) + * * ```ts * import { Duration, Effect, Metric } from "effect" * @@ -17675,8 +19215,8 @@ export declare const trackDuration: { * ) * ``` * + * @category tracking * @since 4.0.0 - * @category Tracking */ (self: Effect, metric: Metric.Metric): Effect; }; @@ -17688,12 +19228,15 @@ declare const Transaction_base: Context.ServiceClass; }>; /** - * Service that holds the current transaction state, it includes + * Service that holds the current transaction state. + * + * **Details** + * + * It includes a journal that stores non-committed changes to `TxRef` values and + * a retry flag that records whether the transaction should be retried. * - * - a journal that stores any non committed change to TxRef values - * - a retry flag to know if the transaction should be retried + * **Example** (Building transactions) * - * @example * ```ts * import { Effect } from "effect" * @@ -17705,8 +19248,8 @@ declare const Transaction_base: Context.ServiceClass(effect: Effect) => Effect>; /** - * Signals that the current transaction needs to be retried. + * Retries the current transaction by signaling that it must be retried. * - * NOTE: the transaction retries on any change to transactional values (i.e. TxRef) accessed in its body. + * **Details** * - * @since 4.0.0 - * @category Transactions + * NOTE: the transaction retries on any change to transactional values (i.e. TxRef) accessed in its body. * - * @example + * **Example** (Retrying transactions) * * ```ts * import { Effect, TxRef } from "effect" @@ -17789,23 +19331,15 @@ export declare const tx: (effect: Effect) => Effect; /** - * @since 4.0.0 - * @category Effectify - * @example - * ```ts - * import { Effect } from "effect" + * Type helpers for converting callback-based functions into `Effect` functions. * - * // Effectify namespace contains utilities for converting callback-based APIs - * declare function readFile( - * path: string, - * cb: (err: Error | null, data?: string) => void - * ): void - * const effectReadFile = Effect.effectify(readFile) - * // Converts callback-based functions to Effect-based functions - * ``` + * @since 4.0.0 */ export declare namespace Effectify { interface Callback { @@ -17814,20 +19348,10 @@ export declare namespace Effectify { type ArgsWithCallback, E, A> = [...args: Args, cb: Callback]; type WithoutNull = unknown extends A ? void : Exclude; /** - * @since 4.0.0 - * @category Effectify - * @example - * ```ts - * import type { Effect } from "effect" + * Converts a callback-based function type into an `Effect`-returning function type. * - * // Effectify type converts callback-based function types to Effect-based types - * type CallbackFn = ( - * x: number, - * cb: (err: Error | null, result?: string) => void - * ) => void - * type EffectFn = Effect.Effectify.Effectify - * // Result: (x: number) => Effect - * ``` + * @category effectify + * @since 4.0.0 */ type Effectify = T extends { (...args: ArgsWithCallback): infer _R1; @@ -17961,20 +19485,10 @@ export declare namespace Effectify { (...args: Args1): Effect, E>; } : never; /** - * @category Util - * @since 4.0.0 - * @example - * ```ts - * import type { Effect } from "effect" + * Extracts the callback error type from a callback-based function type. * - * // EffectifyError extracts error types from callback-based function types - * type CallbackFn = ( - * x: number, - * cb: (err: Error | null, result?: string) => void - * ) => void - * type ErrorType = Effect.Effectify.EffectifyError - * // Result: Error | null - * ``` + * @category effectify + * @since 4.0.0 */ type EffectifyError = T extends { (...args: ArgsWithCallback): infer _R1; @@ -18044,9 +19558,19 @@ export declare namespace Effectify { } ? NonNullable : never; } /** - * Converts a callback-based function to a function that returns an `Effect`. + * Converts an error-first callback API into a function that returns an + * `Effect`. + * + * **Details** + * + * The original function is called with the supplied arguments plus a final + * callback. A non-null callback error fails the returned effect, while a + * successful callback value becomes the effect success. Use `onError` to map + * callback errors and `onSyncError` to turn synchronous throws into typed + * failures; otherwise synchronous throws become defects. + * + * **Example** (Converting callbacks to effects) * - * @example Basic Usage * ```ts * import { Effect } from "effect" * import * as fs from "fs" @@ -18061,7 +19585,8 @@ export declare namespace Effectify { * // Output: contents of package.json * ``` * - * @example Custom Error Handling + * **Example** (Mapping callback errors to typed failures) + * * ```ts * import { Effect } from "effect" * import * as fs from "fs" @@ -18077,14 +19602,24 @@ export declare namespace Effectify { * // Output: Exit.failure with custom error message * ``` * + * @category effectify * @since 4.0.0 - * @category Effectify */ export declare const effectify: { /** - * Converts a callback-based function to a function that returns an `Effect`. + * Converts an error-first callback API into a function that returns an + * `Effect`. + * + * **Details** + * + * The original function is called with the supplied arguments plus a final + * callback. A non-null callback error fails the returned effect, while a + * successful callback value becomes the effect success. Use `onError` to map + * callback errors and `onSyncError` to turn synchronous throws into typed + * failures; otherwise synchronous throws become defects. + * + * **Example** (Converting callbacks to effects) * - * @example Basic Usage * ```ts * import { Effect } from "effect" * import * as fs from "fs" @@ -18099,7 +19634,8 @@ export declare const effectify: { * // Output: contents of package.json * ``` * - * @example Custom Error Handling + * **Example** (Mapping callback errors to typed failures) + * * ```ts * import { Effect } from "effect" * import * as fs from "fs" @@ -18115,14 +19651,24 @@ export declare const effectify: { * // Output: Exit.failure with custom error message * ``` * + * @category effectify * @since 4.0.0 - * @category Effectify */ ) => any>(fn: F): Effectify.Effectify>; /** - * Converts a callback-based function to a function that returns an `Effect`. + * Converts an error-first callback API into a function that returns an + * `Effect`. + * + * **Details** + * + * The original function is called with the supplied arguments plus a final + * callback. A non-null callback error fails the returned effect, while a + * successful callback value becomes the effect success. Use `onError` to map + * callback errors and `onSyncError` to turn synchronous throws into typed + * failures; otherwise synchronous throws become defects. + * + * **Example** (Converting callbacks to effects) * - * @example Basic Usage * ```ts * import { Effect } from "effect" * import * as fs from "fs" @@ -18137,7 +19683,8 @@ export declare const effectify: { * // Output: contents of package.json * ``` * - * @example Custom Error Handling + * **Example** (Mapping callback errors to typed failures) + * * ```ts * import { Effect } from "effect" * import * as fs from "fs" @@ -18153,14 +19700,24 @@ export declare const effectify: { * // Output: Exit.failure with custom error message * ``` * + * @category effectify * @since 4.0.0 - * @category Effectify */ ) => any, E>(fn: F, onError: (error: Effectify.EffectifyError, args: Parameters) => E): Effectify.Effectify; /** - * Converts a callback-based function to a function that returns an `Effect`. + * Converts an error-first callback API into a function that returns an + * `Effect`. + * + * **Details** + * + * The original function is called with the supplied arguments plus a final + * callback. A non-null callback error fails the returned effect, while a + * successful callback value becomes the effect success. Use `onError` to map + * callback errors and `onSyncError` to turn synchronous throws into typed + * failures; otherwise synchronous throws become defects. + * + * **Example** (Converting callbacks to effects) * - * @example Basic Usage * ```ts * import { Effect } from "effect" * import * as fs from "fs" @@ -18175,7 +19732,8 @@ export declare const effectify: { * // Output: contents of package.json * ``` * - * @example Custom Error Handling + * **Example** (Mapping callback errors to typed failures) + * * ```ts * import { Effect } from "effect" * import * as fs from "fs" @@ -18191,18 +19749,21 @@ export declare const effectify: { * // Output: Exit.failure with custom error message * ``` * + * @category effectify * @since 4.0.0 - * @category Effectify */ ) => any, E, E2>(fn: F, onError: (error: Effectify.EffectifyError, args: Parameters) => E, onSyncError: (error: unknown, args: Parameters) => E2): Effectify.Effectify; }; /** * Ensures that an effect's success type extends a given type `A`. * - * This function provides compile-time type checking to ensure that the success - * value of an effect conforms to a specific type constraint. + * **Details** + * + * This helper is checked at compile time and does not change the effect's + * runtime behavior. + * + * **Example** (Constraining the success type) * - * @example * ```ts * import { Effect } from "effect" * @@ -18218,17 +19779,20 @@ export declare const effectify: { * // Type 'string' is not assignable to type 'number' * ``` * + * @category utility types * @since 4.0.0 - * @category Type Constraints */ export declare const satisfiesSuccessType: () => (effect: Effect) => Effect; /** * Ensures that an effect's error type extends a given type `E`. * - * This function provides compile-time type checking to ensure that the error - * type of an effect conforms to a specific type constraint. + * **Details** + * + * This helper is checked at compile time and does not change the effect's + * runtime behavior. + * + * **Example** (Constraining the error type) * - * @example * ```ts * import { Data, Effect } from "effect" * @@ -18246,17 +19810,20 @@ export declare const satisfiesSuccessType: () => (effect: * // Type 'string' is not assignable to type 'ValidationError' * ``` * + * @category utility types * @since 4.0.0 - * @category Type Constraints */ export declare const satisfiesErrorType: () => (effect: Effect) => Effect; /** * Ensures that an effect's requirements type extends a given type `R`. * - * This function provides compile-time type checking to ensure that the - * requirements (context) type of an effect conforms to a specific type constraint. + * **Details** + * + * This helper is checked at compile time and does not change the effect's + * runtime behavior. + * + * **Example** (Constraining the services type) * - * @example * ```ts * import { Effect } from "effect" * @@ -18272,27 +19839,25 @@ export declare const satisfiesErrorType: () => (effect: E * // const constrainedInvalid = satisfiesStringServices(invalidEffect) * ``` * + * @category utility types * @since 4.0.0 - * @category Type Constraints */ export declare const satisfiesServicesType: () => (effect: Effect) => Effect; /** - * An optimized version of `map` that checks if an effect is already resolved - * and applies the mapping function eagerly when possible. + * Applies `map` eagerly when an effect is already resolved. + * + * **When to use** * - * **When to Use** + * Use when an already-resolved effect should apply a success transformation + * immediately while pending effects still use regular mapping. * - * `mapEager` provides better performance for effects that are already resolved - * by applying the transformation immediately instead of deferring it through - * the effect pipeline. + * **Details** * - * **Behavior** + * Success effects apply the mapping function immediately. Failure effects pass + * through unchanged, and pending effects fall back to regular `map` behavior. * - * - For **Success effects**: Applies the mapping function immediately to the value - * - For **Failure effects**: Returns the failure as-is without applying the mapping - * - For **Pending effects**: Falls back to the regular `map` behavior + * **Example** (Mapping already completed effects) * - * @example * ```ts * import { Effect } from "effect" * @@ -18305,27 +19870,25 @@ export declare const satisfiesServicesType: () => (effect * const mappedPending = Effect.mapEager(pending, (n) => n * 2) // Uses regular map * ``` * + * @category eager * @since 4.0.0 - * @category Eager */ export declare const mapEager: { /** - * An optimized version of `map` that checks if an effect is already resolved - * and applies the mapping function eagerly when possible. + * Applies `map` eagerly when an effect is already resolved. + * + * **When to use** * - * **When to Use** + * Use when an already-resolved effect should apply a success transformation + * immediately while pending effects still use regular mapping. * - * `mapEager` provides better performance for effects that are already resolved - * by applying the transformation immediately instead of deferring it through - * the effect pipeline. + * **Details** * - * **Behavior** + * Success effects apply the mapping function immediately. Failure effects pass + * through unchanged, and pending effects fall back to regular `map` behavior. * - * - For **Success effects**: Applies the mapping function immediately to the value - * - For **Failure effects**: Returns the failure as-is without applying the mapping - * - For **Pending effects**: Falls back to the regular `map` behavior + * **Example** (Mapping already completed effects) * - * @example * ```ts * import { Effect } from "effect" * @@ -18338,27 +19901,25 @@ export declare const mapEager: { * const mappedPending = Effect.mapEager(pending, (n) => n * 2) // Uses regular map * ``` * + * @category eager * @since 4.0.0 - * @category Eager */ (f: (a: A) => B): (self: Effect) => Effect; /** - * An optimized version of `map` that checks if an effect is already resolved - * and applies the mapping function eagerly when possible. + * Applies `map` eagerly when an effect is already resolved. + * + * **When to use** * - * **When to Use** + * Use when an already-resolved effect should apply a success transformation + * immediately while pending effects still use regular mapping. * - * `mapEager` provides better performance for effects that are already resolved - * by applying the transformation immediately instead of deferring it through - * the effect pipeline. + * **Details** * - * **Behavior** + * Success effects apply the mapping function immediately. Failure effects pass + * through unchanged, and pending effects fall back to regular `map` behavior. * - * - For **Success effects**: Applies the mapping function immediately to the value - * - For **Failure effects**: Returns the failure as-is without applying the mapping - * - For **Pending effects**: Falls back to the regular `map` behavior + * **Example** (Mapping already completed effects) * - * @example * ```ts * import { Effect } from "effect" * @@ -18371,28 +19932,28 @@ export declare const mapEager: { * const mappedPending = Effect.mapEager(pending, (n) => n * 2) // Uses regular map * ``` * + * @category eager * @since 4.0.0 - * @category Eager */ (self: Effect, f: (a: A) => B): Effect; }; /** - * An optimized version of `mapError` that checks if an effect is already resolved - * and applies the error mapping function eagerly when possible. + * Applies `mapError` eagerly when an effect is already resolved. + * + * **When to use** * - * **When to Use** + * Use when an already-resolved failed effect should apply an error + * transformation immediately while pending effects still use regular error + * mapping. * - * `mapErrorEager` provides better performance for effects that are already resolved - * by applying the error transformation immediately instead of deferring it through - * the effect pipeline. + * **Details** * - * **Behavior** + * Success effects pass through unchanged because there is no error to + * transform. Failure effects apply the mapping function immediately, and + * pending effects fall back to regular `mapError` behavior. * - * - For **Success effects**: Returns the success as-is (no error to transform) - * - For **Failure effects**: Applies the mapping function immediately to the error - * - For **Pending effects**: Falls back to the regular `mapError` behavior + * **Example** (Mapping errors eagerly when possible) * - * @example * ```ts * import { Effect } from "effect" * @@ -18408,27 +19969,27 @@ export declare const mapEager: { * ) // Uses regular mapError * ``` * + * @category eager * @since 4.0.0 - * @category Eager */ export declare const mapErrorEager: { /** - * An optimized version of `mapError` that checks if an effect is already resolved - * and applies the error mapping function eagerly when possible. + * Applies `mapError` eagerly when an effect is already resolved. + * + * **When to use** * - * **When to Use** + * Use when an already-resolved failed effect should apply an error + * transformation immediately while pending effects still use regular error + * mapping. * - * `mapErrorEager` provides better performance for effects that are already resolved - * by applying the error transformation immediately instead of deferring it through - * the effect pipeline. + * **Details** * - * **Behavior** + * Success effects pass through unchanged because there is no error to + * transform. Failure effects apply the mapping function immediately, and + * pending effects fall back to regular `mapError` behavior. * - * - For **Success effects**: Returns the success as-is (no error to transform) - * - For **Failure effects**: Applies the mapping function immediately to the error - * - For **Pending effects**: Falls back to the regular `mapError` behavior + * **Example** (Mapping errors eagerly when possible) * - * @example * ```ts * import { Effect } from "effect" * @@ -18444,27 +20005,27 @@ export declare const mapErrorEager: { * ) // Uses regular mapError * ``` * + * @category eager * @since 4.0.0 - * @category Eager */ (f: (e: E) => E2): (self: Effect) => Effect; /** - * An optimized version of `mapError` that checks if an effect is already resolved - * and applies the error mapping function eagerly when possible. + * Applies `mapError` eagerly when an effect is already resolved. + * + * **When to use** * - * **When to Use** + * Use when an already-resolved failed effect should apply an error + * transformation immediately while pending effects still use regular error + * mapping. * - * `mapErrorEager` provides better performance for effects that are already resolved - * by applying the error transformation immediately instead of deferring it through - * the effect pipeline. + * **Details** * - * **Behavior** + * Success effects pass through unchanged because there is no error to + * transform. Failure effects apply the mapping function immediately, and + * pending effects fall back to regular `mapError` behavior. * - * - For **Success effects**: Returns the success as-is (no error to transform) - * - For **Failure effects**: Applies the mapping function immediately to the error - * - For **Pending effects**: Falls back to the regular `mapError` behavior + * **Example** (Mapping errors eagerly when possible) * - * @example * ```ts * import { Effect } from "effect" * @@ -18480,28 +20041,27 @@ export declare const mapErrorEager: { * ) // Uses regular mapError * ``` * + * @category eager * @since 4.0.0 - * @category Eager */ (self: Effect, f: (e: E) => E2): Effect; }; /** - * An optimized version of `mapBoth` that checks if an effect is already resolved - * and applies the appropriate mapping function eagerly when possible. + * Applies `mapBoth` eagerly when an effect is already resolved. + * + * **When to use** * - * **When to Use** + * Use when an already-resolved effect should transform either success or + * failure immediately while pending effects still use regular channel mapping. * - * `mapBothEager` provides better performance for effects that are already resolved - * by applying the transformation immediately instead of deferring it through - * the effect pipeline. + * **Details** * - * **Behavior** + * Success effects apply `onSuccess` immediately, and failure effects apply + * `onFailure` immediately. Pending effects fall back to regular `mapBoth` + * behavior. * - * - For **Success effects**: Applies the `onSuccess` function immediately to the value - * - For **Failure effects**: Applies the `onFailure` function immediately to the error - * - For **Pending effects**: Falls back to the regular `mapBoth` behavior + * **Example** (Mapping both channels eagerly when possible) * - * @example * ```ts * import { Effect } from "effect" * @@ -18519,27 +20079,26 @@ export declare const mapErrorEager: { * }) // onFailure applied eagerly * ``` * + * @category eager * @since 4.0.0 - * @category Eager */ export declare const mapBothEager: { /** - * An optimized version of `mapBoth` that checks if an effect is already resolved - * and applies the appropriate mapping function eagerly when possible. + * Applies `mapBoth` eagerly when an effect is already resolved. + * + * **When to use** * - * **When to Use** + * Use when an already-resolved effect should transform either success or + * failure immediately while pending effects still use regular channel mapping. * - * `mapBothEager` provides better performance for effects that are already resolved - * by applying the transformation immediately instead of deferring it through - * the effect pipeline. + * **Details** * - * **Behavior** + * Success effects apply `onSuccess` immediately, and failure effects apply + * `onFailure` immediately. Pending effects fall back to regular `mapBoth` + * behavior. * - * - For **Success effects**: Applies the `onSuccess` function immediately to the value - * - For **Failure effects**: Applies the `onFailure` function immediately to the error - * - For **Pending effects**: Falls back to the regular `mapBoth` behavior + * **Example** (Mapping both channels eagerly when possible) * - * @example * ```ts * import { Effect } from "effect" * @@ -18557,30 +20116,29 @@ export declare const mapBothEager: { * }) // onFailure applied eagerly * ``` * + * @category eager * @since 4.0.0 - * @category Eager */ (options: { readonly onFailure: (e: E) => E2; readonly onSuccess: (a: A) => A2; }): (self: Effect) => Effect; /** - * An optimized version of `mapBoth` that checks if an effect is already resolved - * and applies the appropriate mapping function eagerly when possible. + * Applies `mapBoth` eagerly when an effect is already resolved. + * + * **When to use** * - * **When to Use** + * Use when an already-resolved effect should transform either success or + * failure immediately while pending effects still use regular channel mapping. * - * `mapBothEager` provides better performance for effects that are already resolved - * by applying the transformation immediately instead of deferring it through - * the effect pipeline. + * **Details** * - * **Behavior** + * Success effects apply `onSuccess` immediately, and failure effects apply + * `onFailure` immediately. Pending effects fall back to regular `mapBoth` + * behavior. * - * - For **Success effects**: Applies the `onSuccess` function immediately to the value - * - For **Failure effects**: Applies the `onFailure` function immediately to the error - * - For **Pending effects**: Falls back to the regular `mapBoth` behavior + * **Example** (Mapping both channels eagerly when possible) * - * @example * ```ts * import { Effect } from "effect" * @@ -18598,8 +20156,8 @@ export declare const mapBothEager: { * }) // onFailure applied eagerly * ``` * + * @category eager * @since 4.0.0 - * @category Eager */ (self: Effect, options: { readonly onFailure: (e: E) => E2; @@ -18607,22 +20165,21 @@ export declare const mapBothEager: { }): Effect; }; /** - * An optimized version of `flatMap` that checks if an effect is already resolved - * and applies the flatMap function eagerly when possible. + * Applies `flatMap` eagerly when an effect is already resolved. + * + * **When to use** * - * **When to Use** + * Use when an already-resolved successful effect should bind immediately to the + * next effect while pending effects still use regular flat mapping. * - * `flatMapEager` provides better performance for effects that are already resolved - * by applying the transformation immediately instead of deferring it through - * the effect pipeline. + * **Details** * - * **Behavior** + * Success effects apply the flatMap function immediately. Failure effects pass + * through unchanged, and pending effects fall back to regular `flatMap` + * behavior. * - * - For **Success effects**: Applies the flatMap function immediately to the value - * - For **Failure effects**: Returns the failure as-is without applying the flatMap - * - For **Pending effects**: Falls back to the regular `flatMap` behavior + * **Example** (Flat mapping eagerly when possible) * - * @example * ```ts * import { Effect } from "effect" * @@ -18638,27 +20195,26 @@ export declare const mapBothEager: { * ) // Uses regular flatMap * ``` * + * @category eager * @since 4.0.0 - * @category Eager */ export declare const flatMapEager: { /** - * An optimized version of `flatMap` that checks if an effect is already resolved - * and applies the flatMap function eagerly when possible. + * Applies `flatMap` eagerly when an effect is already resolved. + * + * **When to use** * - * **When to Use** + * Use when an already-resolved successful effect should bind immediately to the + * next effect while pending effects still use regular flat mapping. * - * `flatMapEager` provides better performance for effects that are already resolved - * by applying the transformation immediately instead of deferring it through - * the effect pipeline. + * **Details** * - * **Behavior** + * Success effects apply the flatMap function immediately. Failure effects pass + * through unchanged, and pending effects fall back to regular `flatMap` + * behavior. * - * - For **Success effects**: Applies the flatMap function immediately to the value - * - For **Failure effects**: Returns the failure as-is without applying the flatMap - * - For **Pending effects**: Falls back to the regular `flatMap` behavior + * **Example** (Flat mapping eagerly when possible) * - * @example * ```ts * import { Effect } from "effect" * @@ -18674,27 +20230,26 @@ export declare const flatMapEager: { * ) // Uses regular flatMap * ``` * + * @category eager * @since 4.0.0 - * @category Eager */ (f: (a: A) => Effect): (self: Effect) => Effect; /** - * An optimized version of `flatMap` that checks if an effect is already resolved - * and applies the flatMap function eagerly when possible. + * Applies `flatMap` eagerly when an effect is already resolved. + * + * **When to use** * - * **When to Use** + * Use when an already-resolved successful effect should bind immediately to the + * next effect while pending effects still use regular flat mapping. * - * `flatMapEager` provides better performance for effects that are already resolved - * by applying the transformation immediately instead of deferring it through - * the effect pipeline. + * **Details** * - * **Behavior** + * Success effects apply the flatMap function immediately. Failure effects pass + * through unchanged, and pending effects fall back to regular `flatMap` + * behavior. * - * - For **Success effects**: Applies the flatMap function immediately to the value - * - For **Failure effects**: Returns the failure as-is without applying the flatMap - * - For **Pending effects**: Falls back to the regular `flatMap` behavior + * **Example** (Flat mapping eagerly when possible) * - * @example * ```ts * import { Effect } from "effect" * @@ -18710,28 +20265,27 @@ export declare const flatMapEager: { * ) // Uses regular flatMap * ``` * + * @category eager * @since 4.0.0 - * @category Eager */ (self: Effect, f: (a: A) => Effect): Effect; }; /** - * An optimized version of `catch` that checks if an effect is already resolved - * and applies the catch function eagerly when possible. + * Applies `catch` eagerly when an effect is already resolved. + * + * **When to use** * - * **When to Use** + * Use when an already-resolved failed effect should recover immediately while + * pending effects still use regular error recovery. * - * `catchEager` provides better performance for effects that are already resolved - * by applying the error recovery immediately instead of deferring it through - * the effect pipeline. + * **Details** * - * **Behavior** + * Success effects pass through unchanged because there is no error to catch. + * Failure effects apply the catch function immediately, and pending effects + * fall back to regular `catch` behavior. * - * - For **Success effects**: Returns the success as-is (no error to catch) - * - For **Failure effects**: Applies the catch function immediately to the error - * - For **Pending effects**: Falls back to the regular `catch` behavior + * **Example** (Catching failures eagerly when possible) * - * @example * ```ts * import { Effect } from "effect" * @@ -18757,27 +20311,26 @@ export declare const flatMapEager: { * ) // Uses regular catch * ``` * + * @category eager * @since 4.0.0 - * @category Eager */ export declare const catchEager: { /** - * An optimized version of `catch` that checks if an effect is already resolved - * and applies the catch function eagerly when possible. + * Applies `catch` eagerly when an effect is already resolved. + * + * **When to use** * - * **When to Use** + * Use when an already-resolved failed effect should recover immediately while + * pending effects still use regular error recovery. * - * `catchEager` provides better performance for effects that are already resolved - * by applying the error recovery immediately instead of deferring it through - * the effect pipeline. + * **Details** * - * **Behavior** + * Success effects pass through unchanged because there is no error to catch. + * Failure effects apply the catch function immediately, and pending effects + * fall back to regular `catch` behavior. * - * - For **Success effects**: Returns the success as-is (no error to catch) - * - For **Failure effects**: Applies the catch function immediately to the error - * - For **Pending effects**: Falls back to the regular `catch` behavior + * **Example** (Catching failures eagerly when possible) * - * @example * ```ts * import { Effect } from "effect" * @@ -18803,27 +20356,26 @@ export declare const catchEager: { * ) // Uses regular catch * ``` * + * @category eager * @since 4.0.0 - * @category Eager */ (f: (e: NoInfer) => Effect): (self: Effect) => Effect; /** - * An optimized version of `catch` that checks if an effect is already resolved - * and applies the catch function eagerly when possible. + * Applies `catch` eagerly when an effect is already resolved. + * + * **When to use** * - * **When to Use** + * Use when an already-resolved failed effect should recover immediately while + * pending effects still use regular error recovery. * - * `catchEager` provides better performance for effects that are already resolved - * by applying the error recovery immediately instead of deferring it through - * the effect pipeline. + * **Details** * - * **Behavior** + * Success effects pass through unchanged because there is no error to catch. + * Failure effects apply the catch function immediately, and pending effects + * fall back to regular `catch` behavior. * - * - For **Success effects**: Returns the success as-is (no error to catch) - * - For **Failure effects**: Applies the catch function immediately to the error - * - For **Pending effects**: Falls back to the regular `catch` behavior + * **Example** (Catching failures eagerly when possible) * - * @example * ```ts * import { Effect } from "effect" * @@ -18849,18 +20401,21 @@ export declare const catchEager: { * ) // Uses regular catch * ``` * + * @category eager * @since 4.0.0 - * @category Eager */ (self: Effect, f: (e: NoInfer) => Effect): Effect; }; /** * Creates untraced function effects with eager evaluation optimization. * + * **Details** + * * Executes generator functions eagerly when all yielded effects are synchronous, * stopping at the first async effect and deferring to normal execution. * - * @example + * **Example** (Defining eager untraced effect functions) + * * ```ts * import { Effect } from "effect" * @@ -18873,8 +20428,8 @@ export declare const catchEager: { * const effect = computation() // Executed immediately if all effects are sync * ``` * + * @category eager * @since 4.0.0 - * @category Eager */ export declare const fnUntracedEager: fn.Untraced; //# sourceMappingURL=Effect.d.ts.map \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Effect.d.ts.map b/.opencode/node_modules/effect/dist/Effect.d.ts.map index 08c3638c0ff509ac272b221a822135a51829aec9..258f17989fddaad73443b94361634574fd99bc56 100644 --- a/.opencode/node_modules/effect/dist/Effect.d.ts.map +++ b/.opencode/node_modules/effect/dist/Effect.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Effect.d.ts","sourceRoot":"","sources":["../src/Effect.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqEG;AACH,OAAO,KAAK,KAAK,GAAG,MAAM,YAAY,CAAA;AACtC,OAAO,KAAK,KAAK,KAAK,MAAM,YAAY,CAAA;AACxC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AACvC,OAAO,KAAK,OAAO,MAAM,cAAc,CAAA;AACvC,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAA;AACzC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AACvD,OAAO,KAAK,IAAI,MAAM,WAAW,CAAA;AACjC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AACvC,OAAO,KAAK,KAAK,MAAM,MAAM,aAAa,CAAA;AAC1C,OAAO,EAAkB,KAAK,OAAO,EAAE,MAAM,eAAe,CAAA;A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;OA2CG;IACH,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,KAAK,MAAM,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,KAAK,MAAM,CAAC,CAAC,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,GAAG,EAAE,CAAC,CAAA;IACnH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2CG;IACH,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,KAAK,MAAM,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC,GAAG,MAAM,CAAC,CAAC,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,GAAG,EAAE,CAAC,CAAA;CAC1F,CAAA;AAEvB;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,QAAmC,CAAA"} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Effect.js b/.opencode/node_modules/effect/dist/Effect.js index 3c7284c24078cf2ae8ba8460630d5cc8eef88cbe..29e489fcc544ce8a8f7dcec50c8e201b4f3e3e82 100644 --- a/.opencode/node_modules/effect/dist/Effect.js +++ b/.opencode/node_modules/effect/dist/Effect.js @@ -10,21 +10,19 @@ import * as internalRequest from "./internal/request.js"; import * as internalSchedule from "./internal/schedule.js"; import * as Metric from "./Metric.js"; import { CurrentLogAnnotations, CurrentLogSpans } from "./References.js"; -import { internalCall, SingleShotGen } from "./Utils.js"; -const TypeId = core.EffectTypeId; +import { internalCall } from "./Utils.js"; /** + * Runtime identifier used to recognize `Effect` values. + * + * @category type IDs * @since 4.0.0 - * @category Yieldable */ -export class YieldableClass { - [Symbol.iterator]() { - return new SingleShotGen(this); - } -} +export const TypeId = core.EffectTypeId; /** - * Tests if a value is an `Effect`. + * Checks whether a value is an `Effect`. + * + * **Example** (Checking whether a value is an Effect) * - * @example * ```ts * import { Effect } from "effect" * @@ -32,54 +30,35 @@ export class YieldableClass { * console.log(Effect.isEffect("hello")) // false * ``` * + * @category guards * @since 2.0.0 - * @category Guards */ export const isEffect = core.isEffect; /** - * Combines multiple effects into one, returning results based on the input - * structure. - * - * **Details** - * - * Use this function when you need to run multiple effects and combine their - * results into a single output. It supports tuples, iterables, structs, and - * records, making it flexible for different input types. + * Combines an iterable or record of effects into one effect whose success shape + * follows the input. * - * For instance, if the input is a tuple: + * **When to use** * - * ```ts skip-type-checking - * // ┌─── a tuple of effects - * // ▼ - * Effect.all([effect1, effect2, ...]) - * ``` - * - * the effects are executed sequentially, and the result is a new effect - * containing the results as a tuple. The results in the tuple match the order - * of the effects passed to `Effect.all`. + * Use to run a known collection of effects and collect results in the same + * tuple, iterable, or record shape. * - * **Concurrency** - * - * You can control the execution order (e.g., sequential vs. concurrent) using - * the `concurrency` option. + * **Details** * - * **Short-Circuiting Behavior** + * Tuple and iterable inputs collect results in order. Record inputs collect + * results under the same keys. By default, the combined effect fails on the + * first failure; with concurrent execution, effects that have already started + * may be interrupted, while effects not yet started are skipped. * - * This function stops execution on the first error it encounters, this is - * called "short-circuiting". If any effect in the collection fails, the - * remaining effects will not run, and the error will be propagated. To change - * this behavior, you can use the `mode` option, which allows all effects to run - * and collect every success / failure as `Result` values. + * Options: * - * **The `mode` option** + * Use `concurrency` to control sequential or concurrent execution. Use + * `mode: "result"` to run every effect and collect each success or failure as a + * `Result` in the same output shape. Use `discard: true` to ignore successful + * values and return `void`. * - * The `{ mode: "result" }` option changes the behavior of `Effect.all` to - * ensure all effects run, even if some fail. Instead of stopping on the first - * failure, this mode collects both successes and failures, returning an array - * of `Result` instances where each result is either an `Ok` (success) or a - * `Err` (failure). + * **Example** (Collecting tuple results in order) * - * @example Combining Effects in Tuples * ```ts * import { Console, Effect } from "effect" * @@ -99,7 +78,8 @@ export const isEffect = core.isEffect; * // [ 42, 'Hello' ] * ``` * - * @example Combining Effects in Iterables + * **Example** (Collecting iterable results in order) + * * ```ts * import { Console, Effect } from "effect" * @@ -119,7 +99,8 @@ export const isEffect = core.isEffect; * // [ 1, 2, 3 ] * ``` * - * @example Combining Effects in Structs + * **Example** (Collecting struct results by key) + * * ```ts * import { Console, Effect } from "effect" * @@ -139,7 +120,8 @@ export const isEffect = core.isEffect; * // { a: 42, b: 'Hello' } * ``` * - * @example Combining Effects in Records + * **Example** (Collecting record results by key) + * * ```ts * import { Console, Effect } from "effect" * @@ -159,7 +141,8 @@ export const isEffect = core.isEffect; * // { key1: 1, key2: 2 } * ``` * - * @example Short-Circuiting Behavior + * **Example** (Stopping on the first failure) + * * ```ts * import { Console, Effect } from "effect" * @@ -181,24 +164,24 @@ export const isEffect = core.isEffect; * ``` * * @see {@link forEach} for iterating over elements and applying an effect. - * + * @category collecting * @since 2.0.0 - * @category Collecting */ export const all = internal.all; /** * Applies an effectful function to each element and partitions failures and * successes. * - * The returned tuple is `[excluded, satisfying]`, where: + * **Details** * - * - `excluded` contains all failures. - * - `satisfying` contains all successes. + * The returned tuple is `[excluded, satisfying]`, where `excluded` contains + * all failures and `satisfying` contains all successes. * * This function runs every effect and never fails. Use `concurrency` to control * parallelism. * - * @example + * **Example** (Separating successes and failures) + * * ```ts * import { Effect } from "effect" * @@ -210,13 +193,15 @@ export const all = internal.all; * // [ ["0 is even", "2 is even"], [1, 3] ] * ``` * - * @since 3.0.0 - * @category Collecting + * @category collecting + * @since 2.0.0 */ export const partition = internal.partition; /** * Applies an effectful function to each element and accumulates all failures. * + * **Details** + * * This function always evaluates every element. If at least one effect fails, * all failures are returned as a non-empty array and successes are discarded. * If all effects succeed, it returns all collected successes. @@ -224,7 +209,8 @@ export const partition = internal.partition; * Use `discard: true` to ignore successful values while still validating all * elements. * - * @example + * **Example** (Validating every element) + * * ```ts * import { Effect } from "effect" * @@ -246,17 +232,20 @@ export const partition = internal.partition; * // } * ``` * - * @since 4.0.0 - * @category Error Accumulation + * @category error accumulation + * @since 2.0.0 */ export const validate = internal.validate; /** * Returns the first element that satisfies an effectful predicate. * + * **Details** + * * The predicate receives the element and its index. Evaluation short-circuits * as soon as an element matches. * - * @example + * **Example** (Finding the first successful match) + * * ```ts * import { Effect } from "effect" * @@ -266,23 +255,37 @@ export const validate = internal.validate; * // { _id: 'Option', _tag: 'Some', value: 3 } * ``` * + * @category collecting * @since 2.0.0 - * @category Collecting */ export const findFirst = internal.findFirst; /** * Returns the first value that passes an effectful `FilterEffect`. * + * **When to use** + * + * Use when you need to find the first element that satisfies an effectful + * filter returning a `Result`, which also transforms the matching element. + * + * **Details** + * * The filter receives the element and index. Evaluation short-circuits on the * first `Result.succeed` and returns the transformed value in `Option.some`. * + * @see {@link findFirst} for the simpler effectful predicate-based variant + * + * @category collecting * @since 4.0.0 - * @category Collecting */ export const findFirstFilter = internal.findFirstFilter; /** * Executes an effectful operation for each element in an `Iterable`. * + * **When to use** + * + * Use to traverse an iterable with an effectful function while preserving + * element order in the collected results. + * * **Details** * * The `forEach` function applies a provided operation to each element in the @@ -291,23 +294,20 @@ export const findFirstFilter = internal.findFirstFilter; * If any effect fails, the iteration stops immediately (short-circuiting), and * the error is propagated. * - * **Concurrency** + * Concurrency: * * The `concurrency` option controls how many operations are performed * concurrently. By default, the operations are performed sequentially. * - * **Discarding Results** + * Discarding Results: * * If the `discard` option is set to `true`, the intermediate results are not * collected, and the final result of the operation is `void`. * - * @see {@link all} for combining multiple effects into one. + * **Example** (Mapping over an iterable with effects) * - * @example * ```ts - * // Title: Applying Effects to Iterable Elements - * import { Effect } from "effect" - * import { Console } from "effect" + * import { Console, Effect } from "effect" * * const result = Effect.forEach( * [1, 2, 3, 4, 5], @@ -325,10 +325,10 @@ export const findFirstFilter = internal.findFirstFilter; * // [ 2, 4, 6, 8, 10 ] * ``` * - * @example - * // Title: Using discard to Ignore Results - * import { Effect } from "effect" - * import { Console } from "effect" + * **Example** (Running effects without collecting results) + * + * ```ts + * import { Console, Effect } from "effect" * * // Apply effects but discard the results * const result = Effect.forEach( @@ -346,15 +346,18 @@ export const findFirstFilter = internal.findFirstFilter; * // Currently at index 3 * // Currently at index 4 * // undefined + * ``` * + * @see {@link all} for combining multiple effects into one. + * @category collecting * @since 2.0.0 - * @category Collecting */ export const forEach = internal.forEach; /** * Executes a body effect repeatedly while a condition holds true. * - * @example + * **Example** (Repeating an effectful loop) + * * ```ts * import { Effect } from "effect" * @@ -375,8 +378,8 @@ export const forEach = internal.forEach; * // Current count: 5 * ``` * + * @category collecting * @since 2.0.0 - * @category Collecting */ export const whileLoop = internal.whileLoop; // ----------------------------------------------------------------------------- @@ -386,30 +389,27 @@ export const whileLoop = internal.whileLoop; * Creates an `Effect` that represents an asynchronous computation guaranteed to * succeed. * - * **When to Use** + * **When to use** * - * Use `promise` when you are sure the operation will not reject. + * Use to convert a `Promise` into an `Effect` when the async operation is + * guaranteed to succeed and will not reject. * * **Details** * - * The provided function (`thunk`) returns a `Promise` that should never reject; if it does, the error - * will be treated as a "defect". + * An optional `AbortSignal` can be provided to allow for interruption of the + * wrapped `Promise` API. * - * This defect is not a standard error but indicates a flaw in the logic that - * was expected to be error-free. You can think of it similar to an unexpected - * crash in the program, which can be further managed or logged using tools like - * {@link catchAllDefect}. + * **Gotchas** * - * **Interruptions** + * The `Promise` must not reject. If it rejects, the rejection is treated as a + * defect, not as a typed failure. Use `tryPromise` when rejection is expected. * - * An optional `AbortSignal` can be provided to allow for interruption of the - * wrapped `Promise` API. + * Interruption aborts the provided `AbortSignal`, but the underlying + * asynchronous operation only stops if it observes that signal. * - * @see {@link tryPromise} for a version that can handle failures. + * **Example** (Wrapping a non-rejecting Promise) * - * @example * ```ts - * // Title: Delayed Message * import { Effect } from "effect" * * const delay = (message: string) => @@ -427,23 +427,24 @@ export const whileLoop = internal.whileLoop; * const program = delay("Async operation completed successfully!") * ``` * + * @see {@link tryPromise} for a version that can handle failures. + * @category constructors * @since 2.0.0 - * @category Creating Effects */ export const promise = internal.promise; /** * Creates an `Effect` that represents an asynchronous computation that might * fail. * - * **When to Use** + * **When to use** + * + * Use when you need to perform asynchronous operations that might fail, such + * as fetching data from an API, and want thrown exceptions or rejected promises + * captured as Effect errors. * - * In situations where you need to perform asynchronous operations that might - * fail, such as fetching data from an API, you can use the `tryPromise` - * constructor. This constructor is designed to handle operations that could - * throw exceptions by capturing those exceptions and transforming them into - * manageable errors. + * **Details** * - * **Error Handling** + * Error Handling: * * There are two ways to handle errors with `tryPromise`: * @@ -452,12 +453,13 @@ export const promise = internal.promise; * 2. If you provide a `catch` function, the error is caught and the `catch` * function maps it to an error of type `E`. * - * **Interruptions** + * Interruptions: * * An optional `AbortSignal` can be provided to allow for interruption of the * wrapped `Promise` API. * - * @example Fetching a TODO Item + * **Example** (Wrapping a fetch request that may fail) + * * ```ts * import { Effect } from "effect" * @@ -472,7 +474,8 @@ export const promise = internal.promise; * const program = getTodo(1) * ``` * - * @example Custom Error Handling + * **Example** (Mapping Promise rejections to a tagged error) + * * ```ts * import { Data, Effect } from "effect" * @@ -491,24 +494,21 @@ export const promise = internal.promise; * ``` * * @see {@link promise} if the effectful computation is asynchronous and does not throw errors. - * + * @category constructors * @since 2.0.0 - * @category Creating Effects */ export const tryPromise = internal.tryPromise; /** * Creates an `Effect` that always succeeds with a given value. * - * **When to Use** + * **When to use** * - * Use this function when you need an effect that completes successfully with a - * specific value without any errors or external dependencies. + * Use when an effect should complete successfully with a specific value without any errors + * or external dependencies. * - * @see {@link fail} to create an effect that represents a failure. + * **Example** (Creating a successful effect) * - * @example * ```ts - * // Title: Creating a Successful Effect * import { Effect } from "effect" * * // Creating an effect that represents a successful scenario @@ -518,14 +518,16 @@ export const tryPromise = internal.tryPromise; * const success = Effect.succeed(42) * ``` * + * @see {@link fail} to create an effect that represents a failure. + * @category constructors * @since 2.0.0 - * @category Creating Effects */ export const succeed = internal.succeed; /** * Returns an effect which succeeds with `None`. * - * @example + * **Example** (Succeeding with Option.none) + * * ```ts * import { Effect } from "effect" * @@ -535,14 +537,15 @@ export const succeed = internal.succeed; * // Output: { _id: 'Option', _tag: 'None' } * ``` * + * @category constructors * @since 2.0.0 - * @category Creating Effects */ export const succeedNone = internal.succeedNone; /** * Returns an effect which succeeds with the value wrapped in a `Some`. * - * @example + * **Example** (Succeeding with Option.some) + * * ```ts * import { Effect } from "effect" * @@ -552,27 +555,29 @@ export const succeedNone = internal.succeedNone; * // Output: { _id: 'Option', _tag: 'Some', value: 42 } * ``` * + * @category constructors * @since 2.0.0 - * @category Creating Effects */ export const succeedSome = internal.succeedSome; /** - * Delays the creation of an `Effect` until it is actually needed. + * Creates an `Effect` lazily, delaying construction until it is needed. * - * **When to Use** + * **When to use** * - * Use `suspend` when you need to defer the evaluation of an effect until it is required. This is particularly useful for optimizing expensive computations, managing circular dependencies, or resolving type inference issues. + * Use when you need to defer the evaluation of an effect until it is required. * * **Details** * - * `suspend` takes a thunk that represents the effect and wraps it in a suspended effect. This means the effect will not be created until it is explicitly needed, which is helpful in various scenarios: - * - **Lazy Evaluation**: Helps optimize performance by deferring computations, especially when the effect might not be needed, or when its computation is expensive. This also ensures that any side effects or scoped captures are re-executed on each invocation. - * - **Handling Circular Dependencies**: Useful in managing circular dependencies, such as recursive functions that need to avoid eager evaluation to prevent stack overflow. - * - **Unifying Return Types**: Can help TypeScript unify return types in situations where multiple branches of logic return different effects, simplifying type inference. + * `suspend` takes a thunk that represents an effect and delays creating it + * until the suspended effect is evaluated. This is useful for optimizing + * expensive computations, managing circular dependencies such as recursive + * functions, and helping TypeScript unify return types when branches construct + * different effects. Any side effects or scoped captures inside the thunk are + * re-executed on each invocation. + * + * **Example** (Lazily evaluating side effects) * - * @example * ```ts - * // Title: Lazy Evaluation with Side Effects * import { Effect } from "effect" * * let i = 0 @@ -588,8 +593,9 @@ export const succeedSome = internal.succeedSome; * console.log(Effect.runSync(good)) // Output: 2 * ``` * - * @example - * // Title: Recursive Fibonacci + * **Example** (Suspending recursive Fibonacci evaluation) + * + * ```ts * import { Effect } from "effect" * * const blowsUp = (n: number): Effect.Effect => @@ -611,9 +617,11 @@ export const succeedSome = internal.succeedSome; * * console.log(Effect.runSync(allGood(32))) * // Output: 3524578 + * ``` * - * @example - * // Title: Using Effect.suspend to Help TypeScript Infer Types + * **Example** (Helping TypeScript infer recursive effect types) + * + * ```ts * import { Effect } from "effect" * * // Without suspend, TypeScript may struggle with type inference. @@ -634,33 +642,32 @@ export const succeedSome = internal.succeedSome; * ? Effect.fail(new Error("Cannot divide by zero")) * : Effect.succeed(a / b) * ) + * ``` * + * @category constructors * @since 2.0.0 - * @category Creating Effects */ export const suspend = internal.suspend; /** * Creates an `Effect` that represents a synchronous side-effectful computation. * - * **When to Use** + * **When to use** * - * Use `sync` when you are sure the operation will not fail. + * Use when you need to wrap a synchronous side-effectful operation that is not + * expected to throw. * * **Details** * - * The provided function (`thunk`) must not throw errors; if it does, the error - * will be treated as a "defect". + * The provided function is evaluated lazily when the effect runs. * - * This defect is not a standard error but indicates a flaw in the logic that - * was expected to be error-free. You can think of it similar to an unexpected - * crash in the program, which can be further managed or logged using tools like - * {@link catchAllDefect}. + * **Gotchas** * - * @see {@link try_ | try} for a version that can handle failures. + * The function must not throw. If it throws, the thrown value is treated as a + * defect, not as a typed failure. Use `try` when throwing is expected. + * + * **Example** (Capturing synchronous logging in an Effect) * - * @example * ```ts - * // Title: Logging a Message * import { Effect } from "effect" * * const log = (message: string) => @@ -673,54 +680,46 @@ export const suspend = internal.suspend; * const program = log("Hello, World!") * ``` * + * @see {@link try_ | try} for a version that can handle failures. + * @category constructors * @since 2.0.0 - * @category Creating Effects */ export const sync = internal.sync; const void_ = internal.void; export { /** + * Returns an effect that succeeds with `void`. + * + * @category constructors * @since 2.0.0 - * @category Creating Effects */ void_ as void }; const undefined_ = internal.undefined; export { /** + * Returns an effect that succeeds with `undefined`. + * + * @category constructors * @since 4.0.0 - * @category Creating Effects */ undefined_ as undefined }; /** - * Creates an `Effect` from a callback-based asynchronous function. - * - * **Details** - * - * The `resume` function: - * - Must be called exactly once. Any additional calls will be ignored. - * - Can return an optional `Effect` that will be run if the `Fiber` executing - * this `Effect` is interrupted. This can be useful in scenarios where you - * need to handle resource cleanup if the operation is interrupted. - * - Can receive an `AbortSignal` to handle interruption if needed. + * Creates an `Effect` from a callback-based asynchronous API. * - * The `FiberId` of the fiber that may complete the async callback may also be - * specified using the `blockingOn` argument. This is called the "blocking - * fiber" because it suspends the fiber executing the `async` effect (i.e. - * semantically blocks the fiber from making progress). Specifying this fiber id - * in cases where it is known will improve diagnostics, but not affect the - * behavior of the returned effect. + * **When to use** * - * **When to Use** + * Use when you need to integrate APIs that complete through callbacks instead + * of returning a `Promise`. * - * Use `Effect.callback` when dealing with APIs that use callback-style instead of - * `async/await` or `Promise`. - * * **Previously Known As** + * **Details** * - * This API replaces the following from Effect 3.x: + * The registration function receives a `resume` callback and, when requested, + * an `AbortSignal`. Call `resume` at most once with the effect that should + * complete the fiber; later calls are ignored. Return an optional cleanup + * effect from the registration function to run if the fiber is interrupted. * - * - `Effect.async` + * **Example** (Integrating callback APIs) * - * @example * ```ts * import { Effect } from "effect" * @@ -736,15 +735,16 @@ undefined_ as undefined }; * const program = delay(1000) * ``` * - * @since 2.0.0 - * @category Creating Effects + * @category constructors + * @since 4.0.0 */ export const callback = internal.callback; /** * Returns an effect that will never produce anything. The moral equivalent of * `while(true) {}`, only without the wasted CPU cycles. * - * @example + * **Example** (Creating a never-ending effect) + * * ```ts * import { Effect } from "effect" * @@ -758,18 +758,18 @@ export const callback = internal.callback; * const timedProgram = Effect.timeout(program, "1 second") * ``` * + * @category constructors * @since 2.0.0 - * @category Creating Effects */ export const never = internal.never; /** - * An `Effect` containing an empty record `{}`, used as the starting point for - * do notation chains. + * Effect that succeeds with an empty record `{}`, used as the starting point + * for do notation chains. + * + * **Example** (Starting do notation) * - * @example * ```ts - * import { Effect } from "effect" - * import { pipe } from "effect/Function" + * import { Effect, pipe } from "effect" * * const program = pipe( * Effect.Do, @@ -779,16 +779,24 @@ export const never = internal.never; * ) * ``` * - * @since 4.0.0 - * @category Do notation + * @category do notation + * @since 2.0.0 */ export const Do = internal.Do; /** * Gives a name to the success value of an `Effect`, creating a single-key * record used in do notation pipelines. * - * @since 4.0.0 - * @category Do notation + * **When to use** + * + * Use to start a do-notation pipeline from an existing `Effect` when its + * success value should become the first named field in the accumulated record. + * + * @see {@link Do} for starting from an empty accumulated record + * @see {@link bind} for adding fields produced by effects + * + * @category do notation + * @since 2.0.0 */ export const bindTo = internal.bindTo; const let_ = internal.let; @@ -796,33 +804,70 @@ export { /** * Adds a computed plain value to the do notation record. * - * @since 4.0.0 - * @category Do notation + * **When to use** + * + * Use to add a derived, synchronous value to a do-notation pipeline when it + * depends on fields already accumulated in the record and does not need to run + * another `Effect`. + * + * **Details** + * + * The new field is added with object spreading. If the name already exists in + * the record, the computed value replaces it in the returned type. + * + * @see {@link bind} for adding fields produced by effects + * @see {@link bindTo} for naming an existing success value + * @see {@link Do} for starting from an empty accumulated record + * @see {@link gen} for sequencing without accumulating a record + * + * @category do notation + * @since 2.0.0 */ let_ as let }; /** * Adds an `Effect` value to the do notation record under a given name. * - * @since 4.0.0 - * @category Do notation + * **When to use** + * + * Use to sequence an effectful step in a do-notation pipeline when that step + * depends on fields already accumulated in the record and its success value + * should be stored under a name. + * + * **Details** + * + * The function receives the current record, runs the returned effect after the + * input effect succeeds, and inserts its success value under `name`. The + * resulting effect combines the error and service requirements of both steps. + * + * **Gotchas** + * + * Binding a name that already exists replaces that field in the resulting + * record. + * + * @see {@link Do} for starting from an empty do-notation record + * @see {@link bindTo} for naming the success value of an existing effect + * @see {@link gen} for generator-based sequencing without accumulating a record + * + * @category do notation + * @since 2.0.0 */ export const bind = internal.bind; /** * Provides a way to write effectful code using generator functions, simplifying * control flow and error handling. * - * **When to Use** + * **When to use** + * + * Use when you want to write effectful code that looks and behaves like + * synchronous code, while still handling asynchronous tasks, errors, and complex + * control flow such as loops and conditions. * - * `gen` allows you to write code that looks and behaves like synchronous - * code, but it can handle asynchronous tasks, errors, and complex control flow - * (like loops and conditions). It helps make asynchronous code more readable - * and easier to manage. + * Generator functions work similarly to `async/await` but keep errors, + * requirements, and interruption in the Effect type. You can `yield*` values + * from effects and return the final result at the end. * - * The generator functions work similarly to `async/await` but with more - * explicit control over the execution of effects. You can `yield*` values from - * effects and return the final result at the end. + * **Example** (Sequencing effects with generators) * - * @example * ```ts * import { Data, Effect } from "effect" * @@ -854,24 +899,25 @@ export const bind = internal.bind; * }) * ``` * + * @category constructors * @since 2.0.0 - * @category Creating Effects */ export const gen = internal.gen; /** * Creates an `Effect` that represents a recoverable error. * - * **When to Use** + * **When to use** * - * Use this function to explicitly signal an error in an `Effect`. The error - * will keep propagating unless it is handled. You can handle the error with - * functions like {@link catchAll} or {@link catchTag}. + * Use to explicitly signal a recoverable error in an `Effect`. * - * @see {@link succeed} to create an effect that represents a successful value. + * **Details** + * + * The error keeps propagating unless it is handled. You can handle tagged + * errors with functions like {@link catchTag} or {@link catchTags}. + * + * **Example** (Creating a failed effect) * - * @example * ```ts - * // Title: Creating a Failed Effect * import { Data, Effect } from "effect" * * class OperationFailedError extends Data.TaggedError("OperationFailedError")<{}> {} @@ -883,17 +929,24 @@ export const gen = internal.gen; * ) * ``` * + * @see {@link succeed} to create an effect that represents a successful value. + * @category constructors * @since 2.0.0 - * @category Creating Effects */ export const fail = internal.fail; /** * Creates an `Effect` that represents a recoverable error using a lazy evaluation. * - * This function is useful when you need to create an error effect but want to - * defer the computation of the error value until the effect is actually run. + * **When to use** + * + * Use to defer computing a recoverable error value until the effect is run. + * + * **Details** + * + * The error-producing function is evaluated each time the effect is executed. + * + * **Example** (Lazily creating failures) * - * @example * ```ts * import { Data, Effect } from "effect" * @@ -905,17 +958,26 @@ export const fail = internal.fail; * // Output: { _id: 'Exit', _tag: 'Failure', cause: ... } * ``` * + * @category constructors * @since 2.0.0 - * @category Creating Effects */ export const failSync = internal.failSync; /** * Creates an `Effect` that represents a failure with a specific `Cause`. * + * **When to use** + * + * Use when you already have a full `Cause` and need to preserve defects, + * interruptions, annotations, or combined failures in the effect's failure + * channel. + * + * **Details** + * * This function allows you to create effects that fail with complex error * structures, including multiple errors, defects, interruptions, and more. * - * @example + * **Example** (Failing with a full Cause) + * * ```ts * import { Cause, Effect } from "effect" * @@ -927,17 +989,23 @@ export const failSync = internal.failSync; * // Output: { _id: 'Exit', _tag: 'Failure', cause: ... } * ``` * + * @category constructors * @since 2.0.0 - * @category Creating Effects */ export const failCause = internal.failCause; /** * Creates an `Effect` that represents a failure with a `Cause` computed lazily. * - * This function is useful when you need to create a failure effect with a - * complex cause but want to defer the computation until the effect is run. + * **When to use** + * + * Use to defer computing a full `Cause` until the effect is run. + * + * **Details** + * + * The cause-producing function is evaluated each time the effect is executed. + * + * **Example** (Lazily creating a Cause) * - * @example * ```ts * import { Cause, Effect } from "effect" * @@ -949,17 +1017,17 @@ export const failCause = internal.failCause; * // Output: { _id: 'Exit', _tag: 'Failure', cause: ... } * ``` * + * @category constructors * @since 2.0.0 - * @category Creating Effects */ export const failCauseSync = internal.failCauseSync; /** * Creates an effect that terminates a fiber with a specified error. * - * **When to Use** + * **When to use** * - * Use `die` when encountering unexpected conditions in your code that should - * not be handled as regular errors but instead represent unrecoverable defects. + * Use when you need an `Effect` to report an unrecoverable defect instead of a + * typed error. * * **Details** * @@ -970,12 +1038,9 @@ export const failCauseSync = internal.failCauseSync; * The error channel of the resulting effect is of type `never`, indicating that * it cannot recover from this failure. * - * @see {@link dieSync} for a variant that throws a specified error, evaluated lazily. - * @see {@link dieMessage} for a variant that throws a `RuntimeException` with a message. + * **Example** (Failing when division by zero) * - * @example * ```ts - * // Title: Terminating on Division by Zero with a Specified Error * import { Effect } from "effect" * * const divide = (a: number, b: number) => @@ -993,8 +1058,8 @@ export const failCauseSync = internal.failCauseSync; * // ...stack trace... * ``` * + * @category constructors * @since 2.0.0 - * @category Creating Effects */ export const die = internal.die; const try_ = internal.try; @@ -1003,14 +1068,14 @@ export { * Creates an `Effect` that represents a synchronous computation that might * fail. * - * **When to Use** + * **When to use** + * + * Use when you need to perform synchronous operations that might throw, such + * as parsing JSON, and convert thrown exceptions into typed Effect failures. * - * In situations where you need to perform synchronous operations that might - * fail, such as parsing JSON, you can use the `try` constructor. This - * constructor is designed to handle operations that could throw exceptions by - * capturing those exceptions and transforming them into manageable errors. + * **Details** * - * **Error Handling** + * Error Handling: * * There are two ways to handle errors with `try`: * @@ -1019,10 +1084,8 @@ export { * 2. If you provide a `catch` function, the error is caught and the `catch` * function maps it to an error of type `E`. * - * @see {@link sync} if the effectful computation is synchronous and does not - * throw errors. + * **Example** (Parsing JSON with typed error mapping) * - * @example Basic Usage with Default Error Handling * ```ts * import { Effect } from "effect" * @@ -1041,7 +1104,8 @@ export { * // Output: Exit.failure with Error * ``` * - * @example Custom Error Handling + * **Example** (Mapping synchronous exceptions to a tagged error) + * * ```ts * import { Data, Effect } from "effect" * @@ -1057,14 +1121,17 @@ export { * // Output: Exit.failure with custom Error message * ``` * + * @see {@link sync} if the effectful computation is synchronous and does not + * throw errors. + * @category constructors * @since 2.0.0 - * @category Creating Effects */ try_ as try }; /** * Yields control back to the Effect runtime, allowing other fibers to execute. * - * @example + * **Example** (Yielding to other fibers) + * * ```ts * import { Effect } from "effect" * @@ -1077,14 +1144,15 @@ try_ as try }; * Effect.runPromise(program) * ``` * + * @category constructors * @since 2.0.0 - * @category Creating Effects */ export const yieldNow = internal.yieldNow; /** * Yields control back to the Effect runtime with a specified priority, allowing other fibers to execute. * - * @example + * **Example** (Yielding with priority) + * * ```ts * import { Effect } from "effect" * @@ -1097,14 +1165,15 @@ export const yieldNow = internal.yieldNow; * Effect.runPromise(program) * ``` * - * @since 2.0.0 - * @category Creating Effects + * @category constructors + * @since 4.0.0 */ export const yieldNowWith = internal.yieldNowWith; /** * Provides access to the current fiber within an effect computation. * - * @example + * **Example** (Reading the current fiber) + * * ```ts * import { Effect } from "effect" * @@ -1116,8 +1185,8 @@ export const yieldNowWith = internal.yieldNowWith; * // Output: Fiber ID: 1 * ``` * - * @since 2.0.0 - * @category Creating Effects + * @category constructors + * @since 4.0.0 */ export const withFiber = core.withFiber; // ----------------------------------------------------------------------------- @@ -1126,7 +1195,8 @@ export const withFiber = core.withFiber; /** * Converts a `Result` to an `Effect`. * - * @example + * **Example** (Converting a Result into an Effect) + * * ```ts * import { Effect, Result } from "effect" * @@ -1141,14 +1211,25 @@ export const withFiber = core.withFiber; * // { _id: 'Exit', _tag: 'Failure', cause: { _id: 'Cause', _tag: 'Fail', failure: 'Something went wrong' } } * ``` * + * @category converting * @since 4.0.0 - * @category Conversions */ export const fromResult = internal.fromResult; /** - * Converts an `Option` to an `Effect`. + * Converts an `Option` into an `Effect`. + * + * **When to use** + * + * Use when absence should become a typed `NoSuchElementError` in the effect error + * channel. + * + * **Details** + * + * `Option.some` becomes a successful effect with the contained value, while + * `Option.none` becomes a failed effect with `NoSuchElementError`. + * + * **Example** (Converting an Option into an Effect) * - * @example * ```ts * import { Effect, Option } from "effect" * @@ -1163,15 +1244,16 @@ export const fromResult = internal.fromResult; * // { _id: 'Exit', _tag: 'Failure', cause: { _id: 'Cause', _tag: 'Fail', failure: { _id: 'NoSuchElementError' } } } * ``` * + * @category converting * @since 4.0.0 - * @category Conversions */ export const fromOption = internal.fromOption; /** * Converts a nullable value to an `Effect`, failing with a `NoSuchElementError` * when the value is `null` or `undefined`. * - * @example + * **Example** (Failing on nullish values) + * * ```ts * import { Console, Effect } from "effect" * @@ -1188,32 +1270,10 @@ export const fromOption = internal.fromOption; * // Output: hello * ``` * + * @category converting * @since 4.0.0 - * @category Conversions */ export const fromNullishOr = internal.fromNullishOr; -/** - * Converts a yieldable value to an Effect. - * - * @example - * ```ts - * import { Effect } from "effect" - * import * as Option from "effect/Option" - * - * // Option is yieldable in Effect - * const program = Effect.gen(function*() { - * const value = yield* Effect.fromYieldable(Option.some(42)) - * return value * 2 - * }) - * - * Effect.runPromise(program).then(console.log) - * // Output: 84 - * ``` - * - * @since 4.0.0 - * @category Conversions - */ -export const fromYieldable = internal.fromYieldable; // ----------------------------------------------------------------------------- // Mapping // ----------------------------------------------------------------------------- @@ -1221,15 +1281,11 @@ export const fromYieldable = internal.fromYieldable; * Chains effects to produce new `Effect` instances, useful for combining * operations that depend on previous results. * - * **Syntax** + * **When to use** * - * ```ts skip-type-checking - * const flatMappedEffect = pipe(myEffect, Effect.flatMap(transformation)) - * // or - * const flatMappedEffect = Effect.flatMap(myEffect, transformation) - * // or - * const flatMappedEffect = myEffect.pipe(Effect.flatMap(transformation)) - * ``` + * Use when you need to chain multiple effects, ensuring that each + * step produces a new `Effect` while flattening any nested effects that may + * occur. * * **Details** * @@ -1241,13 +1297,21 @@ export const fromYieldable = internal.fromYieldable; * Since effects are immutable, `flatMap` always returns a new effect instead of * changing the original one. * - * **When to Use** + * **Example** (Syntax) * - * Use `flatMap` when you need to chain multiple effects, ensuring that each - * step produces a new `Effect` while flattening any nested effects that may - * occur. + * ```ts + * import { Effect, pipe } from "effect" + * + * const myEffect = Effect.succeed(1) + * const transformation = (n: number) => Effect.succeed(n + 1) + * + * const flatMappedWithPipe = pipe(myEffect, Effect.flatMap(transformation)) + * const flatMappedWithDataFirst = Effect.flatMap(myEffect, transformation) + * const flatMappedWithMethod = myEffect.pipe(Effect.flatMap(transformation)) + * ``` + * + * **Example** (Sequencing dependent effects) * - * @example * ```ts * import { Data, Effect, pipe } from "effect" * @@ -1276,15 +1340,15 @@ export const fromYieldable = internal.fromYieldable; * ``` * * @see {@link tap} for a version that ignores the result of the effect. - * + * @category sequencing * @since 2.0.0 - * @category Sequencing */ export const flatMap = internal.flatMap; /** * Flattens an `Effect` that produces another `Effect` into a single effect. * - * @example + * **Example** (Flattening nested effects) + * * ```ts * import { Console, Effect } from "effect" * @@ -1297,51 +1361,44 @@ export const flatMap = internal.flatMap; * }) * ``` * + * @category sequencing * @since 2.0.0 - * @category Sequencing */ export const flatten = internal.flatten; /** - * Chains two actions, where the second action can depend on the result of the - * first. + * Runs this effect and then runs another effect, optionally using the first + * effect's success value to choose the next effect. * - * **Syntax** + * **When to use** * - * ```ts skip-type-checking - * const transformedEffect = pipe(myEffect, Effect.andThen(anotherEffect)) - * // or - * const transformedEffect = Effect.andThen(myEffect, anotherEffect) - * // or - * const transformedEffect = myEffect.pipe(Effect.andThen(anotherEffect)) - * ``` - * - * **When to Use** - * - * Use `andThen` when you need to run multiple actions in sequence, with the - * second action depending on the result of the first. This is useful for - * combining effects or handling computations that must happen in order. + * Use when you need one effect to run after another and the second effect may + * depend on the first effect's success value. * * **Details** * - * The second action can be: + * When the second argument is an `Effect`, the first success value is discarded + * and the returned effect produces the second effect's value. When the second + * argument is a function, it receives the first success value and must return + * the next `Effect`. * - * - A constant value (similar to {@link as}) - * - A function returning a value (similar to {@link map}) - * - A `Promise` - * - A function returning a `Promise` - * - An `Effect` - * - A function returning an `Effect` (similar to {@link flatMap}) + * Failures or requirements from either effect are preserved in the returned + * effect. * - * **Note:** `andThen` works well with both `Option` and `Result` types, - * treating them as effects. + * **Example** (Syntax) + * + * ```ts + * import { Effect, pipe } from "effect" * - * **Previously Known As** + * const myEffect = Effect.succeed(1) + * const anotherEffect = Effect.succeed("done") * - * This API replaces the following from Effect 3.x: + * const transformedWithPipe = pipe(myEffect, Effect.andThen(anotherEffect)) + * const transformedWithDataFirst = Effect.andThen(myEffect, anotherEffect) + * const transformedWithMethod = myEffect.pipe(Effect.andThen(anotherEffect)) + * ``` * - * - `Effect.zipRight` + * **Example** (Sequencing a discount calculation after fetching a total) * - * @example Applying a Discount Based on Fetched Amount * ```ts * import { Data, Effect, pipe } from "effect" * @@ -1380,19 +1437,18 @@ export const flatten = internal.flatten; * // Output: 190 * ``` * + * @category sequencing * @since 2.0.0 - * @category Sequencing */ export const andThen = internal.andThen; /** * Runs a side effect with the result of an effect without changing the original * value. * - * **When to Use** + * **When to use** * - * Use `tap` when you want to perform a side effect, like logging or tracking, - * without modifying the main value. This is useful when you need to observe or - * record an action but want the original value to be passed to the next step. + * Use when you need to run an effectful observation, such as logging or + * tracking, while passing the original success value to the next step. * * **Details** * @@ -1401,17 +1457,10 @@ export const andThen = internal.andThen; * next part of the chain. Note that if the side effect fails, the entire chain * will fail too. * - * **Previously Known As** - * - * This API replaces the following from Effect 3.x: + * **Example** (Logging a step in a pipeline) * - * - `Effect.zipLeft` - * - * @example * ```ts - * // Title: Logging a step in a pipeline - * import { Data, Effect, pipe } from "effect" - * import { Console } from "effect" + * import { Console, Data, Effect, pipe } from "effect" * * class DiscountRateError extends Data.TaggedError("DiscountRateError")<{}> {} * @@ -1441,40 +1490,41 @@ export const andThen = internal.andThen; * // 95 * ``` * + * @category sequencing * @since 2.0.0 - * @category Sequencing */ export const tap = internal.tap; /** - * Encapsulates both success and failure of an `Effect` into a `Result` type. + * Converts both success and failure of an `Effect` into a `Result` type. + * + * **When to use** + * + * Use when you want an `Effect`'s typed failures to be handled as `Result` + * data while preserving the original error value. * * **Details** * * This function converts an effect that may fail into an effect that always * succeeds, wrapping the outcome in a `Result` type. The result will be - * `Result.Err` if the effect fails, containing the recoverable error, or - * `Result.Ok` if it succeeds, containing the result. + * `Result.Failure` if the effect fails, containing the recoverable error, or + * `Result.Success` if it succeeds, containing the result. * * Using this function, you can handle recoverable errors explicitly without * causing the effect to fail. This is particularly useful in scenarios where * you want to chain effects and manage both success and failure in the same * logical flow. * - * It's important to note that unrecoverable errors, often referred to as - * "defects," are still thrown and not captured within the `Result` type. Only - * failures that are explicitly represented as recoverable errors in the effect - * are encapsulated. - * * The resulting effect cannot fail directly because all recoverable failures * are represented inside the `Result` type. * - * **Previously Known As** + * **Gotchas** * - * This API replaces the following from Effect 3.x: + * `result` only captures typed, recoverable failures. Defects and + * interruptions are not captured inside the `Result` and still fail the + * effect. * - * - `Effect.either` + * **Example** (Capturing success or failure as Result) * - * @example * ```ts * import { Effect } from "effect" * @@ -1494,19 +1544,34 @@ export const tap = internal.tap; * @see {@link option} for a version that uses `Option` instead. * @see {@link exit} for a version that encapsulates both recoverable errors and defects in an `Exit`. * + * @category outcome encapsulation * @since 4.0.0 - * @category Outcome Encapsulation */ export const result = internal.result; /** - * Convert success to `Option.some` and failure to `Option.none`. + * Converts success to `Option.some` and failure to `Option.none`. + * + * **When to use** + * + * Use when you only care whether an effect succeeds and want recoverable + * failures represented as `Option.none`. * * **Details** * * Success values become `Option.some`, recoverable failures become * `Option.none`, and defects still fail the effect. * - * @example + * **Gotchas** + * + * `option` only captures typed, recoverable failures as `Option.none`. + * Defects and interruptions are not captured inside the `Option` and still + * fail the effect. + * + * `option` also discards typed failure values. Use `result` if the failure + * value matters. + * + * **Example** (Capturing success or failure as Option) + * * ```ts * import { Console, Effect, Option } from "effect" * @@ -1526,14 +1591,19 @@ export const result = internal.result; * @see {@link result} for a version that uses `Result` instead. * @see {@link exit} for a version that encapsulates both recoverable errors and defects in an `Exit`. * + * @category outcome encapsulation * @since 2.0.0 - * @category Output Encapsulation */ export const option = internal.option; /** * Transforms an effect to encapsulate both failure and success using the `Exit` * data type. * + * **When to use** + * + * Use when you need to inspect the full outcome, including typed failures, defects, + * and interruptions. + * * **Details** * * `exit` wraps an effect's success or failure inside an `Exit` type, allowing @@ -1543,7 +1613,8 @@ export const option = internal.option; * the `Exit.Failure` type. The error type is set to `never`, indicating that * the effect is structured to never fail directly. * - * @example + * **Example** (Capturing completion as Exit) + * * ```ts * import { Effect } from "effect" * @@ -1563,22 +1634,18 @@ export const option = internal.option; * @see {@link option} for a version that uses `Option` instead. * @see {@link result} for a version that uses `Result` instead. * + * @category outcome encapsulation * @since 2.0.0 - * @category Outcome Encapsulation */ export const exit = internal.exit; /** * Transforms the value inside an effect by applying a function to it. * - * **Syntax** + * **When to use** * - * ```ts skip-type-checking - * const mappedEffect = pipe(myEffect, Effect.map(transformation)) - * // or - * const mappedEffect = Effect.map(myEffect, transformation) - * // or - * const mappedEffect = myEffect.pipe(Effect.map(transformation)) - * ``` + * Use to transform an effect's success value with a function that returns a + * plain value, producing a new effect without changing the original effect's + * typed error or context requirements. * * **Details** * @@ -1589,7 +1656,21 @@ export const exit = internal.exit; * effect is not modified. Instead, a new effect is returned with the updated * value. * - * @example Adding a Service Charge + * **Example** (Syntax) + * + * ```ts + * import { Effect, pipe } from "effect" + * + * const myEffect = Effect.succeed(1) + * const transformation = (n: number) => n + 1 + * + * const mappedWithPipe = pipe(myEffect, Effect.map(transformation)) + * const mappedWithDataFirst = Effect.map(myEffect, transformation) + * const mappedWithMethod = myEffect.pipe(Effect.map(transformation)) + * ``` + * + * **Example** (Adding a service charge) + * * ```ts * import { Effect, pipe } from "effect" * @@ -1609,20 +1690,26 @@ export const exit = internal.exit; * @see {@link mapError} for a version that operates on the error channel. * @see {@link mapBoth} for a version that operates on both channels. * @see {@link flatMap} or {@link andThen} for a version that can return a new effect. - * + * @category mapping * @since 2.0.0 - * @category Mapping */ export const map = internal.map; /** * Replaces the value inside an effect with a constant value. * + * **When to use** + * + * Use to replace a successful value with a constant while preserving failures + * and requirements. + * + * **Details** + * * `as` allows you to ignore the original value inside an effect and * replace it with a new constant value. * - * @example + * **Example** (Replacing a success value) + * * ```ts - * // Title: Replacing a Value * import { Effect, pipe } from "effect" * * // Replaces the value 5 with the constant "new value" @@ -1632,16 +1719,18 @@ export const map = internal.map; * // Output: "new value" * ``` * + * @see {@link map} for deriving the replacement value from the success value + * @see {@link asVoid} for replacing the success value with `void` + * + * @category mapping * @since 2.0.0 - * @category Mapping */ export const as = internal.as; /** - * This function maps the success value of an `Effect` value to a `Some` value - * in an `Option` value. If the original `Effect` value fails, the returned - * `Effect` value will also fail. + * Maps the success value of an `Effect` to `Some`, preserving failures. + * + * **Example** (Wrapping success in Option.some) * - * @example * ```ts * import { Effect } from "effect" * @@ -1651,17 +1740,15 @@ export const as = internal.as; * // { _id: 'Option', _tag: 'Some', value: 42 } * ``` * - * @category Mapping + * @category mapping * @since 2.0.0 */ export const asSome = internal.asSome; /** - * This function maps the success value of an `Effect` value to `void`. If the - * original `Effect` value succeeds, the returned `Effect` value will also - * succeed. If the original `Effect` value fails, the returned `Effect` value - * will fail with the same error. + * Maps the success value of an `Effect` to `void`, preserving failures. + * + * **Example** (Discarding success values) * - * @example * ```ts * import { Effect } from "effect" * @@ -1671,20 +1758,23 @@ export const asSome = internal.asSome; * // undefined (void) * ``` * + * @category mapping * @since 2.0.0 - * @category Mapping */ export const asVoid = internal.asVoid; /** - * The `flip` function swaps the success and error channels of an effect, - * so that the success becomes the error, and the error becomes the success. + * Swaps an effect's success and failure channels. * - * This function is useful when you need to reverse the flow of an effect, - * treating the previously successful values as errors and vice versa. This can - * be helpful in scenarios where you want to handle a success as a failure or - * treat an error as a valid result. + * **When to use** + * + * Use to swap an `Effect`'s success and failure channels. + * + * **Details** + * + * For an `Effect`, the returned effect has type `Effect`. + * + * **Example** (Swapping success and failure channels) * - * @example * ```ts * import { Effect } from "effect" * @@ -1697,8 +1787,8 @@ export const asVoid = internal.asVoid; * const flipped = Effect.flip(program) * ``` * + * @category mapping * @since 2.0.0 - * @category Mapping */ export const flip = internal.flip; // ----------------------------------------------------------------------------- @@ -1707,20 +1797,23 @@ export const flip = internal.flip; /** * Combines two effects into a single effect, producing a tuple with the results of both effects. * + * **When to use** + * + * Use to combine exactly two effects into a tuple. + * + * **Details** + * * The `zip` function executes the first effect (left) and then the second effect (right). * Once both effects succeed, their results are combined into a tuple. * - * **Concurrency** + * Concurrency: * * By default, `zip` processes the effects sequentially. To execute the effects concurrently, * use the `{ concurrent: true }` option. * - * @see {@link zipWith} for a version that combines the results with a custom function. - * @see {@link validate} for a version that accumulates errors. + * **Example** (Combining two effects sequentially) * - * @example * ```ts - * // Title: Combining Two Effects Sequentially * import { Effect } from "effect" * * const task1 = Effect.succeed(1).pipe( @@ -1745,8 +1838,9 @@ export const flip = internal.flip; * // [ 1, 'hello' ] * ``` * - * @example - * // Title: Combining Two Effects Concurrently + * **Example** (Combining two effects concurrently) + * + * ```ts * import { Effect } from "effect" * * const task1 = Effect.succeed(1).pipe( @@ -1766,29 +1860,34 @@ export const flip = internal.flip; * // timestamp=... level=INFO fiber=#0 message="task2 done" * // timestamp=... level=INFO fiber=#0 message="task1 done" * // [ 1, 'hello' ] + * ``` + * + * @see {@link zipWith} for a version that combines the results with a custom function. + * @see {@link all} for collecting a larger structure of effects. * + * @category zipping * @since 2.0.0 - * @category Zipping */ export const zip = internal.zip; /** * Combines two effects sequentially and applies a function to their results to * produce a single value. * - * **When to Use** + * **When to use** + * + * Use when you need to run two effects sequentially and combine their results + * with a function instead of keeping the results as a tuple. * - * The `zipWith` function is similar to {@link zip}, but instead of returning a - * tuple of results, it applies a provided function to the results of the two - * effects, combining them into a single value. + * **Details** * - * **Concurrency** + * Concurrency: * * By default, the effects are run sequentially. To execute them concurrently, * use the `{ concurrent: true }` option. * - * @example + * **Example** (Combining two success values with a function) + * * ```ts - * // Title: Combining Effects with a Custom Function * import { Effect } from "effect" * * const task1 = Effect.succeed(1).pipe( @@ -1814,8 +1913,8 @@ export const zip = internal.zip; * // 6 * ``` * + * @category zipping * @since 2.0.0 - * @category Zipping */ export const zipWith = internal.zipWith; // ----------------------------------------------------------------------------- @@ -1826,6 +1925,11 @@ export { /** * Handles all errors in an effect by providing a fallback effect. * + * **When to use** + * + * Use when every recoverable error from an effect should be handled by the same + * fallback function while unrecoverable defects remain defects. + * * **Details** * * The `catch` function catches any errors that may occur during the @@ -1833,36 +1937,33 @@ export { * effect. This ensures that the program continues without failing by recovering * from errors using the provided fallback logic. * - * **Note**: `catch` only handles recoverable errors. It will not recover - * from unrecoverable defects. - * - * @see {@link catchCause} for a version that can recover from both recoverable and unrecoverable errors. - * - * **Previously Known As** + * **Gotchas** * - * This API replaces the following from Effect 3.x: + * `catch` only handles recoverable errors. It will not recover from + * unrecoverable defects. * - * - `Effect.catchAll` + * @see {@link catchCause} for a version that can recover from both recoverable and unrecoverable errors. * + * @category error handling * @since 4.0.0 - * @category Error Handling */ catch_ as catch }; /** * Catches and handles specific errors by their `_tag` field, which is used as a * discriminator. * - * **When to Use** + * **When to use** * - * `catchTag` is useful when your errors are tagged with a readonly `_tag` field - * that identifies the error type. You can use this function to handle specific - * error types by matching the `_tag` value. This allows for precise error - * handling, ensuring that only specific errors are caught and handled. + * Use when you need to recover from one specific tagged error in an effect + * error channel. * - * The error type must have a readonly `_tag` field to use `catchTag`. This - * field is used to identify and match errors. + * **Details** + * + * The error type must have a readonly `_tag` field. `catchTag` matches that + * field and only handles errors with the requested tag. + * + * **Example** (Handling a tagged error) * - * @example * ```ts * import { Effect } from "effect" * @@ -1885,26 +1986,31 @@ catch_ as catch }; * ) * ``` * + * @see {@link catchTags} for handling multiple tagged errors in one call + * @see {@link catchIf} for recovering from errors that match a predicate + * + * @category error handling * @since 2.0.0 - * @category Error Handling */ export const catchTag = internal.catchTag; /** * Handles multiple errors in a single block of code using their `_tag` field. * - * **When to Use** + * **When to use** + * + * Use when one recovery step should handle several tagged error types by + * matching their readonly `_tag` fields. + * + * **Details** * - * `catchTags` is a convenient way to handle multiple error types at - * once. Instead of using {@link catchTag} multiple times, you can pass an - * object where each key is an error type's `_tag`, and the value is the handler - * for that specific error. This allows you to catch and recover from multiple - * error types in a single call. You can also provide a fallback handler for - * unhandled errors. + * Pass a handler table whose keys are tags, plus an optional fallback for + * unmatched errors. * - * The error type must have a readonly `_tag` field to use `catchTag`. This + * The error type must have a readonly `_tag` field to use `catchTags`. This * field is used to identify and match errors. * - * @example + * **Example** (Handling multiple tagged errors) + * * ```ts * import { Data, Effect } from "effect" * @@ -1928,17 +2034,25 @@ export const catchTag = internal.catchTag; * }) * ``` * + * @category error handling * @since 2.0.0 - * @category Error Handling */ export const catchTags = internal.catchTags; /** * Catches a specific reason within a tagged error. * + * **When to use** + * + * Use to handle one nested reason inside an `Effect`'s tagged error while + * preserving the parent error shape for unmatched reasons. + * + * **Details** + * * Use this to handle nested error causes without removing the parent error * from the error channel. The handler receives the unwrapped reason. * - * @example + * **Example** (Handling an error reason) + * * ```ts * import { Data, Effect } from "effect" * @@ -1964,14 +2078,17 @@ export const catchTags = internal.catchTags; * ) * ``` * + * @see {@link catchReasons} for handling several nested reason tags + * + * @category error handling * @since 4.0.0 - * @category Error Handling */ export const catchReason = internal.catchReason; /** * Catches multiple reasons within a tagged error using an object of handlers. * - * @example + * **Example** (Handling multiple error reasons) + * * ```ts * import { Data, Effect } from "effect" * @@ -1999,15 +2116,16 @@ export const catchReason = internal.catchReason; * ) * ``` * + * @category error handling * @since 4.0.0 - * @category Error Handling */ export const catchReasons = internal.catchReasons; /** * Promotes nested reason errors into the Effect error channel, replacing * the parent error. * - * @example + * **Example** (Extracting the reason from a tagged error) + * * ```ts * import { Data, Effect } from "effect" * @@ -2030,34 +2148,30 @@ export const catchReasons = internal.catchReasons; * const unwrapped = program.pipe(Effect.unwrapReason("AiError")) * ``` * + * @category error handling * @since 4.0.0 - * @category Error Handling */ export const unwrapReason = internal.unwrapReason; /** * Handles both recoverable and unrecoverable errors by providing a recovery * effect. * - * **When to Use** + * **When to use** + * + * Use when you need to recover from an `Effect` by inspecting the full `Cause`, + * including recoverable failures, defects, and interruptions, instead of only + * the typed error value. * - * The `catchCause` function allows you to handle all errors, including - * unrecoverable defects, by providing a recovery effect. The recovery logic is - * based on the `Cause` of the error, which provides detailed information about - * the failure. + * **Details** * - * **When to Recover from Defects** + * When to Recover from Defects: * * Defects are unexpected errors that typically shouldn't be recovered from, as * they often indicate serious issues. However, in some cases, such as * dynamically loaded plugins, controlled recovery might be needed. * - * **Previously Known As** - * - * This API replaces the following from Effect 3.x: + * **Example** (Recovering from full failure causes) * - * - `Effect.catchAllCause` - * - * @example * ```ts * import { Cause, Console, Effect } from "effect" * @@ -2075,40 +2189,30 @@ export const unwrapReason = internal.unwrapReason; * }) * ``` * + * @category error handling * @since 4.0.0 - * @category Error Handling */ export const catchCause = internal.catchCause; /** - * Recovers from all defects using a provided recovery function. + * Recovers from defects using a provided recovery function. * - * **When to Use** + * **When to use** * - * There is no sensible way to recover from defects. This method should be used - * only at the boundary between Effect and an external system, to transmit - * information on a defect for diagnostic or explanatory purposes. + * Use when you need to report or translate defects at integration boundaries. * * **Details** * - * `catchAllDefect` allows you to handle defects, which are unexpected errors - * that usually cause the program to terminate. This function lets you recover - * from these defects by providing a function that handles the error. However, - * it does not handle expected errors (like those from {@link fail}) or - * execution interruptions (like those from {@link interrupt}). - * - * **When to Recover from Defects** - * - * Defects are unexpected errors that typically shouldn't be recovered from, as - * they often indicate serious issues. However, in some cases, such as - * dynamically loaded plugins, controlled recovery might be needed. + * `catchDefect` handles unexpected defects, such as thrown exceptions or + * values passed to `die`, without catching typed failures or interruptions. * - * **Previously Known As** + * When to Recover from Defects: * - * This API replaces the following from Effect 3.x: + * Defects are unexpected errors that typically should not be recovered from, as + * they often indicate serious issues. In some cases, such as dynamically loaded + * plugins, controlled recovery may be needed. * - * - `Effect.catchAllDefect` + * **Example** (Recovering from defects) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -2125,28 +2229,25 @@ export const catchCause = internal.catchCause; * }) * ``` * + * @category error handling * @since 4.0.0 - * @category Error Handling */ export const catchDefect = internal.catchDefect; /** * Recovers from specific errors using a `Predicate` or `Refinement`. * - * **When to Use** + * **When to use** * - * `catchIf` lets you recover from errors that match a condition. Use a - * `Refinement` for type narrowing or a `Predicate` for simple boolean - * matching. Non-matching errors re-fail with the original cause. Defects and - * interrupts are not caught. + * Use when you need to recover from errors that match a condition. * - * **Previously Known As** + * **Details** * - * This API replaces the following: + * Use a `Refinement` for type narrowing or a `Predicate` for simple boolean + * matching. Non-matching errors re-fail with the original cause. Defects and + * interrupts are not caught. * - * - `Effect.catchSome` (Effect 3.x) - * - `Effect.catchIf` + * **Example** (Recovering when a predicate matches) * - * @example * ```ts * import { Data, Effect, Filter } from "effect" * @@ -2171,24 +2272,50 @@ export const catchDefect = internal.catchDefect; * ) * ``` * + * @category error handling * @since 2.0.0 - * @category Error Handling */ export const catchIf = internal.catchIf; /** * Recovers from specific errors using a `Filter`. * + * **When to use** + * + * Use to recover from typed `Effect` errors with a reusable `Filter` when + * matching can also narrow or transform the error before choosing the recovery + * effect. + * + * **Details** + * + * The filter runs on typed failures extracted from the `Cause`. Successful + * filter results are passed to `f`; failed filter results are passed to + * `orElse` when provided. Without `orElse`, the original failure cause is + * preserved. + * + * @see {@link catchIf} for predicate-based recovery from typed errors + * @see {@link catchTag} for recovering from a single tagged error + * @see {@link catchTags} for recovering from several tagged errors + * @see {@link catchCauseFilter} for filtering full causes instead of typed errors + * + * @category error handling * @since 4.0.0 - * @category Error Handling */ export const catchFilter = internal.catchFilter; /** * Catches `NoSuchElementError` failures and converts them to `Option.none`. * + * **When to use** + * + * Use when you expect missing-value failures and want them to become an + * optional success while all other failures keep failing. + * + * **Details** + * * Success values become `Option.some`, `NoSuchElementError` becomes * `Option.none`, and all other errors are preserved. * - * @example + * **Example** (Recovering from missing Option values) + * * ```ts * import { Effect, Option } from "effect" * @@ -2199,30 +2326,29 @@ export const catchFilter = internal.catchFilter; * Effect.runPromise(none).then(console.log) // { _id: 'Option', _tag: 'None' } * ``` * - * **Previously Known As** + * @see {@link fromOption} for converting `Option.none` into `NoSuchElementError` + * @see {@link fromNullishOr} for converting nullish values into `NoSuchElementError` + * @see {@link option} for converting any failure into `Option.none` * - * This API replaces the following from Effect 3.x: - * - * - `Effect.optionFromOptional` - * - * @since 2.0.0 - * @category Error Handling + * @category error handling + * @since 4.0.0 */ export const catchNoSuchElement = internal.catchNoSuchElement; /** * Recovers from specific failures based on a predicate. * + * **When to use** + * + * Use to recover an `Effect` from full causes selected by a predicate. + * + * **Details** + * * This function allows you to conditionally catch and recover from failures * that match a specific predicate. This is useful when you want to handle * only certain types of errors while letting others propagate. * - * **Previously Known As** - * - * This API replaces the following from Effect 3.x: - * - * - `Effect.catchSomeCause` + * **Example** (Recovering from selected causes) * - * @example * ```ts * import { Cause, Console, Effect } from "effect" * @@ -2244,31 +2370,52 @@ export const catchNoSuchElement = internal.catchNoSuchElement; * // Then: "Fallback response" * ``` * + * @see {@link catchCause} for recovering from every cause + * @see {@link catchCauseFilter} for selecting full causes with a `Filter` + * @see {@link catchIf} for predicate-based recovery from typed errors + * + * @category error handling * @since 4.0.0 - * @category Error Handling */ export const catchCauseIf = internal.catchCauseIf; /** * Recovers from specific failures based on a `Filter`. * + * **When to use** + * + * Use when you need to recover an `Effect` only from causes selected by a + * `Filter`, while giving the recovery both the selected value and the original + * `Cause`. + * + * **Details** + * + * The filter is applied to the full `Cause`. When it succeeds, the handler + * receives the selected value and the original cause. When it fails, the effect + * re-fails with the residual cause returned by the filter. + * + * @see {@link catchCauseIf} for predicate-based cause selection + * @see {@link catchFilter} for filtering typed error values instead of full causes + * @see {@link catchCause} for recovering from every cause without filtering + * + * @category error handling * @since 4.0.0 - * @category Error Handling */ export const catchCauseFilter = internal.catchCauseFilter; /** - * The `mapError` function is used to transform or modify the error - * produced by an effect, without affecting its success value. + * Transforms the failure value of an effect without changing its success value. * - * This function is helpful when you want to enhance the error with additional - * information, change the error type, or apply custom error handling while - * keeping the original behavior of the effect's success values intact. It only - * operates on the error channel and leaves the success channel unchanged. + * **When to use** * - * @see {@link map} for a version that operates on the success channel. - * @see {@link mapBoth} for a version that operates on both channels. - * @see {@link orElseFail} if you want to replace the error with a new one. + * Use to translate an `Effect`'s typed failures while leaving successful values + * unchanged. + * + * **Details** + * + * Only the failure channel is transformed. The success channel and requirements + * are preserved. + * + * **Example** (Transforming the error channel) * - * @example * ```ts * import { Data, Effect } from "effect" * @@ -2286,13 +2433,21 @@ export const catchCauseFilter = internal.catchCauseFilter; * ) * ``` * + * @see {@link map} for a version that operates on the success channel. + * @see {@link mapBoth} for a version that operates on both channels. + * + * @category error handling * @since 2.0.0 - * @category Error Handling */ export const mapError = internal.mapError; /** * Applies transformations to both the success and error channels of an effect. * + * **When to use** + * + * Use to transform both success and failure channels of an `Effect` without + * changing whether it succeeds or fails. + * * **Details** * * This function takes two map functions as arguments: one for the error channel @@ -2300,7 +2455,8 @@ export const mapError = internal.mapError; * the error and the success values without altering the overall success or * failure status of the effect. * - * @example + * **Example** (Transforming success and failure channels) + * * ```ts * import { Data, Effect } from "effect" * @@ -2321,28 +2477,22 @@ export const mapError = internal.mapError; * @see {@link map} for a version that operates on the success channel. * @see {@link mapError} for a version that operates on the error channel. * + * @category mapping * @since 2.0.0 - * @category Mapping */ export const mapBoth = internal.mapBoth; /** - * Converts an effect's failure into a fiber termination, removing the error from the effect's type. - * - * **When to Use* - * - * Use `orDie` when failures should be treated as unrecoverable defects and no error handling is required. + * Converts typed failures from the error channel into defects, removing the + * error type from the returned effect. * - * **Details** + * **When to use** * - * The `orDie` function is used when you encounter errors that you do not want to handle or recover from. - * It removes the error type from the effect and ensures that any failure will terminate the fiber. - * This is useful for propagating failures as defects, signaling that they should not be handled within the effect. + * Use when you need to turn an `Effect` typed failure that represents an + * unrecoverable bug or invalid state into a defect. * - * @see {@link orDieWith} if you need to customize the error. + * **Example** (Converting typed failures into defects) * - * @example * ```ts - * // Title: Propagating an Error as a Defect * import { Data, Effect } from "effect" * * class DivideByZeroError extends Data.TaggedError("DivideByZeroError")<{}> {} @@ -2362,20 +2512,22 @@ export const mapBoth = internal.mapBoth; * // ...stack trace... * ``` * + * @category converting failures to defects * @since 2.0.0 - * @category Converting Failures to Defects */ export const orDie = internal.orDie; /** - * The `tapError` function executes an effectful operation to inspect the - * failure of an effect without modifying it. + * Runs an effectful operation when the source effect fails, while preserving + * the original failure when the operation succeeds. + * + * **Details** + * + * Use this for logging, metrics, or other failure-side observations. If the + * operation passed to `tapError` fails, that error is also represented in the + * returned effect's error channel. * - * This function is useful when you want to perform some side effect (like - * logging or tracking) on the failure of an effect, but without changing the - * result of the effect itself. The error remains in the effect's error channel, - * while the operation you provide can inspect or act on it. + * **Example** (Running effects on failure) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -2393,17 +2545,21 @@ export const orDie = internal.orDie; * // expected error: NetworkError * ``` * + * @category sequencing * @since 2.0.0 - * @category Sequencing */ export const tapError = internal.tapError; /** * Runs an effectful handler when a failure's `_tag` matches. * - * Use this with tagged-union errors to perform side effects for a tag (or tag - * list) while preserving the original failure. + * **Details** + * + * Use this with tagged-union errors to perform side effects for one tag or a + * list of tags. When the handler succeeds, the original failure is preserved; + * if the handler fails, its error is also included in the returned effect. + * + * **Example** (Running effects for tagged failures) * - * @example * ```ts * import { Console, Data, Effect } from "effect" * @@ -2427,26 +2583,27 @@ export const tapError = internal.tapError; * // expected error: 504 * ``` * + * @category sequencing * @since 2.0.0 - * @category Sequencing */ export const tapErrorTag = internal.tapErrorTag; /** - * The `tapCause` function allows you to inspect the complete cause - * of an error, including failures and defects. + * Runs an effectful operation with the full `Cause` when the source effect + * fails. * - * This function is helpful when you need to log, monitor, or handle specific - * error causes in your effects. It gives you access to the full error cause, - * whether it's a failure, defect, or other exceptional conditions, without - * altering the error or the overall result of the effect. + * **When to use** * - * **Previously Known As** + * Use when failure observation needs typed failures, defects, and interruptions + * rather than only the typed error value. * - * This API replaces the following from Effect 3.x: + * **Details** + * + * Use this to log or inspect typed failures, defects, and interruptions. When + * the operation succeeds, the original cause is preserved. If the operation + * fails, its error is also represented in the returned effect. * - * - `Effect.tapErrorCause` + * **Example** (Observing full failure causes) * - * @example * ```ts * import { Cause, Console, Effect } from "effect" * @@ -2462,18 +2619,21 @@ export const tapErrorTag = internal.tapErrorTag; * // Then: { _id: 'Exit', _tag: 'Failure', cause: ... } * ``` * - * @since 2.0.0 - * @category Sequencing + * @category sequencing + * @since 4.0.0 */ export const tapCause = internal.tapCause; /** - * Conditionally executes a side effect based on the cause of a failed effect. + * Executes a side effect conditionally when a failed effect's cause matches a predicate. + * + * **Details** * * This function allows you to tap into the cause of an effect's failure only when * the cause matches a specific predicate. This is useful for conditional logging, * monitoring, or other side effects based on the type of failure. * - * @example + * **Example** (Observing selected failure causes) + * * ```ts * import { Cause, Console, Effect } from "effect" * @@ -2491,34 +2651,45 @@ export const tapCause = internal.tapCause; * // Then: { _id: 'Exit', _tag: 'Failure', cause: ... } * ``` * + * @category sequencing * @since 4.0.0 - * @category Sequencing */ export const tapCauseIf = internal.tapCauseIf; /** - * Conditionally executes a side effect based on the cause of a failed effect. + * Executes a side effect conditionally when a failed effect's cause passes a filter. * + * **When to use** + * + * Use when you need to observe only failure causes selected by a `Filter`, + * while giving the side effect both the selected value and the original + * `Cause`. + * + * **Details** + * + * A successful filter result runs the side effect with the selected value and + * original cause. A failed filter result skips the side effect and preserves the + * original cause. + * + * @see {@link tapCauseIf} for selecting causes with a boolean predicate + * @see {@link tapCause} for observing every failure cause + * @see {@link catchCauseFilter} for recovering from selected causes instead of only observing them + * + * @category sequencing * @since 4.0.0 - * @category Sequencing */ export const tapCauseFilter = internal.tapCauseFilter; /** - * Inspect severe errors or defects (non-recoverable failures) in an effect. + * Runs an effectful operation when the source effect dies with a defect. * * **Details** * - * This function is specifically designed to handle and inspect defects, which - * are critical failures in your program, such as unexpected runtime exceptions - * or system-level errors. Unlike normal recoverable errors, defects typically - * indicate serious issues that cannot be addressed through standard error - * handling. + * Use this for diagnostics such as logging unexpected thrown exceptions or + * values passed to `die`. Recoverable failures are not handled. When the + * operation succeeds, the original defect is preserved; if the operation fails, + * its error is also represented in the returned effect. * - * When a defect occurs in an effect, the function you provide to this function - * will be executed, allowing you to log, monitor, or handle the defect in some - * way. Importantly, this does not alter the main result of the effect. If no - * defect occurs, the effect behaves as if this function was not used. + * **Example** (Observing defects) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -2551,16 +2722,19 @@ export const tapCauseFilter = internal.tapCauseFilter; * // ... stack trace ... * ``` * + * @category sequencing * @since 2.0.0 - * @category Sequencing */ export const tapDefect = internal.tapDefect; /** * Retries an effect until it succeeds, discarding failures. * + * **Details** + * * Yields between attempts so other fibers can run. * - * @example + * **Example** (Retrying until success) + * * ```ts * import { Console, Effect } from "effect" * @@ -2585,32 +2759,35 @@ export const tapDefect = internal.tapDefect; * // Ready * ``` * + * @category repetition * @since 2.0.0 - * @category Repetition / Recursion */ export const eventually = internal.eventually; /** - * Retries a failing effect based on a defined retry policy. + * Retries typed failures from an effect according to a retry policy. + * + * **When to use** + * + * Use when you need to rerun an effect after transient typed failures, such as + * network issues or temporary resource unavailability. * * **Details** * - * The `Effect.retry` function takes an effect and a {@link Schedule} policy, - * and will automatically retry the effect if it fails, following the rules of - * the policy. + * The policy can be a `Schedule`, a schedule builder, or a `Retry.Options` + * object using `schedule`, `times`, `while`, or `until`. If a retry eventually + * succeeds, the returned effect succeeds with that value. If the policy stops + * while the effect is still failing, the last failure is propagated. * - * If the effect ultimately succeeds, the result will be returned. + * **Gotchas** * - * If the maximum retries are exhausted and the effect still fails, the failure - * is propagated. + * The source effect is always evaluated once before any retry policy is + * applied. For example, `Schedule.recurs(3)` allows up to three retries after + * the initial attempt. * - * **When to Use** + * Defects and interruptions are not retried. * - * This can be useful when dealing with intermittent failures, such as network - * issues or temporary resource unavailability. By defining a retry policy, you - * can control the number of retries, the delay between them, and when to stop - * retrying. + * **Example** (Retrying with a schedule) * - * @example * ```ts * import { Data, Effect, Schedule } from "effect" * @@ -2635,14 +2812,18 @@ export const eventually = internal.eventually; * * @see {@link retryOrElse} for a version that allows you to run a fallback. * @see {@link repeat} if your retry condition is based on successful outcomes rather than errors. - * + * @category error handling * @since 2.0.0 - * @category Error Handling */ export const retry = internalSchedule.retry; /** * Retries a failing effect and runs a fallback effect if retries are exhausted. * + * **When to use** + * + * Use when you want to handle failures gracefully by specifying an alternative + * action after repeated failures. + * * **Details** * * The `Effect.retryOrElse` function attempts to retry a failing effect multiple @@ -2651,14 +2832,8 @@ export const retry = internalSchedule.retry; * If the retries are exhausted and the effect still fails, it runs a fallback * effect instead. * - * **When to Use** + * **Example** (Falling back after retries are exhausted) * - * This function is useful when you want to handle failures gracefully by - * specifying an alternative action after repeated failures. - * - * @see {@link retry} for a version that does not run a fallback effect. - * - * @example * ```ts * import { Console, Data, Effect, Schedule } from "effect" * @@ -2693,24 +2868,22 @@ export const retry = internalSchedule.retry; * // Network data * ``` * + * @see {@link retry} for a version that does not run a fallback effect. + * @category error handling * @since 2.0.0 - * @category Error Handling */ export const retryOrElse = internalSchedule.retryOrElse; /** - * The `sandbox` function transforms an effect by exposing the full cause - * of any error, defect, or fiber interruption that might occur during its - * execution. It changes the error channel of the effect to include detailed - * information about the cause, which is wrapped in a `Cause` type. + * Exposes an effect's full failure cause in the error channel as `Cause`. + * + * **Details** + * + * Use `sandbox` when downstream error handling needs to distinguish typed + * failures, defects, and interruptions. Use `unsandbox` to restore the original + * typed error channel after cause-level handling. * - * This function is useful when you need access to the complete underlying cause - * of failures, defects, or interruptions, enabling more detailed error - * handling. Once you apply `sandbox`, you can use operators like - * {@link catchAll} and {@link catchTags} to handle specific error conditions. - * If necessary, you can revert the sandboxing operation with {@link unsandbox} - * to return to the original error handling behavior. + * **Example** (Exposing failures as causes) * - * @example * ```ts * import { Cause, Effect } from "effect" * @@ -2726,27 +2899,26 @@ export const retryOrElse = internalSchedule.retryOrElse; * // Output: "Caught cause: Something went wrong" * ``` * - * @see {@link unsandbox} to restore the original error handling. - * + * @category error handling * @since 2.0.0 - * @category Error Handling */ export const sandbox = internal.sandbox; /** * Discards both the success and failure values of an effect. * - * **When to Use** + * **When to use** + * + * Use when an effect should run for its side effects while both success and + * failure values are discarded. * - * `ignore` allows you to run an effect without caring about its result, whether - * it succeeds or fails. This is useful when you only care about the side - * effects of the effect and do not need to handle or process its outcome. + * **Details** * * Use the `log` option to emit the full {@link Cause} when the effect fails, * and `message` to prepend a custom log message. * - * @example + * **Example** (Discarding success and failure values) + * * ```ts - * // Title: Using Effect.ignore to Discard Values * import { Effect } from "effect" * * // ┌─── Effect @@ -2758,9 +2930,9 @@ export const sandbox = internal.sandbox; * const program = task.pipe(Effect.ignore) * ``` * - * @example + * **Example** (Logging failures while ignoring results) + * * ```ts - * // Title: Logging failures while ignoring results * import { Effect } from "effect" * * const task = Effect.fail("Uh oh!") @@ -2769,23 +2941,25 @@ export const sandbox = internal.sandbox; * const programWarn = task.pipe(Effect.ignore({ log: "Warn", message: "Ignoring task failure" })) * ``` * - * **Previously Known As** - * - * This API replaces the following from Effect 3.x: - * - * - `Effect.ignoreLogged` - * + * @category error handling * @since 2.0.0 - * @category Error Handling */ export const ignore = internal.ignore; /** * Ignores the effect's failure cause, including defects and interruptions. * + * **When to use** + * + * Use when a best-effort effect should never fail, even from defects or + * interruption, and optional cause logging is enough. + * + * **Details** + * * Use the `log` option to emit the full {@link Cause} when the effect fails, * and `message` to prepend a custom log message. * - * @example + * **Example** (Ignoring failures and logging causes) + * * ```ts * import { Effect } from "effect" * @@ -2795,21 +2969,24 @@ export const ignore = internal.ignore; * const programLog = task.pipe(Effect.ignoreCause({ log: true, message: "Ignoring failure cause" })) * ``` * + * @category error handling * @since 4.0.0 - * @category Error Handling */ export const ignoreCause = internal.ignoreCause; /** - * Apply an `ExecutionPlan` to an effect, retrying with step-provided resources + * Applies an `ExecutionPlan` to an effect, retrying with step-provided resources * until it succeeds or the plan is exhausted. * + * **Details** + * * Each attempt updates `ExecutionPlan.CurrentMetadata` (attempt and step index), * and retry timing is derived per step (the first attempt uses the remaining * attempts schedule; later retries apply the step schedule at least once). * - * @example + * **Example** (Retrying with an execution plan) + * * ```ts - * import { Effect, ExecutionPlan, Layer, Context } from "effect" + * import { Context, Effect, ExecutionPlan, Layer } from "effect" * * const Endpoint = Context.Service<{ url: string }>("Endpoint") * @@ -2829,41 +3006,38 @@ export const ignoreCause = internal.ignoreCause; * const program = Effect.withExecutionPlan(fetchUrl, plan) * ``` * + * @category fallback * @since 3.16.0 - * @category Fallback */ export const withExecutionPlan = internalExecutionPlan.withExecutionPlan; /** * Runs an effect and reports any errors to the configured `ErrorReporter`s. * + * **Details** + * * If the `defectsOnly` option is set to `true`, only defects (unrecoverable * errors) will be reported, while regular failures will be ignored. * + * @category error handling * @since 4.0.0 - * @category Error Handling */ export const withErrorReporting = internal.withErrorReporting; // ----------------------------------------------------------------------------- // Fallback // ----------------------------------------------------------------------------- /** - * Replaces the original failure with a success value, ensuring the effect - * cannot fail. + * Recovers from a typed failure by producing a fallback success value. * - * `orElseSucceed` allows you to replace the failure of an effect with a - * success value. If the effect fails, it will instead succeed with the provided - * value, ensuring the effect always completes successfully. This is useful when - * you want to guarantee a successful result regardless of whether the original - * effect failed. + * **Details** + * + * If the source effect succeeds, its value is preserved. If it fails in the + * error channel, `orElseSucceed` evaluates the fallback and succeeds with that + * value, removing the typed error from the returned effect. * - * The function ensures that any failure is effectively "swallowed" and replaced - * by a successful value, which can be helpful for providing default values in - * case of failure. + * Defects and interruptions are not recovered by this operator. * - * **Important**: This function only applies to failed effects. If the effect - * already succeeds, it will remain unchanged. + * **Example** (Replacing failures with a value) * - * @example * ```ts * import { Effect } from "effect" * @@ -2884,14 +3058,20 @@ export const withErrorReporting = internal.withErrorReporting; * // { _id: 'Exit', _tag: 'Success', value: 18 } * ``` * + * @category fallback * @since 2.0.0 - * @category Fallback */ export const orElseSucceed = internal.orElseSucceed; /** * Runs a sequence of effects and returns the result of the first successful * one. * + * **When to use** + * + * Use when you have prioritized fallback `Effect`s, such as attempting + * multiple APIs, reading configuration from several sources, or trying + * alternative resource locations in order. + * * **Details** * * This function executes the provided effects in sequence, stopping at the @@ -2902,13 +3082,8 @@ export const orElseSucceed = internal.orElseSucceed; * effect. If the collection is empty, the returned effect defects with an * `Error` whose message is `"Received an empty collection of effects"`. * - * **When to Use** - * - * Use `firstSuccessOf` when you have prioritized fallback strategies, such as - * attempting multiple APIs, reading configuration from several sources, or - * trying alternative resource locations in order. + * **Example** (Trying alternatives until one succeeds) * - * @example * ```ts * import { Effect } from "effect" * @@ -2928,8 +3103,8 @@ export const orElseSucceed = internal.orElseSucceed; * // Output: "secondary result" * ``` * + * @category fallback * @since 2.0.0 - * @category Fallback */ export const firstSuccessOf = internal.firstSuccessOf; // ----------------------------------------------------------------------------- @@ -2939,17 +3114,25 @@ export const firstSuccessOf = internal.firstSuccessOf; * Adds a time limit to an effect, triggering a timeout if the effect exceeds * the duration. * + * **When to use** + * + * Use when you need a timeout of an `Effect` to be represented as a typed + * failure. + * + * **Details** + * * The `timeout` function allows you to specify a time limit for an * effect's execution. If the effect does not complete within the given time, a * `TimeoutException` is raised. This can be useful for controlling how long * your program waits for a task to finish, ensuring that it doesn't hang * indefinitely if the task takes too long. * - * @see {@link timeoutFail} for a version that raises a custom error. - * @see {@link timeoutFailCause} for a version that raises a custom defect. - * @see {@link timeoutTo} for a version that allows specifying both success and timeout handlers. + * **Gotchas** + * + * If the timeout wins, the source effect is interrupted. + * + * **Example** (Failing when work takes too long) * - * @example * ```ts * import { Effect } from "effect" * @@ -2978,30 +3161,30 @@ export const firstSuccessOf = internal.firstSuccessOf; * // } * ``` * + * @see {@link timeoutOption} for returning `Option.none` on timeout. + * @see {@link timeoutOrElse} for a version that allows specifying both success and timeout handlers. + * + * @category delays & timeouts * @since 2.0.0 - * @category Delays & Timeouts */ export const timeout = internal.timeout; /** - * Handles timeouts by returning an `Option` that represents either the result - * or a timeout. + * Runs an effect with a time limit and represents only the timeout case as + * `Option.none`. * - * The `timeoutOption` function provides a way to gracefully handle - * timeouts by wrapping the outcome of an effect in an `Option` type. If the - * effect completes within the specified time, it returns a `Some` containing - * the result. If the effect times out, it returns a `None`, allowing you to - * treat the timeout as a regular result instead of throwing an error. + * **When to use** * - * This is useful when you want to handle timeouts without causing the program - * to fail, making it easier to manage situations where you expect tasks might - * take too long but want to continue executing other tasks. + * Use when a timeout of an `Effect` should be handled as `Option.none`. * - * @see {@link timeout} for a version that raises a `TimeoutException`. - * @see {@link timeoutFail} for a version that raises a custom error. - * @see {@link timeoutFailCause} for a version that raises a custom defect. - * @see {@link timeoutTo} for a version that allows specifying both success and timeout handlers. + * **Details** + * + * If the source effect succeeds before the timeout, the returned effect + * succeeds with `Option.some(value)`. If the timeout wins, the source effect is + * interrupted and the returned effect succeeds with `Option.none`. If the + * source effect fails before the timeout, that failure is preserved. + * + * **Example** (Returning None on timeout) * - * @example * ```ts * import { Effect } from "effect" * @@ -3028,17 +3211,32 @@ export const timeout = internal.timeout; * // ] * ``` * + * @see {@link timeout} for a version that raises a `TimeoutException`. + * @see {@link timeoutOrElse} for a version that allows specifying both success and timeout handlers. + * + * @category delays & timeouts * @since 3.1.0 - * @category Delays & Timeouts */ export const timeoutOption = internal.timeoutOption; /** * Applies a timeout to an effect, with a fallback effect executed if the timeout is reached. * - * This function is useful when you want to set a maximum duration for an operation - * and provide an alternative action if the timeout is exceeded. + * **When to use** + * + * Use when a timeout of an `Effect` should switch to a fallback effect. + * + * **Details** + * + * The fallback effect is created lazily by `orElse` and may introduce its own + * success, failure, and requirement types. + * + * **Gotchas** + * + * If the timeout wins, the source effect is interrupted before the fallback is + * run. + * + * **Example** (Falling back on timeout) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -3065,15 +3263,19 @@ export const timeoutOption = internal.timeoutOption; * // Cached result * ``` * - * @since 3.1.0 - * @category Delays & Timeouts + * @see {@link timeout} for failing with a `TimeoutException`. + * @see {@link timeoutOption} for returning `Option.none` on timeout. + * + * @category delays & timeouts + * @since 4.0.0 */ export const timeoutOrElse = internal.timeoutOrElse; /** * Returns an effect that is delayed from this effect by the specified * `Duration`. * - * @example + * **Example** (Delaying an effect) + * * ```ts * import { Console, Effect } from "effect" * @@ -3086,15 +3288,16 @@ export const timeoutOrElse = internal.timeoutOrElse; * // Waits 1 second, then prints: "Delayed message" * ``` * + * @category delays & timeouts * @since 2.0.0 - * @category Delays & Timeouts */ export const delay = internal.delay; /** - * Returns an effect that suspends for the specified duration. This method is - * asynchronous, and does not actually block the fiber executing the effect. + * Returns an effect that suspends the current fiber for the specified duration + * without blocking a JavaScript thread. + * + * **Example** (Pausing without blocking) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -3109,17 +3312,20 @@ export const delay = internal.delay; * // Output: "End" (after 2 seconds) * ``` * + * @category delays & timeouts * @since 2.0.0 - * @category Delays & Timeouts */ export const sleep = internal.sleep; /** - * Measures the runtime of an effect and returns the duration with its result. + * Returns the runtime duration of an effect together with its result. + * + * **Details** * * The original success, failure, or interruption is preserved; only the success * value is paired with the duration. * - * @example + * **Example** (Measuring execution time) + * * ```ts * import { Console, Duration, Effect } from "effect" * @@ -3129,35 +3335,30 @@ export const sleep = internal.sleep; * }) * ``` * + * @category delays & timeouts * @since 2.0.0 - * @category Delays & Timeouts */ export const timed = internal.timed; // ----------------------------------------------------------------------------- // Racing // ----------------------------------------------------------------------------- /** - * Races multiple effects and returns the first successful result. - * - * **Details** + * Runs multiple effects concurrently and returns the first successful result. * - * This function runs multiple effects concurrently and returns the result of - * the first one to succeed. If one effect succeeds, the others will be - * interrupted. + * **When to use** * - * If none of the effects succeed, the function will fail with the last error - * encountered. + * Use when early failures should be ignored until a success occurs + * or all effects fail. * - * **When to Use** + * **Details** * - * This is useful when you want to race multiple effects, but only care about - * the first one to succeed. It is commonly used in cases like timeouts, - * retries, or when you want to optimize for the faster response without - * worrying about the other effects. + * Early failures do not finish the race; `raceAll` keeps waiting until one + * effect succeeds or every effect has failed. When one effect succeeds, the + * remaining effects are interrupted. If every effect fails, the returned effect + * fails with a cause containing the collected failure reasons. * - * @see {@link race} for a version that handles only two effects. + * **Example** (Racing many effects) * - * @example * ```ts * import { Duration, Effect } from "effect" * @@ -3172,20 +3373,23 @@ export const timed = internal.timed; * // Result: "Fast" (after ~100ms) * ``` * + * @see {@link race} for a version that handles only two effects. + * @category racing * @since 2.0.0 - * @category Racing */ export const raceAll = internal.raceAll; /** - * Races multiple effects and returns the first successful result. + * Runs multiple effects concurrently and completes with the first effect to + * finish, whether it succeeds or fails. * * **Details** * - * Similar to `raceAll`, this function runs multiple effects concurrently - * and returns the result of the first one to succeed. If one effect succeeds, - * the others will be interrupted. + * After the first effect completes, all remaining effects are interrupted. Use + * `raceAll` when early failures should be ignored until a success occurs or + * all effects fail. + * + * **Example** (Taking the first settled result) * - * @example * ```ts * import { Duration, Effect } from "effect" * @@ -3200,17 +3404,20 @@ export const raceAll = internal.raceAll; * // Result: "First" (after ~200ms, even though effect2 completes first but fails) * ``` * + * @category racing * @since 4.0.0 - * @category Racing */ export const raceAllFirst = internal.raceAllFirst; /** * Races two effects and returns the first successful result. * + * **Details** + * * If one effect succeeds, the other is interrupted and `onWinner` can observe the * winning fiber. If both fail, the race fails. * - * @example + * **Example** (Racing two effects) + * * ```ts * import { Console, Duration, Effect } from "effect" * @@ -3226,17 +3433,25 @@ export const raceAllFirst = internal.raceAllFirst; * // Output: winner: slow-success * ``` * + * @category racing * @since 2.0.0 - * @category Racing */ export const race = internal.race; /** * Races two effects and returns the result of the first one to complete, whether * it succeeds or fails. * + * **When to use** + * + * Use when any completion, including failure, should decide the race and + * interrupt the losing effect. + * + * **Details** + * * The losing effect is interrupted, and `onWinner` can observe the winning fiber. * - * @example + * **Example** (Observing the winning fiber) + * * ```ts * import { Console, Duration, Effect } from "effect" * @@ -3255,8 +3470,8 @@ export const race = internal.race; * // Output: failed: fast-fail * ``` * + * @category racing * @since 2.0.0 - * @category Racing */ export const raceFirst = internal.raceFirst; // ----------------------------------------------------------------------------- @@ -3266,7 +3481,8 @@ export const raceFirst = internal.raceFirst; * Filters elements of an iterable using a predicate, refinement, or effectful * predicate. * - * @example + * **Example** (Filtering success values) + * * ```ts * import { Effect } from "effect" * @@ -3279,27 +3495,63 @@ export const raceFirst = internal.raceFirst; * // Use Effect.filterMapEffect for effectful Filter.Filter callbacks * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ export const filter = internal.filter; /** * Filters and maps elements of an iterable with a `Filter`. * - * @since 4.0.0 - * @category Filtering + * **When to use** + * + * Use when you need to filter an iterable with a `Filter` inside an `Effect`, + * collecting each filter success value. + * + * **Details** + * + * `Result.succeed` values are collected in the returned array, and + * `Result.fail` values are skipped. + * + * @see {@link filter} for keeping original elements with a boolean predicate, refinement, or effectful predicate + * @see {@link filterMapEffect} for using an effectful `Filter` + * + * @category filtering + * @since 2.0.0 */ export const filterMap = internal.filterMap; /** - * Effectfully filters and maps elements of an iterable with a `FilterEffect`. + * Filters and maps elements of an iterable effectfully with a `FilterEffect`. + * + * **When to use** + * + * Use when you need to filter each iterable element effectfully and transform + * accepted elements into successful output values. + * + * **Details** + * + * `Result.succeed` values are collected in the returned array, and + * `Result.fail` values are skipped. + * + * **Gotchas** + * + * With concurrent execution, successful values are collected in completion + * order, not input order. * + * @see {@link filterMap} for using a synchronous `Filter` + * @see {@link filter} for keeping original elements with a predicate + * + * @category filtering * @since 4.0.0 - * @category Filtering */ export const filterMapEffect = internal.filterMapEffect; /** * Filters an effect, providing an alternative effect if the predicate fails. * + * **When to use** + * + * Use when a successful value that fails a predicate should continue with an + * effectful fallback instead of failing the effect. + * * **Details** * * This function applies a predicate to the result of an effect. If the @@ -3307,7 +3559,8 @@ export const filterMapEffect = internal.filterMapEffect; * `orElse` effect can produce an alternative value or perform additional * computations. * - * @example + * **Example** (Filtering with a fallback effect) + * * ```ts * import { Effect } from "effect" * @@ -3324,15 +3577,29 @@ export const filterMapEffect = internal.filterMapEffect; * // Result: "Number 5 is odd" (since 5 is not even) * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ export const filterOrElse = internal.filterOrElse; /** * Filters an effect with a `Filter`, providing an alternative effect on failure. * + * **When to use** + * + * Use when a successful effect value should be accepted and transformed by a + * `Filter`, while rejected values should continue with an alternative effect + * built from the filter failure. + * + * **Details** + * + * `Result.succeed` becomes the returned success value, and `Result.fail` is + * passed to `orElse`. + * + * @see {@link filterOrElse} for using a predicate and fallback effect + * @see {@link filterMapOrFail} for failing the effect when the filter fails + * + * @category filtering * @since 4.0.0 - * @category Filtering */ export const filterMapOrElse = internal.filterMapOrElse; /** @@ -3344,7 +3611,8 @@ export const filterMapOrElse = internal.filterMapOrElse; * predicate evaluates to `false`, the effect fails with either a custom * error (if `orFailWith` is provided) or a `NoSuchElementError`. * - * @example + * **Example** (Filtering with a custom failure) + * * ```ts * import { Effect } from "effect" * @@ -3361,37 +3629,52 @@ export const filterMapOrElse = internal.filterMapOrElse; * // Result: Effect.fail("Expected even number, got 5") * ``` * + * @category filtering * @since 2.0.0 - * @category Filtering */ export const filterOrFail = internal.filterOrFail; /** - * Filters an effect with a `Filter`, failing when the filter fails. + * Filters and maps an effect with a `Filter`, failing when the filter fails. + * + * **When to use** + * + * Use when validating and transforming one effect success with a synchronous + * `Filter`, while rejected values should fail the effect. + * + * **Details** + * + * `Result.succeed` becomes the returned success value. `Result.fail` is mapped + * with `orFailWith` when provided, or fails with `NoSuchElementError`. * + * @see {@link filterMapOrElse} for continuing with a fallback effect when the filter fails + * @see {@link filterOrFail} for validating with a predicate instead of a `Filter` + * @see {@link filterMap} for filtering and mapping iterable elements + * + * @category filtering * @since 4.0.0 - * @category Filtering */ export const filterMapOrFail = internal.filterMapOrFail; // ----------------------------------------------------------------------------- // Conditional Operators // ----------------------------------------------------------------------------- /** - * Conditionally executes an effect based on a boolean condition. + * Runs an effect conditionally based on the result of an effectful boolean + * condition. * - * **Details** + * **When to use** * - * This function allows you to run an effect only if a given condition evaluates - * to `true`. If the condition is `true`, the effect is executed, and its result - * is wrapped in an `Option.some`. If the condition is `false`, the effect is - * skipped, and the result is `Option.none`. + * Use when you need an effectful check to decide whether another effect should + * run while representing the skipped case explicitly. + * + * **Details** * - * **When to Use** + * The condition effect is evaluated first. If it succeeds with `true`, the + * source effect is run and its success value is wrapped in `Option.some`. If it + * succeeds with `false`, the source effect is skipped and the result is + * `Option.none`. If the condition effect fails, that failure is preserved. * - * This function is useful for scenarios where you need to dynamically decide - * whether to execute an effect based on runtime logic, while also representing - * the skipped case explicitly. + * **Example** (Conditionally running an effect) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -3407,11 +3690,8 @@ export const filterMapOrFail = internal.filterMapOrFail; * // { _id: 'Option', _tag: 'Some', value: undefined } * ``` * - * @see {@link whenEffect} for a version that allows the condition to be an effect. - * @see {@link unless} for a version that executes the effect when the condition is `false`. - * + * @category conditional operators * @since 2.0.0 - * @category Conditional Operators */ export const when = internal.when; // ----------------------------------------------------------------------------- @@ -3421,6 +3701,11 @@ export const when = internal.when; * Handles both success and failure cases of an effect without performing side * effects. * + * **When to use** + * + * Use when you need to fold an `Effect` into a value by handling success and + * failure differently without triggering side effects. + * * **Details** * * `match` lets you define custom handlers for both success and failure @@ -3428,16 +3713,9 @@ export const when = internal.when; * to process the result if the effect succeeds, or handle the error if the * effect fails. * - * **When to Use** - * - * This is useful for structuring your code to respond differently to success or - * failure without triggering side effects. + * **Example** (Matching success and failure values) * - * @see {@link matchEffect} if you need to perform side effects in the handlers. - * - * @example * ```ts - * // Title: Handling Both Success and Failure Cases * import { Data, Effect } from "effect" * * class ExampleError extends Data.TaggedError("ExampleError")<{ readonly message: string }> {} @@ -3467,14 +3745,20 @@ export const when = internal.when; * // Output: "failure: Uh oh!" * ``` * + * @see {@link matchEffect} if you need to perform side effects in the handlers. + * @category pattern matching * @since 2.0.0 - * @category Pattern Matching */ export const match = internal.match; /** * Handles both success and failure cases of an effect without performing side * effects, with eager evaluation for resolved effects. * + * **When to use** + * + * Use when you need to handle both success and failure cases of an + * already-resolved `Effect` with optimized handling. + * * **Details** * * `matchEager` works like `match` but provides better performance for resolved @@ -3482,13 +3766,8 @@ export const match = internal.match; * the handlers immediately without fiber scheduling. For unresolved effects, * it falls back to the regular `match` behavior. * - * **When to Use** - * - * Use this when you need to handle both success and failure cases and want - * optimal performance for resolved effects. This is particularly useful in - * scenarios where you frequently work with already computed values. + * **Example** (Pattern matching eagerly when possible) * - * @example * ```ts * import { Effect } from "effect" * @@ -3503,26 +3782,25 @@ export const match = internal.match; * * @see {@link match} for the non-eager version. * @see {@link matchEffect} if you need to perform side effects in the handlers. - * - * @since 2.0.0 - * @category Pattern Matching + * @category pattern matching + * @since 4.0.0 */ export const matchEager = internal.matchEager; /** * Handles failures by matching the cause of failure. * + * **When to use** + * + * Use when you need to fold an `Effect` while the failure handler inspects the + * full `Cause`. + * * **Details** * * The `matchCause` function allows you to handle failures with access to the * full cause of the failure within a fiber. * - * **When to Use** - * - * This is useful for differentiating between different types of errors, such as - * regular failures, defects, or interruptions. You can provide specific - * handling logic for each failure type based on the cause. + * **Example** (Matching on success or failure causes) * - * @example * ```ts * import { Cause, Effect } from "effect" * @@ -3540,27 +3818,26 @@ export const matchEager = internal.matchEager; * @see {@link matchCauseEffect} if you need to perform side effects in the * handlers. * @see {@link match} if you don't need to handle the cause of the failure. - * + * @category pattern matching * @since 2.0.0 - * @category Pattern Matching */ export const matchCause = internal.matchCause; /** * Handles failures by matching the cause of failure with eager evaluation. * + * **When to use** + * + * Use when you expect an `Effect` to already be resolved and want to match the + * `Cause` without regular effect pipeline overhead. + * * **Details** * * `matchCauseEager` works like `matchCause` but provides better performance for resolved * effects by immediately applying the matching function instead of deferring it * through the effect pipeline. * - * **When to Use** - * - * This is useful when you have effects that are likely to be already resolved - * and you want to avoid the overhead of the effect pipeline. For pending effects, - * it automatically falls back to the regular `matchCause` behavior. + * **Example** (Eagerly matching already completed effects) * - * @example * ```ts * import { Effect } from "effect" * @@ -3570,23 +3847,39 @@ export const matchCause = internal.matchCause; * }) * ``` * - * @since 3.8.0 - * @category Pattern Matching + * @category pattern matching + * @since 4.0.0 */ export const matchCauseEager = internal.matchCauseEager; /** - * Eagerly handles success or failure with effectful handlers when the effect is already resolved. + * Handles success or failure eagerly with effectful handlers when the effect is already resolved. + * + * **When to use** + * + * Use when you need effectful success and cause-aware failure handlers for + * `Effect` inputs that may already be resolved. + * + * **Details** * * If the effect is an `Exit`, the matching handler runs immediately; otherwise it behaves like * {@link matchCauseEffect}. * + * @see {@link matchCauseEffect} for the non-eager effectful variant + * @see {@link matchCauseEager} for eager cause matching with pure handlers + * @see {@link matchEffect} for effectful matching on typed failures instead of full causes + * + * @category pattern matching * @since 4.0.0 - * @category Pattern Matching */ export const matchCauseEffectEager = internal.matchCauseEffectEager; /** * Handles failures with access to the cause and allows performing side effects. * + * **When to use** + * + * Use when you need to fold an `Effect` with effectful success handlers and + * `Cause`-aware failure handlers. + * * **Details** * * The `matchCauseEffect` function works similarly to {@link matchCause}, but it @@ -3596,7 +3889,8 @@ export const matchCauseEffectEager = internal.matchCauseEffectEager; * you to respond accordingly while performing side effects (like logging or * other operations). * - * @example + * **Example** (Effectfully matching on causes) + * * ```ts * import { Cause, Console, Data, Effect, Result } from "effect" * @@ -3634,30 +3928,27 @@ export const matchCauseEffectEager = internal.matchCauseEffectEager; * @see {@link matchCause} if you don't need side effects and only want to handle the result or failure. * @see {@link matchEffect} if you don't need to handle the cause of the failure. * + * @category pattern matching * @since 2.0.0 - * @category Pattern Matching */ export const matchCauseEffect = internal.matchCauseEffect; /** - * Handles both success and failure cases of an effect, allowing for additional - * side effects. + * Handles both success and failure by running effectful handlers. * - * **Details** + * **When to use** * - * The `matchEffect` function is similar to {@link match}, but it enables you to - * perform side effects in the handlers for both success and failure outcomes. + * Use when you need to handle an `Effect`'s failure or success with handlers + * that return effects. * - * **When to Use** + * **Details** * - * This is useful when you need to execute additional actions, like logging or - * notifying users, based on whether an effect succeeds or fails. + * Use `matchEffect` when either branch needs to return an `Effect`, such as + * performing logging, recovery, notification, or other effectful work. The + * returned effect succeeds or fails according to the handler that is run. * - * @see {@link match} if you don't need side effects and only want to handle the - * result or failure. + * **Example** (Matching success and failure with effectful handlers) * - * @example * ```ts - * // Title: Handling Both Success and Failure Cases with Side Effects * import { Data, Effect } from "effect" * * class ExampleError extends Data.TaggedError("ExampleError")<{ readonly message: string }> {} @@ -3696,8 +3987,10 @@ export const matchCauseEffect = internal.matchCauseEffect; * // failure: Uh oh! * ``` * + * @see {@link match} if you don't need side effects and only want to handle the + * result or failure. + * @category pattern matching * @since 2.0.0 - * @category Pattern Matching */ export const matchEffect = internal.matchEffect; // ----------------------------------------------------------------------------- @@ -3706,9 +3999,11 @@ export const matchEffect = internal.matchEffect; /** * Determines whether an effect fails. * + * **Details** + * * Defects are not converted; if the effect dies, the resulting effect dies too. * - * **Example** + * **Example** (Checking whether an effect fails) * * ```ts * import { Console, Effect } from "effect" @@ -3722,17 +4017,19 @@ export const matchEffect = internal.matchEffect; * // Output: true * ``` * + * @category condition checking * @since 2.0.0 - * @category Condition Checking */ export const isFailure = internal.isFailure; /** * Returns whether an effect completes successfully. * + * **Details** + * * Returns `false` for failures in the error channel, but defects still fail the * effect. * - * **Example** + * **Example** (Checking whether an effect succeeds) * * ```ts * import { Console, Effect } from "effect" @@ -3750,8 +4047,8 @@ export const isFailure = internal.isFailure; * // failed: false * ``` * + * @category condition checking * @since 2.0.0 - * @category Condition Checking */ export const isSuccess = internal.isSuccess; // ----------------------------------------------------------------------------- @@ -3760,13 +4057,20 @@ export const isSuccess = internal.isSuccess; /** * Returns the complete context. * + * **When to use** + * + * Use to read the complete `Context` available to the current effect. + * + * **Details** + * * This function allows you to access all services that are currently available * in the effect's environment. This can be useful for debugging, introspection, * or when you need to pass the entire context to another function. * - * @example + * **Example** (Reading the full context) + * * ```ts - * import { Console, Effect, Option, Context } from "effect" + * import { Console, Context, Effect, Option } from "effect" * * const Logger = Context.Service<{ * log: (msg: string) => void @@ -3792,20 +4096,30 @@ export const isSuccess = internal.isSuccess; * const provided = Effect.provideContext(program, context) * ``` * + * @see {@link contextWith} for deriving an effect from the complete context + * @see {@link service} for reading one service from the context + * + * @category environment * @since 2.0.0 - * @category Environment */ export const context = internal.context; /** * Transforms the current context using the provided function. * + * **When to use** + * + * Use to derive an effect from the complete `Context`. + * + * **Details** + * * This function allows you to access the complete context and perform * computations based on all available services. This is useful when you need * to conditionally execute logic based on what services are available. * - * @example + * **Example** (Deriving values from the context) + * * ```ts - * import { Console, Effect, Option, Context } from "effect" + * import { Console, Context, Effect, Option } from "effect" * * const Logger = Context.Service<{ * log: (msg: string) => void @@ -3837,8 +4151,11 @@ export const context = internal.context; * }) * ``` * + * @see {@link context} for reading the complete context as a value + * @see {@link service} for reading one service from the context + * + * @category environment * @since 2.0.0 - * @category Environment */ export const contextWith = internal.contextWith; /** @@ -3846,9 +4163,10 @@ export const contextWith = internal.contextWith; * to build the layer every time; by default, layers are shared between provide * calls. * - * @example + * **Example** (Providing dependencies with a layer) + * * ```ts - * import { Effect, Layer, Context } from "effect" + * import { Context, Effect, Layer } from "effect" * * interface Database { * readonly query: (sql: string) => Effect.Effect @@ -3871,8 +4189,8 @@ export const contextWith = internal.contextWith; * // Output: "Result for: SELECT * FROM users" * ``` * + * @category environment * @since 2.0.0 - * @category Environment */ export const provide = internalLayer.provide; /** @@ -3884,9 +4202,10 @@ export const provide = internalLayer.provide; * that contains all the required services. It removes the provided services * from the effect's requirements, making them available to the effect. * - * @example + * **Example** (Providing a complete context) + * * ```ts - * import { Effect, Context } from "effect" + * import { Context, Effect } from "effect" * * // Define service keys * const Logger = Context.Service<{ @@ -3911,16 +4230,17 @@ export const provide = internalLayer.provide; * const provided = Effect.provideContext(program, context) * ``` * - * @since 2.0.0 - * @category Environment + * @category environment + * @since 4.0.0 */ export const provideContext = internal.provideContext; /** * Accesses a service from the context. * - * @example + * **Example** (Accessing a required service) + * * ```ts - * import { Effect, Context } from "effect" + * import { Context, Effect } from "effect" * * interface Database { * readonly query: (sql: string) => Effect.Effect @@ -3934,13 +4254,18 @@ export const provideContext = internal.provideContext; * }) * ``` * + * @category context * @since 4.0.0 - * @category Context */ export const service = internal.service; /** * Optionally accesses a service from the environment. * + * **When to use** + * + * Use to read an optional dependency from the current context without making + * that dependency part of the effect's required environment. + * * **Details** * * This function attempts to access a service from the environment. If the @@ -3948,9 +4273,10 @@ export const service = internal.service; * available, it returns `None`. Unlike `service`, this function does not * require the service to be present in the environment. * - * @example + * **Example** (Accessing an optional service) + * * ```ts - * import { Effect, Option, Context } from "effect" + * import { Context, Effect, Option } from "effect" * * // Define a service key * const Logger = Context.Service<{ @@ -3969,8 +4295,8 @@ export const service = internal.service; * }) * ``` * + * @category context * @since 2.0.0 - * @category Context */ export const serviceOption = internal.serviceOption; /** @@ -3981,9 +4307,10 @@ export const serviceOption = internal.serviceOption; * This function allows you to transform the context required by an effect, * providing part of the context and leaving the rest to be fulfilled later. * - * @example + * **Example** (Updating the context before running) + * * ```ts - * import { Effect, Context } from "effect" + * import { Context, Effect } from "effect" * * // Define services * const Logger = Context.Service<{ @@ -4010,16 +4337,23 @@ export const serviceOption = internal.serviceOption; * }) * ``` * + * @category context * @since 4.0.0 - * @category Context */ export const updateContext = internal.updateContext; /** - * Updates the service with the required service entry. + * Runs an effect with a service implementation transformed by the provided + * function. + * + * **Details** + * + * The service must be available in the effect's context; `updateService` + * replaces it for the wrapped effect with the value returned by the updater. + * + * **Example** (Replacing a service for one effect) * - * @example * ```ts - * import { Console, Effect, Context } from "effect" + * import { Console, Context, Effect } from "effect" * * // Define a counter service * const Counter = Context.Service<{ count: number }>("Counter") @@ -4039,25 +4373,26 @@ export const updateContext = internal.updateContext; * // 1 * ``` * + * @category context * @since 2.0.0 - * @category Context */ export const updateService = internal.updateService; /** - * The `provideService` function is used to provide an actual - * implementation for a service in the context of an effect. + * Provides one concrete service implementation to an effect. * - * This function allows you to associate a service with its implementation so - * that it can be used in your program. You define the service (e.g., a random - * number generator), and then you use `provideService` to link that - * service to its implementation. Once the implementation is provided, the - * effect can be run successfully without further requirements. + * **When to use** * - * @see {@link provide} for providing multiple layers to an effect. + * Use to satisfy one service requirement with an already-built implementation. + * + * **Details** + * + * The service requirement identified by the `Context.Key` is removed from the + * effect requirements after the implementation is provided. + * + * **Example** (Providing a service value) * - * @example * ```ts - * import { Console, Effect, Context } from "effect" + * import { Console, Context, Effect } from "effect" * * // Define a service for configuration * const Config = Context.Service<{ @@ -4085,23 +4420,32 @@ export const updateService = internal.updateService; * // data * ``` * + * @see {@link provide} for providing multiple layers to an effect. + * @see {@link provideServiceEffect} for acquiring the service implementation effectfully. + * @see {@link provideContext} for providing a complete context. + * @category context * @since 2.0.0 - * @category Context */ export const provideService = internal.provideService; /** - * Provides the effect with the single service it requires. If the effect - * requires more than one service use `provide` instead. + * Provides one service to an effect using an effectful acquisition. + * + * **When to use** + * + * Use when the service implementation must be created by an effect and its + * acquisition failure should remain in the returned effect. + * + * **Details** + * + * `provideServiceEffect` runs the acquisition effect to produce the service + * implementation, removes that service from the wrapped effect's requirements, + * and leaves any other requirements to be provided later. Acquisition failures + * are included in the returned effect's error channel. * - * This function is similar to `provideService`, but instead of providing a - * static service implementation, it allows you to provide an effect that - * will produce the service. This is useful when the service needs to be - * acquired through an effectful computation (e.g., reading from a database, - * making an HTTP request, or allocating resources). + * **Example** (Providing a service with an effect) * - * @example * ```ts - * import { Console, Effect, Context } from "effect" + * import { Console, Context, Effect } from "effect" * * // Define a database connection service * interface DatabaseConnection { @@ -4138,8 +4482,8 @@ export const provideService = internal.provideService; * // Result for: SELECT * FROM users * ``` * + * @category context * @since 2.0.0 - * @category Context */ export const provideServiceEffect = internal.provideServiceEffect; // ----------------------------------------------------------------------------- @@ -4148,7 +4492,8 @@ export const provideServiceEffect = internal.provideServiceEffect; /** * Sets the concurrency level for parallel operations within an effect. * - * @example + * **Example** (Setting local concurrency) + * * ```ts * import { Console, Effect } from "effect" * @@ -4173,8 +4518,8 @@ export const provideServiceEffect = internal.provideServiceEffect; * // [1, 2, 3, 4, 5] * ``` * + * @category references * @since 2.0.0 - * @category References */ export const withConcurrency = internal.withConcurrency; // ----------------------------------------------------------------------------- @@ -4183,7 +4528,8 @@ export const withConcurrency = internal.withConcurrency; /** * Returns the current scope for resource management. * - * @example + * **Example** (Accessing the current scope) + * * ```ts * import { Console, Effect } from "effect" * @@ -4208,16 +4554,24 @@ export const withConcurrency = internal.withConcurrency; * // Releasing resource * ``` * + * @category resource management * @since 2.0.0 - * @category Resource Management & Finalization */ export const scope = internal.scope; /** - * Scopes all resources used in this workflow to the lifetime of the workflow, - * ensuring that their finalizers are run as soon as this workflow completes - * execution, whether by success, failure, or interruption. + * Runs an effect with a scope that closes when the effect completes. + * + * **When to use** + * + * Use to acquire scoped resources for the duration of a single workflow. + * + * **Details** + * + * Finalizers for resources acquired inside the workflow run as soon as the + * workflow completes, whether by success, failure, or interruption. + * + * **Example** (Running a scoped acquisition) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -4240,14 +4594,20 @@ export const scope = internal.scope; * // Output: "Releasing resource" * ``` * + * @category resource management * @since 2.0.0 - * @category Resource Management & Finalization */ export const scoped = internal.scoped; /** * Creates a scoped effect by providing access to the scope. * - * @example + * **When to use** + * + * Use when resource acquisition needs direct access to the scope being created, + * for example to register finalizers manually. + * + * **Example** (Working with an explicit scope) + * * ```ts * import { Console, Effect, Scope } from "effect" * @@ -4279,24 +4639,29 @@ export const scoped = internal.scoped; * // Manual finalizer * ``` * - * @since 2.0.0 - * @category Resource Management & Finalization + * @category resource management + * @since 3.11.0 */ export const scopedWith = internal.scopedWith; /** - * This function constructs a scoped resource from an `acquire` and `release` - * `Effect` value. + * Constructs a scoped resource from an acquisition effect and a release + * finalizer. + * + * **When to use** + * + * Use to acquire a scoped resource with an explicit release finalizer. + * + * **Details** * - * If the `acquire` `Effect` value successfully completes execution, then the - * `release` `Effect` value will be added to the finalizers associated with the - * scope of this `Effect` value, and it is guaranteed to be run when the scope - * is closed. + * If acquisition succeeds, the release finalizer is added to the current scope + * and is guaranteed to run when that scope closes. The finalizer receives the + * `Exit` value used to close the scope. * - * The `acquire` and `release` `Effect` values will be run uninterruptibly. - * Additionally, the `release` `Effect` value may depend on the `Exit` value - * specified when the scope is closed. + * By default, acquisition is protected by an uninterruptible region. Pass + * `{ interruptible: true }` to allow the acquisition effect to be interrupted. + * + * **Example** (Acquiring and releasing a resource) * - * @example * ```ts * import { Console, Effect, Exit } from "effect" * @@ -4333,13 +4698,22 @@ export const scopedWith = internal.scopedWith; * ) * ``` * + * @see {@link acquireDisposable} for resources that implement JavaScript disposal protocols + * @see {@link acquireUseRelease} for bracketing acquire, use, and release in one effect + * + * @category resource management * @since 2.0.0 - * @category Resource Management & Finalization */ export const acquireRelease = internal.acquireRelease; /** - * This function constructs a scoped resource from an Effect that acquires a - * disposable value. + * Acquires a scoped resource that implements JavaScript disposal protocols. + * + * **When to use** + * + * Use when you work with JavaScript `Disposable` or `AsyncDisposable` resources + * that should be closed with the surrounding scope. + * + * **Details** * * The resource is automatically disposed when the surrounding * {@link Scope} is closed, using {@link Symbol.dispose} for @@ -4347,15 +4721,15 @@ export const acquireRelease = internal.acquireRelease; * disposables. * * This is similar to {@link acquireRelease}, but uses the standard - * JavaScript disposal protocal instead of requiring an explicit release - * function. + * JavaScript disposal protocol instead of requiring an explicit release + * function. It works with JavaScript `Disposable` and `AsyncDisposable` + * resources. * - * @see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/using} + * **Example** (Acquiring a disposable resource) * - * @example * ```ts * import sqlite from "node:sqlite"; - * import { Effect } from "effect"; + * import { Effect } from "effect" * * const program = Effect.scoped( * Effect.gen(function* () { @@ -4371,15 +4745,20 @@ export const acquireRelease = internal.acquireRelease; * ) * ``` * + * @see {@link acquireRelease} for resources that need an explicit finalizer + * + * @category resource management * @since 4.0.0 - * @category Resource Management & Finalization */ export const acquireDisposable = internal.acquireDisposable; /** - * This function is used to ensure that an `Effect` value that represents the - * acquisition of a resource (for example, opening a file, launching a thread, - * etc.) will not be interrupted, and that the resource will always be released - * when the `Effect` value completes execution. + * Runs resource acquisition, usage, and release as one bracketed effect. + * + * **When to use** + * + * Use to bracket acquire, use, and release logic in one effect. + * + * **Details** * * `acquireUseRelease` does the following: * @@ -4398,7 +4777,8 @@ export const acquireDisposable = internal.acquireDisposable; * is not desired, errors produced by the `release` `Effect` value can be caught * and ignored. * - * @example + * **Example** (Using a resource with cleanup) + * * ```ts * import { Console, Effect, Exit } from "effect" * @@ -4443,20 +4823,26 @@ export const acquireDisposable = internal.acquireDisposable; * // Closing connection to db://localhost:5432 (success) * ``` * + * @see {@link acquireRelease} for scoped resources whose use happens later + * + * @category resource management * @since 2.0.0 - * @category Resource Management & Finalization */ export const acquireUseRelease = internal.acquireUseRelease; /** - * This function adds a finalizer to the scope of the calling `Effect` value. - * The finalizer is guaranteed to be run when the scope is closed, and it may - * depend on the `Exit` value that the scope is closed with. + * Adds a finalizer to the current scope. + * + * **When to use** * - * Finalizers are useful for cleanup operations that must run regardless of - * whether the effect succeeds or fails. They're commonly used for resource - * cleanup, logging, or other side effects that should always occur. + * Use to register low-level cleanup in the current scope. + * + * **Details** + * + * The finalizer runs when the surrounding scope is closed and receives the + * `Exit` value used to close the scope. + * + * **Example** (Registering scope finalizers) * - * @example * ```ts * import { Console, Effect, Exit } from "effect" * @@ -4485,8 +4871,11 @@ export const acquireUseRelease = internal.acquireUseRelease; * // operation result * ``` * + * @see {@link acquireRelease} for resource acquisition with a release finalizer + * @see {@link ensuring} for attaching a finalizer to one effect + * + * @category resource management * @since 2.0.0 - * @category Resource Management & Finalization */ export const addFinalizer = internal.addFinalizer; /** @@ -4494,13 +4883,16 @@ export const addFinalizer = internal.addFinalizer; * specified `finalizer` is guaranteed to be executed, whether this effect * succeeds, fails, or is interrupted. * + * **Details** + * * For use cases that need access to the effect's result, see `onExit`. * * Finalizers offer very powerful guarantees, but they are low-level, and * should generally not be used for releasing resources. For higher-level * logic built on `ensuring`, see the `acquireRelease` family of methods. * - * @example + * **Example** (Always running cleanup) + * * ```ts * import { Console, Effect } from "effect" * @@ -4525,17 +4917,18 @@ export const addFinalizer = internal.addFinalizer; * // 42 * ``` * + * @category resource management * @since 2.0.0 - * @category Resource Management & Finalization */ export const ensuring = internal.ensuring; /** * Runs the specified effect if this effect fails, providing the error to the * effect if it exists. The provided effect will not be interrupted. * - * @example + * **Example** (Running cleanup on failure) + * * ```ts - * import { Cause, Data, Console, Effect } from "effect" + * import { Cause, Console, Data, Effect } from "effect" * * class TaskError extends Data.TaggedError("TaskError")<{ readonly message: string }> {} * @@ -4552,15 +4945,16 @@ export const ensuring = internal.ensuring; * // TaskError: Something went wrong * ``` * + * @category resource management * @since 2.0.0 - * @category Resource Management & Finalization */ export const onError = internal.onError; /** * Runs the finalizer only when this effect fails and the `Cause` matches the * provided predicate. * - * @example + * **Example** (Running cleanup for selected failures) + * * ```ts * import { Cause, Console, Effect } from "effect" * @@ -4576,31 +4970,54 @@ export const onError = internal.onError; * ) * ``` * + * @category resource management * @since 4.0.0 - * @category Resource Management & Finalization */ export const onErrorIf = internal.onErrorIf; /** * Runs the finalizer only when this effect fails and the cause matches the provided `Filter`. * + * **When to use** + * + * Use when cleanup or diagnostics should run only for failures whose full + * `Cause` is accepted or transformed by a `Filter`, and the finalizer needs the + * filter's pass value plus the original cause. + * + * @see {@link onError} for cleanup on every failure + * @see {@link onErrorIf} for selecting failures with a boolean predicate + * @see {@link onExitFilter} for selecting from every exit instead of only failures + * + * @category resource management * @since 4.0.0 - * @category Resource Management & Finalization */ export const onErrorFilter = internal.onErrorFilter; /** - * The low level primitive that powers `onExit`. - * function is used to run a finalizer when the effect exits, regardless of the - * exit status. + * Runs an optional finalizer with the effect's `Exit` value when the effect + * completes. * - * @since 2.0.0 - * @category Resource Management & Finalization + * **When to use** + * + * Use when you are building a low-level `Effect` operator that must inspect the + * source effect's `Exit`, may skip finalization by returning `undefined`, or + * must choose whether finalization is forced into an uninterruptible region. + * + * **Details** + * + * This low-level operator preserves the source effect's result unless the + * finalizer fails. Prefer `onExit` for normal cleanup logic. + * + * @see {@link onExit} for ordinary exit-aware cleanup whose finalizer always returns an effect + * + * @category resource management + * @since 4.0.0 */ export const onExitPrimitive = internal.onExitPrimitive; /** - * Ensures that a cleanup functions runs, whether this effect succeeds, fails, - * or is interrupted. + * Ensures that a cleanup function runs whether this effect succeeds, fails, or + * is interrupted. + * + * **Example** (Observing every exit) * - * @example * ```ts * import { Console, Effect, Exit } from "effect" * @@ -4619,15 +5036,16 @@ export const onExitPrimitive = internal.onExitPrimitive; * // 42 * ``` * + * @category resource management * @since 2.0.0 - * @category Resource Management & Finalization */ export const onExit = internal.onExit; /** * Runs the cleanup effect only when the `Exit` satisfies the provided * predicate. * - * @example + * **Example** (Observing selected exits) + * * ```ts * import { Console, Effect, Exit } from "effect" * @@ -4641,15 +5059,30 @@ export const onExit = internal.onExit; * ) * ``` * + * @category resource management * @since 4.0.0 - * @category Resource Management & Finalization */ export const onExitIf = internal.onExitIf; /** * Runs the cleanup effect only when the `Exit` matches the provided `Filter`. * + * **When to use** + * + * Use when cleanup should run only for `Exit` values selected by a `Filter`, + * and the cleanup needs the extracted pass value together with the original + * `Exit`. + * + * **Details** + * + * `Result.fail` skips cleanup, and `Result.succeed` runs cleanup with the + * selected value and the original `Exit`. + * + * @see {@link onExit} for cleanup on every exit + * @see {@link onExitIf} for selecting exits with a boolean predicate + * @see {@link onErrorFilter} for selecting only failure causes + * + * @category resource management * @since 4.0.0 - * @category Resource Management & Finalization */ export const onExitFilter = internal.onExitFilter; // ----------------------------------------------------------------------------- @@ -4659,6 +5092,11 @@ export const onExitFilter = internal.onExitFilter; * Returns an effect that lazily computes a result and caches it for subsequent * evaluations. * + * **When to use** + * + * Use when you need an expensive or time-consuming operation to be evaluated + * once and reused by later callers. + * * **Details** * * This function wraps an effect and ensures that its result is computed only @@ -4666,19 +5104,8 @@ export const onExitFilter = internal.onExitFilter; * evaluations of the same effect will return the cached result without * re-executing the logic. * - * **When to Use** + * **Example** (Memoizing an effect until invalidated) * - * Use this function when you have an expensive or time-consuming operation that - * you want to avoid repeating. The first evaluation will compute the result, - * and all following evaluations will immediately return the cached value, - * improving performance and reducing unnecessary work. - * - * @see {@link cachedWithTTL} for a similar function that includes a - * time-to-live duration for the cached value. - * @see {@link cachedInvalidateWithTTL} for a similar function that includes an - * additional effect for manually invalidating the cached value. - * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -4715,14 +5142,23 @@ export const onExitFilter = internal.onExitFilter; * // result 3 * ``` * + * @see {@link cachedWithTTL} for a similar function that includes a + * time-to-live duration for the cached value. + * @see {@link cachedInvalidateWithTTL} for a similar function that includes an + * additional effect for manually invalidating the cached value. + * @category caching * @since 2.0.0 - * @category Caching */ export const cached = internal.cached; /** * Returns an effect that caches its result for a specified `Duration`, * known as "timeToLive" (TTL). * + * **When to use** + * + * Use when you need a costly effect result to be reused for a bounded duration + * before being recomputed. + * * **Details** * * This function is used to cache the result of an effect for a specified amount @@ -4735,23 +5171,8 @@ export const cached = internal.cached; * After the specified duration has passed, the cache expires, and the effect * will be recomputed upon the next evaluation. * - * **When to Use** - * - * Use this function when you have an effect that involves costly operations or - * computations, and you want to avoid repeating them within a short time frame. - * - * It's ideal for scenarios where the result of an effect doesn't change - * frequently and can be reused for a specified duration. - * - * By caching the result, you can improve efficiency and reduce unnecessary - * computations, especially in performance-critical applications. - * - * @see {@link cached} for a similar function that caches the result - * indefinitely. - * @see {@link cachedInvalidateWithTTL} for a similar function that includes an - * additional effect for manually invalidating the cached value. + * **Example** (Memoizing an effect with TTL) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -4782,14 +5203,24 @@ export const cached = internal.cached; * // result 2 * ``` * + * @see {@link cached} for a similar function that caches the result + * indefinitely. + * @see {@link cachedInvalidateWithTTL} for a similar function that includes an + * additional effect for manually invalidating the cached value. + * @category caching * @since 2.0.0 - * @category Caching */ export const cachedWithTTL = internal.cachedWithTTL; /** - * Caches an effect's result for a specified duration and allows manual + * Creates a cached effect result for a specified duration and allows manual * invalidation before expiration. * + * **When to use** + * + * Use when an effect result should be cached for a bounded time and callers + * also need a manual invalidation effect to force recomputation before + * expiration. + * * **Details** * * This function behaves similarly to {@link cachedWithTTL} by caching the @@ -4803,22 +5234,8 @@ export const cachedWithTTL = internal.cachedWithTTL; * Once the cache is invalidated, the next time the effect is evaluated, the * result will be recomputed, and the cache will be refreshed. * - * **When to Use** - * - * Use this function when you have an effect whose result needs to be cached for - * a certain period, but you also want the option to refresh the cache manually - * before the expiration time. - * - * This is useful when you need to ensure that the cached data remains valid for - * a certain period but still want to invalidate it if the underlying data - * changes or if you want to force a recomputation. - * - * @see {@link cached} for a similar function that caches the result - * indefinitely. - * @see {@link cachedWithTTL} for a similar function that caches the result for - * a specified duration but does not include an effect for manual invalidation. + * **Example** (Memoizing with TTL and invalidation) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -4852,8 +5269,12 @@ export const cachedWithTTL = internal.cachedWithTTL; * // result 2 * ``` * + * @see {@link cached} for a similar function that caches the result + * indefinitely. + * @see {@link cachedWithTTL} for a similar function that caches the result for + * a specified duration but does not include an effect for manual invalidation. + * @category caching * @since 2.0.0 - * @category Caching */ export const cachedInvalidateWithTTL = internal.cachedInvalidateWithTTL; // ----------------------------------------------------------------------------- @@ -4862,7 +5283,8 @@ export const cachedInvalidateWithTTL = internal.cachedInvalidateWithTTL; /** * Returns an effect that is immediately interrupted. * - * @example + * **Example** (Creating an interrupted effect) + * * ```ts * import { Effect } from "effect" * @@ -4875,14 +5297,15 @@ export const cachedInvalidateWithTTL = internal.cachedInvalidateWithTTL; * // Throws: InterruptedException * ``` * + * @category interruption * @since 2.0.0 - * @category Interruption */ export const interrupt = internal.interrupt; /** * Returns a new effect that allows the effect to be interruptible. * - * @example + * **Example** (Allowing interruption) + * * ```ts * import { Effect } from "effect" * @@ -4895,14 +5318,15 @@ export const interrupt = internal.interrupt; * // Later: fiber.interrupt() * ``` * + * @category interruption * @since 2.0.0 - * @category Interruption */ export const interruptible = internal.interruptible; /** * Runs the specified finalizer effect if this effect is interrupted. * - * @example + * **Example** (Running cleanup on interruption) + * * ```ts * import { Console, Effect, Fiber } from "effect" * @@ -4919,14 +5343,15 @@ export const interruptible = internal.interruptible; * // Output: Task was interrupted, cleaning up... * ``` * + * @category interruption * @since 2.0.0 - * @category Interruption */ export const onInterrupt = internal.onInterrupt; /** * Returns a new effect that disables interruption for the given effect. * - * @example + * **Example** (Preventing interruption) + * * ```ts * import { Console, Effect, Fiber } from "effect" * @@ -4943,15 +5368,16 @@ export const onInterrupt = internal.onInterrupt; * Effect.runPromise(Fiber.interrupt(fiber)) * ``` * + * @category interruption * @since 2.0.0 - * @category Interruption */ export const uninterruptible = internal.uninterruptible; /** * Disables interruption and provides a restore function to restore the * interruptible state within the effect. * - * @example + * **Example** (Restoring interruption in protected regions) + * * ```ts * import { Console, Effect } from "effect" * @@ -4973,16 +5399,16 @@ export const uninterruptible = internal.uninterruptible; * ) * ``` * + * @category interruption * @since 2.0.0 - * @category Interruption */ export const uninterruptibleMask = internal.uninterruptibleMask; /** - * This function behaves like {@link interruptible}, but it also provides a - * `restore` function. This function can be used to restore the interruptibility - * of any specific region of code. + * Runs an effect in an interruptible region while providing `restore` for + * locally restoring the previous interruptibility. + * + * **Example** (Controlling interruptibility locally) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -5004,21 +5430,40 @@ export const uninterruptibleMask = internal.uninterruptibleMask; * ) * ``` * + * @category interruption * @since 2.0.0 - * @category Interruption */ export const interruptibleMask = internal.interruptibleMask; /** * Creates an AbortSignal that is managed by the provided scope. * + * **When to use** + * + * Use to obtain a scope-managed `AbortSignal` for APIs that accept cancellation + * through a signal. + * + * **Details** + * + * Each acquisition creates a fresh `AbortController`. Closing the owning scope + * runs a finalizer that aborts the controller and the effect succeeds with the + * controller's signal. + * + * **Gotchas** + * + * The signal is aborted when its owning scope closes, so avoid keeping it for + * work that outlives that scope. + * + * @see {@link scoped} for binding resource lifetime to a scope + * + * @category interruption * @since 4.0.0 - * @category Interruption */ export const abortSignal = internal.abortSignal; /** * Repeats this effect forever (until the first error). * - * @example + * **Example** (Repeating forever) + * * ```ts * import { Console, Effect, Fiber } from "effect" * @@ -5041,13 +5486,17 @@ export const abortSignal = internal.abortSignal; * }) * ``` * + * @category repetition * @since 2.0.0 - * @category Repetition / Recursion */ export const forever = internal.forever; /** * Repeats an effect based on a specified schedule or until the first failure. * + * **When to use** + * + * Use to rerun an effect after successful executions. + * * **Details** * * This function executes an effect repeatedly according to the given schedule. @@ -5067,12 +5516,16 @@ export const forever = internal.forever; * delays, limiting recursions, or dynamically adjusting based on the outcome of * each execution. * - * @example + * **Gotchas** + * + * The source effect is always evaluated once before the schedule is stepped. + * The schedule controls additional repetitions, not the initial execution. + * + * **Example** (Repeating successful effects with a schedule) + * * ```ts * // Success Example - * import { Effect } from "effect" - * import { Schedule } from "effect" - * import { Console } from "effect" + * import { Console, Effect, Schedule } from "effect" * * const action = Console.log("success") * const policy = Schedule.addDelay(Schedule.recurs(2), () => Effect.succeed("100 millis")) @@ -5081,10 +5534,11 @@ export const forever = internal.forever; * // Effect.runPromise(program).then((n) => console.log(`repetitions: ${n}`)) * ``` * - * @example + * **Example** (Stopping repetition on failure) + * + * ```ts * // Failure Example - * import { Effect } from "effect" - * import { Schedule } from "effect" + * import { Effect, Schedule } from "effect" * * let count = 0 * @@ -5104,33 +5558,35 @@ export const forever = internal.forever; * const program = Effect.repeat(action, policy) * * // Effect.runPromiseExit(program).then(console.log) + * ``` + * + * @see {@link retry} for failure-based repetition + * @see {@link repeatOrElse} for fallback handling when repetition fails * + * @category repetition * @since 2.0.0 - * @category Repetition / Recursion */ export const repeat = internalSchedule.repeat; /** - * Repeats an effect with a schedule, handling failures using a custom handler. + * Repeats an effect according to a schedule and runs a fallback effect if + * repetition fails before the schedule completes. + * + * **When to use** + * + * Use when successful repetitions should follow a schedule, but failures from + * the repeated effect or schedule need an effectful fallback. * * **Details** * - * This function allows you to execute an effect repeatedly based on a specified - * schedule. If the effect fails at any point, a custom failure handler is - * invoked. The handler is provided with both the failure value and the output - * of the schedule at the time of failure. If the effect fails immediately, the - * schedule will never be executed and the output provided to the handler will - * be `None`. This enables advanced error recovery or alternative fallback logic - * while maintaining flexibility in how repetitions are handled. + * If the repeated effect or schedule step fails, `orElse` receives the failure + * and the latest schedule metadata when at least one schedule step has run; + * otherwise it receives `None`. If the schedule completes normally, the + * returned effect succeeds with the schedule's output. * - * For example, using a schedule with `recurs(2)` will allow for two additional - * repetitions after the initial execution, provided the effect succeeds. If a - * failure occurs during any iteration, the failure handler is invoked to handle - * the situation. + * **Example** (Recovering after repetition stops) * - * @example * ```ts - * import { Console, Effect, Schedule } from "effect" - * import * as Option from "effect/Option" + * import { Console, Effect, Option, Schedule } from "effect" * * let attempt = 0 * const task = Effect.gen(function*() { @@ -5155,25 +5611,43 @@ export const repeat = internalSchedule.repeat; * ) * ``` * + * @category repetition * @since 2.0.0 - * @category Repetition / Recursion */ export const repeatOrElse = internalSchedule.repeatOrElse; /** * Returns an array of `n` identical effects. * - * Use with `Effect.all` to run the replicated effects and collect results. + * **When to use** + * + * Use when you need an array of identical effect values without running them + * yet. + * + * **Details** + * + * This only creates the array of effects. It does not run or collect them. + * + * @see {@link all} for running the returned effects and collecting results + * @see {@link replicateEffect} for repeating an effect and collecting results in one step with concurrency and discard options * + * @category collecting * @since 2.0.0 - * @category Collecting */ export const replicate = internal.replicate; /** * Performs this effect `n` times and collects results with `Effect.all` semantics. * + * **When to use** + * + * Use when you want to run the repeated effects immediately, with optional + * concurrency control or result discarding. + * + * **Details** + * * Use `concurrency` to control parallelism and `discard: true` to ignore results. * - * @example + * **Example** (Replicating an effect) + * * ```ts * import { Console, Effect } from "effect" * @@ -5183,27 +5657,29 @@ export const replicate = internal.replicate; * }) * ``` * + * @category collecting * @since 2.0.0 - * @category Collecting */ export const replicateEffect = internal.replicateEffect; /** - * Repeats an effect based on a specified schedule. + * Runs an effect repeatedly according to a schedule and returns the schedule's + * final output. + * + * **When to use** + * + * Use to rerun a successful effect according to a `Schedule` when the schedule + * does not need a custom initial input. * * **Details** * - * This function allows you to execute an effect repeatedly according to a given - * schedule. The schedule determines the timing and number of repetitions. Each - * repetition can also depend on the decision of the schedule, providing - * flexibility for complex workflows. This function does not modify the effect's - * success or failure; it only controls its repetition. + * The schedule is first stepped with `undefined`. After each successful + * execution, the effect's success value is fed to the schedule to decide + * whether to run again. The returned effect fails if the effect or schedule + * fails, and otherwise succeeds with the schedule output when the schedule + * completes. * - * For example, you can use a schedule that recurs a specific number of times, - * adds delays between repetitions, or customizes repetition behavior based on - * external inputs. The effect runs initially and is repeated according to the - * schedule. + * **Example** (Scheduling repeated execution) * - * @example * ```ts * import { Console, Effect, Schedule } from "effect" * @@ -5229,26 +5705,24 @@ export const replicateEffect = internal.replicateEffect; * @see {@link scheduleFrom} for a variant that allows the schedule's decision * to depend on the result of this effect. * + * @category repetition * @since 2.0.0 - * @category Repetition / Recursion */ export const schedule = /*#__PURE__*/dual(2, (self, schedule) => scheduleFrom(self, undefined, schedule)); /** - * Runs an effect repeatedly according to a schedule, starting from a specified - * initial input value. + * Runs an effect repeatedly according to a schedule that is initialized with a + * specific schedule input. * * **Details** * - * This function allows you to repeatedly execute an effect based on a schedule. - * The schedule starts with the given `initial` input value, which is passed to - * the first execution. Subsequent executions of the effect are controlled by - * the schedule's rules, using the output of the previous iteration as the input - * for the next one. + * `initial` is passed to the schedule before the first execution, not to the + * effect itself. After each successful execution, the effect's success value is + * fed back into the schedule to decide whether to continue. The returned effect + * succeeds with the schedule output when the schedule completes and fails if + * the effect or schedule fails. * - * The returned effect will complete when the schedule ends or the effect fails, - * propagating the error. + * **Example** (Scheduling from an initial value) * - * @example * ```ts * import { Console, Effect, Schedule } from "effect" * @@ -5269,8 +5743,8 @@ export const schedule = /*#__PURE__*/dual(2, (self, schedule) => scheduleFrom(se * // Returns the schedule count * ``` * + * @category repetition * @since 2.0.0 - * @category Repetition / Recursion */ export const scheduleFrom = internalSchedule.scheduleFrom; // ----------------------------------------------------------------------------- @@ -5279,7 +5753,8 @@ export const scheduleFrom = internalSchedule.scheduleFrom; /** * Returns the current tracer from the context. * - * @example + * **Example** (Accessing the current tracer) + * * ```ts * import { Effect } from "effect" * @@ -5290,14 +5765,15 @@ export const scheduleFrom = internalSchedule.scheduleFrom; * }) * ``` * + * @category tracing * @since 2.0.0 - * @category Tracing */ export const tracer = internal.tracer; /** * Provides a tracer to an effect. * - * @example + * **Example** (Providing a tracer) + * * ```ts * import { Effect } from "effect" * @@ -5310,14 +5786,20 @@ export const tracer = internal.tracer; * // const traced = Effect.withTracer(program, customTracer) * ``` * + * @category tracing * @since 2.0.0 - * @category Tracing */ export const withTracer = internal.withTracer; /** - * Disable the tracer for the given Effect. + * Enables or disables tracing for spans created by the given effect. + * + * **Details** + * + * When `enabled` is `false`, spans created inside the effect are not registered + * with the current tracer and do not propagate as normal trace parents. + * + * **Example** (Enabling or disabling tracing) * - * @example * ```ts * import { Effect } from "effect" * @@ -5328,14 +5810,15 @@ export const withTracer = internal.withTracer; * ) * ``` * + * @category tracing * @since 2.0.0 - * @category Tracing */ export const withTracerEnabled = internal.withTracerEnabled; /** * Enables or disables tracer timing for the given Effect. * - * @example + * **Example** (Enabling or disabling tracing timing) + * * ```ts * import { Effect } from "effect" * @@ -5346,14 +5829,15 @@ export const withTracerEnabled = internal.withTracerEnabled; * ) * ``` * + * @category tracing * @since 2.0.0 - * @category Tracing */ export const withTracerTiming = internal.withTracerTiming; /** * Adds an annotation to each span in this effect. * - * @example + * **Example** (Annotating all spans) + * * ```ts * import { Effect } from "effect" * @@ -5373,14 +5857,15 @@ export const withTracerTiming = internal.withTracerTiming; * }) * ``` * + * @category tracing * @since 2.0.0 - * @category Tracing */ export const annotateSpans = internal.annotateSpans; /** * Adds an annotation to the current span if available. * - * @example + * **Example** (Annotating the current span) + * * ```ts * import { Effect } from "effect" * @@ -5397,14 +5882,20 @@ export const annotateSpans = internal.annotateSpans; * const traced = Effect.withSpan(program, "user-operation") * ``` * + * @category tracing * @since 2.0.0 - * @category Tracing */ export const annotateCurrentSpan = internal.annotateCurrentSpan; /** - * Returns the current span from the context. + * Returns the currently active local tracing span. + * + * **Details** + * + * The effect fails with `NoSuchElementError` when there is no active local + * `Span`. + * + * **Example** (Reading the current span) * - * @example * ```ts * import { Effect } from "effect" * @@ -5417,14 +5908,21 @@ export const annotateCurrentSpan = internal.annotateCurrentSpan; * const traced = Effect.withSpan(program, "my-span") * ``` * + * @category tracing * @since 2.0.0 - * @category Tracing */ export const currentSpan = internal.currentSpan; /** - * Returns the current parent span from the context. + * Returns the current parent span from the effect context. + * + * **Details** + * + * The effect succeeds with either a local span or external span when one is + * present, and fails with `NoSuchElementError` when no parent span is + * available. + * + * **Example** (Reading the parent span) * - * @example * ```ts * import { Effect } from "effect" * @@ -5442,14 +5940,20 @@ export const currentSpan = internal.currentSpan; * const traced = Effect.withSpan(program, "parent-span") * ``` * + * @category tracing * @since 2.0.0 - * @category Tracing */ export const currentParentSpan = internal.currentParentSpan; /** - * Returns the annotations of the current span. + * Returns the tracing span annotations currently carried in the effect context. + * + * **Details** + * + * These annotations are applied to spans created inside the context, such as + * spans created by `withSpan`, `useSpan`, or `makeSpan`. + * + * **Example** (Providing span annotations) * - * @example * ```ts * import { Effect } from "effect" * @@ -5469,18 +5973,20 @@ export const currentParentSpan = internal.currentParentSpan; * // Output: Current span annotations: { userId: "123", operation: "data-processing" } * ``` * + * @category tracing * @since 2.0.0 - * @category Tracing */ export const spanAnnotations = internal.spanAnnotations; /** - * Retrieves the span links associated with the current span. + * Returns the tracing span links currently carried in the effect context. + * + * **Details** + * + * These links are attached to spans created inside the context. Span links + * connect related spans without making one span the parent of another. * - * Span links are connections between spans that are related but not in a - * parent-child relationship. They are useful for linking spans across different - * traces or connecting spans from parallel operations. + * **Example** (Providing span links) * - * @example * ```ts * import { Effect } from "effect" * @@ -5492,18 +5998,21 @@ export const spanAnnotations = internal.spanAnnotations; * }) * ``` * + * @category tracing * @since 2.0.0 - * @category Tracing */ export const spanLinks = internal.spanLinks; /** - * For all spans in this effect, add a link with the provided span. + * Adds a link with the provided span to all spans in this effect. + * + * **Details** * * This is useful for connecting spans that are related but not in a direct * parent-child relationship. For example, you might want to link spans from * parallel operations or connect spans across different traces. * - * @example + * **Example** (Linking one span to another span) + * * ```ts * import { Effect } from "effect" * @@ -5525,7 +6034,8 @@ export const spanLinks = internal.spanLinks; * }) * ``` * - * @example + * **Example** (Linking multiple spans at once) + * * ```ts * import { Effect } from "effect" * @@ -5543,14 +6053,21 @@ export const spanLinks = internal.spanLinks; * }) * ``` * + * @category tracing * @since 2.0.0 - * @category Tracing */ export const linkSpans = internal.linkSpans; /** - * Create a new span for tracing. + * Creates a new tracing span and returns it without managing its lifetime. + * + * **Details** + * + * The span is not added to the current span stack and is not ended + * automatically. Use `withSpan`, `useSpan`, or `makeSpanScoped` when the span + * should be installed as context or closed automatically. + * + * **Example** (Creating a span manually) * - * @example * ```ts * import { Effect } from "effect" * @@ -5561,18 +6078,21 @@ export const linkSpans = internal.linkSpans; * }) * ``` * + * @category tracing * @since 2.0.0 - * @category Tracing */ export const makeSpan = internal.makeSpan; /** * Create a new span for tracing, and automatically close it when the Scope * finalizes. * + * **Details** + * * The span is not added to the current span stack, so no child spans will be * created for it. * - * @example + * **Example** (Creating a scoped standalone span) + * * ```ts * import { Effect } from "effect" * @@ -5586,18 +6106,21 @@ export const makeSpan = internal.makeSpan; * ) * ``` * + * @category tracing * @since 2.0.0 - * @category Tracing */ export const makeSpanScoped = internal.makeSpanScoped; /** * Create a new span for tracing, and automatically close it when the effect * completes. * + * **Details** + * * The span is not added to the current span stack, so no child spans will be * created for it. * - * @example + * **Example** (Running an effect with a standalone span) + * * ```ts * import { Effect } from "effect" * @@ -5611,14 +6134,15 @@ export const makeSpanScoped = internal.makeSpanScoped; * ) * ``` * + * @category tracing * @since 2.0.0 - * @category Tracing */ export const useSpan = internal.useSpan; /** - * Wraps the effect with a new span for tracing. + * Wraps the effect with a child span for tracing. + * + * **Example** (Wrapping an effect in a child span) * - * @example * ```ts * import { Effect } from "effect" * @@ -5632,16 +6156,19 @@ export const useSpan = internal.useSpan; * }) * ``` * + * @category tracing * @since 2.0.0 - * @category Tracing */ export const withSpan = internal.withSpan; /** - * Wraps the effect with a new span for tracing. + * Wraps the effect with a scoped child span for tracing. + * + * **Details** * * The span is ended when the Scope is finalized. * - * @example + * **Example** (Creating a scoped child span) + * * ```ts * import { Effect } from "effect" * @@ -5654,14 +6181,15 @@ export const withSpan = internal.withSpan; * ) * ``` * + * @category tracing * @since 2.0.0 - * @category Tracing */ export const withSpanScoped = internal.withSpanScoped; /** * Adds the provided span to the current span stack. * - * @example + * **Example** (Setting a parent span) + * * ```ts * import { Effect } from "effect" * @@ -5673,8 +6201,8 @@ export const withSpanScoped = internal.withSpanScoped; * }) * ``` * + * @category tracing * @since 2.0.0 - * @category Tracing */ export const withParentSpan = internal.withParentSpan; // ----------------------------------------------------------------------------- @@ -5683,10 +6211,12 @@ export const withParentSpan = internal.withParentSpan; /** * Executes a request using the provided resolver. * - * @since 2.0.0 - * @category Requests & Batching + * **When to use** + * + * Use when you need resolver-driven batching for a typed `Request`. + * + * **Example** (Executing a request through a resolver) * - * @example * ```ts * import { Console, Effect, Exit, Request, RequestResolver } from "effect" * @@ -5709,16 +6239,29 @@ export const withParentSpan = internal.withParentSpan; * yield* Console.log(name) * }) * ``` + * + * @see {@link requestUnsafe} for the low-level entry point when you already have a `Context` and need to enqueue outside an `Effect` + * + * @category requests & batching + * @since 2.0.0 */ export const request = internalRequest.request; /** - * Low-level entry point that registers a request with a resolver and delivers the exit value via `onExit`. - * Use this when you already have a `Context` and need to enqueue a request outside an `Effect`. + * Registers a request with a resolver and delivers the exit value via `onExit`. + * + * **When to use** + * + * Use when you already have a `Context` and need to enqueue a request outside + * an `Effect` while receiving completion through `onExit`. + * + * **Details** * * It returns a canceler that removes the pending request entry. * + * @see {@link request} for the `Effect`-returning API used for normal request execution + * + * @category requests & batching * @since 4.0.0 - * @category Requests & Batching */ export const requestUnsafe = internalRequest.requestUnsafe; // ----------------------------------------------------------------------------- @@ -5729,6 +6272,8 @@ export const requestUnsafe = internalRequest.requestUnsafe; * returning the fiber immediately, without waiting for it to begin executing * the effect. * + * **Details** + * * You can use the `forkChild` method whenever you want to execute an effect in a * new fiber, concurrently and without "blocking" the fiber executing other * effects. Using fibers can be tricky, so instead of using this method @@ -5745,7 +6290,8 @@ export const requestUnsafe = internalRequest.requestUnsafe; * fibers leak. This behavior is called "auto supervision", and if this * behavior is not desired, you may use the `forkDetach` or `forkIn` methods. * - * @example + * **Example** (Forking a child fiber) + * * ```ts * import { Effect, Fiber } from "effect" * @@ -5767,15 +6313,16 @@ export const requestUnsafe = internalRequest.requestUnsafe; * }) * ``` * + * @category supervision & fibers * @since 4.0.0 - * @category Supervision & Fibers */ export const forkChild = internal.forkChild; /** * Forks the effect in the specified scope. The fiber will be interrupted * when the scope is closed. * - * @example + * **Example** (Forking into a supplied scope) + * * ```ts * import { Effect } from "effect" * @@ -5795,14 +6342,15 @@ export const forkChild = internal.forkChild; * ) * ``` * + * @category supervision & fibers * @since 2.0.0 - * @category Supervision & Fibers */ export const forkIn = internal.forkIn; /** * Forks the fiber in a `Scope`, interrupting it when the scope is closed. * - * @example + * **Example** (Forking into the current scope) + * * ```ts * import { Effect } from "effect" * @@ -5828,8 +6376,8 @@ export const forkIn = internal.forkIn; * ) * ``` * + * @category supervision & fibers * @since 2.0.0 - * @category Supervision & Fibers */ export const forkScoped = internal.forkScoped; /** @@ -5837,7 +6385,8 @@ export const forkScoped = internal.forkScoped; * new fiber is attached to the global scope, when the fiber executing the * returned effect terminates, the forked fiber will continue running. * - * @example + * **Example** (Forking a detached fiber) + * * ```ts * import { Effect } from "effect" * @@ -5861,22 +6410,38 @@ export const forkScoped = internal.forkScoped; * }) * ``` * - * @since 2.0.0 - * @category Supervision & Fibers + * @category supervision & fibers + * @since 4.0.0 */ export const forkDetach = internal.forkDetach; /** * Waits for all child fibers forked by this effect to complete before this * effect completes. * + * **When to use** + * + * Use to let an effect start child work concurrently while still delaying its + * own completion until that child work is done. + * + * **Gotchas** + * + * Child fibers that already exist before the wrapped effect starts are not + * awaited. + * + * @see {@link forkChild} for forking child fibers that are awaited by this operator + * @see {@link forkDetach} for forking fibers outside the child scope + * @see {@link forkIn} for forking into an explicit scope + * @see {@link forkScoped} for forking fibers tied to the current scope + * + * @category supervision & fibers * @since 2.0.0 - * @category Supervision & Fibers */ export const awaitAllChildren = internal.awaitAllChildren; /** - * Access the fiber currently executing the effect. + * Accesses the fiber currently executing the effect. + * + * **Example** (Accessing the current fiber) * - * @example * ```ts * import { Console, Effect } from "effect" * @@ -5886,14 +6451,15 @@ export const awaitAllChildren = internal.awaitAllChildren; * }) * ``` * + * @category supervision & fibers * @since 4.0.0 - * @category Supervision & Fibers */ export const fiber = internal.fiber; /** - * Access the current fiber id executing the effect. + * Accesses the current fiber id executing the effect. + * + * **Example** (Accessing the current fiber id) * - * @example * ```ts * import { Effect } from "effect" * @@ -5908,30 +6474,22 @@ export const fiber = internal.fiber; * ) * ``` * - * @since 4.0.0 - * @category Supervision & Fibers + * @category supervision & fibers + * @since 2.0.0 */ export const fiberId = internal.fiberId; /** - * The foundational function for running effects, returning a "fiber" that can + * Runs an effect in the background, returning a fiber that can * be observed or interrupted. * - * **When to Use** + * **When to use** * - * `runFork` is used to run an effect in the background by creating a - * fiber. It is the base function for all other run functions. It starts a fiber - * that can be observed or interrupted. + * Use when you need to start an effect in the background and receive a fiber. * - * Unless you specifically need a `Promise` or synchronous operation, - * `runFork` is a good default choice. + * **Example** (Running an effect in the background) * - * @example * ```ts - * // Title: Running an Effect in the Background - * import { Effect } from "effect" - * import { Schedule } from "effect" - * import { Fiber } from "effect" - * import { Console } from "effect" + * import { Console, Effect, Fiber, Schedule } from "effect" * * // ┌─── Effect * // ▼ @@ -5949,16 +6507,22 @@ export const fiberId = internal.fiberId; * }, 500) * ``` * + * @category running * @since 2.0.0 - * @category Running Effects */ export const runFork = internal.runFork; /** * Runs an effect in the background with the provided services. * - * @example + * **When to use** + * + * Use when an effect still requires services, you already have a `Context`, and + * you want a background fiber. + * + * **Example** (Running with services in the background) + * * ```ts - * import { Effect, Context } from "effect" + * import { Context, Effect } from "effect" * * interface Logger { * log: (message: string) => void @@ -5979,18 +6543,26 @@ export const runFork = internal.runFork; * const fiber = Effect.runForkWith(services)(program) * ``` * + * @category running * @since 4.0.0 - * @category Running Effects */ export const runForkWith = internal.runForkWith; /** * Forks an effect with the provided services, registers `onExit` as a fiber observer, and returns an interruptor. * + * **When to use** + * + * Use when embedding an effect into callback-style code with explicit services + * and a synchronous interruptor. + * + * **Details** + * * The returned interruptor calls `fiber.interruptUnsafe`, optionally with an interruptor id. * - * @example + * **Example** (Running with services and a callback) + * * ```ts - * import { Console, Effect, Exit, Context } from "effect" + * import { Console, Context, Effect, Exit } from "effect" * * interface Logger { * log: (message: string) => Effect.Effect @@ -6020,18 +6592,21 @@ export const runForkWith = internal.runForkWith; * interrupt() * ``` * + * @category running * @since 4.0.0 - * @category Running Effects */ export const runCallbackWith = internal.runCallbackWith; /** * Runs an effect asynchronously, registering `onExit` as a fiber observer and * returning an interruptor. * + * **Details** + * * The interruptor calls `fiber.interruptUnsafe` with the optional interruptor * id. * - * @example + * **Example** (Running with a callback) + * * ```ts * import { Console, Effect, Exit } from "effect" * @@ -6058,51 +6633,59 @@ export const runCallbackWith = internal.runCallbackWith; * // interrupt() to cancel the fiber if needed * ``` * - * @since 4.0.0 - * @category Running Effects + * @category running + * @since 2.0.0 */ export const runCallback = internal.runCallback; /** * Executes an effect and returns the result as a `Promise`. * - * **When to Use** + * **When to use** * - * Use `runPromise` when you need to execute an effect and work with the + * Use when you need to execute an effect and work with the * result using `Promise` syntax, typically for compatibility with other * promise-based code. * * If the effect succeeds, the promise will resolve with the result. If the * effect fails, the promise will reject with an error. * - * @see {@link runPromiseExit} for a version that returns an `Exit` type instead of rejecting. + * **Example** (Running a successful effect as a Promise) * - * @example * ```ts - * // Title: Running a Successful Effect as a Promise * import { Effect } from "effect" * * Effect.runPromise(Effect.succeed(1)).then(console.log) * // Output: 1 * ``` * - * @example + * **Example** (Running effects as promises) + * + * ```ts * //Example: Handling a Failing Effect as a Rejected Promise * import { Effect } from "effect" * * Effect.runPromise(Effect.fail("my error")).catch(console.error) * // Output: * // (FiberFailure) Error: my error + * ``` * + * @see {@link runPromiseExit} for a version that returns an `Exit` type instead of rejecting. + * @category running * @since 2.0.0 - * @category Running Effects */ export const runPromise = internal.runPromise; /** * Executes an effect as a Promise with the provided services. * - * @example + * **When to use** + * + * Use when you already have a `Context` and need Promise interop that rejects on + * effect failure. + * + * **Example** (Running with services as a promise) + * * ```ts - * import { Effect, Context } from "effect" + * import { Context, Effect } from "effect" * * interface Config { * apiUrl: string @@ -6122,29 +6705,28 @@ export const runPromise = internal.runPromise; * Effect.runPromiseWith(context)(program).then(console.log) * ``` * + * @category running * @since 4.0.0 - * @category Running Effects */ export const runPromiseWith = internal.runPromiseWith; /** * Runs an effect and returns a `Promise` that resolves to an `Exit`, which * represents the outcome (success or failure) of the effect. * - * **When to Use** + * **When to use** * - * Use `runPromiseExit` when you need to determine if an effect succeeded + * Use when you need to determine if an effect succeeded * or failed, including any defects, and you want to work with a `Promise`. * * **Details** * - * The `Exit` type represents the result of the effect: - * - If the effect succeeds, the result is wrapped in a `Success`. - * - If it fails, the failure information is provided as a `Failure` containing - * a `Cause` type. + * The `Exit` type represents the result of the effect. Successful effects are + * wrapped in `Success`, and failed effects are wrapped in `Failure` with a + * `Cause`. + * + * **Example** (Observing promise results as Exit) * - * @example * ```ts - * // Title: Handling Results as Exit * import { Effect } from "effect" * * // Execute a successful effect and get the Exit result as a Promise @@ -6170,16 +6752,24 @@ export const runPromiseWith = internal.runPromiseWith; * // } * ``` * + * @see {@link runPromise} for a version that rejects on failure. + * + * @category running * @since 2.0.0 - * @category Running Effects */ export const runPromiseExit = internal.runPromiseExit; /** * Runs an effect and returns a Promise of Exit with provided services. * - * @example + * **When to use** + * + * Use when you already have a `Context` and need Promise interop that preserves + * success and failure as an `Exit`. + * + * **Example** (Running with services as an Exit promise) + * * ```ts - * import { Effect, Exit, Context } from "effect" + * import { Context, Effect, Exit } from "effect" * * interface Database { * query: (sql: string) => string @@ -6203,28 +6793,27 @@ export const runPromiseExit = internal.runPromiseExit; * }) * ``` * + * @category running * @since 4.0.0 - * @category Running Effects */ export const runPromiseExitWith = internal.runPromiseExitWith; /** - * Executes an effect synchronously, running it immediately and returning the - * result. + * Executes an effect synchronously and returns its success value. * - * **When to Use** + * **When to use** * - * Use `runSync` to run an effect that does not fail and does not include - * any asynchronous operations. + * Use when you need to execute an effect that is guaranteed to complete + * synchronously. * - * If the effect fails or involves asynchronous work, it will throw an error, - * and execution will stop where the failure or async operation occurs. + * **Details** * - * @see {@link runSyncExit} for a version that returns an `Exit` type instead of - * throwing an error. + * If the effect fails, dies, is interrupted, or performs asynchronous work, + * `runSync` throws a `FiberFailure` instead of returning a value. Use + * `runSyncExit` when you want the failure captured as an `Exit`. + * + * **Example** (Running a synchronous effect) * - * @example * ```ts - * // Title: Synchronous Logging * import { Effect } from "effect" * * const program = Effect.sync(() => { @@ -6239,8 +6828,9 @@ export const runPromiseExitWith = internal.runPromiseExitWith; * // Output: 1 * ``` * - * @example - * // Title: Incorrect Usage with Failing or Async Effects + * **Example** (Throwing for failed or async effects) + * + * ```ts * import { Effect } from "effect" * * try { @@ -6260,17 +6850,26 @@ export const runPromiseExitWith = internal.runPromiseExitWith; * } * // Output: * // (FiberFailure) AsyncFiberException: Fiber #0 cannot be resolved synchronously. This is caused by using runSync on an effect that performs async work + * ``` * + * @see {@link runSyncExit} for a version that returns an `Exit` type instead of + * throwing an error. + * @category running * @since 2.0.0 - * @category Running Effects */ export const runSync = internal.runSync; /** * Executes an effect synchronously with provided services. * - * @example + * **When to use** + * + * Use when you already have a `Context`, the effect is known to complete + * synchronously, and failures should throw. + * + * **Example** (Running synchronously with services) + * * ```ts - * import { Effect, Context } from "effect" + * import { Context, Effect } from "effect" * * interface MathService { * add: (a: number, b: number) => number @@ -6291,33 +6890,32 @@ export const runSync = internal.runSync; * console.log(result) // 5 * ``` * + * @category running * @since 4.0.0 - * @category Running Effects */ export const runSyncWith = internal.runSyncWith; /** - * Runs an effect synchronously and returns the result as an `Exit` type, which + * Runs an effect synchronously and captures the outcome safely as an `Exit` type, which * represents the outcome (success or failure) of the effect. * - * **When to Use** + * **When to use** * - * Use `runSyncExit` to find out whether an effect succeeded or failed, + * Use to find out whether an effect succeeded or failed, * including any defects, without dealing with asynchronous operations. * * **Details** * - * The `Exit` type represents the result of the effect: - * - If the effect succeeds, the result is wrapped in a `Success`. - * - If it fails, the failure information is provided as a `Failure` containing - * a `Cause` type. + * The `Exit` type represents the result of the effect. Successful effects are + * wrapped in `Success`, and failed effects are wrapped in `Failure` with a + * `Cause`. * * If the effect contains asynchronous operations, `runSyncExit` will * return an `Failure` with a `Die` cause, indicating that the effect cannot be * resolved synchronously. * - * @example + * **Example** (Observing synchronous results as Exit) + * * ```ts - * // Title: Handling Results as Exit * import { Effect } from "effect" * * console.log(Effect.runSyncExit(Effect.succeed(1))) @@ -6341,8 +6939,9 @@ export const runSyncWith = internal.runSyncWith; * // } * ``` * - * @example - * // Title: Asynchronous Operation Resulting in Die + * **Example** (Capturing async work as a Die cause) + * + * ```ts * import { Effect } from "effect" * * console.log(Effect.runSyncExit(Effect.promise(() => Promise.resolve(1)))) @@ -6360,17 +6959,26 @@ export const runSyncWith = internal.runSyncWith; * // } * // } * // } + * ``` * + * @see {@link runSync} for a version that throws on failure. + * + * @category running * @since 2.0.0 - * @category Running Effects */ export const runSyncExit = internal.runSyncExit; /** - * Runs an effect synchronously with provided services, returning an Exit result. + * Runs an effect synchronously with provided services, returning an Exit result safely. + * + * **When to use** + * + * Use when you already have a `Context` and need a synchronous `Exit` instead of + * throwing on failure. + * + * **Example** (Running synchronously with services as Exit) * - * @example * ```ts - * import { Effect, Exit, Context } from "effect" + * import { Context, Effect, Exit } from "effect" * * // Define a logger service * const Logger = Context.Service<{ @@ -6400,57 +7008,217 @@ export const runSyncExit = internal.runSyncExit; * // Success: 42 * ``` * + * @category running * @since 4.0.0 - * @category Running Effects */ export const runSyncExitWith = internal.runSyncExitWith; /** * Creates an Effect-returning function without tracing. * - * `Effect.fnUntraced` also acts as a `pipe` function, so you can append transforms after the body. + * **When to use** + * + * Use when you are defining a reusable Effect function whose implementation + * would otherwise be a normal function returning {@link gen}, especially when + * tracing spans or stack-frame capture are not needed. + * + * **Details** + * + * Compared to a plain function that returns {@link gen}, `Effect.fnUntraced` + * reuses the generator body instead of allocating a fresh generator closure + * around the arguments on every call. It does not record an Effect stack-frame + * boundary and does not create tracing spans. Use {@link fn} when you need + * those stack frames or spans. Additional arguments after the generator body + * act like `pipe` transforms: each transform receives the previous result and + * the original function arguments. Annotate the generator return type with + * `Effect.fn.Return` when the produced `Effect` type needs to be + * stated explicitly. + * + * **Example** (Defining untraced effect functions) * - * @example * ```ts - * import { Console, Effect } from "effect" + * import { Effect } from "effect" + * + * const f = Effect.fnUntraced(function*( + * value: string + * ) { + * return yield* Effect.succeed(value.length) + * }) + * + * // ┌─── Effect.Effect + * // ▼ + * const program = f("hello") + * ``` + * + * **Example** (Transforming the returned Effect) + * + * ```ts + * import { Effect } from "effect" + * + * const f = Effect.fnUntraced( + * function*(value: string) { + * return yield* Effect.succeed(value.length) + * }, + * (effect, value) => + * effect.pipe(Effect.map((length) => `${value}: ${length}`)) + * ) + * + * // ┌─── Effect.Effect + * // ▼ + * const program = f("hello") + * ``` + * + * **Example** (Annotating an untraced non-parametric function) + * + * ```ts + * import { Effect } from "effect" * - * const greet = Effect.fnUntraced(function* (name: string) { - * yield* Console.log(`Hello, ${name}`) - * return name.length + * const f = Effect.fnUntraced(function*( + * value: string + * ): Effect.fn.Return { + * return yield* Effect.succeed(value.length) * }) * - * Effect.runFork(greet("Ada")) + * // ┌─── Effect.Effect + * // ▼ + * const program = f("hello") + * ``` + * + * **Example** (Annotating an untraced parametric function) + * + * ```ts + * import { Effect } from "effect" + * + * const f = Effect.fnUntraced(function*( + * value: A + * ): Effect.fn.Return { + * return yield* Effect.succeed(value) + * }) + * + * // ┌─── Effect.Effect + * // ▼ + * const program = f("hello") * ``` * + * @category functions * @since 3.12.0 - * @category Function */ export const fnUntraced = internal.fnUntraced; /** - * Creates a traced function with an optional span name and `SpanOptionsNoTrace` that adds spans and stack frames, plus pipeable post-processing that receives the Effect and the original arguments. + * Creates a reusable traced function from an Effect body. + * + * **When to use** + * + * Use when you are defining a reusable Effect function whose implementation + * would otherwise be a normal function returning {@link gen}, and you want + * tracing spans or stack-frame capture. * - * Pipeable functions run after the body and can transform the resulting Effect. + * **Details** + * + * Compared to a plain function that returns {@link gen}, `Effect.fn` reuses the + * generator body instead of allocating a fresh generator closure around the + * arguments on every call. Call `Effect.fn(body, ...)` for a generic + * stack-frame boundary without creating a span. Call + * `Effect.fn("operationName", options?)(body, ...)` when that boundary should + * have a readable operation name and the returned `Effect` should create a + * tracing span when run. {@link SpanOptionsNoTrace} configures span metadata + * such as attributes, links, parent or root selection, kind, sampling, and log + * level. Additional arguments after the generator body act like `pipe` + * transforms: each transform receives the previous result and the original + * function arguments. When those transforms return an `Effect`, the returned + * effect includes stack-frame metadata and, for the named form, a tracing span. + * Generator bodies may declare a `this` parameter; pass `{ self }` before the + * body to bind `this` when the function is created. + * + * **Example** (Defining traced effect functions) * - * @example * ```ts - * import { Console, Effect } from "effect" + * import { Effect } from "effect" + * + * const f = Effect.fn("calculateLength")(function*(value: string) { + * return yield* Effect.succeed(value.length) + * }) + * + * // ┌─── Effect.Effect + * // ▼ + * const program = f("hello") + * ``` + * + * **Example** (Transforming the returned Effect) + * + * ```ts + * import { Effect } from "effect" * - * // Create a named span and post-process the returned Effect. - * const greet = Effect.fn("greet")( - * function*(name: string) { - * yield* Console.log(`Hello, ${name}`) - * return name.length + * const f = Effect.fn("formatLength")( + * function*(value: string) { + * return yield* Effect.succeed(value.length) * }, - * Effect.map((length) => length + 1) + * (effect, value) => + * effect.pipe(Effect.map((length) => `${value}: ${length}`)) * ) * - * const program = Effect.gen(function*() { - * const result = yield* greet("Ada") - * yield* Console.log(`Length: ${result}`) + * // ┌─── Effect.Effect + * // ▼ + * const program = f("hello") + * ``` + * + * **Example** (Binding this) + * + * ```ts + * import { Effect } from "effect" + * + * class Counter { + * count = 0 + * + * increment = Effect.fn("Counter.increment")( + * { self: this }, + * function*(this: Counter, by: number) { + * this.count += by + * return yield* Effect.succeed(this.count) + * } + * ) + * } + * + * const counter = new Counter() + * + * // ┌─── Effect.Effect + * // ▼ + * const program = counter.increment(1) + * ``` + * + * **Example** (Annotating a traced non-parametric function) + * + * ```ts + * import { Effect } from "effect" + * + * const f = Effect.fn("calculateLength")(function*( + * value: string + * ): Effect.fn.Return { + * return yield* Effect.succeed(value.length) + * }) + * + * // ┌─── Effect.Effect + * // ▼ + * const program = f("hello") + * ``` + * + * **Example** (Annotating a traced parametric function) + * + * ```ts + * import { Effect } from "effect" + * + * const f = Effect.fn("succeed")(function*( + * value: A + * ): Effect.fn.Return { + * return yield* Effect.succeed(value) * }) + * + * // ┌─── Effect.Effect + * // ▼ + * const program = f("hello") * ``` * - * @since 3.12.0 - * @category Function + * @category functions + * @since 3.11.0 */ export const fn = internal.fn; // ======================================================================== @@ -6460,7 +7228,8 @@ export const fn = internal.fn; * Retrieves the `Clock` service from the context and provides it to the * specified effectful function. * - * @example + * **Example** (Accessing the Clock service) + * * ```ts * import { Console, Effect } from "effect" * @@ -6476,8 +7245,8 @@ export const fn = internal.fn; * // Current time is: 1735484929744 * ``` * + * @category clock * @since 2.0.0 - * @category Clock */ export const clockWith = internal.clockWith; // ======================================================================== @@ -6486,10 +7255,13 @@ export const clockWith = internal.clockWith; /** * Creates a logger function that logs at the specified level. * + * **Details** + * * If no level is provided, the logger uses the fiber's current log level and * extracts any `Cause` values from the message list. * - * @example + * **Example** (Logging at a dynamic level) + * * ```ts * import { Effect } from "effect" * @@ -6500,14 +7272,15 @@ export const clockWith = internal.clockWith; * }) * ``` * + * @category logging * @since 2.0.0 - * @category Logging */ export const logWithLevel = internal.logWithLevel; /** * Logs one or more messages using the default log level. * - * @example + * **Example** (Logging at the default level) + * * ```ts * import { Effect } from "effect" * @@ -6527,14 +7300,15 @@ export const logWithLevel = internal.logWithLevel; * // 4 * ``` * + * @category logging * @since 2.0.0 - * @category Logging */ export const log = /*#__PURE__*/internal.logWithLevel(); /** * Logs one or more messages at the FATAL level. * - * @example + * **Example** (Logging fatal messages) + * * ```ts * import { Effect } from "effect" * @@ -6555,14 +7329,15 @@ export const log = /*#__PURE__*/internal.logWithLevel(); * // timestamp=2023-... level=FATAL message="System shutting down" * ``` * + * @category logging * @since 2.0.0 - * @category Logging */ export const logFatal = /*#__PURE__*/internal.logWithLevel("Fatal"); /** * Logs one or more messages at the WARNING level. * - * @example + * **Example** (Logging warnings) + * * ```ts * import { Effect } from "effect" * @@ -6584,14 +7359,15 @@ export const logFatal = /*#__PURE__*/internal.logWithLevel("Fatal"); * // timestamp=2023-... level=WARN message="Using deprecated API endpoint" * ``` * + * @category logging * @since 2.0.0 - * @category Logging */ export const logWarning = /*#__PURE__*/internal.logWithLevel("Warn"); /** * Logs one or more messages at the ERROR level. * - * @example + * **Example** (Logging errors) + * * ```ts * import { Effect } from "effect" * @@ -6616,14 +7392,15 @@ export const logWarning = /*#__PURE__*/internal.logWithLevel("Warn"); * // timestamp=2023-... level=ERROR message="Caught error: Something went wrong" * ``` * + * @category logging * @since 2.0.0 - * @category Logging */ export const logError = /*#__PURE__*/internal.logWithLevel("Error"); /** * Logs one or more messages at the INFO level. * - * @example + * **Example** (Logging information) + * * ```ts * import { Effect } from "effect" * @@ -6643,14 +7420,15 @@ export const logError = /*#__PURE__*/internal.logWithLevel("Error"); * // timestamp=2023-... level=INFO message="Application version: 1.2.3" * ``` * + * @category logging * @since 2.0.0 - * @category Logging */ export const logInfo = /*#__PURE__*/internal.logWithLevel("Info"); /** * Logs one or more messages at the DEBUG level. * - * @example + * **Example** (Logging debug messages) + * * ```ts * import { Effect } from "effect" * @@ -6671,14 +7449,15 @@ export const logInfo = /*#__PURE__*/internal.logWithLevel("Info"); * // timestamp=2023-... level=DEBUG message="Variable state: x=10 y=20 z=30" * ``` * + * @category logging * @since 2.0.0 - * @category Logging */ export const logDebug = /*#__PURE__*/internal.logWithLevel("Debug"); /** * Logs one or more messages at the TRACE level. * - * @example + * **Example** (Logging trace messages) + * * ```ts * import { Effect } from "effect" * @@ -6702,14 +7481,15 @@ export const logDebug = /*#__PURE__*/internal.logWithLevel("Debug"); * // timestamp=2023-... level=TRACE message="Exiting function processData" * ``` * + * @category logging * @since 2.0.0 - * @category Logging */ export const logTrace = /*#__PURE__*/internal.logWithLevel("Trace"); /** * Adds a logger to the set of loggers which will output logs for this effect. * - * @example + * **Example** (Adding a logger to an effect) + * * ```ts * import { Effect, Logger } from "effect" * @@ -6730,14 +7510,15 @@ export const logTrace = /*#__PURE__*/internal.logWithLevel("Trace"); * // Output includes both default and custom log outputs * ``` * - * @since 2.0.0 - * @category Logging + * @category logging + * @since 4.0.0 */ export const withLogger = /*#__PURE__*/dual(2, (effect, logger) => internal.updateService(effect, internal.CurrentLoggers, loggers => new Set([...loggers, logger]))); /** * Adds an annotation to each log line in this effect. * - * @example + * **Example** (Adding log annotations) + * * ```ts * import { Effect } from "effect" * @@ -6760,8 +7541,8 @@ export const withLogger = /*#__PURE__*/dual(2, (effect, logger) => internal.upda * // All log messages will include the userId and operation annotations * ``` * + * @category logging * @since 2.0.0 - * @category Logging */ export const annotateLogs = /*#__PURE__*/dual(args => isEffect(args[0]), (effect, ...args) => internal.updateService(effect, CurrentLogAnnotations, annotations => { const newAnnotations = { @@ -6777,11 +7558,18 @@ export const annotateLogs = /*#__PURE__*/dual(args => isEffect(args[0]), (effect /** * Adds log annotations to the current scope. * + * **When to use** + * + * Use to attach log annotations that last until the current scope closes. + * + * **Details** + * * This differs from `annotateLogs`, which only annotates a specific effect. * `annotateLogsScoped` updates annotations for the entire current `Scope` and * restores the previous annotations when the scope closes. * - * @example + * **Example** (Adding scoped log annotations) + * * ```ts * import { Effect } from "effect" * @@ -6796,14 +7584,17 @@ export const annotateLogs = /*#__PURE__*/dual(args => isEffect(args[0]), (effect * Effect.runPromise(program) * ``` * - * @since 4.0.0 - * @category Logging + * @see {@link annotateLogs} for annotating one effect + * + * @category logging + * @since 3.1.0 */ export const annotateLogsScoped = internal.annotateLogsScoped; /** * Adds a span to each log line in this effect. * - * @example + * **Example** (Adding a log span) + * * ```ts * import { Effect } from "effect" * @@ -6827,8 +7618,8 @@ export const annotateLogsScoped = internal.annotateLogsScoped; * // All log messages will include span information showing the nested operation context * ``` * + * @category logging * @since 2.0.0 - * @category Logging */ export const withLogSpan = /*#__PURE__*/dual(2, (effect, label) => internal.flatMap(internal.currentTimeMillis, now => internal.updateService(effect, CurrentLogSpans, spans => { const span = [label, now]; @@ -6840,10 +7631,13 @@ export const withLogSpan = /*#__PURE__*/dual(2, (effect, label) => internal.flat /** * Updates the `Metric` every time the `Effect` is executed. * + * **Details** + * * Also accepts an optional function which can be used to map the `Exit` value * of the `Effect` into a valid `Input` for the `Metric`. * - * @example + * **Example** (Incrementing a metric for each execution) + * * ```ts * import { Effect, Metric } from "effect" * @@ -6862,7 +7656,8 @@ export const withLogSpan = /*#__PURE__*/dual(2, (effect, label) => internal.flat * ) * ``` * - * @example + * **Example** (Mapping exits before updating a metric) + * * ```ts * import { Effect, Exit, Metric } from "effect" * @@ -6882,8 +7677,8 @@ export const withLogSpan = /*#__PURE__*/dual(2, (effect, label) => internal.flat * ) * ``` * + * @category tracking * @since 4.0.0 - * @category Tracking */ export const track = /*#__PURE__*/dual(args => isEffect(args[0]), (self, metric, f) => onExit(self, exit => { const input = f === undefined ? exit : internalCall(() => f(exit)); @@ -6893,10 +7688,13 @@ export const track = /*#__PURE__*/dual(args => isEffect(args[0]), (self, metric, * Updates the provided `Metric` every time the wrapped `Effect` succeeds with * a value. * + * **Details** + * * Also accepts an optional function which can be used to map the success value * of the `Effect` into a valid `Input` for the `Metric`. * - * @example + * **Example** (Counting successful results) + * * ```ts * import { Effect, Metric } from "effect" * @@ -6914,7 +7712,8 @@ export const track = /*#__PURE__*/dual(args => isEffect(args[0]), (self, metric, * ) * ``` * - * @example + * **Example** (Mapping successes before tracking) + * * ```ts * import { Effect, Metric } from "effect" * @@ -6931,8 +7730,8 @@ export const track = /*#__PURE__*/dual(args => isEffect(args[0]), (self, metric, * ) * ``` * + * @category tracking * @since 4.0.0 - * @category Tracking */ export const trackSuccesses = /*#__PURE__*/dual(args => isEffect(args[0]), (self, metric, f) => tap(self, value => { const input = f === undefined ? value : f(value); @@ -6942,10 +7741,13 @@ export const trackSuccesses = /*#__PURE__*/dual(args => isEffect(args[0]), (self * Updates the provided `Metric` every time the wrapped `Effect` fails with an * **expected** error. * + * **Details** + * * Also accepts an optional function which can be used to map the error value * of the `Effect` into a valid `Input` for the `Metric`. * - * @example + * **Example** (Counting expected failures) + * * ```ts * import { Effect, Metric } from "effect" * @@ -6963,7 +7765,8 @@ export const trackSuccesses = /*#__PURE__*/dual(args => isEffect(args[0]), (self * ) * ``` * - * @example + * **Example** (Mapping errors before tracking) + * * ```ts * import { Data, Effect, Metric } from "effect" * @@ -6982,8 +7785,8 @@ export const trackSuccesses = /*#__PURE__*/dual(args => isEffect(args[0]), (self * ) * ``` * + * @category tracking * @since 4.0.0 - * @category Tracking */ export const trackErrors = /*#__PURE__*/dual(args => isEffect(args[0]), (self, metric, f) => tapError(self, error => { const input = f === undefined ? error : internalCall(() => f(error)); @@ -6993,10 +7796,13 @@ export const trackErrors = /*#__PURE__*/dual(args => isEffect(args[0]), (self, m * Updates the provided `Metric` every time the wrapped `Effect` fails with an * **unexpected** error (i.e. a defect). * + * **Details** + * * Also accepts an optional function which can be used to map the defect value * of the `Effect` into a valid `Input` for the `Metric`. * - * @example + * **Example** (Counting defects) + * * ```ts * import { Effect, Metric } from "effect" * @@ -7014,7 +7820,8 @@ export const trackErrors = /*#__PURE__*/dual(args => isEffect(args[0]), (self, m * ) * ``` * - * @example + * **Example** (Mapping defects before tracking) + * * ```ts * import { Effect, Metric } from "effect" * @@ -7034,8 +7841,8 @@ export const trackErrors = /*#__PURE__*/dual(args => isEffect(args[0]), (self, m * ) * ``` * + * @category tracking * @since 4.0.0 - * @category Tracking */ export const trackDefects = /*#__PURE__*/dual(args => isEffect(args[0]), (self, metric, f) => tapDefect(self, defect => { const input = f === undefined ? defect : internalCall(() => f(defect)); @@ -7045,11 +7852,14 @@ export const trackDefects = /*#__PURE__*/dual(args => isEffect(args[0]), (self, * Updates the provided `Metric` with the `Duration` of time (in nanoseconds) * that the wrapped `Effect` took to complete. * + * **Details** + * * Also accepts an optional function which can be used to map the `Duration` * that the wrapped `Effect` took to complete into a valid `Input` for the * `Metric`. * - * @example + * **Example** (Recording execution duration) + * * ```ts * import { Effect, Metric } from "effect" * @@ -7065,7 +7875,8 @@ export const trackDefects = /*#__PURE__*/dual(args => isEffect(args[0]), (self, * ) * ``` * - * @example + * **Example** (Mapping duration before tracking) + * * ```ts * import { Duration, Effect, Metric } from "effect" * @@ -7082,8 +7893,8 @@ export const trackDefects = /*#__PURE__*/dual(args => isEffect(args[0]), (self, * ) * ``` * + * @category tracking * @since 4.0.0 - * @category Tracking */ export const trackDuration = /*#__PURE__*/dual(args => isEffect(args[0]), (self, metric, f) => clockWith(clock => { const startTime = clock.currentTimeNanosUnsafe(); @@ -7098,12 +7909,15 @@ export const trackDuration = /*#__PURE__*/dual(args => isEffect(args[0]), (self, // Transactions // ----------------------------------------------------------------------------- /** - * Service that holds the current transaction state, it includes + * Service that holds the current transaction state. + * + * **Details** + * + * It includes a journal that stores non-committed changes to `TxRef` values and + * a retry flag that records whether the transaction should be retried. * - * - a journal that stores any non committed change to TxRef values - * - a retry flag to know if the transaction should be retried + * **Example** (Building transactions) * - * @example * ```ts * import { Effect } from "effect" * @@ -7115,29 +7929,29 @@ export const trackDuration = /*#__PURE__*/dual(args => isEffect(args[0]), (self, * }) * ``` * + * @category transactions * @since 4.0.0 - * @category Transactions */ export class Transaction extends /*#__PURE__*/Context.Service()("effect/Effect/Transaction") {} /** * Defines a transaction boundary. Transactions are "all or nothing" with respect to changes * made to transactional values (i.e. TxRef) that occur within the transaction body. * + * **Details** + * * If called inside an active transaction, `tx` composes with the current transaction and reuses * its journal and retry state instead of creating a nested boundary. * - * In Effect transactions are optimistic with retry, that means transactions are retried when: - * - * - the body of the transaction explicitely calls to `Effect.txRetry` and any of the - * accessed transactional values changes. - * - * - any of the accessed transactional values change during the execution of the transaction - * due to a different transaction committing before the current. + * Effect transactions are optimistic with retry. A transaction is retried when + * its body explicitly calls `Effect.txRetry` and any accessed transactional + * value changes, or when any accessed transactional value changes because a + * different transaction commits before the current one. * * The outermost `tx` call creates the transaction boundary and commits or rolls back the full * composed transaction. * - * @example + * **Example** (Running a transaction) + * * ```ts * import { Effect, TxRef } from "effect" * @@ -7158,8 +7972,8 @@ export class Transaction extends /*#__PURE__*/Context.Service()("effect/Effect/T * }) * ``` * + * @category transactions * @since 4.0.0 - * @category Transactions */ export const tx = effect => withFiber(fiber => { if (fiber.context.mapUnsafe.has(Transaction.key)) { @@ -7238,14 +8052,13 @@ function clearTransaction(state) { state.journal.clear(); } /** - * Signals that the current transaction needs to be retried. + * Retries the current transaction by signaling that it must be retried. * - * NOTE: the transaction retries on any change to transactional values (i.e. TxRef) accessed in its body. + * **Details** * - * @since 4.0.0 - * @category Transactions + * NOTE: the transaction retries on any change to transactional values (i.e. TxRef) accessed in its body. * - * @example + * **Example** (Retrying transactions) * * ```ts * import { Effect, TxRef } from "effect" @@ -7273,15 +8086,28 @@ function clearTransaction(state) { * * Effect.runPromise(program).catch(console.error) * ``` + * + * @category transactions + * @since 4.0.0 */ -export const txRetry = /*#__PURE__*/flatMap(/*#__PURE__*/Transaction.asEffect(), state => { +export const txRetry = /*#__PURE__*/flatMap(Transaction, state => { state.retry = true; return interrupt; }); /** - * Converts a callback-based function to a function that returns an `Effect`. + * Converts an error-first callback API into a function that returns an + * `Effect`. + * + * **Details** + * + * The original function is called with the supplied arguments plus a final + * callback. A non-null callback error fails the returned effect, while a + * successful callback value becomes the effect success. Use `onError` to map + * callback errors and `onSyncError` to turn synchronous throws into typed + * failures; otherwise synchronous throws become defects. + * + * **Example** (Converting callbacks to effects) * - * @example Basic Usage * ```ts * import { Effect } from "effect" * import * as fs from "fs" @@ -7296,7 +8122,8 @@ export const txRetry = /*#__PURE__*/flatMap(/*#__PURE__*/Transaction.asEffect(), * // Output: contents of package.json * ``` * - * @example Custom Error Handling + * **Example** (Mapping callback errors to typed failures) + * * ```ts * import { Effect } from "effect" * import * as fs from "fs" @@ -7312,8 +8139,8 @@ export const txRetry = /*#__PURE__*/flatMap(/*#__PURE__*/Transaction.asEffect(), * // Output: Exit.failure with custom error message * ``` * + * @category effectify * @since 4.0.0 - * @category Effectify */ export const effectify = (fn, onError, onSyncError) => (...args) => callback(resume => { try { @@ -7334,10 +8161,13 @@ export const effectify = (fn, onError, onSyncError) => (...args) => callback(res /** * Ensures that an effect's success type extends a given type `A`. * - * This function provides compile-time type checking to ensure that the success - * value of an effect conforms to a specific type constraint. + * **Details** + * + * This helper is checked at compile time and does not change the effect's + * runtime behavior. + * + * **Example** (Constraining the success type) * - * @example * ```ts * import { Effect } from "effect" * @@ -7353,17 +8183,20 @@ export const effectify = (fn, onError, onSyncError) => (...args) => callback(res * // Type 'string' is not assignable to type 'number' * ``` * + * @category utility types * @since 4.0.0 - * @category Type Constraints */ export const satisfiesSuccessType = () => effect => effect; /** * Ensures that an effect's error type extends a given type `E`. * - * This function provides compile-time type checking to ensure that the error - * type of an effect conforms to a specific type constraint. + * **Details** + * + * This helper is checked at compile time and does not change the effect's + * runtime behavior. + * + * **Example** (Constraining the error type) * - * @example * ```ts * import { Data, Effect } from "effect" * @@ -7381,17 +8214,20 @@ export const satisfiesSuccessType = () => effect => effect; * // Type 'string' is not assignable to type 'ValidationError' * ``` * + * @category utility types * @since 4.0.0 - * @category Type Constraints */ export const satisfiesErrorType = () => effect => effect; /** * Ensures that an effect's requirements type extends a given type `R`. * - * This function provides compile-time type checking to ensure that the - * requirements (context) type of an effect conforms to a specific type constraint. + * **Details** + * + * This helper is checked at compile time and does not change the effect's + * runtime behavior. + * + * **Example** (Constraining the services type) * - * @example * ```ts * import { Effect } from "effect" * @@ -7407,27 +8243,25 @@ export const satisfiesErrorType = () => effect => effect; * // const constrainedInvalid = satisfiesStringServices(invalidEffect) * ``` * + * @category utility types * @since 4.0.0 - * @category Type Constraints */ export const satisfiesServicesType = () => effect => effect; /** - * An optimized version of `map` that checks if an effect is already resolved - * and applies the mapping function eagerly when possible. + * Applies `map` eagerly when an effect is already resolved. + * + * **When to use** * - * **When to Use** + * Use when an already-resolved effect should apply a success transformation + * immediately while pending effects still use regular mapping. * - * `mapEager` provides better performance for effects that are already resolved - * by applying the transformation immediately instead of deferring it through - * the effect pipeline. + * **Details** * - * **Behavior** + * Success effects apply the mapping function immediately. Failure effects pass + * through unchanged, and pending effects fall back to regular `map` behavior. * - * - For **Success effects**: Applies the mapping function immediately to the value - * - For **Failure effects**: Returns the failure as-is without applying the mapping - * - For **Pending effects**: Falls back to the regular `map` behavior + * **Example** (Mapping already completed effects) * - * @example * ```ts * import { Effect } from "effect" * @@ -7440,27 +8274,27 @@ export const satisfiesServicesType = () => effect => effect; * const mappedPending = Effect.mapEager(pending, (n) => n * 2) // Uses regular map * ``` * + * @category eager * @since 4.0.0 - * @category Eager */ export const mapEager = internal.mapEager; /** - * An optimized version of `mapError` that checks if an effect is already resolved - * and applies the error mapping function eagerly when possible. + * Applies `mapError` eagerly when an effect is already resolved. + * + * **When to use** * - * **When to Use** + * Use when an already-resolved failed effect should apply an error + * transformation immediately while pending effects still use regular error + * mapping. * - * `mapErrorEager` provides better performance for effects that are already resolved - * by applying the error transformation immediately instead of deferring it through - * the effect pipeline. + * **Details** * - * **Behavior** + * Success effects pass through unchanged because there is no error to + * transform. Failure effects apply the mapping function immediately, and + * pending effects fall back to regular `mapError` behavior. * - * - For **Success effects**: Returns the success as-is (no error to transform) - * - For **Failure effects**: Applies the mapping function immediately to the error - * - For **Pending effects**: Falls back to the regular `mapError` behavior + * **Example** (Mapping errors eagerly when possible) * - * @example * ```ts * import { Effect } from "effect" * @@ -7476,27 +8310,26 @@ export const mapEager = internal.mapEager; * ) // Uses regular mapError * ``` * + * @category eager * @since 4.0.0 - * @category Eager */ export const mapErrorEager = internal.mapErrorEager; /** - * An optimized version of `mapBoth` that checks if an effect is already resolved - * and applies the appropriate mapping function eagerly when possible. + * Applies `mapBoth` eagerly when an effect is already resolved. + * + * **When to use** * - * **When to Use** + * Use when an already-resolved effect should transform either success or + * failure immediately while pending effects still use regular channel mapping. * - * `mapBothEager` provides better performance for effects that are already resolved - * by applying the transformation immediately instead of deferring it through - * the effect pipeline. + * **Details** * - * **Behavior** + * Success effects apply `onSuccess` immediately, and failure effects apply + * `onFailure` immediately. Pending effects fall back to regular `mapBoth` + * behavior. * - * - For **Success effects**: Applies the `onSuccess` function immediately to the value - * - For **Failure effects**: Applies the `onFailure` function immediately to the error - * - For **Pending effects**: Falls back to the regular `mapBoth` behavior + * **Example** (Mapping both channels eagerly when possible) * - * @example * ```ts * import { Effect } from "effect" * @@ -7514,27 +8347,26 @@ export const mapErrorEager = internal.mapErrorEager; * }) // onFailure applied eagerly * ``` * + * @category eager * @since 4.0.0 - * @category Eager */ export const mapBothEager = internal.mapBothEager; /** - * An optimized version of `flatMap` that checks if an effect is already resolved - * and applies the flatMap function eagerly when possible. + * Applies `flatMap` eagerly when an effect is already resolved. + * + * **When to use** * - * **When to Use** + * Use when an already-resolved successful effect should bind immediately to the + * next effect while pending effects still use regular flat mapping. * - * `flatMapEager` provides better performance for effects that are already resolved - * by applying the transformation immediately instead of deferring it through - * the effect pipeline. + * **Details** * - * **Behavior** + * Success effects apply the flatMap function immediately. Failure effects pass + * through unchanged, and pending effects fall back to regular `flatMap` + * behavior. * - * - For **Success effects**: Applies the flatMap function immediately to the value - * - For **Failure effects**: Returns the failure as-is without applying the flatMap - * - For **Pending effects**: Falls back to the regular `flatMap` behavior + * **Example** (Flat mapping eagerly when possible) * - * @example * ```ts * import { Effect } from "effect" * @@ -7550,27 +8382,26 @@ export const mapBothEager = internal.mapBothEager; * ) // Uses regular flatMap * ``` * + * @category eager * @since 4.0.0 - * @category Eager */ export const flatMapEager = internal.flatMapEager; /** - * An optimized version of `catch` that checks if an effect is already resolved - * and applies the catch function eagerly when possible. + * Applies `catch` eagerly when an effect is already resolved. + * + * **When to use** * - * **When to Use** + * Use when an already-resolved failed effect should recover immediately while + * pending effects still use regular error recovery. * - * `catchEager` provides better performance for effects that are already resolved - * by applying the error recovery immediately instead of deferring it through - * the effect pipeline. + * **Details** * - * **Behavior** + * Success effects pass through unchanged because there is no error to catch. + * Failure effects apply the catch function immediately, and pending effects + * fall back to regular `catch` behavior. * - * - For **Success effects**: Returns the success as-is (no error to catch) - * - For **Failure effects**: Applies the catch function immediately to the error - * - For **Pending effects**: Falls back to the regular `catch` behavior + * **Example** (Catching failures eagerly when possible) * - * @example * ```ts * import { Effect } from "effect" * @@ -7596,17 +8427,20 @@ export const flatMapEager = internal.flatMapEager; * ) // Uses regular catch * ``` * + * @category eager * @since 4.0.0 - * @category Eager */ export const catchEager = internal.catchEager; /** * Creates untraced function effects with eager evaluation optimization. * + * **Details** + * * Executes generator functions eagerly when all yielded effects are synchronous, * stopping at the first async effect and deferring to normal execution. * - * @example + * **Example** (Defining eager untraced effect functions) + * * ```ts * import { Effect } from "effect" * @@ -7619,8 +8453,8 @@ export const catchEager = internal.catchEager; * const effect = computation() // Executed immediately if all effects are sync * ``` * + * @category eager * @since 4.0.0 - * @category Eager */ export const fnUntracedEager = internal.fnUntracedEager; //# sourceMappingURL=Effect.js.map \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Effect.js.map b/.opencode/node_modules/effect/dist/Effect.js.map index 4aa696c348637cd2efd04804eadb3e4606227094..8d921331a7b1c865be432b6ab822c376559fc611 100644 --- a/.opencode/node_modules/effect/dist/Effect.js.map +++ b/.opencode/node_modules/effect/dist/Effect.js.map @@ -1 +1 @@ -{"version":3,"file":"Effect.js","names":["Context","Duration","Exit","constant","dual","core","internal","internalExecutionPlan","internalLayer","internalRequest","internalSchedule","Metric","CurrentLogAnnotations","CurrentLogSpans","internalCall","SingleShotGen","TypeId","EffectTypeId","YieldableClass","Symbol","iterator","isEffect","all","partition","validate","findFirst","findFirstFilter","forEach","whileLoop","promise","tryPromise","succeed","succeedNone","succeedSome","suspend","sync","void_","void","undefined_","undefined","callback","never","Do","bindTo","let_","let","bind","gen","fail","failSync","failCause","failCauseSync","die","try_","try","yieldNow","yieldNowWith","withFiber","fromResult","fromOption","fromNullishOr","fromYieldable","flatMap","flatten","andThen","tap","result","option","exit","map","as","asSome","asVoid","flip","zip","zipWith","catch_","catch","catchTag","catchTags","catchReason","catchReasons","unwrapReason","catchCause","catchDefect","catchIf","catchFilter","catchNoSuchElement","catchCauseIf","catchCauseFilter","mapError","mapBoth","orDie","tapError","tapErrorTag","tapCause","tapCauseIf","tapCauseFilter","tapDefect","eventually","retry","retryOrElse","sandbox","ignore","ignoreCause","withExecutionPlan","withErrorReporting","orElseSucceed","firstSuccessOf","timeout","timeoutOption","timeoutOrElse","delay","sleep","timed","raceAll","raceAllFirst","race","raceFirst","filter","filterMap","filterMapEffect","filterOrElse","filterMapOrElse","filterOrFail","filterMapOrFail","when","match","matchEager","matchCause","matchCauseEager","matchCauseEffectEager","matchCauseEffect","matchEffect","isFailure","isSuccess","context","contextWith","provide","provideContext","service","serviceOption","updateContext","updateService","provideService","provideServiceEffect","withConcurrency","scope","scoped","scopedWith","acquireRelease","acquireDisposable","acquireUseRelease","addFinalizer","ensuring","onError","onErrorIf","onErrorFilter","onExitPrimitive","onExit","onExitIf","onExitFilter","cached","cachedWithTTL","cachedInvalidateWithTTL","interrupt","interruptible","onInterrupt","uninterruptible","uninterruptibleMask","interruptibleMask","abortSignal","forever","repeat","repeatOrElse","replicate","replicateEffect","schedule","self","scheduleFrom","tracer","withTracer","withTracerEnabled","withTracerTiming","annotateSpans","annotateCurrentSpan","currentSpan","currentParentSpan","spanAnnotations","spanLinks","linkSpans","makeSpan","makeSpanScoped","useSpan","withSpan","withSpanScoped","withParentSpan","request","requestUnsafe","forkChild","forkIn","forkScoped","forkDetach","awaitAllChildren","fiber","fiberId","runFork","runForkWith","runCallbackWith","runCallback","runPromise","runPromiseWith","runPromiseExit","runPromiseExitWith","runSync","runSyncWith","runSyncExit","runSyncExitWith","fnUntraced","fn","clockWith","logWithLevel","log","logFatal","logWarning","logError","logInfo","logDebug","logTrace","withLogger","effect","logger","CurrentLoggers","loggers","Set","annotateLogs","args","annotations","newAnnotations","length","Object","assign","annotateLogsScoped","withLogSpan","label","currentTimeMillis","now","spans","span","track","metric","f","input","update","trackSuccesses","value","trackErrors","error","trackDefects","defect","trackDuration","clock","startTime","currentTimeNanosUnsafe","endTime","duration","subtract","fromInputUnsafe","Transaction","Service","tx","mapUnsafe","has","key","state","journal","Map","restore","while","body","pipe","awaitPendingTransaction","step","isTransactionConsistent","clearTransaction","commitTransaction","ref","version","refs","Array","from","keys","clearPending","clear","pending","delete","resume","onCall","set","values","currentDispatcher","scheduleTask","txRetry","asEffect","effectify","onSyncError","err","satisfiesSuccessType","satisfiesErrorType","satisfiesServicesType","mapEager","mapErrorEager","mapBothEager","flatMapEager","catchEager","fnUntracedEager"],"sources":["../src/Effect.ts"],"sourcesContent":[null],"mappings":"AAyEA,OAAO,KAAKA,OAAO,MAAM,cAAc;AACvC,OAAO,KAAKC,QAAQ,MAAM,eAAe;AAEzC,OAAO,KAAKC,IAAI,MAAM,WAAW;AAGjC,SAASC,QAAQ,EAAEC,IAAI,QAAsB,eAAe;AAG5D,OAAO,KAAKC,IAAI,MAAM,oBAAoB;AAC1C,OAAO,KAAKC,QAAQ,MAAM,sBAAsB;AAChD,OAAO,KAAKC,qBAAqB,MAAM,6BAA6B;AACpE,OAAO,KAAKC,aAAa,MAAM,qBAAqB;AACpD,OAAO,KAAKC,eAAe,MAAM,uBAAuB;AACxD,OAAO,KAAKC,gBAAgB,MAAM,wBAAwB;AAI1D,OAAO,KAAKC,MAAM,MAAM,aAAa;AAIrC,SAASC,qBAAqB,EAAEC,eAAe,QAAQ,iBAAiB;AAoCxE,SAASC,YAAY,EAAEC,aAAa,QAAQ,YAAY;AAExD,MAAMC,MAAM,GAAGX,IAAI,CAACY,YAAY;AAoFhC;;;;AAIA,OAAM,MAAgBC,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;;;;;;;;;;;;;;AAyBA,OAAO,MAAM+E,qBAAqB,GAAGA,CAAA,KAA8B/E,MAAwB,IAAuBA,MAAM;AAExH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCA,OAAO,MAAMgF,QAAQ,GAmEjBhT,QAAQ,CAACgT,QAAQ;AAErB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmCA,OAAO,MAAMC,aAAa,GAyEtBjT,QAAQ,CAACiT,aAAa;AAE1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqCA,OAAO,MAAMC,YAAY,GAkFrBlT,QAAQ,CAACkT,YAAY;AAEzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmCA,OAAO,MAAMC,YAAY,GAyErBnT,QAAQ,CAACmT,YAAY;AAEzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6CA,OAAO,MAAMC,UAAU,GA6FnBpT,QAAQ,CAACoT,UAAU;AAEvB;;;;;;;;;;;;;;;;;;;;;;AAsBA,OAAO,MAAMC,eAAe,GAAgBrT,QAAQ,CAACqT,eAAe","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"Effect.js","names":["Context","Duration","Exit","constant","dual","core","internal","internalExecutionPlan","internalLayer","internalRequest","internalSchedule","Metric","CurrentLogAnnotations","CurrentLogSpans","internalCall","TypeId","EffectTypeId","isEffect","all","partition","validate","findFirst","findFirstFilter","forEach","whileLoop","promise","tryPromise","succeed","succeedNone","succeedSome","suspend","sync","void_","void","undefined_","undefined","callback","never","Do","bindTo","let_","let","bind","gen","fail","failSync","failCause","failCauseSync","die","try_","try","yieldNow","yieldNowWith","withFiber","fromResult","fromOption","fromNullishOr","flatMap","flatten","andThen","tap","result","option","exit","map","as","asSome","asVoid","flip","zip","zipWith","catch_","catch","catchTag","catchTags","catchReason","catchReasons","unwrapReason","catchCause","catchDefect","catchIf","catchFilter","catchNoSuchElement","catchCauseIf","catchCauseFilter","mapError","mapBoth","orDie","tapError","tapErrorTag","tapCause","tapCauseIf","tapCauseFilter","tapDefect","eventually","retry","retryOrElse","sandbox","ignore","ignoreCause","withExecutionPlan","withErrorReporting","orElseSucceed","firstSuccessOf","timeout","timeoutOption","timeoutOrElse","delay","sleep","timed","raceAll","raceAllFirst","race","raceFirst","filter","filterMap","filterMapEffect","filterOrElse","filterMapOrElse","filterOrFail","filterMapOrFail","when","match","matchEager","matchCause","matchCauseEager","matchCauseEffectEager","matchCauseEffect","matchEffect","isFailure","isSuccess","context","contextWith","provide","provideContext","service","serviceOption","updateContext","updateService","provideService","provideServiceEffect","withConcurrency","scope","scoped","scopedWith","acquireRelease","acquireDisposable","acquireUseRelease","addFinalizer","ensuring","onError","onErrorIf","onErrorFilter","onExitPrimitive","onExit","onExitIf","onExitFilter","cached","cachedWithTTL","cachedInvalidateWithTTL","interrupt","interruptible","onInterrupt","uninterruptible","uninterruptibleMask","interruptibleMask","abortSignal","forever","repeat","repeatOrElse","replicate","replicateEffect","schedule","self","scheduleFrom","tracer","withTracer","withTracerEnabled","withTracerTiming","annotateSpans","annotateCurrentSpan","currentSpan","currentParentSpan","spanAnnotations","spanLinks","linkSpans","makeSpan","makeSpanScoped","useSpan","withSpan","withSpanScoped","withParentSpan","request","requestUnsafe","forkChild","forkIn","forkScoped","forkDetach","awaitAllChildren","fiber","fiberId","runFork","runForkWith","runCallbackWith","runCallback","runPromise","runPromiseWith","runPromiseExit","runPromiseExitWith","runSync","runSyncWith","runSyncExit","runSyncExitWith","fnUntraced","fn","clockWith","logWithLevel","log","logFatal","logWarning","logError","logInfo","logDebug","logTrace","withLogger","effect","logger","CurrentLoggers","loggers","Set","annotateLogs","args","annotations","newAnnotations","length","Object","assign","annotateLogsScoped","withLogSpan","label","currentTimeMillis","now","spans","span","track","metric","f","input","update","trackSuccesses","value","trackErrors","error","trackDefects","defect","trackDuration","clock","startTime","currentTimeNanosUnsafe","endTime","duration","subtract","fromInputUnsafe","Transaction","Service","tx","mapUnsafe","has","key","state","journal","Map","restore","while","body","pipe","awaitPendingTransaction","step","isTransactionConsistent","clearTransaction","commitTransaction","ref","version","refs","Array","from","keys","clearPending","clear","pending","delete","resume","onCall","set","values","currentDispatcher","scheduleTask","txRetry","effectify","onSyncError","err","satisfiesSuccessType","satisfiesErrorType","satisfiesServicesType","mapEager","mapErrorEager","mapBothEager","flatMapEager","catchEager","fnUntracedEager"],"sources":["../src/Effect.ts"],"sourcesContent":[null],"mappings":"AAeA,OAAO,KAAKA,OAAO,MAAM,cAAc;AACvC,OAAO,KAAKC,QAAQ,MAAM,eAAe;AAEzC,OAAO,KAAKC,IAAI,MAAM,WAAW;AAGjC,SAASC,QAAQ,EAAEC,IAAI,QAAsB,eAAe;AAG5D,OAAO,KAAKC,IAAI,MAAM,oBAAoB;AAC1C,OAAO,KAAKC,QAAQ,MAAM,sBAAsB;AAChD,OAAO,KAAKC,qBAAqB,MAAM,6BAA6B;AACpE,OAAO,KAAKC,aAAa,MAAM,qBAAqB;AACpD,OAAO,KAAKC,eAAe,MAAM,uBAAuB;AACxD,OAAO,KAAKC,gBAAgB,MAAM,wBAAwB;AAI1D,OAAO,KAAKC,MAAM,MAAM,aAAa;AAIrC,SAASC,qBAAqB,EAAEC,eAAe,QAAQ,iBAAiB;AAoCxE,SAASC,YAAY,QAAQ,YAAY;AAUzC;;;;;;AAMA,OAAO,MAAMC,MAAM,GAAWV,IAAI,CAACW,YAAY;AA4H/C;;;;;;;;;;;;;;;AAeA,OAAO,MAAMC,QAAQ,GAA+CZ,IAAI,CAACY,QAAQ;AAwJjF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqIA,OAAO,MAAMC,GAAG,GAYUZ,QAAQ,CAACY,GAAG;AAEtC;;;;;;;;;;;;;;;;;;;;;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QAAQ,CAAC+S,eAAe","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Effectable.d.ts b/.opencode/node_modules/effect/dist/Effectable.d.ts index 5369b0fa7d07356e0840a7838f073a64381080db..744c66e9ca92593e7d0627f335a3d718032f0502 100644 --- a/.opencode/node_modules/effect/dist/Effectable.d.ts +++ b/.opencode/node_modules/effect/dist/Effectable.d.ts @@ -1,4 +1,9 @@ /** + * Low-level helpers for making custom values behave like Effects. The module + * exposes a prototype builder and an abstract base class that let + * domain-specific values, such as service keys or configuration descriptions, + * be evaluated by Effect and yielded inside `Effect.gen`. + * * @since 4.0.0 */ import type * as Effect from "./Effect.ts"; @@ -6,10 +11,20 @@ import type * as Fiber from "./Fiber.ts"; /** * Create a low-level `Effect` prototype. * - * When the effect is evaluated, it will call `evaluate` with the current fiber. + * **When to use** + * + * Use when you need to create a custom Effect-like value without extending a + * class, by providing a label and an evaluate function that receives the + * current fiber. + * + * **Details** + * + * When the effect is evaluated, it calls `evaluate` with the current fiber. * + * @see {@link Class} for a class-based approach to defining custom Effect values + * + * @category prototypes * @since 4.0.0 - * @category Prototypes */ export declare const Prototype: >(options: { readonly label: string; @@ -17,13 +32,19 @@ export declare const Prototype: >(options }) => Effect.Effect, Effect.Error, Effect.Services>; declare const Base: new () => Effect.Effect; /** - * An abstract class that can be extended to create an `Effect`. + * Provides an abstract class that can be extended to create an `Effect`. * - * @since 4.0.0 - * @category Constructors + * **When to use** + * + * Use as an abstract base class to define custom classes whose instances behave + * as `Effect` values. + * + * @see {@link Prototype} for a lower-level primitive approach to creating custom Effect-like values without a class + * @category constructors + * @since 2.0.0 */ export declare abstract class Class extends Base { - abstract asEffect(): Effect.Effect; + abstract override: Effect.Effect; } export {}; //# sourceMappingURL=Effectable.d.ts.map \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Effectable.d.ts.map b/.opencode/node_modules/effect/dist/Effectable.d.ts.map index df382d4f2af71c5ddd88d037629f1f74dc81ea7d..baeceb7e4aa405ce3a2840b6ec058fedff7d22ef 100644 --- a/.opencode/node_modules/effect/dist/Effectable.d.ts.map +++ b/.opencode/node_modules/effect/dist/Effectable.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Effectable.d.ts","sourceRoot":"","sources":["../src/Effectable.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,KAAK,MAAM,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,KAAK,KAAK,MAAM,YAAY,CAAA;AAGxC;;;;;;;GAOG;AACH,eAAO,MAAM,SAAS,GAAI,CAAC,SAAS,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,SAAS;IACzE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,QAAQ,EAAE,CACjB,IAAI,EAAE,CAAC,EACP,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,GAAG,EAAE,GAAG,CAAC,KACzB,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAA;CAC3E,KAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CAI7D,CAAA;AAEX,QAAA,MAAM,IAAI,EAAE,KAAI,CAAC,EAAE,CAAC,EAAE,CAAC,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAS/C,CAAA;AAEJ;;;;;GAKG;AACH,8BAAsB,KAAK,CAAC,CAAC,EAAE,CAAC,GAAG,KAAK,EAAE,CAAC,GAAG,KAAK,CAAE,SAAQ,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CA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CAAC;IACxE,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAA;CAC1C"} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Effectable.js b/.opencode/node_modules/effect/dist/Effectable.js index 8990b265cc015036d238e04206dd8c83e1be9562..a5fedffe08d4eb20b22c327d2d8e2875151865ff 100644 --- a/.opencode/node_modules/effect/dist/Effectable.js +++ b/.opencode/node_modules/effect/dist/Effectable.js @@ -2,10 +2,20 @@ import { evaluate, makePrimitiveProto } from "./internal/core.js"; /** * Create a low-level `Effect` prototype. * - * When the effect is evaluated, it will call `evaluate` with the current fiber. + * **When to use** * + * Use when you need to create a custom Effect-like value without extending a + * class, by providing a label and an evaluate function that receives the + * current fiber. + * + * **Details** + * + * When the effect is evaluated, it calls `evaluate` with the current fiber. + * + * @see {@link Class} for a class-based approach to defining custom Effect values + * + * @category prototypes * @since 4.0.0 - * @category Prototypes */ export const Prototype = options => makePrimitiveProto({ op: options.label, @@ -16,16 +26,22 @@ const Base = /*#__PURE__*/(() => { Base.prototype = /*#__PURE__*/Prototype({ label: "Effectable", evaluate(_) { - return this.asEffect(); + return this; } }); return Base; })(); /** - * An abstract class that can be extended to create an `Effect`. + * Provides an abstract class that can be extended to create an `Effect`. * - * @since 4.0.0 - * @category Constructors + * **When to use** + * + * Use as an abstract base class to define custom classes whose instances behave + * as `Effect` values. + * + * @see {@link Prototype} for a lower-level primitive approach to creating custom Effect-like values without a class + * @category constructors + * @since 2.0.0 */ export class Class extends Base {} //# sourceMappingURL=Effectable.js.map \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Effectable.js.map b/.opencode/node_modules/effect/dist/Effectable.js.map index e8391f79cf6ea5c8ad6696d5f14902fcd6a8b507..ce0bdf30024dc6e5cabff582358c3579f8f984fa 100644 --- a/.opencode/node_modules/effect/dist/Effectable.js.map +++ b/.opencode/node_modules/effect/dist/Effectable.js.map @@ -1 +1 @@ -{"version":3,"file":"Effectable.js","names":["evaluate","makePrimitiveProto","Prototype","options","op","label","Base","prototype","_","asEffect","Class"],"sources":["../src/Effectable.ts"],"sourcesContent":[null],"mappings":"AAKA,SAASA,QAAQ,EAAEC,kBAAkB,QAAQ,oBAAoB;AAEjE;;;;;;;;AAQA,OAAO,MAAMC,SAAS,GAA4CC,OAMjE,IACCF,kBAAkB,CAAC;EACjBG,EAAE,EAAED,OAAO,CAACE,KAAK;EACjB,CAACL,QAAQ,GAAGG,OAAO,CAACH;CACrB,CAAQ;AAEX,MAAMM,IAAI,gBAA6C,CAAC,MAAK;EAC3D,MAAMA,IAAI,GAAG,SAAAA,CAAA,GAAY,CAAC;EAC1BA,IAAI,CAACC,SAAS,gBAAGL,SAAS,CAAC;IACzBG,KAAK,EAAE,YAAY;IACnBL,QAAQA,CAACQ,CAAC;MACR,OAAO,IAAI,CAACC,QAAQ,EAAE;IACxB;GACD,CAAC;EACF,OAAOH,IAAW;AACpB,CAAC,EAAC,CAAE;AAEJ;;;;;;AAMA,OAAM,MAAgBI,KAA+B,SAAQJ,IAAa","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"Effectable.js","names":["evaluate","makePrimitiveProto","Prototype","options","op","label","Base","prototype","_","Class"],"sources":["../src/Effectable.ts"],"sourcesContent":[null],"mappings":"AAUA,SAASA,QAAQ,EAAEC,kBAAkB,QAAQ,oBAAoB;AAEjE;;;;;;;;;;;;;;;;;;AAkBA,OAAO,MAAMC,SAAS,GAA4CC,OAMjE,IACCF,kBAAkB,CAAC;EACjBG,EAAE,EAAED,OAAO,CAACE,KAAK;EACjB,CAACL,QAAQ,GAAGG,OAAO,CAACH;CACrB,CAAQ;AAEX,MAAMM,IAAI,gBAA6C,CAAC,MAAK;EAC3D,MAAMA,IAAI,GAAG,SAAAA,CAAA,GAAY,CAAC;EAC1BA,IAAI,CAACC,SAAS,gBAAGL,SAAS,CAAC;IACzBG,KAAK,EAAE,YAAY;IACnBL,QAAQA,CAACQ,CAAC;MACR,OAAO,IAAI;IACb;GACD,CAAC;EACF,OAAOF,IAAW;AACpB,CAAC,EAAC,CAAE;AAEJ;;;;;;;;;;;;AAYA,OAAM,MAAgBG,KAA+B,SAAQH,IAAa","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Encoding.d.ts b/.opencode/node_modules/effect/dist/Encoding.d.ts index 27241f64c6a1993db6e1e6ca2ea5f879e25fa2e7..5a0d11d68bf04a58d478cdd2f6fd988255b228d4 100644 --- a/.opencode/node_modules/effect/dist/Encoding.d.ts +++ b/.opencode/node_modules/effect/dist/Encoding.d.ts @@ -1,20 +1,56 @@ import * as Result from "./Result.ts"; /** + * Type identifier stored on `EncodingError` values and used by + * `isEncodingError`. + * + * **When to use** + * + * Use when implementing low-level `EncodingError`-compatible values that need + * to carry the runtime marker. + * + * **Details** + * + * This marker is part of the runtime representation of `EncodingError`. Prefer + * `isEncodingError` when narrowing unknown values. + * + * @see {@link isEncodingError} for the public guard that checks this marker + * + * @category type IDs * @since 4.0.0 - * @category symbols */ export declare const EncodingErrorTypeId: "~effect/encoding/EncodingError"; /** + * Literal type of the `EncodingErrorTypeId` marker. + * + * **When to use** + * + * Use to type the marker carried by `EncodingError` values. + * + * @category type IDs * @since 4.0.0 - * @category symbols */ export type EncodingErrorTypeId = typeof EncodingErrorTypeId; declare const EncodingError_base: new = {}>(args: import("./Types.ts").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("./Cause.ts").YieldableError & { readonly _tag: "EncodingError"; } & Readonly; /** - * @since 4.0.0 + * Error returned when an encoding or decoding operation cannot process its + * input. + * + * **When to use** + * + * Use when you need to handle or inspect failures from encoding or decoding + * operations. + * + * **Details** + * + * The error records whether the failure happened during encoding or decoding, + * which encoding module reported it, the original input, and a human-readable + * message. + * + * @see {@link isEncodingError} for checking whether a value is an EncodingError * @category constructors + * @since 4.0.0 */ export declare class EncodingError extends EncodingError_base<{ kind: "Decode" | "Encode"; @@ -23,19 +59,52 @@ export declare class EncodingError extends EncodingError_base<{ message: string; }> { /** + * Marks this value as an encoding or decoding error for runtime guards. + * + * **When to use** + * + * Use to identify `EncodingError` instances through `isEncodingError`. + * * @since 4.0.0 */ readonly [EncodingErrorTypeId]: EncodingErrorTypeId; } /** - * @since 4.0.0 + * Checks whether a value is an `EncodingError`. + * + * **When to use** + * + * Use to narrow an unknown value before handling it as an `EncodingError` from + * encoding or decoding code. + * + * **Details** + * + * Returns `true` when the value carries the `EncodingErrorTypeId` marker and + * narrows the value to `EncodingError`. + * + * @see {@link EncodingError} for the structured error produced by failed + * encoding and decoding operations + * * @category guards + * @since 4.0.0 */ export declare const isEncodingError: (u: unknown) => u is EncodingError; /** * Encodes the given value into a base64 (RFC4648) `string`. * - * @example + * **When to use** + * + * Use to encode text or bytes as a standard padded Base64 string for storage or + * transport. + * + * **Details** + * + * String inputs are encoded as UTF-8 bytes before Base64 encoding. + * `Uint8Array` inputs are encoded directly. The output uses the standard + * RFC4648 alphabet with `=` padding. + * + * **Example** (Encoding Base64 strings and bytes) + * * ```ts * import { Encoding } from "effect" * @@ -47,14 +116,29 @@ export declare const isEncodingError: (u: unknown) => u is EncodingError; * console.log(Encoding.encodeBase64(bytes)) // "SGVsbG8=" * ``` * - * @since 4.0.0 + * @see {@link decodeBase64} for decoding standard Base64 to bytes + * @see {@link decodeBase64String} for decoding standard Base64 to UTF-8 text + * @see {@link encodeBase64Url} for URL-safe unpadded Base64 output + * * @category encoding + * @since 2.0.0 */ export declare const encodeBase64: (input: Uint8Array | string) => string; /** - * Decodes a base64 (RFC4648) encoded `string` into a `Uint8Array`. + * Decodes a base64 (RFC4648) string into bytes safely. + * + * **When to use** + * + * Use to decode a standard padded Base64 string into bytes without throwing on + * invalid input. + * + * **Details** + * + * Returns `Result.succeed` with a `Uint8Array` when decoding succeeds, or + * `Result.fail` with an `EncodingError` when the input is not valid base64. + * + * **Example** (Decoding Base64 bytes) * - * @example * ```ts * import { Encoding, Result } from "effect" * @@ -64,14 +148,25 @@ export declare const encodeBase64: (input: Uint8Array | string) => string; * } * ``` * - * @since 4.0.0 * @category decoding + * @since 2.0.0 */ export declare const decodeBase64: (str: string) => Result.Result; /** - * Decodes a base64 (RFC4648) encoded `string` into a UTF-8 `string`. + * Decodes a base64 (RFC4648) string into a UTF-8 string safely. + * + * **When to use** + * + * Use to decode a standard padded Base64 string into UTF-8 text without + * throwing on invalid input. + * + * **Details** + * + * Returns `Result.succeed` with the decoded text when decoding succeeds, or + * `Result.fail` with an `EncodingError` when the input is not valid base64. + * + * **Example** (Decoding Base64 strings) * - * @example * ```ts * import { Encoding, Result } from "effect" * @@ -81,14 +176,26 @@ export declare const decodeBase64: (str: string) => Result.Result Result.Result; /** * Encodes the given value into a base64 (URL) `string`. * - * @example + * **When to use** + * + * Use to encode text or bytes as an unpadded Base64Url string for contexts that + * require the URL-safe alphabet. + * + * **Details** + * + * String inputs are encoded as UTF-8 bytes before Base64Url encoding. + * `Uint8Array` inputs are encoded directly. The output removes `=` padding and + * replaces `+` with `-` and `/` with `_`. + * + * **Example** (Encoding URL-safe Base64) + * * ```ts * import { Encoding } from "effect" * @@ -99,14 +206,31 @@ export declare const decodeBase64String: (str: string) => Result.Result string; /** - * Decodes a base64 (URL) encoded `string` into a `Uint8Array`. + * Decodes a URL-safe base64 string into bytes safely. + * + * **When to use** + * + * Use to decode padded or unpadded Base64Url text into bytes without throwing + * on invalid input. + * + * **Details** + * + * Returns `Result.succeed` with a `Uint8Array` when decoding succeeds, or + * `Result.fail` with an `EncodingError` when the input is not valid URL-safe + * base64. Both padded and unpadded URL-safe base64 forms are accepted when + * otherwise valid. + * + * **Example** (Decoding URL-safe Base64 bytes) * - * @example * ```ts * import { Encoding, Result } from "effect" * @@ -116,14 +240,26 @@ export declare const encodeBase64Url: (input: Uint8Array | string) => string; * } * ``` * - * @since 4.0.0 * @category decoding + * @since 2.0.0 */ export declare const decodeBase64Url: (str: string) => Result.Result; /** - * Decodes a base64 (URL) encoded `string` into a UTF-8 `string`. + * Decodes a URL-safe base64 string into a UTF-8 string safely. + * + * **When to use** + * + * Use to decode padded or unpadded Base64Url text into UTF-8 text without + * throwing on invalid input. + * + * **Details** + * + * Returns `Result.succeed` with the decoded text when decoding succeeds, or + * `Result.fail` with an `EncodingError` when the input is not valid URL-safe + * base64. + * + * **Example** (Decoding URL-safe Base64 strings) * - * @example * ```ts * import { Encoding, Result } from "effect" * @@ -133,14 +269,19 @@ export declare const decodeBase64Url: (str: string) => Result.Result Result.Result; /** * Encodes the given value into a hex `string`. * - * @example + * **When to use** + * + * Use to encode text or bytes as lowercase hexadecimal text. + * + * **Example** (Encoding hex strings and bytes) + * * ```ts * import { Encoding } from "effect" * @@ -152,14 +293,25 @@ export declare const decodeBase64UrlString: (str: string) => Result.Result string; /** - * Decodes a hex encoded `string` into a `Uint8Array`. + * Decodes a hexadecimal string into bytes safely. + * + * **When to use** + * + * Use to decode hexadecimal text into bytes without throwing on invalid input. + * + * **Details** + * + * Returns `Result.succeed` with a `Uint8Array` when decoding succeeds, or + * `Result.fail` with an `EncodingError` when the input has an odd length or + * contains invalid hex characters. + * + * **Example** (Decoding hex bytes) * - * @example * ```ts * import { Encoding, Result } from "effect" * @@ -169,14 +321,25 @@ export declare const encodeHex: (input: Uint8Array | string) => string; * } * ``` * - * @since 4.0.0 * @category decoding + * @since 2.0.0 */ export declare const decodeHex: (str: string) => Result.Result; /** - * Decodes a hex encoded `string` into a UTF-8 `string`. + * Decodes a hexadecimal string into a UTF-8 string safely. + * + * **When to use** + * + * Use to decode hexadecimal text into UTF-8 text without throwing on invalid + * input. + * + * **Details** + * + * Returns `Result.succeed` with the decoded text when decoding succeeds, or + * `Result.fail` with an `EncodingError` when the input is not valid hex. + * + * **Example** (Decoding hex strings) * - * @example * ```ts * import { Encoding, Result } from "effect" * @@ -186,8 +349,8 @@ export declare const decodeHex: (str: string) => Result.Result Result.Result; export {}; diff --git a/.opencode/node_modules/effect/dist/Encoding.d.ts.map b/.opencode/node_modules/effect/dist/Encoding.d.ts.map index 855b9a710caca3a64f445402b96bab2ce8056459..0461c411b7f6ed40b42bd9231a3d1f8528776699 100644 --- a/.opencode/node_modules/effect/dist/Encoding.d.ts.map +++ b/.opencode/node_modules/effect/dist/Encoding.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Encoding.d.ts","sourceRoot":"","sources":["../src/Encoding.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AAMrC;;;GAGG;AACH,eAAO,MAAM,mBAAmB,EAAG,gCAAyC,CAAA;AAE5E;;;GAGG;AACH,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAA;;;;AAE5D;;;GAGG;AACH,qBAAa,aAAc,SAAQ,mBAAkC;IACnE,IAAI,EAAE,QAAQ,GAAG,QAAQ,CAAA;IACzB,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,OAAO,CAAA;IACd,OAAO,EAAE,MAAM,CAAA;CAChB,CAAC;IACA;;OAEG;IACH,QAAQ,CAAC,CAAC,mBAAmB,CAAC,EAAE,mBAAmB,CAAsB;CAC1E;AAED;;;GAGG;AACH,eAAO,MAAM,eAAe,GAAI,GAAG,OAAO,KAAG,CAAC,IAAI,aAAoD,CAAA;AAMtG;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,YAAY,EAAE,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,KAAK,MACgD,CAAA;AAE3G;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,YAAY,GAAI,KAAK,MAAM,KAAG,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE,aAAa,CAmDjF,CAAA;AAED;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,kBAAkB,GAAI,KAAK,MAAM,yCAA4D,CAAA;AAM1G;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,eAAe,EAAE,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,KAAK,MAC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d7547ba21979dd6098e6d34c492d2ff8bb7bb5..63a5efd2493598cd262f8b7cd511ebb2d7a0e108 100644 --- a/.opencode/node_modules/effect/dist/Encoding.js +++ b/.opencode/node_modules/effect/dist/Encoding.js @@ -1,5 +1,9 @@ /** - * Encoding & decoding for Base64 (RFC4648), Base64Url, and Hex. + * Encoding and decoding helpers for Base64, Base64Url, and hexadecimal text. + * The functions convert between strings, UTF-8 text, and `Uint8Array` bytes. + * Encode functions return strings directly, while decode functions return + * `Result.Result` so invalid input is reported as an `EncodingError` instead of + * being thrown. * * @since 4.0.0 */ @@ -10,23 +14,74 @@ import * as Result from "./Result.js"; // EncodingError // ------------------------------------------------------------------------------------- /** + * Type identifier stored on `EncodingError` values and used by + * `isEncodingError`. + * + * **When to use** + * + * Use when implementing low-level `EncodingError`-compatible values that need + * to carry the runtime marker. + * + * **Details** + * + * This marker is part of the runtime representation of `EncodingError`. Prefer + * `isEncodingError` when narrowing unknown values. + * + * @see {@link isEncodingError} for the public guard that checks this marker + * + * @category type IDs * @since 4.0.0 - * @category symbols */ export const EncodingErrorTypeId = "~effect/encoding/EncodingError"; /** - * @since 4.0.0 + * Error returned when an encoding or decoding operation cannot process its + * input. + * + * **When to use** + * + * Use when you need to handle or inspect failures from encoding or decoding + * operations. + * + * **Details** + * + * The error records whether the failure happened during encoding or decoding, + * which encoding module reported it, the original input, and a human-readable + * message. + * + * @see {@link isEncodingError} for checking whether a value is an EncodingError * @category constructors + * @since 4.0.0 */ export class EncodingError extends /*#__PURE__*/Data.TaggedError("EncodingError") { /** + * Marks this value as an encoding or decoding error for runtime guards. + * + * **When to use** + * + * Use to identify `EncodingError` instances through `isEncodingError`. + * * @since 4.0.0 */ [EncodingErrorTypeId] = EncodingErrorTypeId; } /** - * @since 4.0.0 + * Checks whether a value is an `EncodingError`. + * + * **When to use** + * + * Use to narrow an unknown value before handling it as an `EncodingError` from + * encoding or decoding code. + * + * **Details** + * + * Returns `true` when the value carries the `EncodingErrorTypeId` marker and + * narrows the value to `EncodingError`. + * + * @see {@link EncodingError} for the structured error produced by failed + * encoding and decoding operations + * * @category guards + * @since 4.0.0 */ export const isEncodingError = u => hasProperty(u, EncodingErrorTypeId); // ------------------------------------------------------------------------------------- @@ -35,7 +90,19 @@ export const isEncodingError = u => hasProperty(u, EncodingErrorTypeId); /** * Encodes the given value into a base64 (RFC4648) `string`. * - * @example + * **When to use** + * + * Use to encode text or bytes as a standard padded Base64 string for storage or + * transport. + * + * **Details** + * + * String inputs are encoded as UTF-8 bytes before Base64 encoding. + * `Uint8Array` inputs are encoded directly. The output uses the standard + * RFC4648 alphabet with `=` padding. + * + * **Example** (Encoding Base64 strings and bytes) + * * ```ts * import { Encoding } from "effect" * @@ -47,14 +114,29 @@ export const isEncodingError = u => hasProperty(u, EncodingErrorTypeId); * console.log(Encoding.encodeBase64(bytes)) // "SGVsbG8=" * ``` * - * @since 4.0.0 + * @see {@link decodeBase64} for decoding standard Base64 to bytes + * @see {@link decodeBase64String} for decoding standard Base64 to UTF-8 text + * @see {@link encodeBase64Url} for URL-safe unpadded Base64 output + * * @category encoding + * @since 2.0.0 */ export const encodeBase64 = input => typeof input === "string" ? base64EncodeUint8Array(encoder.encode(input)) : base64EncodeUint8Array(input); /** - * Decodes a base64 (RFC4648) encoded `string` into a `Uint8Array`. + * Decodes a base64 (RFC4648) string into bytes safely. + * + * **When to use** + * + * Use to decode a standard padded Base64 string into bytes without throwing on + * invalid input. + * + * **Details** + * + * Returns `Result.succeed` with a `Uint8Array` when decoding succeeds, or + * `Result.fail` with an `EncodingError` when the input is not valid base64. + * + * **Example** (Decoding Base64 bytes) * - * @example * ```ts * import { Encoding, Result } from "effect" * @@ -64,8 +146,8 @@ export const encodeBase64 = input => typeof input === "string" ? base64EncodeUin * } * ``` * - * @since 4.0.0 * @category decoding + * @since 2.0.0 */ export const decodeBase64 = str => { const stripped = stripCrlf(str); @@ -107,9 +189,20 @@ export const decodeBase64 = str => { } }; /** - * Decodes a base64 (RFC4648) encoded `string` into a UTF-8 `string`. + * Decodes a base64 (RFC4648) string into a UTF-8 string safely. + * + * **When to use** + * + * Use to decode a standard padded Base64 string into UTF-8 text without + * throwing on invalid input. + * + * **Details** + * + * Returns `Result.succeed` with the decoded text when decoding succeeds, or + * `Result.fail` with an `EncodingError` when the input is not valid base64. + * + * **Example** (Decoding Base64 strings) * - * @example * ```ts * import { Encoding, Result } from "effect" * @@ -119,8 +212,8 @@ export const decodeBase64 = str => { * } * ``` * - * @since 4.0.0 * @category decoding + * @since 2.0.0 */ export const decodeBase64String = str => Result.map(decodeBase64(str), _ => decoder.decode(_)); // ------------------------------------------------------------------------------------- @@ -129,7 +222,19 @@ export const decodeBase64String = str => Result.map(decodeBase64(str), _ => deco /** * Encodes the given value into a base64 (URL) `string`. * - * @example + * **When to use** + * + * Use to encode text or bytes as an unpadded Base64Url string for contexts that + * require the URL-safe alphabet. + * + * **Details** + * + * String inputs are encoded as UTF-8 bytes before Base64Url encoding. + * `Uint8Array` inputs are encoded directly. The output removes `=` padding and + * replaces `+` with `-` and `/` with `_`. + * + * **Example** (Encoding URL-safe Base64) + * * ```ts * import { Encoding } from "effect" * @@ -140,14 +245,31 @@ export const decodeBase64String = str => Result.map(decodeBase64(str), _ => deco * console.log(Encoding.encodeBase64Url(bytes)) // "SGVsbG8_" * ``` * - * @since 4.0.0 + * @see {@link decodeBase64Url} for decoding URL-safe Base64 to bytes + * @see {@link decodeBase64UrlString} for decoding URL-safe Base64 to UTF-8 text + * @see {@link encodeBase64} for standard padded Base64 output + * * @category encoding + * @since 2.0.0 */ export const encodeBase64Url = input => typeof input === "string" ? base64UrlEncodeUint8Array(encoder.encode(input)) : base64UrlEncodeUint8Array(input); /** - * Decodes a base64 (URL) encoded `string` into a `Uint8Array`. + * Decodes a URL-safe base64 string into bytes safely. + * + * **When to use** + * + * Use to decode padded or unpadded Base64Url text into bytes without throwing + * on invalid input. + * + * **Details** + * + * Returns `Result.succeed` with a `Uint8Array` when decoding succeeds, or + * `Result.fail` with an `EncodingError` when the input is not valid URL-safe + * base64. Both padded and unpadded URL-safe base64 forms are accepted when + * otherwise valid. + * + * **Example** (Decoding URL-safe Base64 bytes) * - * @example * ```ts * import { Encoding, Result } from "effect" * @@ -157,8 +279,8 @@ export const encodeBase64Url = input => typeof input === "string" ? base64UrlEnc * } * ``` * - * @since 4.0.0 * @category decoding + * @since 2.0.0 */ export const decodeBase64Url = str => { const stripped = stripCrlf(str); @@ -185,9 +307,21 @@ export const decodeBase64Url = str => { return decodeBase64(sanitized); }; /** - * Decodes a base64 (URL) encoded `string` into a UTF-8 `string`. + * Decodes a URL-safe base64 string into a UTF-8 string safely. + * + * **When to use** + * + * Use to decode padded or unpadded Base64Url text into UTF-8 text without + * throwing on invalid input. + * + * **Details** + * + * Returns `Result.succeed` with the decoded text when decoding succeeds, or + * `Result.fail` with an `EncodingError` when the input is not valid URL-safe + * base64. + * + * **Example** (Decoding URL-safe Base64 strings) * - * @example * ```ts * import { Encoding, Result } from "effect" * @@ -197,8 +331,8 @@ export const decodeBase64Url = str => { * } * ``` * - * @since 4.0.0 * @category decoding + * @since 2.0.0 */ export const decodeBase64UrlString = str => Result.map(decodeBase64Url(str), _ => decoder.decode(_)); // ------------------------------------------------------------------------------------- @@ -207,7 +341,12 @@ export const decodeBase64UrlString = str => Result.map(decodeBase64Url(str), _ = /** * Encodes the given value into a hex `string`. * - * @example + * **When to use** + * + * Use to encode text or bytes as lowercase hexadecimal text. + * + * **Example** (Encoding hex strings and bytes) + * * ```ts * import { Encoding } from "effect" * @@ -219,14 +358,25 @@ export const decodeBase64UrlString = str => Result.map(decodeBase64Url(str), _ = * console.log(Encoding.encodeHex(bytes)) // "48656c6c6f" * ``` * - * @since 4.0.0 * @category encoding + * @since 2.0.0 */ export const encodeHex = input => typeof input === "string" ? hexEncodeUint8Array(encoder.encode(input)) : hexEncodeUint8Array(input); /** - * Decodes a hex encoded `string` into a `Uint8Array`. + * Decodes a hexadecimal string into bytes safely. + * + * **When to use** + * + * Use to decode hexadecimal text into bytes without throwing on invalid input. + * + * **Details** + * + * Returns `Result.succeed` with a `Uint8Array` when decoding succeeds, or + * `Result.fail` with an `EncodingError` when the input has an odd length or + * contains invalid hex characters. + * + * **Example** (Decoding hex bytes) * - * @example * ```ts * import { Encoding, Result } from "effect" * @@ -236,8 +386,8 @@ export const encodeHex = input => typeof input === "string" ? hexEncodeUint8Arra * } * ``` * - * @since 4.0.0 * @category decoding + * @since 2.0.0 */ export const decodeHex = str => { const bytes = new TextEncoder().encode(str); @@ -268,9 +418,20 @@ export const decodeHex = str => { } }; /** - * Decodes a hex encoded `string` into a UTF-8 `string`. + * Decodes a hexadecimal string into a UTF-8 string safely. + * + * **When to use** + * + * Use to decode hexadecimal text into UTF-8 text without throwing on invalid + * input. + * + * **Details** + * + * Returns `Result.succeed` with the decoded text when decoding succeeds, or + * `Result.fail` with an `EncodingError` when the input is not valid hex. + * + * **Example** (Decoding hex strings) * - * @example * ```ts * import { Encoding, Result } from "effect" * @@ -280,8 +441,8 @@ export const decodeHex = str => { * } * ``` * - * @since 4.0.0 * @category decoding + * @since 2.0.0 */ export const decodeHexString = str => Result.map(decodeHex(str), _ => decoder.decode(_)); // ------------------------------------------------------------------------------------- diff --git a/.opencode/node_modules/effect/dist/Encoding.js.map b/.opencode/node_modules/effect/dist/Encoding.js.map index 1278ef0a7e50fdb2dff396e0ffcc1da519c085ae..be1b314df0716b7510505b6c023090a8db7cb750 100644 --- a/.opencode/node_modules/effect/dist/Encoding.js.map +++ b/.opencode/node_modules/effect/dist/Encoding.js.map @@ -1 +1 @@ -{"version":3,"file":"Encoding.js","names":["Data","hasProperty","Result","EncodingErrorTypeId","EncodingError","TaggedError","isEncodingError","u","encodeBase64","input","base64EncodeUint8Array","encoder","encode","decodeBase64","str","stripped","stripCrlf","length","fail","kind","module","message","index","indexOf","missingOctets","endsWith","result","Uint8Array","i","j","buffer","getBase64Code","charCodeAt","succeed","e","Error","decodeBase64String","map","_","decoder","decode","encodeBase64Url","base64UrlEncodeUint8Array","decodeBase64Url","test","sanitized","replace","decodeBase64UrlString","encodeHex","hexEncodeUint8Array","decodeHex","bytes","TextEncoder","a","fromHexChar","b","decodeHexString","TextDecoder","base64abc","charCode","base64codes","TypeError","String","fromCharCode","code","data","bytesToHex","byte"],"sources":["../src/Encoding.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;AAKA,OAAO,KAAKA,IAAI,MAAM,WAAW;AACjC,SAASC,WAAW,QAAQ,gBAAgB;AAC5C,OAAO,KAAKC,MAAM,MAAM,aAAa;AAErC;AACA;AACA;AAEA;;;;AAIA,OAAO,MAAMC,mBAAmB,GAAG,gCAAyC;AAQ5E;;;;AAIA,OAAM,MAAOC,aAAc,sBAAQJ,IAAI,CAACK,WAAW,CAAC,eAAe,CAKjE;EACA;;;EAGS,CAACF,mBAAmB,IAAyBA,mBAAmB;;AAG3E;;;;AAIA,OAAO,MAAMG,eAAe,GAAIC,CAAU,IAAyBN,WAAW,CAACM,CAAC,EAAEJ,mBAAmB,CAAC;AAEtG;AACA;AACA;AAEA;;;;;;;;;;;;;;;;;;AAkBA,OAAO,MAAMK,YAAY,GAA4CC,KAAK,IACxE,OAAOA,KAAK,KAAK,QAAQ,GAAGC,sBAAsB,CAACC,OAAO,CAACC,MAAM,CAACH,KAAK,CAAC,CAAC,GAAGC,sBAAsB,CAACD,KAAK,CAAC;AAE3G;;;;;;;;;;;;;;;;AAgBA,OAAO,MAAMI,YAAY,GAAIC,GAAW,IAA8C;EACpF,MAAMC,QAAQ,GAAGC,SAAS,CAACF,GAAG,CAAC;EAC/B,MAAMG,MAAM,GAAGF,QAAQ,CAACE,MAAM;EAC9B,IAAIA,MAAM,GAAG,CAAC,KAAK,CAAC,EAAE;IACpB,OAAOf,MAAM,CAACgB,IAAI,CAChB,IAAId,aAAa,CAAC;MAChBe,IAAI,EAAE,QAAQ;MACdC,MAAM,EAAE,QAAQ;MAChBX,KAAK,EAAEM,QAAQ;MACfM,OAAO,EAAE,0CAA0CJ,M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GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,CACJ;AAED,MAAME,WAAW,GAAG,CAClB,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,EAAE,EACF,GAAG,EACH,GAAG,EACH,GAAG,EACH,EAAE,EACF,EAAE,EACF,EAAE,EACF,EAAE,EACF,EAAE,EACF,EAAE,EACF,EAAE,EACF,EAAE,EACF,EAAE,EACF,EAAE,EACF,EAAE,EACF,GAAG,EACH,GAAG,EACH,GAAG,EACH,CAAC,EACD,GAAG,EACH,GAAG,EACH,GAAG,EACH,CAAC,EACD,CAAC,EACD,CAAC,EACD,CAAC,EACD,CAAC,EACD,CAAC,EACD,CAAC,EACD,CAAC,EACD,CAAC,EACD,CAAC,EACD,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J,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,CACL","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"Encoding.js","names":["Data","hasProperty","Result","EncodingErrorTypeId","EncodingError","TaggedError","isEncodingError","u","encodeBase64","input","base64EncodeUint8Array","encoder","encode","decodeBase64","str","stripped","stripCrlf","length","fail","kind","module","message","index","indexOf","missingOctets","endsWith","result","Uint8Array","i","j","buffer","getBase64Code","charCodeAt","succeed","e","Error","decodeBase64String","map","_","decoder","decode","encodeBase64Url","base64UrlEncodeUint8Array","decodeBase64Url","test","sanitized","replace","decodeBase64UrlString","encodeHex","hexEncodeUint8Array","decodeHex","bytes","TextEncoder","a","fromHexChar","b","decodeHexString","TextDecoder","base64abc","charCode","base64codes","TypeError","String","fromCharCode","code","data","bytesToHex","byte"],"sources":["../src/Encoding.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;AASA,OAAO,KAAKA,IAAI,MAAM,WAAW;AACjC,SAASC,WAAW,QAAQ,gBAAgB;AAC5C,OAAO,KAAKC,MAAM,MAAM,aAAa;AAErC;AACA;AACA;AAEA;;;;;;;;;;;;;;;;;;;AAmBA,OAAO,MAAMC,mBAAmB,GAAG,gCAAyC;AAc5E;;;;;;;;;;;;;;;;;;;AAmBA,OAAM,MAAOC,aAAc,sBAAQJ,IAAI,CAACK,WAAW,CAAC,eAAe,CAKjE;EACA;;;;;;;;;EASS,CAACF,mBAAmB,IAAyBA,mBAAmB;;AAG3E;;;;;;;;;;;;;;;;;;;AAmBA,OAAO,MAAMG,eAAe,GAAIC,CAAU,IAAyBN,WAAW,CAACM,CAAC,EAAEJ,mBAAmB,CAAC;AAEtG;AACA;AACA;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCA,OAAO,MAAMK,YAAY,GAA4CC,KAAK,IACxE,OAAOA,KAAK,KAAK,QAAQ,GAAGC,sBAAsB,CAACC,OAAO,CAACC,MAAM,CAACH,KAAK,CAAC,CAAC,GAAGC,sBAAsB,CAACD,KAAK,CAAC;AAE3G;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BA,OAAO,MAAMI,YAAY,GAAIC,GAAW,IAA8C;EACpF,MAAMC,QAAQ,GAAGC,SAAS,CAACF,GAAG,CAAC;EAC/B,MAAMG,MAAM,GAAGF,QAAQ,CAACE,MAAM;EAC9B,IAAIA,MAAM,GAAG,CAAC,KAAK,CAAC,EAAE;IACpB,OAAOf,MAAM,CAACgB,IAAI,CAChB,IAAId,aAAa,CAAC;MAChBe,IAAI,EAAE,QAAQ;MACdC,MAAM,EAAE,QAAQ;MAChBX,KAAK,EAAEM,QAAQ;MACfM,OAAO,EAAE,0CAA0CJ,MAAM;KA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,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,CACJ;AAED,MAAME,WAAW,GAAG,CAClB,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,EAAE,EACF,GAAG,EACH,GAAG,EACH,GAAG,EACH,EAAE,EACF,EAAE,EACF,EAAE,EACF,EAAE,EACF,EAAE,EACF,EAAE,EACF,EAAE,EACF,EAAE,EACF,EAAE,EACF,EAAE,EACF,EAAE,EACF,GAAG,EACH,GAAG,EACH,GAAG,EACH,CAAC,EACD,GAAG,EACH,GAAG,EACH,GAAG,EACH,CAAC,EACD,CAAC,EACD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,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,CACL","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Equal.d.ts b/.opencode/node_modules/effect/dist/Equal.d.ts index 382950411a4dba1fcf9300ea919f1326194c4ed5..805214e3806c616ec3e3ed2362122a6b3dcced4d 100644 --- a/.opencode/node_modules/effect/dist/Equal.d.ts +++ b/.opencode/node_modules/effect/dist/Equal.d.ts @@ -1,91 +1,29 @@ /** - * Structural and custom equality for Effect values. - * - * The `Equal` module provides deep structural comparison for primitives, plain - * objects, arrays, Maps, Sets, Dates, and RegExps. Types that implement the - * {@link Equal} interface can supply their own comparison logic while staying - * compatible with the rest of the ecosystem (HashMap, HashSet, etc.). - * - * ## Mental model - * - * - **Structural equality** — two values are equal when their contents match, - * not when they share the same reference. - * - **Hash-first shortcut** — before comparing fields, the module checks - * {@link Hash.hash}. If the hashes differ the objects are unequal without - * further traversal. - * - **Equal interface** — any object that implements both {@link symbol} (the - * equality method) and `Hash.symbol` (the hash method) can define custom - * comparison logic. - * - **Caching** — comparison results for object pairs are cached in a WeakMap. - * This makes repeated checks fast but **requires immutability** after the - * first comparison. - * - **By-reference opt-out** — {@link byReference} and {@link byReferenceUnsafe} - * let you switch individual objects back to reference equality when you need - * mutable identity semantics. - * - * ## Common tasks - * - * - Compare two values → {@link equals} - * - Check if a value implements `Equal` → {@link isEqual} - * - Use `equals` where an `Equivalence` is expected → {@link asEquivalence} - * - Implement custom equality on a class → implement {@link Equal} (see - * example on the interface) - * - Opt an object out of structural equality → {@link byReference} / - * {@link byReferenceUnsafe} - * - * ## Gotchas - * - * - Objects **must be treated as immutable** after their first equality check. - * Results are cached; mutating an object afterwards yields stale results. - * - `NaN` is considered equal to `NaN` (unlike `===`). - * - Functions without an `Equal` implementation are compared by reference. - * - Map and Set comparisons are order-independent but O(n²) in size. - * - If only one of two objects implements `Equal`, they are never equal. - * - * ## Quickstart - * - * **Example** (basic structural comparison) + * Compares values with Effect's structural equality rules. * - * ```ts - * import { Equal } from "effect" - * - * // Primitives - * console.log(Equal.equals(1, 1)) // true - * console.log(Equal.equals("a", "b")) // false - * - * // Objects and arrays - * console.log(Equal.equals({ x: 1 }, { x: 1 })) // true - * console.log(Equal.equals([1, 2], [1, 2])) // true - * - * // Curried form - * const is42 = Equal.equals(42) - * console.log(is42(42)) // true - * console.log(is42(0)) // false - * ``` - * - * @see {@link equals} — the main comparison function - * @see {@link Equal} — the interface for custom equality - * @see {@link Hash} — the companion hashing module + * `equals` compares primitives, arrays, plain objects, maps, sets, dates, + * regular expressions, and values that implement the `Equal` interface. This + * module also defines the equality symbol, guards, adapters, map and set + * comparison builders, and helpers for marking objects that should compare only + * by reference. * * @since 2.0.0 */ import type { Equivalence } from "./Equivalence.ts"; import * as Hash from "./Hash.ts"; /** - * The unique string identifier for the {@link Equal} interface. + * Defines the unique string identifier for the `Equal` interface. * - * Use this as a computed property key when implementing custom equality on a - * class or object literal. + * **When to use** * - * When to use: - * - As the method name when implementing the {@link Equal} interface. - * - To check manually whether an object carries an equality method (prefer - * {@link isEqual} instead). + * Use when you implement custom equality and need the computed property key for + * the equality method. * - * Behavior: - * - Pure constant — no allocation or side effects. + * **Details** * - * **Example** (implementing Equal on a class) + * This is a pure constant with no allocation or side effects. + * + * **Example** (Implementing Equal on a Class) * * ```ts * import { Equal, Hash } from "effect" @@ -105,32 +43,34 @@ import * as Hash from "./Hash.ts"; * * @see {@link Equal} — the interface that uses this symbol * @see {@link isEqual} — type guard for `Equal` implementors - * + * @category symbols * @since 2.0.0 */ export declare const symbol = "~effect/interfaces/Equal"; /** * The interface for types that define their own equality logic. * - * Any object that implements both `[Equal.symbol]` (equality) and - * `[Hash.symbol]` (hashing) is recognized by {@link equals} and by - * hash-based collections such as `HashMap` and `HashSet`. + * **When to use** * - * When to use: - * - When you need value-based equality for a class (e.g. domain IDs, + * Use when you need value-based equality for a class (e.g. domain IDs, * coordinates, money values). * - When your type will be stored in `HashMap` or `HashSet`. * - When the default structural comparison is too broad or too narrow for * your type. * - * Behavior: + * **Details** + * + * Any object that implements both `[Equal.symbol]` (equality) and + * `[Hash.symbol]` (hashing) is recognized by {@link equals} and by hash-based + * collections such as `HashMap` and `HashSet`. + * * - Extends `Hash.Hash`, so implementors **must** also provide `[Hash.symbol]`. * - The hash contract: if `a[Equal.symbol](b)` returns `true`, then * `Hash.hash(a)` must equal `Hash.hash(b)`. * - {@link equals} delegates to this method when both operands implement it. * If only one operand implements `Equal`, they are considered unequal. * - * **Example** (coordinate with value equality) + * **Example** (Coordinate with Value Equality) * * ```ts * import { Equal, Hash } from "effect" @@ -156,7 +96,6 @@ export declare const symbol = "~effect/interfaces/Equal"; * @see {@link symbol} — the property key used by the equality method * @see {@link equals} — the main comparison function * @see {@link isEqual} — type guard for `Equal` implementors - * * @category models * @since 2.0.0 */ @@ -164,36 +103,36 @@ export interface Equal extends Hash.Hash { [symbol](that: Equal): boolean; } /** - * Compares two values for deep structural equality. - * - * When to use: - * - As the default equality check throughout Effect code. - * - In data-level assertions or conditional logic where structural comparison - * is needed. - * - In its curried (single-argument) form to build reusable predicates. - * - * Behavior: - * - Returns a `boolean`; never throws. - * - Primitives: compared by value. `NaN` equals `NaN`. - * - Objects implementing {@link Equal}: delegates to their - * `[Equal.symbol]` method. If only one operand implements `Equal`, the - * result is `false`. - * - Dates: compared by ISO string representation. - * - RegExps: compared by string representation. - * - Arrays: element-by-element recursive comparison (order matters). - * - Maps / Sets: structural comparison of entries (order-independent, O(n²)). - * - Plain objects: all own and inherited enumerable keys are compared - * recursively. - * - Functions without an `Equal` implementation are compared by reference. - * - Circular references are handled; two structures that are circular at the - * same depth are considered equal. - * - Hash values are checked first as a fast-path rejection. + * Checks whether two values are deeply structurally equal. + * + * **When to use** + * + * Use when you need Effect's default structural equality check. + * + * **Details** + * + * Returns a `boolean` and never throws. Primitives are compared by value, and + * `NaN` equals `NaN`. Objects implementing `Equal` delegate to their + * `[Equal.symbol]` method; if only one operand implements `Equal`, the result + * is `false`. + * + * Dates compare by ISO string, RegExps compare by string representation, + * arrays compare element-by-element, Maps and Sets compare entries + * order-independently, and plain objects compare enumerable keys recursively. + * Functions without an `Equal` implementation compare by reference. Circular + * references are handled when both structures are circular at the same depth. + * + * Hash values are checked first as a fast-path rejection. The function also + * supports dual data-last usage: call it with one argument to get a curried + * predicate. + * + * **Gotchas** + * * - Results are cached per object pair in a WeakMap. **Objects must not be * mutated after their first comparison.** - * - Supports dual (data-last) usage: call with one argument to get a curried - * predicate. + * - Map and Set comparisons are O(n²) in size. * - * **Example** (comparing values) + * **Example** (Comparing Values) * * ```ts * import { Equal } from "effect" @@ -224,7 +163,6 @@ export interface Equal extends Hash.Hash { * @see {@link Equal} — the interface for custom equality * @see {@link isEqual} — check whether a value implements `Equal` * @see {@link asEquivalence} — wrap `equals` as an `Equivalence` - * * @category equality * @since 2.0.0 */ @@ -233,19 +171,19 @@ export declare function equals(self: A, that: B): boolean; /** * Checks whether a value implements the {@link Equal} interface. * - * When to use: - * - To branch on whether a value supports custom equality before calling - * its `[Equal.symbol]` method directly. - * - In generic utility code that needs to distinguish `Equal` implementors - * from plain values. + * **When to use** + * + * Use when you need generic utility code to distinguish `Equal` implementors + * from plain values before calling `[Equal.symbol]` directly. + * + * **Details** * - * Behavior: * - Pure function, no side effects. * - Returns `true` if and only if `u` has a property keyed by * {@link symbol}. * - Acts as a TypeScript type guard, narrowing the input to {@link Equal}. * - * **Example** (type guard) + * **Example** (Type Guard) * * ```ts * import { Equal, Hash } from "effect" @@ -267,7 +205,6 @@ export declare function equals(self: A, that: B): boolean; * * @see {@link Equal} — the interface being checked * @see {@link symbol} — the property key that signals `Equal` support - * * @category guards * @since 2.0.0 */ @@ -275,16 +212,18 @@ export declare const isEqual: (u: unknown) => u is Equal; /** * Wraps {@link equals} as an `Equivalence`. * - * When to use: - * - When an API (e.g. `Array.dedupeWith`, `Equivalence.mapInput`) requires an - * `Equivalence` and you want to reuse `Equal.equals`. + * **When to use** + * + * Use when you want to pass `Equal.equals` to APIs that require an + * `Equivalence`. + * + * **Details** * - * Behavior: * - Returns a function `(a: A, b: A) => boolean` that delegates to * {@link equals}. * - Pure; allocates a thin wrapper on each call. * - * **Example** (deduplicating with Equal semantics) + * **Example** (Deduplicating with Equal Semantics) * * ```ts * import { Array, Equal } from "effect" @@ -295,21 +234,20 @@ export declare const isEqual: (u: unknown) => u is Equal; * ``` * * @see {@link equals} — the underlying comparison function - * * @category instances - * @since 2.0.0 + * @since 4.0.0 */ export declare const asEquivalence: () => Equivalence; /** * Creates a proxy that uses reference equality instead of structural equality. * - * When to use: - * - When you have a plain object or array that should be compared by identity - * (reference), not by contents. - * - When you want to preserve the original object unchanged and get a new - * reference-equal handle. + * **When to use** + * + * Use when you need to compare a plain object or array by identity without + * mutating the original value. + * + * **Details** * - * Behavior: * - Returns a `Proxy` wrapping `obj`. The proxy reads through to the * original, so property access is unchanged. * - The proxy is registered in an internal WeakSet; {@link equals} returns @@ -318,7 +256,7 @@ export declare const asEquivalence: () => Equivalence; * - Each call creates a **new** proxy, so `byReference(x) !== byReference(x)`. * - Does **not** mutate the original object (unlike {@link byReferenceUnsafe}). * - * **Example** (opting out of structural equality) + * **Example** (Opting Out of Structural Equality) * * ```ts * import { Equal } from "effect" @@ -337,30 +275,32 @@ export declare const asEquivalence: () => Equivalence; * @see {@link byReferenceUnsafe} — same effect without a proxy (mutates the * original) * @see {@link equals} — the comparison function affected by this opt-out - * - * @category utility - * @since 2.0.0 + * @category equality + * @since 4.0.0 */ export declare const byReference: (obj: T) => T; /** - * Permanently marks an object to use reference equality, without creating a - * proxy. + * Marks an object permanently to use reference equality, without creating a proxy. + * + * **When to use** * - * When to use: - * - When you want reference equality semantics and can accept that the - * original object is **permanently** modified. - * - When proxy overhead is unacceptable (hot paths, large collections). + * Use when you need reference equality without proxy allocation and accept + * permanently marking the original object for reference-only equality. + * + * **Details** * - * Behavior: * - Adds `obj` to an internal WeakSet. From that point on, {@link equals} * treats it as reference-only. * - Returns the **same** object (not a copy or proxy), so * `byReferenceUnsafe(x) === x`. - * - The marking is irreversible for the lifetime of the object. * - Does **not** affect the object's prototype, properties, or behavior * beyond equality checks. * - * **Example** (marking an object for reference equality) + * **Gotchas** + * + * The marking is irreversible for the lifetime of the object. + * + * **Example** (Marking an Object for Reference Equality) * * ```ts * import { Equal } from "effect" @@ -377,9 +317,8 @@ export declare const byReference: (obj: T) => T; * * @see {@link byReference} — safer alternative that creates a proxy * @see {@link equals} — the comparison function affected by this opt-out - * - * @category utility - * @since 2.0.0 + * @category unsafe + * @since 4.0.0 */ export declare const byReferenceUnsafe: (obj: T) => T; //# sourceMappingURL=Equal.d.ts.map \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Equal.d.ts.map b/.opencode/node_modules/effect/dist/Equal.d.ts.map index 7500b053a36951066693a8947d44d79739e524bb..f9e214f6b04157d3b23d0975ab09ea8dca68f5fd 100644 --- a/.opencode/node_modules/effect/dist/Equal.d.ts.map +++ b/.opencode/node_modules/effect/dist/Equal.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Equal.d.ts","sourceRoot":"","sources":["../src/Equal.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsEG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,IAAI,MAAM,WAAW,CAAA;AAIjC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,eAAO,MAAM,MAAM,6BAA6B,CAAA;AAEhD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AACH,MAAM,WAAW,KAAM,SAAQ,IAAI,CAAC,IAAI;IACtC,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,KAAK,GAAG,OAAO,CAAA;CAC/B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgEG;AACH,wBAAgB,MAAM,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,KAAK,OAAO,CAAA;AAC3D,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,OAAO,CAAA;AAyNvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,e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AAC,EAAE,IAAI,EAAE,CAAC,GAAG,OAAO,CAAA;AAyNvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,eAAO,MAAM,OAAO,GAAI,GAAG,OAAO,KAAG,CAAC,IAAI,KAA+B,CAAA;AAEzE;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,eAAO,MAAM,aAAa,EAAE,CAAC,CAAC,OAAO,WAAW,CAAC,CAAC,CAAgB,CAAA;AAElE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,eAAO,MAAM,WAAW,GAAI,CAAC,SAAS,MAAM,EAAE,KAAK,CAAC,KAAG,CAA0C,CAAA;AAEjG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,eAAO,MAAM,iBAAiB,GAAI,CAAC,SAAS,MAAM,EAAE,KAAK,CAAC,KAAG,CAG5D,CAAA"} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Equal.js b/.opencode/node_modules/effect/dist/Equal.js index 983a5546481231b40da2b8101602a9e4a31c70c9..4d7924cf8b772178889e88fc65d2557423c81caa 100644 --- a/.opencode/node_modules/effect/dist/Equal.js +++ b/.opencode/node_modules/effect/dist/Equal.js @@ -2,20 +2,18 @@ import * as Hash from "./Hash.js"; import { byReferenceInstances, getAllObjectKeys } from "./internal/equal.js"; import { hasProperty } from "./Predicate.js"; /** - * The unique string identifier for the {@link Equal} interface. + * Defines the unique string identifier for the `Equal` interface. * - * Use this as a computed property key when implementing custom equality on a - * class or object literal. + * **When to use** * - * When to use: - * - As the method name when implementing the {@link Equal} interface. - * - To check manually whether an object carries an equality method (prefer - * {@link isEqual} instead). + * Use when you implement custom equality and need the computed property key for + * the equality method. * - * Behavior: - * - Pure constant — no allocation or side effects. + * **Details** * - * **Example** (implementing Equal on a class) + * This is a pure constant with no allocation or side effects. + * + * **Example** (Implementing Equal on a Class) * * ```ts * import { Equal, Hash } from "effect" @@ -35,7 +33,7 @@ import { hasProperty } from "./Predicate.js"; * * @see {@link Equal} — the interface that uses this symbol * @see {@link isEqual} — type guard for `Equal` implementors - * + * @category symbols * @since 2.0.0 */ export const symbol = "~effect/interfaces/Equal"; @@ -225,19 +223,19 @@ const compareSets = /*#__PURE__*/makeCompareSet(compareBoth); /** * Checks whether a value implements the {@link Equal} interface. * - * When to use: - * - To branch on whether a value supports custom equality before calling - * its `[Equal.symbol]` method directly. - * - In generic utility code that needs to distinguish `Equal` implementors - * from plain values. + * **When to use** + * + * Use when you need generic utility code to distinguish `Equal` implementors + * from plain values before calling `[Equal.symbol]` directly. + * + * **Details** * - * Behavior: * - Pure function, no side effects. * - Returns `true` if and only if `u` has a property keyed by * {@link symbol}. * - Acts as a TypeScript type guard, narrowing the input to {@link Equal}. * - * **Example** (type guard) + * **Example** (Type Guard) * * ```ts * import { Equal, Hash } from "effect" @@ -259,7 +257,6 @@ const compareSets = /*#__PURE__*/makeCompareSet(compareBoth); * * @see {@link Equal} — the interface being checked * @see {@link symbol} — the property key that signals `Equal` support - * * @category guards * @since 2.0.0 */ @@ -267,16 +264,18 @@ export const isEqual = u => hasProperty(u, symbol); /** * Wraps {@link equals} as an `Equivalence`. * - * When to use: - * - When an API (e.g. `Array.dedupeWith`, `Equivalence.mapInput`) requires an - * `Equivalence` and you want to reuse `Equal.equals`. + * **When to use** + * + * Use when you want to pass `Equal.equals` to APIs that require an + * `Equivalence`. + * + * **Details** * - * Behavior: * - Returns a function `(a: A, b: A) => boolean` that delegates to * {@link equals}. * - Pure; allocates a thin wrapper on each call. * - * **Example** (deduplicating with Equal semantics) + * **Example** (Deduplicating with Equal Semantics) * * ```ts * import { Array, Equal } from "effect" @@ -287,21 +286,20 @@ export const isEqual = u => hasProperty(u, symbol); * ``` * * @see {@link equals} — the underlying comparison function - * * @category instances - * @since 2.0.0 + * @since 4.0.0 */ export const asEquivalence = () => equals; /** * Creates a proxy that uses reference equality instead of structural equality. * - * When to use: - * - When you have a plain object or array that should be compared by identity - * (reference), not by contents. - * - When you want to preserve the original object unchanged and get a new - * reference-equal handle. + * **When to use** + * + * Use when you need to compare a plain object or array by identity without + * mutating the original value. + * + * **Details** * - * Behavior: * - Returns a `Proxy` wrapping `obj`. The proxy reads through to the * original, so property access is unchanged. * - The proxy is registered in an internal WeakSet; {@link equals} returns @@ -310,7 +308,7 @@ export const asEquivalence = () => equals; * - Each call creates a **new** proxy, so `byReference(x) !== byReference(x)`. * - Does **not** mutate the original object (unlike {@link byReferenceUnsafe}). * - * **Example** (opting out of structural equality) + * **Example** (Opting Out of Structural Equality) * * ```ts * import { Equal } from "effect" @@ -329,30 +327,32 @@ export const asEquivalence = () => equals; * @see {@link byReferenceUnsafe} — same effect without a proxy (mutates the * original) * @see {@link equals} — the comparison function affected by this opt-out - * - * @category utility - * @since 2.0.0 + * @category equality + * @since 4.0.0 */ export const byReference = obj => byReferenceUnsafe(new Proxy(obj, {})); /** - * Permanently marks an object to use reference equality, without creating a - * proxy. + * Marks an object permanently to use reference equality, without creating a proxy. + * + * **When to use** + * + * Use when you need reference equality without proxy allocation and accept + * permanently marking the original object for reference-only equality. * - * When to use: - * - When you want reference equality semantics and can accept that the - * original object is **permanently** modified. - * - When proxy overhead is unacceptable (hot paths, large collections). + * **Details** * - * Behavior: * - Adds `obj` to an internal WeakSet. From that point on, {@link equals} * treats it as reference-only. * - Returns the **same** object (not a copy or proxy), so * `byReferenceUnsafe(x) === x`. - * - The marking is irreversible for the lifetime of the object. * - Does **not** affect the object's prototype, properties, or behavior * beyond equality checks. * - * **Example** (marking an object for reference equality) + * **Gotchas** + * + * The marking is irreversible for the lifetime of the object. + * + * **Example** (Marking an Object for Reference Equality) * * ```ts * import { Equal } from "effect" @@ -369,9 +369,8 @@ export const byReference = obj => byReferenceUnsafe(new Proxy(obj, {})); * * @see {@link byReference} — safer alternative that creates a proxy * @see {@link equals} — the comparison function affected by this opt-out - * - * @category utility - * @since 2.0.0 + * @category unsafe + * @since 4.0.0 */ export const byReferenceUnsafe = obj => { byReferenceInstances.add(obj); diff --git a/.opencode/node_modules/effect/dist/Equal.js.map b/.opencode/node_modules/effect/dist/Equal.js.map index df98b8c998e323d2ef52e16bd284073cd5aeaf41..d2b9446b22e2f9e56102b659ebabdd52af2d951e 100644 --- a/.opencode/node_modules/effect/dist/Equal.js.map +++ b/.opencode/node_modules/effect/dist/Equal.js.map @@ -1 +1 @@ -{"version":3,"file":"Equal.js","names":["Hash","byReferenceInstances","getAllObjectKeys","hasProperty","symbol","equals","arguments","length","self","compareBoth","that","selfType","has","withCache","compareObjects","withVisitedTracking","fn","hasLeft","visitedLeft","hasRight","visitedRight","add","result","delete","WeakSet","hash","Date","toISOString","RegExp","toString","selfIsEqual","isEqual","thatIsEqual","bothEquals","Array","isArray","compareArrays","ArrayBuffer","isView","byteLength","compareTypedArrays","Map","size","compareMaps","Set","compareSets","compareRecords","f","selfMap","equalityCache","get","WeakMap","set","thatMap","i","selfKeys","thatKeys","key","makeCompareMap","keyEquivalence","valueEquivalence","selfKey","selfValue","found","thatKey","thatValue","makeCompareSet","equivalence","u","asEquivalence","byReference","obj","byReferenceUnsafe","Proxy"],"sources":["../src/Equal.ts"],"sourcesContent":[null],"mappings":"AAwEA,OAAO,KAAKA,IAAI,MAAM,WAAW;AACjC,SAASC,oBAAoB,EAAEC,gBAAgB,QAAQ,qBAAqB;AAC5E,SAASC,WAAW,QAAQ,gBAAgB;AAE5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqCA,OAAO,MAAMC,MAAM,GAAG,0BAA0B;AA4HhD,OAAM,SAAUC,MAAMA,CAAA;EACpB,IAAIC,SAAS,CAACC,MAAM,KAAK,CAAC,EAAE;IAC1B,OAAQC,IAAa,IAAKC,WAAW,CAACD,IAAI,EAAEF,SAAS,CAAC,CAAC,CAAC,CAAC;EAC3D;EACA,OAAOG,WAAW,CAACH,SAAS,CAAC,CAAC,CAAC,EAAEA,SAAS,CAAC,CAAC,CAAC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AAStB,WAAWA,CAACrC,IAAiB,EAAEE,IAAiB;IAC9D,KAAK,MAAMoD,SAAS,IAAItD,IAAI,EAAE;MAC5B,IAAIuD,KAAK,GAAG,KAAK;MACjB,KAAK,MAAME,SAAS,IAAIvD,IAAI,EAAE;QAC5B,IAAIyD,WAAW,CAACL,SAAS,EAAEG,SAAS,CAAC,EAAE;UACrCF,KAAK,GAAG,IAAI;UACZ;QACF;MACF;MACA,IAAI,CAACA,KAAK,EAAE;QACV,OAAO,KAAK;MACd;IACF;IAEA,OAAO,IAAI;EACb,CAAC;AACH;AAEA,MAAMlB,WAAW,gBAAGqB,cAAc,CAACzD,WAAW,CAAC;AAE/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyCA,OAAO,MAAMsB,OAAO,GAAIqC,CAAU,IAAiBjE,WAAW,CAACiE,CAAC,EAAEhE,MAAM,CAAC;AAEzE;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BA,OAAO,MAAMiE,aAAa,GAA4BA,CAAA,KAAMhE,MAAM;AAElE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyCA,OAAO,MAAMiE,WAAW,GAAsBC,GAAM,IAAQC,iBAAiB,CAAC,IAAIC,KAAK,CAACF,GAAG,EAAE,EAAE,CAAC,CAAC;AAEjG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuCA,OAAO,MAAMC,iBAAiB,GAAsBD,GAAM,IAAO;EAC/DtE,oBAAoB,CAACoB,GAAG,CAACkD,GAAG,CAAC;EAC7B,OAAOA,GAAG;AACZ,CAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"Equal.js","names":["Hash","byReferenceInstances","getAllObjectKeys","hasProperty","symbol","equals","arguments","length","self","compareBoth","that","selfType","has","withCache","compareObjects","withVisitedTracking","fn","hasLeft","visitedLeft","hasRight","visitedRight","add","result","delete","WeakSet","hash","Date","toISOString","RegExp","toString","selfIsEqual","isEqual","thatIsEqual","bothEquals","Array","isArray","compareArrays","ArrayBuffer","isView","byteLength","compareTypedArrays","Map","size","compareMaps","Set","compareSets","compareRecords","f","selfMap","equalityCache","get","WeakMap","set","thatMap","i","selfKeys","thatKeys","key","makeCompareMap","keyEquivalence","valueEquivalence","selfKey","selfValue","found","thatKey","thatValue","makeCompareSet","equivalence","u","asEquivalence","byReference","obj","byReferenceUnsafe","Proxy"],"sources":["../src/Equal.ts"],"sourcesContent":[null],"mappings":"AAYA,OAAO,KAAKA,IAAI,MAAM,WAAW;AACjC,SAASC,oBAAoB,EAAEC,gBAAgB,QAAQ,qBAAqB;AAC5E,SAASC,WAAW,QAAQ,gBAAgB;AAE5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmCA,OAAO,MAAMC,MAAM,GAAG,0BAA0B;AA4HhD,OAAM,SAAUC,MAAMA,CAAA;EACpB,IAAIC,SAAS,CAACC,MAAM,KAAK,CAAC,EAAE;IAC1B,OAAQC,IAAa,IAAKC,WAAW,CAACD,IAAI,EAAEF,SAAS,CAAC,CAAC,CAAC,CAAC;EAC3D;EACA,OAAOG,WAAW,CAACH,SAAS,CAAC,CAAC,CAAC,EAAEA,SAAS,CAAC,CAAC,CAAC,CAAC;AAChD;AAEA,SAASG,WAAWA,CAACD,IAAa,EAAEE,IAAa;EAC/C,IAAIF,IAAI,KAAKE,IAAI,EAAE,OAAO,IAAI;EAC9B,IAAIF,IAAI,IAAI,IAAI,IAAIE,IAAI,IAAI,IAAI,EAAE,OAAO,KAAK;EAC9C,MAAMC,QAAQ,GAAG,OAAOH,IAAI;EAC5B,IAAIG,QAAQ,KAAK,OAAOD,IAAI,EAAE;IAC5B,OAAO,KAAK;EACd;EACA;EACA,IAAIC,QAAQ,KAAK,QAAQ,IAAIH,IAAI,KAAKA,IAAI,IAAIE,IAAI,KAAKA,IAAI,EAAE;IAC3D,OAAO,IAAI;EACb;EACA,IAAIC,QAAQ,KAAK,QAAQ,IAAIA,QAAQ,KAAK,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A,OAAO,MAAMsB,OAAO,GAAIqC,CAAU,IAAiBjE,WAAW,CAACiE,CAAC,EAAEhE,MAAM,CAAC;AAEzE;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BA,OAAO,MAAMiE,aAAa,GAA4BA,CAAA,KAAMhE,MAAM;AAElE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwCA,OAAO,MAAMiE,WAAW,GAAsBC,GAAM,IAAQC,iBAAiB,CAAC,IAAIC,KAAK,CAACF,GAAG,EAAE,EAAE,CAAC,CAAC;AAEjG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyCA,OAAO,MAAMC,iBAAiB,GAAsBD,GAAM,IAAO;EAC/DtE,oBAAoB,CAACoB,GAAG,CAACkD,GAAG,CAAC;EAC7B,OAAOA,GAAG;AACZ,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Equivalence.d.ts b/.opencode/node_modules/effect/dist/Equivalence.d.ts index 512ad16cf38f1bcdb5980b9825baca32a782f2cc..7441ba8be124605f07bc116d7494467c68a221f6 100644 --- a/.opencode/node_modules/effect/dist/Equivalence.d.ts +++ b/.opencode/node_modules/effect/dist/Equivalence.d.ts @@ -3,13 +3,12 @@ import * as Reducer from "./Reducer.ts"; /** * Represents an equivalence relation over type `A`. * - * When to use this: - * - As a type annotation for equivalence functions - * - When implementing custom equivalence logic - * - When working with collection operations that require equivalence relations + * **When to use** + * + * Use as a type annotation when you accept or return an equivalence function. + * + * **Details** * - * Behavior: - * - Pure function: does not mutate inputs or have side effects * - Returns `boolean`: `true` if values are equivalent, `false` otherwise * - Must satisfy reflexive, symmetric, and transitive properties * @@ -40,8 +39,8 @@ import * as Reducer from "./Reducer.ts"; * console.log(pointEq({ x: 1, y: 2 }, { x: 1, y: 2 })) // true * ``` * - * See also: {@link make}, {@link strictEqual} - * + * @see {@link make} + * @see {@link strictEqual} * @category type class * @since 2.0.0 */ @@ -49,23 +48,22 @@ export type Equivalence = (self: A, that: A) => boolean; /** * Type lambda for `Equivalence`, used for higher-kinded type operations. * - * When to use this: - * - Rarely needed in application code - * - Primarily for internal type system operations and HKT (Higher-Kinded Types) abstractions - * - When working with generic type constructors that require type lambdas + * **When to use** + * + * Use when you need to abstract over `Equivalence` in higher-kinded type code. + * + * **Details** * - * Behavior: * - Enables `Equivalence` to work with the Effect type system's HKT infrastructure * - Used internally for type-level computations and generic abstractions * * **Example** (Type-level usage) * * ```ts - * import type { Equivalence } from "effect" - * import type { Kind } from "effect/HKT" + * import type { Equivalence, HKT } from "effect" * * // Used internally for type-level computations - * type NumberEquivalence = Kind< + * type NumberEquivalence = HKT.Kind< * Equivalence.EquivalenceTypeLambda, * never, * never, @@ -75,8 +73,8 @@ export type Equivalence = (self: A, that: A) => boolean; * // Equivalent to: Equivalence.Equivalence * ``` * - * See also: {@link Equivalence}, {@link TypeLambda} - * + * @see {@link Equivalence} + * @see {@link TypeLambda} * @category type lambdas * @since 2.0.0 */ @@ -86,16 +84,17 @@ export interface EquivalenceTypeLambda extends TypeLambda { /** * Creates a custom equivalence relation with an optimized reference equality check. * - * When to use this: - * - When you need a custom equivalence that isn't just strict equality - * - When creating equivalences for complex types with custom comparison logic - * - When you want the performance benefit of reference equality optimization + * **When to use** + * + * Use when you need an equality rule that the built-in instances and input + * mapping helpers cannot express, and you can provide a law-abiding comparison. + * + * **Details** * - * Behavior: - * - Does not mutate inputs - * - First checks reference equality (`===`) for performance; if values are identical, returns `true` without calling the function - * - Falls back to the provided equivalence function if values are not the same reference - * - The provided function must satisfy reflexive, symmetric, and transitive properties + * The returned equivalence first checks reference equality (`===`) for + * performance. If the values are not the same reference, it falls back to the + * provided equivalence function, which must satisfy reflexive, symmetric, and + * transitive properties. * * **Example** (Case-insensitive string equivalence) * @@ -121,12 +120,12 @@ export interface EquivalenceTypeLambda extends TypeLambda { * * const tolerance = Equivalence.make((a, b) => Math.abs(a - b) < 0.0001) * - * console.log(tolerance(1.0, 1.0001)) // false + * console.log(tolerance(1.0, 1.001)) // false * console.log(tolerance(1.0, 1.00001)) // true * ``` * - * See also: {@link strictEqual}, {@link mapInput} - * + * @see {@link strictEqual} + * @see {@link mapInput} * @category constructors * @since 2.0.0 */ @@ -134,18 +133,20 @@ export declare const make: (isEquivalent: (self: A, that: A) => boolean) => E /** * Creates an equivalence relation that uses strict equality (`===`) to compare values. * - * When to use this: - * - For primitive types (numbers, strings, booleans) where `===` is appropriate - * - When you need reference equality for objects (same object instance) - * - As a building block for more complex equivalences via {@link mapInput} or {@link combine} - * - When performance is critical and you don't need structural equality + * **When to use** + * + * Use when you need strict equality (`===`) as the comparison. + * + * **Details** + * + * Uses JavaScript's strict equality operator (`===`). Primitives compare by + * value. Objects compare by reference, so only the same object instance is + * equivalent. Use this as a building block for more complex equivalences via + * `mapInput` or `combine`. * - * Behavior: - * - Does not mutate inputs - * - Uses JavaScript's strict equality operator (`===`) - * - For primitives: compares values directly - * - For objects: compares by reference (same object instance) - * - Note: `NaN !== NaN`, so `NaN` values are never considered equivalent + * **Gotchas** + * + * `NaN !== NaN`, so `NaN` values are never considered equivalent. * * **Example** (Primitive types) * @@ -171,16 +172,21 @@ export declare const make: (isEquivalent: (self: A, that: A) => boolean) => E * console.log(strictObjEq(obj, { value: 42 })) // false (different references) * ``` * - * See also: {@link make}, {@link Equal} (for structural equality) - * + * @see {@link make} + * @see `Equal` for structural equality * @category constructors * @since 4.0.0 */ export declare const strictEqual: () => Equivalence; /** - * An `Equivalence` instance for strings using strict equality (`===`). + * Equivalence instance for strings using strict equality (`===`). + * + * **When to use** + * + * Use when you need to supply case-sensitive string equality. + * + * **Example** (Comparing strings) * - * @example * ```ts * import { Equivalence } from "effect" * @@ -193,11 +199,14 @@ export declare const strictEqual: () => Equivalence; */ export declare const String: Equivalence; /** - * An `Equivalence` instance for numbers. + * Equivalence instance for numbers. + * + * **When to use** + * + * Use when you need numeric equality that treats NaN as equal to itself. * - * `NaN` is considered equal to `NaN`. + * **Example** (Comparing numbers) * - * @example * ```ts * import { Equivalence } from "effect" * @@ -211,9 +220,14 @@ export declare const String: Equivalence; */ export declare const Number: Equivalence; /** - * An `Equivalence` instance for booleans using strict equality (`===`). + * Equivalence instance for booleans using strict equality (`===`). + * + * **When to use** + * + * Use when you need to supply boolean equality. + * + * **Example** (Comparing booleans) * - * @example * ```ts * import { Equivalence } from "effect" * @@ -226,9 +240,14 @@ export declare const Number: Equivalence; */ export declare const Boolean: Equivalence; /** - * An `Equivalence` instance for bigints using strict equality (`===`). + * Equivalence instance for bigints using strict equality (`===`). + * + * **When to use** + * + * Use when you need to supply bigint equality. + * + * **Example** (Comparing bigints) * - * @example * ```ts * import { Equivalence } from "effect" * @@ -243,16 +262,16 @@ export declare const BigInt: Equivalence; /** * Combines two equivalence relations using logical AND. * - * When to use this: - * - When you need to combine exactly two equivalences - * - When building complex equivalences from simpler ones - * - When you want both conditions to be satisfied (AND logic) + * **When to use** * - * Behavior: - * - Does not mutate inputs - * - Returns `true` only if both equivalences return `true` - * - Short-circuits: if the first equivalence returns `false`, the second is not called - * - The result is also an equivalence (satisfies reflexive, symmetric, transitive properties) + * Use when you need to combine exactly two equivalences with AND semantics. + * + * **Details** + * + * Returns `true` only if both equivalences return `true`. The comparison + * short-circuits when the first equivalence returns `false`. The result is also + * an equivalence that satisfies reflexive, symmetric, and transitive + * properties. * * **Example** (Combining name and age equivalences) * @@ -284,8 +303,8 @@ export declare const BigInt: Equivalence; * console.log(personEquivalence(person1, person3)) // false (different age) * ``` * - * See also: {@link combineAll}, {@link mapInput} - * + * @see {@link combineAll} + * @see {@link mapInput} * @category combining * @since 2.0.0 */ @@ -293,16 +312,16 @@ export declare const combine: { /** * Combines two equivalence relations using logical AND. * - * When to use this: - * - When you need to combine exactly two equivalences - * - When building complex equivalences from simpler ones - * - When you want both conditions to be satisfied (AND logic) + * **When to use** + * + * Use when you need to combine exactly two equivalences with AND semantics. * - * Behavior: - * - Does not mutate inputs - * - Returns `true` only if both equivalences return `true` - * - Short-circuits: if the first equivalence returns `false`, the second is not called - * - The result is also an equivalence (satisfies reflexive, symmetric, transitive properties) + * **Details** + * + * Returns `true` only if both equivalences return `true`. The comparison + * short-circuits when the first equivalence returns `false`. The result is also + * an equivalence that satisfies reflexive, symmetric, and transitive + * properties. * * **Example** (Combining name and age equivalences) * @@ -334,8 +353,8 @@ export declare const combine: { * console.log(personEquivalence(person1, person3)) // false (different age) * ``` * - * See also: {@link combineAll}, {@link mapInput} - * + * @see {@link combineAll} + * @see {@link mapInput} * @category combining * @since 2.0.0 */ @@ -343,16 +362,16 @@ export declare const combine: { /** * Combines two equivalence relations using logical AND. * - * When to use this: - * - When you need to combine exactly two equivalences - * - When building complex equivalences from simpler ones - * - When you want both conditions to be satisfied (AND logic) + * **When to use** + * + * Use when you need to combine exactly two equivalences with AND semantics. + * + * **Details** * - * Behavior: - * - Does not mutate inputs - * - Returns `true` only if both equivalences return `true` - * - Short-circuits: if the first equivalence returns `false`, the second is not called - * - The result is also an equivalence (satisfies reflexive, symmetric, transitive properties) + * Returns `true` only if both equivalences return `true`. The comparison + * short-circuits when the first equivalence returns `false`. The result is also + * an equivalence that satisfies reflexive, symmetric, and transitive + * properties. * * **Example** (Combining name and age equivalences) * @@ -384,8 +403,8 @@ export declare const combine: { * console.log(personEquivalence(person1, person3)) // false (different age) * ``` * - * See also: {@link combineAll}, {@link mapInput} - * + * @see {@link combineAll} + * @see {@link mapInput} * @category combining * @since 2.0.0 */ @@ -394,18 +413,17 @@ export declare const combine: { /** * Combines multiple equivalence relations into a single equivalence using logical AND. * - * When to use this: - * - When you need to combine three or more equivalences - * - When you have a dynamic collection of equivalences to combine - * - When building equivalences from arrays or iterables - * - Prefer over multiple `combine` calls when you have many equivalences + * **When to use** + * + * Use when you need to combine many `Equivalence` instances from an iterable. + * + * **Details** * - * Behavior: - * - Does not mutate inputs - * - Returns `true` only if all equivalences in the collection return `true` - * - Short-circuits: stops at the first equivalence that returns `false` - * - Empty collection edge case: returns an equivalence that always returns `true` - * - The result is also an equivalence (satisfies reflexive, symmetric, transitive properties) + * Returns `true` only if all equivalences in the collection return `true`. The + * comparison stops at the first equivalence that returns `false`. Empty + * collections return an equivalence that always returns `true`. The result is + * also an equivalence that satisfies reflexive, symmetric, and transitive + * properties. * * **Example** (Combining multiple field equivalences) * @@ -451,8 +469,8 @@ export declare const combine: { * console.log(alwaysEq("anything", "else")) // true * ``` * - * See also: {@link combine}, {@link mapInput} - * + * @see {@link combine} + * @see {@link mapInput} * @category combining * @since 2.0.0 */ @@ -460,18 +478,18 @@ export declare const combineAll: (collection: Iterable>) => Eq /** * Transforms an equivalence relation by mapping the input values before comparison. * - * When to use this: - * - When you need an equivalence for a complex type based on a single property - * - When you want to normalize values before comparison (e.g., case-insensitive strings) - * - When creating equivalences that focus on specific fields of objects - * - As a building block for creating equivalences via {@link combine} or {@link combineAll} + * **When to use** + * + * Use when you need an equivalence for one type by comparing a derived value. + * + * **Details** * - * Behavior: - * - Does not mutate inputs * - Applies the transformation function to both values before comparing - * - The transformation function should be pure (no side effects) + * - The transformation function should be pure and have no side effects * - The resulting equivalence compares the transformed values using the provided equivalence - * - The result is also an equivalence (satisfies reflexive, symmetric, transitive properties) + * - The result is also an equivalence that satisfies reflexive, symmetric, and transitive properties + * - Useful for comparing by one property or normalizing values before + * comparison, such as case-insensitive strings * * **Example** (Equivalence based on object property) * @@ -512,8 +530,8 @@ export declare const combineAll: (collection: Iterable>) => Eq * console.log(caseInsensitiveEq("Hello", "World")) // false * ``` * - * See also: {@link combine}, {@link Struct} - * + * @see {@link combine} + * @see {@link Struct} * @category mapping * @since 2.0.0 */ @@ -521,18 +539,18 @@ export declare const mapInput: { /** * Transforms an equivalence relation by mapping the input values before comparison. * - * When to use this: - * - When you need an equivalence for a complex type based on a single property - * - When you want to normalize values before comparison (e.g., case-insensitive strings) - * - When creating equivalences that focus on specific fields of objects - * - As a building block for creating equivalences via {@link combine} or {@link combineAll} + * **When to use** + * + * Use when you need an equivalence for one type by comparing a derived value. + * + * **Details** * - * Behavior: - * - Does not mutate inputs * - Applies the transformation function to both values before comparing - * - The transformation function should be pure (no side effects) + * - The transformation function should be pure and have no side effects * - The resulting equivalence compares the transformed values using the provided equivalence - * - The result is also an equivalence (satisfies reflexive, symmetric, transitive properties) + * - The result is also an equivalence that satisfies reflexive, symmetric, and transitive properties + * - Useful for comparing by one property or normalizing values before + * comparison, such as case-insensitive strings * * **Example** (Equivalence based on object property) * @@ -573,8 +591,8 @@ export declare const mapInput: { * console.log(caseInsensitiveEq("Hello", "World")) // false * ``` * - * See also: {@link combine}, {@link Struct} - * + * @see {@link combine} + * @see {@link Struct} * @category mapping * @since 2.0.0 */ @@ -582,18 +600,18 @@ export declare const mapInput: { /** * Transforms an equivalence relation by mapping the input values before comparison. * - * When to use this: - * - When you need an equivalence for a complex type based on a single property - * - When you want to normalize values before comparison (e.g., case-insensitive strings) - * - When creating equivalences that focus on specific fields of objects - * - As a building block for creating equivalences via {@link combine} or {@link combineAll} + * **When to use** + * + * Use when you need an equivalence for one type by comparing a derived value. + * + * **Details** * - * Behavior: - * - Does not mutate inputs * - Applies the transformation function to both values before comparing - * - The transformation function should be pure (no side effects) + * - The transformation function should be pure and have no side effects * - The resulting equivalence compares the transformed values using the provided equivalence - * - The result is also an equivalence (satisfies reflexive, symmetric, transitive properties) + * - The result is also an equivalence that satisfies reflexive, symmetric, and transitive properties + * - Useful for comparing by one property or normalizing values before + * comparison, such as case-insensitive strings * * **Example** (Equivalence based on object property) * @@ -634,8 +652,8 @@ export declare const mapInput: { * console.log(caseInsensitiveEq("Hello", "World")) // false * ``` * - * See also: {@link combine}, {@link Struct} - * + * @see {@link combine} + * @see {@link Struct} * @category mapping * @since 2.0.0 */ @@ -644,18 +662,18 @@ export declare const mapInput: { /** * Creates an equivalence for tuples with heterogeneous element types. * - * When to use this: - * - When comparing tuples with different types at each position - * - When you need different equivalence logic for each tuple element - * - When working with fixed-length tuples (not arrays) - * - Prefer over `Array` when you have a known tuple structure with different types + * **When to use** * - * Behavior: - * - Does not mutate inputs - * - Requires tuples to have the same length; different lengths are never equivalent - * - Applies each equivalence to the corresponding element position - * - Returns `true` only if all elements are equivalent according to their respective equivalences - * - The result is also an equivalence (satisfies reflexive, symmetric, transitive properties) + * Use when you need an `Equivalence` for fixed-length tuples with per-position + * equivalences. + * + * **Details** + * + * Tuples must have the same length; different lengths are never equivalent. + * Each equivalence is applied to the corresponding element position. The result + * returns `true` only if all elements are equivalent according to their + * respective equivalences, and it also satisfies reflexive, symmetric, and + * transitive properties. * * **Example** (Homogeneous tuple equivalence) * @@ -676,7 +694,7 @@ export declare const mapInput: { * console.log(stringTupleEq(tuple1, tuple3)) // false (different third element) * ``` * - * **Example** (Heterogeneous tuple with custom equivalences) + * **Example** (Tuple with custom equivalences) * * ```ts * import { Equivalence } from "effect" @@ -697,8 +715,6 @@ export declare const mapInput: { * ) // true * ``` * - * See also: {@link Array_}, {@link Struct} - * * @category combinators * @since 4.0.0 */ @@ -713,19 +729,17 @@ export { /** * Creates an equivalence for arrays where all elements are compared using the same equivalence. * - * When to use this: - * - When comparing arrays with homogeneous element types - * - When all elements should use the same equivalence logic - * - When working with variable-length arrays (not fixed tuples) - * - Prefer over `Tuple` when you have arrays of the same type + * **When to use** + * + * Use when you need to compare arrays with one equivalence for every element. + * + * **Details** * - * Behavior: - * - Does not mutate inputs * - Requires arrays to have the same length; different lengths are never equivalent - * - Compares elements positionally (index 0 with index 0, etc.) + * - Compares elements positionally, such as index `0` with index `0` * - Returns `true` only if all corresponding elements are equivalent * - Empty arrays are considered equivalent - * - The result is also an equivalence (satisfies reflexive, symmetric, transitive properties) + * - The result is also an equivalence that satisfies reflexive, symmetric, and transitive properties * * **Example** (Number array equivalence) * @@ -755,8 +769,8 @@ export { * console.log(stringArrayEq([], [])) // true (empty arrays) * ``` * - * See also: {@link Tuple}, {@link Record} - * + * @see {@link Tuple} + * @see {@link Record} * @category combinators * @since 4.0.0 */ @@ -764,19 +778,18 @@ Array_ as Array }; /** * Creates an equivalence for objects by comparing their properties using provided equivalences. * - * When to use this: - * - When comparing objects with known, fixed property names - * - When you need different equivalence logic for different properties - * - When working with struct/interface types with specific fields - * - Prefer over `Record` when you have a fixed set of known properties + * **When to use** + * + * Use when you need an `Equivalence` for objects with known, fixed property + * names. + * + * **Details** * - * Behavior: - * - Does not mutate inputs - * - Compares only the properties specified in the struct definition - * - Properties not in the struct are ignored - * - Returns `true` only if all specified properties are equivalent according to their equivalences - * - Supports both string and symbol keys (via `Reflect.ownKeys`) - * - The result is also an equivalence (satisfies reflexive, symmetric, transitive properties) + * Compares only the properties specified in the struct definition; other + * properties are ignored. String and symbol keys are supported via + * `Reflect.ownKeys`. The result returns `true` only if all specified properties + * are equivalent according to their equivalences, and it also satisfies + * reflexive, symmetric, and transitive properties. * * **Example** (Struct with different equivalences per field) * @@ -824,8 +837,9 @@ Array_ as Array }; * console.log(nameAgeEq(obj1, obj2)) // true * ``` * - * See also: {@link Record}, {@link mapInput}, {@link combine} - * + * @see {@link Record} + * @see {@link mapInput} + * @see {@link combine} * @category combinators * @since 4.0.0 */ @@ -835,20 +849,19 @@ export declare function Struct>>(field /** * Creates an equivalence for objects by comparing all properties using the same equivalence. * - * When to use this: - * - When comparing objects with dynamic or unknown property names - * - When all property values should use the same equivalence logic - * - When working with record/dictionary types (key-value maps) - * - Prefer over `Struct` when you have variable properties or need to compare all properties uniformly + * **When to use** + * + * Use when you need to compare records with the same equivalence for every + * property value. + * + * **Details** * - * Behavior: - * - Does not mutate inputs * - Compares all properties present in both objects * - Requires both objects to have the same set of keys; different keys result in `false` * - All property values must be equivalent according to the provided equivalence - * - Supports both string and symbol keys (via `Reflect.ownKeys`) + * - Supports both string and symbol keys via `Reflect.ownKeys` * - Empty objects are considered equivalent - * - The result is also an equivalence (satisfies reflexive, symmetric, transitive properties) + * - The result is also an equivalence that satisfies reflexive, symmetric, and transitive properties * * **Example** (Record with string values) * @@ -882,8 +895,6 @@ export declare function Struct>>(field * console.log(numberRecordEq(scores1, scores3)) // false * ``` * - * See also: {@link Struct}, {@link Array_} - * * @category combinators * @since 4.0.0 */ @@ -891,16 +902,16 @@ export declare function Record(value: Equivalence): Equivalence(value: Equivalence): Equivalence(): Reducer.Reducer>; /** - * An `Equivalence` instance for `Date` objects. + * Equivalence instance for `Date` objects that compares their `getTime()` values using `Equivalence.Number`. * - * Dates are compared by their time value (milliseconds since the Unix epoch), - * using {@link Date.prototype.getTime}. + * **When to use** * - * When to use this: - * - When comparing `Date` objects by their exact point in time - * - When you need value-based equality instead of reference equality - * - When working with collections that contain `Date` values + * Use when you need an `Equivalence` for JavaScript date objects by their + * millisecond timestamp. * - * Behavior: - * - Does not mutate inputs - * - Two dates are equivalent if `self.getTime() === that.getTime()` - * - Internally uses {@link Number} equivalence - * - Different `Date` instances representing the same time are considered equivalent + * **Details** * - * **Example** + * Different `Date` instances that represent the same millisecond timestamp are equivalent. Because `Equivalence.Number` + * treats `NaN` as equal to `NaN`, two invalid `Date` values are also considered equivalent. + * + * **Example** (Comparing Date values) * * ```ts * import { Equivalence } from "effect" @@ -974,10 +979,11 @@ export declare function makeReducer(): Reducer.Reducer>; * console.log(Equivalence.Date(d1, d2)) // true (same time value) * ``` * - * See also: {@link Number}, {@link mapInput}, {@link strictEqual} - * + * @see {@link Number} for the numeric equivalence applied to each `Date#getTime()` result + * @see {@link mapInput} for deriving an equivalence by mapping inputs before comparison + * @see {@link strictEqual} for reference equality when two values must be the same object * @category instances - * @since 4.0.0 + * @since 2.0.0 */ export declare const Date: Equivalence; //# sourceMappingURL=Equivalence.d.ts.map \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Equivalence.d.ts.map b/.opencode/node_modules/effect/dist/Equivalence.d.ts.map index 58319a2692df2fb9facef7347eb446808f7033fd..4a11324e5df05263390b6a4d949545eae76855eb 100644 --- a/.opencode/node_modules/effect/dist/Equivalence.d.ts.map +++ b/.opencode/node_modules/effect/dist/Equivalence.d.ts.map @@ -1 +1 @@ -{"version":3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AK,EAChB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmEG;AACH,wBAAgB,MAAM,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,GAAG,CAAC,CAAC,EAC/D,MAAM,EAAE,CAAC,GACR,WAAW,CAAC;IAAE,QAAQ,EAAE,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,KAAK;CAAE,CAAC,CAQ7F;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AACH,wBAAgB,MAAM,CAAC,CAAC,EAAE,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,CAepF;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,wBAAgB,WAAW,CAAC,CAAC,qCAM5B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,eAAO,MAAM,IAAI,EAAE,WAAW,CAAC,IAAI,CAGlC,CAAA"} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Equivalence.js b/.opencode/node_modules/effect/dist/Equivalence.js index d9913565e5d93349ea579375d96e449410edaa5b..195cde4b77632e1f5ff8a1bdb89789a8ef314e35 100644 --- a/.opencode/node_modules/effect/dist/Equivalence.js +++ b/.opencode/node_modules/effect/dist/Equivalence.js @@ -1,53 +1,11 @@ /** - * Utilities for defining equivalence relations - binary relations that determine when two values - * should be considered equivalent. Equivalence relations are used for comparing, deduplicating, - * and organizing data in collections and data structures. + * Defines reusable equality functions for values of the same type. * - * ## Mental model - * - * - **Equivalence relation**: A function `(a: A, b: A) => boolean` that returns `true` when values are equivalent - * - **Reflexive property**: Every value is equivalent to itself (`eq(a, a) === true`) - * - **Symmetric property**: If `a` is equivalent to `b`, then `b` is equivalent to `a` (`eq(a, b) === eq(b, a)`) - * - **Transitive property**: If `a` is equivalent to `b` and `b` is equivalent to `c`, then `a` is equivalent to `c` - * - **Reference equality optimization**: {@link make} checks `===` first for performance before calling the custom function - * - **Composition**: Equivalences can be combined using {@link combine} and {@link combineAll} to create more complex relations - * - * ## Common tasks - * - * - Creating custom equivalences → {@link make} - * - Using strict equality (`===`) → {@link strictEqual} - * - Combining multiple equivalences (AND logic) → {@link combine}, {@link combineAll} - * - Transforming input before comparison → {@link mapInput} - * - Creating equivalences for structured types → {@link Struct}, {@link Tuple}, {@link Array_}, {@link Record} - * - * ## Gotchas - * - * - `strictEqual` uses `===`, so `NaN !== NaN` and objects are compared by reference, not structure - * - `make` optimizes with a reference equality check, so identical references return `true` without calling the function - * - `combineAll` with an empty collection returns an equivalence that always returns `true` - * - `Tuple` and `Array` require matching lengths; different lengths are never equivalent - * - * ## Quickstart - * - * **Example** (Case-insensitive string equivalence) - * - * ```ts - * import { Array, Equivalence } from "effect" - * - * const caseInsensitive = Equivalence.make((a, b) => - * a.toLowerCase() === b.toLowerCase() - * ) - * - * const strings = ["Hello", "world", "HELLO", "World"] - * const deduplicated = Array.dedupeWith(strings, caseInsensitive) - * console.log(deduplicated) // ["Hello", "world"] - * ``` - * - * ## See also - * - * - {@link Equal} - For structural equality (can convert to Equivalence) - * - {@link Array_.dedupeWith} - Remove duplicates using an equivalence - * - {@link Chunk} - Collections that use equivalences for operations + * An `Equivalence` returns `true` when two `A` values should be treated as + * the same for a particular purpose. This module includes strict equality + * instances for primitive types, constructors for custom comparisons, and + * helpers for tuples, arrays, structs, records, dates, and values compared + * through a derived field. * * @since 2.0.0 */ @@ -56,16 +14,17 @@ import * as Reducer from "./Reducer.js"; /** * Creates a custom equivalence relation with an optimized reference equality check. * - * When to use this: - * - When you need a custom equivalence that isn't just strict equality - * - When creating equivalences for complex types with custom comparison logic - * - When you want the performance benefit of reference equality optimization + * **When to use** + * + * Use when you need an equality rule that the built-in instances and input + * mapping helpers cannot express, and you can provide a law-abiding comparison. * - * Behavior: - * - Does not mutate inputs - * - First checks reference equality (`===`) for performance; if values are identical, returns `true` without calling the function - * - Falls back to the provided equivalence function if values are not the same reference - * - The provided function must satisfy reflexive, symmetric, and transitive properties + * **Details** + * + * The returned equivalence first checks reference equality (`===`) for + * performance. If the values are not the same reference, it falls back to the + * provided equivalence function, which must satisfy reflexive, symmetric, and + * transitive properties. * * **Example** (Case-insensitive string equivalence) * @@ -91,12 +50,12 @@ import * as Reducer from "./Reducer.js"; * * const tolerance = Equivalence.make((a, b) => Math.abs(a - b) < 0.0001) * - * console.log(tolerance(1.0, 1.0001)) // false + * console.log(tolerance(1.0, 1.001)) // false * console.log(tolerance(1.0, 1.00001)) // true * ``` * - * See also: {@link strictEqual}, {@link mapInput} - * + * @see {@link strictEqual} + * @see {@link mapInput} * @category constructors * @since 2.0.0 */ @@ -105,18 +64,20 @@ const isStrictEquivalent = (x, y) => x === y; /** * Creates an equivalence relation that uses strict equality (`===`) to compare values. * - * When to use this: - * - For primitive types (numbers, strings, booleans) where `===` is appropriate - * - When you need reference equality for objects (same object instance) - * - As a building block for more complex equivalences via {@link mapInput} or {@link combine} - * - When performance is critical and you don't need structural equality + * **When to use** + * + * Use when you need strict equality (`===`) as the comparison. + * + * **Details** + * + * Uses JavaScript's strict equality operator (`===`). Primitives compare by + * value. Objects compare by reference, so only the same object instance is + * equivalent. Use this as a building block for more complex equivalences via + * `mapInput` or `combine`. + * + * **Gotchas** * - * Behavior: - * - Does not mutate inputs - * - Uses JavaScript's strict equality operator (`===`) - * - For primitives: compares values directly - * - For objects: compares by reference (same object instance) - * - Note: `NaN !== NaN`, so `NaN` values are never considered equivalent + * `NaN !== NaN`, so `NaN` values are never considered equivalent. * * **Example** (Primitive types) * @@ -142,16 +103,21 @@ const isStrictEquivalent = (x, y) => x === y; * console.log(strictObjEq(obj, { value: 42 })) // false (different references) * ``` * - * See also: {@link make}, {@link Equal} (for structural equality) - * + * @see {@link make} + * @see `Equal` for structural equality * @category constructors * @since 4.0.0 */ export const strictEqual = () => isStrictEquivalent; /** - * An `Equivalence` instance for strings using strict equality (`===`). + * Equivalence instance for strings using strict equality (`===`). + * + * **When to use** + * + * Use when you need to supply case-sensitive string equality. + * + * **Example** (Comparing strings) * - * @example * ```ts * import { Equivalence } from "effect" * @@ -164,11 +130,14 @@ export const strictEqual = () => isStrictEquivalent; */ export const String = isStrictEquivalent; /** - * An `Equivalence` instance for numbers. + * Equivalence instance for numbers. * - * `NaN` is considered equal to `NaN`. + * **When to use** + * + * Use when you need numeric equality that treats NaN as equal to itself. + * + * **Example** (Comparing numbers) * - * @example * ```ts * import { Equivalence } from "effect" * @@ -182,9 +151,14 @@ export const String = isStrictEquivalent; */ export const Number = /*#__PURE__*/make((self, that) => globalThis.Number.isNaN(self) && globalThis.Number.isNaN(that)); /** - * An `Equivalence` instance for booleans using strict equality (`===`). + * Equivalence instance for booleans using strict equality (`===`). + * + * **When to use** + * + * Use when you need to supply boolean equality. + * + * **Example** (Comparing booleans) * - * @example * ```ts * import { Equivalence } from "effect" * @@ -197,9 +171,14 @@ export const Number = /*#__PURE__*/make((self, that) => globalThis.Number.isNaN( */ export const Boolean = isStrictEquivalent; /** - * An `Equivalence` instance for bigints using strict equality (`===`). + * Equivalence instance for bigints using strict equality (`===`). + * + * **When to use** + * + * Use when you need to supply bigint equality. + * + * **Example** (Comparing bigints) * - * @example * ```ts * import { Equivalence } from "effect" * @@ -214,16 +193,16 @@ export const BigInt = isStrictEquivalent; /** * Combines two equivalence relations using logical AND. * - * When to use this: - * - When you need to combine exactly two equivalences - * - When building complex equivalences from simpler ones - * - When you want both conditions to be satisfied (AND logic) + * **When to use** + * + * Use when you need to combine exactly two equivalences with AND semantics. * - * Behavior: - * - Does not mutate inputs - * - Returns `true` only if both equivalences return `true` - * - Short-circuits: if the first equivalence returns `false`, the second is not called - * - The result is also an equivalence (satisfies reflexive, symmetric, transitive properties) + * **Details** + * + * Returns `true` only if both equivalences return `true`. The comparison + * short-circuits when the first equivalence returns `false`. The result is also + * an equivalence that satisfies reflexive, symmetric, and transitive + * properties. * * **Example** (Combining name and age equivalences) * @@ -255,8 +234,8 @@ export const BigInt = isStrictEquivalent; * console.log(personEquivalence(person1, person3)) // false (different age) * ``` * - * See also: {@link combineAll}, {@link mapInput} - * + * @see {@link combineAll} + * @see {@link mapInput} * @category combining * @since 2.0.0 */ @@ -264,18 +243,17 @@ export const combine = /*#__PURE__*/dual(2, (self, that) => make((x, y) => self( /** * Combines multiple equivalence relations into a single equivalence using logical AND. * - * When to use this: - * - When you need to combine three or more equivalences - * - When you have a dynamic collection of equivalences to combine - * - When building equivalences from arrays or iterables - * - Prefer over multiple `combine` calls when you have many equivalences + * **When to use** + * + * Use when you need to combine many `Equivalence` instances from an iterable. + * + * **Details** * - * Behavior: - * - Does not mutate inputs - * - Returns `true` only if all equivalences in the collection return `true` - * - Short-circuits: stops at the first equivalence that returns `false` - * - Empty collection edge case: returns an equivalence that always returns `true` - * - The result is also an equivalence (satisfies reflexive, symmetric, transitive properties) + * Returns `true` only if all equivalences in the collection return `true`. The + * comparison stops at the first equivalence that returns `false`. Empty + * collections return an equivalence that always returns `true`. The result is + * also an equivalence that satisfies reflexive, symmetric, and transitive + * properties. * * **Example** (Combining multiple field equivalences) * @@ -321,8 +299,8 @@ export const combine = /*#__PURE__*/dual(2, (self, that) => make((x, y) => self( * console.log(alwaysEq("anything", "else")) // true * ``` * - * See also: {@link combine}, {@link mapInput} - * + * @see {@link combine} + * @see {@link mapInput} * @category combining * @since 2.0.0 */ @@ -337,18 +315,18 @@ export const combineAll = collection => make((x, y) => { /** * Transforms an equivalence relation by mapping the input values before comparison. * - * When to use this: - * - When you need an equivalence for a complex type based on a single property - * - When you want to normalize values before comparison (e.g., case-insensitive strings) - * - When creating equivalences that focus on specific fields of objects - * - As a building block for creating equivalences via {@link combine} or {@link combineAll} + * **When to use** + * + * Use when you need an equivalence for one type by comparing a derived value. + * + * **Details** * - * Behavior: - * - Does not mutate inputs * - Applies the transformation function to both values before comparing - * - The transformation function should be pure (no side effects) + * - The transformation function should be pure and have no side effects * - The resulting equivalence compares the transformed values using the provided equivalence - * - The result is also an equivalence (satisfies reflexive, symmetric, transitive properties) + * - The result is also an equivalence that satisfies reflexive, symmetric, and transitive properties + * - Useful for comparing by one property or normalizing values before + * comparison, such as case-insensitive strings * * **Example** (Equivalence based on object property) * @@ -389,8 +367,8 @@ export const combineAll = collection => make((x, y) => { * console.log(caseInsensitiveEq("Hello", "World")) // false * ``` * - * See also: {@link combine}, {@link Struct} - * + * @see {@link combine} + * @see {@link Struct} * @category mapping * @since 2.0.0 */ @@ -398,18 +376,18 @@ export const mapInput = /*#__PURE__*/dual(2, (self, f) => make((x, y) => self(f( /** * Creates an equivalence for tuples with heterogeneous element types. * - * When to use this: - * - When comparing tuples with different types at each position - * - When you need different equivalence logic for each tuple element - * - When working with fixed-length tuples (not arrays) - * - Prefer over `Array` when you have a known tuple structure with different types + * **When to use** * - * Behavior: - * - Does not mutate inputs - * - Requires tuples to have the same length; different lengths are never equivalent - * - Applies each equivalence to the corresponding element position - * - Returns `true` only if all elements are equivalent according to their respective equivalences - * - The result is also an equivalence (satisfies reflexive, symmetric, transitive properties) + * Use when you need an `Equivalence` for fixed-length tuples with per-position + * equivalences. + * + * **Details** + * + * Tuples must have the same length; different lengths are never equivalent. + * Each equivalence is applied to the corresponding element position. The result + * returns `true` only if all elements are equivalent according to their + * respective equivalences, and it also satisfies reflexive, symmetric, and + * transitive properties. * * **Example** (Homogeneous tuple equivalence) * @@ -430,7 +408,7 @@ export const mapInput = /*#__PURE__*/dual(2, (self, f) => make((x, y) => self(f( * console.log(stringTupleEq(tuple1, tuple3)) // false (different third element) * ``` * - * **Example** (Heterogeneous tuple with custom equivalences) + * **Example** (Tuple with custom equivalences) * * ```ts * import { Equivalence } from "effect" @@ -451,8 +429,6 @@ export const mapInput = /*#__PURE__*/dual(2, (self, f) => make((x, y) => self(f( * ) // true * ``` * - * See also: {@link Array_}, {@link Struct} - * * @category combinators * @since 4.0.0 */ @@ -485,19 +461,17 @@ export { /** * Creates an equivalence for arrays where all elements are compared using the same equivalence. * - * When to use this: - * - When comparing arrays with homogeneous element types - * - When all elements should use the same equivalence logic - * - When working with variable-length arrays (not fixed tuples) - * - Prefer over `Tuple` when you have arrays of the same type + * **When to use** + * + * Use when you need to compare arrays with one equivalence for every element. + * + * **Details** * - * Behavior: - * - Does not mutate inputs * - Requires arrays to have the same length; different lengths are never equivalent - * - Compares elements positionally (index 0 with index 0, etc.) + * - Compares elements positionally, such as index `0` with index `0` * - Returns `true` only if all corresponding elements are equivalent * - Empty arrays are considered equivalent - * - The result is also an equivalence (satisfies reflexive, symmetric, transitive properties) + * - The result is also an equivalence that satisfies reflexive, symmetric, and transitive properties * * **Example** (Number array equivalence) * @@ -527,8 +501,8 @@ export { * console.log(stringArrayEq([], [])) // true (empty arrays) * ``` * - * See also: {@link Tuple}, {@link Record} - * + * @see {@link Tuple} + * @see {@link Record} * @category combinators * @since 4.0.0 */ @@ -536,19 +510,18 @@ Array_ as Array }; /** * Creates an equivalence for objects by comparing their properties using provided equivalences. * - * When to use this: - * - When comparing objects with known, fixed property names - * - When you need different equivalence logic for different properties - * - When working with struct/interface types with specific fields - * - Prefer over `Record` when you have a fixed set of known properties + * **When to use** + * + * Use when you need an `Equivalence` for objects with known, fixed property + * names. + * + * **Details** * - * Behavior: - * - Does not mutate inputs - * - Compares only the properties specified in the struct definition - * - Properties not in the struct are ignored - * - Returns `true` only if all specified properties are equivalent according to their equivalences - * - Supports both string and symbol keys (via `Reflect.ownKeys`) - * - The result is also an equivalence (satisfies reflexive, symmetric, transitive properties) + * Compares only the properties specified in the struct definition; other + * properties are ignored. String and symbol keys are supported via + * `Reflect.ownKeys`. The result returns `true` only if all specified properties + * are equivalent according to their equivalences, and it also satisfies + * reflexive, symmetric, and transitive properties. * * **Example** (Struct with different equivalences per field) * @@ -596,8 +569,9 @@ Array_ as Array }; * console.log(nameAgeEq(obj1, obj2)) // true * ``` * - * See also: {@link Record}, {@link mapInput}, {@link combine} - * + * @see {@link Record} + * @see {@link mapInput} + * @see {@link combine} * @category combinators * @since 4.0.0 */ @@ -613,20 +587,19 @@ export function Struct(fields) { /** * Creates an equivalence for objects by comparing all properties using the same equivalence. * - * When to use this: - * - When comparing objects with dynamic or unknown property names - * - When all property values should use the same equivalence logic - * - When working with record/dictionary types (key-value maps) - * - Prefer over `Struct` when you have variable properties or need to compare all properties uniformly + * **When to use** + * + * Use when you need to compare records with the same equivalence for every + * property value. + * + * **Details** * - * Behavior: - * - Does not mutate inputs * - Compares all properties present in both objects * - Requires both objects to have the same set of keys; different keys result in `false` * - All property values must be equivalent according to the provided equivalence - * - Supports both string and symbol keys (via `Reflect.ownKeys`) + * - Supports both string and symbol keys via `Reflect.ownKeys` * - Empty objects are considered equivalent - * - The result is also an equivalence (satisfies reflexive, symmetric, transitive properties) + * - The result is also an equivalence that satisfies reflexive, symmetric, and transitive properties * * **Example** (Record with string values) * @@ -660,8 +633,6 @@ export function Struct(fields) { * console.log(numberRecordEq(scores1, scores3)) // false * ``` * - * See also: {@link Struct}, {@link Array_} - * * @category combinators * @since 4.0.0 */ @@ -681,16 +652,16 @@ export function Record(value) { /** * Creates a `Reducer` for combining `Equivalence` instances, useful for aggregating equivalences in collections. * - * When to use this: - * - When you need to combine multiple equivalences from a collection using reducer patterns - * - When implementing fold operations over collections of equivalences - * - When working with reducers that operate on equivalences + * **When to use** * - * Behavior: - * - Returns a reducer that combines equivalences using {@link combine} - * - Uses an equivalence that always returns `true` as the identity element (for empty collections) - * - Uses {@link combineAll} for combining collections of equivalences - * - The reducer can be used with fold operations on collections + * Use when you need a reducer that combines equivalences. + * + * **Details** + * + * Returns a reducer that combines equivalences using `combine`. The identity + * element for empty collections is an equivalence that always returns `true`. + * The reducer uses `combineAll` for collections of equivalences and can be used + * with fold operations. * * **Example** (Creating a Reducer) * @@ -709,35 +680,29 @@ export function Record(value) { * console.log(combined(1, 1.5)) // false (strict equal fails) * ``` * - * See also: - * - {@link combine} - Combine two equivalences - * - {@link combineAll} - Combine multiple equivalences - * - {@link Reducer} - Reducer type for collection operations - * - * @category utilities + * @see {@link combine} Combine two equivalences + * @see {@link combineAll} Combine multiple equivalences + * @see {@link Reducer} Reducer type for collection operations + * @category constructors * @since 4.0.0 */ export function makeReducer() { return Reducer.make(combine, () => true, combineAll); } /** - * An `Equivalence` instance for `Date` objects. + * Equivalence instance for `Date` objects that compares their `getTime()` values using `Equivalence.Number`. * - * Dates are compared by their time value (milliseconds since the Unix epoch), - * using {@link Date.prototype.getTime}. + * **When to use** * - * When to use this: - * - When comparing `Date` objects by their exact point in time - * - When you need value-based equality instead of reference equality - * - When working with collections that contain `Date` values + * Use when you need an `Equivalence` for JavaScript date objects by their + * millisecond timestamp. * - * Behavior: - * - Does not mutate inputs - * - Two dates are equivalent if `self.getTime() === that.getTime()` - * - Internally uses {@link Number} equivalence - * - Different `Date` instances representing the same time are considered equivalent + * **Details** * - * **Example** + * Different `Date` instances that represent the same millisecond timestamp are equivalent. Because `Equivalence.Number` + * treats `NaN` as equal to `NaN`, two invalid `Date` values are also considered equivalent. + * + * **Example** (Comparing Date values) * * ```ts * import { Equivalence } from "effect" @@ -766,10 +731,11 @@ export function makeReducer() { * console.log(Equivalence.Date(d1, d2)) // true (same time value) * ``` * - * See also: {@link Number}, {@link mapInput}, {@link strictEqual} - * + * @see {@link Number} for the numeric equivalence applied to each `Date#getTime()` result + * @see {@link mapInput} for deriving an equivalence by mapping inputs before comparison + * @see {@link strictEqual} for reference equality when two values must be the same object * @category instances - * @since 4.0.0 + * @since 2.0.0 */ export const Date = /*#__PURE__*/mapInput(Number, d => d.getTime()); //# sourceMappingURL=Equivalence.js.map \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Equivalence.js.map b/.opencode/node_modules/effect/dist/Equivalence.js.map index a8750f5814077483c805dd638f7e9a38370335fa..47a5033896e3ae479aeb1236978b7d9f880493ad 100644 --- a/.opencode/node_modules/effect/dist/Equivalence.js.map +++ b/.opencode/node_modules/effect/dist/Equivalence.js.map @@ -1 +1 @@ -{"version":3,"file":"Equivalence.js","names":["dual","Reducer","make","isEquivalent","self","that","isStrictEquivalent","x","y","strictEqual","String","Number","globalThis","isNaN","Boolean","BigInt","combine","combineAll","collection","equivalence","mapInput","f","Tuple","elements","length","i","Array_","item","Array","Struct","fields","keys","Reflect","ownKeys","key","Record","value","selfKeys","thatKeys","Object","hasOwn","makeReducer","Date","d","getTime"],"sources":["../src/Equivalence.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqDA,SAASA,IAAI,QAAQ,eAAe;AAEpC,OAAO,KAAKC,OAAO,MAAM,cAAc;AAuFvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+CA,OAAO,MAAMC,IAAI,GAAOC,YAA2C,IAAqB,CAACC,IAAO,EAAEC,IAAO,KACvGD,IAAI,KAAKC,IAAI,IAAIF,YAAY,CAACC,IAAI,EAAEC,IAAI,CAAC;AAE3C,MAAMC,kBAAkB,GAAGA,CAACC,CAAU,EAAEC,CAAU,KAAKD,CAAC,KAAKC,CAAC;AAE9D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6CA,OAAO,MAAMC,WAAW,GAA4BA,CAAA,KAAMH,kBAAkB;AAE5E;;;;;;;;;;;;;;AAcA,OAAO,MAAMI,MAAM,GAAwBJ,kBAAkB;AAE7D;;;;;;;;;;;;;;;;;AAiBA,OAAO,MAAMK,MAAM,gBAAwBT,IAAI,CAAC,CAACE,IAAI,EAAEC,IAAI,KACzDO,UAAU,CAACD,MAAM,CAACE,KAAK,CAACT,IAAI,C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gC,CAAO,IAAKA,CAAC,CAACC,OAAO,EAAE,CACzB","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"Equivalence.js","names":["dual","Reducer","make","isEquivalent","self","that","isStrictEquivalent","x","y","strictEqual","String","Number","globalThis","isNaN","Boolean","BigInt","combine","combineAll","collection","equivalence","mapInput","f","Tuple","elements","length","i","Array_","item","Array","Struct","fields","keys","Reflect","ownKeys","key","Record","value","selfKeys","thatKeys","Object","hasOwn","makeReducer","Date","d","getTime"],"sources":["../src/Equivalence.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;;AAWA,SAASA,IAAI,QAAQ,eAAe;AAEpC,OAAO,KAAKC,OAAO,MAAM,cAAc;AAqFvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgDA,OAAO,MAAMC,IAAI,GAAOC,YAA2C,IAAqB,CAACC,IAAO,EAAEC,IAAO,KACvGD,IAAI,KAAKC,IAAI,IAAIF,YAAY,CAACC,IAAI,EAAEC,IAAI,CAAC;AAE3C,MAAMC,kBAAkB,GAAGA,CAACC,CAAU,EAAEC,CAAU,KAAKD,CAAC,KAAKC,CAAC;AAE9D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+CA,OAAO,MAAMC,WAAW,GAA4BA,CAAA,KAAMH,kBAAkB;AAE5E;;;;;;;;;;;;;;;;;;;AAmBA,OAAO,MAAMI,MAAM,GAAwBJ,kBAAkB;AAE7D;;;;;;;;;;;;;;;;;;;;AAoBA,OAAO,MAAMK,MAAM,gBAAwBT,IAAI,CAAC,CAACE,IAAI,EAAEC,IAAI,KACzDO,UAAU,CAACD,MAAM,CAACE,KAAK,CAACT,IAAI,CAAC,IAAIQ,UAAU,CAACD,MAAM,CAACE,KAAK,CAACR,IAAI,CAAC,CAC/D;AAED;;;;;;;;;;;;;;;;;;;AAmBA,OAAO,MAAMS,OAAO,GAAyBR,kBAAkB;AAE/D;;;;;;;;;;;;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CAAC,EAAE7B,IAAI,CAAC6B,GAAG,CAAC,CAAC,EAAE,OAAO,KAAK;IACtD;IACA,OAAO,IAAI;EACb,CAAC,CAAC;AACJ;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoDA,OAAM,SAAUC,MAAMA,CAAIC,KAAqB;EAC7C,OAAOlC,IAAI,CAAC,CAACE,IAAI,EAAEC,IAAI,KAAI;IACzB,MAAMgC,QAAQ,GAAGL,OAAO,CAACC,OAAO,CAAC7B,IAAI,CAAC;IACtC,MAAMkC,QAAQ,GAAGN,OAAO,CAACC,OAAO,CAAC5B,IAAI,CAAC;IAEtC,IAAIgC,QAAQ,CAACb,MAAM,KAAKc,QAAQ,CAACd,MAAM,EAAE,OAAO,KAAK;IAErD,KAAK,MAAMU,GAAG,IAAIG,QAAQ,EAAE;MAC1B,IAAI,CAACE,MAAM,CAACC,MAAM,CAACnC,IAAI,EAAE6B,GAAG,CAAC,IAAI,CAACE,KAAK,CAAChC,IAAI,CAAC8B,GAAG,CAAC,EAAE7B,IAAI,CAAC6B,GAAG,CAAC,CAAC,EAAE;QAC7D,OAAO,KAAK;MACd;IACF;IAEA,OAAO,IAAI;EACb,CAAC,CAAC;AACJ;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqCA,OAAM,SAAUO,WAAWA,CAAA;EACzB,OAAOxC,OAAO,CAACC,IAAI,CACjBc,OAAO,EACP,MAAM,IAAI,EACVC,UAAU,CACX;AACH;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgDA,OAAO,MAAMyB,IAAI,gBAAsBtB,QAAQ,CAC7CT,MAAM,EACLgC,CAAO,IAAKA,CAAC,CAACC,OAAO,EAAE,CACzB","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/ErrorReporter.d.ts b/.opencode/node_modules/effect/dist/ErrorReporter.d.ts index 0ba355ad0d09e0d14aa5c05c6b8bceb7546daf0e..d989f4fa706ec76c937ec7a14e4232645378188d 100644 --- a/.opencode/node_modules/effect/dist/ErrorReporter.d.ts +++ b/.opencode/node_modules/effect/dist/ErrorReporter.d.ts @@ -1,50 +1,12 @@ /** - * Pluggable error reporting for Effect programs. + * Reports Effect failures to external code. * - * Reporting is triggered by `Effect.withErrorReporting`, - * `ErrorReporter.report`, or built-in reporting boundaries in the HTTP and - * RPC server modules. - * - * Each reporter receives a structured callback with the failing `Cause`, a - * pretty-printed `Error`, severity, and any extra attributes attached to the - * original error — making it straightforward to forward failures to Sentry, - * Datadog, or a custom logging backend. - * - * Use the annotation symbols (`ignore`, `severity`, `attributes`) on your - * error classes to control reporting behavior per-error. - * - * @example - * ```ts - * import { Data, Effect, ErrorReporter } from "effect" - * - * // A reporter that logs to the console - * const consoleReporter = ErrorReporter.make(({ error, severity }) => { - * console.error(`[${severity}]`, error.message) - * }) - * - * // An error that should be ignored by reporters - * class NotFoundError extends Data.TaggedError("NotFoundError")<{}> { - * readonly [ErrorReporter.ignore] = true - * } - * - * // An error with custom severity and attributes - * class RateLimitError extends Data.TaggedError("RateLimitError")<{ - * readonly retryAfter: number - * }> { - * readonly [ErrorReporter.severity] = "Warn" as const - * readonly [ErrorReporter.attributes] = { - * retryAfter: this.retryAfter - * } - * } - * - * // Opt in to error reporting with Effect.withErrorReporting - * const program = Effect.gen(function*() { - * return yield* new RateLimitError({ retryAfter: 60 }) - * }).pipe( - * Effect.withErrorReporting, - * Effect.provide(ErrorReporter.layer([consoleReporter])) - * ) - * ``` + * An `ErrorReporter` receives `Cause` values from `Effect.withErrorReporting`, + * manual `report` calls, or built-in reporting boundaries. It forwards each + * non-interruption error to a callback, so applications can send failures to + * logging, monitoring, or error-tracking systems. This module also includes + * layers for installing reporters and symbols for marking errors as ignored or + * attaching severity and attributes. * * @since 4.0.0 */ @@ -57,26 +19,53 @@ import type { Severity } from "./LogLevel.ts"; import type { ReadonlyRecord } from "./Record.ts"; import type * as Scope from "./Scope.ts"; /** + * String literal type used as the runtime type identifier for + * `ErrorReporter` values. + * + * **When to use** + * + * Use to refer to the runtime type identifier type in low-level integrations. + * + * @category type IDs * @since 4.0.0 - * @category Type Identifiers */ export type TypeId = "~effect/ErrorReporter"; /** + * Runtime type identifier attached to `ErrorReporter` values. + * + * **Details** + * + * This marker is part of the runtime representation of `ErrorReporter` + * implementations. Most code should create reporters with `make` and register + * them with `layer`. + * + * @category type IDs * @since 4.0.0 - * @category Type Identifiers */ export declare const TypeId: TypeId; /** * An `ErrorReporter` receives reported failures and forwards them to an - * external system (logging service, error tracker, etc.). + * external system such as a logging service or error tracker. + * + * **When to use** + * + * Use as the interface for custom reporters that forward reported Effect + * failures to logging, monitoring, or error-tracking systems. + * + * **Details** * * Reporting is triggered by `Effect.withErrorReporting`, * `ErrorReporter.report`, or built-in boundaries in the HTTP and RPC server - * modules. Use {@link make} to create a reporter — it handles deduplication + * modules. Use {@link make} to create a reporter; it handles deduplication * and per-error annotation extraction automatically. * + * @see {@link make} for creating an `ErrorReporter` from a callback + * @see {@link layer} for registering reporters in the environment + * @see {@link report} for manually reporting a `Cause` + * @see {@link Effect.withErrorReporting} for reporting failures from an effect + * + * @category models * @since 4.0.0 - * @category Models */ export interface ErrorReporter { readonly [TypeId]: TypeId; @@ -89,12 +78,20 @@ export interface ErrorReporter { /** * Creates an `ErrorReporter` from a callback. * + * **When to use** + * + * Use to define how reported failures are forwarded to a logging, monitoring, + * or error-tracking backend. + * + * **Details** + * * The returned reporter automatically deduplicates causes and individual * errors (the same object is never reported twice), skips interruptions, * and resolves the `ignore`, `severity`, and `attributes` annotations on * each error before invoking your callback. * - * @example + * **Example** (Forwarding errors to the console) + * * ```ts * import { ErrorReporter } from "effect" * @@ -106,8 +103,11 @@ export interface ErrorReporter { * ) * ``` * + * @see {@link layer} for registering reporters in the environment + * @see {@link report} for manually reporting a `Cause` + * + * @category constructors * @since 4.0.0 - * @category Constructors */ export declare const make: (report: (options: { readonly cause: Cause.Cause; @@ -118,28 +118,35 @@ export declare const make: (report: (options: { readonly timestamp: bigint; }) => void) => ErrorReporter; /** - * A `Context.Reference` holding the set of active `ErrorReporter`s for the + * Context reference that holds the set of active error reporters for the * current fiber. Defaults to an empty set (no reporting). * - * Prefer {@link layer} to configure reporters via the `Layer` API. Use this - * reference directly only when you need low-level control (e.g. reading the - * current reporters or swapping them inside a `FiberRef`). + * **When to use** + * + * Use when you need to read or replace the current set of error reporters + * directly. * + * @category references * @since 4.0.0 - * @category References */ export declare const CurrentErrorReporters: Context.Reference>; /** * Creates a `Layer` that registers one or more `ErrorReporter`s. * + * **When to use** + * + * Use to provide one or more error reporters to effects that perform error + * reporting. + * + * **Details** + * * Reporters can be plain `ErrorReporter` values or effectful - * `Effect` values that are resolved when the layer is built. + * `Effect` values that are resolved when the layer is built. By + * default the provided reporters **replace** any previously registered + * reporters. Set `mergeWithExisting: true` to add them alongside existing ones. * - * By default the provided reporters **replace** any previously registered - * reporters. Set `mergeWithExisting: true` to add them alongside existing - * ones. + * **Example** (Providing error reporters) * - * @example * ```ts * import { Effect, ErrorReporter } from "effect" * @@ -169,20 +176,24 @@ export declare const CurrentErrorReporters: Context.Reference>>(reporters: Reporters, options?: { readonly mergeWithExisting?: boolean | undefined; } | undefined) => Layer.Layer, Exclude, Scope.Scope>>; /** - * Manually report a `Cause` to all registered `ErrorReporter`s on the - * current fiber. + * Runs all registered error reporters on the current fiber for a `Cause`. + * + * **When to use** * - * This is useful when you want to report an error for observability without - * actually failing the fiber. + * Use to report a failure for observability without failing the current fiber. + * + * **Example** (Reporting a cause manually) * - * @example * ```ts * import { Cause, Effect, ErrorReporter } from "effect" * @@ -194,23 +205,34 @@ export declare const layer: (cause: Cause.Cause) => Effect.Effect; /** - * Interface that errors can implement to control reporting behavior. + * Interface that object errors can implement to control reporting behavior. * - * All three annotation properties are optional: - * - `[ErrorReporter.ignore]` — when `true`, the error is never reported - * - `[ErrorReporter.severity]` — overrides the default `"Error"` severity - * - `[ErrorReporter.attributes]` — extra key/value pairs forwarded to reporters + * **When to use** * - * The global `Error` interface is augmented with `Reportable`, so these - * properties are available on all `Error` instances. + * Use as the annotation contract for object errors that customize how error + * reporting handles them. * + * **Details** + * + * All three annotation properties are optional: `[ErrorReporter.ignore]` + * prevents reporting when set to `true`, `[ErrorReporter.severity]` overrides + * the default `"Info"` severity, and `[ErrorReporter.attributes]` adds extra + * key/value pairs forwarded to reporters. The global `Error` interface is + * augmented with `Reportable`, so these properties are available on `Error` + * instances at the type level. + * + * @see {@link ignore} for the runtime annotation key that suppresses reports + * @see {@link severity} for the runtime annotation key that overrides severity + * @see {@link attributes} for the runtime annotation key that attaches reporter + * metadata + * + * @category annotations * @since 4.0.0 - * @category Annotations */ export interface Reportable { readonly [ignore]?: boolean; @@ -222,31 +244,41 @@ declare global { } } /** - * Symbol key used to mark an error as unreportable. + * Defines the string property key used to mark an object error as ignored by error + * reporting. * - * Set this property to `true` on any error class to prevent it from being - * forwarded to reporters. Useful for expected errors such as HTTP 404s. + * **When to use** * - * @example - * ```ts - * import { Data, ErrorReporter } from "effect" + * Use to type the property key that suppresses reporting for expected object + * errors. * - * class NotFoundError extends Data.TaggedError("NotFoundError")<{}> { - * readonly [ErrorReporter.ignore] = true - * } - * ``` + * **Details** + * + * Set this property to `true` on an error class or object error to prevent it + * from being forwarded to reporters. This is useful for expected failures such + * as HTTP 404 responses. * + * @category annotations * @since 4.0.0 - * @category Annotations */ export type ignore = "~effect/ErrorReporter/ignore"; /** - * Symbol key used to mark an error as unreportable. + * Defines the runtime property key used to mark an object error as ignored by error + * reporting. + * + * **When to use** + * + * Use to suppress reporting for expected object errors, such as HTTP 404 + * responses. + * + * **Details** * - * Set this property to `true` on any error class to prevent it from being - * forwarded to reporters. Useful for expected errors such as HTTP 404s. + * Set `error[ErrorReporter.ignore]` to `true` to prevent the error from being + * forwarded to reporters. This is useful for expected failures such as HTTP 404 + * responses. + * + * **Example** (Marking errors as ignored) * - * @example * ```ts * import { Data, ErrorReporter } from "effect" * @@ -255,46 +287,61 @@ export type ignore = "~effect/ErrorReporter/ignore"; * } * ``` * + * @see {@link isIgnored} for checking whether a value carries this annotation + * @see {@link Reportable} for the annotation contract recognized on object + * errors + * + * @category annotations * @since 4.0.0 - * @category Annotations */ export declare const ignore: ignore; /** * Returns `true` if the given value has the `ErrorReporter.ignore` annotation * set to `true`. * + * **When to use** + * + * Use to check whether an error value is annotated to be skipped before + * forwarding it to error reporting code. + * + * @see {@link ignore} for the annotation key this predicate reads + * + * @category annotations * @since 4.0.0 - * @category Annotations */ export declare const isIgnored: (u: unknown) => boolean; /** - * Symbol key used to override the severity level of an error. + * Defines the string property key used to override the severity level of an object error. * - * When set, the reporter callback receives this value as `severity` instead - * of the default `"Error"`. Accepted values are the `LogLevel.Severity` - * literals: `"Trace"`, `"Debug"`, `"Info"`, `"Warn"`, `"Error"`, `"Fatal"`. + * **When to use** * - * @example - * ```ts - * import { Data, ErrorReporter } from "effect" + * Use to type the property key that overrides the reporting severity for object + * errors. * - * class DeprecationWarning extends Data.TaggedError("DeprecationWarning")<{}> { - * readonly [ErrorReporter.severity] = "Warn" as const - * } - * ``` + * **Details** * + * When set to a valid `LogLevel.Severity`, the reporter callback receives this + * value as `severity`. Missing or invalid values fall back to `"Info"`. + * + * @category annotations * @since 4.0.0 - * @category Annotations */ export type severity = "~effect/ErrorReporter/severity"; /** - * Symbol key used to override the severity level of an error. + * Defines the runtime property key used to override the severity level of an object error. + * + * **When to use** + * + * Use to annotate object errors with the severity reporter callbacks should + * receive. * - * When set, the reporter callback receives this value as `severity` instead - * of the default `"Error"`. Accepted values are the `LogLevel.Severity` - * literals: `"Trace"`, `"Debug"`, `"Info"`, `"Warn"`, `"Error"`, `"Fatal"`. + * **Details** + * + * Set `error[ErrorReporter.severity]` to a valid `LogLevel.Severity` value. + * Missing or invalid values fall back to `"Info"`. + * + * **Example** (Setting error severity annotations) * - * @example * ```ts * import { Data, ErrorReporter } from "effect" * @@ -303,50 +350,64 @@ export type severity = "~effect/ErrorReporter/severity"; * } * ``` * + * @see {@link getSeverity} for reading the severity stored under this key + * @see {@link Reportable} for the annotation contract recognized on object + * errors + * + * @category annotations * @since 4.0.0 - * @category Annotations */ export declare const severity: severity; /** * Reads the `ErrorReporter.severity` annotation from an error object, - * falling back to `"Error"` when unset or invalid. + * falling back to `"Info"` when the annotation is unset or invalid. + * + * **When to use** + * + * Use to inspect the severity that reporter callbacks will receive for an + * object error. + * + * @see {@link severity} for the annotation key used to override severity + * @see {@link Reportable} for the annotation properties recognized on object errors * + * @category annotations * @since 4.0.0 - * @category Annotations */ export declare const getSeverity: (error: object) => Severity; /** - * Symbol key used to attach extra key/value metadata to an error report. + * Defines the string property key used to attach extra key/value metadata to an object + * error report. * - * Reporters receive these attributes alongside the error, making it easy to - * include contextual information such as user IDs, request IDs, or any - * domain-specific data useful for debugging. + * **When to use** * - * @example - * ```ts - * import { Data, ErrorReporter } from "effect" + * Use to type the property key that attaches metadata to object error reports. * - * class PaymentError extends Data.TaggedError("PaymentError")<{ - * readonly orderId: string - * }> { - * readonly [ErrorReporter.attributes] = { - * orderId: this.orderId - * } - * } - * ``` + * **Details** + * + * Reporters receive these attributes alongside the error, making it easy to + * include contextual information such as user IDs, request IDs, or other + * domain-specific debugging data. * + * @category annotations * @since 4.0.0 - * @category Annotations */ export type attributes = "~effect/ErrorReporter/attributes"; /** - * Symbol key used to attach extra key/value metadata to an error report. + * Defines the runtime property key used to attach extra key/value metadata to an object + * error report. * - * Reporters receive these attributes alongside the error, making it easy to - * include contextual information such as user IDs, request IDs, or any - * domain-specific data useful for debugging. + * **When to use** + * + * Use to attach domain metadata to object errors so reporter callbacks receive + * it with the reported failure. + * + * **Details** + * + * Set `error[ErrorReporter.attributes]` to a record of metadata that should be + * forwarded to reporters alongside the error. + * + * **Example** (Setting error attributes) * - * @example * ```ts * import { Data, ErrorReporter } from "effect" * @@ -359,16 +420,40 @@ export type attributes = "~effect/ErrorReporter/attributes"; * } * ``` * + * @see {@link ignore} for suppressing reports for expected object errors + * @see {@link severity} for overriding reporter severity + * @see {@link getAttributes} for reading the metadata stored under this key + * @see {@link Reportable} for the annotation contract recognized on object + * errors + * + * @category annotations * @since 4.0.0 - * @category Annotations */ export declare const attributes: attributes; /** * Reads the `ErrorReporter.attributes` annotation from an error object, * returning an empty record when unset. * + * **When to use** + * + * Use to inspect the attributes that reporter callbacks will receive for an + * object error. + * + * **Details** + * + * Returns the value stored under `ErrorReporter.attributes`, or the module's + * shared empty record when the annotation is absent. + * + * **Gotchas** + * + * The annotation value is returned as-is; this helper does not validate or + * clone it. + * + * @see {@link attributes} for the annotation key used to attach metadata + * @see {@link Reportable} for the annotation properties recognized on object errors + * + * @category annotations * @since 4.0.0 - * @category Annotations */ export declare const getAttributes: (error: object) => ReadonlyRecord; //# sourceMappingURL=ErrorReporter.d.ts.map \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/ErrorReporter.d.ts.map b/.opencode/node_modules/effect/dist/ErrorReporter.d.ts.map index 40ed9700d41274dbd407694308f9739cd49c7e69..b97e71c4da4a99262e0beb3ff54f2f081035e0f3 100644 --- a/.opencode/node_modules/effect/dist/ErrorReporter.d.ts.map +++ b/.opencode/node_modules/effect/dist/ErrorReporter.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"ErrorReporter.d.ts","sourceRoot":"","sources":["../src/ErrorReporter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AACH,OAAO,KAAK,KAAK,KAAK,MAAM,YAAY,CAAA;AACxC,OAAO,KAAK,KAAK,OAAO,MAAM,cAAc,CAAA;AAC5C,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,KAAK,KAAK,MAAM,YAAY,CAAA;AAGxC,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA;AAEnC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAC7C,OAA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gCAAgC,CAAA;AAEvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,eAAO,MAAM,QAAQ,EAAE,QAA2C,CAAA;AAElE;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,WAAW,GAAI,OAAO,MAAM,KAAG,QAK3C,CAAA;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,MAAM,UAAU,GAAG,kCAAkC,CAAA;AAE3D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,eAAO,MAAM,UAAU,EAAE,UAA+C,CAAA;AAExE;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,aAAa,GAAI,OAAO,MAAM,KAAG,cAAc,CAAC,MAAM,EAAE,OAAO,CAE3E,CAAA"} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/ErrorReporter.js b/.opencode/node_modules/effect/dist/ErrorReporter.js index 61f4d2aef3eb0cca8bdbac13462dd9a9bc0276b6..d2a19c5ba54298130b1b86d411f144ea2b52d7e5 100644 --- a/.opencode/node_modules/effect/dist/ErrorReporter.js +++ b/.opencode/node_modules/effect/dist/ErrorReporter.js @@ -4,19 +4,35 @@ import * as references from "./internal/references.js"; import * as Layer from "./Layer.js"; import * as LogLevel from "./LogLevel.js"; /** + * Runtime type identifier attached to `ErrorReporter` values. + * + * **Details** + * + * This marker is part of the runtime representation of `ErrorReporter` + * implementations. Most code should create reporters with `make` and register + * them with `layer`. + * + * @category type IDs * @since 4.0.0 - * @category Type Identifiers */ export const TypeId = "~effect/ErrorReporter"; /** * Creates an `ErrorReporter` from a callback. * + * **When to use** + * + * Use to define how reported failures are forwarded to a logging, monitoring, + * or error-tracking backend. + * + * **Details** + * * The returned reporter automatically deduplicates causes and individual * errors (the same object is never reported twice), skips interruptions, * and resolves the `ignore`, `severity`, and `attributes` annotations on * each error before invoking your callback. * - * @example + * **Example** (Forwarding errors to the console) + * * ```ts * import { ErrorReporter } from "effect" * @@ -28,8 +44,11 @@ export const TypeId = "~effect/ErrorReporter"; * ) * ``` * + * @see {@link layer} for registering reporters in the environment + * @see {@link report} for manually reporting a `Cause` + * + * @category constructors * @since 4.0.0 - * @category Constructors */ export const make = report => { const reported = new WeakSet(); @@ -60,28 +79,35 @@ export const make = report => { }; }; /** - * A `Context.Reference` holding the set of active `ErrorReporter`s for the + * Context reference that holds the set of active error reporters for the * current fiber. Defaults to an empty set (no reporting). * - * Prefer {@link layer} to configure reporters via the `Layer` API. Use this - * reference directly only when you need low-level control (e.g. reading the - * current reporters or swapping them inside a `FiberRef`). + * **When to use** + * + * Use when you need to read or replace the current set of error reporters + * directly. * + * @category references * @since 4.0.0 - * @category References */ export const CurrentErrorReporters = references.CurrentErrorReporters; /** * Creates a `Layer` that registers one or more `ErrorReporter`s. * + * **When to use** + * + * Use to provide one or more error reporters to effects that perform error + * reporting. + * + * **Details** + * * Reporters can be plain `ErrorReporter` values or effectful - * `Effect` values that are resolved when the layer is built. + * `Effect` values that are resolved when the layer is built. By + * default the provided reporters **replace** any previously registered + * reporters. Set `mergeWithExisting: true` to add them alongside existing ones. * - * By default the provided reporters **replace** any previously registered - * reporters. Set `mergeWithExisting: true` to add them alongside existing - * ones. + * **Example** (Providing error reporters) * - * @example * ```ts * import { Effect, ErrorReporter } from "effect" * @@ -111,8 +137,11 @@ export const CurrentErrorReporters = references.CurrentErrorReporters; * ) * ``` * + * @see {@link make} for creating an `ErrorReporter` from a callback + * @see {@link CurrentErrorReporters} for low-level access to the current reporters + * + * @category layers * @since 4.0.0 - * @category Layers */ export const layer = (reporters, options) => Layer.effect(CurrentErrorReporters, Effect.withFiber(Effect.fnUntraced(function* (fiber) { const currentReporters = new Set(options?.mergeWithExisting === true ? fiber.getRef(references.CurrentErrorReporters) : []); @@ -122,13 +151,14 @@ export const layer = (reporters, options) => Layer.effect(CurrentErrorReporters, return currentReporters; }))); /** - * Manually report a `Cause` to all registered `ErrorReporter`s on the - * current fiber. + * Runs all registered error reporters on the current fiber for a `Cause`. + * + * **When to use** + * + * Use to report a failure for observability without failing the current fiber. * - * This is useful when you want to report an error for observability without - * actually failing the fiber. + * **Example** (Reporting a cause manually) * - * @example * ```ts * import { Cause, Effect, ErrorReporter } from "effect" * @@ -140,20 +170,30 @@ export const layer = (reporters, options) => Layer.effect(CurrentErrorReporters, * }) * ``` * - * @since 4.0.0 * @category Reporting + * @since 4.0.0 */ export const report = cause => Effect.withFiber(fiber => { effect.reportCauseUnsafe(fiber, cause); return Effect.void; }); /** - * Symbol key used to mark an error as unreportable. + * Defines the runtime property key used to mark an object error as ignored by error + * reporting. + * + * **When to use** * - * Set this property to `true` on any error class to prevent it from being - * forwarded to reporters. Useful for expected errors such as HTTP 404s. + * Use to suppress reporting for expected object errors, such as HTTP 404 + * responses. + * + * **Details** + * + * Set `error[ErrorReporter.ignore]` to `true` to prevent the error from being + * forwarded to reporters. This is useful for expected failures such as HTTP 404 + * responses. + * + * **Example** (Marking errors as ignored) * - * @example * ```ts * import { Data, ErrorReporter } from "effect" * @@ -162,26 +202,44 @@ export const report = cause => Effect.withFiber(fiber => { * } * ``` * + * @see {@link isIgnored} for checking whether a value carries this annotation + * @see {@link Reportable} for the annotation contract recognized on object + * errors + * + * @category annotations * @since 4.0.0 - * @category Annotations */ export const ignore = "~effect/ErrorReporter/ignore"; /** * Returns `true` if the given value has the `ErrorReporter.ignore` annotation * set to `true`. * + * **When to use** + * + * Use to check whether an error value is annotated to be skipped before + * forwarding it to error reporting code. + * + * @see {@link ignore} for the annotation key this predicate reads + * + * @category annotations * @since 4.0.0 - * @category Annotations */ export const isIgnored = u => typeof u === "object" && u !== null && ignore in u && u[ignore] === true; /** - * Symbol key used to override the severity level of an error. + * Defines the runtime property key used to override the severity level of an object error. + * + * **When to use** + * + * Use to annotate object errors with the severity reporter callbacks should + * receive. + * + * **Details** + * + * Set `error[ErrorReporter.severity]` to a valid `LogLevel.Severity` value. + * Missing or invalid values fall back to `"Info"`. * - * When set, the reporter callback receives this value as `severity` instead - * of the default `"Error"`. Accepted values are the `LogLevel.Severity` - * literals: `"Trace"`, `"Debug"`, `"Info"`, `"Warn"`, `"Error"`, `"Fatal"`. + * **Example** (Setting error severity annotations) * - * @example * ```ts * import { Data, ErrorReporter } from "effect" * @@ -190,16 +248,28 @@ export const isIgnored = u => typeof u === "object" && u !== null && ignore in u * } * ``` * + * @see {@link getSeverity} for reading the severity stored under this key + * @see {@link Reportable} for the annotation contract recognized on object + * errors + * + * @category annotations * @since 4.0.0 - * @category Annotations */ export const severity = "~effect/ErrorReporter/severity"; /** * Reads the `ErrorReporter.severity` annotation from an error object, - * falling back to `"Error"` when unset or invalid. + * falling back to `"Info"` when the annotation is unset or invalid. + * + * **When to use** + * + * Use to inspect the severity that reporter callbacks will receive for an + * object error. * + * @see {@link severity} for the annotation key used to override severity + * @see {@link Reportable} for the annotation properties recognized on object errors + * + * @category annotations * @since 4.0.0 - * @category Annotations */ export const getSeverity = error => { if (severity in error && LogLevel.values.includes(error[severity])) { @@ -208,13 +278,21 @@ export const getSeverity = error => { return "Info"; }; /** - * Symbol key used to attach extra key/value metadata to an error report. + * Defines the runtime property key used to attach extra key/value metadata to an object + * error report. + * + * **When to use** * - * Reporters receive these attributes alongside the error, making it easy to - * include contextual information such as user IDs, request IDs, or any - * domain-specific data useful for debugging. + * Use to attach domain metadata to object errors so reporter callbacks receive + * it with the reported failure. + * + * **Details** + * + * Set `error[ErrorReporter.attributes]` to a record of metadata that should be + * forwarded to reporters alongside the error. + * + * **Example** (Setting error attributes) * - * @example * ```ts * import { Data, ErrorReporter } from "effect" * @@ -227,16 +305,40 @@ export const getSeverity = error => { * } * ``` * + * @see {@link ignore} for suppressing reports for expected object errors + * @see {@link severity} for overriding reporter severity + * @see {@link getAttributes} for reading the metadata stored under this key + * @see {@link Reportable} for the annotation contract recognized on object + * errors + * + * @category annotations * @since 4.0.0 - * @category Annotations */ export const attributes = "~effect/ErrorReporter/attributes"; /** * Reads the `ErrorReporter.attributes` annotation from an error object, * returning an empty record when unset. * + * **When to use** + * + * Use to inspect the attributes that reporter callbacks will receive for an + * object error. + * + * **Details** + * + * Returns the value stored under `ErrorReporter.attributes`, or the module's + * shared empty record when the annotation is absent. + * + * **Gotchas** + * + * The annotation value is returned as-is; this helper does not validate or + * clone it. + * + * @see {@link attributes} for the annotation key used to attach metadata + * @see {@link Reportable} for the annotation properties recognized on object errors + * + * @category annotations * @since 4.0.0 - * @category Annotations */ export const getAttributes = error => { return attributes in error ? error[attributes] : emptyAttributes; diff --git a/.opencode/node_modules/effect/dist/ErrorReporter.js.map b/.opencode/node_modules/effect/dist/ErrorReporter.js.map index 2c00688e2bc73483aa6a687e734d51a0e12df3b5..51863d873d8dcda532ca79c8fc68e3dcbd0530f2 100644 --- a/.opencode/node_modules/effect/dist/ErrorReporter.js.map +++ b/.opencode/node_modules/effect/dist/ErrorReporter.js.map @@ -1 +1 @@ -{"version":3,"file":"ErrorReporter.js","names":["Effect","effect","references","Layer","LogLevel","TypeId","make","report","reported","WeakSet","options","has","cause","add","i","reasons","length","reason","_tag","original","error","defect","isObject","isIgnored","pretty","causePrettyError","annotations","severity","getSeverity","attributes","getAttributes","emptyAttributes","CurrentErrorReporters","layer","reporters","withFiber","fnUntraced","fiber","currentReporters","Set","mergeWithExisting","getRef","reporter","isEffect","reportCauseUnsafe","void","ignore","u","values","includes"],"sources":["../src/ErrorReporter.ts"],"sourcesContent":[null],"mappings":"AAoDA,OAAO,KAAKA,MAAM,MAAM,aAAa;AAErC,OAAO,KAAKC,MAAM,MAAM,sBAAsB;AAC9C,OAAO,KAAKC,UAAU,MAAM,0BAA0B;AACtD,OAAO,KAAKC,KAAK,MAAM,YAAY;AACnC,OAAO,KAAKC,QAAQ,MAAM,eAAe;AAWzC;;;;AAIA,OAAO,MAAMC,MAAM,GAAW,uBAAuB;AAuBrD;;;;;;;;;;;;;;;;;;;;;;;AAuBA,OAAO,MAAMC,IAAI,GACfC,MAOU,IACO;EACjB,MAAMC,QAAQ,GAAG,IA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AAMC,WAAW,GAAIR,KAAa,IAAc;EACrD,IAAIO,QAAQ,IAAIP,KAAK,IAAIhB,QAAQ,CAAC4C,MAAM,CAACC,QAAQ,CAAC7B,KAAK,CAACO,QAAQ,CAAa,CAAC,EAAE;IAC9E,OAAOP,KAAK,CAACO,QAAQ,CAAa;EACpC;EACA,OAAO,MAAM;AACf,CAAC;AA2BD;;;;;;;;;;;;;;;;;;;;;;;AAuBA,OAAO,MAAME,UAAU,GAAe,kCAAkC;AAExE;;;;;;;AAOA,OAAO,MAAMC,aAAa,GAAIV,KAAa,IAAqC;EAC9E,OAAOS,UAAU,IAAIT,KAAK,GAAGA,KAAK,CAACS,UAAU,CAAQ,GAAGE,eAAe;AACzE,CAAC;AAED,MAAMA,eAAe,GAAoC,EAAE","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"ErrorReporter.js","names":["Effect","effect","references","Layer","LogLevel","TypeId","make","report","reported","WeakSet","options","has","cause","add","i","reasons","length","reason","_tag","original","error","defect","isObject","isIgnored","pretty","causePrettyError","annotations","severity","getSeverity","attributes","getAttributes","emptyAttributes","CurrentErrorReporters","layer","reporters","withFiber","fnUntraced","fiber","currentReporters","Set","mergeWithExisting","getRef","reporter","isEffect","reportCauseUnsafe","void","ignore","u","values","includes"],"sources":["../src/ErrorReporter.ts"],"sourcesContent":[null],"mappings":"AAcA,OAAO,KAAKA,MAAM,MAAM,aAAa;AAErC,OAAO,KAAKC,MAAM,MAAM,sBAAsB;AAC9C,OAAO,KAAKC,UAAU,MAAM,0BAA0B;AACtD,OAAO,KAAKC,KAAK,MAAM,YAAY;AACnC,OAAO,KAAKC,QAAQ,MAAM,eAAe;AAkBzC;;;;;;;;;;;;AAYA,OAAO,MAAMC,MAAM,GAAW,uBAAuB;AAmCrD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCA,OAAO,MAAMC,IAAI,GACfC,MAOU,IACO;EACjB,MAAMC,QAAQ,GAAG,IAAIC,OAAO,EAAiC;EAC7D,O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AElE;;;;;;;;;;;;;;;AAeA,OAAO,MAAMC,WAAW,GAAIR,KAAa,IAAc;EACrD,IAAIO,QAAQ,IAAIP,KAAK,IAAIhB,QAAQ,CAAC4C,MAAM,CAACC,QAAQ,CAAC7B,KAAK,CAACO,QAAQ,CAAa,CAAC,EAAE;IAC9E,OAAOP,KAAK,CAACO,QAAQ,CAAa;EACpC;EACA,OAAO,MAAM;AACf,CAAC;AAqBD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqCA,OAAO,MAAME,UAAU,GAAe,kCAAkC;AAExE;;;;;;;;;;;;;;;;;;;;;;;;;AAyBA,OAAO,MAAMC,aAAa,GAAIV,KAAa,IAAqC;EAC9E,OAAOS,UAAU,IAAIT,KAAK,GAAGA,KAAK,CAACS,UAAU,CAAQ,GAAGE,eAAe;AACzE,CAAC;AAED,MAAMA,eAAe,GAAoC,EAAE","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/ExecutionPlan.d.ts b/.opencode/node_modules/effect/dist/ExecutionPlan.d.ts index fc26b62b978d6a20b1f1831097bd63e68348c33f..505c33ef7192d4f77edda05f1649f38a26509d05 100644 --- a/.opencode/node_modules/effect/dist/ExecutionPlan.d.ts +++ b/.opencode/node_modules/effect/dist/ExecutionPlan.d.ts @@ -1,4 +1,12 @@ /** + * Describes ordered fallback steps for running effects or streams. + * + * An `ExecutionPlan` contains one or more steps. Each step provides a `Context` + * or `Layer`, and may also define attempt limits, retry schedules, or + * predicates that decide whether to keep trying. The runtime tries steps in + * order until the workflow succeeds or the plan is exhausted. This module also + * supports merging plans and reading metadata for the active step and attempt. + * * @since 3.16.0 */ import type { NonEmptyReadonlyArray } from "./Array.ts"; @@ -8,26 +16,51 @@ import * as Layer from "./Layer.ts"; import type { Pipeable } from "./Pipeable.ts"; import type * as Schedule from "./Schedule.ts"; /** + * String literal type used as the runtime type identifier for `ExecutionPlan` + * values. + * + * @category type IDs * @since 3.16.0 - * @category Type IDs */ export type TypeId = "~effect/ExecutionPlan"; /** + * Runtime type identifier attached to `ExecutionPlan` values and used by + * `isExecutionPlan`. + * + * @category type IDs * @since 3.16.0 - * @category Type IDs */ export declare const TypeId: TypeId; /** + * Returns `true` if a value is an `ExecutionPlan` by checking for the + * `ExecutionPlan.TypeId` marker. + * + * **When to use** + * + * Use when accepting an unknown value and you need to narrow it to an + * `ExecutionPlan` before reading plan fields or passing it to plan-consuming + * APIs. + * + * **Gotchas** + * + * This is a structural marker check; it does not validate the marker value or + * the shape of the plan steps. + * + * @see {@link make} for constructing execution plans that satisfy this guard + * @see {@link TypeId} for the runtime marker checked by this guard + * + * @category guards * @since 3.16.0 - * @category Guards */ export declare const isExecutionPlan: (u: unknown) => u is ExecutionPlan; /** * A `ExecutionPlan` can be used with `Effect.withExecutionPlan` or `Stream.withExecutionPlan`, allowing you to provide different resources for each step of execution until the effect succeeds or the plan is exhausted. * + * **Example** (Defining fallback execution steps) + * * ```ts - * import type { Layer } from "effect" * import { Effect, ExecutionPlan, Schedule } from "effect" + * import type { Layer } from "effect" * import type { LanguageModel } from "effect/unstable/ai" * * declare const layerBad: Layer.Layer @@ -62,8 +95,8 @@ export declare const isExecutionPlan: (u: unknown) => u is ExecutionPlan; * const withPlan: Effect.Effect = Effect.withExecutionPlan(effect, ThePlan) * ``` * + * @category models * @since 3.16.0 - * @category Models */ export interface ExecutionPlan | undefined; }>; /** - * Returns an equivalent `ExecutionPlan` with the requirements satisfied, - * using the current context. + * Returns an equivalent `ExecutionPlan` with the requirements satisfied, using the current context. */ - readonly withRequirements: Effect.Effect, never, Config["requirements"]>; } /** - * @since 3.16.0 - * @category Models + * Base type-level configuration carried by an `ExecutionPlan`. + * + * **Details** + * + * `provides` tracks services supplied by plan steps, `input` tracks the error + * input consumed by schedules and `while` predicates, `error` tracks failures + * from plan layers or predicates, and `requirements` tracks services needed to + * build or run the plan. + * + * @category models + * @since 4.0.0 */ export type ConfigBase = { provides: any; @@ -102,9 +143,11 @@ export type ConfigBase = { /** * Create an `ExecutionPlan`, which can be used with `Effect.withExecutionPlan` or `Stream.withExecutionPlan`, allowing you to provide different resources for each step of execution until the effect succeeds or the plan is exhausted. * + * **Example** (Creating an execution plan) + * * ```ts - * import type { Layer } from "effect" * import { Effect, ExecutionPlan, Schedule } from "effect" + * import type { Layer } from "effect" * import type { LanguageModel } from "effect/unstable/ai" * * declare const layerBad: Layer.Layer @@ -139,8 +182,8 @@ export type ConfigBase = { * const withPlan: Effect.Effect = Effect.withExecutionPlan(effect, ThePlan) * ``` * + * @category constructors * @since 3.16.0 - * @category Constructors */ export declare const make: >(...steps: Steps & { [K in keyof Steps]: make.Step; }) => ExecutionPlan<{ provides: make.StepProvides; @@ -149,10 +192,21 @@ export declare const make: requirements: (Steps[number]["provide"] extends Layer.Layer ? R : never) | (Steps[number]["while"] extends (input: infer _I) => Effect.Effect ? R_1 : never) | (Steps[number]["schedule"] extends Schedule.Schedule ? R_2 : never); }>; /** + * Namespace containing type helpers used by `ExecutionPlan.make`. + * * @since 3.16.0 */ export declare namespace make { /** + * Input shape for a single execution-plan step. + * + * **Details** + * + * Each step provides a `Context` or `Layer` and may limit attempts, add a + * `while` predicate for retry decisions, or attach a `Schedule` for retry + * timing. + * + * @category models * @since 3.16.0 */ type Step = { @@ -162,16 +216,27 @@ export declare namespace make { readonly schedule?: Schedule.Schedule | undefined; }; /** + * Computes the intersection of services provided by a list of execution-plan + * steps. + * + * @category utility types * @since 3.16.1 */ type StepProvides, Out = unknown> = Steps extends readonly [infer Step, ...infer Rest] ? StepProvides | Layer.Layer; } ? P : unknown))> : Out; /** + * Computes the intersection of services provided by a list of execution plans. + * + * @category utility types * @since 3.16.1 */ type PlanProvides, Out = unknown> = Plans extends readonly [infer Plan, ...infer Rest] ? PlanProvides ? T["provides"] : unknown)> : Out; /** + * Computes the input type consumed by the `while` predicates and schedules in + * a list of execution-plan steps. + * + * @category utility types * @since 3.16.0 */ type StepInput, Out = unknown> = Steps extends readonly [infer Step, ...infer Rest] ? StepInput; } ? I : unknown))> : Out; /** + * Computes the combined input type consumed by a list of execution plans. + * + * @category utility types * @since 3.16.0 */ type PlanInput, Out = unknown> = Plans extends readonly [infer Plan, ...infer Rest] ? PlanInput ? T["input"] : unknown)> : Out; } /** + * Combines multiple execution plans by concatenating their steps in order. + * + * **When to use** + * + * Use to combine separately defined fallback plans into one ordered plan before + * applying it to an effect or stream. + * + * **Details** + * + * The resulting plan tries every step from the first plan, then every step from + * the next plan, and so on. + * + * @see {@link make} for building a plan from individual steps instead of combining existing plans + * + * @category combining * @since 3.16.0 - * @category Combining */ export declare const merge: >>(...plans: Plans) => ExecutionPlan<{ provides: make.PlanProvides; @@ -195,16 +277,31 @@ export declare const merge: ? T["requirements"] : never; }>; /** + * Metadata describing the currently running execution-plan attempt. + * + * **Details** + * + * `attempt` is the current 1-based attempt number, and `stepIndex` is the + * 0-based index of the plan step currently being evaluated. + * + * @category metadata * @since 4.0.0 - * @category Metadata */ export interface Metadata { readonly attempt: number; readonly stepIndex: number; } /** + * Context reference containing metadata for the currently running + * execution-plan attempt. + * + * **When to use** + * + * Use to read the active plan step and attempt while code is running under an + * execution plan. + * + * @category metadata * @since 4.0.0 - * @category Metadata */ export declare const CurrentMetadata: Context.Reference; //# sourceMappingURL=ExecutionPlan.d.ts.map \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/ExecutionPlan.d.ts.map b/.opencode/node_modules/effect/dist/ExecutionPlan.d.ts.map index e0ddebf13a49e6bae5ba1b73dd85ac5149685b69..35fb7e6a0fdbf7b4c3309a904ba4e55670795a42 100644 --- a/.opencode/node_modules/effect/dist/ExecutionPlan.d.ts.map +++ b/.opencode/node_modules/effect/dist/ExecutionPlan.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"ExecutionPlan.d.ts","sourceRoot":"","sources":["../src/ExecutionPlan.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAA;AACvD,OAAO,KA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AAK,GAAI,KAAK,CAAC,KAAK,SAAS,qBAAqB,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EACjF,GAAG,OAAO,KAAK,KACd,aAAa,CAAC;IACf,QAAQ,EAAE,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAA;IAClC,KAAK,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAA;IAC5B,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,SAAS,aAAa,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,GAAG,KAAK,CAAA;IACxE,YAAY,EAAE,KAAK,CAAC,MAAM,CAAC,SAAS,aAAa,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,cAAc,CAAC,GAAG,KAAK,CAAA;CACvF,CAA0D,CAAA;AAE3D;;;;;;;;;;GAUG;AACH,MAAM,WAAW,QAAQ;IACvB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;CAC3B;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,eAAe,6BAK1B,CAAA"} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/ExecutionPlan.js b/.opencode/node_modules/effect/dist/ExecutionPlan.js index 40ee917f1d9c5bdde3d166112c47fef516835218..5fd9a558f812cf2d977ffb059d252a9a4312ef6c 100644 --- a/.opencode/node_modules/effect/dist/ExecutionPlan.js +++ b/.opencode/node_modules/effect/dist/ExecutionPlan.js @@ -5,21 +5,43 @@ import * as Layer from "./Layer.js"; import { pipeArguments } from "./Pipeable.js"; import * as Predicate from "./Predicate.js"; /** + * Runtime type identifier attached to `ExecutionPlan` values and used by + * `isExecutionPlan`. + * + * @category type IDs * @since 3.16.0 - * @category Type IDs */ export const TypeId = "~effect/ExecutionPlan"; /** + * Returns `true` if a value is an `ExecutionPlan` by checking for the + * `ExecutionPlan.TypeId` marker. + * + * **When to use** + * + * Use when accepting an unknown value and you need to narrow it to an + * `ExecutionPlan` before reading plan fields or passing it to plan-consuming + * APIs. + * + * **Gotchas** + * + * This is a structural marker check; it does not validate the marker value or + * the shape of the plan steps. + * + * @see {@link make} for constructing execution plans that satisfy this guard + * @see {@link TypeId} for the runtime marker checked by this guard + * + * @category guards * @since 3.16.0 - * @category Guards */ export const isExecutionPlan = u => Predicate.hasProperty(u, TypeId); /** * Create an `ExecutionPlan`, which can be used with `Effect.withExecutionPlan` or `Stream.withExecutionPlan`, allowing you to provide different resources for each step of execution until the effect succeeds or the plan is exhausted. * + * **Example** (Creating an execution plan) + * * ```ts - * import type { Layer } from "effect" * import { Effect, ExecutionPlan, Schedule } from "effect" + * import type { Layer } from "effect" * import type { LanguageModel } from "effect/unstable/ai" * * declare const layerBad: Layer.Layer @@ -54,8 +76,8 @@ export const isExecutionPlan = u => Predicate.hasProperty(u, TypeId); * const withPlan: Effect.Effect = Effect.withExecutionPlan(effect, ThePlan) * ``` * + * @category constructors * @since 3.16.0 - * @category Constructors */ export const make = (...steps) => makeProto(steps.map((options, i) => { if (options.attempts && options.attempts < 1) { @@ -73,7 +95,7 @@ export const make = (...steps) => makeProto(steps.map((options, i) => { })); const Proto = { [TypeId]: TypeId, - get withRequirements() { + get captureRequirements() { const self = this; return effect.contextWith(context => effect.succeed(makeProto(self.steps.map(step => ({ ...step, @@ -90,13 +112,35 @@ const makeProto = steps => { return self; }; /** + * Combines multiple execution plans by concatenating their steps in order. + * + * **When to use** + * + * Use to combine separately defined fallback plans into one ordered plan before + * applying it to an effect or stream. + * + * **Details** + * + * The resulting plan tries every step from the first plan, then every step from + * the next plan, and so on. + * + * @see {@link make} for building a plan from individual steps instead of combining existing plans + * + * @category combining * @since 3.16.0 - * @category Combining */ export const merge = (...plans) => makeProto(plans.flatMap(plan => plan.steps)); /** + * Context reference containing metadata for the currently running + * execution-plan attempt. + * + * **When to use** + * + * Use to read the active plan step and attempt while code is running under an + * execution plan. + * + * @category metadata * @since 4.0.0 - * @category Metadata */ export const CurrentMetadata = /*#__PURE__*/Context.Reference("effect/ExecutionPlan/CurrentMetadata", { defaultValue: /*#__PURE__*/constant({ diff --git a/.opencode/node_modules/effect/dist/ExecutionPlan.js.map b/.opencode/node_modules/effect/dist/ExecutionPlan.js.map index dae5873aa9fcf7bdc05ee312b84d36ce06d43fb2..d5eb7c3e658c0a0b2a4a3abde3f63bc9e68c1f84 100644 --- a/.opencode/node_modules/effect/dist/ExecutionPlan.js.map +++ b/.opencode/node_modules/effect/dist/ExecutionPlan.js.map @@ -1 +1 @@ -{"version":3,"file":"ExecutionPlan.js","names":["Context","constant","effect","Layer","pipeArguments","Predicate","TypeId","isExecutionPlan","u","hasProperty","make","steps","makeProto","map","options","i","attempts","Error","schedule","while","input","suspend","result","succeed","undefined","provide","Proto","withRequirements","self","contextWith","context","step","isLayer","succeedContext","pipe","arguments","Object","create","merge","plans","flatMap","plan","CurrentMetadata","Reference","defaultValue","attempt","stepIndex"],"sources":["../src/ExecutionPlan.ts"],"sourcesContent":[null],"mappings":"AAIA,OAAO,KAAKA,OAAO,MAAM,cAAc;AAEvC,SAASC,QAAQ,QAAQ,eAAe;AACxC,OAAO,KAAKC,MAAM,MAAM,sBAAsB;AAC9C,OAAO,KAAKC,KAAK,MAAM,YAAY;AAEnC,SAASC,aAAa,QAAQ,eAAe;AAC7C,OAAO,KAAKC,SAAS,MAAM,gBAAgB;AAS3C;;;;AAIA,OAAO,MAAMC,MAAM,GAAW,uBAAuB;AAErD;;;;AAIA,OAAO,MAAMC,eAAe,GAAIC,CAAU,IAA8BH,SAAS,CAACI,WAAW,CAACD,CAAC,EAAEF,MAAM,CAAC;AA4FxG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2CA,OAAO,MAAMI,IAAI,GAAGA,CAClB,GAAGC,KAAgD,KAanDC,SAAS,CAACD,KAAK,CAACE,GAAG,CAAC,CAACC,OAAO,EAAEC,CAAC,KAAI;EACjC,IAAID,OAAO,CAACE,QAA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MAAM,CAACC,MAAM,CAACX,KAAK,CAAC;EACjCE,IAAI,CAACjB,KAAK,GAAGA,KAAK;EAClB,OAAOiB,IAAI;AACb,CAAC;AAED;;;;AAIA,OAAO,MAAMU,KAAK,GAAGA,CACnB,GAAGC,KAAY,KAMX3B,SAAS,CAAC2B,KAAK,CAACC,OAAO,CAAEC,IAAI,IAAKA,IAAI,CAAC9B,KAAK,CAAQ,CAAC;AAW3D;;;;AAIA,OAAO,MAAM+B,eAAe,gBAAG1C,OAAO,CAAC2C,SAAS,CAAW,sCAAsC,EAAE;EACjGC,YAAY,eAAE3C,QAAQ,CAAC;IACrB4C,OAAO,EAAE,CAAC;IACVC,SAAS,EAAE;GACZ;CACF,CAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"ExecutionPlan.js","names":["Context","constant","effect","Layer","pipeArguments","Predicate","TypeId","isExecutionPlan","u","hasProperty","make","steps","makeProto","map","options","i","attempts","Error","schedule","while","input","suspend","result","succeed","undefined","provide","Proto","captureRequirements","self","contextWith","context","step","isLayer","succeedContext","pipe","arguments","Object","create","merge","plans","flatMap","plan","CurrentMetadata","Reference","defaultValue","attempt","stepIndex"],"sources":["../src/ExecutionPlan.ts"],"sourcesContent":[null],"mappings":"AAYA,OAAO,KAAKA,OAAO,MAAM,cAAc;AAEvC,SAASC,QAAQ,QAAQ,eAAe;AACxC,OAAO,KAAKC,MAAM,MAAM,sBAAsB;AAC9C,OAAO,KAAKC,KAAK,MAAM,YAAY;AAEnC,SAASC,aAAa,QAAQ,eAAe;AAC7C,OAAO,KAAKC,SAAS,MAAM,gBAAgB;AAY3C;;;;;;;AAOA,OAAO,MAAMC,MAAM,GAAW,uBAAuB;AAErD;;;;;;;;;;;;;;;;;;;;;AAqBA,OAAO,MAAMC,eAAe,GAAIC,CAAU,IAA8BH,SAAS,CAACI,WAAW,CAACD,CAAC,EAAEF,MAAM,CAAC;AAsGxG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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EACH,CAAC;EACDS,IAAIA,CAAA;IACF,OAAO9B,aAAa,CAAC,IAAI,EAAE+B,SAAS,CAAC;EACvC;CACD;AAED,MAAMvB,SAAS,GACbD,KAKW,IACT;EACF,MAAMiB,IAAI,GAAGQ,MAAM,CAACC,MAAM,CAACX,KAAK,CAAC;EACjCE,IAAI,CAACjB,KAAK,GAAGA,KAAK;EAClB,OAAOiB,IAAI;AACb,CAAC;AAED;;;;;;;;;;;;;;;;;;AAkBA,OAAO,MAAMU,KAAK,GAAGA,CACnB,GAAGC,KAAY,KAMX3B,SAAS,CAAC2B,KAAK,CAACC,OAAO,CAAEC,IAAI,IAAKA,IAAI,CAAC9B,KAAK,CAAQ,CAAC;AAkB3D;;;;;;;;;;;;AAYA,OAAO,MAAM+B,eAAe,gBAAG1C,OAAO,CAAC2C,SAAS,CAAW,sCAAsC,EAAE;EACjGC,YAAY,eAAE3C,QAAQ,CAAC;IACrB4C,OAAO,EAAE,CAAC;IACVC,SAAS,EAAE;GACZ;CACF,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Exit.d.ts b/.opencode/node_modules/effect/dist/Exit.d.ts index 21b248f68aa84b11869724560c8ea7ce7bfd5cbf..0da2d91c7dbc2cfd92895c4f7607215d2bcfe8b0 100644 --- a/.opencode/node_modules/effect/dist/Exit.d.ts +++ b/.opencode/node_modules/effect/dist/Exit.d.ts @@ -1,58 +1,11 @@ /** - * Represents the outcome of an Effect computation as a plain, synchronously - * inspectable value. + * Represents the result of an Effect computation as a plain value. * - * ## Mental model - * - * - `Exit` is a union of two cases: `Success` and `Failure` - * - A `Success` wraps a value of type `A` - * - A `Failure` wraps a `Cause`, which may contain typed errors, defects, or interruptions - * - `Exit` is also an `Effect`, so you can yield it directly inside `Effect.gen` - * - Constructors mirror the failure modes: {@link fail} for typed errors, {@link die} for defects, {@link interrupt} for fiber interruptions - * - Use `Exit` when you need to inspect an Effect result without running further effects - * - * ## Common tasks - * - * - Create a success: {@link succeed} - * - Create a typed failure: {@link fail} - * - Create a failure from a Cause: {@link failCause} - * - Create a defect: {@link die} - * - Create an interruption: {@link interrupt} - * - Check the outcome: {@link isSuccess}, {@link isFailure}, {@link match} - * - Extract values optionally: {@link getSuccess}, {@link getCause}, {@link findErrorOption} - * - Transform the result: {@link map}, {@link mapError}, {@link mapBoth} - * - Combine multiple exits: {@link asVoidAll} - * - Inspect failure categories: {@link hasFails}, {@link hasDies}, {@link hasInterrupts} - * - * ## Gotchas - * - * - A `Failure` wraps a `Cause`, not a bare `E`. Use Cause utilities to drill into it. - * - {@link mapError} and {@link mapBoth} only transform typed errors (Fail reasons in the Cause). If the Cause contains only defects or interruptions, the original failure passes through unchanged. - * - Filter-based APIs ({@link filterSuccess}, {@link filterValue}, etc.) return `Filter.fail` markers for pipeline composition. They are not `Option` values or Effect failures. - * - {@link findError} and {@link findDefect} return only the first matching reason from the Cause. - * - * ## Quickstart - * - * **Example** (Creating and inspecting exits) - * - * ```ts - * import { Exit } from "effect" - * - * const success = Exit.succeed(42) - * const failure = Exit.fail("not found") - * - * const message = Exit.match(success, { - * onSuccess: (value) => `Got: ${value}`, - * onFailure: () => "Failed" - * }) - * console.log(message) // "Got: 42" - * ``` - * - * ## See also - * - * - {@link Exit} the core union type - * - {@link succeed} and {@link fail} the most common constructors - * - {@link match} for pattern matching on an Exit + * An `Exit` is either a success with an `A` or a failure with a + * `Cause`. The failure cause preserves typed errors, defects, and + * interruptions after a workflow has finished. Use this module when completed + * Effect results need to be inspected, transformed, filtered, or matched + * synchronously as data. * * @since 2.0.0 */ @@ -65,12 +18,16 @@ declare const TypeId: "~effect/Exit"; /** * Represents the result of an Effect computation. * - * - Use when you need to synchronously inspect whether a computation succeeded or failed - * - Use as an alternative to try/catch for Effect-based code + * **When to use** + * + * Use when you need to synchronously inspect whether an Effect computation + * succeeded or failed. * - * An `Exit` is either: - * - `Success` containing a value of type `A` - * - `Failure` containing a `Cause` describing why the computation failed + * **Details** + * + * An `Exit` is either `Success` containing a value of type `A`, or + * `Failure` containing a `Cause` describing why the computation + * failed. * * Since `Exit` is also an `Effect`, you can yield it inside `Effect.gen`. * @@ -92,22 +49,34 @@ declare const TypeId: "~effect/Exit"; * @see {@link Failure} for the failure case * @see {@link match} for pattern matching * - * @since 2.0.0 * @category models + * @since 2.0.0 */ export type Exit = Success | Failure; /** + * Namespace containing helper types shared by `Exit` values. + * + * **When to use** + * + * Use to reference helper types that describe the shared structure of `Exit` + * values. + * * @since 2.0.0 - * @category models */ export declare namespace Exit { /** * Base interface shared by both Success and Failure. * + * **When to use** + * + * Use to describe the common protocol implemented by every `Exit` value. + * + * **Details** + * * Every Exit is also an Effect, so you can yield it in `Effect.gen`. * - * @since 4.0.0 * @category models + * @since 4.0.0 */ interface Proto extends Effect.Effect { readonly [TypeId]: typeof TypeId; @@ -116,8 +85,11 @@ export declare namespace Exit { /** * A successful Exit containing a value. * - * - Use {@link isSuccess} to narrow an `Exit` to `Success` - * - Access the value via the `value` property after narrowing + * **When to use** + * + * Use when working with the successful branch of an `Exit` after narrowing + * with {@link isSuccess}. Access the value via the `value` property after + * narrowing. * * **Example** (Accessing the success value) * @@ -135,8 +107,8 @@ export declare namespace Exit { * @see {@link isSuccess} to narrow an Exit to Success * @see {@link Failure} for the failure counterpart * - * @since 2.0.0 * @category models + * @since 2.0.0 */ export interface Success extends Exit.Proto { readonly _tag: "Success"; @@ -145,9 +117,15 @@ export interface Success extends Exit.Proto { /** * A failed Exit containing a Cause. * - * - Use {@link isFailure} to narrow an `Exit` to `Failure` - * - Access the cause via the `cause` property after narrowing - * - The `Cause` may contain typed errors, defects, or interruptions + * **When to use** + * + * Use when working with the failed branch of an `Exit` after narrowing with + * {@link isFailure}. Access the cause via the `cause` property after + * narrowing. + * + * **Details** + * + * The `Cause` may contain typed errors, defects, or interruptions. * * **Example** (Accessing the failure cause) * @@ -165,18 +143,22 @@ export interface Success extends Exit.Proto { * @see {@link isFailure} to narrow an Exit to Failure * @see {@link Success} for the success counterpart * - * @since 2.0.0 * @category models + * @since 2.0.0 */ export interface Failure extends Exit.Proto { readonly _tag: "Failure"; readonly cause: Cause.Cause; } /** - * Tests whether an unknown value is an Exit. + * Checks whether an unknown value is an Exit. + * + * **When to use** + * + * Use to validate unknown values at system boundaries and narrow them to + * `Exit`. * - * - Use to validate unknown values at system boundaries - * - Works as a type guard, narrowing to `Exit` + * **Details** * * Does not inspect the contents of the Exit. Returns `true` for both Success * and Failure exits. @@ -201,8 +183,11 @@ export declare const isExit: (u: unknown) => u is Exit; /** * Creates a successful Exit containing the given value. * - * - Use to wrap a known success value into an Exit - * - Use when constructing test data or returning explicit results + * **When to use** + * + * Use when you need an Exit that contains a known success value. + * + * **Details** * * Returns a `Success` with the provided value. Does not perform any * computation. @@ -217,7 +202,7 @@ export declare const isExit: (u: unknown) => u is Exit; * ``` * * @see {@link fail} to create a failed Exit - * @see {@link void} for a pre-allocated success with no value + * @see {@link void_ void} for a pre-allocated success with no value * * @category constructors * @since 2.0.0 @@ -226,8 +211,13 @@ export declare const succeed: (a: A) => Exit; /** * Creates a failed Exit from a Cause. * - * - Use when you already have a `Cause` and want to wrap it in an Exit - * - Use for advanced error handling where you need full control over the Cause structure + * **When to use** + * + * Use when you already have a `Cause` and want to wrap it in an Exit + * for advanced error handling where you need full control over the Cause + * structure. + * + * **Details** * * Returns a `Failure`. If you only have an error value, use * {@link fail} instead. @@ -252,8 +242,13 @@ export declare const failCause: (cause: Cause.Cause) => Exit; /** * Creates a failed Exit from a typed error value. * - * - Use for expected, recoverable failures - * - The error is wrapped in a `Cause.Fail` internally + * **When to use** + * + * Use when you need to represent an expected typed failure as an `Exit`. + * + * **Details** + * + * The error is wrapped in a `Cause.Fail` internally. * * Returns a `Failure`. * @@ -277,8 +272,14 @@ export declare const fail: (e: E) => Exit; /** * Creates a failed Exit from a defect (unexpected error). * - * - Use for unexpected, unrecoverable errors that should not appear in the typed error channel - * - The defect is wrapped in a `Cause.Die` internally + * **When to use** + * + * Use when you need unexpected, unrecoverable errors that should not appear in + * the typed error channel. + * + * **Details** + * + * The defect is wrapped in a `Cause.Die` internally. * * Returns a `Failure` with `E = never`, since defects do not appear in * the typed error channel. @@ -302,10 +303,14 @@ export declare const die: (defect: unknown) => Exit; /** * Creates a failed Exit representing fiber interruption. * - * - Use to signal that a fiber was interrupted - * - Optionally pass a fiber ID to identify which fiber was interrupted + * **When to use** + * + * Use to signal that a fiber was interrupted. * - * Returns a `Failure` with an `Interrupt` cause. + * **Details** + * + * Optionally pass a fiber ID to identify which fiber was interrupted. Returns + * a `Failure` with an `Interrupt` cause. * * **Example** (Creating an interruption Exit) * @@ -326,12 +331,16 @@ export declare const interrupt: (fiberId?: number | undefined) => Exit; declare const void_: Exit; export { /** - * A pre-allocated successful Exit with a `void` value. + * Provides a pre-allocated successful Exit with a `void` value. + * + * **When to use** + * + * Use when you need a shared successful `Exit` with no meaningful value. * - * - Use when you need a success Exit but do not care about the value - * - Avoids allocating a new Exit for a common case + * **Details** * - * Equivalent to `Exit.succeed(undefined)` but shared as a single instance. + * Equivalent to `Exit.succeed(undefined)` but shared as a single instance, + * avoiding allocation for a common case. * * **Example** (Using the void Exit) * @@ -350,10 +359,12 @@ export { */ void_ as void }; /** - * Tests whether an Exit is a Success. + * Checks whether an Exit is a Success. * - * - Use as a type guard to narrow `Exit` to `Success` - * - After narrowing, the `value` property becomes accessible + * **When to use** + * + * Use as a type guard to narrow `Exit` to `Success` and access the + * `value` property. * * **Example** (Narrowing to Success) * @@ -375,10 +386,12 @@ void_ as void }; */ export declare const isSuccess: (self: Exit) => self is Success; /** - * Tests whether an Exit is a Failure. + * Checks whether an Exit is a Failure. + * + * **When to use** * - * - Use as a type guard to narrow `Exit` to `Failure` - * - After narrowing, the `cause` property becomes accessible + * Use as a type guard to narrow `Exit` to `Failure` and access the + * `cause` property. * * **Example** (Narrowing to Failure) * @@ -400,13 +413,16 @@ export declare const isSuccess: (self: Exit) => self is Success(self: Exit) => self is Failure; /** - * Tests whether a failed Exit contains typed errors (Fail reasons). + * Checks whether a failed Exit contains typed errors (Fail reasons). * - * - Use to distinguish typed failures from defects or interruptions - * - Returns `false` for successful exits + * **When to use** * - * Only checks for `Fail` reasons in the Cause. A Cause with only `Die` or - * `Interrupt` reasons returns `false`. + * Use to distinguish typed failures from defects or interruptions. + * + * **Details** + * + * Returns `false` for successful exits. Only checks for `Fail` reasons in the + * Cause. A Cause with only `Die` or `Interrupt` reasons returns `false`. * * **Example** (Checking for typed errors) * @@ -426,13 +442,16 @@ export declare const isFailure: (self: Exit) => self is Failure(self: Exit) => self is Failure; /** - * Tests whether a failed Exit contains defects (Die reasons). + * Checks whether a failed Exit contains defects (Die reasons). + * + * **When to use** * - * - Use to check for unexpected errors - * - Returns `false` for successful exits + * Use to check whether an `Exit` failure cause contains unexpected errors. * - * Only checks for `Die` reasons in the Cause. A Cause with only `Fail` or - * `Interrupt` reasons returns `false`. + * **Details** + * + * Returns `false` for successful exits. Only checks for `Die` reasons in the + * Cause. A Cause with only `Fail` or `Interrupt` reasons returns `false`. * * **Example** (Checking for defects) * @@ -452,13 +471,16 @@ export declare const hasFails: (self: Exit) => self is Failure */ export declare const hasDies: (self: Exit) => self is Failure; /** - * Tests whether a failed Exit contains interruptions (Interrupt reasons). + * Checks whether a failed Exit contains interruptions (Interrupt reasons). + * + * **When to use** * - * - Use to check if a fiber was interrupted - * - Returns `false` for successful exits + * Use to check whether an `Exit` contains fiber interruption. * - * Only checks for `Interrupt` reasons in the Cause. A Cause with only `Fail` - * or `Die` reasons returns `false`. + * **Details** + * + * Returns `false` for successful exits. Only checks for `Interrupt` reasons in + * the Cause. A Cause with only `Fail` or `Die` reasons returns `false`. * * **Example** (Checking for interruptions) * @@ -478,107 +500,164 @@ export declare const hasDies: (self: Exit) => self is Failure; */ export declare const hasInterrupts: (self: Exit) => self is Failure; /** - * Extracts the Success variant from an Exit for use in filter pipelines. + * Extracts the Success variant from an Exit as a Result. + * + * **When to use** + * + * Use when composing Exit checks with `Filter` or other `Result`-based + * filtering APIs and you want the full Success wrapper. + * + * **Details** + * + * Returns `Result.succeed(success)` when the Exit is a Success, or + * `Result.fail(failure)` with the original Failure otherwise. * - * - Use with Filter-based composition - * - Returns the `Success` if the Exit succeeded, or a `Filter.fail` wrapping the Failure otherwise + * **Gotchas** + * + * This is not an `Option` accessor or an Effect failure. A failed extraction is + * represented as data in the `Result` failure channel. * * **Example** (Filtering for success) * * ```ts - * import { Exit, Filter } from "effect" + * import { Exit, Result } from "effect" * * const exit = Exit.succeed(42) * const result = Exit.filterSuccess(exit) - * // If exit is a success, result is the Success object - * // If exit is a failure, result is a Filter.fail marker + * + * console.log(Result.isSuccess(result)) // true * ``` * * @see {@link filterFailure} for the inverse * @see {@link filterValue} to extract the raw value instead of the Success object * - * @category filters + * @category filtering * @since 4.0.0 */ export declare const filterSuccess: (self: Exit) => Result.Result, Failure>; /** - * Extracts the success value from an Exit for use in filter pipelines. + * Extracts the success value from an Exit as a Result. + * + * **When to use** + * + * Use when composing Exit checks with `Filter` or other `Result`-based + * filtering APIs and you want the raw success value rather than the Success + * wrapper. + * + * **Details** * - * - Use with Filter-based composition when you want the raw value, not the Success wrapper - * - Returns the value `A` if the Exit succeeded, or a `Filter.fail` wrapping the Failure otherwise + * Returns `Result.succeed(value)` when the Exit is a Success, or + * `Result.fail(failure)` with the original Failure otherwise. + * + * **Gotchas** + * + * This is not an `Option` accessor or an Effect failure. A failed extraction is + * represented as data in the `Result` failure channel. * * **Example** (Filtering for the value) * * ```ts - * import { Exit, Filter } from "effect" + * import { Exit, Result } from "effect" * * const exit = Exit.succeed(42) * const result = Exit.filterValue(exit) - * // If exit is a success, result is 42 - * // If exit is a failure, result is a Filter.fail marker + * + * console.log(Result.isSuccess(result) && result.success) // 42 * ``` * * @see {@link filterSuccess} to get the full Success object * @see {@link getSuccess} to get the value as an Option instead * - * @category filters + * @category filtering * @since 4.0.0 */ export declare const filterValue: (self: Exit) => Result.Result>; /** - * Extracts the Failure variant from an Exit for use in filter pipelines. + * Extracts the Failure variant from an Exit as a Result. + * + * **When to use** * - * - Use with Filter-based composition - * - Returns the `Failure` if the Exit failed, or a `Filter.fail` wrapping the Success otherwise + * Use when composing Exit checks with `Filter` or other `Result`-based + * filtering APIs and you want the full Failure wrapper. + * + * **Details** + * + * Returns `Result.succeed(failure)` when the Exit is a Failure, or + * `Result.fail(success)` with the original Success otherwise. + * + * **Gotchas** + * + * This is not an `Option` accessor or an Effect failure. A failed extraction is + * represented as data in the `Result` failure channel. * * **Example** (Filtering for failure) * * ```ts - * import { Exit, Filter } from "effect" + * import { Exit, Result } from "effect" * * const exit = Exit.fail("err") * const result = Exit.filterFailure(exit) - * // If exit is a failure, result is the Failure object - * // If exit is a success, result is a Filter.fail marker + * + * console.log(Result.isSuccess(result)) // true * ``` * * @see {@link filterSuccess} for the inverse * @see {@link filterCause} to extract the Cause directly * - * @category filters + * @category filtering * @since 4.0.0 */ export declare const filterFailure: (self: Exit) => Result.Result, Success>; /** - * Extracts the Cause from a failed Exit for use in filter pipelines. + * Extracts the Cause from a failed Exit as a Result. + * + * **When to use** + * + * Use when composing Exit checks with `Filter` or other `Result`-based + * filtering APIs and you want the raw Cause rather than the Failure wrapper. + * + * **Details** + * + * Returns `Result.succeed(cause)` when the Exit is a Failure, or + * `Result.fail(success)` with the original Success otherwise. + * + * **Gotchas** * - * - Use with Filter-based composition when you want the raw Cause, not the Failure wrapper - * - Returns the `Cause` if the Exit failed, or a `Filter.fail` wrapping the Success otherwise + * This is not an `Option` accessor or an Effect failure. A failed extraction is + * represented as data in the `Result` failure channel. * * **Example** (Filtering for the cause) * * ```ts - * import { Exit, Filter } from "effect" + * import { Exit, Result } from "effect" * * const exit = Exit.fail("err") * const result = Exit.filterCause(exit) - * // If exit is a failure, result is the Cause - * // If exit is a success, result is a Filter.fail marker + * + * console.log(Result.isSuccess(result)) // true * ``` * * @see {@link filterFailure} to get the full Failure object * @see {@link getCause} to get the Cause as an Option instead * - * @category filters + * @category filtering * @since 4.0.0 */ export declare const filterCause: (self: Exit) => Result.Result, Success>; /** - * Extracts the first typed error value from a failed Exit for use in filter - * pipelines. + * Extracts the first typed error value from a failed Exit as a Result. + * + * **When to use** + * + * Use when you need the first typed error from an `Exit` as a `Result` for + * `Filter` or other `Result`-based filtering APIs. + * + * **Details** + * + * Returns `Result.succeed(error)` when the Cause contains a Fail reason, or + * `Result.fail(exit)` with the original Exit otherwise. * - * - Use when you need just the first `E` from the Cause - * - Returns the error `E` if one exists, or `Filter.fail` wrapping the original Exit if the Exit has no typed errors + * **Gotchas** * * Only finds the first Fail reason. If the Cause has multiple errors, the rest * are ignored. @@ -586,29 +665,38 @@ export declare const filterCause: (self: Exit) => Result.Result(input: Exit) => Result.Result>; /** - * Extracts the first defect from a failed Exit for use in filter pipelines. + * Extracts the first defect from a failed Exit as a Result. * - * - Use when you need to inspect unexpected errors - * - Returns the defect value if one exists, or `Filter.fail` wrapping the original Exit if the Exit has no defects + * **When to use** + * + * Use when you need the first defect from an `Exit` as a `Result` for + * `Filter` or other `Result`-based filtering APIs. + * + * **Details** + * + * Returns `Result.succeed(defect)` when the Cause contains a Die reason, or + * `Result.fail(exit)` with the original Exit otherwise. + * + * **Gotchas** * * Only finds the first Die reason. If the Cause has multiple defects, the rest * are ignored. @@ -616,32 +704,36 @@ export declare const findError: (input: Exit) => Result.Result(input: Exit) => Result.Result>; /** * Pattern matches on an Exit, handling both success and failure cases. * - * - Use for exhaustive handling of both outcomes - * - Calls `onSuccess` with the value if the Exit is a Success - * - Calls `onFailure` with the Cause if the Exit is a Failure + * **When to use** + * + * Use when you need exhaustive handling of both `Exit` success and failure + * outcomes. * - * Supports both curried and direct call styles (data-last and data-first). + * **Details** + * + * Calls `onSuccess` with the value if the Exit is a Success, and calls + * `onFailure` with the Cause if the Exit is a Failure. * * **Example** (Matching on an Exit) * @@ -666,11 +758,15 @@ export declare const match: { /** * Pattern matches on an Exit, handling both success and failure cases. * - * - Use for exhaustive handling of both outcomes - * - Calls `onSuccess` with the value if the Exit is a Success - * - Calls `onFailure` with the Cause if the Exit is a Failure + * **When to use** + * + * Use when you need exhaustive handling of both `Exit` success and failure + * outcomes. + * + * **Details** * - * Supports both curried and direct call styles (data-last and data-first). + * Calls `onSuccess` with the value if the Exit is a Success, and calls + * `onFailure` with the Cause if the Exit is a Failure. * * **Example** (Matching on an Exit) * @@ -698,11 +794,15 @@ export declare const match: { /** * Pattern matches on an Exit, handling both success and failure cases. * - * - Use for exhaustive handling of both outcomes - * - Calls `onSuccess` with the value if the Exit is a Success - * - Calls `onFailure` with the Cause if the Exit is a Failure + * **When to use** + * + * Use when you need exhaustive handling of both `Exit` success and failure + * outcomes. + * + * **Details** * - * Supports both curried and direct call styles (data-last and data-first). + * Calls `onSuccess` with the value if the Exit is a Success, and calls + * `onFailure` with the Cause if the Exit is a Failure. * * **Example** (Matching on an Exit) * @@ -731,11 +831,15 @@ export declare const match: { /** * Transforms the success value of an Exit using the given function. * - * - Use to apply a transformation to the value inside a successful Exit - * - Has no effect on failures, which pass through unchanged + * **When to use** * - * Allocates a new Exit if successful. Does not mutate the input. - * Supports both curried and direct call styles. + * Use to apply a transformation to the value inside a successful Exit + * + * **Details** + * + * Failures pass through unchanged. + * + * Allocates a new Exit if successful. * * **Example** (Mapping over a success) * @@ -757,11 +861,15 @@ export declare const map: { /** * Transforms the success value of an Exit using the given function. * - * - Use to apply a transformation to the value inside a successful Exit - * - Has no effect on failures, which pass through unchanged + * **When to use** + * + * Use to apply a transformation to the value inside a successful Exit + * + * **Details** * - * Allocates a new Exit if successful. Does not mutate the input. - * Supports both curried and direct call styles. + * Failures pass through unchanged. + * + * Allocates a new Exit if successful. * * **Example** (Mapping over a success) * @@ -783,11 +891,15 @@ export declare const map: { /** * Transforms the success value of an Exit using the given function. * - * - Use to apply a transformation to the value inside a successful Exit - * - Has no effect on failures, which pass through unchanged + * **When to use** + * + * Use to apply a transformation to the value inside a successful Exit + * + * **Details** * - * Allocates a new Exit if successful. Does not mutate the input. - * Supports both curried and direct call styles. + * Failures pass through unchanged. + * + * Allocates a new Exit if successful. * * **Example** (Mapping over a success) * @@ -810,12 +922,20 @@ export declare const map: { /** * Transforms the typed error of a failed Exit using the given function. * - * - Use to remap typed errors while preserving the Exit structure - * - Has no effect on successes, which pass through unchanged - * - Only transforms typed errors (Fail reasons). If the Cause contains only defects or interruptions, the failure passes through unchanged. + * **When to use** + * + * Use to remap typed errors while preserving the Exit structure + * + * **Details** + * + * Successes pass through unchanged. + * + * Allocates a new Exit if the error is transformed. + * + * **Gotchas** * - * Allocates a new Exit if the error is transformed. Does not mutate the input. - * Supports both curried and direct call styles. + * Only transforms typed errors (Fail reasons). If the Cause contains only + * defects or interruptions, the failure passes through unchanged. * * **Example** (Mapping over an error) * @@ -839,12 +959,20 @@ export declare const mapError: { /** * Transforms the typed error of a failed Exit using the given function. * - * - Use to remap typed errors while preserving the Exit structure - * - Has no effect on successes, which pass through unchanged - * - Only transforms typed errors (Fail reasons). If the Cause contains only defects or interruptions, the failure passes through unchanged. + * **When to use** * - * Allocates a new Exit if the error is transformed. Does not mutate the input. - * Supports both curried and direct call styles. + * Use to remap typed errors while preserving the Exit structure + * + * **Details** + * + * Successes pass through unchanged. + * + * Allocates a new Exit if the error is transformed. + * + * **Gotchas** + * + * Only transforms typed errors (Fail reasons). If the Cause contains only + * defects or interruptions, the failure passes through unchanged. * * **Example** (Mapping over an error) * @@ -868,12 +996,20 @@ export declare const mapError: { /** * Transforms the typed error of a failed Exit using the given function. * - * - Use to remap typed errors while preserving the Exit structure - * - Has no effect on successes, which pass through unchanged - * - Only transforms typed errors (Fail reasons). If the Cause contains only defects or interruptions, the failure passes through unchanged. + * **When to use** + * + * Use to remap typed errors while preserving the Exit structure + * + * **Details** + * + * Successes pass through unchanged. + * + * Allocates a new Exit if the error is transformed. + * + * **Gotchas** * - * Allocates a new Exit if the error is transformed. Does not mutate the input. - * Supports both curried and direct call styles. + * Only transforms typed errors (Fail reasons). If the Cause contains only + * defects or interruptions, the failure passes through unchanged. * * **Example** (Mapping over an error) * @@ -898,13 +1034,20 @@ export declare const mapError: { /** * Transforms both the success value and typed error of an Exit. * - * - Use when you need to remap both channels in one step - * - `onSuccess` transforms the value if the Exit is a Success - * - `onFailure` transforms the typed error if the Exit is a Failure with a Fail reason - * - If the Cause contains only defects or interruptions, the failure passes through unchanged + * **When to use** * - * Allocates a new Exit. Does not mutate the input. - * Supports both curried and direct call styles. + * Use when you need to remap both channels in one step. + * + * **Details** + * + * `onSuccess` transforms the value if the Exit is a Success. `onFailure` + * transforms the typed error if the Exit is a Failure with a Fail reason. + * Allocates a new Exit. + * + * **Gotchas** + * + * If the Cause contains only defects or interruptions, the failure passes + * through unchanged. * * **Example** (Mapping both channels) * @@ -931,13 +1074,20 @@ export declare const mapBoth: { /** * Transforms both the success value and typed error of an Exit. * - * - Use when you need to remap both channels in one step - * - `onSuccess` transforms the value if the Exit is a Success - * - `onFailure` transforms the typed error if the Exit is a Failure with a Fail reason - * - If the Cause contains only defects or interruptions, the failure passes through unchanged + * **When to use** + * + * Use when you need to remap both channels in one step. * - * Allocates a new Exit. Does not mutate the input. - * Supports both curried and direct call styles. + * **Details** + * + * `onSuccess` transforms the value if the Exit is a Success. `onFailure` + * transforms the typed error if the Exit is a Failure with a Fail reason. + * Allocates a new Exit. + * + * **Gotchas** + * + * If the Cause contains only defects or interruptions, the failure passes + * through unchanged. * * **Example** (Mapping both channels) * @@ -967,13 +1117,20 @@ export declare const mapBoth: { /** * Transforms both the success value and typed error of an Exit. * - * - Use when you need to remap both channels in one step - * - `onSuccess` transforms the value if the Exit is a Success - * - `onFailure` transforms the typed error if the Exit is a Failure with a Fail reason - * - If the Cause contains only defects or interruptions, the failure passes through unchanged + * **When to use** + * + * Use when you need to remap both channels in one step. + * + * **Details** * - * Allocates a new Exit. Does not mutate the input. - * Supports both curried and direct call styles. + * `onSuccess` transforms the value if the Exit is a Success. `onFailure` + * transforms the typed error if the Exit is a Failure with a Fail reason. + * Allocates a new Exit. + * + * **Gotchas** + * + * If the Cause contains only defects or interruptions, the failure passes + * through unchanged. * * **Example** (Mapping both channels) * @@ -1004,10 +1161,16 @@ export declare const mapBoth: { /** * Discards the success value of an Exit, replacing it with `void`. * - * - Use when you only care about whether the computation succeeded or failed, not the value - * - Failures pass through unchanged + * **When to use** + * + * Use when you need to discard a successful `Exit` value while preserving + * whether the `Exit` succeeded or failed. + * + * **Details** + * + * Failures pass through unchanged. * - * Allocates a new Exit if successful. Does not mutate the input. + * Allocates a new Exit if successful. * * **Example** (Discarding the success value) * @@ -1019,7 +1182,7 @@ export declare const mapBoth: { * console.log(Exit.isSuccess(voided)) // true * ``` * - * @see {@link void} for a pre-allocated void success + * @see {@link void_ void} for a pre-allocated void success * @see {@link asVoidAll} to combine multiple exits into a single void Exit * * @category combinators @@ -1029,9 +1192,14 @@ export declare const asVoid: (self: Exit) => Exit; /** * Combines multiple Exit values into a single `Exit`. * - * - Use to validate that all exits in a collection succeeded - * - If all exits are successful, returns a void success - * - If any exit is a failure, returns a single failure with all error causes combined + * **When to use** + * + * Use to validate that all exits in a collection succeeded + * + * **Details** + * + * If all exits are successful, this returns a void success. If any exit is a + * failure, this returns a single failure with all error causes combined. * * Iterates over the entire collection. Collects all failure causes, not just * the first. @@ -1057,8 +1225,14 @@ export declare const asVoidAll: >>(exits: I) = /** * Returns the success value of an Exit as an Option. * - * - Use when you want to optionally extract the value without pattern matching - * - Returns `Option.some(value)` for a Success, `Option.none()` for a Failure + * **When to use** + * + * Use when you need the success value from an `Exit` as an `Option` instead of + * pattern matching. + * + * **Details** + * + * Returns `Option.some(value)` for a Success and `Option.none()` for a Failure. * * **Example** (Getting the success value) * @@ -1072,15 +1246,21 @@ export declare const asVoidAll: >>(exits: I) = * @see {@link getCause} to extract the Cause of a failure * @see {@link filterValue} for filter-pipeline usage * - * @category Accessors + * @category accessors * @since 4.0.0 */ export declare const getSuccess: (self: Exit) => Option; /** * Returns the Cause of a failed Exit as an Option. * - * - Use when you want to optionally inspect the failure cause - * - Returns `Option.some(cause)` for a Failure, `Option.none()` for a Success + * **When to use** + * + * Use when you need the failure `Cause` from an `Exit` as an `Option` instead + * of pattern matching. + * + * **Details** + * + * Returns `Option.some(cause)` for a Failure and `Option.none()` for a Success. * * **Example** (Getting the failure cause) * @@ -1094,16 +1274,27 @@ export declare const getSuccess: (self: Exit) => Option; * @see {@link getSuccess} to extract the success value * @see {@link filterCause} for filter-pipeline usage * - * @category Accessors + * @category accessors * @since 4.0.0 */ export declare const getCause: (self: Exit) => Option>; /** * Returns the first typed error from a failed Exit as an Option. * - * - Use when you want to optionally extract a typed error without dealing with the full Cause - * - Returns `Option.some(error)` if the Cause contains a Fail reason, `Option.none()` otherwise - * - Returns `Option.none()` for successes, defect-only failures, and interrupt-only failures + * **When to use** + * + * Use when you need the first typed error from an `Exit` as an `Option`, + * ignoring successes and non-typed failures. + * + * **Details** + * + * Returns `Option.some(error)` if the Cause contains a Fail reason. Successes, + * defect-only failures, and interrupt-only failures return `Option.none()`. + * + * **Gotchas** + * + * Only finds the first Fail reason. If the Cause has multiple typed errors, + * the rest are ignored. * * **Example** (Getting the first error) * @@ -1118,7 +1309,7 @@ export declare const getCause: (self: Exit) => Option * @see {@link findError} for filter-pipeline usage * @see {@link getCause} to get the full Cause as an Option * - * @category Accessors + * @category accessors * @since 4.0.0 */ export declare const findErrorOption: (self: Exit) => Option; diff --git a/.opencode/node_modules/effect/dist/Exit.d.ts.map b/.opencode/node_modules/effect/dist/Exit.d.ts.map index e09b68d8e5d626782618f89021591d1c2a923429..571f3ee7aebc079ae8f092bb62e15160630844ee 100644 --- a/.opencode/node_modules/effect/dist/Exit.d.ts.map +++ b/.opencode/node_modules/effect/dist/Exit.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Exit.d.ts","sourceRoot":"","sources":["../src/Exit.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyDG;AACH,OAAO,KAAK,KAA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AAM,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC,IAAI,EAAE,CAAC,CAAqB,CAAA;AAElF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,eAAO,MAAM,SAAS,EAAE,CAAC,CAAC,SAAS,QAAQ,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,EACzD,KAAK,EAAE,CAAC,KACL,IAAI,CAAC,IAAI,EAAE,CAAC,SAAS,QAAQ,CAAC,IAAI,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,GAAG,EAAE,GAAG,KAAK,CAAwB,CAAA;AAEjG;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,UAAU,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,MAAM,CAAC,CAAC,CAAyB,CAAA;AAEtF;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAuB,CAAA;AAE/F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,eAAO,MAAM,eAAe,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,MAAM,CAAC,CAAC,CAA8B,CAAA"} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Exit.js b/.opencode/node_modules/effect/dist/Exit.js index 16cecd4503b563d9eae7dbd2458ee053735f485d..7ac5b9322f168e78d2c3fd405dfebee283300744 100644 --- a/.opencode/node_modules/effect/dist/Exit.js +++ b/.opencode/node_modules/effect/dist/Exit.js @@ -2,10 +2,14 @@ import * as core from "./internal/core.js"; import * as effect from "./internal/effect.js"; const TypeId = core.ExitTypeId; /** - * Tests whether an unknown value is an Exit. + * Checks whether an unknown value is an Exit. * - * - Use to validate unknown values at system boundaries - * - Works as a type guard, narrowing to `Exit` + * **When to use** + * + * Use to validate unknown values at system boundaries and narrow them to + * `Exit`. + * + * **Details** * * Does not inspect the contents of the Exit. Returns `true` for both Success * and Failure exits. @@ -30,8 +34,11 @@ export const isExit = core.isExit; /** * Creates a successful Exit containing the given value. * - * - Use to wrap a known success value into an Exit - * - Use when constructing test data or returning explicit results + * **When to use** + * + * Use when you need an Exit that contains a known success value. + * + * **Details** * * Returns a `Success` with the provided value. Does not perform any * computation. @@ -46,7 +53,7 @@ export const isExit = core.isExit; * ``` * * @see {@link fail} to create a failed Exit - * @see {@link void} for a pre-allocated success with no value + * @see {@link void_ void} for a pre-allocated success with no value * * @category constructors * @since 2.0.0 @@ -55,8 +62,13 @@ export const succeed = core.exitSucceed; /** * Creates a failed Exit from a Cause. * - * - Use when you already have a `Cause` and want to wrap it in an Exit - * - Use for advanced error handling where you need full control over the Cause structure + * **When to use** + * + * Use when you already have a `Cause` and want to wrap it in an Exit + * for advanced error handling where you need full control over the Cause + * structure. + * + * **Details** * * Returns a `Failure`. If you only have an error value, use * {@link fail} instead. @@ -81,8 +93,13 @@ export const failCause = core.exitFailCause; /** * Creates a failed Exit from a typed error value. * - * - Use for expected, recoverable failures - * - The error is wrapped in a `Cause.Fail` internally + * **When to use** + * + * Use when you need to represent an expected typed failure as an `Exit`. + * + * **Details** + * + * The error is wrapped in a `Cause.Fail` internally. * * Returns a `Failure`. * @@ -106,8 +123,14 @@ export const fail = core.exitFail; /** * Creates a failed Exit from a defect (unexpected error). * - * - Use for unexpected, unrecoverable errors that should not appear in the typed error channel - * - The defect is wrapped in a `Cause.Die` internally + * **When to use** + * + * Use when you need unexpected, unrecoverable errors that should not appear in + * the typed error channel. + * + * **Details** + * + * The defect is wrapped in a `Cause.Die` internally. * * Returns a `Failure` with `E = never`, since defects do not appear in * the typed error channel. @@ -131,10 +154,14 @@ export const die = core.exitDie; /** * Creates a failed Exit representing fiber interruption. * - * - Use to signal that a fiber was interrupted - * - Optionally pass a fiber ID to identify which fiber was interrupted + * **When to use** + * + * Use to signal that a fiber was interrupted. * - * Returns a `Failure` with an `Interrupt` cause. + * **Details** + * + * Optionally pass a fiber ID to identify which fiber was interrupted. Returns + * a `Failure` with an `Interrupt` cause. * * **Example** (Creating an interruption Exit) * @@ -155,12 +182,16 @@ export const interrupt = effect.exitInterrupt; const void_ = effect.exitVoid; export { /** - * A pre-allocated successful Exit with a `void` value. + * Provides a pre-allocated successful Exit with a `void` value. + * + * **When to use** + * + * Use when you need a shared successful `Exit` with no meaningful value. * - * - Use when you need a success Exit but do not care about the value - * - Avoids allocating a new Exit for a common case + * **Details** * - * Equivalent to `Exit.succeed(undefined)` but shared as a single instance. + * Equivalent to `Exit.succeed(undefined)` but shared as a single instance, + * avoiding allocation for a common case. * * **Example** (Using the void Exit) * @@ -179,10 +210,12 @@ export { */ void_ as void }; /** - * Tests whether an Exit is a Success. + * Checks whether an Exit is a Success. * - * - Use as a type guard to narrow `Exit` to `Success` - * - After narrowing, the `value` property becomes accessible + * **When to use** + * + * Use as a type guard to narrow `Exit` to `Success` and access the + * `value` property. * * **Example** (Narrowing to Success) * @@ -204,10 +237,12 @@ void_ as void }; */ export const isSuccess = effect.exitIsSuccess; /** - * Tests whether an Exit is a Failure. + * Checks whether an Exit is a Failure. + * + * **When to use** * - * - Use as a type guard to narrow `Exit` to `Failure` - * - After narrowing, the `cause` property becomes accessible + * Use as a type guard to narrow `Exit` to `Failure` and access the + * `cause` property. * * **Example** (Narrowing to Failure) * @@ -229,13 +264,16 @@ export const isSuccess = effect.exitIsSuccess; */ export const isFailure = effect.exitIsFailure; /** - * Tests whether a failed Exit contains typed errors (Fail reasons). + * Checks whether a failed Exit contains typed errors (Fail reasons). + * + * **When to use** * - * - Use to distinguish typed failures from defects or interruptions - * - Returns `false` for successful exits + * Use to distinguish typed failures from defects or interruptions. * - * Only checks for `Fail` reasons in the Cause. A Cause with only `Die` or - * `Interrupt` reasons returns `false`. + * **Details** + * + * Returns `false` for successful exits. Only checks for `Fail` reasons in the + * Cause. A Cause with only `Die` or `Interrupt` reasons returns `false`. * * **Example** (Checking for typed errors) * @@ -255,13 +293,16 @@ export const isFailure = effect.exitIsFailure; */ export const hasFails = effect.exitHasFails; /** - * Tests whether a failed Exit contains defects (Die reasons). + * Checks whether a failed Exit contains defects (Die reasons). + * + * **When to use** * - * - Use to check for unexpected errors - * - Returns `false` for successful exits + * Use to check whether an `Exit` failure cause contains unexpected errors. * - * Only checks for `Die` reasons in the Cause. A Cause with only `Fail` or - * `Interrupt` reasons returns `false`. + * **Details** + * + * Returns `false` for successful exits. Only checks for `Die` reasons in the + * Cause. A Cause with only `Fail` or `Interrupt` reasons returns `false`. * * **Example** (Checking for defects) * @@ -281,13 +322,16 @@ export const hasFails = effect.exitHasFails; */ export const hasDies = effect.exitHasDies; /** - * Tests whether a failed Exit contains interruptions (Interrupt reasons). + * Checks whether a failed Exit contains interruptions (Interrupt reasons). + * + * **When to use** + * + * Use to check whether an `Exit` contains fiber interruption. * - * - Use to check if a fiber was interrupted - * - Returns `false` for successful exits + * **Details** * - * Only checks for `Interrupt` reasons in the Cause. A Cause with only `Fail` - * or `Die` reasons returns `false`. + * Returns `false` for successful exits. Only checks for `Interrupt` reasons in + * the Cause. A Cause with only `Fail` or `Die` reasons returns `false`. * * **Example** (Checking for interruptions) * @@ -307,107 +351,164 @@ export const hasDies = effect.exitHasDies; */ export const hasInterrupts = effect.exitHasInterrupts; /** - * Extracts the Success variant from an Exit for use in filter pipelines. + * Extracts the Success variant from an Exit as a Result. + * + * **When to use** + * + * Use when composing Exit checks with `Filter` or other `Result`-based + * filtering APIs and you want the full Success wrapper. + * + * **Details** * - * - Use with Filter-based composition - * - Returns the `Success` if the Exit succeeded, or a `Filter.fail` wrapping the Failure otherwise + * Returns `Result.succeed(success)` when the Exit is a Success, or + * `Result.fail(failure)` with the original Failure otherwise. + * + * **Gotchas** + * + * This is not an `Option` accessor or an Effect failure. A failed extraction is + * represented as data in the `Result` failure channel. * * **Example** (Filtering for success) * * ```ts - * import { Exit, Filter } from "effect" + * import { Exit, Result } from "effect" * * const exit = Exit.succeed(42) * const result = Exit.filterSuccess(exit) - * // If exit is a success, result is the Success object - * // If exit is a failure, result is a Filter.fail marker + * + * console.log(Result.isSuccess(result)) // true * ``` * * @see {@link filterFailure} for the inverse * @see {@link filterValue} to extract the raw value instead of the Success object * - * @category filters + * @category filtering * @since 4.0.0 */ export const filterSuccess = effect.exitFilterSuccess; /** - * Extracts the success value from an Exit for use in filter pipelines. + * Extracts the success value from an Exit as a Result. + * + * **When to use** + * + * Use when composing Exit checks with `Filter` or other `Result`-based + * filtering APIs and you want the raw success value rather than the Success + * wrapper. * - * - Use with Filter-based composition when you want the raw value, not the Success wrapper - * - Returns the value `A` if the Exit succeeded, or a `Filter.fail` wrapping the Failure otherwise + * **Details** + * + * Returns `Result.succeed(value)` when the Exit is a Success, or + * `Result.fail(failure)` with the original Failure otherwise. + * + * **Gotchas** + * + * This is not an `Option` accessor or an Effect failure. A failed extraction is + * represented as data in the `Result` failure channel. * * **Example** (Filtering for the value) * * ```ts - * import { Exit, Filter } from "effect" + * import { Exit, Result } from "effect" * * const exit = Exit.succeed(42) * const result = Exit.filterValue(exit) - * // If exit is a success, result is 42 - * // If exit is a failure, result is a Filter.fail marker + * + * console.log(Result.isSuccess(result) && result.success) // 42 * ``` * * @see {@link filterSuccess} to get the full Success object * @see {@link getSuccess} to get the value as an Option instead * - * @category filters + * @category filtering * @since 4.0.0 */ export const filterValue = effect.exitFilterValue; /** - * Extracts the Failure variant from an Exit for use in filter pipelines. + * Extracts the Failure variant from an Exit as a Result. + * + * **When to use** + * + * Use when composing Exit checks with `Filter` or other `Result`-based + * filtering APIs and you want the full Failure wrapper. * - * - Use with Filter-based composition - * - Returns the `Failure` if the Exit failed, or a `Filter.fail` wrapping the Success otherwise + * **Details** + * + * Returns `Result.succeed(failure)` when the Exit is a Failure, or + * `Result.fail(success)` with the original Success otherwise. + * + * **Gotchas** + * + * This is not an `Option` accessor or an Effect failure. A failed extraction is + * represented as data in the `Result` failure channel. * * **Example** (Filtering for failure) * * ```ts - * import { Exit, Filter } from "effect" + * import { Exit, Result } from "effect" * * const exit = Exit.fail("err") * const result = Exit.filterFailure(exit) - * // If exit is a failure, result is the Failure object - * // If exit is a success, result is a Filter.fail marker + * + * console.log(Result.isSuccess(result)) // true * ``` * * @see {@link filterSuccess} for the inverse * @see {@link filterCause} to extract the Cause directly * - * @category filters + * @category filtering * @since 4.0.0 */ export const filterFailure = effect.exitFilterFailure; /** - * Extracts the Cause from a failed Exit for use in filter pipelines. + * Extracts the Cause from a failed Exit as a Result. + * + * **When to use** * - * - Use with Filter-based composition when you want the raw Cause, not the Failure wrapper - * - Returns the `Cause` if the Exit failed, or a `Filter.fail` wrapping the Success otherwise + * Use when composing Exit checks with `Filter` or other `Result`-based + * filtering APIs and you want the raw Cause rather than the Failure wrapper. + * + * **Details** + * + * Returns `Result.succeed(cause)` when the Exit is a Failure, or + * `Result.fail(success)` with the original Success otherwise. + * + * **Gotchas** + * + * This is not an `Option` accessor or an Effect failure. A failed extraction is + * represented as data in the `Result` failure channel. * * **Example** (Filtering for the cause) * * ```ts - * import { Exit, Filter } from "effect" + * import { Exit, Result } from "effect" * * const exit = Exit.fail("err") * const result = Exit.filterCause(exit) - * // If exit is a failure, result is the Cause - * // If exit is a success, result is a Filter.fail marker + * + * console.log(Result.isSuccess(result)) // true * ``` * * @see {@link filterFailure} to get the full Failure object * @see {@link getCause} to get the Cause as an Option instead * - * @category filters + * @category filtering * @since 4.0.0 */ export const filterCause = effect.exitFilterCause; /** - * Extracts the first typed error value from a failed Exit for use in filter - * pipelines. + * Extracts the first typed error value from a failed Exit as a Result. + * + * **When to use** * - * - Use when you need just the first `E` from the Cause - * - Returns the error `E` if one exists, or `Filter.fail` wrapping the original Exit if the Exit has no typed errors + * Use when you need the first typed error from an `Exit` as a `Result` for + * `Filter` or other `Result`-based filtering APIs. + * + * **Details** + * + * Returns `Result.succeed(error)` when the Cause contains a Fail reason, or + * `Result.fail(exit)` with the original Exit otherwise. + * + * **Gotchas** * * Only finds the first Fail reason. If the Cause has multiple errors, the rest * are ignored. @@ -415,29 +516,38 @@ export const filterCause = effect.exitFilterCause; * **Example** (Finding the first typed error) * * ```ts - * import { Exit, Filter } from "effect" + * import { Exit, Result } from "effect" * * const exit = Exit.fail("not found") * const result = Exit.findError(exit) - * // result is "not found" + * console.log(Result.isSuccess(result) && result.success) // "not found" * * const defect = Exit.die(new Error("bug")) * const noError = Exit.findError(defect) - * // noError is a Filter.fail marker + * console.log(Result.isFailure(noError)) // true * ``` * * @see {@link findErrorOption} to get the error as an Option instead * @see {@link findDefect} to find defects instead * - * @category filters + * @category filtering * @since 4.0.0 */ export const findError = effect.exitFindError; /** - * Extracts the first defect from a failed Exit for use in filter pipelines. + * Extracts the first defect from a failed Exit as a Result. + * + * **When to use** + * + * Use when you need the first defect from an `Exit` as a `Result` for + * `Filter` or other `Result`-based filtering APIs. * - * - Use when you need to inspect unexpected errors - * - Returns the defect value if one exists, or `Filter.fail` wrapping the original Exit if the Exit has no defects + * **Details** + * + * Returns `Result.succeed(defect)` when the Cause contains a Die reason, or + * `Result.fail(exit)` with the original Exit otherwise. + * + * **Gotchas** * * Only finds the first Die reason. If the Cause has multiple defects, the rest * are ignored. @@ -445,32 +555,36 @@ export const findError = effect.exitFindError; * **Example** (Finding the first defect) * * ```ts - * import { Exit, Filter } from "effect" + * import { Exit, Result } from "effect" * * const exit = Exit.die("boom") * const result = Exit.findDefect(exit) - * // result is "boom" + * console.log(Result.isSuccess(result) && result.success) // "boom" * * const typed = Exit.fail("err") * const noDefect = Exit.findDefect(typed) - * // noDefect is a Filter.fail marker + * console.log(Result.isFailure(noDefect)) // true * ``` * * @see {@link findError} to find typed errors instead * @see {@link hasDies} to check for defects without extracting them * - * @category filters + * @category filtering * @since 4.0.0 */ export const findDefect = effect.exitFindDefect; /** * Pattern matches on an Exit, handling both success and failure cases. * - * - Use for exhaustive handling of both outcomes - * - Calls `onSuccess` with the value if the Exit is a Success - * - Calls `onFailure` with the Cause if the Exit is a Failure + * **When to use** + * + * Use when you need exhaustive handling of both `Exit` success and failure + * outcomes. * - * Supports both curried and direct call styles (data-last and data-first). + * **Details** + * + * Calls `onSuccess` with the value if the Exit is a Success, and calls + * `onFailure` with the Cause if the Exit is a Failure. * * **Example** (Matching on an Exit) * @@ -495,11 +609,15 @@ export const match = effect.exitMatch; /** * Transforms the success value of an Exit using the given function. * - * - Use to apply a transformation to the value inside a successful Exit - * - Has no effect on failures, which pass through unchanged + * **When to use** + * + * Use to apply a transformation to the value inside a successful Exit + * + * **Details** * - * Allocates a new Exit if successful. Does not mutate the input. - * Supports both curried and direct call styles. + * Failures pass through unchanged. + * + * Allocates a new Exit if successful. * * **Example** (Mapping over a success) * @@ -521,12 +639,20 @@ export const map = effect.exitMap; /** * Transforms the typed error of a failed Exit using the given function. * - * - Use to remap typed errors while preserving the Exit structure - * - Has no effect on successes, which pass through unchanged - * - Only transforms typed errors (Fail reasons). If the Cause contains only defects or interruptions, the failure passes through unchanged. + * **When to use** + * + * Use to remap typed errors while preserving the Exit structure + * + * **Details** + * + * Successes pass through unchanged. + * + * Allocates a new Exit if the error is transformed. * - * Allocates a new Exit if the error is transformed. Does not mutate the input. - * Supports both curried and direct call styles. + * **Gotchas** + * + * Only transforms typed errors (Fail reasons). If the Cause contains only + * defects or interruptions, the failure passes through unchanged. * * **Example** (Mapping over an error) * @@ -550,13 +676,20 @@ export const mapError = effect.exitMapError; /** * Transforms both the success value and typed error of an Exit. * - * - Use when you need to remap both channels in one step - * - `onSuccess` transforms the value if the Exit is a Success - * - `onFailure` transforms the typed error if the Exit is a Failure with a Fail reason - * - If the Cause contains only defects or interruptions, the failure passes through unchanged + * **When to use** + * + * Use when you need to remap both channels in one step. + * + * **Details** * - * Allocates a new Exit. Does not mutate the input. - * Supports both curried and direct call styles. + * `onSuccess` transforms the value if the Exit is a Success. `onFailure` + * transforms the typed error if the Exit is a Failure with a Fail reason. + * Allocates a new Exit. + * + * **Gotchas** + * + * If the Cause contains only defects or interruptions, the failure passes + * through unchanged. * * **Example** (Mapping both channels) * @@ -583,10 +716,16 @@ export const mapBoth = effect.exitMapBoth; /** * Discards the success value of an Exit, replacing it with `void`. * - * - Use when you only care about whether the computation succeeded or failed, not the value - * - Failures pass through unchanged + * **When to use** + * + * Use when you need to discard a successful `Exit` value while preserving + * whether the `Exit` succeeded or failed. * - * Allocates a new Exit if successful. Does not mutate the input. + * **Details** + * + * Failures pass through unchanged. + * + * Allocates a new Exit if successful. * * **Example** (Discarding the success value) * @@ -598,7 +737,7 @@ export const mapBoth = effect.exitMapBoth; * console.log(Exit.isSuccess(voided)) // true * ``` * - * @see {@link void} for a pre-allocated void success + * @see {@link void_ void} for a pre-allocated void success * @see {@link asVoidAll} to combine multiple exits into a single void Exit * * @category combinators @@ -608,9 +747,14 @@ export const asVoid = effect.exitAsVoid; /** * Combines multiple Exit values into a single `Exit`. * - * - Use to validate that all exits in a collection succeeded - * - If all exits are successful, returns a void success - * - If any exit is a failure, returns a single failure with all error causes combined + * **When to use** + * + * Use to validate that all exits in a collection succeeded + * + * **Details** + * + * If all exits are successful, this returns a void success. If any exit is a + * failure, this returns a single failure with all error causes combined. * * Iterates over the entire collection. Collects all failure causes, not just * the first. @@ -636,8 +780,14 @@ export const asVoidAll = effect.exitAsVoidAll; /** * Returns the success value of an Exit as an Option. * - * - Use when you want to optionally extract the value without pattern matching - * - Returns `Option.some(value)` for a Success, `Option.none()` for a Failure + * **When to use** + * + * Use when you need the success value from an `Exit` as an `Option` instead of + * pattern matching. + * + * **Details** + * + * Returns `Option.some(value)` for a Success and `Option.none()` for a Failure. * * **Example** (Getting the success value) * @@ -651,15 +801,21 @@ export const asVoidAll = effect.exitAsVoidAll; * @see {@link getCause} to extract the Cause of a failure * @see {@link filterValue} for filter-pipeline usage * - * @category Accessors + * @category accessors * @since 4.0.0 */ export const getSuccess = effect.exitGetSuccess; /** * Returns the Cause of a failed Exit as an Option. * - * - Use when you want to optionally inspect the failure cause - * - Returns `Option.some(cause)` for a Failure, `Option.none()` for a Success + * **When to use** + * + * Use when you need the failure `Cause` from an `Exit` as an `Option` instead + * of pattern matching. + * + * **Details** + * + * Returns `Option.some(cause)` for a Failure and `Option.none()` for a Success. * * **Example** (Getting the failure cause) * @@ -673,16 +829,27 @@ export const getSuccess = effect.exitGetSuccess; * @see {@link getSuccess} to extract the success value * @see {@link filterCause} for filter-pipeline usage * - * @category Accessors + * @category accessors * @since 4.0.0 */ export const getCause = effect.exitGetCause; /** * Returns the first typed error from a failed Exit as an Option. * - * - Use when you want to optionally extract a typed error without dealing with the full Cause - * - Returns `Option.some(error)` if the Cause contains a Fail reason, `Option.none()` otherwise - * - Returns `Option.none()` for successes, defect-only failures, and interrupt-only failures + * **When to use** + * + * Use when you need the first typed error from an `Exit` as an `Option`, + * ignoring successes and non-typed failures. + * + * **Details** + * + * Returns `Option.some(error)` if the Cause contains a Fail reason. Successes, + * defect-only failures, and interrupt-only failures return `Option.none()`. + * + * **Gotchas** + * + * Only finds the first Fail reason. If the Cause has multiple typed errors, + * the rest are ignored. * * **Example** (Getting the first error) * @@ -697,7 +864,7 @@ export const getCause = effect.exitGetCause; * @see {@link findError} for filter-pipeline usage * @see {@link getCause} to get the full Cause as an Option * - * @category Accessors + * @category accessors * @since 4.0.0 */ export const findErrorOption = effect.exitFindErrorOption; diff --git a/.opencode/node_modules/effect/dist/Exit.js.map b/.opencode/node_modules/effect/dist/Exit.js.map index 0c8277beb03571cae89248b421447d8e33cfaa91..84325491494089068fdfacec0ed9985b65fb381d 100644 --- a/.opencode/node_modules/effect/dist/Exit.js.map +++ b/.opencode/node_modules/effect/dist/Exit.js.map @@ -1 +1 @@ -{"version":3,"file":"Exit.js","names":["core","effect","TypeId","ExitTypeId","isExit","succeed","exitSucceed","failCause","exitFailCause","fail","exitFail","die","exitDie","interrupt","exitInterrupt","void_","exitVoid","void","isSuccess","exitIsSuccess","isFailure","exitIsFailure","hasFails","exitHasFails","hasDies","exitHasDies","hasInterrupts","exitHasInterrupts","filterSuccess","exitFilterSuccess","filterValue","exitFilterValue","filterFailure","exitFilterFailure","filterCause","exitFilterCause","findError","exitFindError","findDefect","exitFindDefect","match","exitMatch","map","exitMap","mapError","exitMapError","mapBoth","exitMapBoth","asVoid","exitAsVoid","asVoidAll","exitAsVoidAll","getSuccess","exitGetSuccess","getCause","exitGetCause","findErrorOption","exitFindErrorOption"],"sources":["../src/Exit.ts"],"sourcesContent":[null],"mappings":"AA4DA,OAAO,KAAKA,IAAI,MAAM,oBAAoB;AAC1C,OAAO,KAAKC,MAAM,MAAM,sBAAsB;AAK9C,MAAMC,MAAM,GAAGF,IAAI,CAACG,UAAU;AAoH9B;;;;;;;;;;;;;;;;;;;;;;;;;AAyBA,OAAO,MAAMC,MAAM,GAAgDJ,IAAI,CAACI,MAAM;AAE9E;;;;;;;;;;;;;;;;;;;;;;;;AAwBA,OAAO,MAAMC,OAAO,GAAyBL,IAAI,CAACM,WAAW;AAE7D;;;;;;;;;;;;;;;;;;;;;;;;;AAyBA,OAAO,MAAMC,SAAS,GAAiDP,IAAI,CAACQ,aAAa;AAEzF;;;;;;;;;;;;;;;;;;;;;;;;AAwBA,OAAO,MAAMC,IAAI,GAAgCT,IAAI,CAACU,QAAQ;AAE9D;;;;;;;;;;;;;;;;;;;;;;;;AAwBA,OAAO,MAAMC,GAAG,GAAqCX,IAAI,CAACY,OAAO;AAEjE;;;;;;;;;;;;;;;;;;;;;;;AAuBA,OAAO,MAAMC,SAAS,GAAkDZ,MAAM,CAACa,aAAa;AAE5F,MAAMC,KAAK,GAAed,MAAM,CAACe,QAAQ;AACzC;AACE;;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M,CAAC0C,OAAO;AAElB;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BA,OAAO,MAAMC,QAAQ,GA2DjB3C,MAAM,CAAC4C,YAAY;AAEvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCA,OAAO,MAAMC,OAAO,GAwEhB7C,MAAM,CAAC8C,WAAW;AAEtB;;;;;;;;;;;;;;;;;;;;;;;;AAwBA,OAAO,MAAMC,MAAM,GAA8C/C,MAAM,CAACgD,UAAU;AAElF;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BA,OAAO,MAAMC,SAAS,GAEuDjD,MAAM,CAACkD,aAAa;AAEjG;;;;;;;;;;;;;;;;;;;;;AAqBA,OAAO,MAAMC,UAAU,GAA0CnD,MAAM,CAACoD,cAAc;AAEtF;;;;;;;;;;;;;;;;;;;;;AAqBA,OAAO,MAAMC,QAAQ,GAAuDrD,MAAM,CAACsD,YAAY;AAE/F;;;;;;;;;;;;;;;;;;;;;;;AAuBA,OAAO,MAAMC,eAAe,GAA0CvD,MAAM,CAACwD,mBAAmB","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"Exit.js","names":["core","effect","TypeId","ExitTypeId","isExit","succeed","exitSucceed","failCause","exitFailCause","fail","exitFail","die","exitDie","interrupt","exitInterrupt","void_","exitVoid","void","isSuccess","exitIsSuccess","isFailure","exitIsFailure","hasFails","exitHasFails","hasDies","exitHasDies","hasInterrupts","exitHasInterrupts","filterSuccess","exitFilterSuccess","filterValue","exitFilterValue","filterFailure","exitFilterFailure","filterCause","exitFilterCause","findError","exitFindError","findDefect","exitFindDefect","match","exitMatch","map","exitMap","mapError","exitMapError","mapBoth","exitMapBoth","asVoid","exitAsVoid","asVoidAll","exitAsVoidAll","getSuccess","exitGetSuccess","getCause","exitGetCause","findErrorOption","exitFindErrorOption"],"sources":["../src/Exit.ts"],"sourcesContent":[null],"mappings":"AAaA,OAAO,KAAKA,IAAI,MAAM,oBAAoB;AAC1C,OAAO,KAAKC,MAAM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;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BA,OAAO,MAAMC,UAAU,GAA0CnD,MAAM,CAACoD,cAAc;AAEtF;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BA,OAAO,MAAMC,QAAQ,GAAuDrD,MAAM,CAACsD,YAAY;AAE/F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCA,OAAO,MAAMC,eAAe,GAA0CvD,MAAM,CAACwD,mBAAmB","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Fiber.d.ts b/.opencode/node_modules/effect/dist/Fiber.d.ts index 1aa48c09144fff1cfb19df6500d1af454b6cd530..99096af9ce97295c6f26040a7270f9ba51d0ec11 100644 --- a/.opencode/node_modules/effect/dist/Fiber.d.ts +++ b/.opencode/node_modules/effect/dist/Fiber.d.ts @@ -1,74 +1,9 @@ /** - * This module provides utilities for working with `Fiber`, the fundamental unit of - * concurrency in Effect. Fibers are lightweight, user-space threads that allow - * multiple Effects to run concurrently with structured concurrency guarantees. - * - * Key characteristics of Fibers: - * - **Lightweight**: Much lighter than OS threads, you can create millions - * - **Structured concurrency**: Parent fibers manage child fiber lifecycles - * - **Cancellation safety**: Proper resource cleanup when interrupted - * - **Cooperative**: Fibers yield control at effect boundaries - * - **Traceable**: Each fiber has an ID for debugging and monitoring - * - * Common patterns: - * - **Fork and join**: Start concurrent work and wait for results - * - **Race conditions**: Run multiple effects, take the first to complete - * - **Supervision**: Monitor and restart failed fibers - * - **Resource management**: Ensure proper cleanup on interruption - * - * @example - * ```ts - * import { Console, Effect, Fiber } from "effect" - * - * // Basic fiber operations - * const basicExample = Effect.gen(function*() { - * // Fork an effect to run concurrently - * const fiber = yield* Effect.forkChild( - * Effect.gen(function*() { - * yield* Effect.sleep("2 seconds") - * yield* Console.log("Background task completed") - * return "background result" - * }) - * ) - * - * // Do other work while the fiber runs - * yield* Console.log("Doing other work...") - * yield* Effect.sleep("1 second") - * - * // Wait for the fiber to complete - * const result = yield* Fiber.join(fiber) - * yield* Console.log(`Fiber result: ${result}`) - * }) - * - * // Joining multiple fibers - * const joinExample = Effect.gen(function*() { - * const task1 = Effect.delay(Effect.succeed("task1"), "1 second") - * const task2 = Effect.delay(Effect.succeed("task2"), "2 seconds") - * - * // Start both effects as fibers - * const fiber1 = yield* Effect.forkChild(task1) - * const fiber2 = yield* Effect.forkChild(task2) - * - * // Wait for both to complete - * const result1 = yield* Fiber.join(fiber1) - * const result2 = yield* Fiber.join(fiber2) - * return [result1, result2] // ["task1", "task2"] - * }) - * - * // Parallel execution with structured concurrency - * const parallelExample = Effect.gen(function*() { - * const tasks = [1, 2, 3, 4, 5].map((n) => - * Effect.gen(function*() { - * yield* Effect.sleep(`${n * 100} millis`) - * return n * n - * }) - * ) - * - * // Run all tasks in parallel, wait for all to complete - * const results = yield* Effect.all(tasks, { concurrency: "unbounded" }) - * return results // [1, 4, 9, 16, 25] - * }) - * ``` + * Operations for handles returned by forking effects. A `Fiber` is a + * lightweight execution of an `Effect` that may still be running or may already + * have completed. This module lets callers await or join fiber results, + * interrupt one or many fibers, check unknown values, access the current fiber, + * and attach manually managed fibers to a `Scope` for cleanup. * * @since 2.0.0 */ @@ -89,7 +24,25 @@ import type { Covariant } from "./Types.ts"; * Effects concurrently while maintaining structured concurrency and * cancellation safety. * - * @example + * **When to use** + * + * Use to observe, join, interrupt, or coordinate work that has already been + * forked. + * + * **Details** + * + * A fiber exposes both safe Effect-based operations, such as {@link await_ await}, + * {@link join}, and {@link interrupt}, and low-level runtime fields used by + * the scheduler and runtime internals. + * + * **Gotchas** + * + * Prefer the exported functions in this module over calling `interruptUnsafe` + * or `pollUnsafe` directly. The unsafe methods are immediate runtime hooks and + * do not provide the same Effect-based sequencing guarantees. + * + * **Example** (Awaiting a forked fiber) + * * ```ts * import { Effect, Fiber } from "effect" * @@ -105,8 +58,8 @@ import type { Covariant } from "./Types.ts"; * }) * ``` * - * @since 2.0.0 * @category models + * @since 2.0.0 */ export interface Fiber extends Pipeable { readonly id: number; @@ -130,7 +83,17 @@ export interface Fiber extends Pipeable { * The Fiber namespace contains utility types and functions for working with fibers. * It provides type-level utilities for fiber operations and variance encoding. * - * @example + * **When to use** + * + * Use to reference type-level helpers associated with `Fiber`. + * + * **Details** + * + * The namespace currently exposes type-level support used by the `Fiber` + * interface. Runtime operations are exported as module-level functions. + * + * **Example** (Working with fiber types) + * * ```ts * import { Effect, Fiber } from "effect" * @@ -151,14 +114,19 @@ export interface Fiber extends Pipeable { * ``` * * @since 2.0.0 - * @category models */ export declare namespace Fiber { /** * Variance encoding for the Fiber type, specifying covariance in both the * success type `A` and the error type `E`. * - * @example + * **When to use** + * + * Use to carry the success and error type parameters for `Fiber` in Effect's + * type machinery. + * + * **Example** (Upcasting fibers safely) + * * ```ts * import type { Fiber } from "effect" * @@ -167,8 +135,8 @@ export declare namespace Fiber { * const upcast: Fiber.Fiber = fiber * ``` * - * @since 2.0.0 * @category models + * @since 2.0.0 */ interface Variance { readonly _A: Covariant; @@ -180,7 +148,23 @@ export { /** * Waits for a fiber to complete and returns its exit value. * - * @example + * **When to use** + * + * Use when you need to inspect whether the fiber succeeded, + * failed, died, or was interrupted without propagating the failure. + * + * **Details** + * + * The returned Effect always succeeds with an `Exit` describing the fiber's + * outcome. + * + * **Gotchas** + * + * This does not flatten the fiber result into the current Effect. Use + * {@link join} when you want fiber failures to fail the current Effect. + * + * **Example** (Awaiting a fiber exit) + * * ```ts * import { Effect, Fiber } from "effect" * @@ -191,15 +175,30 @@ export { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ await_ as await }; /** * Waits for all fibers in the provided iterable to complete and returns * an array of their exit values. * - * @example + * **When to use** + * + * Use when you need every fiber outcome as data, including failures and + * interruptions. + * + * **Details** + * + * The returned array is ordered like the input iterable. + * + * **Gotchas** + * + * Failures are captured as `Exit.Failure` values. Use {@link joinAll} when you + * want the first failed fiber to fail the returned Effect. + * + * **Example** (Awaiting multiple fiber exits) + * * ```ts * import { Effect, Fiber } from "effect" * @@ -211,15 +210,26 @@ await_ as await }; * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ export declare const awaitAll: >(self: Iterable) => Effect ? _A : never, A extends Fiber ? _E : never>>>; /** * Joins a fiber, blocking until it completes. If the fiber succeeds, * returns its value. If it fails, the error is propagated. * - * @example + * **When to use** + * + * Use when you need a forked fiber's failure to fail the current Effect because + * that fiber is part of the current workflow. + * + * **Gotchas** + * + * Joining a failed fiber propagates the fiber's Cause. Use {@link await_ await} when + * you need to inspect the `Exit` instead of failing. + * + * **Example** (Joining a fiber) + * * ```ts * import { Effect, Fiber } from "effect" * @@ -230,20 +240,57 @@ export declare const awaitAll: >(self: Iterable) => * }) * ``` * - * @since 2.0.0 + * @see {@link await_ await} for inspecting the fiber outcome as an Exit + * * @category combinators + * @since 2.0.0 */ export declare const join: (self: Fiber) => Effect; /** - * @since 2.0.0 + * Waits for all fibers to succeed and returns their values in input order. + * + * **When to use** + * + * Use when you need every fiber to succeed and want the successful values + * rather than the `Exit` values. + * + * **Details** + * + * If any fiber fails, the returned `Effect` fails with that fiber's cause and + * stops waiting for additional results. This does not interrupt the remaining + * fibers. + * + * **Gotchas** + * + * A failure stops waiting, but it does not interrupt any other fibers. Use + * {@link interruptAll} separately when remaining fibers should be stopped. + * + * @see {@link awaitAll} for collecting every fiber outcome as an Exit + * * @category combinators + * @since 2.0.0 */ export declare const joinAll: >>(self: A) => Effect> ? _A : never>, A extends Fiber ? _E : never>; /** * Interrupts a fiber, causing it to stop executing and clean up any * acquired resources. * - * @example + * **When to use** + * + * Use when you need to cancel a forked fiber and wait for its cleanup to + * complete. + * + * **Details** + * + * The returned Effect completes only after the interrupted fiber has completed. + * + * **Gotchas** + * + * Interruption is cooperative. A fiber can continue running while it is inside + * uninterruptible work or finalizers. + * + * **Example** (Interrupting a fiber) + * * ```ts * import { Effect, Fiber } from "effect" * @@ -256,15 +303,33 @@ export declare const joinAll: >>(self: A) => * }) * ``` * - * @since 2.0.0 + * @see {@link interruptAs} for specifying the interrupting fiber ID + * @see {@link await_ await} for observing the interrupted fiber's Exit + * * @category interruption + * @since 2.0.0 */ export declare const interrupt: (self: Fiber) => Effect; /** * Interrupts a fiber with a specific fiber ID as the interruptor. This allows * tracking which fiber initiated the interruption. * - * @example + * **When to use** + * + * Use when runtime diagnostics or tracing should attribute the interruption to + * a specific fiber ID. + * + * **Details** + * + * The returned Effect completes only after the interrupted fiber has completed. + * + * **Gotchas** + * + * The supplied ID affects the recorded interruptor. It does not make + * interruption synchronous or force uninterruptible regions to stop early. + * + * **Example** (Interrupting a fiber as another fiber) + * * ```ts * import { Effect, Fiber } from "effect" * @@ -279,15 +344,32 @@ export declare const interrupt: (self: Fiber) => Effect; * }) * ``` * - * @since 2.0.0 + * @see {@link interrupt} for using the current fiber as the interruptor + * * @category interruption + * @since 2.0.0 */ export declare const interruptAs: { /** * Interrupts a fiber with a specific fiber ID as the interruptor. This allows * tracking which fiber initiated the interruption. * - * @example + * **When to use** + * + * Use when runtime diagnostics or tracing should attribute the interruption to + * a specific fiber ID. + * + * **Details** + * + * The returned Effect completes only after the interrupted fiber has completed. + * + * **Gotchas** + * + * The supplied ID affects the recorded interruptor. It does not make + * interruption synchronous or force uninterruptible regions to stop early. + * + * **Example** (Interrupting a fiber as another fiber) + * * ```ts * import { Effect, Fiber } from "effect" * @@ -302,15 +384,32 @@ export declare const interruptAs: { * }) * ``` * - * @since 2.0.0 + * @see {@link interrupt} for using the current fiber as the interruptor + * * @category interruption + * @since 2.0.0 */ (fiberId: number | undefined, annotations?: Context.Context | undefined): (self: Fiber) => Effect; /** * Interrupts a fiber with a specific fiber ID as the interruptor. This allows * tracking which fiber initiated the interruption. * - * @example + * **When to use** + * + * Use when runtime diagnostics or tracing should attribute the interruption to + * a specific fiber ID. + * + * **Details** + * + * The returned Effect completes only after the interrupted fiber has completed. + * + * **Gotchas** + * + * The supplied ID affects the recorded interruptor. It does not make + * interruption synchronous or force uninterruptible regions to stop early. + * + * **Example** (Interrupting a fiber as another fiber) + * * ```ts * import { Effect, Fiber } from "effect" * @@ -325,8 +424,10 @@ export declare const interruptAs: { * }) * ``` * - * @since 2.0.0 + * @see {@link interrupt} for using the current fiber as the interruptor + * * @category interruption + * @since 2.0.0 */ (self: Fiber, fiberId: number | undefined, annotations?: Context.Context | undefined): Effect; }; @@ -334,7 +435,23 @@ export declare const interruptAs: { * Interrupts all fibers in the provided iterable, causing them to stop executing * and clean up any acquired resources. * - * @example + * **When to use** + * + * Use when you need to cancel several forked fibers and wait for their cleanup + * to complete. + * + * **Details** + * + * The current fiber is recorded as the interruptor. The returned Effect + * completes only after all interrupted fibers have completed. + * + * **Gotchas** + * + * Interruption is cooperative for each fiber. The returned Effect can wait for + * uninterruptible work and finalizers in any interrupted fiber. + * + * **Example** (Interrupting multiple fibers) + * * ```ts * import { Console, Effect, Fiber } from "effect" * @@ -372,8 +489,10 @@ export declare const interruptAs: { * }) * ``` * - * @since 2.0.0 + * @see {@link interruptAllAs} for specifying the interrupting fiber ID + * * @category interruption + * @since 2.0.0 */ export declare const interruptAll: >>(fibers: A) => Effect; /** @@ -381,7 +500,23 @@ export declare const interruptAll: >>(fibers: * interrupting fiber. This allows you to control which fiber is considered the source * of the interruption, which can be useful for debugging and tracing. * - * @example + * **When to use** + * + * Use to interrupt several fibers while recording a specific fiber ID as the + * interruptor. + * + * **Details** + * + * The returned Effect completes only after all interrupted fibers have + * completed. + * + * **Gotchas** + * + * The supplied ID affects the recorded interruptor. It does not make + * interruption synchronous or force uninterruptible regions to stop early. + * + * **Example** (Interrupting multiple fibers as another fiber) + * * ```ts * import { Console, Effect, Fiber } from "effect" * @@ -414,8 +549,10 @@ export declare const interruptAll: >>(fibers: * }) * ``` * - * @since 2.0.0 + * @see {@link interruptAll} for using the current fiber as the interruptor + * * @category interruption + * @since 2.0.0 */ export declare const interruptAllAs: { /** @@ -423,7 +560,23 @@ export declare const interruptAllAs: { * interrupting fiber. This allows you to control which fiber is considered the source * of the interruption, which can be useful for debugging and tracing. * - * @example + * **When to use** + * + * Use to interrupt several fibers while recording a specific fiber ID as the + * interruptor. + * + * **Details** + * + * The returned Effect completes only after all interrupted fibers have + * completed. + * + * **Gotchas** + * + * The supplied ID affects the recorded interruptor. It does not make + * interruption synchronous or force uninterruptible regions to stop early. + * + * **Example** (Interrupting multiple fibers as another fiber) + * * ```ts * import { Console, Effect, Fiber } from "effect" * @@ -456,8 +609,10 @@ export declare const interruptAllAs: { * }) * ``` * - * @since 2.0.0 + * @see {@link interruptAll} for using the current fiber as the interruptor + * * @category interruption + * @since 2.0.0 */ (fiberId: number): >>(fibers: A) => Effect; /** @@ -465,7 +620,23 @@ export declare const interruptAllAs: { * interrupting fiber. This allows you to control which fiber is considered the source * of the interruption, which can be useful for debugging and tracing. * - * @example + * **When to use** + * + * Use to interrupt several fibers while recording a specific fiber ID as the + * interruptor. + * + * **Details** + * + * The returned Effect completes only after all interrupted fibers have + * completed. + * + * **Gotchas** + * + * The supplied ID affects the recorded interruptor. It does not make + * interruption synchronous or force uninterruptible regions to stop early. + * + * **Example** (Interrupting multiple fibers as another fiber) + * * ```ts * import { Console, Effect, Fiber } from "effect" * @@ -498,16 +669,29 @@ export declare const interruptAllAs: { * }) * ``` * - * @since 2.0.0 + * @see {@link interruptAll} for using the current fiber as the interruptor + * * @category interruption + * @since 2.0.0 */ >>(fibers: A, fiberId: number): Effect; }; /** - * Tests if a value is a Fiber. This is a type guard that can be used to + * Checks whether a value is a Fiber. This is a type guard that can be used to * determine if an unknown value is a Fiber instance. * - * @example + * **When to use** + * + * Use when checking values at boundaries where an unknown value may be a + * runtime fiber. + * + * **Details** + * + * The check looks for the internal Fiber type ID marker and does not inspect + * the fiber's current state. + * + * **Example** (Checking for fibers) + * * ```ts * import { Effect, Fiber } from "effect" * @@ -530,15 +714,26 @@ export declare const interruptAllAs: { * }) * ``` * - * @since 2.0.0 * @category guards + * @since 2.0.0 */ export declare const isFiber: (u: unknown) => u is Fiber; /** * Returns the current fiber if called from within a fiber context, * otherwise returns `undefined`. * - * @example + * **When to use** + * + * Use when you need low-level runtime integrations that need access to the currently + * executing fiber. + * + * **Gotchas** + * + * This is a synchronous accessor, not an Effect. It returns `undefined` outside + * an active fiber runtime context. + * + * **Example** (Getting the current fiber) + * * ```ts * import { Effect, Fiber } from "effect" * @@ -550,29 +745,77 @@ export declare const isFiber: (u: unknown) => u is Fiber; * }) * ``` * - * @since 2.0.0 * @category accessors + * @since 4.0.0 */ export declare const getCurrent: () => Fiber | undefined; /** - * Links the lifetime of a fiber to the provided scope. + * Adds a fiber to a `Scope` and returns the same fiber. + * + * **When to use** + * + * Use when a manually managed fiber should be interrupted when a Scope closes. + * + * **Details** * + * When the scope is closed, the fiber is interrupted. If the scope is already + * closed, the fiber is interrupted immediately. + * + * **Gotchas** + * + * This does not wait for the fiber to complete. It only registers the + * interruption finalizer and returns the same fiber. + * + * @see {@link interrupt} for interrupting and waiting for completion + * + * @category resource management * @since 4.0.0 - * @category Scope */ export declare const runIn: { /** - * Links the lifetime of a fiber to the provided scope. + * Adds a fiber to a `Scope` and returns the same fiber. + * + * **When to use** + * + * Use when a manually managed fiber should be interrupted when a Scope closes. * + * **Details** + * + * When the scope is closed, the fiber is interrupted. If the scope is already + * closed, the fiber is interrupted immediately. + * + * **Gotchas** + * + * This does not wait for the fiber to complete. It only registers the + * interruption finalizer and returns the same fiber. + * + * @see {@link interrupt} for interrupting and waiting for completion + * + * @category resource management * @since 4.0.0 - * @category Scope */ (scope: Scope): (self: Fiber) => Fiber; /** - * Links the lifetime of a fiber to the provided scope. + * Adds a fiber to a `Scope` and returns the same fiber. + * + * **When to use** + * + * Use when a manually managed fiber should be interrupted when a Scope closes. + * + * **Details** + * + * When the scope is closed, the fiber is interrupted. If the scope is already + * closed, the fiber is interrupted immediately. + * + * **Gotchas** + * + * This does not wait for the fiber to complete. It only registers the + * interruption finalizer and returns the same fiber. + * + * @see {@link interrupt} for interrupting and waiting for completion * + * @category resource management * @since 4.0.0 - * @category Scope */ (self: Fiber, scope: Scope): Fiber; }; diff --git a/.opencode/node_modules/effect/dist/Fiber.d.ts.map b/.opencode/node_modules/effect/dist/Fiber.d.ts.map index c72905029428edc8fe695eed6e844f2e66c34687..af6ec277f583e5dc4d78c47a8cecdc60b35c4320 100644 --- a/.opencode/node_modules/effect/dist/Fiber.d.ts.map +++ b/.opencode/node_modules/effect/dist/Fiber.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Fiber.d.ts","sourceRoot":"","sources":["../src/Fiber.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyEG;AACH,OAAO,KAAK,KAAK,GAAG,MAAM,YAAY,CAAA;AACtC,OAAO,KAAK,KAAK,OAAO,MAAM,cAAc,CAAA;AAC5C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACzC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAGrC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAC7C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAE7C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,KAAK,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AACpE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AACvC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAI3C;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,WAAW,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,GAAG,KAAK,CAAE,SAAQ,QAAQ;IAG3D,QAAQ,CAAC,EAAE,EAAE,MAAM,C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IAAI,EAAE,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,GAAG,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;CACjC,CAAA"} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Fiber.js b/.opencode/node_modules/effect/dist/Fiber.js index 219cf944024f1f0de724d1ce60c30f78d881a2fd..56c7c49d817f95986ed7b48dae62ae3ba554e38f 100644 --- a/.opencode/node_modules/effect/dist/Fiber.js +++ b/.opencode/node_modules/effect/dist/Fiber.js @@ -7,7 +7,23 @@ export { /** * Waits for a fiber to complete and returns its exit value. * - * @example + * **When to use** + * + * Use when you need to inspect whether the fiber succeeded, + * failed, died, or was interrupted without propagating the failure. + * + * **Details** + * + * The returned Effect always succeeds with an `Exit` describing the fiber's + * outcome. + * + * **Gotchas** + * + * This does not flatten the fiber result into the current Effect. Use + * {@link join} when you want fiber failures to fail the current Effect. + * + * **Example** (Awaiting a fiber exit) + * * ```ts * import { Effect, Fiber } from "effect" * @@ -18,15 +34,30 @@ export { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ await_ as await }; /** * Waits for all fibers in the provided iterable to complete and returns * an array of their exit values. * - * @example + * **When to use** + * + * Use when you need every fiber outcome as data, including failures and + * interruptions. + * + * **Details** + * + * The returned array is ordered like the input iterable. + * + * **Gotchas** + * + * Failures are captured as `Exit.Failure` values. Use {@link joinAll} when you + * want the first failed fiber to fail the returned Effect. + * + * **Example** (Awaiting multiple fiber exits) + * * ```ts * import { Effect, Fiber } from "effect" * @@ -38,15 +69,26 @@ await_ as await }; * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ export const awaitAll = effect.fiberAwaitAll; /** * Joins a fiber, blocking until it completes. If the fiber succeeds, * returns its value. If it fails, the error is propagated. * - * @example + * **When to use** + * + * Use when you need a forked fiber's failure to fail the current Effect because + * that fiber is part of the current workflow. + * + * **Gotchas** + * + * Joining a failed fiber propagates the fiber's Cause. Use {@link await_ await} when + * you need to inspect the `Exit` instead of failing. + * + * **Example** (Joining a fiber) + * * ```ts * import { Effect, Fiber } from "effect" * @@ -57,20 +99,57 @@ export const awaitAll = effect.fiberAwaitAll; * }) * ``` * - * @since 2.0.0 + * @see {@link await_ await} for inspecting the fiber outcome as an Exit + * * @category combinators + * @since 2.0.0 */ export const join = effect.fiberJoin; /** - * @since 2.0.0 + * Waits for all fibers to succeed and returns their values in input order. + * + * **When to use** + * + * Use when you need every fiber to succeed and want the successful values + * rather than the `Exit` values. + * + * **Details** + * + * If any fiber fails, the returned `Effect` fails with that fiber's cause and + * stops waiting for additional results. This does not interrupt the remaining + * fibers. + * + * **Gotchas** + * + * A failure stops waiting, but it does not interrupt any other fibers. Use + * {@link interruptAll} separately when remaining fibers should be stopped. + * + * @see {@link awaitAll} for collecting every fiber outcome as an Exit + * * @category combinators + * @since 2.0.0 */ export const joinAll = effect.fiberJoinAll; /** * Interrupts a fiber, causing it to stop executing and clean up any * acquired resources. * - * @example + * **When to use** + * + * Use when you need to cancel a forked fiber and wait for its cleanup to + * complete. + * + * **Details** + * + * The returned Effect completes only after the interrupted fiber has completed. + * + * **Gotchas** + * + * Interruption is cooperative. A fiber can continue running while it is inside + * uninterruptible work or finalizers. + * + * **Example** (Interrupting a fiber) + * * ```ts * import { Effect, Fiber } from "effect" * @@ -83,15 +162,33 @@ export const joinAll = effect.fiberJoinAll; * }) * ``` * - * @since 2.0.0 + * @see {@link interruptAs} for specifying the interrupting fiber ID + * @see {@link await_ await} for observing the interrupted fiber's Exit + * * @category interruption + * @since 2.0.0 */ export const interrupt = effect.fiberInterrupt; /** * Interrupts a fiber with a specific fiber ID as the interruptor. This allows * tracking which fiber initiated the interruption. * - * @example + * **When to use** + * + * Use when runtime diagnostics or tracing should attribute the interruption to + * a specific fiber ID. + * + * **Details** + * + * The returned Effect completes only after the interrupted fiber has completed. + * + * **Gotchas** + * + * The supplied ID affects the recorded interruptor. It does not make + * interruption synchronous or force uninterruptible regions to stop early. + * + * **Example** (Interrupting a fiber as another fiber) + * * ```ts * import { Effect, Fiber } from "effect" * @@ -106,15 +203,33 @@ export const interrupt = effect.fiberInterrupt; * }) * ``` * - * @since 2.0.0 + * @see {@link interrupt} for using the current fiber as the interruptor + * * @category interruption + * @since 2.0.0 */ export const interruptAs = effect.fiberInterruptAs; /** * Interrupts all fibers in the provided iterable, causing them to stop executing * and clean up any acquired resources. * - * @example + * **When to use** + * + * Use when you need to cancel several forked fibers and wait for their cleanup + * to complete. + * + * **Details** + * + * The current fiber is recorded as the interruptor. The returned Effect + * completes only after all interrupted fibers have completed. + * + * **Gotchas** + * + * Interruption is cooperative for each fiber. The returned Effect can wait for + * uninterruptible work and finalizers in any interrupted fiber. + * + * **Example** (Interrupting multiple fibers) + * * ```ts * import { Console, Effect, Fiber } from "effect" * @@ -152,8 +267,10 @@ export const interruptAs = effect.fiberInterruptAs; * }) * ``` * - * @since 2.0.0 + * @see {@link interruptAllAs} for specifying the interrupting fiber ID + * * @category interruption + * @since 2.0.0 */ export const interruptAll = effect.fiberInterruptAll; /** @@ -161,7 +278,23 @@ export const interruptAll = effect.fiberInterruptAll; * interrupting fiber. This allows you to control which fiber is considered the source * of the interruption, which can be useful for debugging and tracing. * - * @example + * **When to use** + * + * Use to interrupt several fibers while recording a specific fiber ID as the + * interruptor. + * + * **Details** + * + * The returned Effect completes only after all interrupted fibers have + * completed. + * + * **Gotchas** + * + * The supplied ID affects the recorded interruptor. It does not make + * interruption synchronous or force uninterruptible regions to stop early. + * + * **Example** (Interrupting multiple fibers as another fiber) + * * ```ts * import { Console, Effect, Fiber } from "effect" * @@ -194,15 +327,28 @@ export const interruptAll = effect.fiberInterruptAll; * }) * ``` * - * @since 2.0.0 + * @see {@link interruptAll} for using the current fiber as the interruptor + * * @category interruption + * @since 2.0.0 */ export const interruptAllAs = effect.fiberInterruptAllAs; /** - * Tests if a value is a Fiber. This is a type guard that can be used to + * Checks whether a value is a Fiber. This is a type guard that can be used to * determine if an unknown value is a Fiber instance. * - * @example + * **When to use** + * + * Use when checking values at boundaries where an unknown value may be a + * runtime fiber. + * + * **Details** + * + * The check looks for the internal Fiber type ID marker and does not inspect + * the fiber's current state. + * + * **Example** (Checking for fibers) + * * ```ts * import { Effect, Fiber } from "effect" * @@ -225,15 +371,26 @@ export const interruptAllAs = effect.fiberInterruptAllAs; * }) * ``` * - * @since 2.0.0 * @category guards + * @since 2.0.0 */ export const isFiber = u => hasProperty(u, effect.FiberTypeId); /** * Returns the current fiber if called from within a fiber context, * otherwise returns `undefined`. * - * @example + * **When to use** + * + * Use when you need low-level runtime integrations that need access to the currently + * executing fiber. + * + * **Gotchas** + * + * This is a synchronous accessor, not an Effect. It returns `undefined` outside + * an active fiber runtime context. + * + * **Example** (Getting the current fiber) + * * ```ts * import { Effect, Fiber } from "effect" * @@ -245,15 +402,31 @@ export const isFiber = u => hasProperty(u, effect.FiberTypeId); * }) * ``` * - * @since 2.0.0 * @category accessors + * @since 4.0.0 */ export const getCurrent = effect.getCurrentFiber; /** - * Links the lifetime of a fiber to the provided scope. + * Adds a fiber to a `Scope` and returns the same fiber. + * + * **When to use** + * + * Use when a manually managed fiber should be interrupted when a Scope closes. + * + * **Details** + * + * When the scope is closed, the fiber is interrupted. If the scope is already + * closed, the fiber is interrupted immediately. + * + * **Gotchas** + * + * This does not wait for the fiber to complete. It only registers the + * interruption finalizer and returns the same fiber. + * + * @see {@link interrupt} for interrupting and waiting for completion * + * @category resource management * @since 4.0.0 - * @category Scope */ export const runIn = effect.fiberRunIn; //# sourceMappingURL=Fiber.js.map \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Fiber.js.map b/.opencode/node_modules/effect/dist/Fiber.js.map index cdf412af453241c929ffa100b16fbeffd9ae0a6c..9596af996574daa5fc7538d08315555ab8210f62 100644 --- a/.opencode/node_modules/effect/dist/Fiber.js.map +++ b/.opencode/node_modules/effect/dist/Fiber.js.map @@ -1 +1 @@ -{"version":3,"file":"Fiber.js","names":["effect","version","hasProperty","TypeId","await_","fiberAwait","await","awaitAll","fiberAwaitAll","join","fiberJoin","joinAll","fiberJoinAll","interrupt","fiberInterrupt","interruptAs","fiberInterruptAs","interruptAll","fiberInterruptAll","interruptAllAs","fiberInterruptAllAs","isFiber","u","FiberTypeId","getCurrent","getCurrentFiber","runIn","fiberRunIn"],"sources":["../src/Fiber.ts"],"sourcesContent":[null],"mappings":"AA8EA,OAAO,KAAKA,MAAM,MAAM,sBAAsB;AAC9C,SAASC,OAAO,QAAQ,uBAAuB;AAG/C,SAASC,WAAW,QAAQ,gBAAgB;AAO5C,MAAMC,MAAM,GAAG,iBAAiBF,OAAO,EAAE;AAqGzC,MAAMG,MAAM,GAAoDJ,MAAM,CAACK,UAAU;AACjF;AACE;;;;;;;;;;;;;;;;;AAiBAD,MAAM,IAAIE,KAAK;AAEjB;;;;;;;;;;;;;;;;;;;AAmBA,OAAO,MAAMC,QAAQ,GASjBP,MAAM,CAACQ,aAAa;AAExB;;;;;;;;;;;;;;;;;;AAkBA,OAAO,MAAMC,IAAI,GAA8CT,MAAM,CAACU,SAAS;AAE/E;;;;AAIA,OAAO,MAAMC,OAAO,GAQhBX,MAAM,CAACY,YAAY;AAEvB;;;;;;;;;;;;;;;;;;;;AAoBA,OAAO,MAAMC,SAAS,GAA8Cb,MAAM,CAACc,cAAc;AAEzF;;;;;;;;;;;;;;;;;;;;;;AAsBA,OAAO,MAAMC,WAAW,GAsDpBf,MAAM,CAACgB,gBAAgB;AAE3B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6CA,OAAO,MAAMC,YAAY,GAELjB,MAAM,CAACkB,iBAAiB;AAE5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyCA,OAAO,MAAMC,cAAc,GAqFvBnB,MAAM,CAACoB,mBAAmB;AAE9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BA,OAAO,MAAMC,OAAO,GAClBC,CAAU,IACuBpB,WAAW,CAACoB,CAAC,EAAEtB,MAAM,CAACuB,WAAW,CAAC;AAErE;;;;;;;;;;;;;;;;;;;AAmBA,OAAO,MAAMC,UAAU,GAAsCxB,MAAM,CAACyB,eAAe;AAEnF;;;;;;AAMA,OAAO,MAAMC,KAAK,GAed1B,MAAM,CAAC2B,UAAU","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"Fiber.js","names":["effect","version","hasProperty","TypeId","await_","fiberAwait","await","awaitAll","fiberAwaitAll","join","fiberJoin","joinAll","fiberJoinAll","interrupt","fiberInterrupt","interruptAs","fiberInterruptAs","interruptAll","fiberInterruptAll","interruptAllAs","fiberInterruptAllAs","isFiber","u","FiberTypeId","getCurrent","getCurrentFiber","runIn","fiberRunIn"],"sources":["../src/Fiber.ts"],"sourcesContent":[null],"mappings":"AAaA,OAAO,KAAKA,MAAM,MAAM,sBAAsB;AAC9C,SAASC,OAAO,QAAQ,uBAAuB;AAG/C,SAASC,WAAW,QAAQ,gBAAgB;AAO5C,MAAMC,MAAM,GAAG,iBAAiBF,OAAO,EAAE;AAsIzC,MAAMG,MAAM,GAAoDJ,MAAM,CAACK,UAAU;AACjF;AACE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCAD,MAAM,IAAIE,KAAK;AAEjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCA,OAAO,MAAMC,QAAQ,GASjBP,MAAM,CAACQ,aAAa;AAExB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BA,OAAO,MAAMC,IAAI,GAA8CT,MAAM,CAACU,SAAS;AAE/E;;;;;;;;;;;;;;;;;;;;;;;;AAwBA,OAAO,MAAMC,OAAO,GAQhBX,MAAM,CAACY,YAAY;AAEvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsCA,OAAO,MAAMC,SAAS,GAA8Cb,MAAM,CAACc,cAAc;AAEzF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuCA,OAAO,MAAMC,WAAW,GAwFpBf,MAAM,CAACgB,gBAAgB;AAE3B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+DA,OAAO,MAAMC,YAAY,GAELjB,MAAM,CAACkB,iBAAiB;AAE5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2DA,OAAO,MAAMC,cAAc,GAyHvBnB,MAAM,CAACoB,mBAAmB;AAE9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyCA,OAAO,MAAMC,OAAO,GAClBC,CAAU,IACuBpB,WAAW,CAACoB,CAAC,EAAEtB,MAAM,CAACuB,WAAW,CAAC;AAErE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BA,OAAO,MAAMC,UAAU,GAAsCxB,MAAM,CAACyB,eAAe;AAEnF;;;;;;;;;;;;;;;;;;;;;;AAsBA,OAAO,MAAMC,KAAK,GA+Cd1B,MAAM,CAAC2B,UAAU","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/FiberHandle.d.ts b/.opencode/node_modules/effect/dist/FiberHandle.d.ts index e5442ba97487140f5da111bec11299f270d42959..7b6f28fe5fa0ae4a1c2f0d633af46ef2e92fb8b8 100644 --- a/.opencode/node_modules/effect/dist/FiberHandle.d.ts +++ b/.opencode/node_modules/effect/dist/FiberHandle.d.ts @@ -8,7 +8,12 @@ import type { Scheduler } from "./Scheduler.ts"; import type * as Scope from "./Scope.ts"; declare const TypeId = "~effect/FiberHandle"; /** - * @example + * Scoped handle that manages at most one fiber, interrupts the current fiber + * when the handle's scope closes, and removes managed fibers from the handle + * when they complete. + * + * **Example** (Managing a single fiber) + * * ```ts * import { Effect, Fiber, FiberHandle } from "effect" * @@ -23,8 +28,8 @@ declare const TypeId = "~effect/FiberHandle"; * }) * ``` * - * @since 2.0.0 * @category models + * @since 2.0.0 */ export interface FiberHandle extends Pipeable, Inspectable.Inspectable { readonly [TypeId]: typeof TypeId; @@ -37,7 +42,11 @@ export interface FiberHandle extends Pipeable, }; } /** - * @example + * Returns `true` if a value is a `FiberHandle` by checking for the + * `FiberHandle` runtime marker. + * + * **Example** (Checking fiber handles) + * * ```ts * import { Effect, FiberHandle } from "effect" * @@ -49,18 +58,22 @@ export interface FiberHandle extends Pipeable, * }) * ``` * - * @since 2.0.0 * @category refinements + * @since 2.0.0 */ export declare const isFiberHandle: (u: unknown) => u is FiberHandle; /** - * A FiberHandle can be used to store a single fiber. - * When the associated Scope is closed, the contained fiber will be interrupted. + * Creates a scoped `FiberHandle` that can store a single fiber. + * + * **Details** * - * You can add a fiber to the handle using `FiberHandle.run`, and the fiber will - * be automatically removed from the FiberHandle when it completes. + * When the associated `Scope` is closed, the contained fiber will be + * interrupted. You can add a fiber to the handle using `FiberHandle.run`, and + * the fiber will be automatically removed from the `FiberHandle` when it + * completes. + * + * **Example** (Creating a scoped fiber handle) * - * @example * ```ts * import { Effect, FiberHandle } from "effect" * @@ -78,14 +91,21 @@ export declare const isFiberHandle: (u: unknown) => u is FiberHandle; * ) * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export declare const make: () => Effect.Effect, never, Scope.Scope>; /** - * Create an Effect run function that is backed by a FiberHandle. + * Creates a scoped run function that forks effects into a new `FiberHandle`. + * + * **Details** + * + * Each call returns the forked fiber, stores it in the handle, and interrupts + * the previous fiber unless `onlyIfMissing` is set. The managed fiber is + * interrupted when the handle's scope closes. + * + * **Example** (Running effects with a fiber handle) * - * @example * ```ts * import { Effect, Fiber, FiberHandle } from "effect" * @@ -102,8 +122,8 @@ export declare const make: () => Effect.Effect() => Effect.Effect<((effect: Effect.Effect, options?: { readonly signal?: AbortSignal | undefined; @@ -112,9 +132,22 @@ export declare const makeRuntime: () => Effect.Effe readonly propagateInterruption?: boolean | undefined; } | undefined) => Fiber.Fiber), never, Scope.Scope | R>; /** - * Create an Effect run function that is backed by a FiberHandle. + * Creates a scoped run function that forks effects into a new `FiberHandle` + * and returns a `Promise` for each effect result. + * + * **When to use** + * + * Use when integrating a scoped `FiberHandle` runner with Promise-based APIs + * and Promise rejection from squashed failures is the desired boundary. + * + * **Details** + * + * Each call stores the fiber in the handle and interrupts the previous fiber + * unless `onlyIfMissing` is set. The returned Promise resolves with the + * effect's success value or rejects with the squashed failure cause. + * + * **Example** (Running effects as promises) * - * @example * ```ts * import { Effect, FiberHandle } from "effect" * @@ -128,8 +161,8 @@ export declare const makeRuntime: () => Effect.Effe * }).pipe(Effect.scoped) * ``` * - * @since 3.13.0 * @category constructors + * @since 3.13.0 */ export declare const makeRuntimePromise: () => Effect.Effect<((effect: Effect.Effect, options?: { readonly signal?: AbortSignal | undefined; @@ -138,10 +171,16 @@ export declare const makeRuntimePromise: () readonly propagateInterruption?: boolean | undefined; } | undefined) => Promise), never, Scope.Scope | R>; /** - * Set the fiber in a FiberHandle. When the fiber completes, it will be removed from the FiberHandle. + * Sets the fiber in a FiberHandle. When the fiber completes, it will be removed from the FiberHandle. * If a fiber is already running, it will be interrupted unless `options.onlyIfMissing` is set. * - * @example + * **When to use** + * + * Use when an existing forked fiber must be installed synchronously into a + * handle and immediate interruption of replaced or closed fibers is acceptable. + * + * **Example** (Setting a fiber unsafely) + * * ```ts * import { Effect, Fiber, FiberHandle } from "effect" * @@ -158,15 +197,21 @@ export declare const makeRuntimePromise: () * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ export declare const setUnsafe: { /** - * Set the fiber in a FiberHandle. When the fiber completes, it will be removed from the FiberHandle. + * Sets the fiber in a FiberHandle. When the fiber completes, it will be removed from the FiberHandle. * If a fiber is already running, it will be interrupted unless `options.onlyIfMissing` is set. * - * @example + * **When to use** + * + * Use when an existing forked fiber must be installed synchronously into a + * handle and immediate interruption of replaced or closed fibers is acceptable. + * + * **Example** (Setting a fiber unsafely) + * * ```ts * import { Effect, Fiber, FiberHandle } from "effect" * @@ -183,18 +228,24 @@ export declare const setUnsafe: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ (fiber: Fiber.Fiber, options?: { readonly onlyIfMissing?: boolean | undefined; readonly propagateInterruption?: boolean | undefined; }): (self: FiberHandle) => void; /** - * Set the fiber in a FiberHandle. When the fiber completes, it will be removed from the FiberHandle. + * Sets the fiber in a FiberHandle. When the fiber completes, it will be removed from the FiberHandle. * If a fiber is already running, it will be interrupted unless `options.onlyIfMissing` is set. * - * @example + * **When to use** + * + * Use when an existing forked fiber must be installed synchronously into a + * handle and immediate interruption of replaced or closed fibers is acceptable. + * + * **Example** (Setting a fiber unsafely) + * * ```ts * import { Effect, Fiber, FiberHandle } from "effect" * @@ -211,8 +262,8 @@ export declare const setUnsafe: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ (self: FiberHandle, fiber: Fiber.Fiber, options?: { readonly onlyIfMissing?: boolean | undefined; @@ -220,13 +271,16 @@ export declare const setUnsafe: { }): void; }; /** - * Set the fiber in the `FiberHandle`. When the fiber completes, it will be - * removed from the `FiberHandle`. + * Sets the fiber in the `FiberHandle`. + * + * **Details** + * + * When the fiber completes, it will be removed from the `FiberHandle`. If a + * fiber already exists in the `FiberHandle`, it will be interrupted unless + * `options.onlyIfMissing` is set. * - * If a fiber already exists in the `FiberHandle`, it will be interrupted - * unless `options.onlyIfMissing` is set. + * **Example** (Setting a fiber safely) * - * @example * ```ts * import { Effect, Fiber, FiberHandle } from "effect" * @@ -243,18 +297,21 @@ export declare const setUnsafe: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ export declare const set: { /** - * Set the fiber in the `FiberHandle`. When the fiber completes, it will be - * removed from the `FiberHandle`. + * Sets the fiber in the `FiberHandle`. + * + * **Details** * - * If a fiber already exists in the `FiberHandle`, it will be interrupted - * unless `options.onlyIfMissing` is set. + * When the fiber completes, it will be removed from the `FiberHandle`. If a + * fiber already exists in the `FiberHandle`, it will be interrupted unless + * `options.onlyIfMissing` is set. + * + * **Example** (Setting a fiber safely) * - * @example * ```ts * import { Effect, Fiber, FiberHandle } from "effect" * @@ -271,21 +328,24 @@ export declare const set: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ (fiber: Fiber.Fiber, options?: { readonly onlyIfMissing?: boolean; readonly propagateInterruption?: boolean | undefined; }): (self: FiberHandle) => Effect.Effect; /** - * Set the fiber in the `FiberHandle`. When the fiber completes, it will be - * removed from the `FiberHandle`. + * Sets the fiber in the `FiberHandle`. + * + * **Details** + * + * When the fiber completes, it will be removed from the `FiberHandle`. If a + * fiber already exists in the `FiberHandle`, it will be interrupted unless + * `options.onlyIfMissing` is set. * - * If a fiber already exists in the `FiberHandle`, it will be interrupted - * unless `options.onlyIfMissing` is set. + * **Example** (Setting a fiber safely) * - * @example * ```ts * import { Effect, Fiber, FiberHandle } from "effect" * @@ -302,8 +362,8 @@ export declare const set: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ (self: FiberHandle, fiber: Fiber.Fiber, options?: { readonly onlyIfMissing?: boolean; @@ -311,9 +371,15 @@ export declare const set: { }): Effect.Effect; }; /** - * Retrieve the fiber from the FiberHandle. + * Retrieves the fiber from the FiberHandle synchronously. + * + * **When to use** + * + * Use when synchronous inspection of the current fiber is needed and an + * `Option` result is enough outside the Effect workflow. + * + * **Example** (Reading the current fiber unsafely) * - * @example * ```ts * import { Effect, FiberHandle } from "effect" * @@ -331,14 +397,15 @@ export declare const set: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ export declare function getUnsafe(self: FiberHandle): Option.Option>; /** - * Retrieve the fiber from the FiberHandle. + * Retrieves the fiber from the FiberHandle effectfully. + * + * **Example** (Reading the current fiber) * - * @example * ```ts * import { Effect, Fiber, FiberHandle } from "effect" * @@ -357,12 +424,16 @@ export declare function getUnsafe(self: FiberHandle): Option.Option< * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ export declare function get(self: FiberHandle): Effect.Effect>>; /** - * @example + * Interrupts the fiber currently stored in the `FiberHandle`, if any, and + * leaves the handle empty. + * + * **Example** (Clearing a fiber handle) + * * ```ts * import { Effect, FiberHandle } from "effect" * @@ -381,15 +452,21 @@ export declare function get(self: FiberHandle): Effect.Effect() => Effect.Effect, never, Scope.Scope>; /** - * Create an Effect run function that is backed by a FiberSet. + * Creates a scoped run function that forks effects into a new `FiberSet`. + * + * **Details** + * + * Each call returns the forked fiber and adds it to the set. Managed fibers are + * removed when they complete and are interrupted when the set's scope closes. + * + * **Example** (Creating a scoped runtime) * - * @since 2.0.0 - * @category constructors - * @example * ```ts * import { Effect, Fiber, FiberSet } from "effect" * @@ -106,15 +117,30 @@ export declare const make: () => Effect.Effect() => Effect.Effect<((effect: Effect.Effect, options?: (Effect.RunOptions & { readonly propagateInterruption?: boolean | undefined; }) | undefined) => Fiber.Fiber), never, Scope.Scope | R>; /** - * Create an Effect run function that is backed by a FiberSet. - * The returned run function will return Promise's. + * Creates a scoped run function that forks effects into a new `FiberSet` and + * returns a `Promise` for each effect result. + * + * **When to use** + * + * Use when many scoped fibers should be tracked as a set while exposing each + * result through Promise-based APIs. + * + * **Details** + * + * Managed fibers are removed when they complete and are interrupted when the + * set's scope closes. Each Promise resolves with the effect's success value or + * rejects with the squashed failure cause. + * + * **Example** (Creating a promise runtime) * - * @example * ```ts * import { Effect, FiberSet } from "effect" * @@ -132,17 +158,29 @@ export declare const makeRuntime: () => Eff * }) * ``` * - * @since 3.13.0 * @category constructors + * @since 3.13.0 */ export declare const makeRuntimePromise: () => Effect.Effect<((effect: Effect.Effect, options?: (Effect.RunOptions & { readonly propagateInterruption?: boolean | undefined; }) | undefined) => Promise), never, R | Scope.Scope>; /** - * Add a fiber to the FiberSet. When the fiber completes, it will be removed. - * This is the unsafe version that doesn't return an Effect. + * Adds an existing fiber to the `FiberSet` using a synchronous, unsafe + * mutation. + * + * **When to use** + * + * Use when an already forked fiber must be registered immediately and + * synchronous interruption on a closed set is acceptable. + * + * **Details** + * + * When the fiber completes, it is removed from the set. If the set is already + * closed, the supplied fiber is interrupted immediately. Non-interruption + * failures are recorded for `FiberSet.join`. + * + * **Example** (Adding a fiber unsafely) * - * @example * ```ts * import { Effect, FiberSet } from "effect" * @@ -158,15 +196,27 @@ export declare const makeRuntimePromise: () * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ export declare const addUnsafe: { /** - * Add a fiber to the FiberSet. When the fiber completes, it will be removed. - * This is the unsafe version that doesn't return an Effect. + * Adds an existing fiber to the `FiberSet` using a synchronous, unsafe + * mutation. + * + * **When to use** + * + * Use when an already forked fiber must be registered immediately and + * synchronous interruption on a closed set is acceptable. + * + * **Details** + * + * When the fiber completes, it is removed from the set. If the set is already + * closed, the supplied fiber is interrupted immediately. Non-interruption + * failures are recorded for `FiberSet.join`. + * + * **Example** (Adding a fiber unsafely) * - * @example * ```ts * import { Effect, FiberSet } from "effect" * @@ -182,17 +232,29 @@ export declare const addUnsafe: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ (fiber: Fiber.Fiber, options?: { readonly propagateInterruption?: boolean | undefined; } | undefined): (self: FiberSet) => void; /** - * Add a fiber to the FiberSet. When the fiber completes, it will be removed. - * This is the unsafe version that doesn't return an Effect. + * Adds an existing fiber to the `FiberSet` using a synchronous, unsafe + * mutation. + * + * **When to use** + * + * Use when an already forked fiber must be registered immediately and + * synchronous interruption on a closed set is acceptable. + * + * **Details** + * + * When the fiber completes, it is removed from the set. If the set is already + * closed, the supplied fiber is interrupted immediately. Non-interruption + * failures are recorded for `FiberSet.join`. + * + * **Example** (Adding a fiber unsafely) * - * @example * ```ts * import { Effect, FiberSet } from "effect" * @@ -208,17 +270,18 @@ export declare const addUnsafe: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ (self: FiberSet, fiber: Fiber.Fiber, options?: { readonly propagateInterruption?: boolean | undefined; } | undefined): void; }; /** - * Add a fiber to the FiberSet. When the fiber completes, it will be removed. + * Adds a fiber to the FiberSet. When the fiber completes, it will be removed. + * + * **Example** (Adding a fiber) * - * @example * ```ts * import { Effect, FiberSet } from "effect" * @@ -234,14 +297,15 @@ export declare const addUnsafe: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ export declare const add: { /** - * Add a fiber to the FiberSet. When the fiber completes, it will be removed. + * Adds a fiber to the FiberSet. When the fiber completes, it will be removed. + * + * **Example** (Adding a fiber) * - * @example * ```ts * import { Effect, FiberSet } from "effect" * @@ -257,16 +321,17 @@ export declare const add: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ (fiber: Fiber.Fiber, options?: { readonly propagateInterruption?: boolean | undefined; } | undefined): (self: FiberSet) => Effect.Effect; /** - * Add a fiber to the FiberSet. When the fiber completes, it will be removed. + * Adds a fiber to the FiberSet. When the fiber completes, it will be removed. + * + * **Example** (Adding a fiber) * - * @example * ```ts * import { Effect, FiberSet } from "effect" * @@ -282,17 +347,18 @@ export declare const add: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ (self: FiberSet, fiber: Fiber.Fiber, options?: { readonly propagateInterruption?: boolean | undefined; } | undefined): Effect.Effect; }; /** - * Interrupt all fibers in the FiberSet and clear the set. + * Interrupts all fibers in the `FiberSet` and clears the set. + * + * **Example** (Clearing all fibers) * - * @example * ```ts * import { Effect, FiberSet } from "effect" * @@ -312,15 +378,16 @@ export declare const add: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ export declare const clear: (self: FiberSet) => Effect.Effect; /** - * Fork an Effect and add the forked fiber to the FiberSet. + * Forks an Effect and add the forked fiber to the FiberSet. * When the fiber completes, it will be removed from the FiberSet. * - * @example + * **Example** (Forking effects into a set) + * * ```ts * import { Effect, Fiber, FiberSet } from "effect" * @@ -339,15 +406,16 @@ export declare const clear: (self: FiberSet) => Effect.Effect; * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ export declare const run: { /** - * Fork an Effect and add the forked fiber to the FiberSet. + * Forks an Effect and add the forked fiber to the FiberSet. * When the fiber completes, it will be removed from the FiberSet. * - * @example + * **Example** (Forking effects into a set) + * * ```ts * import { Effect, Fiber, FiberSet } from "effect" * @@ -366,18 +434,19 @@ export declare const run: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ (self: FiberSet, options?: { readonly propagateInterruption?: boolean | undefined; readonly startImmediately?: boolean | undefined; } | undefined): (effect: Effect.Effect) => Effect.Effect, never, R>; /** - * Fork an Effect and add the forked fiber to the FiberSet. + * Forks an Effect and add the forked fiber to the FiberSet. * When the fiber completes, it will be removed from the FiberSet. * - * @example + * **Example** (Forking effects into a set) + * * ```ts * import { Effect, Fiber, FiberSet } from "effect" * @@ -396,8 +465,8 @@ export declare const run: { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ (self: FiberSet, effect: Effect.Effect, options?: { readonly propagateInterruption?: boolean | undefined; @@ -405,11 +474,12 @@ export declare const run: { } | undefined): Effect.Effect, never, R>; }; /** - * Capture a Runtime and use it to fork Effect's, adding the forked fibers to the FiberSet. + * Captures a `Runtime` and uses it to fork effects into the `FiberSet`. + * + * **Example** (Capturing a runtime) * - * @example * ```ts - * import { Effect, FiberSet, Context } from "effect" + * import { Context, Effect, FiberSet } from "effect" * * interface Users { * readonly _: unique symbol @@ -423,24 +493,33 @@ export declare const run: { * const run = yield* FiberSet.runtime(set)() * * // run some effects and add the fibers to the set - * run(Effect.andThen(Users.asEffect(), (_) => _.getAll)) + * run(Effect.andThen(Users, (_) => _.getAll)) * }).pipe( * Effect.scoped // The fibers will be interrupted when the scope is closed * ) * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ export declare const runtime: (self: FiberSet) => () => Effect.Effect<((effect: Effect.Effect, options?: Effect.RunOptions & { readonly propagateInterruption?: boolean | undefined; } | undefined) => Fiber.Fiber), never, R>; /** - * Capture a Runtime and use it to fork Effect's, adding the forked fibers to the FiberSet. + * Captures a `Runtime` and returns a Promise-based runner that forks effects + * into the `FiberSet`. + * + * **When to use** * - * The returned run function will return Promise's. + * Use when you need to bridge effects to `Promise` values while still tracking + * their fibers in a `FiberSet`. + * + * **Details** + * + * The returned run function returns a `Promise` for each effect result. + * + * **Example** (Running effects as promises) * - * @example * ```ts * import { Effect, FiberSet } from "effect" * @@ -459,16 +538,19 @@ export declare const runtime: (self: FiberSet) => () => E * }) * ``` * - * @since 3.13.0 + * @see {@link runtime} for a runner that returns the forked `Fiber` + * * @category combinators + * @since 3.13.0 */ export declare const runtimePromise: (self: FiberSet) => () => Effect.Effect<((effect: Effect.Effect, options?: (Effect.RunOptions & { readonly propagateInterruption?: boolean | undefined; }) | undefined) => Promise), never, R>; /** - * Get the number of fibers currently in the FiberSet. + * Gets the number of fibers currently in the FiberSet. + * + * **Example** (Checking the set size) * - * @example * ```ts * import { Effect, FiberSet } from "effect" * @@ -485,15 +567,16 @@ export declare const runtimePromise: (self: FiberSet) => * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ export declare const size: (self: FiberSet) => Effect.Effect; /** - * Join all fibers in the FiberSet. If any of the Fiber's in the set terminate with a failure, + * Joins all fibers in the FiberSet. If any fiber in the set terminates with a failure, * the returned Effect will terminate with the first failure that occurred. * - * @example + * **Example** (Joining failing fibers) + * * ```ts * import { Effect, FiberSet } from "effect" * @@ -506,14 +589,15 @@ export declare const size: (self: FiberSet) => Effect.Effect * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ export declare const join: (self: FiberSet) => Effect.Effect; /** - * Wait until the fiber set is empty. + * Waits until the fiber set is empty. + * + * **Example** (Waiting for an empty set) * - * @example * ```ts * import { Effect, FiberSet } from "effect" * @@ -531,8 +615,8 @@ export declare const join: (self: FiberSet) => Effect.Effect(self: FiberSet) => Effect.Effect; export {}; diff --git a/.opencode/node_modules/effect/dist/FiberSet.d.ts.map b/.opencode/node_modules/effect/dist/FiberSet.d.ts.map index 59974c2e1590e160bce2262060007ae135047eb9..1774750e356931e676c3671f40bff3cf0b15ab80 100644 --- a/.opencode/node_modules/effect/dist/FiberSet.d.ts.map +++ b/.opencode/node_modules/effect/dist/FiberSet.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"FiberSet.d.ts","sourceRoot":"","sources":["../src/FiberSet.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAA;AACzC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AAErC,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA;AAGnC,OAAO,KAAK,KAAK,WAAW,MAAM,kBAAkB,CAAA;AAGpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAE7C,OAAO,KAAK,KAAK,KAAK,MAAM,YAAY,CAAA;AAExC,QAAA,MAAM,MAAM,qBAAqB,CAAA;AAEjC;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,WAAW,QAAQ,CAAC,GAAG,CAAC,CAAC,GAAG,OAAO,EAAE,GAAG,CAAC,CAAC,GAAG,OAAO,CACxD,SAAQ,QAAQ,EAAE,WAAW,CAAC,WAAW,EAAE,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAEtE,QAAQ,CAAC,CAAC,MAAM,CAAC,EAAE,OAAO,MAAM,CAAA;IAChC,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;IACnD,KAAK,EAAE;QACL,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;QACrB,QAAQ,CAAC,OAAO,EAAE,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAA;KACzC,GAAG;QACF,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAA;KACxB,CAAA;CACF;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,UAA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AAA;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,eAAO,MAAM,cAAc,GAAI,CAAC,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,KAAG,CAAC,CAAC,GAAG,KAAK,OAAO,MAAM,CAAC,MAAM,EACxF,CAAC,EAAE,SAAS,CAAC,EAAE,EAAE,SAAS,CAAC,EACzB,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,EAChC,OAAO,CAAC,EACN,CAAE,MAAM,CAAC,UAAU,GAAG;IAAE,QAAQ,CAAC,qBAAqB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAAE,IAC5E,SAAS,KACV,OAAO,CAAC,EAAE,CAAC,GAChB,KAAK,EACL,CAAC,CAqBA,CAAA;AAEH;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,IAAI,GAAI,CAAC,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,KAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CACS,CAAA;AAE/E;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,IAAI,GAAI,CAAC,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,KAAG,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,CACV,CAAA;AAE7D;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,UAAU,GAAI,CAAC,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,KAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAKtE,CAAA"} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/FiberSet.js b/.opencode/node_modules/effect/dist/FiberSet.js index 0aa8633caae8524d29d99442dd995d591e27c364..6117ab4a6fbc97faa3ee4add3058514696f24e90 100644 --- a/.opencode/node_modules/effect/dist/FiberSet.js +++ b/.opencode/node_modules/effect/dist/FiberSet.js @@ -1,4 +1,11 @@ /** + * Manages many fibers together inside one scope. + * + * A `FiberSet` tracks running fibers, removes each fiber when it + * completes, and interrupts all still-running fibers when the owning scope + * closes. This module includes scoped runtime constructors plus helpers for + * adding, clearing, running, counting, joining, and waiting for managed fibers. + * * @since 2.0.0 */ import * as Cause from "./Cause.js"; @@ -13,11 +20,10 @@ import * as Iterable from "./Iterable.js"; import * as Predicate from "./Predicate.js"; const TypeId = "~effect/FiberSet"; /** - * Checks if a value is a FiberSet. + * Checks whether a value is a FiberSet. + * + * **Example** (Checking if a value is a FiberSet) * - * @since 2.0.0 - * @category refinements - * @example * ```ts * import { Effect, FiberSet } from "effect" * @@ -28,6 +34,9 @@ const TypeId = "~effect/FiberSet"; * console.log(FiberSet.isFiberSet({})) // false * }) * ``` + * + * @category refinements + * @since 2.0.0 */ export const isFiberSet = u => Predicate.hasProperty(u, TypeId); const Proto = { @@ -56,13 +65,17 @@ const makeUnsafe = (backing, deferred) => { return self; }; /** - * A FiberSet can be used to store a collection of fibers. - * When the associated Scope is closed, all fibers in the set will be interrupted. + * Creates a scoped `FiberSet` for storing fibers. * - * You can add fibers to the set using `FiberSet.add` or `FiberSet.run`, and the fibers will - * be automatically removed from the FiberSet when they complete. + * **Details** + * + * When the associated Scope is closed, all fibers in the set will be + * interrupted. You can add fibers to the set using `FiberSet.add` or + * `FiberSet.run`, and the fibers will be automatically removed from the + * FiberSet when they complete. + * + * **Example** (Creating a scoped FiberSet) * - * @example * ```ts * import { Effect, FiberSet } from "effect" * @@ -79,8 +92,8 @@ const makeUnsafe = (backing, deferred) => { * ) * ``` * - * @since 2.0.0 * @category constructors + * @since 2.0.0 */ export const make = () => Effect.acquireRelease(Effect.sync(() => makeUnsafe(new Set(), Deferred.makeUnsafe())), set => Effect.suspend(() => { const state = set.state; @@ -92,11 +105,15 @@ export const make = () => Effect.acquireRelease(Effect.sync(() => makeUnsafe(new return Fiber.interruptAll(fibers).pipe(Deferred.into(set.deferred)); })); /** - * Create an Effect run function that is backed by a FiberSet. + * Creates a scoped run function that forks effects into a new `FiberSet`. + * + * **Details** + * + * Each call returns the forked fiber and adds it to the set. Managed fibers are + * removed when they complete and are interrupted when the set's scope closes. + * + * **Example** (Creating a scoped runtime) * - * @since 2.0.0 - * @category constructors - * @example * ```ts * import { Effect, Fiber, FiberSet } from "effect" * @@ -113,13 +130,28 @@ export const make = () => Effect.acquireRelease(Effect.sync(() => makeUnsafe(new * console.log(result1, result2) // "hello" "world" * }) * ``` + * + * @category constructors + * @since 2.0.0 */ export const makeRuntime = () => Effect.flatMap(make(), self => runtime(self)()); /** - * Create an Effect run function that is backed by a FiberSet. - * The returned run function will return Promise's. + * Creates a scoped run function that forks effects into a new `FiberSet` and + * returns a `Promise` for each effect result. + * + * **When to use** + * + * Use when many scoped fibers should be tracked as a set while exposing each + * result through Promise-based APIs. + * + * **Details** + * + * Managed fibers are removed when they complete and are interrupted when the + * set's scope closes. Each Promise resolves with the effect's success value or + * rejects with the squashed failure cause. + * + * **Example** (Creating a promise runtime) * - * @example * ```ts * import { Effect, FiberSet } from "effect" * @@ -137,17 +169,29 @@ export const makeRuntime = () => Effect.flatMap(make(), self => runtime(self)()) * }) * ``` * - * @since 3.13.0 * @category constructors + * @since 3.13.0 */ export const makeRuntimePromise = () => Effect.flatMap(make(), self => runtimePromise(self)()); const internalFiberId = -1; const isInternalInterruption = /*#__PURE__*/Filter.toPredicate(/*#__PURE__*/Filter.compose(Cause.filterInterruptors, /*#__PURE__*/Filter.has(internalFiberId))); /** - * Add a fiber to the FiberSet. When the fiber completes, it will be removed. - * This is the unsafe version that doesn't return an Effect. + * Adds an existing fiber to the `FiberSet` using a synchronous, unsafe + * mutation. + * + * **When to use** + * + * Use when an already forked fiber must be registered immediately and + * synchronous interruption on a closed set is acceptable. + * + * **Details** + * + * When the fiber completes, it is removed from the set. If the set is already + * closed, the supplied fiber is interrupted immediately. Non-interruption + * failures are recorded for `FiberSet.join`. + * + * **Example** (Adding a fiber unsafely) * - * @example * ```ts * import { Effect, FiberSet } from "effect" * @@ -163,8 +207,8 @@ const isInternalInterruption = /*#__PURE__*/Filter.toPredicate(/*#__PURE__*/Filt * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 4.0.0 */ export const addUnsafe = /*#__PURE__*/dual(args => isFiberSet(args[0]), (self, fiber, options) => { if (self.state._tag === "Closed") { @@ -185,9 +229,10 @@ export const addUnsafe = /*#__PURE__*/dual(args => isFiberSet(args[0]), (self, f }); }); /** - * Add a fiber to the FiberSet. When the fiber completes, it will be removed. + * Adds a fiber to the FiberSet. When the fiber completes, it will be removed. + * + * **Example** (Adding a fiber) * - * @example * ```ts * import { Effect, FiberSet } from "effect" * @@ -203,14 +248,15 @@ export const addUnsafe = /*#__PURE__*/dual(args => isFiberSet(args[0]), (self, f * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ export const add = /*#__PURE__*/dual(args => isFiberSet(args[0]), (self, fiber, options) => Effect.sync(() => addUnsafe(self, fiber, options))); /** - * Interrupt all fibers in the FiberSet and clear the set. + * Interrupts all fibers in the `FiberSet` and clears the set. + * + * **Example** (Clearing all fibers) * - * @example * ```ts * import { Effect, FiberSet } from "effect" * @@ -230,8 +276,8 @@ export const add = /*#__PURE__*/dual(args => isFiberSet(args[0]), (self, fiber, * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ export const clear = self => Effect.suspend(() => { if (self.state._tag === "Closed") { @@ -249,10 +295,11 @@ const constInterruptedFiber = /*#__PURE__*/function () { }; }(); /** - * Fork an Effect and add the forked fiber to the FiberSet. + * Forks an Effect and add the forked fiber to the FiberSet. * When the fiber completes, it will be removed from the FiberSet. * - * @example + * **Example** (Forking effects into a set) + * * ```ts * import { Effect, Fiber, FiberSet } from "effect" * @@ -271,8 +318,8 @@ const constInterruptedFiber = /*#__PURE__*/function () { * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ export const run = function () { const self = arguments[0]; @@ -291,11 +338,12 @@ const runImpl = (self, effect, options) => Effect.withFiber(parent => { return Effect.succeed(fiber); }); /** - * Capture a Runtime and use it to fork Effect's, adding the forked fibers to the FiberSet. + * Captures a `Runtime` and uses it to fork effects into the `FiberSet`. + * + * **Example** (Capturing a runtime) * - * @example * ```ts - * import { Effect, FiberSet, Context } from "effect" + * import { Context, Effect, FiberSet } from "effect" * * interface Users { * readonly _: unique symbol @@ -309,14 +357,14 @@ const runImpl = (self, effect, options) => Effect.withFiber(parent => { * const run = yield* FiberSet.runtime(set)() * * // run some effects and add the fibers to the set - * run(Effect.andThen(Users.asEffect(), (_) => _.getAll)) + * run(Effect.andThen(Users, (_) => _.getAll)) * }).pipe( * Effect.scoped // The fibers will be interrupted when the scope is closed * ) * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ export const runtime = self => () => Effect.map(Effect.context(), services => { const runFork = Effect.runForkWith(services); @@ -330,11 +378,20 @@ export const runtime = self => () => Effect.map(Effect.context(), services => { }; }); /** - * Capture a Runtime and use it to fork Effect's, adding the forked fibers to the FiberSet. + * Captures a `Runtime` and returns a Promise-based runner that forks effects + * into the `FiberSet`. + * + * **When to use** * - * The returned run function will return Promise's. + * Use when you need to bridge effects to `Promise` values while still tracking + * their fibers in a `FiberSet`. + * + * **Details** + * + * The returned run function returns a `Promise` for each effect result. + * + * **Example** (Running effects as promises) * - * @example * ```ts * import { Effect, FiberSet } from "effect" * @@ -353,8 +410,10 @@ export const runtime = self => () => Effect.map(Effect.context(), services => { * }) * ``` * - * @since 3.13.0 + * @see {@link runtime} for a runner that returns the forked `Fiber` + * * @category combinators + * @since 3.13.0 */ export const runtimePromise = self => () => Effect.map(runtime(self)(), runFork => (effect, options) => new Promise((resolve, reject) => runFork(effect, options).addObserver(exit => { if (Exit.isSuccess(exit)) { @@ -364,9 +423,10 @@ export const runtimePromise = self => () => Effect.map(runtime(self)(), runFork } }))); /** - * Get the number of fibers currently in the FiberSet. + * Gets the number of fibers currently in the FiberSet. + * + * **Example** (Checking the set size) * - * @example * ```ts * import { Effect, FiberSet } from "effect" * @@ -383,15 +443,16 @@ export const runtimePromise = self => () => Effect.map(runtime(self)(), runFork * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ export const size = self => Effect.sync(() => self.state._tag === "Closed" ? 0 : self.state.backing.size); /** - * Join all fibers in the FiberSet. If any of the Fiber's in the set terminate with a failure, + * Joins all fibers in the FiberSet. If any fiber in the set terminates with a failure, * the returned Effect will terminate with the first failure that occurred. * - * @example + * **Example** (Joining failing fibers) + * * ```ts * import { Effect, FiberSet } from "effect" * @@ -404,14 +465,15 @@ export const size = self => Effect.sync(() => self.state._tag === "Closed" ? 0 : * }) * ``` * - * @since 2.0.0 * @category combinators + * @since 2.0.0 */ export const join = self => Deferred.await(self.deferred); /** - * Wait until the fiber set is empty. + * Waits until the fiber set is empty. + * + * **Example** (Waiting for an empty set) * - * @example * ```ts * import { Effect, FiberSet } from "effect" * @@ -429,8 +491,8 @@ export const join = self => Deferred.await(self.deferred); * }) * ``` * - * @since 3.13.0 * @category combinators + * @since 3.13.0 */ export const awaitEmpty = self => Effect.whileLoop({ while: () => self.state._tag === "Open" && self.state.backing.size > 0, diff --git a/.opencode/node_modules/effect/dist/FiberSet.js.map b/.opencode/node_modules/effect/dist/FiberSet.js.map index d0cad0f31b41e5f022665cba8d845e8b5ca103dd..055808319b9152e7d9b57ebd8b58c462b680b60e 100644 --- a/.opencode/node_modules/effect/dist/FiberSet.js.map +++ b/.opencode/node_modules/effect/dist/FiberSet.js.map @@ -1 +1 @@ -{"version":3,"file":"FiberSet.js","names":["Cause","Deferred","Effect","Exit","Fiber","Filter","constVoid","dual","PipeInspectableProto","Iterable","Predicate","TypeId","isFiberSet","u","hasProperty","Proto","Symbol","iterator","state","_tag","empty","backing","toJSON","_id","makeUnsafe","deferred","self","Object","create","make","acquireRelease","sync","Set","set","suspend","void","fibers","interruptAll","pipe","into","makeRuntime","flatMap","runtime","makeRuntimePromise","runtimePromise","internalFiberId","isInternalInterruption","toPredicate","compose","filterInterruptors","has","addUnsafe","args","fiber","options","interruptUnsafe","add","addObserver","exit","delete","isFailure","propagateInterruption","cause","hasInterruptsOnly","doneUnsafe","clear","interruptAllAs","constInterruptedFiber","undefined","runFork","interrupt","run","arguments","isEffect","effect","runImpl","withFiber","parent","runForkWith","context","succeed","map","services","Promise","resolve","reject","isSuccess","value","squash","size","join","await","awaitEmpty","whileLoop","while","body","headUnsafe","step"],"sources":["../src/FiberSet.ts"],"sourcesContent":[null],"mappings":"AAAA;;;AAGA,OAAO,KAAKA,KAAK,MAAM,YAAY;AAEnC,OAAO,KAAKC,QAAQ,MAAM,eAAe;AACzC,OAAO,KAAKC,MAAM,MAAM,aAAa;AACrC,OAAO,KAAKC,IAAI,MAAM,WAAW;AACjC,OAAO,KAAKC,KAAK,MAAM,YAAY;AACnC,OAAO,KAAKC,MAAM,MAAM,aAAa;AACrC,SAASC,SAAS,EAAEC,IAAI,QAAQ,eAAe;AAE/C,SAASC,oBAAoB,QAAQ,oBAAoB;AACzD,OAAO,KAAKC,QAAQ,MAAM,eAAe;AAEzC,OAAO,KAAKC,SAAS,MAAM,gBAAgB;AAG3C,MAAMC,MAAM,GAAG,kBAAkB;AAsCjC;;;;;;;;;;;;;;;;;AAiBA,OAAO,MAAMC,UAAU,GAAIC,CAAU,IAAsCH,SAAS,CAACI,WAAW,CAACD,CAAC,EAAEF,MAAM,CAAC;AAE3G,MAAMI,KAAK,GAAG;EACZ,CAACJ,MAAM,GAAGA,MAAM;EAChB,CAACK,MAAM,CAACC,QAAQ,IAAC;IACf,IAAI,IAAI,CAACC,KAAK,CAACC,IAAI,KAAK,QAAQ,EAAE;MAChC,OAAOV,QAAQ,CAACW,KAAK,EAAE;IACzB;IACA,OAAO,IAAI,CAACF,KAAK,CAACG,OAAO,CAACL,MAAM,CAACC,QAAQ,CAAC,EAAE;E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MAAM,IAAIO,IAAI,CAACR,KAAK,CAACG,OAAO,CAACoE,IAAI,GAAG,CAAC;EACtEM,IAAI,EAAEA,CAAA,KAAM3F,KAAK,CAACuF,KAAK,CAAClF,QAAQ,CAACuF,UAAU,CAACtE,IAAI,CAAC,CAAC;EAClDuE,IAAI,EAAE3F;CACP,CAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"FiberSet.js","names":["Cause","Deferred","Effect","Exit","Fiber","Filter","constVoid","dual","PipeInspectableProto","Iterable","Predicate","TypeId","isFiberSet","u","hasProperty","Proto","Symbol","iterator","state","_tag","empty","backing","toJSON","_id","makeUnsafe","deferred","self","Object","create","make","acquireRelease","sync","Set","set","suspend","void","fibers","interruptAll","pipe","into","makeRuntime","flatMap","runtime","makeRuntimePromise","runtimePromise","internalFiberId","isInternalInterruption","toPredicate","compose","filterInterruptors","has","addUnsafe","args","fiber","options","interruptUnsafe","add","addObserver","exit","delete","isFailure","propagateInterruption","cause","hasInterruptsOnly","doneUnsafe","clear","interruptAllAs","constInterruptedFiber","undefined","runFork","interrupt","run","arguments","isEffect","effect","runImpl","withFiber","parent","runForkWith","context","succeed","map","services","Promise","resolve","reject","isSuccess","value","squash","size","join","await","awaitEmpty","whileLoop","while","body","headUnsafe","step"],"sources":["../src/FiberSet.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;AAUA,OAAO,KAAKA,KAAK,MAAM,YAAY;AAEnC,OAAO,KAAKC,QAAQ,MAAM,eAAe;AACzC,OAAO,KAAKC,MAAM,MAAM,aAAa;AACrC,OAAO,KAAKC,IAAI,MAAM,WAAW;AACjC,OAAO,KAAKC,KAAK,MAAM,YAAY;AACnC,OAAO,KAAKC,MAAM,MAAM,aAAa;AACrC,SAASC,SAAS,EAAEC,IAAI,QAAQ,eAAe;AAE/C,SAASC,oBAAoB,QAAQ,oBAAoB;AACzD,OAAO,KAAKC,QAAQ,MAAM,eAAe;AAEzC,OAAO,KAAKC,SAAS,MAAM,gBAAgB;A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MAAM2B,IAAI,GAAU/D,IAAoB,IAC7CxB,MAAM,CAAC6B,IAAI,CAAC,MAAML,IAAI,CAACR,KAAK,CAACC,IAAI,KAAK,QAAQ,GAAG,CAAC,GAAGO,IAAI,CAACR,KAAK,CAACG,OAAO,CAACoE,IAAI,CAAC;AAE/E;;;;;;;;;;;;;;;;;;;;;AAqBA,OAAO,MAAMC,IAAI,GAAUhE,IAAoB,IAC7CzB,QAAQ,CAAC0F,KAAK,CAACjE,IAAI,CAACD,QAAsC,CAAC;AAE7D;;;;;;;;;;;;;;;;;;;;;;;;;AAyBA,OAAO,MAAMmE,UAAU,GAAUlE,IAAoB,IACnDxB,MAAM,CAAC2F,SAAS,CAAC;EACfC,KAAK,EAAEA,CAAA,KAAMpE,IAAI,CAACR,KAAK,CAACC,IAAI,KAAK,MAAM,IAAIO,IAAI,CAACR,KAAK,CAACG,OAAO,CAACoE,IAAI,GAAG,CAAC;EACtEM,IAAI,EAAEA,CAAA,KAAM3F,KAAK,CAACuF,KAAK,CAAClF,QAAQ,CAACuF,UAAU,CAACtE,IAAI,CAAC,CAAC;EAClDuE,IAAI,EAAE3F;CACP,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/FileSystem.d.ts b/.opencode/node_modules/effect/dist/FileSystem.d.ts index ab47d48ed5e64daa615ba70a32b7fe6adf892700..0c4aa6feec9f1c43c97b6591a8052dd7c447d27f 100644 --- a/.opencode/node_modules/effect/dist/FileSystem.d.ts +++ b/.opencode/node_modules/effect/dist/FileSystem.d.ts @@ -11,11 +11,14 @@ declare const TypeId = "~effect/platform/FileSystem"; /** * Core interface for file system operations in Effect. * + * **Details** + * * The FileSystem interface provides a comprehensive set of file and directory operations * that work cross-platform. All operations return Effect values that can be composed, * transformed, and executed safely with proper error handling. * - * @example + * **Example** (Accessing file system operations) + * * ```ts * import { Console, Effect, FileSystem } from "effect" * @@ -41,13 +44,13 @@ declare const TypeId = "~effect/platform/FileSystem"; * }) * ``` * + * @category models * @since 4.0.0 - * @category model */ export interface FileSystem { readonly [TypeId]: typeof TypeId; /** - * Check if a file can be accessed. + * Checks whether a file can be accessed. * You can optionally specify the level of access to check for. */ readonly access: (path: string, options?: { @@ -58,6 +61,8 @@ export interface FileSystem { /** * Copy a file or directory from `fromPath` to `toPath`. * + * **Details** + * * Equivalent to `cp -r`. */ readonly copy: (fromPath: string, toPath: string, options?: { @@ -77,7 +82,7 @@ export interface FileSystem { */ readonly chown: (path: string, uid: number, gid: number) => Effect.Effect; /** - * Check if a path exists. + * Checks whether a path exists. */ readonly exists: (path: string) => Effect.Effect; /** @@ -95,6 +100,8 @@ export interface FileSystem { /** * Create a temporary directory. * + * **Details** + * * By default the directory will be created inside the system's default * temporary directory, but you can specify a different location by setting * the `directory` option. @@ -109,6 +116,8 @@ export interface FileSystem { /** * Create a temporary directory inside a scope. * + * **Details** + * * Functionally equivalent to `makeTempDirectory`, but the directory will be * automatically deleted when the scope is closed. */ @@ -129,6 +138,8 @@ export interface FileSystem { /** * Create a temporary file inside a scope. * + * **Details** + * * Functionally equivalent to `makeTempFile`, but the file will be * automatically deleted when the scope is closed. */ @@ -140,6 +151,8 @@ export interface FileSystem { /** * Open a file at `path` with the specified `options`. * + * **Details** + * * The file handle will be automatically closed when the scope is closed. */ readonly open: (path: string, options?: { @@ -149,6 +162,8 @@ export interface FileSystem { /** * List the contents of a directory. * + * **Details** + * * You can recursively list the contents of nested directories by setting the * `recursive` option. */ @@ -202,6 +217,8 @@ export interface FileSystem { /** * Create a readable `Stream` for the specified `path`. * + * **Details** + * * Changing the `bufferSize` option will change the internal buffer size of * the stream. It defaults to `4`. * @@ -251,12 +268,15 @@ export interface FileSystem { /** * Represents a file size in bytes using a branded bigint. * + * **Details** + * * This type ensures type safety when working with file sizes, preventing * accidental mixing of regular numbers with size values. The underlying * bigint allows for handling very large file sizes beyond JavaScript's * number precision limits. * - * @example + * **Example** (Creating branded file sizes) + * * ```ts * import { Effect, FileSystem } from "effect" * @@ -265,25 +285,27 @@ export interface FileSystem { * const largeFile = FileSystem.Size(BigInt("9007199254740992")) // Very large * * // Use with file operations - * const truncateToSize = (path: string, size: FileSystem.Size) => - * Effect.gen(function*() { - * const fs = yield* FileSystem.FileSystem - * return fs.truncate(path, size) - * }) + * const truncateToSize = Effect.fnUntraced(function*(path: string, size: FileSystem.Size) { + * const fs = yield* FileSystem.FileSystem + * return yield* fs.truncate(path, size) + * }) * ``` * - * @since 4.0.0 * @category sizes + * @since 4.0.0 */ export type Size = Brand.Branded; /** * Input type for size parameters that accepts multiple numeric types. * + * **Details** + * * This union type allows file system operations to accept size values in * different formats for convenience, which are then normalized to the * branded `Size` type internally. * - * @example + * **Example** (Using size inputs) + * * ```ts * import { Effect, FileSystem } from "effect" * @@ -297,18 +319,21 @@ export type Size = Brand.Branded; * }) * ``` * - * @since 4.0.0 * @category sizes + * @since 4.0.0 */ export type SizeInput = bigint | number | Size; /** * Creates a `Size` from various numeric input types. * + * **Details** + * * Converts numbers, bigints, or existing Size values into a properly * branded Size type. This function handles the conversion and ensures * type safety for file size operations. * - * @example + * **Example** (Converting size inputs) + * * ```ts * import { Effect, FileSystem } from "effect" * @@ -332,17 +357,20 @@ export type SizeInput = bigint | number | Size; * }) * ``` * - * @since 4.0.0 * @category sizes + * @since 4.0.0 */ export declare const Size: (bytes: SizeInput) => Size; /** * Creates a `Size` representing kilobytes (1024 bytes). * + * **Details** + * * Converts a number of kilobytes to the equivalent size in bytes. * Uses binary kilobytes (1024 bytes) rather than decimal (1000 bytes). * - * @example + * **Example** (Creating kibibyte sizes) + * * ```ts * import { Effect, FileSystem } from "effect" * @@ -361,17 +389,20 @@ export declare const Size: (bytes: SizeInput) => Size; * }) * ``` * - * @since 4.0.0 * @category sizes + * @since 4.0.0 */ export declare const KiB: (n: number) => Size; /** * Creates a `Size` representing mebibytes (1024² bytes). * + * **Details** + * * Converts a number of mebibytes to the equivalent size in bytes. * Uses binary mebibytes (1,048,576 bytes) rather than decimal megabytes. * - * @example + * **Example** (Creating mebibyte sizes) + * * ```ts * import { Effect, FileSystem } from "effect" * @@ -394,46 +425,54 @@ export declare const KiB: (n: number) => Size; * }) * ``` * - * @since 4.0.0 * @category sizes + * @since 4.0.0 */ export declare const MiB: (n: number) => Size; /** * Creates a `Size` representing gibibytes (1024³ bytes). * + * **Details** + * * Converts a number of gibibytes to the equivalent size in bytes. * Uses binary gibibytes (1,073,741,824 bytes) rather than decimal gigabytes. * - * @example + * **Example** (Creating gibibyte sizes) + * * ```ts - * import { Console, Effect, FileSystem } from "effect" + * import { Effect, FileSystem } from "effect" * * const program = Effect.gen(function*() { * const fs = yield* FileSystem.FileSystem * - * // Check available space before creating large files - * const stats = yield* fs.stat(".") - * const requiredSpace = FileSystem.GiB(5) + * // Use GiB values as size thresholds + * const maxArchiveSize = FileSystem.GiB(1) + * console.log(maxArchiveSize.toString()) // "1073741824" + * + * const tempFile = yield* fs.makeTempFile({ prefix: "archive-" }) + * yield* fs.writeFileString(tempFile, "backup data") * - * // Create a large temporary file - * const tempFile = yield* fs.makeTempFile({ prefix: "large-" }) - * yield* fs.truncate(tempFile, FileSystem.GiB(1)) // 1 GiB file + * const info = yield* fs.stat(tempFile) + * console.log(info.size < maxArchiveSize) // true * - * yield* Console.log(`Created ${tempFile} with 1 GiB size`) + * yield* fs.remove(tempFile) * }) * ``` * - * @since 4.0.0 * @category sizes + * @since 4.0.0 */ export declare const GiB: (n: number) => Size; /** * Creates a `Size` representing tebibytes (1024⁴ bytes). * + * **Details** + * * Converts a number of tebibytes to the equivalent size in bytes. * Uses binary tebibytes (1,099,511,627,776 bytes) rather than decimal terabytes. * - * @example + * **Example** (Creating tebibyte sizes) + * * ```ts * import { Console, Effect, FileSystem } from "effect" * @@ -455,18 +494,21 @@ export declare const GiB: (n: number) => Size; * }) * ``` * - * @since 4.0.0 * @category sizes + * @since 4.0.0 */ export declare const TiB: (n: number) => Size; /** * Creates a `Size` representing pebibytes (1024⁵ bytes). * + * **Details** + * * Converts a number of pebibytes to the equivalent size in bytes. * Uses binary pebibytes (1,125,899,906,842,624 bytes) rather than decimal petabytes. * This function uses BigInt arithmetic to handle the very large numbers involved. * - * @example + * **Example** (Creating pebibyte sizes) + * * ```ts * import { Console, Effect, FileSystem } from "effect" * @@ -487,13 +529,15 @@ export declare const TiB: (n: number) => Size; * }) * ``` * - * @since 4.0.0 * @category sizes + * @since 4.0.0 */ export declare const PiB: (n: number) => Size; /** * File open flags that determine how a file is opened and what operations are allowed. * + * **Details** + * * These flags correspond to standard POSIX file open modes and control the file access * permissions and behavior when opening files. * @@ -508,7 +552,8 @@ export declare const PiB: (n: number) => Size; * - `"a+"` - Read/write. Appends to file or creates new file. * - `"ax+"` - Like 'a+' but fails if file exists. * - * @example + * **Example** (Opening files with flags) + * * ```ts * import { Effect, FileSystem } from "effect" * @@ -529,17 +574,24 @@ export declare const PiB: (n: number) => Size; * }) * ``` * + * @category models * @since 4.0.0 - * @category model */ export type OpenFlag = "r" | "r+" | "w" | "wx" | "w+" | "wx+" | "a" | "ax" | "a+" | "ax+"; /** - * The service identifier for the FileSystem service. + * Service tag for platform file-system operations. + * + * **When to use** + * + * Use to access or provide operations for files, directories, permissions, + * streams, and sinks through the Effect context. + * + * **Details** * * This key is used to provide and access the FileSystem service in the Effect context. - * Use this to inject file system implementations or access file system operations. * - * @example + * **Example** (Accessing and providing FileSystem) + * * ```ts * import { Effect, FileSystem } from "effect" * @@ -568,32 +620,44 @@ export type OpenFlag = "r" | "r+" | "w" | "wx" | "w+" | "wx+" | "a" | "ax" | "a+ * ) * ``` * + * @category services * @since 4.0.0 - * @category tag */ export declare const FileSystem: Context.Service; /** * Creates a FileSystem implementation from a partial implementation. * + * **When to use** + * + * Use to build a concrete `FileSystem` service from platform-specific core + * operations while deriving the convenience methods that can be implemented + * from them. + * + * **Details** + * * This function takes a partial FileSystem implementation and automatically provides * default implementations for `exists`, `readFileString`, `stream`, `sink`, and * `writeFileString` methods based on the provided core methods. * + * @see {@link makeNoop} for a testing stub that accepts method overrides without requiring a complete implementation + * @see {@link layerNoop} for providing a no-op `FileSystem` as a `Layer` in tests + * + * @category constructors * @since 4.0.0 - * @category constructor */ export declare const make: (impl: Omit) => FileSystem; /** - * Creates a no-op FileSystem implementation for testing purposes. + * Creates a stub `FileSystem` implementation for tests. * - * This function creates a FileSystem where most operations fail with "NotFound" errors, - * except for operations that can be safely stubbed. You can override specific methods - * by providing them in the `fileSystem` parameter. + * **Details** * - * This is useful for testing scenarios where you want to control specific file system - * behaviors without affecting the actual file system. + * By default, `exists` returns `false`, `remove` succeeds, many file operations + * fail with `PlatformError` `NotFound`, and temporary-directory/file operations + * die as not implemented. Pass method overrides to provide the behavior needed + * by a specific test without touching the real file system. + * + * **Example** (Creating a no-op FileSystem) * - * @example * ```ts * import { Effect, FileSystem, PlatformError } from "effect" * @@ -630,17 +694,20 @@ export declare const make: (impl: Omit) => FileSystem; /** * Creates a Layer that provides a no-op FileSystem implementation for testing. * + * **Details** + * * This is a convenience function that wraps `makeNoop` in a Layer, making it easy * to provide the test filesystem to your Effect programs. * - * @example + * **Example** (Providing a no-op FileSystem layer) + * * ```ts * import { Effect, FileSystem } from "effect" * @@ -660,33 +727,58 @@ export declare const makeNoop: (fileSystem: Partial) => FileSystem; * const testProgram = Effect.provide(program, testLayer) * ``` * - * @since 4.0.0 * @category layers + * @since 4.0.0 */ export declare const layerNoop: (fileSystem: Partial) => Layer.Layer; /** + * Runtime type identifier attached to `FileSystem.File` handles and used by + * `isFile` to recognize them. + * + * **Details** + * + * This marker is part of the runtime representation of file handles. Prefer + * `isFile` when narrowing unknown values. + * + * @see {@link File} for the open file handle shape that carries this marker + * @see {@link isFile} for the public guard that checks this marker + * + * @category type IDs * @since 4.0.0 - * @category File */ export declare const FileTypeId = "~effect/platform/FileSystem/File"; /** - * Type guard to check if a value is a File instance. + * Returns `true` if a value is a `File` handle by checking for the + * `FileTypeId` marker. + * + * **When to use** + * + * Use when accepting an unknown value and you need to narrow it to a `File` + * before calling file-handle operations. + * + * **Details** + * + * This is a structural marker check. It does not validate the marker value or + * the shape of the file handle. * - * This function determines whether the provided value is a valid File - * instance by checking for the presence of the File type identifier. + * @see {@link File} for the file-handle interface narrowed by this guard + * @see {@link FileTypeId} for the runtime marker checked by this guard * + * @category file * @since 4.0.0 - * @category File */ export declare const isFile: (u: unknown) => u is File; /** * Interface representing an open file handle. * + * **Details** + * * Provides low-level file operations including reading, writing, seeking, * and retrieving file information. File handles are automatically managed * within scoped operations to ensure proper cleanup. * - * @example + * **Example** (Working with file handles) + * * ```ts * import { Console, Effect, FileSystem } from "effect" * @@ -717,8 +809,8 @@ export declare const isFile: (u: unknown) => u is File; * }) * ``` * + * @category file * @since 4.0.0 - * @category File */ export interface File { readonly [FileTypeId]: typeof FileTypeId; @@ -733,63 +825,80 @@ export interface File { readonly writeAll: (buffer: Uint8Array) => Effect.Effect; } /** + * Namespace containing types associated with open file handles, including file + * descriptors, entry kinds, and stat information. + * * @since 4.0.0 - * @category File */ export declare namespace File { /** * Branded type for file descriptors. * + * **Details** + * * File descriptors are numeric handles used by the operating system * to identify open files. The branded type ensures type safety. * + * @category file * @since 4.0.0 - * @category File */ type Descriptor = Brand.Branded; /** * Enumeration of possible file system entry types. * + * **Details** + * * Represents the different types of entries that can exist in a file system, * from regular files to special device files and symbolic links. * + * @category file * @since 4.0.0 - * @category File */ type Type = "File" | "Directory" | "SymbolicLink" | "BlockDevice" | "CharacterDevice" | "FIFO" | "Socket" | "Unknown"; /** * Comprehensive file information structure. * + * **Details** + * * Contains metadata about a file or directory including type, timestamps, * permissions, and size information. This structure is returned by file * stat operations. * - * @example + * **Example** (Inspecting file information) + * * ```ts - * import { Console, Effect, FileSystem, Option } from "effect" + * import { Effect, FileSystem, Option } from "effect" * * const program = Effect.gen(function*() { * const fs = yield* FileSystem.FileSystem * - * const info: FileSystem.File.Info = yield* fs.stat("./data.txt") + * const path = yield* fs.makeTempFile({ prefix: "info-" }) + * yield* fs.writeFileString(path, "hello") + * + * const info: FileSystem.File.Info = yield* fs.stat(path) * - * yield* Console.log(`File type: ${info.type}`) - * yield* Console.log(`File size: ${info.size} bytes`) - * yield* Console.log(`Mode: ${info.mode.toString(8)}`) // Octal permissions + * console.log(`File type: ${info.type}`) // "File type: File" + * console.log(`File size: ${info.size} bytes`) // "File size: 5 bytes" + * console.log(`Mode: ${info.mode.toString(8)}`) // Octal permissions * - * // Handle optional timestamps - * const mtime = Option.getOrElse(info.mtime, () => new Date(0)) - * yield* Console.log(`Modified: ${mtime.toISOString()}`) + * // Handle optional timestamps without inventing a fallback date + * const modified = Option.match(info.mtime, { + * onNone: () => "unavailable", + * onSome: (mtime) => mtime.toISOString() + * }) + * console.log(`Modified: ${modified}`) * * // Check if it's a regular file * if (info.type === "File") { - * yield* Console.log("Processing regular file...") + * console.log("Processing regular file...") // "Processing regular file..." * } + * + * yield* fs.remove(path) * }) * ``` * + * @category file * @since 4.0.0 - * @category File */ interface Info { readonly type: Type; @@ -809,45 +918,85 @@ export declare namespace File { } } /** - * Creates a branded file descriptor. + * Creates a `File.Descriptor` from a number. + * + * **When to use** + * + * Use to brand an operating-system file descriptor number when implementing a + * `FileSystem` that returns custom `File` handles. + * + * **Details** + * + * `File.Descriptor` is a branded integer handle used by operating systems to + * identify open files. * - * File descriptors are integer handles that the operating system uses to identify - * open files. This branded type ensures type safety when working with file descriptors. + * **Gotchas** * + * This constructor is nominal and does not check that the number is an integer + * or that it refers to an open file descriptor. + * + * @see {@link File.Descriptor} for the branded descriptor type produced by this constructor + * @see {@link File} for file handles that expose a descriptor through `fd` + * + * @category constructors * @since 4.0.0 - * @category constructor */ export declare const FileDescriptor: Brand.Constructor; /** - * Specifies the reference point for seeking within a file. + * Specifies the reference point for seeking within an open file. + * + * **When to use** + * + * Use with `File` handles when positioning the cursor before a read or write + * and the offset must be interpreted from either the start of the file or the + * current cursor. + * + * **Details** + * + * - `"start"` seeks from the beginning of the file. + * - `"current"` seeks from the current cursor position. * - * - `"start"` - Seek from the beginning of the file - * - `"current"` - Seek from the current position + * @see {@link File} for the open file handle API whose `seek` method consumes this mode * + * @category models * @since 4.0.0 - * @category model */ export type SeekMode = "start" | "current"; /** - * Represents file system events that can be observed when watching files or directories. + * Represents file system events emitted when watching files or directories. * + * **When to use** + * + * Use when consuming file system watch streams and pattern matching on `_tag` + * to handle created, updated, or removed paths. + * + * **Details** + * + * The union covers create, update, and remove events. Each event carries the + * reported `path`. + * + * @see {@link FileSystem} for the service interface whose `watch` operation emits these events + * + * @category models * @since 4.0.0 - * @category model */ export type WatchEvent = WatchEvent.Create | WatchEvent.Update | WatchEvent.Remove; /** + * Namespace containing the concrete event shapes emitted by `FileSystem.watch`. + * * @since 4.0.0 - * @category model */ export declare namespace WatchEvent { /** * Event representing the creation of a new file or directory. * + * **Details** + * * This event is triggered when a new file or directory is created * in the watched location. * + * @category models * @since 4.0.0 - * @category model */ interface Create { readonly _tag: "Create"; @@ -856,11 +1005,13 @@ export declare namespace WatchEvent { /** * Event representing the modification of an existing file or directory. * + * **Details** + * * This event is triggered when an existing file or directory is * modified in the watched location. * + * @category models * @since 4.0.0 - * @category model */ interface Update { readonly _tag: "Update"; @@ -869,11 +1020,13 @@ export declare namespace WatchEvent { /** * Event representing the deletion of a file or directory. * + * **Details** + * * This event is triggered when a file or directory is deleted * from the watched location. * + * @category models * @since 4.0.0 - * @category model */ interface Remove { readonly _tag: "Remove"; @@ -886,11 +1039,14 @@ declare const WatchBackend_base: Context.ServiceClass typeof bytes === "bigint" ? bytes : BigInt(bytes); /** * Creates a `Size` representing kilobytes (1024 bytes). * + * **Details** + * * Converts a number of kilobytes to the equivalent size in bytes. * Uses binary kilobytes (1024 bytes) rather than decimal (1000 bytes). * - * @example + * **Example** (Creating kibibyte sizes) + * * ```ts * import { Effect, FileSystem } from "effect" * @@ -108,17 +89,20 @@ export const Size = bytes => typeof bytes === "bigint" ? bytes : BigInt(bytes); * }) * ``` * - * @since 4.0.0 * @category sizes + * @since 4.0.0 */ export const KiB = n => Size(n * 1024); /** * Creates a `Size` representing mebibytes (1024² bytes). * + * **Details** + * * Converts a number of mebibytes to the equivalent size in bytes. * Uses binary mebibytes (1,048,576 bytes) rather than decimal megabytes. * - * @example + * **Example** (Creating mebibyte sizes) + * * ```ts * import { Effect, FileSystem } from "effect" * @@ -141,46 +125,54 @@ export const KiB = n => Size(n * 1024); * }) * ``` * - * @since 4.0.0 * @category sizes + * @since 4.0.0 */ export const MiB = n => Size(n * 1024 * 1024); /** * Creates a `Size` representing gibibytes (1024³ bytes). * + * **Details** + * * Converts a number of gibibytes to the equivalent size in bytes. * Uses binary gibibytes (1,073,741,824 bytes) rather than decimal gigabytes. * - * @example + * **Example** (Creating gibibyte sizes) + * * ```ts - * import { Console, Effect, FileSystem } from "effect" + * import { Effect, FileSystem } from "effect" * * const program = Effect.gen(function*() { * const fs = yield* FileSystem.FileSystem * - * // Check available space before creating large files - * const stats = yield* fs.stat(".") - * const requiredSpace = FileSystem.GiB(5) + * // Use GiB values as size thresholds + * const maxArchiveSize = FileSystem.GiB(1) + * console.log(maxArchiveSize.toString()) // "1073741824" + * + * const tempFile = yield* fs.makeTempFile({ prefix: "archive-" }) + * yield* fs.writeFileString(tempFile, "backup data") * - * // Create a large temporary file - * const tempFile = yield* fs.makeTempFile({ prefix: "large-" }) - * yield* fs.truncate(tempFile, FileSystem.GiB(1)) // 1 GiB file + * const info = yield* fs.stat(tempFile) + * console.log(info.size < maxArchiveSize) // true * - * yield* Console.log(`Created ${tempFile} with 1 GiB size`) + * yield* fs.remove(tempFile) * }) * ``` * - * @since 4.0.0 * @category sizes + * @since 4.0.0 */ export const GiB = n => Size(n * 1024 * 1024 * 1024); /** * Creates a `Size` representing tebibytes (1024⁴ bytes). * + * **Details** + * * Converts a number of tebibytes to the equivalent size in bytes. * Uses binary tebibytes (1,099,511,627,776 bytes) rather than decimal terabytes. * - * @example + * **Example** (Creating tebibyte sizes) + * * ```ts * import { Console, Effect, FileSystem } from "effect" * @@ -202,8 +194,8 @@ export const GiB = n => Size(n * 1024 * 1024 * 1024); * }) * ``` * - * @since 4.0.0 * @category sizes + * @since 4.0.0 */ export const TiB = n => Size(n * 1024 * 1024 * 1024 * 1024); const bigint1024 = /*#__PURE__*/BigInt(1024); @@ -211,11 +203,14 @@ const bigintPiB = bigint1024 * bigint1024 * bigint1024 * bigint1024 * bigint1024 /** * Creates a `Size` representing pebibytes (1024⁵ bytes). * + * **Details** + * * Converts a number of pebibytes to the equivalent size in bytes. * Uses binary pebibytes (1,125,899,906,842,624 bytes) rather than decimal petabytes. * This function uses BigInt arithmetic to handle the very large numbers involved. * - * @example + * **Example** (Creating pebibyte sizes) + * * ```ts * import { Console, Effect, FileSystem } from "effect" * @@ -236,17 +231,24 @@ const bigintPiB = bigint1024 * bigint1024 * bigint1024 * bigint1024 * bigint1024 * }) * ``` * - * @since 4.0.0 * @category sizes + * @since 4.0.0 */ export const PiB = n => Size(BigInt(n) * bigintPiB); /** - * The service identifier for the FileSystem service. + * Service tag for platform file-system operations. + * + * **When to use** + * + * Use to access or provide operations for files, directories, permissions, + * streams, and sinks through the Effect context. + * + * **Details** * * This key is used to provide and access the FileSystem service in the Effect context. - * Use this to inject file system implementations or access file system operations. * - * @example + * **Example** (Accessing and providing FileSystem) + * * ```ts * import { Effect, FileSystem } from "effect" * @@ -275,19 +277,30 @@ export const PiB = n => Size(BigInt(n) * bigintPiB); * ) * ``` * + * @category services * @since 4.0.0 - * @category tag */ export const FileSystem = /*#__PURE__*/Context.Service("effect/platform/FileSystem"); /** * Creates a FileSystem implementation from a partial implementation. * + * **When to use** + * + * Use to build a concrete `FileSystem` service from platform-specific core + * operations while deriving the convenience methods that can be implemented + * from them. + * + * **Details** + * * This function takes a partial FileSystem implementation and automatically provides * default implementations for `exists`, `readFileString`, `stream`, `sink`, and * `writeFileString` methods based on the provided core methods. * + * @see {@link makeNoop} for a testing stub that accepts method overrides without requiring a complete implementation + * @see {@link layerNoop} for providing a no-op `FileSystem` as a `Layer` in tests + * + * @category constructors * @since 4.0.0 - * @category constructor */ export const make = impl => FileSystem.of({ ...impl, @@ -348,16 +361,17 @@ const notFound = (method, path) => systemError({ pathOrDescriptor: path }); /** - * Creates a no-op FileSystem implementation for testing purposes. + * Creates a stub `FileSystem` implementation for tests. * - * This function creates a FileSystem where most operations fail with "NotFound" errors, - * except for operations that can be safely stubbed. You can override specific methods - * by providing them in the `fileSystem` parameter. + * **Details** * - * This is useful for testing scenarios where you want to control specific file system - * behaviors without affecting the actual file system. + * By default, `exists` returns `false`, `remove` succeeds, many file operations + * fail with `PlatformError` `NotFound`, and temporary-directory/file operations + * die as not implemented. Pass method overrides to provide the behavior needed + * by a specific test without touching the real file system. + * + * **Example** (Creating a no-op FileSystem) * - * @example * ```ts * import { Effect, FileSystem, PlatformError } from "effect" * @@ -394,8 +408,8 @@ const notFound = (method, path) => systemError({ * ) * ``` * + * @category constructors * @since 4.0.0 - * @category constructor */ export const makeNoop = fileSystem => FileSystem.of({ [TypeId]: TypeId, @@ -491,10 +505,13 @@ export const makeNoop = fileSystem => FileSystem.of({ /** * Creates a Layer that provides a no-op FileSystem implementation for testing. * + * **Details** + * * This is a convenience function that wraps `makeNoop` in a Layer, making it easy * to provide the test filesystem to your Effect programs. * - * @example + * **Example** (Providing a no-op FileSystem layer) + * * ```ts * import { Effect, FileSystem } from "effect" * @@ -514,43 +531,83 @@ export const makeNoop = fileSystem => FileSystem.of({ * const testProgram = Effect.provide(program, testLayer) * ``` * - * @since 4.0.0 * @category layers + * @since 4.0.0 */ export const layerNoop = fileSystem => Layer.succeed(FileSystem)(makeNoop(fileSystem)); /** + * Runtime type identifier attached to `FileSystem.File` handles and used by + * `isFile` to recognize them. + * + * **Details** + * + * This marker is part of the runtime representation of file handles. Prefer + * `isFile` when narrowing unknown values. + * + * @see {@link File} for the open file handle shape that carries this marker + * @see {@link isFile} for the public guard that checks this marker + * + * @category type IDs * @since 4.0.0 - * @category File */ export const FileTypeId = "~effect/platform/FileSystem/File"; /** - * Type guard to check if a value is a File instance. + * Returns `true` if a value is a `File` handle by checking for the + * `FileTypeId` marker. + * + * **When to use** + * + * Use when accepting an unknown value and you need to narrow it to a `File` + * before calling file-handle operations. * - * This function determines whether the provided value is a valid File - * instance by checking for the presence of the File type identifier. + * **Details** * + * This is a structural marker check. It does not validate the marker value or + * the shape of the file handle. + * + * @see {@link File} for the file-handle interface narrowed by this guard + * @see {@link FileTypeId} for the runtime marker checked by this guard + * + * @category file * @since 4.0.0 - * @category File */ export const isFile = u => hasProperty(u, FileTypeId); /** - * Creates a branded file descriptor. + * Creates a `File.Descriptor` from a number. + * + * **When to use** + * + * Use to brand an operating-system file descriptor number when implementing a + * `FileSystem` that returns custom `File` handles. * - * File descriptors are integer handles that the operating system uses to identify - * open files. This branded type ensures type safety when working with file descriptors. + * **Details** * + * `File.Descriptor` is a branded integer handle used by operating systems to + * identify open files. + * + * **Gotchas** + * + * This constructor is nominal and does not check that the number is an integer + * or that it refers to an open file descriptor. + * + * @see {@link File.Descriptor} for the branded descriptor type produced by this constructor + * @see {@link File} for file handles that expose a descriptor through `fd` + * + * @category constructors * @since 4.0.0 - * @category constructor */ export const FileDescriptor = /*#__PURE__*/Brand.nominal(); /** * Service key for file system watch backend implementations. * + * **Details** + * * This service provides the low-level file watching capabilities that can be * implemented differently on various platforms (e.g., inotify on Linux, * FSEvents on macOS, etc.). * - * @example + * **Example** (Providing a custom watch backend) + * * ```ts * import { Effect, FileSystem, Option, Stream } from "effect" * @@ -577,8 +634,8 @@ export const FileDescriptor = /*#__PURE__*/Brand.nominal(); * ) * ``` * - * @since 4.0.0 * @category file watcher + * @since 4.0.0 */ export class WatchBackend extends /*#__PURE__*/Context.Service()("effect/platform/FileSystem/WatchBackend") {} //# sourceMappingURL=FileSystem.js.map \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/FileSystem.js.map b/.opencode/node_modules/effect/dist/FileSystem.js.map index b747fb5726d3a69a85ab740543b632ce84d2280c..e23f20a715ac38ea61277fbf0c3757fb7e5a55b0 100644 --- a/.opencode/node_modules/effect/dist/FileSystem.js.map +++ b/.opencode/node_modules/effect/dist/FileSystem.js.map @@ -1 +1 @@ -{"version":3,"file":"FileSystem.js","names":["Arr","Brand","Cause","Context","Effect","pipe","Layer","Option","badArgument","systemError","hasProperty","Sink","Stream","TypeId","Size","bytes","BigInt","KiB","n","MiB","GiB","TiB","bigint1024","bigintPiB","PiB","FileSystem","Service","make","impl","of","exists","path","access","as","catchTag","e","reason","_tag","succeed","fail","readFileString","encoding","flatMap","readFile","_","try","TextDecoder","decode","catch","cause","module","method","description","stream","fnUntraced","options","file","open","flag","offset","seek","bytesToRead","undefined","totalBytesRead","chunkSize","readChunk","readAlloc","fromPull","suspend","done","match","onNone","onSome","buf","length","unwrap","sink","map","forEach","writeAll","writeFileString","data","TextEncoder","encode","writeFile","notFound","pathOrDescriptor","makeNoop","fileSystem","chmod","chown","copy","copyFile","link","makeDirectory","die","makeTempDirectory","makeTempDirectoryScoped","makeTempFile","makeTempFileScoped","readDirectory","readLink","realPath","remove","void","rename","oldPath","stat","symlink","fromPath","truncate","utimes","watch","layerNoop","FileTypeId","isFile","u","FileDescriptor","nominal","WatchBackend"],"sources":["../src/FileSystem.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqCA,OAAO,KAAKA,GAAG,MAAM,YAAY;AACjC,OAAO,KAAKC,KAAK,MAAM,YAAY;AACnC,OAAO,KAAKC,KAAK,MAAM,YAAY;AACnC,OAAO,KAAKC,OAAO,MAAM,cAAc;AACvC,OAAO,KAAKC,MAAM,MAAM,aAAa;AACrC,SAASC,IAAI,QAAQ,eAAe;AACpC,OAAO,KAAKC,KAAK,MAAM,YAAY;AACnC,OAAO,KAAKC,MAAM,MAAM,aAAa;AACrC,SAASC,WAAW,EAAsBC,WAAW,QAAQ,oBAAoB;AACjF,SAASC,WAAW,QAAQ,gBAAgB;AAG5C,OAAO,KAAKC,IAAI,MAAM,WAAW;AACjC,OAAO,KA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C,CAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"FileSystem.js","names":["Arr","Brand","Cause","Context","Effect","pipe","Layer","Option","badArgument","systemError","hasProperty","Sink","Stream","TypeId","Size","bytes","BigInt","KiB","n","MiB","GiB","TiB","bigint1024","bigintPiB","PiB","FileSystem","Service","make","impl","of","exists","path","access","as","catchTag","e","reason","_tag","succeed","fail","readFileString","encoding","flatMap","readFile","_","try","TextDecoder","decode","catch","cause","module","method","description","stream","fnUntraced","options","file","open","flag","offset","seek","bytesToRead","undefined","totalBytesRead","chunkSize","readChunk","readAlloc","fromPull","suspend","done","match","onNone","onSome","buf","length","unwrap","sink","map","forEach","writeAll","writeFileString","data","TextEncoder","encode","writeFile","notFound","pathOrDescriptor","makeNoop","fileSystem","chmod","chown","copy","copyFile","link","makeDirectory","die","makeTempDirectory","makeTempDirectoryScoped","makeTempFile","makeTempFileScoped","readDirectory","readLink","realPath","remove","void","rename","oldPath","stat","symlink","fromPath","truncate","utimes","watch","layerNoop","FileTypeId","isFile","u","FileDescriptor","nominal","WatchBackend"],"sources":["../src/FileSystem.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;;;AAYA,OAAO,KAAKA,GAAG,MAAM,YAAY;AACjC,OAAO,KAAKC,KAAK,MAAM,YAAY;AACnC,OAAO,KAAKC,KAAK,MAAM,YAAY;AACnC,OAAO,KAAKC,OAAO,MAAM,cAAc;AACvC,OAAO,KAAKC,MAAM,MAAM,aAAa;AACrC,SAASC,IAAI,QAAQ,eAAe;AACpC,OAAO,KAAKC,KAAK,MAAM,YAAY;AACnC,OAAO,KAAKC,MAAM,MAAM,aAAa;AACrC,SAASC,WAAW,EAAsBC,WAAW,QAAQ,oBAAoB;AACjF,SAASC,WAAW,QAAQ,gBAAgB;AAG5C,OAAO,KAAKC,IAAI,MAAM,WAAW;AACjC,OAAO,KAAKC,MAAM,MAAM,aAAa;AAErC,MAAMC,MAAM,GAAG,6BAA6B;AAyY5C;;;;;;;;;;;;;;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AAO,EAE7C,CAAC,yCAAyC,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Filter.d.ts b/.opencode/node_modules/effect/dist/Filter.d.ts index e80db82785b9f4e114fc8ff61e76af095e328aea..34e93815d7f25909aef3a6cd503979a865db27a3 100644 --- a/.opencode/node_modules/effect/dist/Filter.d.ts +++ b/.opencode/node_modules/effect/dist/Filter.d.ts @@ -1,4 +1,13 @@ /** + * Defines composable checks that can also transform values. + * + * A `Filter` receives an input and returns a `Result`. + * Success means the value passed the filter, and failure means the value was + * filtered out. Filters may also narrow or transform the passing value. This + * module includes constructors from predicates, options, and effects, built-in + * filters for common JavaScript values and tags, helpers for combining filters, + * and conversions to predicates, options, and results. + * * @since 4.0.0 */ import type { Effect } from "./Effect.ts"; @@ -9,10 +18,13 @@ import type { EqualsWith, ExcludeTag, ExtractReason, ExtractTag, ReasonTags, Tag /** * Represents a filter function that can transform inputs to outputs or filter them out. * - * A filter takes an input value and either returns a boxed pass value or - * the special `fail` type to indicate the value should be filtered out. + * **Details** + * + * A filter takes an input value and either returns a boxed pass value or the + * special `fail` type to indicate the value should be filtered out. + * + * **Example** (Defining a positive number filter) * - * @example * ```ts * import { Filter, Result } from "effect" * @@ -23,8 +35,8 @@ import type { EqualsWith, ExcludeTag, ExtractReason, ExtractTag, ReasonTags, Tag * console.log(positiveFilter(-3)) // Result.fail(-3) * ``` * + * @category models * @since 4.0.0 - * @category Models */ export interface Filter { (input: Input): Result.Result; @@ -32,10 +44,14 @@ export interface Filter { /** * Represents an effectful filter function that can produce Effects. * - * Similar to a regular Filter, but the filtering operation itself can be effectful, - * allowing for asynchronous operations, error handling, and dependency injection. + * **Details** + * + * Similar to a regular `Filter`, but the filtering operation itself can be + * effectful, allowing for asynchronous operations, error handling, and + * dependency injection. + * + * **Example** (Defining an effectful user filter) * - * @example * ```ts * import { Effect, Filter, Result } from "effect" * @@ -56,8 +72,8 @@ export interface Filter { * }) * ``` * + * @category models * @since 4.0.0 - * @category Models */ export interface FilterEffect { (input: Input): Effect, E, R>; @@ -65,10 +81,13 @@ export interface FilterEffect(f: (input: Input) => Result.Result) => Filter; /** * Creates an effectful Filter from a function that returns an Effect. * + * **Details** + * * This constructor is used when the filtering operation needs to perform - * effectful computations, such as async operations, error handling, or - * accessing services from the environment. + * effectful computations, such as async operations, error handling, or accessing + * services from the environment. + * + * **Example** (Creating effectful filters) * - * @example * ```ts * import { Effect, Filter, Result } from "effect" * @@ -105,23 +127,32 @@ export declare const make: (f: (input: Input) => Result.Resul * ) * ``` * + * @category constructors * @since 4.0.0 - * @category Constructors */ export declare const makeEffect: (f: (input: Input) => Effect, E, R>) => FilterEffect; /** + * Transforms the failure value produced by a `Filter`, leaving successful + * results unchanged. + * + * @category mapping * @since 4.0.0 - * @category Mapping */ export declare const mapFail: { /** + * Transforms the failure value produced by a `Filter`, leaving successful + * results unchanged. + * + * @category mapping * @since 4.0.0 - * @category Mapping */ (f: (fail: Fail) => Fail2): (self: Filter) => Filter; /** + * Transforms the failure value produced by a `Filter`, leaving successful + * results unchanged. + * + * @category mapping * @since 4.0.0 - * @category Mapping */ (self: Filter, f: (fail: Fail) => Fail2): Filter; }; @@ -131,18 +162,21 @@ export { * Creates a Filter that tries to apply a function and returns `fail` on * error. * + * @category constructors * @since 4.0.0 - * @category Constructors */ try_ as try }; /** * Creates a Filter from a predicate or refinement function. * + * **Details** + * * This is a convenient way to create filters from boolean-returning functions. * When the predicate returns true, the input value is passed through unchanged. * When it returns false, the `fail` type is returned. * - * @example + * **Example** (Creating filters from predicates) + * * ```ts * import { Filter, Result } from "effect" * @@ -156,18 +190,21 @@ try_ as try }; * ) * ``` * + * @category constructors * @since 4.0.0 - * @category Constructors */ export declare const fromPredicate: { /** * Creates a Filter from a predicate or refinement function. * + * **Details** + * * This is a convenient way to create filters from boolean-returning functions. * When the predicate returns true, the input value is passed through unchanged. * When it returns false, the `fail` type is returned. * - * @example + * **Example** (Creating filters from predicates) + * * ```ts * import { Filter, Result } from "effect" * @@ -181,18 +218,21 @@ export declare const fromPredicate: { * ) * ``` * + * @category constructors * @since 4.0.0 - * @category Constructors */ (refinement: Predicate.Refinement): Filter>>; /** * Creates a Filter from a predicate or refinement function. * + * **Details** + * * This is a convenient way to create filters from boolean-returning functions. * When the predicate returns true, the input value is passed through unchanged. * When it returns false, the `fail` type is returned. * - * @example + * **Example** (Creating filters from predicates) + * * ```ts * import { Filter, Result } from "effect" * @@ -206,29 +246,39 @@ export declare const fromPredicate: { * ) * ``` * + * @category constructors * @since 4.0.0 - * @category Constructors */ (predicate: Predicate.Predicate): Filter; }; /** - * Creates a Filter from a function that returns an Option. + * Creates a `Filter` from a function that returns an `Option`; `Some(value)` + * passes with `value`, and `None` fails with the original input. * + * @category constructors * @since 4.0.0 - * @category Constructors */ export declare const fromPredicateOption: (predicate: (a: A) => Option.Option) => Filter; /** * Converts a Filter into a predicate function. * + * **When to use** + * + * Use to reuse a `Filter` with APIs that accept only boolean predicates when + * the pass and fail payloads are not needed. + * + * @see {@link toOption} for keeping passed values and discarding failure values + * @see {@link toResult} for preserving both pass and failure values + * + * @category converting * @since 4.0.0 - * @category Constructors */ export declare const toPredicate: (self: Filter) => Predicate.Predicate; /** * A predefined filter that only passes through string values. * - * @example + * **Example** (Filtering strings) + * * ```ts * import { Filter, Result } from "effect" * @@ -236,18 +286,48 @@ export declare const toPredicate: (self: Filter) = * console.log(Filter.string(42)) // fail * ``` * + * @category constructors * @since 4.0.0 - * @category Constructors */ export declare const string: Filter; /** + * Creates a `Filter` that passes only values strictly equal to the specified + * value using JavaScript `===` comparison. + * + * **When to use** + * + * Use when you need a `Filter` that accepts only the exact primitive value or + * object reference using JavaScript strict equality in a `Filter` / `Result` + * pipeline. + * + * **Gotchas** + * + * `NaN` never passes, even when the expected value is `NaN`, and objects pass + * only when they are the same reference. + * + * @see {@link equals} for structural equality when distinct values with equal + * contents should pass + * + * @category constructors * @since 4.0.0 - * @category Constructors */ export declare const equalsStrict: (value: A) => Filter>>; /** + * Creates a `Filter` that passes inputs whose `has(key)` method returns + * `true` for the specified key. + * + * **When to use** + * + * Use to keep inputs that expose a `has` method, such as `Set` or `Map`, when + * they contain a required key. + * + * @see {@link fromPredicate} for custom predicate filters or inputs without a + * `has` method + * @see {@link Predicate.hasProperty} for guarding property presence instead of + * calling an input's `has` method + * + * @category constructors * @since 4.0.0 - * @category Constructors */ export declare const has: (key: K) => boolean; @@ -255,14 +335,32 @@ export declare const has: (key: K) => any>(constructor: K) => (u: Input) => Result.Result, Exclude>>; /** * A predefined filter that only passes through number values. * - * @example + * **Example** (Filtering numbers) + * * ```ts * import { Filter, Result } from "effect" * @@ -270,163 +368,326 @@ export declare const instanceOf: any>(construct * console.log(Filter.number("42")) // fail * ``` * + * @category constructors * @since 4.0.0 - * @category Constructors */ export declare const number: Filter; /** * A predefined filter that only passes through boolean values. * + * **When to use** + * + * Use when accepting an unknown input only if it is already a boolean and you + * want a `Filter` result rather than a plain predicate result. + * + * **Details** + * + * Implemented with `fromPredicate(Predicate.isBoolean)`, so `true` and `false` + * succeed and non-booleans fail with the original input. + * + * @see {@link Predicate.isBoolean} for the underlying guard + * @see {@link fromPredicate} for custom predicate-based filters + * + * @category constructors * @since 4.0.0 - * @category Constructors */ export declare const boolean: Filter; /** - * A predefined filter that only passes through BigInt values. + * A predefined filter that only passes through `bigint` primitive values. + * + * **When to use** + * + * Use to keep primitive big integer values from unknown input while staying in + * the composable `Filter` / `Result` pipeline. + * + * **Details** + * + * Implemented with `fromPredicate(Predicate.isBigInt)`, so values where + * `typeof input === "bigint"` succeed and all other inputs fail with the + * original input. * + * **Gotchas** + * + * This filter does not coerce numbers or strings; `1n` passes while `1` fails. + * + * @see {@link number} for JavaScript `number` values + * @see {@link Predicate.isBigInt} for the underlying guard + * + * @category constructors * @since 4.0.0 - * @category Constructors */ export declare const bigint: Filter; /** * A predefined filter that only passes through Symbol values. * + * @category constructors * @since 4.0.0 - * @category Constructors */ export declare const symbol: Filter; /** * A predefined filter that only passes through Date objects. * + * **When to use** + * + * Use when you need to narrow unknown input to JavaScript `Date` instances with + * a reusable `Filter`. + * + * **Details** + * + * Implemented with `fromPredicate(Predicate.isDate)`, so passing values return + * `Result.succeed(input)` and failing values return `Result.fail(input)`. + * + * **Gotchas** + * + * The check uses `instanceof Date`, so invalid `Date` objects still pass; the + * filter does not validate the timestamp. + * + * @see {@link Predicate.isDate} for the underlying guard + * @see {@link instanceOf} for constructor-based filtering + * @see {@link fromPredicate} for custom date checks + * + * @category constructors * @since 4.0.0 - * @category Constructors */ export declare const date: Filter; /** * Creates a filter that checks if an input is tagged with a specific tag. * + * **When to use** + * + * Use to keep only the matching member of a `_tag`-discriminated union while + * staying in a composable `Filter` / `Result` pipeline. + * + * **Details** + * + * The filter succeeds when `Predicate.isTagged(input, tag)` returns `true`. + * Otherwise it fails with the original input. + * + * **Gotchas** + * + * This only checks `_tag`; it does not validate the rest of the variant fields. + * + * @see {@link Predicate.isTagged} for the underlying boolean guard when a + * `Filter` result is not needed + * @see {@link reason} for extracting a nested reason variant from tagged errors + * + * @category constructors * @since 4.0.0 - * @category Constructors */ export declare const tagged: { /** * Creates a filter that checks if an input is tagged with a specific tag. * + * **When to use** + * + * Use to keep only the matching member of a `_tag`-discriminated union while + * staying in a composable `Filter` / `Result` pipeline. + * + * **Details** + * + * The filter succeeds when `Predicate.isTagged(input, tag)` returns `true`. + * Otherwise it fails with the original input. + * + * **Gotchas** + * + * This only checks `_tag`; it does not validate the rest of the variant fields. + * + * @see {@link Predicate.isTagged} for the underlying boolean guard when a + * `Filter` result is not needed + * @see {@link reason} for extracting a nested reason variant from tagged errors + * + * @category constructors * @since 4.0.0 - * @category Constructors */ (): >(tag: Tag) => Filter, ExcludeTag>; /** * Creates a filter that checks if an input is tagged with a specific tag. * + * **When to use** + * + * Use to keep only the matching member of a `_tag`-discriminated union while + * staying in a composable `Filter` / `Result` pipeline. + * + * **Details** + * + * The filter succeeds when `Predicate.isTagged(input, tag)` returns `true`. + * Otherwise it fails with the original input. + * + * **Gotchas** + * + * This only checks `_tag`; it does not validate the rest of the variant fields. + * + * @see {@link Predicate.isTagged} for the underlying boolean guard when a + * `Filter` result is not needed + * @see {@link reason} for extracting a nested reason variant from tagged errors + * + * @category constructors * @since 4.0.0 - * @category Constructors */ >(tag: Tag): Filter, ExcludeTag>; /** * Creates a filter that checks if an input is tagged with a specific tag. * + * **When to use** + * + * Use to keep only the matching member of a `_tag`-discriminated union while + * staying in a composable `Filter` / `Result` pipeline. + * + * **Details** + * + * The filter succeeds when `Predicate.isTagged(input, tag)` returns `true`. + * Otherwise it fails with the original input. + * + * **Gotchas** + * + * This only checks `_tag`; it does not validate the rest of the variant fields. + * + * @see {@link Predicate.isTagged} for the underlying boolean guard when a + * `Filter` result is not needed + * @see {@link reason} for extracting a nested reason variant from tagged errors + * + * @category constructors * @since 4.0.0 - * @category Constructors */ (tag: Tag): (input: Input) => Result.Result, ExcludeTag>; }; /** * Creates a filter that extracts a reason from a tagged error. * + * @category constructors * @since 4.0.0 - * @category Constructors */ export declare const reason: { /** * Creates a filter that extracts a reason from a tagged error. * + * @category constructors * @since 4.0.0 - * @category Constructors */ (): , const ReasonTag extends ReasonTags>>(tag: Tag, reasonTag: ReasonTag) => Filter, ReasonTag>, Input>; /** * Creates a filter that extracts a reason from a tagged error. * + * @category constructors * @since 4.0.0 - * @category Constructors */ , const ReasonTag extends ReasonTags>>(tag: Tag, reasonTag: ReasonTag): Filter, ReasonTag>, Input>; /** * Creates a filter that extracts a reason from a tagged error. * + * @category constructors * @since 4.0.0 - * @category Constructors */ (tag: Tag, reasonTag: ReasonTag): (input: Input) => Result.Result, ReasonTag>, Input>; }; /** * Creates a filter that only passes values equal to the specified value using structural equality. * + * **When to use** + * + * Use to accept inputs that are structurally equal to a known expected value + * while staying in a composable `Filter` / `Result` pipeline. + * + * **Details** + * + * Delegates to `Equal.equals`. On success it returns `Result.succeed(value)`; + * on failure it returns `Result.fail(input)`. + * + * @see {@link equalsStrict} for JavaScript `===` matching instead of structural + * equality + * @see {@link Equal.equals} for the underlying structural equality semantics + * + * @category constructors * @since 4.0.0 - * @category Constructors */ export declare const equals: (value: A) => Filter>>; /** * Combines two filters with logical OR semantics. * + * @category combinators * @since 4.0.0 - * @category Combinators */ export declare const or: { /** * Combines two filters with logical OR semantics. * + * @category combinators * @since 4.0.0 - * @category Combinators */ (that: Filter): (self: Filter) => Filter; /** * Combines two filters with logical OR semantics. * + * @category combinators * @since 4.0.0 - * @category Combinators */ (self: Filter, that: Filter): Filter; }; /** * Combines two filters and applies a function to their results. * + * **When to use** + * + * Use to combine two filters with a custom function to merge their outputs. + * + * **Details** + * * Both filters must succeed (not return `fail`) for the combination to succeed. * If both filters pass, their outputs are combined using the provided function. * + * @see {@link zip} for combining two filters into a tuple + * + * @category combinators * @since 4.0.0 - * @category Combinators */ export declare const zipWith: { /** * Combines two filters and applies a function to their results. * + * **When to use** + * + * Use to combine two filters with a custom function to merge their outputs. + * + * **Details** + * * Both filters must succeed (not return `fail`) for the combination to succeed. * If both filters pass, their outputs are combined using the provided function. * + * @see {@link zip} for combining two filters into a tuple + * + * @category combinators * @since 4.0.0 - * @category Combinators */ (right: Filter, f: (left: PassL, right: PassR) => A): (left: Filter) => Filter; /** * Combines two filters and applies a function to their results. * + * **When to use** + * + * Use to combine two filters with a custom function to merge their outputs. + * + * **Details** + * * Both filters must succeed (not return `fail`) for the combination to succeed. * If both filters pass, their outputs are combined using the provided function. * + * @see {@link zip} for combining two filters into a tuple + * + * @category combinators * @since 4.0.0 - * @category Combinators */ (left: Filter, right: Filter, f: (left: PassL, right: PassR) => A): Filter; }; /** * Combines two filters into a tuple of their results. * - * Both filters must succeed for the combination to succeed. If both pass, - * their outputs are combined into a tuple. + * **Details** + * + * Both filters must succeed for the combination to succeed. If both pass, their + * outputs are combined into a tuple. + * + * **Example** (Zipping filters) * - * @example * ```ts * import { Filter } from "effect" * @@ -436,17 +697,20 @@ export declare const zipWith: { * const positiveAndEven = Filter.zip(positiveNumbers, evenNumbers) * ``` * + * @category combinators * @since 4.0.0 - * @category Combinators */ export declare const zip: { /** * Combines two filters into a tuple of their results. * - * Both filters must succeed for the combination to succeed. If both pass, - * their outputs are combined into a tuple. + * **Details** + * + * Both filters must succeed for the combination to succeed. If both pass, their + * outputs are combined into a tuple. + * + * **Example** (Zipping filters) * - * @example * ```ts * import { Filter } from "effect" * @@ -456,17 +720,20 @@ export declare const zip: { * const positiveAndEven = Filter.zip(positiveNumbers, evenNumbers) * ``` * + * @category combinators * @since 4.0.0 - * @category Combinators */ (right: Filter): (left: Filter) => Filter; /** * Combines two filters into a tuple of their results. * - * Both filters must succeed for the combination to succeed. If both pass, - * their outputs are combined into a tuple. + * **Details** + * + * Both filters must succeed for the combination to succeed. If both pass, their + * outputs are combined into a tuple. + * + * **Example** (Zipping filters) * - * @example * ```ts * import { Filter } from "effect" * @@ -476,15 +743,16 @@ export declare const zip: { * const positiveAndEven = Filter.zip(positiveNumbers, evenNumbers) * ``` * + * @category combinators * @since 4.0.0 - * @category Combinators */ (left: Filter, right: Filter): Filter; }; /** * Combines two filters but only returns the result of the left filter. * - * @example + * **Example** (Keeping the left filter result) + * * ```ts * import { Filter } from "effect" * @@ -494,14 +762,15 @@ export declare const zip: { * const positiveEven = Filter.andLeft(positiveNumbers, evenNumbers) * ``` * + * @category combinators * @since 4.0.0 - * @category Combinators */ export declare const andLeft: { /** * Combines two filters but only returns the result of the left filter. * - * @example + * **Example** (Keeping the left filter result) + * * ```ts * import { Filter } from "effect" * @@ -511,14 +780,15 @@ export declare const andLeft: { * const positiveEven = Filter.andLeft(positiveNumbers, evenNumbers) * ``` * + * @category combinators * @since 4.0.0 - * @category Combinators */ (right: Filter): (left: Filter) => Filter; /** * Combines two filters but only returns the result of the left filter. * - * @example + * **Example** (Keeping the left filter result) + * * ```ts * import { Filter } from "effect" * @@ -528,15 +798,16 @@ export declare const andLeft: { * const positiveEven = Filter.andLeft(positiveNumbers, evenNumbers) * ``` * + * @category combinators * @since 4.0.0 - * @category Combinators */ (left: Filter, right: Filter): Filter; }; /** * Combines two filters but only returns the result of the right filter. * - * @example + * **Example** (Keeping the right filter result) + * * ```ts * import { Filter, Result } from "effect" * @@ -548,14 +819,15 @@ export declare const andLeft: { * const positiveDoubled = Filter.andRight(positiveNumbers, doubleNumbers) * ``` * + * @category combinators * @since 4.0.0 - * @category Combinators */ export declare const andRight: { /** * Combines two filters but only returns the result of the right filter. * - * @example + * **Example** (Keeping the right filter result) + * * ```ts * import { Filter, Result } from "effect" * @@ -567,14 +839,15 @@ export declare const andRight: { * const positiveDoubled = Filter.andRight(positiveNumbers, doubleNumbers) * ``` * + * @category combinators * @since 4.0.0 - * @category Combinators */ (right: Filter): (left: Filter) => Filter; /** * Combines two filters but only returns the result of the right filter. * - * @example + * **Example** (Keeping the right filter result) + * * ```ts * import { Filter, Result } from "effect" * @@ -586,15 +859,16 @@ export declare const andRight: { * const positiveDoubled = Filter.andRight(positiveNumbers, doubleNumbers) * ``` * + * @category combinators * @since 4.0.0 - * @category Combinators */ (left: Filter, right: Filter): Filter; }; /** * Composes two filters sequentially, feeding the output of the first into the second. * - * @example + * **Example** (Composing filters) + * * ```ts * import { Filter, Result } from "effect" * @@ -606,14 +880,15 @@ export declare const andRight: { * const stringToUpper = Filter.compose(stringFilter, nonEmptyUpper) * ``` * + * @category combinators * @since 4.0.0 - * @category Combinators */ export declare const compose: { /** * Composes two filters sequentially, feeding the output of the first into the second. * - * @example + * **Example** (Composing filters) + * * ```ts * import { Filter, Result } from "effect" * @@ -625,14 +900,15 @@ export declare const compose: { * const stringToUpper = Filter.compose(stringFilter, nonEmptyUpper) * ``` * + * @category combinators * @since 4.0.0 - * @category Combinators */ (right: Filter): (left: Filter) => Filter; /** * Composes two filters sequentially, feeding the output of the first into the second. * - * @example + * **Example** (Composing filters) + * * ```ts * import { Filter, Result } from "effect" * @@ -644,53 +920,81 @@ export declare const compose: { * const stringToUpper = Filter.compose(stringFilter, nonEmptyUpper) * ``` * + * @category combinators * @since 4.0.0 - * @category Combinators */ (left: Filter, right: Filter): Filter; }; /** - * Composes two filters sequentially, allowing the output of the first to be - * passed to the second. + * Composes two filters sequentially, passing the successful output of the first + * filter to the second. + * + * **Details** * - * This is similar to `compose`, but it will always fail with the original - * input. + * If either filter fails, the returned filter fails with the original input + * instead of the intermediate failure value. * + * @category combinators * @since 4.0.0 - * @category Combinators */ export declare const composePassthrough: { /** - * Composes two filters sequentially, allowing the output of the first to be - * passed to the second. + * Composes two filters sequentially, passing the successful output of the first + * filter to the second. * - * This is similar to `compose`, but it will always fail with the original - * input. + * **Details** * + * If either filter fails, the returned filter fails with the original input + * instead of the intermediate failure value. + * + * @category combinators * @since 4.0.0 - * @category Combinators */ (right: Filter): (left: Filter) => Filter; /** - * Composes two filters sequentially, allowing the output of the first to be - * passed to the second. + * Composes two filters sequentially, passing the successful output of the first + * filter to the second. + * + * **Details** * - * This is similar to `compose`, but it will always fail with the original - * input. + * If either filter fails, the returned filter fails with the original input + * instead of the intermediate failure value. * + * @category combinators * @since 4.0.0 - * @category Combinators */ (left: Filter, right: Filter): Filter; }; /** + * Converts a `Filter` into a function that returns `Some` for passed values + * and `None` for filtered-out values. + * + * **When to use** + * + * Use when adapting a `Filter` to `Option`-based code where passed values + * become `Some` and filtered-out inputs become `None`. + * + * @see {@link toResult} for keeping the filter failure value + * @see {@link toPredicate} for plain boolean pass/fail checks + * + * @category converting * @since 4.0.0 - * @category Conversions */ export declare const toOption: (self: Filter) => (input: A) => Option.Option; /** + * Converts a `Filter` into a function that returns the underlying + * `Result.Result` for each input. + * + * **When to use** + * + * Use to adapt a `Filter` to APIs that expect a plain function returning + * `Result`, while preserving both the pass value and the failure value. + * + * @see {@link toOption} for keeping only passed values + * @see {@link toPredicate} for plain boolean pass/fail checks + * + * @category converting * @since 4.0.0 - * @category Conversions */ export declare const toResult: (self: Filter) => (input: A) => Result.Result; //# sourceMappingURL=Filter.d.ts.map \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Filter.d.ts.map b/.opencode/node_modules/effect/dist/Filter.d.ts.map index aa784217b7d978d3df38c545ff776beabdf4aef9..3da0bd4dadbafc65b48c8863f830f20bf414857b 100644 --- a/.opencode/node_modules/effect/dist/Filter.d.ts.map +++ b/.opencode/node_modules/effect/dist/Filter.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Filter.d.ts","sourceRoot":"","sources":["../src/Filter.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAGzC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAA;AAC3C,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,aAAa,EAAE,UAAU,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AAErG;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,WAAW,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,CAAC,IAAI,GAAG,KAAK,EAAE,GAAG,CAAC,IAAI,GAAG,KAAK;IAClE,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAA;CAC1C;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAM,WAAW,YAAY,CAC3B,EAAE,CAAC,KAAK,EACR,GAAG,CAAC,IAAI,EACR,GAAG,CAAC,IAAI,EACR,GAAG,CAAC,CAAC,GAAG,KAAK,EACb,GAAG,CAAC,CAAC,GAAG,KAAK;IAEb,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAA;CACxD;AAMD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,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AAC,EAAE,IAAI,EAAE,IAAI,CAAC,KAC1B,CAAC,KAAK,EAAE,CAAC,KAAK,MAAM,CAAC,MAAM,CAAC,IAAI,CAIlC,CAAA;AAED;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,QAAQ,GAAI,CAAC,EAAE,IAAI,EAAE,IAAI,EACpC,MAAM,MAAM,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,KAC1B,CAAC,KAAK,EAAE,CAAC,KAAK,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAIxC,CAAA"} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Filter.js b/.opencode/node_modules/effect/dist/Filter.js index df2c1cf07d2c2b5132824f9ff9bf2752ce553648..0a75e465acf9243029f4fc790b21125914bd99fc 100644 --- a/.opencode/node_modules/effect/dist/Filter.js +++ b/.opencode/node_modules/effect/dist/Filter.js @@ -9,10 +9,13 @@ import * as Result from "./Result.js"; /** * Creates a Filter from a function that returns either a `pass` or `fail` value. * + * **Details** + * * This is the primary constructor for creating custom filters. The function * should return either `Result.succeed(value)` or `Result.fail(value)`. * - * @example + * **Example** (Creating custom filters) + * * ```ts * import { Filter, Result } from "effect" * @@ -25,18 +28,21 @@ import * as Result from "./Result.js"; * ) * ``` * + * @category constructors * @since 4.0.0 - * @category Constructors */ export const make = f => f; /** * Creates an effectful Filter from a function that returns an Effect. * + * **Details** + * * This constructor is used when the filtering operation needs to perform - * effectful computations, such as async operations, error handling, or - * accessing services from the environment. + * effectful computations, such as async operations, error handling, or accessing + * services from the environment. + * + * **Example** (Creating effectful filters) * - * @example * ```ts * import { Effect, Filter, Result } from "effect" * @@ -49,13 +55,16 @@ export const make = f => f; * ) * ``` * + * @category constructors * @since 4.0.0 - * @category Constructors */ export const makeEffect = f => f; /** + * Transforms the failure value produced by a `Filter`, leaving successful + * results unchanged. + * + * @category mapping * @since 4.0.0 - * @category Mapping */ export const mapFail = /*#__PURE__*/dual(2, (self, f) => input => Result.mapError(self(input), f)); const try_ = f => input => { @@ -70,18 +79,21 @@ export { * Creates a Filter that tries to apply a function and returns `fail` on * error. * + * @category constructors * @since 4.0.0 - * @category Constructors */ try_ as try }; /** * Creates a Filter from a predicate or refinement function. * + * **Details** + * * This is a convenient way to create filters from boolean-returning functions. * When the predicate returns true, the input value is passed through unchanged. * When it returns false, the `fail` type is returned. * - * @example + * **Example** (Creating filters from predicates) + * * ```ts * import { Filter, Result } from "effect" * @@ -95,15 +107,16 @@ try_ as try }; * ) * ``` * + * @category constructors * @since 4.0.0 - * @category Constructors */ export const fromPredicate = predicate => input => predicate(input) ? Result.succeed(input) : Result.fail(input); /** - * Creates a Filter from a function that returns an Option. + * Creates a `Filter` from a function that returns an `Option`; `Some(value)` + * passes with `value`, and `None` fails with the original input. * + * @category constructors * @since 4.0.0 - * @category Constructors */ export const fromPredicateOption = predicate => input => { const o = predicate(input); @@ -112,14 +125,23 @@ export const fromPredicateOption = predicate => input => { /** * Converts a Filter into a predicate function. * + * **When to use** + * + * Use to reuse a `Filter` with APIs that accept only boolean predicates when + * the pass and fail payloads are not needed. + * + * @see {@link toOption} for keeping passed values and discarding failure values + * @see {@link toResult} for preserving both pass and failure values + * + * @category converting * @since 4.0.0 - * @category Constructors */ export const toPredicate = self => input => !Result.isFailure(self(input)); /** * A predefined filter that only passes through string values. * - * @example + * **Example** (Filtering strings) + * * ```ts * import { Filter, Result } from "effect" * @@ -127,31 +149,79 @@ export const toPredicate = self => input => !Result.isFailure(self(input)); * console.log(Filter.string(42)) // fail * ``` * + * @category constructors * @since 4.0.0 - * @category Constructors */ export const string = /*#__PURE__*/fromPredicate(Predicate.isString); /** + * Creates a `Filter` that passes only values strictly equal to the specified + * value using JavaScript `===` comparison. + * + * **When to use** + * + * Use when you need a `Filter` that accepts only the exact primitive value or + * object reference using JavaScript strict equality in a `Filter` / `Result` + * pipeline. + * + * **Gotchas** + * + * `NaN` never passes, even when the expected value is `NaN`, and objects pass + * only when they are the same reference. + * + * @see {@link equals} for structural equality when distinct values with equal + * contents should pass + * + * @category constructors * @since 4.0.0 - * @category Constructors */ export const equalsStrict = value => u => u === value ? Result.succeed(value) : Result.fail(u); /** + * Creates a `Filter` that passes inputs whose `has(key)` method returns + * `true` for the specified key. + * + * **When to use** + * + * Use to keep inputs that expose a `has` method, such as `Set` or `Map`, when + * they contain a required key. + * + * @see {@link fromPredicate} for custom predicate filters or inputs without a + * `has` method + * @see {@link Predicate.hasProperty} for guarding property presence instead of + * calling an input's `has` method + * + * @category constructors * @since 4.0.0 - * @category Constructors */ export const has = key => input => input.has(key) ? Result.succeed(input) : Result.fail(input); /** * Creates a filter that only passes instances of the given constructor. * + * **When to use** + * + * Use to narrow unknown input to values created by a specific JavaScript + * constructor while keeping the result in the `Filter` / `Result` pipeline. + * + * **Details** + * + * The filter succeeds when the input satisfies `instanceof constructor`. + * Otherwise it fails with the original input. + * + * **Gotchas** + * + * This uses JavaScript `instanceof` semantics, including prototype-chain and + * realm behavior. + * + * @see {@link fromPredicate} for custom predicate-based narrowing + * + * @category constructors * @since 4.0.0 - * @category Constructors */ export const instanceOf = constructor => u => u instanceof constructor ? Result.succeed(u) : Result.fail(u); /** * A predefined filter that only passes through number values. * - * @example + * **Example** (Filtering numbers) + * * ```ts * import { Filter, Result } from "effect" * @@ -159,43 +229,111 @@ export const instanceOf = constructor => u => u instanceof constructor ? Result. * console.log(Filter.number("42")) // fail * ``` * + * @category constructors * @since 4.0.0 - * @category Constructors */ export const number = /*#__PURE__*/fromPredicate(Predicate.isNumber); /** * A predefined filter that only passes through boolean values. * + * **When to use** + * + * Use when accepting an unknown input only if it is already a boolean and you + * want a `Filter` result rather than a plain predicate result. + * + * **Details** + * + * Implemented with `fromPredicate(Predicate.isBoolean)`, so `true` and `false` + * succeed and non-booleans fail with the original input. + * + * @see {@link Predicate.isBoolean} for the underlying guard + * @see {@link fromPredicate} for custom predicate-based filters + * + * @category constructors * @since 4.0.0 - * @category Constructors */ export const boolean = /*#__PURE__*/fromPredicate(Predicate.isBoolean); /** - * A predefined filter that only passes through BigInt values. + * A predefined filter that only passes through `bigint` primitive values. + * + * **When to use** + * + * Use to keep primitive big integer values from unknown input while staying in + * the composable `Filter` / `Result` pipeline. + * + * **Details** + * + * Implemented with `fromPredicate(Predicate.isBigInt)`, so values where + * `typeof input === "bigint"` succeed and all other inputs fail with the + * original input. + * + * **Gotchas** * + * This filter does not coerce numbers or strings; `1n` passes while `1` fails. + * + * @see {@link number} for JavaScript `number` values + * @see {@link Predicate.isBigInt} for the underlying guard + * + * @category constructors * @since 4.0.0 - * @category Constructors */ export const bigint = /*#__PURE__*/fromPredicate(Predicate.isBigInt); /** * A predefined filter that only passes through Symbol values. * + * @category constructors * @since 4.0.0 - * @category Constructors */ export const symbol = /*#__PURE__*/fromPredicate(Predicate.isSymbol); /** * A predefined filter that only passes through Date objects. * + * **When to use** + * + * Use when you need to narrow unknown input to JavaScript `Date` instances with + * a reusable `Filter`. + * + * **Details** + * + * Implemented with `fromPredicate(Predicate.isDate)`, so passing values return + * `Result.succeed(input)` and failing values return `Result.fail(input)`. + * + * **Gotchas** + * + * The check uses `instanceof Date`, so invalid `Date` objects still pass; the + * filter does not validate the timestamp. + * + * @see {@link Predicate.isDate} for the underlying guard + * @see {@link instanceOf} for constructor-based filtering + * @see {@link fromPredicate} for custom date checks + * + * @category constructors * @since 4.0.0 - * @category Constructors */ export const date = /*#__PURE__*/fromPredicate(Predicate.isDate); /** * Creates a filter that checks if an input is tagged with a specific tag. * + * **When to use** + * + * Use to keep only the matching member of a `_tag`-discriminated union while + * staying in a composable `Filter` / `Result` pipeline. + * + * **Details** + * + * The filter succeeds when `Predicate.isTagged(input, tag)` returns `true`. + * Otherwise it fails with the original input. + * + * **Gotchas** + * + * This only checks `_tag`; it does not validate the rest of the variant fields. + * + * @see {@link Predicate.isTagged} for the underlying boolean guard when a + * `Filter` result is not needed + * @see {@link reason} for extracting a nested reason variant from tagged errors + * + * @category constructors * @since 4.0.0 - * @category Constructors */ export const tagged = function () { return arguments.length === 0 ? taggedImpl : taggedImpl(arguments[0]); @@ -204,8 +342,8 @@ const taggedImpl = tag => input => Predicate.isTagged(input, tag) ? Result.succe /** * Creates a filter that extracts a reason from a tagged error. * + * @category constructors * @since 4.0.0 - * @category Constructors */ export const reason = function () { return arguments.length === 0 ? reasonImpl : reasonImpl(arguments[0], arguments[1]); @@ -219,15 +357,29 @@ const reasonImpl = (tag, reasonTag) => input => { /** * Creates a filter that only passes values equal to the specified value using structural equality. * + * **When to use** + * + * Use to accept inputs that are structurally equal to a known expected value + * while staying in a composable `Filter` / `Result` pipeline. + * + * **Details** + * + * Delegates to `Equal.equals`. On success it returns `Result.succeed(value)`; + * on failure it returns `Result.fail(input)`. + * + * @see {@link equalsStrict} for JavaScript `===` matching instead of structural + * equality + * @see {@link Equal.equals} for the underlying structural equality semantics + * + * @category constructors * @since 4.0.0 - * @category Constructors */ export const equals = value => u => Equal.equals(u, value) ? Result.succeed(value) : Result.fail(u); /** * Combines two filters with logical OR semantics. * + * @category combinators * @since 4.0.0 - * @category Combinators */ export const or = /*#__PURE__*/dual(2, (self, that) => input => { const selfResult = self(input); @@ -236,11 +388,19 @@ export const or = /*#__PURE__*/dual(2, (self, that) => input => { /** * Combines two filters and applies a function to their results. * + * **When to use** + * + * Use to combine two filters with a custom function to merge their outputs. + * + * **Details** + * * Both filters must succeed (not return `fail`) for the combination to succeed. * If both filters pass, their outputs are combined using the provided function. * + * @see {@link zip} for combining two filters into a tuple + * + * @category combinators * @since 4.0.0 - * @category Combinators */ export const zipWith = /*#__PURE__*/dual(3, (left, right, f) => input => { const leftResult = left(input); @@ -252,10 +412,13 @@ export const zipWith = /*#__PURE__*/dual(3, (left, right, f) => input => { /** * Combines two filters into a tuple of their results. * - * Both filters must succeed for the combination to succeed. If both pass, - * their outputs are combined into a tuple. + * **Details** + * + * Both filters must succeed for the combination to succeed. If both pass, their + * outputs are combined into a tuple. + * + * **Example** (Zipping filters) * - * @example * ```ts * import { Filter } from "effect" * @@ -265,14 +428,15 @@ export const zipWith = /*#__PURE__*/dual(3, (left, right, f) => input => { * const positiveAndEven = Filter.zip(positiveNumbers, evenNumbers) * ``` * + * @category combinators * @since 4.0.0 - * @category Combinators */ export const zip = /*#__PURE__*/dual(2, (left, right) => zipWith(left, right, (leftResult, rightResult) => [leftResult, rightResult])); /** * Combines two filters but only returns the result of the left filter. * - * @example + * **Example** (Keeping the left filter result) + * * ```ts * import { Filter } from "effect" * @@ -282,14 +446,15 @@ export const zip = /*#__PURE__*/dual(2, (left, right) => zipWith(left, right, (l * const positiveEven = Filter.andLeft(positiveNumbers, evenNumbers) * ``` * + * @category combinators * @since 4.0.0 - * @category Combinators */ export const andLeft = /*#__PURE__*/dual(2, (left, right) => zipWith(left, right, leftResult => leftResult)); /** * Combines two filters but only returns the result of the right filter. * - * @example + * **Example** (Keeping the right filter result) + * * ```ts * import { Filter, Result } from "effect" * @@ -301,14 +466,15 @@ export const andLeft = /*#__PURE__*/dual(2, (left, right) => zipWith(left, right * const positiveDoubled = Filter.andRight(positiveNumbers, doubleNumbers) * ``` * + * @category combinators * @since 4.0.0 - * @category Combinators */ export const andRight = /*#__PURE__*/dual(2, (left, right) => zipWith(left, right, (_, rightResult) => rightResult)); /** * Composes two filters sequentially, feeding the output of the first into the second. * - * @example + * **Example** (Composing filters) + * * ```ts * import { Filter, Result } from "effect" * @@ -320,8 +486,8 @@ export const andRight = /*#__PURE__*/dual(2, (left, right) => zipWith(left, righ * const stringToUpper = Filter.compose(stringFilter, nonEmptyUpper) * ``` * + * @category combinators * @since 4.0.0 - * @category Combinators */ export const compose = /*#__PURE__*/dual(2, (left, right) => input => { const leftOut = left(input); @@ -329,14 +495,16 @@ export const compose = /*#__PURE__*/dual(2, (left, right) => input => { return right(leftOut.success); }); /** - * Composes two filters sequentially, allowing the output of the first to be - * passed to the second. + * Composes two filters sequentially, passing the successful output of the first + * filter to the second. * - * This is similar to `compose`, but it will always fail with the original - * input. + * **Details** * + * If either filter fails, the returned filter fails with the original input + * instead of the intermediate failure value. + * + * @category combinators * @since 4.0.0 - * @category Combinators */ export const composePassthrough = /*#__PURE__*/dual(2, (left, right) => input => { const leftOut = left(input); @@ -346,16 +514,38 @@ export const composePassthrough = /*#__PURE__*/dual(2, (left, right) => input => return rightOut; }); /** + * Converts a `Filter` into a function that returns `Some` for passed values + * and `None` for filtered-out values. + * + * **When to use** + * + * Use when adapting a `Filter` to `Option`-based code where passed values + * become `Some` and filtered-out inputs become `None`. + * + * @see {@link toResult} for keeping the filter failure value + * @see {@link toPredicate} for plain boolean pass/fail checks + * + * @category converting * @since 4.0.0 - * @category Conversions */ export const toOption = self => input => { const result = self(input); return Result.isFailure(result) ? Option.none() : Option.some(result.success); }; /** + * Converts a `Filter` into a function that returns the underlying + * `Result.Result` for each input. + * + * **When to use** + * + * Use to adapt a `Filter` to APIs that expect a plain function returning + * `Result`, while preserving both the pass value and the failure value. + * + * @see {@link toOption} for keeping only passed values + * @see {@link toPredicate} for plain boolean pass/fail checks + * + * @category converting * @since 4.0.0 - * @category Conversions */ export const toResult = self => input => { const result = self(input); diff --git a/.opencode/node_modules/effect/dist/Filter.js.map b/.opencode/node_modules/effect/dist/Filter.js.map index d00c6998799437966ebc688c7d993a41e4249e4b..594960c44660e6bed69c4e7dd66ab1452b210059 100644 --- a/.opencode/node_modules/effect/dist/Filter.js.map +++ b/.opencode/node_modules/effect/dist/Filter.js.map @@ -1 +1 @@ -{"version":3,"file":"Filter.js","names":["Equal","dual","Option","Predicate","Result","make","f","makeEffect","mapFail","self","input","mapError","try_","succeed","fail","try","fromPredicate","predicate","fromPredicateOption","o","_tag","value","toPredicate","isFailure","string","isString","equalsStrict","u","has","key","instanceOf","constructor","number","isNumber","boolean","isBoolean","bigint","isBigInt","symbol","isSymbol","date","isDate","tagged","arguments","length","taggedImpl","tag","isTagged","reason","reasonImpl","reasonTag","hasProperty","equals","or","that","selfResult","isSuccess","zipWith","left","right","leftResult","rightResult","success","zip","andLeft","andRight","_","compose","leftOut","composePassthrough","rightOut","toOption","result","none","some","toResult","failure"],"sources":["../src/Filter.ts"],"sourcesContent":[null],"mappings":"AAIA,OAAO,KAAKA,KAAK,MAAM,YAAY;AACnC,SAASC,IAAI,QAAQ,eAAe;AACpC,OAAO,KAAKC,MAAM,MAAM,aAAa;AACrC,OAAO,KAAKC,SAAS,MAAM,gBAAgB;AAC3C,OAAO,KAAKC,MAAM,MAAM,aAAa;AAmErC;AACA;AACA;AAEA;;;;;;;;;;;;;;;;;;;;;;AAsBA,OAAO,MAAMC,IAAI,GACfC,CAA8C,IAChBA,CAAQ;AAExC;;;;;;;;;;;;;;;;;;;;;;;AAuBA,OAAO,MAAMC,UAAU,GACrBD,CAA4D,IAClBA,CAAQ;AAEpD;;;;AAIA,OAAO,MAAME,OAAO,gBAWhBP,IAAI,CAAC,CAAC,EAAE,CACVQ,IAA+B,EAC/BH,CAAyB,KAE1BI,KAAY,IAAiCN,MAAM,CAACO,QAAQ,CAACF,IAAI,CAACC,KAAK,CAAC,EAAEJ,CAAC,CAAC,CAAC;AAE9E,MAAMM,IAAI,GAAmBN,CAA2B,IAA6BI,KAAK,IAAI;EAC5F,IAAI;IACF,OAAON,MAAM,CAACS,OAAO,CAACP,CAAC,CAACI,KAAK,CAAC,CAAC;EACjC,CAAC,CAAC,MAAM;IACN,OAAON,MAAM,CAACU,IAAI,CAACJ,KAAK,CAAC;EAC3B;AACF,CAAC;AAED;AACE;;;;;;;AAOAE,IAAI,IAAIG,GAAG;AAGb;;;;;;;;;;;;;;;;;;;;;;;;AAwBA,OAAO,MAAMC,aAAa,GAmDDC,SAA8D,IAAoBP,KAAQ,IACjHO,SAAS,CAACP,KAAK,CAAC,GAAGN,MAAM,CAACS,OAAO,CAACH,KAAU,CAAC,GAAGN,MAAM,CAACU,IAAI,CAACJ,KAAK,CAAC;AAEpE;;;;;;AAMA,OAAO,MAAMQ,mBAAmB,GAAUD,SAAqC,IAAoBP,KAAK,IAAI;EAC1G,MAAMS,CAAC,GA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AACzC,CAAC,CAAC;AAEF;;;;AAIA,OAAO,MAAMC,QAAQ,GACnB9D,IAA2B,IAE5BC,KAAQ,IAAI;EACX,MAAM8D,MAAM,GAAG/D,IAAI,CAACC,KAAK,CAAC;EAC1B,OAAON,MAAM,CAACmB,SAAS,CAACiD,MAAM,CAAC,GAAGtE,MAAM,CAACuE,IAAI,EAAE,GAAGvE,MAAM,CAACwE,IAAI,CAACF,MAAM,CAACV,OAAO,CAAC;AAC/E,CAAC;AAED;;;;AAIA,OAAO,MAAMa,QAAQ,GACnBlE,IAA2B,IAE5BC,KAAQ,IAAI;EACX,MAAM8D,MAAM,GAAG/D,IAAI,CAACC,KAAK,CAAC;EAC1B,OAAON,MAAM,CAACmB,SAAS,CAACiD,MAAM,CAAC,GAAGpE,MAAM,CAACU,IAAI,CAAC0D,MAAM,CAACI,OAAO,CAAC,GAAGxE,MAAM,CAACS,OAAO,CAAC2D,MAAM,CAACV,OAAO,CAAC;AAChG,CAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"Filter.js","names":["Equal","dual","Option","Predicate","Result","make","f","makeEffect","mapFail","self","input","mapError","try_","succeed","fail","try","fromPredicate","predicate","fromPredicateOption","o","_tag","value","toPredicate","isFailure","string","isString","equalsStrict","u","has","key","instanceOf","constructor","number","isNumber","boolean","isBoolean","bigint","isBigInt","symbol","isSymbol","date","isDate","tagged","arguments","length","taggedImpl","tag","isTagged","reason","reasonImpl","reasonTag","hasProperty","equals","or","that","selfResult","isSuccess","zipWith","left","right","leftResult","rightResult","success","zip","andLeft","andRight","_","compose","leftOut","composePassthrough","rightOut","toOption","result","none","some","toResult","failure"],"sources":["../src/Filter.ts"],"sourcesContent":[null],"mappings":"AAaA,OAAO,KAAKA,KAAK,MAAM,YAAY;AACnC,SAASC,IAAI,QAAQ,eAAe;AACpC,OAAO,KAAKC,MAAM,MAAM,aAAa;AACrC,OAAO,KAAKC,SAAS,MAAM,gBAAgB;AAC3C,OAAO,KAAKC,MAAM,MAAM,a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A,OAAO,MAAMC,QAAQ,GACnB9D,IAA2B,IAE5BC,KAAQ,IAAI;EACX,MAAM8D,MAAM,GAAG/D,IAAI,CAACC,KAAK,CAAC;EAC1B,OAAON,MAAM,CAACmB,SAAS,CAACiD,MAAM,CAAC,GAAGtE,MAAM,CAACuE,IAAI,EAAE,GAAGvE,MAAM,CAACwE,IAAI,CAACF,MAAM,CAACV,OAAO,CAAC;AAC/E,CAAC;AAED;;;;;;;;;;;;;;;AAeA,OAAO,MAAMa,QAAQ,GACnBlE,IAA2B,IAE5BC,KAAQ,IAAI;EACX,MAAM8D,MAAM,GAAG/D,IAAI,CAACC,KAAK,CAAC;EAC1B,OAAON,MAAM,CAACmB,SAAS,CAACiD,MAAM,CAAC,GAAGpE,MAAM,CAACU,IAAI,CAAC0D,MAAM,CAACI,OAAO,CAAC,GAAGxE,MAAM,CAACS,OAAO,CAAC2D,MAAM,CAACV,OAAO,CAAC;AAChG,CAAC","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Formatter.d.ts b/.opencode/node_modules/effect/dist/Formatter.d.ts index 917b04b0ab50fdd3ff76442da5b941e30275a95c..a77fe3444328c092be69d383666f57945b8c47af 100644 --- a/.opencode/node_modules/effect/dist/Formatter.d.ts +++ b/.opencode/node_modules/effect/dist/Formatter.d.ts @@ -1,14 +1,13 @@ /** - * A callable interface representing a function that converts a `Value` into a - * `Format` (defaults to `string`). + * A callable interface representing a function that converts a `Value` into a `Format`, which defaults to `string`. * - * When to use: - * - You want to type a formatting / rendering function generically. - * - You are building a pipeline that accepts pluggable formatters. + * **When to use** * - * Behavior: - * - Pure callable type; carries no runtime implementation. - * - Contravariant in `Value`, covariant in `Format`. + * Use when you want to type a formatting or rendering function generically, or when you are building a pipeline that accepts pluggable formatters. + * + * **Details** + * + * This is a pure callable type and carries no runtime implementation. It is contravariant in `Value` and covariant in `Format`. * * **Example** (Define a custom formatter) * @@ -21,9 +20,9 @@ * // HELLO * ``` * - * See also: {@link format}, {@link formatJson} - * - * @category Model + * @see {@link format} + * @see {@link formatJson} + * @category models * @since 4.0.0 */ export interface Formatter { @@ -32,17 +31,18 @@ export interface Formatter { /** * Converts any JavaScript value into a human-readable string. * - * When to use: - * - Pretty-printing values for debugging, logging, or error messages. - * - You need to handle `BigInt`, `Symbol`, `Set`, `Map`, `Date`, `RegExp`, - * or class instances that `JSON.stringify` cannot represent. - * - You want circular references shown as `"[Circular]"` instead of - * throwing. + * **When to use** + * + * Use when you need to format arbitrary JavaScript values for debugging, + * logging, or error messages. + * + * **Details** * - * Behavior: - * - Does not mutate input. * - Output is **not** valid JSON; use {@link formatJson} when you need * parseable JSON. + * - Handles `BigInt`, `Symbol`, `Set`, `Map`, `Date`, `RegExp`, and class + * instances that `JSON.stringify` cannot represent. + * - Circular references are shown as `"[Circular]"` instead of throwing. * - Primitives: stringified naturally (`null`, `undefined`, `123`, `true`). * Strings are JSON-quoted. * - Objects with a custom `toString` (not `Object.prototype.toString`): @@ -54,9 +54,6 @@ export interface Formatter { * - `Redactable` values are automatically redacted. * - Arrays/objects with 0–1 entries are inline; larger ones are * pretty-printed when `space` is set. - * - Circular references are replaced with `"[Circular]"`. - * - * Options: * - `space` — indentation unit (number of spaces, or a string like * `"\t"`). Defaults to `0` (compact). * - `ignoreToString` — skip calling `toString()`. Defaults to `false`. @@ -96,36 +93,32 @@ export interface Formatter { * // {"name":"loop","self":[Circular]} * ``` * - * See also: {@link formatJson}, {@link Formatter} - * - * @since 4.0.0 + * @see {@link formatJson} + * @see {@link Formatter} + * @category formatting + * @since 2.0.0 */ export declare function format(input: unknown, options?: { readonly space?: number | string | undefined; readonly ignoreToString?: boolean | undefined; }): string; /** - * Safely stringifies a value to JSON, silently dropping circular references. - * - * When to use: - * - You need valid JSON output (unlike {@link format}). - * - The input may contain circular references and you want them silently - * omitted rather than throwing a `TypeError`. - * - * Behavior: - * - Does not mutate input. - * - Uses `JSON.stringify` internally with a replacer that tracks the - * current object ancestry. - * - Circular references are replaced with `undefined` (omitted from - * output). - * - `Redactable` values are automatically redacted before serialization. - * - Types not supported by JSON (`BigInt`, `Symbol`, `undefined`, - * functions) follow standard `JSON.stringify` behavior (omitted or - * `null` in arrays). - * - * Options: - * - `space` — indentation unit (number of spaces, or a string like - * `"\t"`). Defaults to `0` (compact). + * Stringifies a value to JSON safely, silently dropping circular references. + * + * **When to use** + * + * Use when you need valid JSON output, unlike `format`, and the input may + * contain circular references that should be silently omitted rather than + * throwing a `TypeError`. + * + * **Details** + * + * Uses `JSON.stringify` internally with a replacer that tracks the current + * object ancestry. Circular references are replaced with `undefined`, which + * omits them from object output. `Redactable` values are automatically redacted + * before serialization. Values not supported by JSON, such as `BigInt`, + * `Symbol`, `undefined`, and functions, follow standard `JSON.stringify` + * behavior. The `space` parameter controls indentation and defaults to `0`. * * **Example** (Compact JSON) * @@ -159,8 +152,9 @@ export declare function format(input: unknown, options?: { * // } * ``` * - * See also: {@link format}, {@link Formatter} - * + * @see {@link format} + * @see {@link Formatter} + * @category serialization * @since 4.0.0 */ export declare function formatJson(input: unknown, options?: { diff --git a/.opencode/node_modules/effect/dist/Formatter.d.ts.map b/.opencode/node_modules/effect/dist/Formatter.d.ts.map index 9cb21a1a5fbfda43e3d0bf5a4cb26f5fd91b7df6..4dab33864dbb6ebff1558d3f27e0dc2bddbcbc0e 100644 --- a/.opencode/node_modules/effect/dist/Formatter.d.ts.map +++ b/.opencode/node_modules/effect/dist/Formatter.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Formatter.d.ts","sourceRoot":"","sources":["../src/Formatter.ts"],"names":[],"mappings":"AAyDA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,WAAW,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,CAAC,MAAM,GAAG,MAAM;IACtD,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,CAAA;CACvB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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C,EAAE;IACnD,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAA;CAC7C,GAAG,MAAM,CAoBT"} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Formatter.js b/.opencode/node_modules/effect/dist/Formatter.js index b81477f6d3c2a81024bca68e6881c0eb1183876e..b046a2423882f3925713fd2a2f0637bee8c445db 100644 --- a/.opencode/node_modules/effect/dist/Formatter.js +++ b/.opencode/node_modules/effect/dist/Formatter.js @@ -1,54 +1,11 @@ /** - * Utilities for converting arbitrary JavaScript values into human-readable - * strings, with support for circular references, redaction, and common JS - * types that `JSON.stringify` handles poorly. - * - * Mental model: - * - A `Formatter` is a callable `(value: Value) => Format`. - * - {@link format} is the general-purpose pretty-printer: it handles - * primitives, arrays, objects, `BigInt`, `Symbol`, `Date`, `RegExp`, - * `Set`, `Map`, class instances, and circular references. - * - {@link formatJson} is a safe `JSON.stringify` wrapper that silently - * drops circular references and applies redaction. - * - Both functions accept a `space` option for indentation control. - * - * Common tasks: - * - Pretty-print any value for debugging / logging -> {@link format} - * - Serialize to JSON safely (no circular throws) -> {@link formatJson} - * - Format a single object property key -> {@link formatPropertyKey} - * - Format a property path like `["a"]["b"]` -> {@link formatPath} - * - Format a `Date` to ISO string safely -> {@link formatDate} - * - * Gotchas: - * - {@link format} output is **not** valid JSON; use {@link formatJson} when - * you need parseable JSON. - * - {@link format} calls `toString()` on objects by default; pass - * `ignoreToString: true` to disable. - * - {@link formatJson} silently omits circular references (the key is - * dropped from the output). - * - Values implementing the `Redactable` protocol are automatically - * redacted by both {@link format} and {@link formatJson}. - * - * **Example** (Pretty-print a value) + * Formats JavaScript values into readable strings. * - * ```ts - * import { Formatter } from "effect" - * - * const obj = { name: "Alice", scores: [100, 97] } - * console.log(Formatter.format(obj)) - * // {"name":"Alice","scores":[100,97]} - * - * console.log(Formatter.format(obj, { space: 2 })) - * // { - * // "name": "Alice", - * // "scores": [ - * // 100, - * // 97 - * // ] - * // } - * ``` - * - * See also: {@link Formatter}, {@link format}, {@link formatJson} + * `format` is intended for logs, diagnostics, and error messages. It handles + * primitives, objects, arrays, dates, regular expressions, maps, sets, class + * instances, errors, circular references, and redactable values. `formatJson` + * wraps JSON formatting with redaction and circular-reference handling, and the + * module also includes helpers for property keys, paths, and dates. * * @since 4.0.0 */ @@ -57,17 +14,18 @@ import { getRedacted, redact, symbolRedactable } from "./Redactable.js"; /** * Converts any JavaScript value into a human-readable string. * - * When to use: - * - Pretty-printing values for debugging, logging, or error messages. - * - You need to handle `BigInt`, `Symbol`, `Set`, `Map`, `Date`, `RegExp`, - * or class instances that `JSON.stringify` cannot represent. - * - You want circular references shown as `"[Circular]"` instead of - * throwing. + * **When to use** + * + * Use when you need to format arbitrary JavaScript values for debugging, + * logging, or error messages. + * + * **Details** * - * Behavior: - * - Does not mutate input. * - Output is **not** valid JSON; use {@link formatJson} when you need * parseable JSON. + * - Handles `BigInt`, `Symbol`, `Set`, `Map`, `Date`, `RegExp`, and class + * instances that `JSON.stringify` cannot represent. + * - Circular references are shown as `"[Circular]"` instead of throwing. * - Primitives: stringified naturally (`null`, `undefined`, `123`, `true`). * Strings are JSON-quoted. * - Objects with a custom `toString` (not `Object.prototype.toString`): @@ -79,9 +37,6 @@ import { getRedacted, redact, symbolRedactable } from "./Redactable.js"; * - `Redactable` values are automatically redacted. * - Arrays/objects with 0–1 entries are inline; larger ones are * pretty-printed when `space` is set. - * - Circular references are replaced with `"[Circular]"`. - * - * Options: * - `space` — indentation unit (number of spaces, or a string like * `"\t"`). Defaults to `0` (compact). * - `ignoreToString` — skip calling `toString()`. Defaults to `false`. @@ -121,9 +76,10 @@ import { getRedacted, redact, symbolRedactable } from "./Redactable.js"; * // {"name":"loop","self":[Circular]} * ``` * - * See also: {@link formatJson}, {@link Formatter} - * - * @since 4.0.0 + * @see {@link formatJson} + * @see {@link Formatter} + * @category formatting + * @since 2.0.0 */ export function format(input, options) { const space = options?.space ?? 0; @@ -181,30 +137,6 @@ export function format(input, options) { } const CIRCULAR = "[Circular]"; /** - * Formats a single property key for display. - * - * When to use: - * - You are building a custom formatter that needs to render object keys. - * - * Behavior: - * - String keys are JSON-quoted (e.g. `"foo"`). - * - Symbol and number keys are converted with `String()`. - * - Pure function; does not mutate input. - * - * **Example** (Format property keys) - * - * ```ts - * import { Formatter } from "effect" - * - * console.log(Formatter.formatPropertyKey("name")) - * // "name" - * - * console.log(Formatter.formatPropertyKey(Symbol.for("id"))) - * // Symbol(id) - * ``` - * - * See also: {@link formatPath}, {@link format} - * * @internal */ export function formatPropertyKey(name) { @@ -213,27 +145,6 @@ export function formatPropertyKey(name) { /** * Formats an array of property keys as a bracket-notation path string. * - * When to use: - * - You need to display a path through a nested object (e.g. in error - * messages or schema validation output). - * - * Behavior: - * - Each key is wrapped in brackets and formatted via - * {@link formatPropertyKey}. - * - Returns an empty string for an empty path. - * - Pure function; does not mutate input. - * - * **Example** (Render a property path) - * - * ```ts - * import { Formatter } from "effect" - * - * console.log(Formatter.formatPath(["users", 0, "name"])) - * // ["users"][0]["name"] - * ``` - * - * See also: {@link formatPropertyKey}, {@link format} - * * @internal */ export function formatPath(path) { @@ -243,29 +154,6 @@ export function formatPath(path) { * Formats a `Date` as an ISO 8601 string, returning `"Invalid Date"` for * invalid dates instead of throwing. * - * When to use: - * - You want a safe `toISOString()` that never throws. - * - * Behavior: - * - Returns `date.toISOString()` on success. - * - Returns `"Invalid Date"` if `toISOString()` throws (e.g. for - * `new Date(NaN)`). - * - Pure function; does not mutate input. - * - * **Example** (Safe date formatting) - * - * ```ts - * import { Formatter } from "effect" - * - * console.log(Formatter.formatDate(new Date("2024-01-15T10:30:00Z"))) - * // 2024-01-15T10:30:00.000Z - * - * console.log(Formatter.formatDate(new Date("invalid"))) - * // Invalid Date - * ``` - * - * See also: {@link format} - * * @internal */ export function formatDate(date) { @@ -284,27 +172,22 @@ function safeToString(input) { } } /** - * Safely stringifies a value to JSON, silently dropping circular references. - * - * When to use: - * - You need valid JSON output (unlike {@link format}). - * - The input may contain circular references and you want them silently - * omitted rather than throwing a `TypeError`. - * - * Behavior: - * - Does not mutate input. - * - Uses `JSON.stringify` internally with a replacer that tracks the - * current object ancestry. - * - Circular references are replaced with `undefined` (omitted from - * output). - * - `Redactable` values are automatically redacted before serialization. - * - Types not supported by JSON (`BigInt`, `Symbol`, `undefined`, - * functions) follow standard `JSON.stringify` behavior (omitted or - * `null` in arrays). - * - * Options: - * - `space` — indentation unit (number of spaces, or a string like - * `"\t"`). Defaults to `0` (compact). + * Stringifies a value to JSON safely, silently dropping circular references. + * + * **When to use** + * + * Use when you need valid JSON output, unlike `format`, and the input may + * contain circular references that should be silently omitted rather than + * throwing a `TypeError`. + * + * **Details** + * + * Uses `JSON.stringify` internally with a replacer that tracks the current + * object ancestry. Circular references are replaced with `undefined`, which + * omits them from object output. `Redactable` values are automatically redacted + * before serialization. Values not supported by JSON, such as `BigInt`, + * `Symbol`, `undefined`, and functions, follow standard `JSON.stringify` + * behavior. The `space` parameter controls indentation and defaults to `0`. * * **Example** (Compact JSON) * @@ -338,8 +221,9 @@ function safeToString(input) { * // } * ``` * - * See also: {@link format}, {@link Formatter} - * + * @see {@link format} + * @see {@link Formatter} + * @category serialization * @since 4.0.0 */ export function formatJson(input, options) { diff --git a/.opencode/node_modules/effect/dist/Formatter.js.map b/.opencode/node_modules/effect/dist/Formatter.js.map index ba37e919d5558cd5dce6ba87de39a51f75bd32f9..9241cb1ebdeb5cb07539fbd169da52f48d2d136a 100644 --- a/.opencode/node_modules/effect/dist/Formatter.js.map +++ b/.opencode/node_modules/effect/dist/Formatter.js.map @@ -1 +1 @@ -{"version":3,"file":"Formatter.js","names":["Predicate","getRedacted","redact","symbolRedactable","format","input","options","space","seen","WeakSet","gap","repeat","ind","d","wrap","v","body","ctor","constructor","Object","prototype","name","ownKeys","o","Reflect","recur","Array","isArray","has","CIRCULAR","add","length","map","x","join","inner","Date","formatDate","ignoreToString","hasProperty","toString","s","safeToString","Error","cause","JSON","stringify","String","Symbol","iterator","from","keys","k","formatPropertyKey","formatPath","path","key","date","toISOString","formatJson","ancestors","_key","value","redacted","pop","includes","undefined","push"],"sources":["../src/Formatter.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsDA,OAAO,KAAKA,SAAS,MAAM,gBAAgB;AAC3C,SAASC,WAAW,EAAEC,MAAM,EAAEC,gBAAgB,QAAQ,iBAAiB;AAkCvE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuEA,OAAM,SAAUC,MAAMA,CAACC,KAAc,EAAEC,OAGtC;EACC,MAAMC,KAAK,GAAGD,OAAO,EAAEC,KAAK,IAAI,CAAC;EACjC,MAAMC,IAAI,GAAG,IAAIC,OAAO,EAAU;EAClC,MAAMC,GAAG,GAAG,CAACH,KAAK,GAAG,EAAE,GAAI,OAAOA,KAAK,KAAK,QAAQ,GAAG,GAAG,CAACI,MAAM,CAACJ,KAAK,CAAC,GAAGA,KAAM;EACjF,MAAMK,GAAG,GAAIC,CAAS,IAAKH,GAAG,CAACC,MAAM,CAACE,CAAC,CAAC;EAExC,MAAMC,IAAI,GAAGA,CAACC,CAAU,EAAEC,IAAY,KAAY;IAChD,MAAMC,IAAI,GAAIF,CAAS,EAAEG,WAAW;IACpC,OAAOD,IAAI,IAAIA,IAAI,KAAKE,MAAM,CAACC,SAAS,CAACF,WAAW,IAAID,IAAI,CAACI,IAAI,GAAG,GAAGJ,IAAI,CAACI,IAAI,IAAIL,IAAI,GAAG,GAAGA,IAAI;EACpG,CAAC;EAED,MAAMM,OAAO,GAAIC,CAAS,IAAwB;IAChD,IAAI;MACF,OAAOC,OAAO,CAACF,OAAO,CAACC,CAAC,CAAC;IAC3B,CAAC,CAAC,MAAM;MACN,OAAO,CAAC,iBAAiB,CAAC;IAC5B;EACF,CAAC;EAED,SAAS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ACF;AAEA,SAAShB,YAAYA,CAACrC,KAAU;EAC9B,IAAI;IACF,MAAMoC,CAAC,GAAGpC,KAAK,CAACmC,QAAQ,EAAE;IAC1B,OAAO,OAAOC,CAAC,KAAK,QAAQ,GAAGA,CAAC,GAAGM,MAAM,CAACN,CAAC,CAAC;EAC9C,CAAC,CAAC,MAAM;IACN,OAAO,kBAAkB;EAC3B;AACF;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2DA,OAAM,SAAUkB,UAAUA,CAACtD,KAAc,EAAEC,OAE1C;EACC,MAAMsD,SAAS,GAAkB,EAAE;EACnC,OAAOf,IAAI,CAACC,SAAS,CACnBzC,KAAK,EACL,UAAwBwD,IAAY,EAAEC,KAAc;IAClD,MAAMC,QAAQ,GAAG7D,MAAM,CAAC4D,KAAK,CAAC;IAC9B,IAAI,OAAOC,QAAQ,KAAK,QAAQ,IAAIA,QAAQ,KAAK,IAAI,EAAE;MACrD,OAAOA,QAAQ;IACjB;IACA,OAAOH,SAAS,CAAC7B,MAAM,GAAG,CAAC,IAAI6B,SAAS,CAACA,SAAS,CAAC7B,MAAM,GAAG,CAAC,CAAC,KAAK,IAAI,EAAE;MACvE6B,SAAS,CAACI,GAAG,EAAE;IACjB;IACA,IAAIJ,SAAS,CAACK,QAAQ,CAACF,QAAQ,CAAC,EAAE;MAChC,OAAOG,SAAS,EAAC;IACnB;IACAN,SAAS,CAACO,IAAI,CAACJ,QAAQ,CAAC;IACxB,OAAOA,QAAQ;EACjB,CAAC,EACDzD,OAAO,EAAEC,KAAK,CACf;AACH","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"Formatter.js","names":["Predicate","getRedacted","redact","symbolRedactable","format","input","options","space","seen","WeakSet","gap","repeat","ind","d","wrap","v","body","ctor","constructor","Object","prototype","name","ownKeys","o","Reflect","recur","Array","isArray","has","CIRCULAR","add","length","map","x","join","inner","Date","formatDate","ignoreToString","hasProperty","toString","s","safeToString","Error","cause","JSON","stringify","String","Symbol","iterator","from","keys","k","formatPropertyKey","formatPath","path","key","date","toISOString","formatJson","ancestors","_key","value","redacted","pop","includes","undefined","push"],"sources":["../src/Formatter.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;;AAWA,OAAO,KAAKA,SAAS,MAAM,gBAAgB;AAC3C,SAASC,WAAW,EAAEC,MAAM,EAAEC,gBAAgB,QAAQ,iBAAiB;AAiCvE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsEA,OAAM,SAAUC,MAAMA,CAACC,KAAc,EAAEC,OAGtC;EACC,MAAMC,KAAK,GAAGD,OAAO,EAAEC,KAAK,IAAI,CAAC;EACjC,MAAMC,IAAI,GAAG,IAAIC,OAAO,EAAU;EAClC,MAAMC,GAAG,GAAG,CAACH,KAAK,GAAG,EAAE,GAAI,OAAOA,KAAK,KAAK,QAAQ,GAAG,GAAG,CAACI,MAAM,CAACJ,KAAK,CAAC,GAAGA,KAAM;EACjF,MAAMK,GAAG,GAAIC,CAAS,IAAKH,GAAG,CAACC,MAAM,CAACE,CAAC,CAAC;EAExC,MAAMC,IAAI,GAAGA,CAACC,CAAU,EAAEC,IAAY,KAAY;IAChD,MAAMC,IAAI,GAAIF,CAAS,EAAEG,WAAW;IACpC,OAAOD,IAAI,IAAIA,IAAI,KAAKE,MAAM,CAACC,SAAS,CAACF,WAAW,IAAID,IAAI,CAACI,IAAI,GAAG,GAAGJ,IAAI,CAACI,IAAI,IAAIL,IAAI,GAAG,GAAGA,IAAI;EACpG,CAAC;EAED,MAAMM,OAAO,GAAIC,CAAS,IAAwB;IAChD,IAAI;MACF,OAAOC,OAAO,CAACF,OAAO,CAACC,CAAC,CAAC;IAC3B,CAAC,CAAC,MAAM;MACN,OAAO,CAAC,iBAAiB,CAAC;IAC5B;EACF,CAAC;EAED,SAASE,KAAKA,CAACV,CAAU,EAAEF,CAAC,GAAG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CAAC,KAAK,QAAQ,GAAGA,CAAC,GAAGM,MAAM,CAACN,CAAC,CAAC;EAC9C,CAAC,CAAC,MAAM;IACN,OAAO,kBAAkB;EAC3B;AACF;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuDA,OAAM,SAAUkB,UAAUA,CAACtD,KAAc,EAAEC,OAE1C;EACC,MAAMsD,SAAS,GAAkB,EAAE;EACnC,OAAOf,IAAI,CAACC,SAAS,CACnBzC,KAAK,EACL,UAAwBwD,IAAY,EAAEC,KAAc;IAClD,MAAMC,QAAQ,GAAG7D,MAAM,CAAC4D,KAAK,CAAC;IAC9B,IAAI,OAAOC,QAAQ,KAAK,QAAQ,IAAIA,QAAQ,KAAK,IAAI,EAAE;MACrD,OAAOA,QAAQ;IACjB;IACA,OAAOH,SAAS,CAAC7B,MAAM,GAAG,CAAC,IAAI6B,SAAS,CAACA,SAAS,CAAC7B,MAAM,GAAG,CAAC,CAAC,KAAK,IAAI,EAAE;MACvE6B,SAAS,CAACI,GAAG,EAAE;IACjB;IACA,IAAIJ,SAAS,CAACK,QAAQ,CAACF,QAAQ,CAAC,EAAE;MAChC,OAAOG,SAAS,EAAC;IACnB;IACAN,SAAS,CAACO,IAAI,CAACJ,QAAQ,CAAC;IACxB,OAAOA,QAAQ;EACjB,CAAC,EACDzD,OAAO,EAAEC,KAAK,CACf;AACH","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Function.d.ts b/.opencode/node_modules/effect/dist/Function.d.ts index 24b07a64d57430aef3d348683c9ec4abcdfdb560..43c43117e1429329d15a5968e1463e57ef0f9dba 100644 --- a/.opencode/node_modules/effect/dist/Function.d.ts +++ b/.opencode/node_modules/effect/dist/Function.d.ts @@ -1,17 +1,29 @@ /** + * Provides small helpers for defining and reusing TypeScript functions. + * + * The main helpers are `pipe` and `flow` for left-to-right composition and + * `dual` for APIs that support both direct and pipe-friendly call styles. The + * module also contains small identity, constant, tuple, type-level, and + * memoization helpers used across the library. + * * @since 2.0.0 */ import type { TypeLambda } from "./HKT.ts"; /** * Type lambda for function types, used for higher-kinded type operations. * - * @example + * **When to use** + * + * Use when defining higher-kinded abstractions that must accept function types + * as one of their type-lambda inputs. + * + * **Example** (Creating a function type with a type lambda) + * * ```ts - * import type { FunctionTypeLambda } from "effect/Function" - * import type { Kind } from "effect/HKT" + * import type { Function, HKT } from "effect" * * // Create a function type using the type lambda - * type StringToNumber = Kind + * type StringToNumber = HKT.Kind * // Equivalent to: (a: string) => number * ``` * @@ -22,42 +34,26 @@ export interface FunctionTypeLambda extends TypeLambda { readonly type: (a: this["In"]) => this["Target"]; } /** - * Creates a function that can be used in a data-last (aka `pipe`able) or - * data-first style. + * Creates a function that can be called in data-first style or data-last + * (`pipe`-friendly) style. * - * The first parameter to `dual` is either the arity of the uncurried function - * or a predicate that determines if the function is being used in a data-first - * or data-last style. + * **When to use** * - * Using the arity is the most common use case, but there are some cases where - * you may want to use a predicate. For example, if you have a function that - * takes an optional argument, you can use a predicate to determine if the - * function is being used in a data-first or data-last style. + * Use to expose one implementation through both direct and `pipe`-friendly + * call styles. * - * You can pass either the arity of the uncurried function or a predicate - * which determines if the function is being used in a data-first or - * data-last style. - * - * @example - * ```ts - * import { dual, pipe } from "effect/Function" - * - * // Using arity to determine data-first or data-last style - * const sum = dual< - * (that: number) => (self: number) => number, - * (self: number, that: number) => number - * >(2, (self, that) => self + that) + * **Details** * - * console.log(sum(2, 3)) // 5 (data-first) - * console.log(pipe(2, sum(3))) // 5 (data-last) - * ``` + * Pass either the arity of the uncurried function or a predicate that decides + * whether the current call is data-first. Arity is the common case. Use a + * predicate when optional arguments make arity ambiguous. * * **Example** (Using arity to determine data-first or data-last style) * * ```ts - * import { dual, pipe } from "effect/Function" + * import { Function, pipe } from "effect" * - * const sum = dual< + * const sum = Function.dual< * (that: number) => (self: number) => number, * (self: number, that: number) => number * >(2, (self, that) => self + that) @@ -69,12 +65,12 @@ export interface FunctionTypeLambda extends TypeLambda { * **Example** (Using call signatures to define the overloads) * * ```ts - * import { dual, pipe } from "effect/Function" + * import { Function, pipe } from "effect" * * const sum: { * (that: number): (self: number) => number * (self: number, that: number): number - * } = dual(2, (self: number, that: number): number => self + that) + * } = Function.dual(2, (self: number, that: number): number => self + that) * * console.log(sum(2, 3)) // 5 * console.log(pipe(2, sum(3))) // 5 @@ -83,9 +79,9 @@ export interface FunctionTypeLambda extends TypeLambda { * **Example** (Using a predicate to determine data-first or data-last style) * * ```ts - * import { dual, pipe } from "effect/Function" + * import { Function, pipe } from "effect" * - * const sum = dual< + * const sum = Function.dual< * (that: number) => (self: number) => number, * (self: number, that: number) => number * >( @@ -102,42 +98,26 @@ export interface FunctionTypeLambda extends TypeLambda { */ export declare const dual: { /** - * Creates a function that can be used in a data-last (aka `pipe`able) or - * data-first style. + * Creates a function that can be called in data-first style or data-last + * (`pipe`-friendly) style. * - * The first parameter to `dual` is either the arity of the uncurried function - * or a predicate that determines if the function is being used in a data-first - * or data-last style. + * **When to use** * - * Using the arity is the most common use case, but there are some cases where - * you may want to use a predicate. For example, if you have a function that - * takes an optional argument, you can use a predicate to determine if the - * function is being used in a data-first or data-last style. + * Use to expose one implementation through both direct and `pipe`-friendly + * call styles. * - * You can pass either the arity of the uncurried function or a predicate - * which determines if the function is being used in a data-first or - * data-last style. + * **Details** * - * @example - * ```ts - * import { dual, pipe } from "effect/Function" - * - * // Using arity to determine data-first or data-last style - * const sum = dual< - * (that: number) => (self: number) => number, - * (self: number, that: number) => number - * >(2, (self, that) => self + that) - * - * console.log(sum(2, 3)) // 5 (data-first) - * console.log(pipe(2, sum(3))) // 5 (data-last) - * ``` + * Pass either the arity of the uncurried function or a predicate that decides + * whether the current call is data-first. Arity is the common case. Use a + * predicate when optional arguments make arity ambiguous. * * **Example** (Using arity to determine data-first or data-last style) * * ```ts - * import { dual, pipe } from "effect/Function" + * import { Function, pipe } from "effect" * - * const sum = dual< + * const sum = Function.dual< * (that: number) => (self: number) => number, * (self: number, that: number) => number * >(2, (self, that) => self + that) @@ -149,12 +129,12 @@ export declare const dual: { * **Example** (Using call signatures to define the overloads) * * ```ts - * import { dual, pipe } from "effect/Function" + * import { Function, pipe } from "effect" * * const sum: { * (that: number): (self: number) => number * (self: number, that: number): number - * } = dual(2, (self: number, that: number): number => self + that) + * } = Function.dual(2, (self: number, that: number): number => self + that) * * console.log(sum(2, 3)) // 5 * console.log(pipe(2, sum(3))) // 5 @@ -163,9 +143,9 @@ export declare const dual: { * **Example** (Using a predicate to determine data-first or data-last style) * * ```ts - * import { dual, pipe } from "effect/Function" + * import { Function, pipe } from "effect" * - * const sum = dual< + * const sum = Function.dual< * (that: number) => (self: number) => number, * (self: number, that: number) => number * >( @@ -182,42 +162,26 @@ export declare const dual: { */ ) => any, DataFirst extends (...args: Array) => any>(arity: Parameters["length"], body: DataFirst): DataLast & DataFirst; /** - * Creates a function that can be used in a data-last (aka `pipe`able) or - * data-first style. + * Creates a function that can be called in data-first style or data-last + * (`pipe`-friendly) style. * - * The first parameter to `dual` is either the arity of the uncurried function - * or a predicate that determines if the function is being used in a data-first - * or data-last style. + * **When to use** * - * Using the arity is the most common use case, but there are some cases where - * you may want to use a predicate. For example, if you have a function that - * takes an optional argument, you can use a predicate to determine if the - * function is being used in a data-first or data-last style. + * Use to expose one implementation through both direct and `pipe`-friendly + * call styles. * - * You can pass either the arity of the uncurried function or a predicate - * which determines if the function is being used in a data-first or - * data-last style. + * **Details** * - * @example - * ```ts - * import { dual, pipe } from "effect/Function" - * - * // Using arity to determine data-first or data-last style - * const sum = dual< - * (that: number) => (self: number) => number, - * (self: number, that: number) => number - * >(2, (self, that) => self + that) - * - * console.log(sum(2, 3)) // 5 (data-first) - * console.log(pipe(2, sum(3))) // 5 (data-last) - * ``` + * Pass either the arity of the uncurried function or a predicate that decides + * whether the current call is data-first. Arity is the common case. Use a + * predicate when optional arguments make arity ambiguous. * * **Example** (Using arity to determine data-first or data-last style) * * ```ts - * import { dual, pipe } from "effect/Function" + * import { Function, pipe } from "effect" * - * const sum = dual< + * const sum = Function.dual< * (that: number) => (self: number) => number, * (self: number, that: number) => number * >(2, (self, that) => self + that) @@ -229,12 +193,12 @@ export declare const dual: { * **Example** (Using call signatures to define the overloads) * * ```ts - * import { dual, pipe } from "effect/Function" + * import { Function, pipe } from "effect" * * const sum: { * (that: number): (self: number) => number * (self: number, that: number): number - * } = dual(2, (self: number, that: number): number => self + that) + * } = Function.dual(2, (self: number, that: number): number => self + that) * * console.log(sum(2, 3)) // 5 * console.log(pipe(2, sum(3))) // 5 @@ -243,9 +207,9 @@ export declare const dual: { * **Example** (Using a predicate to determine data-first or data-last style) * * ```ts - * import { dual, pipe } from "effect/Function" + * import { Function, pipe } from "effect" * - * const sum = dual< + * const sum = Function.dual< * (that: number) => (self: number) => number, * (self: number, that: number) => number * >( @@ -263,29 +227,45 @@ export declare const dual: { ) => any, DataFirst extends (...args: Array) => any>(isDataFirst: (args: IArguments) => boolean, body: DataFirst): DataLast & DataFirst; }; /** - * Apply a function to a given value. + * Applies a function to a given value. + * + * **When to use** + * + * Use to pass a fixed value into a unary function, especially when the function + * is the value flowing through `pipe`. + * + * **Details** + * + * `apply(a)(f)` is equivalent to `f(a)`. + * + * **Example** (Applying an argument to a function) * - * @example * ```ts - * import { apply, pipe } from "effect/Function" - * import { length } from "effect/String" + * import { Function, pipe, String } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(pipe(length, apply("hello")), 5) + * assert.deepStrictEqual(pipe(String.length, Function.apply("hello")), 5) * ``` * + * @see {@link pipe} for building left-to-right pipelines + * * @category combinators * @since 2.0.0 */ export declare const apply: (a: A) => (self: (a: A) => B) => B; /** - * A lazy argument. + * A zero-argument function that produces a value when invoked. + * + * **When to use** + * + * Use to type a lazy value provider that should not run until called. + * + * **Example** (Creating a lazy argument) * - * @example * ```ts - * import { constant, type LazyArg } from "effect/Function" + * import { Function } from "effect" * - * const constNull: LazyArg = constant(null) + * const constNull: Function.LazyArg = Function.constant(null) * ``` * * @category models @@ -295,12 +275,18 @@ export type LazyArg = () => A; /** * Represents a function with multiple arguments. * - * @example + * **When to use** + * + * Use to describe a function whose argument list is represented as a tuple + * type. + * + * **Example** (Typing a variadic function) + * * ```ts - * import type { FunctionN } from "effect/Function" + * import type { Function } from "effect" * import * as assert from "node:assert" * - * const sum: FunctionN<[number, number], number> = (a, b) => a + b + * const sum: Function.FunctionN<[number, number], number> = (a, b) => a + b * assert.deepStrictEqual(sum(2, 3), 5) * ``` * @@ -309,11 +295,16 @@ export type LazyArg = () => A; */ export type FunctionN, B> = (...args: A) => B; /** - * The identity function, i.e. A function that returns its input argument. + * Returns its input argument unchanged. + * + * **When to use** + * + * Use to return a value unchanged where a function is required. + * + * **Example** (Returning the same value) * - * @example * ```ts - * import { identity } from "effect/Function" + * import { identity } from "effect" * import * as assert from "node:assert" * * assert.deepStrictEqual(identity(5), 5) @@ -324,46 +315,69 @@ export type FunctionN, B> = (...args: A) => B; */ export declare const identity: (a: A) => A; /** - * A function that ensures that the type of an expression matches some type, + * Ensures that the type of an expression matches some type, * without changing the resulting type of that expression. * - * @example + * **When to use** + * + * Use to check assignability while preserving the expression's precise inferred + * type. + * + * **Example** (Checking an expression against a type) + * * ```ts - * import { satisfies } from "effect/Function" + * import { Function } from "effect" * import * as assert from "node:assert" * - * const test1 = satisfies()(5 as const) + * const test1 = Function.satisfies()(5 as const) * // ^? const test: 5 * // @ts-expect-error - * const test2 = satisfies()(5) + * const test2 = Function.satisfies()(5) * // ^? Argument of type 'number' is not assignable to parameter of type 'string' * - * assert.deepStrictEqual(satisfies()(5), 5) + * assert.deepStrictEqual(Function.satisfies()(5), 5) * ``` * - * @category type utils + * @see {@link cast} for changing only the static TypeScript type + * + * @category utility types * @since 2.0.0 */ export declare const satisfies: () => (b: B) => B; /** - * Casts the result to the specified type. + * Returns the input value with a different static type. * - * @category type utils - * @since 2.0.0 + * **When to use** + * + * Use when you need an explicit type-level cast and accept that the value is + * returned unchanged at runtime. + * + * **Gotchas** + * + * This is a type-level cast only; it performs no runtime validation or + * conversion. + * + * @see {@link satisfies} for checking assignability without changing the resulting type + * + * @category utility types + * @since 4.0.0 */ export declare const cast: (a: A) => B; /** - * Creates a constant value that never changes. + * Creates a zero-argument function that always returns the provided value. + * + * **When to use** + * + * Use when you need a thunk or callback that returns the same value on every + * invocation. * - * This is useful when you want to pass a value to a higher-order function (a function that takes another function as its argument) - * and want that inner function to always use the same value, no matter how many times it is called. + * **Example** (Creating a constant thunk) * - * @example * ```ts - * import { constant } from "effect/Function" + * import { Function } from "effect" * import * as assert from "node:assert" * - * const constNull = constant(null) + * const constNull = Function.constant(null) * * assert.deepStrictEqual(constNull(), null) * assert.deepStrictEqual(constNull(), null) @@ -374,14 +388,19 @@ export declare const cast: (a: A) => B; */ export declare const constant: (value: A) => LazyArg; /** - * A thunk that returns always `true`. + * Returns `true` when called. + * + * **When to use** + * + * Use when you need a thunk that returns `true` on every invocation. + * + * **Example** (Returning true from a thunk) * - * @example * ```ts - * import { constTrue } from "effect/Function" + * import { Function } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(constTrue(), true) + * assert.deepStrictEqual(Function.constTrue(), true) * ``` * * @category constants @@ -389,14 +408,19 @@ export declare const constant: (value: A) => LazyArg; */ export declare const constTrue: LazyArg; /** - * A thunk that returns always `false`. + * Returns `false` when called. + * + * **When to use** + * + * Use when you need a thunk that returns `false` on every invocation. + * + * **Example** (Returning false from a thunk) * - * @example * ```ts - * import { constFalse } from "effect/Function" + * import { Function } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(constFalse(), false) + * assert.deepStrictEqual(Function.constFalse(), false) * ``` * * @category constants @@ -404,14 +428,19 @@ export declare const constTrue: LazyArg; */ export declare const constFalse: LazyArg; /** - * A thunk that returns always `null`. + * Returns `null` when called. + * + * **When to use** + * + * Use when you need a thunk that returns `null` on every invocation. + * + * **Example** (Returning null from a thunk) * - * @example * ```ts - * import { constNull } from "effect/Function" + * import { Function } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(constNull(), null) + * assert.deepStrictEqual(Function.constNull(), null) * ``` * * @category constants @@ -419,14 +448,19 @@ export declare const constFalse: LazyArg; */ export declare const constNull: LazyArg; /** - * A thunk that returns always `undefined`. + * Returns `undefined` when called. + * + * **When to use** + * + * Use when you need a thunk that returns `undefined` on every invocation. + * + * **Example** (Returning undefined from a thunk) * - * @example * ```ts - * import { constUndefined } from "effect/Function" + * import { Function } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(constUndefined(), undefined) + * assert.deepStrictEqual(Function.constUndefined(), undefined) * ``` * * @category constants @@ -434,14 +468,20 @@ export declare const constNull: LazyArg; */ export declare const constUndefined: LazyArg; /** - * A thunk that returns always `void`. + * Returns no meaningful value when called. + * + * **When to use** + * + * Use when you need a thunk that is called only for its effect and has no + * meaningful return value. + * + * **Example** (Returning void from a thunk) * - * @example * ```ts - * import { constVoid } from "effect/Function" + * import { Function } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(constVoid(), undefined) + * assert.deepStrictEqual(Function.constVoid(), undefined) * ``` * * @category constants @@ -451,14 +491,20 @@ export declare const constVoid: LazyArg; /** * Reverses the order of arguments for a curried function. * - * @example + * **When to use** + * + * Use to adapt a curried function when its argument groups need to be supplied + * in the opposite order. + * + * **Example** (Flipping curried arguments) + * * ```ts - * import { flip } from "effect/Function" + * import { Function } from "effect" * import * as assert from "node:assert" * * const f = (a: number) => (b: string) => a - b.length * - * assert.deepStrictEqual(flip(f)("aaa")(2), -1) + * assert.deepStrictEqual(Function.flip(f)("aaa")(2), -1) * ``` * * @category combinators @@ -469,17 +515,25 @@ export declare const flip: , B extends Array, * Composes two functions, `ab` and `bc` into a single function that takes in an argument `a` of type `A` and returns a result of type `C`. * The result is obtained by first applying the `ab` function to `a` and then applying the `bc` function to the result of `ab`. * - * @example + * **When to use** + * + * Use to compose exactly two unary functions into a reusable unary function. + * + * **Example** (Composing two functions) + * * ```ts - * import { compose } from "effect/Function" + * import { Function } from "effect" * import * as assert from "node:assert" * * const increment = (n: number) => n + 1 * const square = (n: number) => n * n * - * assert.strictEqual(compose(increment, square)(2), 9) + * assert.strictEqual(Function.compose(increment, square)(2), 9) * ``` * + * @see {@link flow} for composing a left-to-right sequence of functions + * @see {@link pipe} for applying a value through a left-to-right sequence immediately + * * @category combinators * @since 2.0.0 */ @@ -488,17 +542,25 @@ export declare const compose: { * Composes two functions, `ab` and `bc` into a single function that takes in an argument `a` of type `A` and returns a result of type `C`. * The result is obtained by first applying the `ab` function to `a` and then applying the `bc` function to the result of `ab`. * - * @example + * **When to use** + * + * Use to compose exactly two unary functions into a reusable unary function. + * + * **Example** (Composing two functions) + * * ```ts - * import { compose } from "effect/Function" + * import { Function } from "effect" * import * as assert from "node:assert" * * const increment = (n: number) => n + 1 * const square = (n: number) => n * n * - * assert.strictEqual(compose(increment, square)(2), 9) + * assert.strictEqual(Function.compose(increment, square)(2), 9) * ``` * + * @see {@link flow} for composing a left-to-right sequence of functions + * @see {@link pipe} for applying a value through a left-to-right sequence immediately + * * @category combinators * @since 2.0.0 */ @@ -507,125 +569,176 @@ export declare const compose: { * Composes two functions, `ab` and `bc` into a single function that takes in an argument `a` of type `A` and returns a result of type `C`. * The result is obtained by first applying the `ab` function to `a` and then applying the `bc` function to the result of `ab`. * - * @example + * **When to use** + * + * Use to compose exactly two unary functions into a reusable unary function. + * + * **Example** (Composing two functions) + * * ```ts - * import { compose } from "effect/Function" + * import { Function } from "effect" * import * as assert from "node:assert" * * const increment = (n: number) => n + 1 * const square = (n: number) => n * n * - * assert.strictEqual(compose(increment, square)(2), 9) + * assert.strictEqual(Function.compose(increment, square)(2), 9) * ``` * + * @see {@link flow} for composing a left-to-right sequence of functions + * @see {@link pipe} for applying a value through a left-to-right sequence immediately + * * @category combinators * @since 2.0.0 */ (self: (a: A) => B, bc: (b: B) => C): (a: A) => C; }; /** - * The `absurd` function is a stub for cases where a value of type `never` is encountered in your code, - * meaning that it should be impossible for this code to be executed. + * Marks an impossible branch by accepting a `never` value and returning any + * type. + * + * **When to use** * - * This function is particularly useful when it's necessary to specify that certain cases are impossible. + * Use when you need a return value in a branch that exhaustive checks prove + * cannot be reached. + * + * **Gotchas** + * + * Calling `absurd` throws, because a value of type `never` should be + * impossible at runtime. + * + * **Example** (Handling impossible values) * - * @example * ```ts - * import { absurd } from "effect/Function" + * import { absurd } from "effect" * * const handleNever = (value: never) => { * return absurd(value) // This will throw an error if called * } * ``` * - * @category utilities + * @category utility types * @since 2.0.0 */ export declare const absurd: (_: never) => A; /** * Creates a tupled version of this function: instead of `n` arguments, it accepts a single tuple argument. * - * @example + * **When to use** + * + * Use to adapt a multi-argument function so it accepts one tuple argument. + * + * **Example** (Converting arguments to a tuple) + * * ```ts - * import { tupled } from "effect/Function" + * import { Function } from "effect" * import * as assert from "node:assert" * - * const sumTupled = tupled((x: number, y: number): number => x + y) + * const sumTupled = Function.tupled((x: number, y: number): number => x + y) * * assert.deepStrictEqual(sumTupled([1, 2]), 3) * ``` * + * @see {@link untupled} for adapting a tuple-argument function back to multiple arguments + * * @category combinators * @since 2.0.0 */ export declare const tupled: , B>(f: (...a: A) => B) => (a: A) => B; /** - * Inverse function of `tupled` + * Converts a tupled function back to an uncurried function. + * + * **When to use** + * + * Use to adapt a tuple-argument function so it accepts multiple arguments. + * + * **Example** (Converting a tuple to arguments) * - * @example * ```ts - * import { untupled } from "effect/Function" + * import { Function } from "effect" * import * as assert from "node:assert" * - * const getFirst = untupled((tuple: [A, B]): A => tuple[0]) + * const getFirst = Function.untupled((tuple: [A, B]): A => tuple[0]) * * assert.deepStrictEqual(getFirst(1, 2), 1) * ``` * + * @see {@link tupled} for adapting a multi-argument function to one tuple argument + * * @category combinators * @since 2.0.0 */ export declare const untupled: , B>(f: (a: A) => B) => (...a: A) => B; /** - * Pipes the value of an expression into a pipeline of functions. + * Pipes the value of an expression through a left-to-right sequence of + * functions. + * + * **When to use** + * + * Use when you need to compose data-last functions into readable + * transformation pipelines instead of method-style chains. * * **Details** * - * The `pipe` function is a utility that allows us to compose functions in a - * readable and sequential manner. It takes the output of one function and - * passes it as the input to the next function in the pipeline. This enables us - * to build complex transformations by chaining multiple functions together. + * Takes an initial value, passes it to the first function, then passes each + * result to the next function in order. The final function result is returned. * - * ```ts skip-type-checking - * import { pipe } from "effect" + * **Gotchas** * - * const result = pipe(input, func1, func2, ..., funcN) - * ``` + * Each function passed after the initial value must accept a single argument, + * because `pipe` calls each step with only the previous result. * - * In this syntax, `input` is the initial value, and `func1`, `func2`, ..., - * `funcN` are the functions to be applied in sequence. The result of each - * function becomes the input for the next function, and the final result is - * returned. + * **Example** (Using pipeline syntax) * - * Here's an illustration of how `pipe` works: + * In this example, `1` is passed to the first function, and each result becomes + * the input for the next function. * - * ``` - * ┌───────┐ ┌───────┐ ┌───────┐ ┌───────┐ ┌───────┐ ┌────────┐ - * │ input │───►│ func1 │───►│ func2 │───►│ ... │───►│ funcN │───►│ result │ - * └───────┘ └───────┘ └───────┘ └───────┘ └───────┘ └────────┘ + * ```ts + * import { pipe } from "effect" + * + * const result = pipe( + * 1, + * (n) => n + 1, + * (n) => n * 2, + * (n) => `result: ${n}` + * ) + * + * console.log(result) // "result: 4" * ``` * - * It's important to note that functions passed to `pipe` must have a **single - * argument** because they are only called with a single argument. + * **Example** (Chaining methods before conversion) * - * **When to Use** + * ```ts + * const numbers = [1, 2, 3, 4] + * const double = (n: number) => n * 2 + * const greaterThanFour = (n: number) => n > 4 * - * This is useful in combination with data-last functions as a simulation of - * methods: + * const result = numbers.map(double).filter(greaterThanFour) * - * ```ts skip-type-checking - * as.map(f).filter(g) + * console.log(result) // [6, 8] * ``` * - * becomes: + * **Example** (Rewriting method chains with pipe) + * + * The same transformation can be written with data-last functions. * - * ```ts skip-type-checking + * ```ts * import { Array, pipe } from "effect" * - * pipe(as, Array.map(f), Array.filter(g)) + * const numbers = [1, 2, 3, 4] + * const double = (n: number) => n * 2 + * const greaterThanFour = (n: number) => n > 4 + * + * const result = pipe( + * numbers, + * Array.map(double), + * Array.filter(greaterThanFour) + * ) + * + * console.log(result) // [6, 8] * ``` * - * **Example** (Chaining Arithmetic Operations) + * **Example** (Chaining arithmetic operations) * * ```ts * import { pipe } from "effect" @@ -642,7 +755,8 @@ export declare const untupled: , B>(f: (a: A) = * // Output: 2 * ``` * - * @example + * **Example** (Building a simple transformation pipeline) + * * ```ts * import { pipe } from "effect" * @@ -681,13 +795,22 @@ export declare function pipe(a: A, ab: (a: A) => B, bc: (b: B) => C, cd: (c: C) => D, de: (d: D) => E, ef: (e: E) => F, fg: (f: F) => G, gh: (g: G) => H, hi: (h: H) => I, ij: (i: I) => J, jk: (j: J) => K, kl: (k: K) => L, lm: (l: L) => M, mn: (m: M) => N, no: (n: N) => O, op: (o: O) => P, pq: (p: P) => Q, qr: (q: Q) => R, rs: (r: R) => S): S; export declare function pipe(a: A, ab: (a: A) => B, bc: (b: B) => C, cd: (c: C) => D, de: (d: D) => E, ef: (e: E) => F, fg: (f: F) => G, gh: (g: G) => H, hi: (h: H) => I, ij: (i: I) => J, jk: (j: J) => K, kl: (k: K) => L, lm: (l: L) => M, mn: (m: M) => N, no: (n: N) => O, op: (o: O) => P, pq: (p: P) => Q, qr: (q: Q) => R, rs: (r: R) => S, st: (s: S) => T): T; /** - * Performs left-to-right function composition. The first argument may have any arity, the remaining arguments must be unary. + * Performs left-to-right function composition. + * + * **When to use** + * + * Use to build a reusable function from a left-to-right sequence of + * transformations. + * + * **Details** + * + * The first function may have any arity. Every following function must be + * unary. * - * See also [`pipe`](#pipe). + * **Example** (Composing functions left to right) * - * @example * ```ts - * import { flow } from "effect/Function" + * import { flow } from "effect" * import * as assert from "node:assert" * * const len = (s: string): number => s.length @@ -698,6 +821,9 @@ export declare function pipe, B = never, C = ne export declare function flow, B = never, C = never, D = never, E = never, F = never, G = never, H = never, I = never>(ab: (...a: A) => B, bc: (b: B) => C, cd: (c: C) => D, de: (d: D) => E, ef: (e: E) => F, fg: (f: F) => G, gh: (g: G) => H, hi: (h: H) => I): (...a: A) => I; export declare function flow, B = never, C = never, D = never, E = never, F = never, G = never, H = never, I = never, J = never>(ab: (...a: A) => B, bc: (b: B) => C, cd: (c: C) => D, de: (d: D) => E, ef: (e: E) => F, fg: (f: F) => G, gh: (g: G) => H, hi: (h: H) => I, ij: (i: I) => J): (...a: A) => J; /** - * Type hole simulation. Creates a placeholder for any type, primarily used during development. + * Creates a compile-time placeholder for a value of any type. + * + * **When to use** + * + * Use as a temporary typed placeholder while developing incomplete code. + * + * **Gotchas** + * + * `hole` is intended for temporary development use. If the placeholder is + * evaluated at runtime, it throws. + * + * **Example** (Creating a development placeholder) * - * @example * ```ts - * import { hole } from "effect/Function" + * import { hole } from "effect" + * + * // Intentionally not called: `hole` throws if the placeholder is evaluated. + * const buildUser = (id: number): { readonly id: number; readonly name: string } => ({ + * id, + * name: hole() + * }) * - * // Use during development as a placeholder - * const placeholder: string = hole() + * console.log(typeof buildUser) // "function" * ``` * - * @category utilities + * @category utility types * @since 2.0.0 */ export declare const hole: () => T; /** - * The SK combinator, also known as the "S-K combinator" or "S-combinator", is a fundamental combinator in the - * lambda calculus and the SKI combinator calculus. + * Returns the second argument and discards the first. The SK combinator is + * a fundamental combinator in the lambda calculus and the SKI combinator + * calculus. + * + * **When to use** + * + * Use to discard the first argument and return the second argument. * - * This function is useful for discarding the first argument passed to it and returning the second argument. + * **Example** (Discarding the first argument) * - * @example * ```ts - * import { SK } from "effect/Function" + * import { Function } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(SK(0, "hello"), "hello") + * assert.deepStrictEqual(Function.SK(0, "hello"), "hello") * ``` * * @category combinators @@ -744,6 +889,27 @@ export declare const hole: () => T; */ export declare const SK: (_: A, b: B) => B; /** + * Creates a memoized function whose input is an object, caching results by + * object identity. + * + * **When to use** + * + * Use to reuse the result of a synchronous computation whose output is stable + * for a given object reference. + * + * **Details** + * + * Each memoized wrapper owns a private `WeakMap` keyed by object identity. + * Cached `undefined` results are still returned because the cache is checked + * with `WeakMap.has`. + * + * **Gotchas** + * + * Structurally equal objects do not share cache entries. If the same object is + * mutated after its first call, later calls still return the cached result for + * that reference. + * + * @category caching * @since 4.0.0 */ export declare function memoize(f: (a: A) => O): (ast: A) => O; diff --git a/.opencode/node_modules/effect/dist/Function.d.ts.map b/.opencode/node_modules/effect/dist/Function.d.ts.map index 958f64ac280bcbfd3a7b6123cf8ce870e05e873d..bd00fc6a665a810d63df3e53b0d7957494b51ea8 100644 --- a/.opencode/node_modules/effect/dist/Function.d.ts.map +++ b/.opencode/node_modules/effect/dist/Function.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Function.d.ts","sourceRoot":"","sources":["../src/Function.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAG1C;;;;;;;;;;;;;;;GAeG;AACH,MAAM,WAAW,kBAAmB,SAAQ,UAAU;IACpD,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC,QAAQ,CAAC,CAAA;CACjD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8EG;AACH,eAAO,MAAM,IAAI,EAAE;IACjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8EG;IACH,CAAC,QAAQ,SAAS,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,GAAG,EAAE,SAAS,SAAS,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,GAAG,EAAE,KAAK,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAA;IAC9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ist/Function.js index d2bf1c17d22a1cd41ddead58b91fbaeaf1f81ea5..51c5112c2d9934dd3da2ba2b744282ee4b07afa3 100644 --- a/.opencode/node_modules/effect/dist/Function.js +++ b/.opencode/node_modules/effect/dist/Function.js @@ -1,41 +1,25 @@ import { pipeArguments } from "./Pipeable.js"; /** - * Creates a function that can be used in a data-last (aka `pipe`able) or - * data-first style. + * Creates a function that can be called in data-first style or data-last + * (`pipe`-friendly) style. * - * The first parameter to `dual` is either the arity of the uncurried function - * or a predicate that determines if the function is being used in a data-first - * or data-last style. + * **When to use** * - * Using the arity is the most common use case, but there are some cases where - * you may want to use a predicate. For example, if you have a function that - * takes an optional argument, you can use a predicate to determine if the - * function is being used in a data-first or data-last style. + * Use to expose one implementation through both direct and `pipe`-friendly + * call styles. * - * You can pass either the arity of the uncurried function or a predicate - * which determines if the function is being used in a data-first or - * data-last style. + * **Details** * - * @example - * ```ts - * import { dual, pipe } from "effect/Function" - * - * // Using arity to determine data-first or data-last style - * const sum = dual< - * (that: number) => (self: number) => number, - * (self: number, that: number) => number - * >(2, (self, that) => self + that) - * - * console.log(sum(2, 3)) // 5 (data-first) - * console.log(pipe(2, sum(3))) // 5 (data-last) - * ``` + * Pass either the arity of the uncurried function or a predicate that decides + * whether the current call is data-first. Arity is the common case. Use a + * predicate when optional arguments make arity ambiguous. * * **Example** (Using arity to determine data-first or data-last style) * * ```ts - * import { dual, pipe } from "effect/Function" + * import { Function, pipe } from "effect" * - * const sum = dual< + * const sum = Function.dual< * (that: number) => (self: number) => number, * (self: number, that: number) => number * >(2, (self, that) => self + that) @@ -47,12 +31,12 @@ import { pipeArguments } from "./Pipeable.js"; * **Example** (Using call signatures to define the overloads) * * ```ts - * import { dual, pipe } from "effect/Function" + * import { Function, pipe } from "effect" * * const sum: { * (that: number): (self: number) => number * (self: number, that: number): number - * } = dual(2, (self: number, that: number): number => self + that) + * } = Function.dual(2, (self: number, that: number): number => self + that) * * console.log(sum(2, 3)) // 5 * console.log(pipe(2, sum(3))) // 5 @@ -61,9 +45,9 @@ import { pipeArguments } from "./Pipeable.js"; * **Example** (Using a predicate to determine data-first or data-last style) * * ```ts - * import { dual, pipe } from "effect/Function" + * import { Function, pipe } from "effect" * - * const sum = dual< + * const sum = Function.dual< * (that: number) => (self: number) => number, * (self: number, that: number) => number * >( @@ -120,27 +104,43 @@ export const dual = function (arity, body) { } }; /** - * Apply a function to a given value. + * Applies a function to a given value. + * + * **When to use** + * + * Use to pass a fixed value into a unary function, especially when the function + * is the value flowing through `pipe`. + * + * **Details** + * + * `apply(a)(f)` is equivalent to `f(a)`. + * + * **Example** (Applying an argument to a function) * - * @example * ```ts - * import { apply, pipe } from "effect/Function" - * import { length } from "effect/String" + * import { Function, pipe, String } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(pipe(length, apply("hello")), 5) + * assert.deepStrictEqual(pipe(String.length, Function.apply("hello")), 5) * ``` * + * @see {@link pipe} for building left-to-right pipelines + * * @category combinators * @since 2.0.0 */ export const apply = a => self => self(a); /** - * The identity function, i.e. A function that returns its input argument. + * Returns its input argument unchanged. + * + * **When to use** + * + * Use to return a value unchanged where a function is required. + * + * **Example** (Returning the same value) * - * @example * ```ts - * import { identity } from "effect/Function" + * import { identity } from "effect" * import * as assert from "node:assert" * * assert.deepStrictEqual(identity(5), 5) @@ -151,46 +151,69 @@ export const apply = a => self => self(a); */ export const identity = a => a; /** - * A function that ensures that the type of an expression matches some type, + * Ensures that the type of an expression matches some type, * without changing the resulting type of that expression. * - * @example + * **When to use** + * + * Use to check assignability while preserving the expression's precise inferred + * type. + * + * **Example** (Checking an expression against a type) + * * ```ts - * import { satisfies } from "effect/Function" + * import { Function } from "effect" * import * as assert from "node:assert" * - * const test1 = satisfies()(5 as const) + * const test1 = Function.satisfies()(5 as const) * // ^? const test: 5 * // @ts-expect-error - * const test2 = satisfies()(5) + * const test2 = Function.satisfies()(5) * // ^? Argument of type 'number' is not assignable to parameter of type 'string' * - * assert.deepStrictEqual(satisfies()(5), 5) + * assert.deepStrictEqual(Function.satisfies()(5), 5) * ``` * - * @category type utils + * @see {@link cast} for changing only the static TypeScript type + * + * @category utility types * @since 2.0.0 */ export const satisfies = () => b => b; /** - * Casts the result to the specified type. + * Returns the input value with a different static type. * - * @category type utils - * @since 2.0.0 + * **When to use** + * + * Use when you need an explicit type-level cast and accept that the value is + * returned unchanged at runtime. + * + * **Gotchas** + * + * This is a type-level cast only; it performs no runtime validation or + * conversion. + * + * @see {@link satisfies} for checking assignability without changing the resulting type + * + * @category utility types + * @since 4.0.0 */ export const cast = identity; /** - * Creates a constant value that never changes. + * Creates a zero-argument function that always returns the provided value. + * + * **When to use** * - * This is useful when you want to pass a value to a higher-order function (a function that takes another function as its argument) - * and want that inner function to always use the same value, no matter how many times it is called. + * Use when you need a thunk or callback that returns the same value on every + * invocation. + * + * **Example** (Creating a constant thunk) * - * @example * ```ts - * import { constant } from "effect/Function" + * import { Function } from "effect" * import * as assert from "node:assert" * - * const constNull = constant(null) + * const constNull = Function.constant(null) * * assert.deepStrictEqual(constNull(), null) * assert.deepStrictEqual(constNull(), null) @@ -201,14 +224,19 @@ export const cast = identity; */ export const constant = value => () => value; /** - * A thunk that returns always `true`. + * Returns `true` when called. + * + * **When to use** + * + * Use when you need a thunk that returns `true` on every invocation. + * + * **Example** (Returning true from a thunk) * - * @example * ```ts - * import { constTrue } from "effect/Function" + * import { Function } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(constTrue(), true) + * assert.deepStrictEqual(Function.constTrue(), true) * ``` * * @category constants @@ -216,14 +244,19 @@ export const constant = value => () => value; */ export const constTrue = /*#__PURE__*/constant(true); /** - * A thunk that returns always `false`. + * Returns `false` when called. + * + * **When to use** + * + * Use when you need a thunk that returns `false` on every invocation. + * + * **Example** (Returning false from a thunk) * - * @example * ```ts - * import { constFalse } from "effect/Function" + * import { Function } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(constFalse(), false) + * assert.deepStrictEqual(Function.constFalse(), false) * ``` * * @category constants @@ -231,14 +264,19 @@ export const constTrue = /*#__PURE__*/constant(true); */ export const constFalse = /*#__PURE__*/constant(false); /** - * A thunk that returns always `null`. + * Returns `null` when called. + * + * **When to use** + * + * Use when you need a thunk that returns `null` on every invocation. + * + * **Example** (Returning null from a thunk) * - * @example * ```ts - * import { constNull } from "effect/Function" + * import { Function } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(constNull(), null) + * assert.deepStrictEqual(Function.constNull(), null) * ``` * * @category constants @@ -246,14 +284,19 @@ export const constFalse = /*#__PURE__*/constant(false); */ export const constNull = /*#__PURE__*/constant(null); /** - * A thunk that returns always `undefined`. + * Returns `undefined` when called. + * + * **When to use** + * + * Use when you need a thunk that returns `undefined` on every invocation. + * + * **Example** (Returning undefined from a thunk) * - * @example * ```ts - * import { constUndefined } from "effect/Function" + * import { Function } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(constUndefined(), undefined) + * assert.deepStrictEqual(Function.constUndefined(), undefined) * ``` * * @category constants @@ -261,14 +304,20 @@ export const constNull = /*#__PURE__*/constant(null); */ export const constUndefined = /*#__PURE__*/constant(undefined); /** - * A thunk that returns always `void`. + * Returns no meaningful value when called. + * + * **When to use** + * + * Use when you need a thunk that is called only for its effect and has no + * meaningful return value. + * + * **Example** (Returning void from a thunk) * - * @example * ```ts - * import { constVoid } from "effect/Function" + * import { Function } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(constVoid(), undefined) + * assert.deepStrictEqual(Function.constVoid(), undefined) * ``` * * @category constants @@ -278,14 +327,20 @@ export const constVoid = constUndefined; /** * Reverses the order of arguments for a curried function. * - * @example + * **When to use** + * + * Use to adapt a curried function when its argument groups need to be supplied + * in the opposite order. + * + * **Example** (Flipping curried arguments) + * * ```ts - * import { flip } from "effect/Function" + * import { Function } from "effect" * import * as assert from "node:assert" * * const f = (a: number) => (b: string) => a - b.length * - * assert.deepStrictEqual(flip(f)("aaa")(2), -1) + * assert.deepStrictEqual(Function.flip(f)("aaa")(2), -1) * ``` * * @category combinators @@ -296,37 +351,54 @@ export const flip = f => (...b) => (...a) => f(...a)(...b); * Composes two functions, `ab` and `bc` into a single function that takes in an argument `a` of type `A` and returns a result of type `C`. * The result is obtained by first applying the `ab` function to `a` and then applying the `bc` function to the result of `ab`. * - * @example + * **When to use** + * + * Use to compose exactly two unary functions into a reusable unary function. + * + * **Example** (Composing two functions) + * * ```ts - * import { compose } from "effect/Function" + * import { Function } from "effect" * import * as assert from "node:assert" * * const increment = (n: number) => n + 1 * const square = (n: number) => n * n * - * assert.strictEqual(compose(increment, square)(2), 9) + * assert.strictEqual(Function.compose(increment, square)(2), 9) * ``` * + * @see {@link flow} for composing a left-to-right sequence of functions + * @see {@link pipe} for applying a value through a left-to-right sequence immediately + * * @category combinators * @since 2.0.0 */ export const compose = /*#__PURE__*/dual(2, (ab, bc) => a => bc(ab(a))); /** - * The `absurd` function is a stub for cases where a value of type `never` is encountered in your code, - * meaning that it should be impossible for this code to be executed. + * Marks an impossible branch by accepting a `never` value and returning any + * type. + * + * **When to use** + * + * Use when you need a return value in a branch that exhaustive checks prove + * cannot be reached. + * + * **Gotchas** * - * This function is particularly useful when it's necessary to specify that certain cases are impossible. + * Calling `absurd` throws, because a value of type `never` should be + * impossible at runtime. + * + * **Example** (Handling impossible values) * - * @example * ```ts - * import { absurd } from "effect/Function" + * import { absurd } from "effect" * * const handleNever = (value: never) => { * return absurd(value) // This will throw an error if called * } * ``` * - * @category utilities + * @category utility types * @since 2.0.0 */ export const absurd = _ => { @@ -335,33 +407,47 @@ export const absurd = _ => { /** * Creates a tupled version of this function: instead of `n` arguments, it accepts a single tuple argument. * - * @example + * **When to use** + * + * Use to adapt a multi-argument function so it accepts one tuple argument. + * + * **Example** (Converting arguments to a tuple) + * * ```ts - * import { tupled } from "effect/Function" + * import { Function } from "effect" * import * as assert from "node:assert" * - * const sumTupled = tupled((x: number, y: number): number => x + y) + * const sumTupled = Function.tupled((x: number, y: number): number => x + y) * * assert.deepStrictEqual(sumTupled([1, 2]), 3) * ``` * + * @see {@link untupled} for adapting a tuple-argument function back to multiple arguments + * * @category combinators * @since 2.0.0 */ export const tupled = f => a => f(...a); /** - * Inverse function of `tupled` + * Converts a tupled function back to an uncurried function. + * + * **When to use** + * + * Use to adapt a tuple-argument function so it accepts multiple arguments. + * + * **Example** (Converting a tuple to arguments) * - * @example * ```ts - * import { untupled } from "effect/Function" + * import { Function } from "effect" * import * as assert from "node:assert" * - * const getFirst = untupled((tuple: [A, B]): A => tuple[0]) + * const getFirst = Function.untupled((tuple: [A, B]): A => tuple[0]) * * assert.deepStrictEqual(getFirst(1, 2), 1) * ``` * + * @see {@link tupled} for adapting a multi-argument function to one tuple argument + * * @category combinators * @since 2.0.0 */ @@ -409,32 +495,51 @@ export function flow(ab, bc, cd, de, ef, fg, gh, hi, ij) { return; } /** - * Type hole simulation. Creates a placeholder for any type, primarily used during development. + * Creates a compile-time placeholder for a value of any type. + * + * **When to use** + * + * Use as a temporary typed placeholder while developing incomplete code. + * + * **Gotchas** + * + * `hole` is intended for temporary development use. If the placeholder is + * evaluated at runtime, it throws. + * + * **Example** (Creating a development placeholder) * - * @example * ```ts - * import { hole } from "effect/Function" + * import { hole } from "effect" + * + * // Intentionally not called: `hole` throws if the placeholder is evaluated. + * const buildUser = (id: number): { readonly id: number; readonly name: string } => ({ + * id, + * name: hole() + * }) * - * // Use during development as a placeholder - * const placeholder: string = hole() + * console.log(typeof buildUser) // "function" * ``` * - * @category utilities + * @category utility types * @since 2.0.0 */ export const hole = /*#__PURE__*/cast(absurd); /** - * The SK combinator, also known as the "S-K combinator" or "S-combinator", is a fundamental combinator in the - * lambda calculus and the SKI combinator calculus. + * Returns the second argument and discards the first. The SK combinator is + * a fundamental combinator in the lambda calculus and the SKI combinator + * calculus. * - * This function is useful for discarding the first argument passed to it and returning the second argument. + * **When to use** + * + * Use to discard the first argument and return the second argument. + * + * **Example** (Discarding the first argument) * - * @example * ```ts - * import { SK } from "effect/Function" + * import { Function } from "effect" * import * as assert from "node:assert" * - * assert.deepStrictEqual(SK(0, "hello"), "hello") + * assert.deepStrictEqual(Function.SK(0, "hello"), "hello") * ``` * * @category combinators @@ -442,6 +547,27 @@ export const hole = /*#__PURE__*/cast(absurd); */ export const SK = (_, b) => b; /** + * Creates a memoized function whose input is an object, caching results by + * object identity. + * + * **When to use** + * + * Use to reuse the result of a synchronous computation whose output is stable + * for a given object reference. + * + * **Details** + * + * Each memoized wrapper owns a private `WeakMap` keyed by object identity. + * Cached `undefined` results are still returned because the cache is checked + * with `WeakMap.has`. + * + * **Gotchas** + * + * Structurally equal objects do not share cache entries. If the same object is + * mutated after its first call, later calls still return the cached result for + * that reference. + * + * @category caching * @since 4.0.0 */ export function memoize(f) { diff --git a/.opencode/node_modules/effect/dist/Function.js.map b/.opencode/node_modules/effect/dist/Function.js.map index 8709a19327ab89b6283024b40cb938ceada6c119..36fc28a54bc1710a371080e57902be804dd46dfb 100644 --- a/.opencode/node_modules/effect/dist/Function.js.map +++ b/.opencode/node_modules/effect/dist/Function.js.map @@ -1 +1 @@ -{"version":3,"file":"Function.js","names":["pipeArguments","dual","arity","body","arguments","apply","self","RangeError","a","b","length","c","args","identity","satisfies","cast","constant","value","constTrue","constFalse","constNull","constUndefined","undefined","constVoid","flip","f","compose","ab","bc","absurd","_","Error","tupled","untupled","pipe","flow","cd","de","ef","fg","gh","hi","ij","hole","SK","memoize","cache","WeakMap","has","get","result","set"],"sources":["../src/Function.ts"],"sourcesContent":[null],"mappings":"AAIA,SAASA,aAAa,QAAQ,eAAe;AAsB7C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+EA,OAAO,MAAMC,IAAI,GAiKb,SAAAA,CAASC,KAAK,EAAEC,IAAI;EACtB,IAAI,OAAOD,KAAK,KAAK,UAAU,EAAE;IAC/B,OAAO;MACL,OAAOA,KAAK,CAACE,SAAS,CAAC,GACn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MAAM0C,MAAM,GAAGzB,CAAC,CAACjB,CAAC,CAAC;IACnBsC,KAAK,CAACK,GAAG,CAAC3C,CAAC,EAAE0C,MAAM,CAAC;IACpB,OAAOA,MAAM;EACf,CAAC;AACH","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"Function.js","names":["pipeArguments","dual","arity","body","arguments","apply","self","RangeError","a","b","length","c","args","identity","satisfies","cast","constant","value","constTrue","constFalse","constNull","constUndefined","undefined","constVoid","flip","f","compose","ab","bc","absurd","_","Error","tupled","untupled","pipe","flow","cd","de","ef","fg","gh","hi","ij","hole","SK","memoize","cache","WeakMap","has","get","result","set"],"sources":["../src/Function.ts"],"sourcesContent":[null],"mappings":"AAWA,SAASA,aAAa,QAAQ,eAAe;AA2B7C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+DA,OAAO,MAAMC,IAAI,GAiIb,SAAAA,CAASC,KAAK,EAAEC,IAAI;EACtB,IAAI,OAAOD,KAAK,KAAK,UAAU,EAAE;IAC/B,OAAO;MACL,OAAOA,KAAK,CAACE,SAAS,CAAC,GACnBD,IAAI,CAACE,KAAK,CAAC,IAAI,EAAED,SAAgB,CAAC,GAChCE,IAAS,IAAKH,IAAI,CAACG,IAAI,EAAE,GAAGF,SAAS,CAAS;IACtD,CAAC;EACH;EAEA,QAAQF,KAAK;IACX,KAAK,CAAC;IACN,KAAK,CAAC;MACJ,MAAM,IAAIK,UAAU,CAAC,iBAAiBL,KAAK,EAAE,CAAC;IAEhD,KAAK,CAAC;MACJ,OAAO,UAASM,CAAC,EAAEC,CAAC;QAClB,IAAIL,SAAS,CAACM,MAAM,IAAI,CAAC,EAAE;UACzB,OAAOP,IAAI,CAACK,CAAC,EAAEC,CAAC,CAAC;QACnB;QACA,OAAO,UAASH,IAAS;UACvB,OAAOH,IAAI,CAACG,IAAI,EAAEE,CAAC,CAAC;QACtB,CAAC;MACH,CAAC;IAEH,KAAK,CAAC;M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D,EAAG,CAACD,EAAG,CAACD,EAAG,CAACR,EAAG,CAACD,EAAE,CAACtB,KAAK,CAAC,IAAI,EAAED,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;MACrE,CAAC;IACH,KAAK,CAAC;MACJ,OAAO;QACL,OAAOsC,EAAG,CAACD,EAAG,CAACD,EAAG,CAACD,EAAG,CAACD,EAAG,CAACD,EAAG,CAACD,EAAG,CAACR,EAAG,CAACD,EAAE,CAACtB,KAAK,CAAC,IAAI,EAAED,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;MAC1E,CAAC;EACL;EACA;AACF;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BA,OAAO,MAAMuC,IAAI,gBAAe5B,IAAI,CAACc,MAAM,CAAC;AAE5C;;;;;;;;;;;;;;;;;;;;;AAqBA,OAAO,MAAMe,EAAE,GAAGA,CAAOd,CAAI,EAAErB,CAAI,KAAQA,CAAC;AAE5C;;;;;;;;;;;;;;;;;;;;;;;;AAwBA,OAAM,SAAUoC,OAAOA,CAAsBpB,CAAc;EACzD,MAAMqB,KAAK,GAAG,IAAIC,OAAO,EAAa;EACtC,OAAQvC,CAAC,IAAI;IACX,IAAIsC,KAAK,CAACE,GAAG,CAACxC,CAAC,CAAC,EAAE;MAChB,OAAOsC,KAAK,CAACG,GAAG,CAACzC,CAAC,CAAE;IACtB;IACA,MAAM0C,MAAM,GAAGzB,CAAC,CAACjB,CAAC,CAAC;IACnBsC,KAAK,CAACK,GAAG,CAAC3C,CAAC,EAAE0C,MAAM,CAAC;IACpB,OAAOA,MAAM;EACf,CAAC;AACH","ignoreList":[]} \ No newline at end of file diff --git a/.opencode/node_modules/effect/dist/Graph.d.ts b/.opencode/node_modules/effect/dist/Graph.d.ts index 4de963300e2f84318133546a5d0e78baa2272a2b..c0f337505b02b5b4e3546214af37519670925fdf 100644 --- a/.opencode/node_modules/effect/dist/Graph.d.ts +++ b/.opencode/node_modules/effect/dist/Graph.d.ts @@ -1,4 +1,11 @@ /** + * Models relationships between indexed nodes and edges. + * + * This module provides immutable and scoped-mutable graph data structures. A + * graph can be directed or undirected, and it can store user-defined data on + * both nodes and edges. The module includes traversal, analysis, path-finding, + * transformation, and diagram export utilities. + * * @since 4.0.0 */ import * as Data from "./Data.ts"; @@ -10,22 +17,63 @@ declare const TypeId = "~effect/collections/Graph"; /** * Node index for node identification using plain numbers. * - * @since 4.0.0 + * **When to use** + * + * Use when storing or passing the stable identifier of a graph node between + * `Graph` operations. + * + * **Details** + * + * `addNode` allocates node identifiers from the graph's next node index. + * + * **Gotchas** + * + * A `NodeIndex` is an identifier, not an array offset. Removed node identifiers + * are not reused. + * + * @see {@link EdgeIndex} for edge identifiers instead of node identifiers + * @see {@link addNode} for creating node identifiers + * * @category models + * @since 3.18.0 */ export type NodeIndex = number; /** * Edge index for edge identification using plain numbers. * - * @since 4.0.0 + * **When to use** + * + * Use when you need to keep the identifier for a graph edge so you can later + * read, update, remove, or compare that edge. + * + * **Gotchas** + * + * An `EdgeIndex` is an identifier, not an array offset. Removed edge + * identifiers are not reused. + * + * @see {@link NodeIndex} for node identifiers instead of edge identifiers + * @see {@link Edge} for the edge value addressed by this identifier + * @see {@link addEdge} for creating edge identifiers + * @see {@link getEdge} for reading edges by identifier + * * @category models + * @since 3.18.0 */ export type EdgeIndex = number; /** - * Edge data containing source, target, and user data. + * Represents edge data containing source, target, and user data. + * + * **When to use** + * + * Use as the graph edge value that carries source node, target node, and stored + * edge data together. + * + * @see {@link getEdge} for reading a single edge by identifier + * @see {@link addEdge} for adding edges to a graph + * @see {@link edges} for iterating graph edges * - * @since 4.0.0 * @category models + * @since 3.18.0 */ export declare class Edge extends Data.Class<{ readonly source: NodeIndex; @@ -36,15 +84,28 @@ export declare class Edge extends Data.Class<{ /** * Graph type for distinguishing directed and undirected graphs. * - * @since 4.0.0 + * **When to use** + * + * Use when writing graph-polymorphic types or helpers that need to preserve + * whether a graph is directed or undirected. + * + * @see {@link Graph} for immutable graphs parameterized by kind + * @see {@link MutableGraph} for mutable graphs parameterized by kind + * * @category models + * @since 3.18.0 */ export type Kind = "directed" | "undirected"; /** - * Graph prototype interface. + * Common structural interface shared by immutable and mutable graphs. + * + * **Details** + * + * Contains the node and edge maps, adjacency indexes, allocation counters, and + * shared protocols used by both `Graph` and `MutableGraph`. * - * @since 4.0.0 * @category models + * @since 3.18.0 */ export interface Proto extends Iterable, Equal.Equal, Pipeable, Inspectable { readonly [TypeId]: typeof TypeId; @@ -59,8 +120,17 @@ export interface Proto extends Iterable, /** * Immutable graph interface. * - * @since 4.0.0 + * **When to use** + * + * Use as the immutable graph model for code that queries, traverses, + * transforms, or analyzes graph structure without mutating it. + * + * @see {@link MutableGraph} for the mutable counterpart used inside mutation scopes + * @see {@link DirectedGraph} for a `Graph` fixed to directed edges + * @see {@link UndirectedGraph} for a `Graph` fixed to undirected edges + * * @category models + * @since 3.18.0 */ export interface Graph extends Proto { readonly type: T; @@ -69,61 +139,139 @@ export interface Graph extends Proto< /** * Mutable graph interface. * - * @since 4.0.0 + * **When to use** + * + * Use when adding, removing, or updating nodes and edges inside a graph + * mutation scope. + * + * @see {@link Graph} for the immutable graph interface + * @see {@link mutate} for scoped mutation of an immutable graph + * @see {@link beginMutation} for opening a mutable graph manually + * @see {@link endMutation} for returning to an immutable graph + * * @category models + * @since 3.18.0 */ export interface MutableGraph extends Proto { readonly type: T; readonly mutable: true; } /** - * Directed graph type alias. + * Immutable graph type for source-to-target relationships. + * + * **When to use** + * + * Use as the immutable graph type when edge direction is part of the model and + * traversal or neighbor queries should follow source-to-target edges. + * + * **Details** + * + * `DirectedGraph` is a `Graph` with node data of type + * `N` and edge data of type `E`. + * + * @see {@link directed} for constructing directed graphs + * @see {@link Graph} for the generic immutable graph type + * @see {@link UndirectedGraph} for graphs whose edges connect both endpoints + * @see {@link MutableDirectedGraph} for the mutable directed graph type * - * @since 4.0.0 * @category models + * @since 3.18.0 */ export type DirectedGraph = Graph; /** - * Undirected graph type alias. + * Immutable graph type for relationships without source-to-target direction. + * + * **When to use** + * + * Use when modeling relationships where each edge connects both endpoints + * without a source-to-target direction. + * + * **Details** + * + * `UndirectedGraph` is a `Graph`. + * + * @see {@link undirected} for constructing undirected graphs + * @see {@link DirectedGraph} for graphs whose edges have source-to-target direction + * @see {@link MutableUndirectedGraph} for the mutable undirected graph type * - * @since 4.0.0 * @category models + * @since 3.18.0 */ export type UndirectedGraph = Graph; /** * Mutable directed graph type alias. * - * @since 4.0.0 + * **When to use** + * + * Use when annotating a temporary graph value that can be changed in place and + * whose edges have source-to-target direction. + * + * @see {@link MutableGraph} for the generic mutable graph type + * @see {@link DirectedGraph} for the immutable directed graph type + * @see {@link MutableUndirectedGraph} for mutable graphs without edge direction + * * @category models + * @since 3.18.0 */ export type MutableDirectedGraph = MutableGraph; /** * Mutable undirected graph type alias. * - * @since 4.0.0 + * **When to use** + * + * Use when annotating a temporary graph value that can be changed in place and + * whose edges connect both endpoints without direction. + * + * @see {@link MutableDirectedGraph} for mutable graphs with directed edges + * @see {@link UndirectedGraph} for the immutable undirected graph type + * @see {@link MutableGraph} for the generic mutable graph type + * * @category models + * @since 3.18.0 */ export type MutableUndirectedGraph = MutableGraph; declare const GraphError_base: new = {}>(args: import("./Types.ts").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("./Cause.ts").YieldableError & { readonly _tag: "GraphError"; } & Readonly; /** - * @since 4.0.0 + * Error thrown by graph operations when the requested graph structure is + * invalid, such as referencing a missing node or using unsupported edge + * weights. + * + * **When to use** + * + * Use when handling failures thrown by graph operations that reject invalid + * graph structure or unsupported algorithm inputs. + * * @category errors + * @since 3.18.0 */ export declare class GraphError extends GraphError_base<{ readonly message: string; }> { } /** + * Returns `true` if a value has the graph runtime type identifier, narrowing + * it to a `Graph`. + * + * **When to use** + * + * Use to narrow an unknown value before treating it as a graph value. + * + * **Gotchas** + * + * This guard checks the shared graph runtime type identifier and does not + * distinguish immutable graphs from mutable graphs. + * + * @category guards * @since 4.0.0 - * @category Guards */ export declare const isGraph: (u: unknown) => u is Graph; /** * Creates a directed graph, optionally with initial mutations. * - * @example + * **Example** (Creating a directed graph) + * * ```ts * import { Graph } from "effect" * @@ -137,14 +285,15 @@ export declare const isGraph: (u: unknown) => u is Graph; * }) * ``` * - * @since 4.0.0 * @category constructors + * @since 3.18.0 */ export declare const directed: (mutate?: (mutable: MutableDirectedGraph) => void) => DirectedGraph; /** * Creates an undirected graph, optionally with initial mutations. * - * @example + * **Example** (Creating an undirected graph) + * * ```ts * import { Graph } from "effect" * @@ -158,14 +307,15 @@ export declare const directed: (mutate?: (mutable: MutableDirectedGraph(mutate?: (mutable: MutableUndirectedGraph) => void) => UndirectedGraph; /** * Creates a mutable scope for safe graph mutations by copying the data structure. * - * @example + * **Example** (Beginning a mutation scope) + * * ```ts * import { Graph } from "effect" * @@ -174,14 +324,15 @@ export declare const undirected: (mutate?: (mutable: MutableUndirectedGrap * // Now mutable can be safely modified without affecting original graph * ``` * - * @since 4.0.0 * @category mutations + * @since 3.18.0 */ export declare const beginMutation: (graph: Graph) => MutableGraph; /** * Converts a mutable graph back to an immutable graph, ending the mutation scope. * - * @example + * **Example** (Ending a mutation scope) + * * ```ts * import { Graph } from "effect" * @@ -191,69 +342,100 @@ export declare const beginMutation: (graph: G * const newGraph = Graph.endMutation(mutable) * ``` * - * @since 4.0.0 * @category mutations + * @since 3.18.0 */ export declare const endMutation: (mutable: MutableGraph) => Graph; /** * Performs scoped mutations on a graph, automatically managing the mutation lifecycle. * - * @example + * **Example** (Applying scoped mutations) + * * ```ts * import { Graph } from "effect" * * const graph = Graph.directed() * const newGraph = Graph.mutate(graph, (mutable) => { - * // Safe mutations go here - * // mutable gets automatically converted back to immutable + * const nodeA = Graph.addNode(mutable, "A") + * const nodeB = Graph.addNode(mutable, "B") + * Graph.addEdge(mutable, nodeA, nodeB, 1) * }) + * + * console.log(Graph.nodeCount(newGraph)) // 2 + * console.log(Graph.edgeCount(newGraph)) // 1 * ``` * - * @since 4.0.0 * @category mutations + * @since 3.18.0 */ export declare const mutate: { /** * Performs scoped mutations on a graph, automatically managing the mutation lifecycle. * - * @example + * **Example** (Applying scoped mutations) + * * ```ts * import { Graph } from "effect" * * const graph = Graph.directed() * const newGraph = Graph.mutate(graph, (mutable) => { - * // Safe mutations go here - * // mutable gets automatically converted back to immutable + * const nodeA = Graph.addNode(mutable, "A") + * const nodeB = Graph.addNode(mutable, "B") + * Graph.addEdge(mutable, nodeA, nodeB, 1) * }) + * + * console.log(Graph.nodeCount(newGraph)) // 2 + * console.log(Graph.edgeCount(newGraph)) // 1 * ``` * - * @since 4.0.0 * @category mutations + * @since 3.18.0 */ (f: (mutable: MutableGraph) => void): (graph: Graph) => Graph; /** * Performs scoped mutations on a graph, automatically managing the mutation lifecycle. * - * @example + * **Example** (Applying scoped mutations) + * * ```ts * import { Graph } from "effect" * * const graph = Graph.directed() * const newGraph = Graph.mutate(graph, (mutable) => { - * // Safe mutations go here - * // mutable gets automatically converted back to immutable + * const nodeA = Graph.addNode(mutable, "A") + * const nodeB = Graph.addNode(mutable, "B") + * Graph.addEdge(mutable, nodeA, nodeB, 1) * }) + * + * console.log(Graph.nodeCount(newGraph)) // 2 + * console.log(Graph.edgeCount(newGraph)) // 1 * ``` * - * @since 4.0.0 * @category mutations + * @since 3.18.0 */ (graph: Graph, f: (mutable: MutableGraph) => void): Graph; }; /** * Adds a new node to a mutable graph and returns its index. * - * @example + * **When to use** + * + * Use to allocate a new node in a mutable graph before storing edges or + * querying it by index. + * + * **Details** + * + * The returned index is allocated from the graph's next node index. The mutable + * graph stores the node data and initializes empty incoming and outgoing edge + * indexes for the new node. + * + * **Gotchas** + * + * `NodeIndex` values are identifiers and are not reused after removals. + * + * **Example** (Adding nodes) + * * ```ts * import { Graph } from "effect" * @@ -265,17 +447,21 @@ export declare const mutate: { * }) * ``` * - * @since 4.0.0 + * @see {@link mutate} for obtaining a mutable graph from an immutable graph + * @see {@link addEdge} for connecting existing nodes + * @see {@link removeNode} for removing nodes from a mutable graph + * * @category mutations + * @since 3.18.0 */ export declare const addNode: (mutable: MutableGraph, data: N) => NodeIndex; /** - * Gets the data associated with a node index, if it exists. + * Gets the data associated with a node index safely, if it exists. + * + * **Example** (Getting node data) * - * @example * ```ts - * import { Graph } from "effect" - * import * as Option from "effect/Option" + * import { Graph, Option } from "effect" * * const graph = Graph.mutate(Graph.directed(), (mutable) => { * Graph.addNode(mutable, "Node A") @@ -289,17 +475,17 @@ export declare const addNode: (mutable: Mutab * } * ``` * - * @since 4.0.0 * @category getters + * @since 3.18.0 */ export declare const getNode: { /** - * Gets the data associated with a node index, if it exists. + * Gets the data associated with a node index safely, if it exists. + * + * **Example** (Getting node data) * - * @example * ```ts - * import { Graph } from "effect" - * import * as Option from "effect/Option" + * import { Graph, Option } from "effect" * * const graph = Graph.mutate(Graph.directed(), (mutable) => { * Graph.addNode(mutable, "Node A") @@ -313,17 +499,17 @@ export declare const getNode: { * } * ``` * - * @since 4.0.0 * @category getters + * @since 3.18.0 */ (nodeIndex: NodeIndex): (graph: Graph | MutableGraph) => Option.Option; /** - * Gets the data associated with a node index, if it exists. + * Gets the data associated with a node index safely, if it exists. + * + * **Example** (Getting node data) * - * @example * ```ts - * import { Graph } from "effect" - * import * as Option from "effect/Option" + * import { Graph, Option } from "effect" * * const graph = Graph.mutate(Graph.directed(), (mutable) => { * Graph.addNode(mutable, "Node A") @@ -337,15 +523,16 @@ export declare const getNode: { * } * ``` * - * @since 4.0.0 * @category getters + * @since 3.18.0 */ (graph: Graph | MutableGraph, nodeIndex: NodeIndex): Option.Option; }; /** - * Checks if a node with the given index exists in the graph. + * Checks whether a node with the given index exists in the graph. + * + * **Example** (Checking node existence) * - * @example * ```ts * import { Graph } from "effect" * @@ -362,14 +549,15 @@ export declare const getNode: { * console.log(notExists) // false * ``` * - * @since 4.0.0 * @category getters + * @since 3.18.0 */ export declare const hasNode: { /** - * Checks if a node with the given index exists in the graph. + * Checks whether a node with the given index exists in the graph. + * + * **Example** (Checking node existence) * - * @example * ```ts * import { Graph } from "effect" * @@ -386,14 +574,15 @@ export declare const hasNode: { * console.log(notExists) // false * ``` * - * @since 4.0.0 * @category getters + * @since 3.18.0 */ (nodeIndex: NodeIndex): (graph: Graph | MutableGraph) => boolean; /** - * Checks if a node with the given index exists in the graph. + * Checks whether a node with the given index exists in the graph. + * + * **Example** (Checking node existence) * - * @example * ```ts * import { Graph } from "effect" * @@ -410,15 +599,16 @@ export declare const hasNode: { * console.log(notExists) // false * ``` * - * @since 4.0.0 * @category getters + * @since 3.18.0 */ (graph: Graph | MutableGraph, nodeIndex: NodeIndex): boolean; }; /** * Returns the number of nodes in the graph. * - * @example + * **Example** (Counting nodes) + * * ```ts * import { Graph } from "effect" * @@ -434,14 +624,15 @@ export declare const hasNode: { * console.log(Graph.nodeCount(graphWithNodes)) // 3 * ``` * - * @since 4.0.0 * @category getters + * @since 3.18.0 */ export declare const nodeCount: (graph: Graph | MutableGraph) => number; /** * Finds the first node that matches the given predicate. * - * @example + * **Example** (Finding the first matching node) + * * ```ts * import { Graph } from "effect" * @@ -458,14 +649,15 @@ export declare const nodeCount: (graph: Graph * console.log(notFound) // Option.none() * ``` * - * @since 4.0.0 * @category getters + * @since 3.18.0 */ export declare const findNode: { /** * Finds the first node that matches the given predicate. * - * @example + * **Example** (Finding the first matching node) + * * ```ts * import { Graph } from "effect" * @@ -482,14 +674,15 @@ export declare const findNode: { * console.log(notFound) // Option.none() * ``` * - * @since 4.0.0 * @category getters + * @since 3.18.0 */ (predicate: (data: N) => boolean): (graph: Graph | MutableGraph) => Option.Option; /** * Finds the first node that matches the given predicate. * - * @example + * **Example** (Finding the first matching node) + * * ```ts * import { Graph } from "effect" * @@ -506,15 +699,16 @@ export declare const findNode: { * console.log(notFound) // Option.none() * ``` * - * @since 4.0.0 * @category getters + * @since 3.18.0 */ (graph: Graph | MutableGraph, predicate: (data: N) => boolean): Option.Option; }; /** * Finds all nodes that match the given predicate. * - * @example + * **Example** (Finding matching nodes) + * * ```ts * import { Graph } from "effect" * @@ -531,14 +725,15 @@ export declare const findNode: { * console.log(empty) // [] * ``` * - * @since 4.0.0 * @category getters + * @since 3.18.0 */ export declare const findNodes: { /** * Finds all nodes that match the given predicate. * - * @example + * **Example** (Finding matching nodes) + * * ```ts * import { Graph } from "effect" * @@ -555,14 +750,15 @@ export declare const findNodes: { * console.log(empty) // [] * ``` * - * @since 4.0.0 * @category getters + * @since 3.18.0 */ (predicate: (data: N) => boolean): (graph: Graph | MutableGraph) => Array; /** * Finds all nodes that match the given predicate. * - * @example + * **Example** (Finding matching nodes) + * * ```ts * import { Graph } from "effect" * @@ -579,15 +775,16 @@ export declare const findNodes: { * console.log(empty) // [] * ``` * - * @since 4.0.0 * @category getters + * @since 3.18.0 */ (graph: Graph | MutableGraph, predicate: (data: N) => boolean): Array; }; /** * Finds the first edge that matches the given predicate. * - * @example + * **Example** (Finding the first matching edge) + * * ```ts * import { Graph } from "effect" * @@ -606,14 +803,15 @@ export declare const findNodes: { * console.log(notFound) // Option.none() * ``` * - * @since 4.0.0 * @category getters + * @since 3.18.0 */ export declare const findEdge: { /** * Finds the first edge that matches the given predicate. * - * @example + * **Example** (Finding the first matching edge) + * * ```ts * import { Graph } from "effect" * @@ -632,14 +830,15 @@ export declare const findEdge: { * console.log(notFound) // Option.none() * ``` * - * @since 4.0.0 * @category getters + * @since 3.18.0 */ (predicate: (data: E, source: NodeIndex, target: NodeIndex) => boolean): (graph: Graph | MutableGraph) => Option.Option; /** * Finds the first edge that matches the given predicate. * - * @example + * **Example** (Finding the first matching edge) + * * ```ts * import { Graph } from "effect" * @@ -658,15 +857,16 @@ export declare const findEdge: { * console.log(notFound) // Option.none() * ``` * - * @since 4.0.0 * @category getters + * @since 3.18.0 */ (graph: Graph | MutableGraph, predicate: (data: E, source: NodeIndex, target: NodeIndex) => boolean): Option.Option; }; /** * Finds all edges that match the given predicate. * - * @example + * **Example** (Finding matching edges) + * * ```ts * import { Graph } from "effect" * @@ -686,14 +886,15 @@ export declare const findEdge: { * console.log(empty) // [] * ``` * - * @since 4.0.0 * @category getters + * @since 3.18.0 */ export declare const findEdges: { /** * Finds all edges that match the given predicate. * - * @example + * **Example** (Finding matching edges) + * * ```ts * import { Graph } from "effect" * @@ -713,14 +914,15 @@ export declare const findEdges: { * console.log(empty) // [] * ``` * - * @since 4.0.0 * @category getters + * @since 3.18.0 */ (predicate: (data: E, source: NodeIndex, target: NodeIndex) => boolean): (graph: Graph | MutableGraph) => Array; /** * Finds all edges that match the given predicate. * - * @example + * **Example** (Finding matching edges) + * * ```ts * import { Graph } from "effect" * @@ -740,15 +942,16 @@ export declare const findEdges: { * console.log(empty) // [] * ``` * - * @since 4.0.0 * @category getters + * @since 3.18.0 */ (graph: Graph | MutableGraph, predicate: (data: E, source: NodeIndex, target: NodeIndex) => boolean): Array; }; /** * Updates a single node's data by applying a transformation function. * - * @example + * **Example** (Updating node data) + * * ```ts * import { Graph } from "effect" * @@ -762,14 +965,15 @@ export declare const findEdges: { * console.log(nodeData) // Option.some("NODE A") * ``` * - * @since 4.0.0 - * @category transformations + * @category transforming + * @since 3.18.0 */ export declare const updateNode: (mutable: MutableGraph, index: NodeIndex, f: (data: N) => N) => void; /** * Updates a single edge's data by applying a transformation function. * - * @example + * **Example** (Updating edge data) + * * ```ts * import { Graph } from "effect" * @@ -781,17 +985,23 @@ export declare const updateNode: (mutable: Mu * }) * * const edgeData = Graph.getEdge(result, 0) - * console.log(edgeData) // new Graph.Edge({ source: 0, target: 1, data: 20 }) + * console.log(edgeData) // Option.some(new Graph.Edge({ source: 0, target: 1, data: 20 })) * ``` * - * @since 4.0.0 * @category mutations + * @since 3.18.0 */ export declare const updateEdge: (mutable: MutableGraph, edgeIndex: EdgeIndex, f: (data: E) => E) => void; /** - * Creates a new graph with transformed node data using the provided mapping function. + * Transforms every node's data in a mutable graph in place using the provided + * mapping function. + * + * **Details** + * + * Node indices and edges are preserved; only the stored node data is replaced. + * + * **Example** (Mapping node data) * - * @example * ```ts * import { Graph } from "effect" * @@ -803,17 +1013,18 @@ export declare const updateEdge: (mutable: Mu * }) * * const nodeData = Graph.getNode(graph, 0) - * console.log(nodeData) // new Graph.Node("NODE A") + * console.log(nodeData) // Option.some("NODE A") * ``` * - * @since 4.0.0 - * @category transformations + * @category transforming + * @since 3.18.0 */ export declare const mapNodes: (mutable: MutableGraph, f: (data: N) => N) => void; /** * Transforms all edge data in a mutable graph using the provided mapping function. * - * @example + * **Example** (Mapping edge data) + * * ```ts * import { Graph } from "effect" * @@ -827,17 +1038,18 @@ export declare const mapNodes: (mutable: Muta * }) * * const edgeData = Graph.getEdge(graph, 0) - * console.log(edgeData) // new Graph.Edge({ source: 0, target: 1, data: 20 }) + * console.log(edgeData) // Option.some(new Graph.Edge({ source: 0, target: 1, data: 20 })) * ``` * - * @since 4.0.0 - * @category transformations + * @category transforming + * @since 3.18.0 */ export declare const mapEdges: (mutable: MutableGraph, f: (data: E) => E) => void; /** - * Reverses all edge directions in a mutable graph by swapping source and target nodes. + * Swaps source and target nodes for every edge in a mutable graph. + * + * **Example** (Reversing edge directions) * - * @example * ```ts * import { Graph } from "effect" * @@ -851,21 +1063,21 @@ export declare const mapEdges: (mutable: Muta * }) * * const edge0 = Graph.getEdge(graph, 0) - * console.log(edge0) // new Graph.Edge({ source: 1, target: 0, data: 1 }) - B -> A + * console.log(edge0) // Option.some(new Graph.Edge({ source: 1, target: 0, data: 1 })) * ``` * - * @since 4.0.0 - * @category transformations + * @category transforming + * @since 3.18.0 */ export declare const reverse: (mutable: MutableGraph) => void; /** * Filters and optionally transforms nodes in a mutable graph using a predicate function. * Nodes that return Option.none are removed along with all their connected edges. * - * @example + * **Example** (Filtering and mapping nodes) + * * ```ts - * import { Graph } from "effect" - * import * as Option from "effect/Option" + * import { Graph, Option } from "effect" * * const graph = Graph.directed((mutable) => { * const a = Graph.addNode(mutable, "active") @@ -885,18 +1097,18 @@ export declare const reverse: (mutable: Mutab * console.log(Graph.nodeCount(graph)) // 2 (only "active" nodes remain) * ``` * - * @since 4.0.0 - * @category transformations + * @category transforming + * @since 3.18.0 */ export declare const filterMapNodes: (mutable: MutableGraph, f: (data: N) => Option.Option) => void; /** * Filters and optionally transforms edges in a mutable graph using a predicate function. * Edges that return Option.none are removed from the graph. * - * @example + * **Example** (Filtering and mapping edges) + * * ```ts - * import { Graph } from "effect" - * import * as Option from "effect/Option" + * import { Graph, Option } from "effect" * * const graph = Graph.directed((mutable) => { * const a = Graph.addNode(mutable, "A") @@ -916,15 +1128,16 @@ export declare const filterMapNodes: (mutable * console.log(Graph.edgeCount(graph)) // 2 (edges with weight 5 removed) * ``` * - * @since 4.0.0 - * @category transformations + * @category transforming + * @since 3.18.0 */ export declare const filterMapEdges: (mutable: MutableGraph, f: (data: E) => Option.Option) => void; /** * Filters nodes by removing those that don't match the predicate. * This function modifies the mutable graph in place. * - * @example + * **Example** (Filtering nodes) + * * ```ts * import { Graph } from "effect" * @@ -941,15 +1154,16 @@ export declare const filterMapEdges: (mutable * console.log(Graph.nodeCount(graph)) // 2 (only "active" nodes remain) * ``` * - * @since 4.0.0 - * @category transformations + * @category transforming + * @since 3.18.0 */ export declare const filterNodes: (mutable: MutableGraph, predicate: (data: N) => boolean) => void; /** * Filters edges by removing those that don't match the predicate. * This function modifies the mutable graph in place. * - * @example + * **Example** (Filtering edges) + * * ```ts * import { Graph } from "effect" * @@ -969,14 +1183,31 @@ export declare const filterNodes: (mutable: M * console.log(Graph.edgeCount(graph)) // 2 (edge with weight 5 removed) * ``` * - * @since 4.0.0 - * @category transformations + * @category transforming + * @since 3.18.0 */ export declare const filterEdges: (mutable: MutableGraph, predicate: (data: E) => boolean) => void; /** * Adds a new edge to a mutable graph and returns its index. * - * @example + * **When to use** + * + * Use to connect two existing nodes in a mutable graph while storing edge data + * and receiving the new edge identifier. + * + * **Details** + * + * Creates an `Edge` with the source, target, and data at the next edge index, + * updates adjacency indexes, and increments the graph's next edge index. + * Undirected graphs register the same edge for both endpoints. + * + * **Gotchas** + * + * The source and target nodes must already exist in the mutable graph; missing + * endpoints throw a `GraphError`. + * + * **Example** (Adding edges) + * * ```ts * import { Graph } from "effect" * @@ -988,14 +1219,20 @@ export declare const filterEdges: (mutable: M * }) * ``` * - * @since 4.0.0 + * @see {@link mutate} for obtaining a mutable graph from an immutable graph + * @see {@link addNode} for creating node indexes before connecting them + * @see {@link getEdge} for reading the returned edge + * @see {@link removeEdge} for removing an edge from a mutable graph + * * @category mutations + * @since 3.18.0 */ export declare const addEdge: (mutable: MutableGraph, source: NodeIndex, target: NodeIndex, data: E) => EdgeIndex; /** * Removes a node and all its incident edges from a mutable graph. * - * @example + * **Example** (Removing a node) + * * ```ts * import { Graph } from "effect" * @@ -1009,14 +1246,15 @@ export declare const addEdge: (mutable: Mutab * }) * ``` * - * @since 4.0.0 * @category mutations + * @since 3.18.0 */ export declare const removeNode: (mutable: MutableGraph, nodeIndex: NodeIndex) => void; /** * Removes an edge from a mutable graph. * - * @example + * **Example** (Removing an edge) + * * ```ts * import { Graph } from "effect" * @@ -1030,14 +1268,15 @@ export declare const removeNode: (mutable: Mu * }) * ``` * - * @since 4.0.0 * @category mutations + * @since 3.18.0 */ export declare const removeEdge: (mutable: MutableGraph, edgeIndex: EdgeIndex) => void; /** - * Gets the edge data associated with an edge index, if it exists. + * Gets the edge data associated with an edge index safely, if it exists. + * + * **Example** (Getting edge data) * - * @example * ```ts * import { Graph } from "effect" * @@ -1052,19 +1291,20 @@ export declare const removeEdge: (mutable: Mu * * if (edgeData._tag === "Some") { * console.log(edgeData.value.data) // 42 - * console.log(edgeData.value.source) // NodeIndex(0) - * console.log(edgeData.value.target) // NodeIndex(1) + * console.log(edgeData.value.source) // 0 + * console.log(edgeData.value.target) // 1 * } * ``` * - * @since 4.0.0 * @category getters + * @since 3.18.0 */ export declare const getEdge: { /** - * Gets the edge data associated with an edge index, if it exists. + * Gets the edge data associated with an edge index safely, if it exists. + * + * **Example** (Getting edge data) * - * @example * ```ts * import { Graph } from "effect" * @@ -1079,19 +1319,20 @@ export declare const getEdge: { * * if (edgeData._tag === "Some") { * console.log(edgeData.value.data) // 42 - * console.log(edgeData.value.source) // NodeIndex(0) - * console.log(edgeData.value.target) // NodeIndex(1) + * console.log(edgeData.value.source) // 0 + * console.log(edgeData.value.target) // 1 * } * ``` * - * @since 4.0.0 * @category getters + * @since 3.18.0 */ (edgeIndex: EdgeIndex): (graph: Graph | MutableGraph) => Option.Option>; /** - * Gets the edge data associated with an edge index, if it exists. + * Gets the edge data associated with an edge index safely, if it exists. + * + * **Example** (Getting edge data) * - * @example * ```ts * import { Graph } from "effect" * @@ -1106,20 +1347,21 @@ export declare const getEdge: { * * if (edgeData._tag === "Some") { * console.log(edgeData.value.data) // 42 - * console.log(edgeData.value.source) // NodeIndex(0) - * console.log(edgeData.value.target) // NodeIndex(1) + * console.log(edgeData.value.source) // 0 + * console.log(edgeData.value.target) // 1 * } * ``` * - * @since 4.0.0 * @category getters + * @since 3.18.0 */ (graph: Graph | MutableGraph, edgeIndex: EdgeIndex): Option.Option>; }; /** - * Checks if an edge exists between two nodes in the graph. + * Checks whether an edge exists between two nodes in the graph. + * + * **Example** (Checking edge existence) * - * @example * ```ts * import { Graph } from "effect" * @@ -1141,14 +1383,15 @@ export declare const getEdge: { * console.log(hasAC) // false * ``` * - * @since 4.0.0 * @category getters + * @since 3.18.0 */ export declare const hasEdge: { /** - * Checks if an edge exists between two nodes in the graph. + * Checks whether an edge exists between two nodes in the graph. + * + * **Example** (Checking edge existence) * - * @example * ```ts * import { Graph } from "effect" * @@ -1170,14 +1413,15 @@ export declare const hasEdge: { * console.log(hasAC) // false * ``` * - * @since 4.0.0 * @category getters + * @since 3.18.0 */ (source: NodeIndex, target: NodeIndex): (graph: Graph | MutableGraph) => boolean; /** - * Checks if an edge exists between two nodes in the graph. + * Checks whether an edge exists between two nodes in the graph. + * + * **Example** (Checking edge existence) * - * @example * ```ts * import { Graph } from "effect" * @@ -1199,15 +1443,16 @@ export declare const hasEdge: { * console.log(hasAC) // false * ``` * - * @since 4.0.0 * @category getters + * @since 3.18.0 */ (graph: Graph | MutableGraph, source: NodeIndex, target: NodeIndex): boolean; }; /** * Returns the number of edges in the graph. * - * @example + * **Example** (Counting edges) + * * ```ts * import { Graph } from "effect" * @@ -1226,14 +1471,20 @@ export declare const hasEdge: { * console.log(Graph.edgeCount(graphWithEdges)) // 3 * ``` * - * @since 4.0.0 * @category getters + * @since 3.18.0 */ export declare const edgeCount: (graph: Graph | MutableGraph) => number; /** - * Returns the neighboring nodes (targets of outgoing edges) for a given node. + * Returns the neighboring node indices for a node. + * + * **Details** + * + * For directed graphs, neighbors are the targets of outgoing edges. For + * undirected graphs, neighbors are the other endpoints of incident edges. + * + * **Example** (Getting outgoing neighbors) * - * @example * ```ts * import { Graph } from "effect" * @@ -1250,20 +1501,26 @@ export declare const edgeCount: (graph: Graph * const nodeC = 2 * * const neighborsA = Graph.neighbors(graph, nodeA) - * console.log(neighborsA) // [NodeIndex(1), NodeIndex(2)] + * console.log(neighborsA) // [1, 2] * * const neighborsB = Graph.neighbors(graph, nodeB) * console.log(neighborsB) // [] * ``` * - * @since 4.0.0 * @category getters + * @since 3.18.0 */ export declare const neighbors: { /** - * Returns the neighboring nodes (targets of outgoing edges) for a given node. + * Returns the neighboring node indices for a node. + * + * **Details** + * + * For directed graphs, neighbors are the targets of outgoing edges. For + * undirected graphs, neighbors are the other endpoints of incident edges. + * + * **Example** (Getting outgoing neighbors) * - * @example * ```ts * import { Graph } from "effect" * @@ -1280,20 +1537,26 @@ export declare const neighbors: { * const nodeC = 2 * * const neighborsA = Graph.neighbors(graph, nodeA) - * console.log(neighborsA) // [NodeIndex(1), NodeIndex(2)] + * console.log(neighborsA) // [1, 2] * * const neighborsB = Graph.neighbors(graph, nodeB) * console.log(neighborsB) // [] * ``` * - * @since 4.0.0 * @category getters + * @since 3.18.0 */ (nodeIndex: NodeIndex): (graph: Graph | MutableGraph) => Array; /** - * Returns the neighboring nodes (targets of outgoing edges) for a given node. + * Returns the neighboring node indices for a node. + * + * **Details** + * + * For directed graphs, neighbors are the targets of outgoing edges. For + * undirected graphs, neighbors are the other endpoints of incident edges. + * + * **Example** (Getting outgoing neighbors) * - * @example * ```ts * import { Graph } from "effect" * @@ -1310,21 +1573,147 @@ export declare const neighbors: { * const nodeC = 2 * * const neighborsA = Graph.neighbors(graph, nodeA) - * console.log(neighborsA) // [NodeIndex(1), NodeIndex(2)] + * console.log(neighborsA) // [1, 2] * * const neighborsB = Graph.neighbors(graph, nodeB) * console.log(neighborsB) // [] * ``` * - * @since 4.0.0 * @category getters + * @since 3.18.0 */ (graph: Graph | MutableGraph, nodeIndex: NodeIndex): Array; }; /** - * Get neighbors of a node in a specific direction for bidirectional traversal. + * Returns the outgoing neighbor node indices for a node in a directed graph. + * + * **When to use** + * + * Use when you need the nodes reached by following outgoing edges from a node in + * a directed graph. + * + * **Gotchas** + * + * Throws a `GraphError` when used with an undirected graph. + * + * @see {@link predecessors} for incoming neighbors in a directed graph + * @see {@link neighbors} for generic neighbor lookup across graph kinds + * + * @category queries + * @since 4.0.0 + */ +export declare const successors: { + /** + * Returns the outgoing neighbor node indices for a node in a directed graph. + * + * **When to use** + * + * Use when you need the nodes reached by following outgoing edges from a node in + * a directed graph. + * + * **Gotchas** + * + * Throws a `GraphError` when used with an undirected graph. + * + * @see {@link predecessors} for incoming neighbors in a directed graph + * @see {@link neighbors} for generic neighbor lookup across graph kinds + * + * @category queries + * @since 4.0.0 + */ + (nodeIndex: NodeIndex): (graph: Graph | MutableGraph) => Array; + /** + * Returns the outgoing neighbor node indices for a node in a directed graph. + * + * **When to use** + * + * Use when you need the nodes reached by following outgoing edges from a node in + * a directed graph. + * + * **Gotchas** + * + * Throws a `GraphError` when used with an undirected graph. + * + * @see {@link predecessors} for incoming neighbors in a directed graph + * @see {@link neighbors} for generic neighbor lookup across graph kinds + * + * @category queries + * @since 4.0.0 + */ + (graph: Graph | MutableGraph, nodeIndex: NodeIndex): Array; +}; +/** + * Returns the incoming neighbor node indices for a node in a directed graph. + * + * **When to use** + * + * Use when you need the nodes that reach a node by following incoming edges in a + * directed graph. + * + * **Gotchas** + * + * Throws a `GraphError` when used with an undirected graph. + * + * @see {@link successors} for outgoing neighbors in a directed graph + * @see {@link neighbors} for generic neighbor lookup across graph kinds + * + * @category queries + * @since 4.0.0 + */ +export declare const predecessors: { + /** + * Returns the incoming neighbor node indices for a node in a directed graph. + * + * **When to use** + * + * Use when you need the nodes that reach a node by following incoming edges in a + * directed graph. + * + * **Gotchas** + * + * Throws a `GraphError` when used with an undirected graph. + * + * @see {@link successors} for outgoing neighbors in a directed graph + * @see {@link neighbors} for generic neighbor lookup across graph kinds + * + * @category queries + * @since 4.0.0 + */ + (nodeIndex: NodeIndex): (graph: Graph | MutableGraph) => Array; + /** + * Returns the incoming neighbor node indices for a node in a directed graph. + * + * **When to use** + * + * Use when you need the nodes that reach a node by following incoming edges in a + * directed graph. + * + * **Gotchas** + * + * Throws a `GraphError` when used with an undirected graph. + * + * @see {@link successors} for outgoing neighbors in a directed graph + * @see {@link neighbors} for generic neighbor lookup across graph kinds + * + * @category queries + * @since 4.0.0 + */ + (graph: Graph | MutableGraph, nodeIndex: NodeIndex): Array; +}; +/** + * Gets directed neighbors of a node in a specific direction. + * + * **When to use** + * + * Use when maintaining existing code that already passes an explicit traversal + * direction. New code should prefer `successors` or `predecessors`. + * + * **Gotchas** + * + * Throws a `GraphError` when used with an undirected graph. + * + * **Example** (Traversing directed neighbors) * - * @example * ```ts * import { Graph } from "effect" * @@ -1344,14 +1733,27 @@ export declare const neighbors: { * const incoming = Graph.neighborsDirected(graph, nodeB, "incoming") * ``` * - * @since 4.0.0 + * @deprecated Use {@link successors} for outgoing neighbors or {@link predecessors} for incoming neighbors. + * @see {@link successors} for outgoing neighbors in a directed graph + * @see {@link predecessors} for incoming neighbors in a directed graph * @category queries + * @since 3.18.0 */ export declare const neighborsDirected: { /** - * Get neighbors of a node in a specific direction for bidirectional traversal. + * Gets directed neighbors of a node in a specific direction. + * + * **When to use** + * + * Use when maintaining existing code that already passes an explicit traversal + * direction. New code should prefer `successors` or `predecessors`. + * + * **Gotchas** + * + * Throws a `GraphError` when used with an undirected graph. + * + * **Example** (Traversing directed neighbors) * - * @example * ```ts * import { Graph } from "effect" * @@ -1371,14 +1773,27 @@ export declare const neighborsDirected: { * const incoming = Graph.neighborsDirected(graph, nodeB, "incoming") * ``` * - * @since 4.0.0 + * @deprecated Use {@link successors} for outgoing neighbors or {@link predecessors} for incoming neighbors. + * @see {@link successors} for outgoing neighbors in a directed graph + * @see {@link predecessors} for incoming neighbors in a directed graph * @category queries + * @since 3.18.0 */ - (nodeIndex: NodeIndex, direction: Direction): (graph: Graph | MutableGraph) => Array; + (nodeIndex: NodeIndex, direction: Direction): (graph: Graph | MutableGraph) => Array; /** - * Get neighbors of a node in a specific direction for bidirectional traversal. + * Gets directed neighbors of a node in a specific direction. + * + * **When to use** + * + * Use when maintaining existing code that already passes an explicit traversal + * direction. New code should prefer `successors` or `predecessors`. + * + * **Gotchas** + * + * Throws a `GraphError` when used with an undirected graph. + * + * **Example** (Traversing directed neighbors) * - * @example * ```ts * import { Graph } from "effect" * @@ -1398,20 +1813,26 @@ export declare const neighborsDirected: { * const incoming = Graph.neighborsDirected(graph, nodeB, "incoming") * ``` * - * @since 4.0.0 + * @deprecated Use {@link successors} for outgoing neighbors or {@link predecessors} for incoming neighbors. + * @see {@link successors} for outgoing neighbors in a directed graph + * @see {@link predecessors} for incoming neighbors in a directed graph * @category queries + * @since 3.18.0 */ - (graph: Graph | MutableGraph, nodeIndex: NodeIndex, direction: Direction): Array; + (graph: Graph | MutableGraph, nodeIndex: NodeIndex, direction: Direction): Array; }; /** * Configuration options for GraphViz DOT format generation from graphs. * - * Provides customization for node labels, edge labels, and graph naming - * in DOT format compatible with GraphViz tools. + * **Details** + * + * These options customize node labels, edge labels, and graph naming in DOT + * format compatible with GraphViz tools. + * + * **Example** (Configuring GraphViz labels) * - * @example * ```ts - * import type * as Graph from "effect/Graph" + * import type { Graph } from "effect" * * // Basic options with custom labels * const basicOptions: Graph.GraphVizOptions = { @@ -1427,8 +1848,8 @@ export declare const neighborsDirected: { * } * ``` * - * @since 4.0.0 - * @category models + * @category options + * @since 3.18.0 */ export interface GraphVizOptions { /** @@ -1450,7 +1871,8 @@ export interface GraphVizOptions { /** * Exports a graph to GraphViz DOT format for visualization. * - * @example + * **Example** (Exporting GraphViz DOT) + * * ```ts * import { Graph } from "effect" * @@ -1475,14 +1897,15 @@ export interface GraphVizOptions { * // } * ``` * - * @since 4.0.0 - * @category utils + * @category converting + * @since 3.18.0 */ export declare const toGraphViz: { /** * Exports a graph to GraphViz DOT format for visualization. * - * @example + * **Example** (Exporting GraphViz DOT) + * * ```ts * import { Graph } from "effect" * @@ -1507,14 +1930,15 @@ export declare const toGraphViz: { * // } * ``` * - * @since 4.0.0 - * @category utils + * @category converting + * @since 3.18.0 */ (options?: GraphVizOptions): (graph: Graph | MutableGraph) => string; /** * Exports a graph to GraphViz DOT format for visualization. * - * @example + * **Example** (Exporting GraphViz DOT) + * * ```ts * import { Graph } from "effect" * @@ -1539,14 +1963,16 @@ export declare const toGraphViz: { * // } * ``` * - * @since 4.0.0 - * @category utils + * @category converting + * @since 3.18.0 */ (graph: Graph | MutableGraph, options?: GraphVizOptions): string; }; /** * Mermaid node shape types for diagram visualization. * + * **Details** + * * Each shape produces different visual representations in Mermaid diagrams: * - `rectangle`: Standard rectangular nodes `A["label"]` * - `rounded`: Rounded rectangular nodes `A("label")` @@ -1557,9 +1983,10 @@ export declare const toGraphViz: { * - `subroutine`: Subroutine-style nodes `A[["label"]]` * - `cylindrical`: Cylindrical database-style nodes `A[("label")]` * - * @example + * **Example** (Selecting Mermaid node shapes) + * * ```ts - * import type * as Graph from "effect/Graph" + * import type { Graph } from "effect" * * // Shape selector function for different node types * const shapeSelector = (nodeData: string): Graph.MermaidNodeShape => { @@ -1575,22 +2002,25 @@ export declare const toGraphViz: { * } * ``` * - * @since 4.0.0 * @category models + * @since 3.18.0 */ export type MermaidNodeShape = "rectangle" | "rounded" | "circle" | "diamond" | "hexagon" | "stadium" | "subroutine" | "cylindrical"; /** * Mermaid diagram direction types for controlling layout orientation. * + * **Details** + * * Determines the flow direction of nodes and edges in the diagram: * - `TB`/`TD`: Top to Bottom (vertical layout, default) * - `BT`: Bottom to Top (reverse vertical) * - `LR`: Left to Right (horizontal layout) * - `RL`: Right to Left (reverse horizontal) * - * @example + * **Example** (Configuring Mermaid directions) + * * ```ts - * import type * as Graph from "effect/Graph" + * import type { Graph } from "effect" * * // Horizontal workflow diagram * const horizontalOptions: Graph.MermaidOptions = { @@ -1608,13 +2038,15 @@ export type MermaidNodeShape = "rectangle" | "rounded" | "circle" | "diamond" | * } * ``` * - * @since 4.0.0 * @category models + * @since 3.18.0 */ export type MermaidDirection = "TB" | "TD" | "BT" | "RL" | "LR"; /** * Mermaid diagram types for different visualization formats. * + * **Details** + * * Specifies the Mermaid diagram syntax to use: * - `flowchart`: For directed graphs with arrows (`A --> B`) * - `graph`: For undirected graphs with lines (`A --- B`) @@ -1622,9 +2054,10 @@ export type MermaidDirection = "TB" | "TD" | "BT" | "RL" | "LR"; * When not specified, automatically selects based on graph type: * directed graphs use "flowchart", undirected graphs use "graph". * - * @example + * **Example** (Selecting Mermaid diagram types) + * * ```ts - * import type * as Graph from "effect/Graph" + * import type { Graph } from "effect" * * // Force flowchart format (even for undirected graphs) * const flowchartOptions: Graph.MermaidOptions = { @@ -1640,25 +2073,28 @@ export type MermaidDirection = "TB" | "TD" | "BT" | "RL" | "LR"; * const autoOptions: Graph.MermaidOptions = {} * ``` * - * @since 4.0.0 * @category models + * @since 3.18.0 */ export type MermaidDiagramType = "flowchart" | "graph"; /** * Configuration options for Mermaid diagram generation, following GraphViz pattern. * - * @since 4.0.0 * @category models + * @since 4.0.0 */ /** * Configuration options for Mermaid diagram generation from graphs. * - * Provides customization for node labels, edge labels, diagram type, - * layout direction, node shapes, and graph naming in Mermaid format. + * **Details** + * + * These options customize node labels, edge labels, diagram type, layout + * direction, node shapes, and graph naming in Mermaid format. + * + * **Example** (Configuring Mermaid output) * - * @example * ```ts - * import type * as Graph from "effect/Graph" + * import type { Graph } from "effect" * * // Basic options with custom labels * const basicOptions: Graph.MermaidOptions = { @@ -1676,8 +2112,8 @@ export type MermaidDiagramType = "flowchart" | "graph"; * } * ``` * - * @since 4.0.0 - * @category models + * @category options + * @since 3.18.0 */ export interface MermaidOptions { /** @@ -1710,14 +2146,17 @@ export interface MermaidOptions { /** * Exports a graph to Mermaid diagram format for visualization. * + * **Details** + * * Mermaid is a popular diagram-as-code tool that generates flowcharts and other * visualizations from text-based definitions. This function converts Effect Graph * structures to valid Mermaid syntax for use in documentation, web applications, * and visualization tools. * - * @example + * **Example** (Exporting a directed Mermaid diagram) + * * ```ts - * import * as Graph from "effect/Graph" + * import { Graph } from "effect" * * // Basic directed graph export * const graph = Graph.directed((mutable) => { @@ -1738,9 +2177,10 @@ export interface MermaidOptions { * // 0 -->|"2"| 2 * ``` * - * @example + * **Example** (Exporting an undirected Mermaid diagram) + * * ```ts - * import * as Graph from "effect/Graph" + * import { Graph } from "effect" * * // Undirected graph with custom labels and direction * const socialGraph = Graph.undirected<{ name: string }, string>((mutable) => { @@ -1765,9 +2205,10 @@ export interface MermaidOptions { * // 1 ---|"colleagues"| 2 * ``` * - * @example + * **Example** (Customizing Mermaid node shapes) + * * ```ts - * import * as Graph from "effect/Graph" + * import { Graph } from "effect" * * // Advanced styling with node shapes for flowchart * const workflow = Graph.directed<{ type: string; name: string }, string>( @@ -1816,9 +2257,10 @@ export interface MermaidOptions { * // 2 --> 3 * ``` * - * @example + * **Example** (Visualizing dependency graphs) + * * ```ts - * import * as Graph from "effect/Graph" + * import { Graph } from "effect" * * // Real-world example: Software dependency graph * interface Dependency { @@ -1877,25 +2319,24 @@ export interface MermaidOptions { * // 0 -->|"builds with"| 3 * ``` * - * @param graph - The graph to export (directed or undirected) - * @param options - Optional configuration for the Mermaid output - * @returns Mermaid diagram syntax as a string - * - * @since 4.0.0 - * @category utils + * @category converting + * @since 3.18.0 */ export declare const toMermaid: { /** * Exports a graph to Mermaid diagram format for visualization. * + * **Details** + * * Mermaid is a popular diagram-as-code tool that generates flowcharts and other * visualizations from text-based definitions. This function converts Effect Graph * structures to valid Mermaid syntax for use in documentation, web applications, * and visualization tools. * - * @example + * **Example** (Exporting a directed Mermaid diagram) + * * ```ts - * import * as Graph from "effect/Graph" + * import { Graph } from "effect" * * // Basic directed graph export * const graph = Graph.directed((mutable) => { @@ -1916,9 +2357,10 @@ export declare const toMermaid: { * // 0 -->|"2"| 2 * ``` * - * @example + * **Example** (Exporting an undirected Mermaid diagram) + * * ```ts - * import * as Graph from "effect/Graph" + * import { Graph } from "effect" * * // Undirected graph with custom labels and direction * const socialGraph = Graph.undirected<{ name: string }, string>((mutable) => { @@ -1943,9 +2385,10 @@ export declare const toMermaid: { * // 1 ---|"colleagues"| 2 * ``` * - * @example + * **Example** (Customizing Mermaid node shapes) + * * ```ts - * import * as Graph from "effect/Graph" + * import { Graph } from "effect" * * // Advanced styling with node shapes for flowchart * const workflow = Graph.directed<{ type: string; name: string }, string>( @@ -1994,9 +2437,10 @@ export declare const toMermaid: { * // 2 --> 3 * ``` * - * @example + * **Example** (Visualizing dependency graphs) + * * ```ts - * import * as Graph from "effect/Graph" + * import { Graph } from "effect" * * // Real-world example: Software dependency graph * interface Dependency { @@ -2055,25 +2499,24 @@ export declare const toMermaid: { * // 0 -->|"builds with"| 3 * ``` * - * @param graph - The graph to export (directed or undirected) - * @param options - Optional configuration for the Mermaid output - * @returns Mermaid diagram syntax as a string - * - * @since 4.0.0 - * @category utils + * @category converting + * @since 3.18.0 */ (options?: MermaidOptions): (graph: Graph | MutableGraph) => string; /** * Exports a graph to Mermaid diagram format for visualization. * + * **Details** + * * Mermaid is a popular diagram-as-code tool that generates flowcharts and other * visualizations from text-based definitions. This function converts Effect Graph * structures to valid Mermaid syntax for use in documentation, web applications, * and visualization tools. * - * @example + * **Example** (Exporting a directed Mermaid diagram) + * * ```ts - * import * as Graph from "effect/Graph" + * import { Graph } from "effect" * * // Basic directed graph export * const graph = Graph.directed((mutable) => { @@ -2094,9 +2537,10 @@ export declare const toMermaid: { * // 0 -->|"2"| 2 * ``` * - * @example + * **Example** (Exporting an undirected Mermaid diagram) + * * ```ts - * import * as Graph from "effect/Graph" + * import { Graph } from "effect" * * // Undirected graph with custom labels and direction * const socialGraph = Graph.undirected<{ name: string }, string>((mutable) => { @@ -2121,9 +2565,10 @@ export declare const toMermaid: { * // 1 ---|"colleagues"| 2 * ``` * - * @example + * **Example** (Customizing Mermaid node shapes) + * * ```ts - * import * as Graph from "effect/Graph" + * import { Graph } from "effect" * * // Advanced styling with node shapes for flowchart * const workflow = Graph.directed<{ type: string; name: string }, string>( @@ -2172,9 +2617,10 @@ export declare const toMermaid: { * // 2 --> 3 * ``` * - * @example + * **Example** (Visualizing dependency graphs) + * * ```ts - * import * as Graph from "effect/Graph" + * import { Graph } from "effect" * * // Real-world example: Software dependency graph * interface Dependency { @@ -2233,19 +2679,16 @@ export declare const toMermaid: { * // 0 -->|"builds with"| 3 * ``` * - * @param graph - The graph to export (directed or undirected) - * @param options - Optional configuration for the Mermaid output - * @returns Mermaid diagram syntax as a string - * - * @since 4.0.0 - * @category utils + * @category converting + * @since 3.18.0 */ (graph: Graph | MutableGraph, options?: MermaidOptions): string; }; /** * Direction for graph traversal, indicating which edges to follow. * - * @example + * **Example** (Traversing by direction) + * * ```ts * import { Graph } from "effect" * @@ -2266,18 +2709,21 @@ export declare const toMermaid: { * ) * ``` * - * @since 4.0.0 * @category models + * @since 3.18.0 */ export type Direction = "outgoing" | "incoming"; /** - * Checks if the graph is acyclic (contains no cycles). + * Checks whether the graph is acyclic (contains no cycles). + * + * **Details** * * Uses depth-first search to detect back edges, which indicate cycles. * For directed graphs, any back edge creates a cycle. For undirected graphs, * a back edge that doesn't go to the immediate parent creates a cycle. * - * @example + * **Example** (Checking cycles) + * * ```ts * import { Graph } from "effect" * @@ -2301,18 +2747,21 @@ export type Direction = "outgoing" | "incoming"; * console.log(Graph.isAcyclic(cyclic)) // false * ``` * - * @since 4.0.0 * @category algorithms + * @since 3.18.0 */ export declare const isAcyclic: (graph: Graph | MutableGraph) => boolean; /** - * Checks if an undirected graph is bipartite. + * Checks whether an undirected graph is bipartite. + * + * **Details** * * A bipartite graph is one whose vertices can be divided into two disjoint sets * such that no two vertices within the same set are adjacent. Uses BFS coloring * to determine bipartiteness. * - * @example + * **Example** (Checking bipartite graphs) + * * ```ts * import { Graph } from "effect" * @@ -2340,15 +2789,16 @@ export declare const isAcyclic: (graph: Graph * console.log(Graph.isBipartite(triangle)) // false * ``` * - * @since 4.0.0 * @category algorithms + * @since 3.18.0 */ export declare const isBipartite: (graph: Graph | MutableGraph) => boolean; /** - * Find connected components in an undirected graph. + * Finds connected components in an undirected graph. * Each component is represented as an array of node indices. * - * @example + * **Example** (Finding connected components) + * * ```ts * import { Graph } from "effect" * @@ -2365,15 +2815,20 @@ export declare const isBipartite: (graph: Graph | Muta * console.log(components) // [[0, 1], [2, 3]] * ``` * - * @since 4.0.0 * @category algorithms + * @since 3.18.0 */ export declare const connectedComponents: (graph: Graph | MutableGraph) => Array>; /** - * Find strongly connected components in a directed graph using Kosaraju's algorithm. + * Finds strongly connected components in a directed graph using Kosaraju's algorithm. * Each SCC is represented as an array of node indices. * - * @example + * **Gotchas** + * + * Throws a `GraphError` when used with an undirected graph. + * + * **Example** (Finding strongly connected components) + * * ```ts * import { Graph } from "effect" * @@ -2390,15 +2845,36 @@ export declare const connectedComponents: (graph: Graph(graph: Graph | MutableGraph) => Array>; +export declare const stronglyConnectedComponents: (graph: Graph | MutableGraph) => Array>; /** - * Result of a shortest path computation containing the path and total distance. + * Result of a shortest path computation. + * + * **When to use** + * + * Use to read the successful source-to-target shortest path returned by + * path-finding algorithms, including the ordered node indices, total distance, + * and traversed edge data. + * + * **Details** + * + * Contains the node-index path, the total numeric distance, and the edge data + * encountered along the path. + * + * **Gotchas** + * + * `costs` contains original edge data, not the numeric output of the cost + * function unless the edge data is numeric. + * + * @see {@link dijkstra} for shortest paths with non-negative edge costs + * @see {@link astar} for heuristic shortest-path search + * @see {@link bellmanFord} for shortest paths that may include negative edge weights + * @see {@link AllPairsResult} for the all-pairs shortest-path result shape * - * @since 4.0.0 * @category models + * @since 3.18.0 */ export interface PathResult { readonly path: Array; @@ -2406,10 +2882,29 @@ export interface PathResult { readonly costs: Array; } /** - * Configuration for Dijkstra's algorithm. + * Configuration for finding a shortest path with Dijkstra's algorithm. + * + * **When to use** + * + * Use when configuring `dijkstra` to find a shortest path between two existing + * node indices with non-negative edge costs. + * + * **Details** + * + * Specifies the source and target node indices, plus a cost function that maps + * each edge's data to a non-negative numeric weight. + * + * **Gotchas** + * + * `dijkstra` throws a `GraphError` when either endpoint does not exist or when + * the cost function returns a negative weight. + * + * @see {@link dijkstra} for the algorithm that consumes this configuration + * @see {@link AstarConfig} for heuristic shortest-path search + * @see {@link BellmanFordConfig} for shortest paths that may include negative edge weights * - * @since 4.0.0 * @category models + * @since 3.18.0 */ export interface DijkstraConfig { source: NodeIndex; @@ -2417,12 +2912,17 @@ export interface DijkstraConfig { cost: (edgeData: E) => number; } /** - * Find the shortest path between two nodes using Dijkstra's algorithm. + * Finds the shortest path from the configured source node to the target node + * using Dijkstra's algorithm. + * + * **Details** + * + * Edge costs must be non-negative. Returns `Option.none()` when the target is + * not reachable, and throws a `GraphError` when either endpoint is missing or a + * negative edge cost is encountered. * - * Dijkstra's algorithm works with non-negative edge weights and finds the shortest - * path from a source node to a target node in O((V + E) log V) time complexity. + * **Example** (Finding shortest paths with Dijkstra) * - * @example * ```ts * import { Graph } from "effect" * @@ -2447,17 +2947,22 @@ export interface DijkstraConfig { * } * ``` * - * @since 4.0.0 * @category algorithms + * @since 3.18.0 */ export declare const dijkstra: { /** - * Find the shortest path between two nodes using Dijkstra's algorithm. + * Finds the shortest path from the configured source node to the target node + * using Dijkstra's algorithm. + * + * **Details** * - * Dijkstra's algorithm works with non-negative edge weights and finds the shortest - * path from a source node to a target node in O((V + E) log V) time complexity. + * Edge costs must be non-negative. Returns `Option.none()` when the target is + * not reachable, and throws a `GraphError` when either endpoint is missing or a + * negative edge cost is encountered. + * + * **Example** (Finding shortest paths with Dijkstra) * - * @example * ```ts * import { Graph } from "effect" * @@ -2482,17 +2987,22 @@ export declare const dijkstra: { * } * ``` * - * @since 4.0.0 * @category algorithms + * @since 3.18.0 */ (config: DijkstraConfig): (graph: Graph | MutableGraph) => Option.Option>; /** - * Find the shortest path between two nodes using Dijkstra's algorithm. + * Finds the shortest path from the configured source node to the target node + * using Dijkstra's algorithm. * - * Dijkstra's algorithm works with non-negative edge weights and finds the shortest - * path from a source node to a target node in O((V + E) log V) time complexity. + * **Details** + * + * Edge costs must be non-negative. Returns `Option.none()` when the target is + * not reachable, and throws a `GraphError` when either endpoint is missing or a + * negative edge cost is encountered. + * + * **Example** (Finding shortest paths with Dijkstra) * - * @example * ```ts * import { Graph } from "effect" * @@ -2517,16 +3027,30 @@ export declare const dijkstra: { * } * ``` * - * @since 4.0.0 * @category algorithms + * @since 3.18.0 */ (graph: Graph | MutableGraph, config: DijkstraConfig): Option.Option>; }; /** - * Result of all-pairs shortest path computation. + * Result of an all-pairs shortest path computation. + * + * **When to use** + * + * Use when storing or passing around the complete output of `floydWarshall` so + * callers can look up shortest distances, node paths, and edge data for any + * source and target node pair. + * + * **Details** + * + * Contains distance, node-path, and edge-data maps keyed by source and target + * node indices. + * + * @see {@link floydWarshall} for computing an all-pairs shortest path result + * @see {@link PathResult} for the single source-to-target result shape used by path-finding algorithms * - * @since 4.0.0 * @category models + * @since 3.18.0 */ export interface AllPairsResult { readonly distances: Map>; @@ -2534,14 +3058,17 @@ export interface AllPairsResult { readonly costs: Map>>; } /** - * Find shortest paths between all pairs of nodes using Floyd-Warshall algorithm. + * Finds shortest paths between all pairs of nodes using the Floyd-Warshall + * algorithm. + * + * **Details** * - * Floyd-Warshall algorithm computes shortest paths between all pairs of nodes in O(V³) time. - * It can handle negative edge weights and detect negative cycles. + * Computes distances, reconstructed node paths, and edge-data paths for every + * source and target pair in O(V^3) time. Negative edge weights are allowed, but + * a `GraphError` is thrown if any negative cycle is detected. * - * Throws if a negative cycle is detected that affects the path to target. + * **Example** (Finding all-pairs shortest paths) * - * @example * ```ts * import { Graph } from "effect" * @@ -2559,19 +3086,22 @@ export interface AllPairsResult { * const pathAToC = result.paths.get(0)?.get(2) // [0, 1, 2] * ``` * - * @since 4.0.0 * @category algorithms + * @since 3.18.0 */ export declare const floydWarshall: { /** - * Find shortest paths between all pairs of nodes using Floyd-Warshall algorithm. + * Finds shortest paths between all pairs of nodes using the Floyd-Warshall + * algorithm. + * + * **Details** * - * Floyd-Warshall algorithm computes shortest paths between all pairs of nodes in O(V³) time. - * It can handle negative edge weights and detect negative cycles. + * Computes distances, reconstructed node paths, and edge-data paths for every + * source and target pair in O(V^3) time. Negative edge weights are allowed, but + * a `GraphError` is thrown if any negative cycle is detected. * - * Throws if a negative cycle is detected that affects the path to target. + * **Example** (Finding all-pairs shortest paths) * - * @example * ```ts * import { Graph } from "effect" * @@ -2589,19 +3119,22 @@ export declare const floydWarshall: { * const pathAToC = result.paths.get(0)?.get(2) // [0, 1, 2] * ``` * - * @since 4.0.0 * @category algorithms + * @since 3.18.0 */ (cost: (edgeData: E) => number): (graph: Graph | MutableGraph) => AllPairsResult; /** - * Find shortest paths between all pairs of nodes using Floyd-Warshall algorithm. + * Finds shortest paths between all pairs of nodes using the Floyd-Warshall + * algorithm. + * + * **Details** * - * Floyd-Warshall algorithm computes shortest paths between all pairs of nodes in O(V³) time. - * It can handle negative edge weights and detect negative cycles. + * Computes distances, reconstructed node paths, and edge-data paths for every + * source and target pair in O(V^3) time. Negative edge weights are allowed, but + * a `GraphError` is thrown if any negative cycle is detected. * - * Throws if a negative cycle is detected that affects the path to target. + * **Example** (Finding all-pairs shortest paths) * - * @example * ```ts * import { Graph } from "effect" * @@ -2619,16 +3152,30 @@ export declare const floydWarshall: { * const pathAToC = result.paths.get(0)?.get(2) // [0, 1, 2] * ``` * - * @since 4.0.0 * @category algorithms + * @since 3.18.0 */ (graph: Graph | MutableGraph, cost: (edgeData: E) => number): AllPairsResult; }; /** - * Configuration for A* pathfinding algorithm. + * Configuration for finding a shortest path with the A* algorithm. + * + * **When to use** + * + * Use when configuring `astar` for point-to-point shortest-path searches where + * node data can provide a heuristic estimate toward the target. + * + * **Details** + * + * Specifies the source and target node indices, an edge-cost function, and a + * heuristic that estimates the remaining cost from a node to the target. + * + * @see {@link astar} for the algorithm that consumes this configuration + * @see {@link DijkstraConfig} for shortest paths without a heuristic + * @see {@link BellmanFordConfig} for shortest paths that may include negative edge weights * - * @since 4.0.0 * @category models + * @since 3.18.0 */ export interface AstarConfig { source: NodeIndex; @@ -2637,13 +3184,18 @@ export interface AstarConfig { heuristic: (sourceNodeData: N, targetNodeData: N) => number; } /** - * Find the shortest path between two nodes using A* pathfinding algorithm. + * Finds the shortest path from the configured source node to the target node + * using the A* pathfinding algorithm. + * + * **Details** * - * A* is an extension of Dijkstra's algorithm that uses a heuristic function to guide - * the search towards the target, potentially finding paths faster than Dijkstra's. - * The heuristic must be admissible (never overestimate the actual cost). + * The edge-cost function must return non-negative weights, and the heuristic + * should be consistent to preserve shortest-path guarantees. Returns + * `Option.none()` when the target is not reachable, and throws a `GraphError` + * when either endpoint is missing or a negative edge cost is encountered. + * + * **Example** (Finding shortest paths with A-star) * - * @example * ```ts * import { Graph } from "effect" * @@ -2674,18 +3226,23 @@ export interface AstarConfig { * } * ``` * - * @since 4.0.0 * @category algorithms + * @since 3.18.0 */ export declare const astar: { /** - * Find the shortest path between two nodes using A* pathfinding algorithm. + * Finds the shortest path from the configured source node to the target node + * using the A* pathfinding algorithm. * - * A* is an extension of Dijkstra's algorithm that uses a heuristic function to guide - * the search towards the target, potentially finding paths faster than Dijkstra's. - * The heuristic must be admissible (never overestimate the actual cost). + * **Details** + * + * The edge-cost function must return non-negative weights, and the heuristic + * should be consistent to preserve shortest-path guarantees. Returns + * `Option.none()` when the target is not reachable, and throws a `GraphError` + * when either endpoint is missing or a negative edge cost is encountered. + * + * **Example** (Finding shortest paths with A-star) * - * @example * ```ts * import { Graph } from "effect" * @@ -2716,18 +3273,23 @@ export declare const astar: { * } * ``` * - * @since 4.0.0 * @category algorithms + * @since 3.18.0 */ (config: AstarConfig): (graph: Graph | MutableGraph) => Option.Option>; /** - * Find the shortest path between two nodes using A* pathfinding algorithm. + * Finds the shortest path from the configured source node to the target node + * using the A* pathfinding algorithm. + * + * **Details** * - * A* is an extension of Dijkstra's algorithm that uses a heuristic function to guide - * the search towards the target, potentially finding paths faster than Dijkstra's. - * The heuristic must be admissible (never overestimate the actual cost). + * The edge-cost function must return non-negative weights, and the heuristic + * should be consistent to preserve shortest-path guarantees. Returns + * `Option.none()` when the target is not reachable, and throws a `GraphError` + * when either endpoint is missing or a negative edge cost is encountered. + * + * **Example** (Finding shortest paths with A-star) * - * @example * ```ts * import { Graph } from "effect" * @@ -2758,16 +3320,30 @@ export declare const astar: { * } * ``` * - * @since 4.0.0 * @category algorithms + * @since 3.18.0 */ (graph: Graph | MutableGraph, config: AstarConfig): Option.Option>; }; /** - * Configuration for Bellman-Ford algorithm. + * Configuration for finding a shortest path with the Bellman-Ford algorithm. + * + * **When to use** + * + * Use when configuring `bellmanFord` to find a shortest path where edge + * weights may be negative. + * + * **Details** + * + * Specifies the source and target node indices, plus a cost function that maps + * each edge's data to a numeric weight. + * + * @see {@link bellmanFord} for the algorithm that consumes this configuration + * @see {@link DijkstraConfig} for non-negative edge costs + * @see {@link AstarConfig} for heuristic shortest-path search * - * @since 4.0.0 * @category models + * @since 3.18.0 */ export interface BellmanFordConfig { source: NodeIndex; @@ -2775,13 +3351,17 @@ export interface BellmanFordConfig { cost: (edgeData: E) => number; } /** - * Find the shortest path between two nodes using Bellman-Ford algorithm. + * Finds the shortest path from the configured source node to the target node + * using the Bellman-Ford algorithm. * - * Bellman-Ford algorithm can handle negative edge weights and detects negative cycles. - * It has O(VE) time complexity, slower than Dijkstra's but more versatile. - * Returns Option.none() if a negative cycle is detected that affects the path. + * **Details** + * + * Negative edge weights are allowed. Returns `Option.none()` when the target is + * unreachable or when a negative cycle affects the path to the target. Throws a + * `GraphError` when either endpoint is missing. + * + * **Example** (Finding shortest paths with Bellman-Ford) * - * @example * ```ts * import { Graph } from "effect" * @@ -2806,18 +3386,22 @@ export interface BellmanFordConfig { * } * ``` * - * @since 4.0.0 * @category algorithms + * @since 3.18.0 */ export declare const bellmanFord: { /** - * Find the shortest path between two nodes using Bellman-Ford algorithm. + * Finds the shortest path from the configured source node to the target node + * using the Bellman-Ford algorithm. + * + * **Details** * - * Bellman-Ford algorithm can handle negative edge weights and detects negative cycles. - * It has O(VE) time complexity, slower than Dijkstra's but more versatile. - * Returns Option.none() if a negative cycle is detected that affects the path. + * Negative edge weights are allowed. Returns `Option.none()` when the target is + * unreachable or when a negative cycle affects the path to the target. Throws a + * `GraphError` when either endpoint is missing. + * + * **Example** (Finding shortest paths with Bellman-Ford) * - * @example * ```ts * import { Graph } from "effect" * @@ -2842,18 +3426,22 @@ export declare const bellmanFord: { * } * ``` * - * @since 4.0.0 * @category algorithms + * @since 3.18.0 */ (config: BellmanFordConfig): (graph: Graph | MutableGraph) => Option.Option>; /** - * Find the shortest path between two nodes using Bellman-Ford algorithm. + * Finds the shortest path from the configured source node to the target node + * using the Bellman-Ford algorithm. + * + * **Details** + * + * Negative edge weights are allowed. Returns `Option.none()` when the target is + * unreachable or when a negative cycle affects the path to the target. Throws a + * `GraphError` when either endpoint is missing. * - * Bellman-Ford algorithm can handle negative edge weights and detects negative cycles. - * It has O(VE) time complexity, slower than Dijkstra's but more versatile. - * Returns Option.none() if a negative cycle is detected that affects the path. + * **Example** (Finding shortest paths with Bellman-Ford) * - * @example * ```ts * import { Graph } from "effect" * @@ -2878,19 +3466,22 @@ export declare const bellmanFord: { * } * ``` * - * @since 4.0.0 * @category algorithms + * @since 3.18.0 */ (graph: Graph | MutableGraph, config: BellmanFordConfig): Option.Option>; }; /** - * Concrete class for iterables that produce [NodeIndex, NodeData] tuples. + * Represents an iterable wrapper used by graph traversal and listing APIs. + * + * **Details** * - * This class provides a common abstraction for all iterables that return node data, - * including traversal iterators (DFS, BFS, etc.) and element iterators (nodes, externals). - * It uses a mapEntry function pattern for flexible iteration and transformation. + * A `Walker` yields `[index, data]` pairs lazily and can be viewed as just the + * indices, just the values, or mapped entries with `indices`, `values`, + * `entries`, and `visit`. + * + * **Example** (Working with node walkers) * - * @example * ```ts * import { Graph } from "effect" * @@ -2914,19 +3505,22 @@ export declare const bellmanFord: { * const nodeEntries = Array.from(Graph.entries(allNodes)) // [[0, "A"], [1, "B"]] * ``` * - * @since 4.0.0 * @category models + * @since 3.18.0 */ export declare class Walker implements Iterable<[T, N]> { readonly [Symbol.iterator]: () => Iterator<[T, N]>; /** * Visits each element and maps it to a value using the provided function. * + * **Details** + * * Takes a function that receives the index and data, * and returns an iterable of the mapped values. Skips elements that * no longer exist in the graph. * - * @example + * **Example** (Visiting walker elements) + * * ```ts * import { Graph } from "effect" * @@ -2950,7 +3544,6 @@ export declare class Walker implements Iterable<[T, N]> { * ``` * * @since 4.0.0 - * @category iterators */ readonly visit: (f: (index: T, data: N) => U) => Iterable; constructor( @@ -2961,7 +3554,8 @@ export declare class Walker implements Iterable<[T, N]> { * and returns an iterable of the mapped values. Skips elements that * no longer exist in the graph. * - * @example + * **Example** (Visiting walker elements) + * * ```ts * import { Graph } from "effect" * @@ -2984,8 +3578,8 @@ export declare class Walker implements Iterable<[T, N]> { * console.log(custom) // [{ id: 0, name: "A" }, { id: 1, name: "B" }] * ``` * - * @since 4.0.0 * @category iterators + * @since 4.0.0 */ visit: (f: (index: T, data: N) => U) => Iterable); } @@ -2993,22 +3587,41 @@ export declare class Walker implements Iterable<[T, N]> { * Type alias for node iteration using Walker. * NodeWalker is represented as Walker. * - * @since 4.0.0 + * **When to use** + * + * Use as the shared node walker type returned by graph traversal and node + * listing APIs. + * + * @see {@link Walker} for the generic lazy iterator wrapper + * @see {@link EdgeWalker} for edge iterators + * * @category models + * @since 3.18.0 */ export type NodeWalker = Walker; /** * Type alias for edge iteration using Walker. * EdgeWalker is represented as Walker>. * - * @since 4.0.0 + * **When to use** + * + * Use to type helpers or parameters that consume edge iterators returned by + * `Graph` APIs, where each item is keyed by an `EdgeIndex` and carries the + * full `Edge`. + * + * @see {@link Walker} for the generic lazy iterator wrapper + * @see {@link NodeWalker} for node iterators + * @see {@link edges} for creating edge walkers + * * @category models + * @since 3.18.0 */ export type EdgeWalker = Walker>; /** * Returns an iterator over the indices in the walker. * - * @example + * **Example** (Iterating walker indices) + * * ```ts * import { Graph } from "effect" * @@ -3023,14 +3636,15 @@ export type EdgeWalker = Walker>; * console.log(indices) // [0, 1] * ``` * - * @since 4.0.0 - * @category utilities + * @category iterators + * @since 3.18.0 */ export declare const indices: (walker: Walker) => Iterable; /** * Returns an iterator over the values (data) in the walker. * - * @example + * **Example** (Iterating walker values) + * * ```ts * import { Graph } from "effect" * @@ -3045,14 +3659,15 @@ export declare const indices: (walker: Walker) => Iterable; * console.log(values) // ["A", "B"] * ``` * - * @since 4.0.0 - * @category utilities + * @category iterators + * @since 3.18.0 */ export declare const values: (walker: Walker) => Iterable; /** * Returns an iterator over [index, data] entries in the walker. * - * @example + * **Example** (Iterating walker entries) + * * ```ts * import { Graph } from "effect" * @@ -3067,27 +3682,52 @@ export declare const values: (walker: Walker) => Iterable; * console.log(entries) // [[0, "A"], [1, "B"]] * ``` * - * @since 4.0.0 - * @category utilities + * @category iterators + * @since 3.18.0 */ export declare const entries: (walker: Walker) => Iterable<[T, N]>; /** - * Configuration options for search iterators. + * Configuration for DFS, BFS, and postorder graph traversals. + * + * **When to use** + * + * Use to configure the starting node indices and edge-following direction for + * lazy graph traversals. + * + * **Details** + * + * `start` supplies the node indices where traversal begins. If it is omitted, + * the iterator is empty. `direction` chooses whether traversal follows + * outgoing or incoming edges. + * + * **Gotchas** + * + * Traversal creation throws a `GraphError` when any configured `start` node + * does not exist. + * + * @see {@link dfs} for depth-first traversal + * @see {@link bfs} for breadth-first traversal + * @see {@link dfsPostOrder} for depth-first postorder traversal * - * @since 4.0.0 * @category models + * @since 3.18.0 */ export interface SearchConfig { readonly start?: Array; readonly direction?: Direction; } /** - * Creates a new DFS iterator with optional configuration. + * Creates a lazy depth-first traversal iterator from the configured start + * nodes. + * + * **Details** * - * The iterator maintains a stack of nodes to visit and tracks discovered nodes. - * It provides lazy evaluation of the depth-first search. + * If no start nodes are supplied, the iterator is empty. The `direction` option + * chooses whether to follow outgoing or incoming edges. Throws a `GraphError` + * if any configured start node does not exist. + * + * **Example** (Traversing depth-first) * - * @example * ```ts * import { Graph } from "effect" * @@ -3110,17 +3750,22 @@ export interface SearchConfig { * // Can be used programmatically * ``` * - * @since 4.0.0 * @category iterators + * @since 3.18.0 */ export declare const dfs: { /** - * Creates a new DFS iterator with optional configuration. + * Creates a lazy depth-first traversal iterator from the configured start + * nodes. + * + * **Details** + * + * If no start nodes are supplied, the iterator is empty. The `direction` option + * chooses whether to follow outgoing or incoming edges. Throws a `GraphError` + * if any configured start node does not exist. * - * The iterator maintains a stack of nodes to visit and tracks discovered nodes. - * It provides lazy evaluation of the depth-first search. + * **Example** (Traversing depth-first) * - * @example * ```ts * import { Graph } from "effect" * @@ -3143,17 +3788,22 @@ export declare const dfs: { * // Can be used programmatically * ``` * - * @since 4.0.0 * @category iterators + * @since 3.18.0 */ (config?: SearchConfig): (graph: Graph | MutableGraph) => NodeWalker; /** - * Creates a new DFS iterator with optional configuration. + * Creates a lazy depth-first traversal iterator from the configured start + * nodes. + * + * **Details** * - * The iterator maintains a stack of nodes to visit and tracks discovered nodes. - * It provides lazy evaluation of the depth-first search. + * If no start nodes are supplied, the iterator is empty. The `direction` option + * chooses whether to follow outgoing or incoming edges. Throws a `GraphError` + * if any configured start node does not exist. + * + * **Example** (Traversing depth-first) * - * @example * ```ts * import { Graph } from "effect" * @@ -3176,18 +3826,23 @@ export declare const dfs: { * // Can be used programmatically * ``` * - * @since 4.0.0 * @category iterators + * @since 3.18.0 */ (graph: Graph | MutableGraph, config?: SearchConfig): NodeWalker; }; /** - * Creates a new BFS iterator with optional configuration. + * Creates a lazy breadth-first traversal iterator from the configured start + * nodes. * - * The iterator maintains a queue of nodes to visit and tracks discovered nodes. - * It provides lazy evaluation of the breadth-first search. + * **Details** + * + * If no start nodes are supplied, the iterator is empty. The `direction` option + * chooses whether to follow outgoing or incoming edges. Throws a `GraphError` + * if any configured start node does not exist. + * + * **Example** (Traversing breadth-first) * - * @example * ```ts * import { Graph } from "effect" * @@ -3210,17 +3865,22 @@ export declare const dfs: { * // Can be used programmatically * ``` * - * @since 4.0.0 * @category iterators + * @since 3.18.0 */ export declare const bfs: { /** - * Creates a new BFS iterator with optional configuration. + * Creates a lazy breadth-first traversal iterator from the configured start + * nodes. + * + * **Details** * - * The iterator maintains a queue of nodes to visit and tracks discovered nodes. - * It provides lazy evaluation of the breadth-first search. + * If no start nodes are supplied, the iterator is empty. The `direction` option + * chooses whether to follow outgoing or incoming edges. Throws a `GraphError` + * if any configured start node does not exist. + * + * **Example** (Traversing breadth-first) * - * @example * ```ts * import { Graph } from "effect" * @@ -3243,17 +3903,22 @@ export declare const bfs: { * // Can be used programmatically * ``` * - * @since 4.0.0 * @category iterators + * @since 3.18.0 */ (config?: SearchConfig): (graph: Graph | MutableGraph) => NodeWalker; /** - * Creates a new BFS iterator with optional configuration. + * Creates a lazy breadth-first traversal iterator from the configured start + * nodes. + * + * **Details** + * + * If no start nodes are supplied, the iterator is empty. The `direction` option + * chooses whether to follow outgoing or incoming edges. Throws a `GraphError` + * if any configured start node does not exist. * - * The iterator maintains a queue of nodes to visit and tracks discovered nodes. - * It provides lazy evaluation of the breadth-first search. + * **Example** (Traversing breadth-first) * - * @example * ```ts * import { Graph } from "effect" * @@ -3276,16 +3941,32 @@ export declare const bfs: { * // Can be used programmatically * ``` * - * @since 4.0.0 * @category iterators + * @since 3.18.0 */ (graph: Graph | MutableGraph, config?: SearchConfig): NodeWalker; }; /** - * Configuration options for topological sort iterator. + * Configuration for the topological sort iterator. + * + * **When to use** + * + * Use to prioritize specific zero in-degree nodes in a topological sort. + * + * **Details** + * + * `initials` optionally supplies zero in-degree node indices used as + * prioritized initial queue entries. Topological sorting still includes the + * other zero in-degree nodes and produces a complete topological order. + * + * **Gotchas** + * + * Throws a `GraphError` when any initial node has incoming edges. + * + * @see {@link topo} for the iterator that consumes this configuration * - * @since 4.0.0 * @category models + * @since 3.18.0 */ export interface TopoConfig { readonly initials?: Array; @@ -3293,10 +3974,13 @@ export interface TopoConfig { /** * Creates a new topological sort iterator with optional configuration. * + * **Details** + * * The iterator uses Kahn's algorithm to lazily produce nodes in topological order. * Throws an error if the graph contains cycles. * - * @example + * **Example** (Sorting topologically) + * * ```ts * import { Graph } from "effect" * @@ -3317,7 +4001,7 @@ export interface TopoConfig { * // With initial nodes * const topo2 = Graph.topo(graph, { initials: [0] }) * - * // Throws error for cyclic graph + * // Check before sorting a cyclic graph * const cyclicGraph = Graph.directed((mutable) => { * const a = Graph.addNode(mutable, "A") * const b = Graph.addNode(mutable, "B") @@ -3325,24 +4009,25 @@ export interface TopoConfig { * Graph.addEdge(mutable, b, a, 2) // Creates cycle * }) * - * try { - * Graph.topo(cyclicGraph) // Throws: "Cannot perform topological sort on cyclic graph" - * } catch (error) { - * console.log((error as Error).message) + * if (!Graph.isAcyclic(cyclicGraph)) { + * console.log("cyclic graph") // cyclic graph * } * ``` * - * @since 4.0.0 * @category iterators + * @since 3.18.0 */ export declare const topo: { /** * Creates a new topological sort iterator with optional configuration. * + * **Details** + * * The iterator uses Kahn's algorithm to lazily produce nodes in topological order. * Throws an error if the graph contains cycles. * - * @example + * **Example** (Sorting topologically) + * * ```ts * import { Graph } from "effect" * @@ -3363,7 +4048,7 @@ export declare const topo: { * // With initial nodes * const topo2 = Graph.topo(graph, { initials: [0] }) * - * // Throws error for cyclic graph + * // Check before sorting a cyclic graph * const cyclicGraph = Graph.directed((mutable) => { * const a = Graph.addNode(mutable, "A") * const b = Graph.addNode(mutable, "B") @@ -3371,24 +4056,25 @@ export declare const topo: { * Graph.addEdge(mutable, b, a, 2) // Creates cycle * }) * - * try { - * Graph.topo(cyclicGraph) // Throws: "Cannot perform topological sort on cyclic graph" - * } catch (error) { - * console.log((error as Error).message) + * if (!Graph.isAcyclic(cyclicGraph)) { + * console.log("cyclic graph") // cyclic graph * } * ``` * - * @since 4.0.0 * @category iterators + * @since 3.18.0 */ (config?: TopoConfig): (graph: Graph | MutableGraph) => NodeWalker; /** * Creates a new topological sort iterator with optional configuration. * + * **Details** + * * The iterator uses Kahn's algorithm to lazily produce nodes in topological order. * Throws an error if the graph contains cycles. * - * @example + * **Example** (Sorting topologically) + * * ```ts * import { Graph } from "effect" * @@ -3409,7 +4095,7 @@ export declare const topo: { * // With initial nodes * const topo2 = Graph.topo(graph, { initials: [0] }) * - * // Throws error for cyclic graph + * // Check before sorting a cyclic graph * const cyclicGraph = Graph.directed((mutable) => { * const a = Graph.addNode(mutable, "A") * const b = Graph.addNode(mutable, "B") @@ -3417,26 +4103,28 @@ export declare const topo: { * Graph.addEdge(mutable, b, a, 2) // Creates cycle * }) * - * try { - * Graph.topo(cyclicGraph) // Throws: "Cannot perform topological sort on cyclic graph" - * } catch (error) { - * console.log((error as Error).message) + * if (!Graph.isAcyclic(cyclicGraph)) { + * console.log("cyclic graph") // cyclic graph * } * ``` * - * @since 4.0.0 * @category iterators + * @since 3.18.0 */ (graph: Graph | MutableGraph, config?: TopoConfig): NodeWalker; }; /** - * Creates a new DFS postorder iterator with optional configuration. + * Creates a lazy depth-first postorder traversal iterator from the configured + * start nodes. + * + * **Details** + * + * Nodes are emitted after their reachable descendants have been processed. If + * no start nodes are supplied, the iterator is empty. The `direction` option + * chooses whether to follow outgoing or incoming edges. * - * The iterator maintains a stack with visit state tracking and emits nodes - * in postorder (after all descendants have been processed). Essential for - * dependency resolution and tree destruction algorithms. + * **Example** (Traversing in postorder) * - * @example * ```ts * import { Graph } from "effect" * @@ -3455,18 +4143,22 @@ export declare const topo: { * } * ``` * - * @since 4.0.0 * @category iterators + * @since 3.18.0 */ export declare const dfsPostOrder: { /** - * Creates a new DFS postorder iterator with optional configuration. + * Creates a lazy depth-first postorder traversal iterator from the configured + * start nodes. + * + * **Details** * - * The iterator maintains a stack with visit state tracking and emits nodes - * in postorder (after all descendants have been processed). Essential for - * dependency resolution and tree destruction algorithms. + * Nodes are emitted after their reachable descendants have been processed. If + * no start nodes are supplied, the iterator is empty. The `direction` option + * chooses whether to follow outgoing or incoming edges. + * + * **Example** (Traversing in postorder) * - * @example * ```ts * import { Graph } from "effect" * @@ -3485,18 +4177,22 @@ export declare const dfsPostOrder: { * } * ``` * - * @since 4.0.0 * @category iterators + * @since 3.18.0 */ (config?: SearchConfig): (graph: Graph | MutableGraph) => NodeWalker; /** - * Creates a new DFS postorder iterator with optional configuration. + * Creates a lazy depth-first postorder traversal iterator from the configured + * start nodes. * - * The iterator maintains a stack with visit state tracking and emits nodes - * in postorder (after all descendants have been processed). Essential for - * dependency resolution and tree destruction algorithms. + * **Details** + * + * Nodes are emitted after their reachable descendants have been processed. If + * no start nodes are supplied, the iterator is empty. The `direction` option + * chooses whether to follow outgoing or incoming edges. + * + * **Example** (Traversing in postorder) * - * @example * ```ts * import { Graph } from "effect" * @@ -3515,18 +4211,21 @@ export declare const dfsPostOrder: { * } * ``` * - * @since 4.0.0 * @category iterators + * @since 3.18.0 */ (graph: Graph | MutableGraph, config?: SearchConfig): NodeWalker; }; /** * Creates an iterator over all node indices in the graph. * + * **Details** + * * The iterator produces node indices in the order they were added to the graph. * This provides access to all nodes regardless of connectivity. * - * @example + * **Example** (Iterating all nodes) + * * ```ts * import { Graph } from "effect" * @@ -3541,17 +4240,20 @@ export declare const dfsPostOrder: { * console.log(indices) // [0, 1, 2] * ``` * - * @since 4.0.0 * @category iterators + * @since 3.18.0 */ export declare const nodes: (graph: Graph | MutableGraph) => NodeWalker; /** * Creates an iterator over all edge indices in the graph. * + * **Details** + * * The iterator produces edge indices in the order they were added to the graph. * This provides access to all edges regardless of connectivity. * - * @example + * **Example** (Iterating all edges) + * * ```ts * import { Graph } from "effect" * @@ -3567,27 +4269,44 @@ export declare const nodes: (graph: Graph(graph: Graph | MutableGraph) => EdgeWalker; /** - * Configuration for externals iterator. + * Configuration for selecting external nodes. + * + * **When to use** + * + * Use to configure how `externals` identifies graph boundary nodes when you + * need sinks with no outgoing edges or sources with no incoming edges. + * + * **Details** + * + * `direction` chooses which missing edge direction makes a node external: + * `"outgoing"` selects nodes with no outgoing edges, and `"incoming"` selects + * nodes with no incoming edges. If omitted, `direction` defaults to + * `"outgoing"`. + * + * @see {@link externals} for the iterator that consumes this configuration * - * @since 4.0.0 * @category models + * @since 3.18.0 */ export interface ExternalsConfig { readonly direction?: Direction; } /** - * Creates an iterator over external nodes (nodes without edges in specified direction). + * Creates an iterator over external nodes (nodes without edges in the specified direction). + * + * **Details** * - * External nodes are nodes that have no outgoing edges (direction="outgoing") or - * no incoming edges (direction="incoming"). These are useful for finding + * External nodes have no outgoing edges (`direction: "outgoing"`) or no + * incoming edges (`direction: "incoming"`). These are useful for finding * sources, sinks, or isolated nodes. * - * @example + * **Example** (Iterating external nodes) + * * ```ts * import { Graph } from "effect" * @@ -3614,18 +4333,21 @@ export interface ExternalsConfig { * console.log(sources) // [0, 3] * ``` * - * @since 4.0.0 * @category iterators + * @since 3.18.0 */ export declare const externals: { /** - * Creates an iterator over external nodes (nodes without edges in specified direction). + * Creates an iterator over external nodes (nodes without edges in the specified direction). * - * External nodes are nodes that have no outgoing edges (direction="outgoing") or - * no incoming edges (direction="incoming"). These are useful for finding + * **Details** + * + * External nodes have no outgoing edges (`direction: "outgoing"`) or no + * incoming edges (`direction: "incoming"`). These are useful for finding * sources, sinks, or isolated nodes. * - * @example + * **Example** (Iterating external nodes) + * * ```ts * import { Graph } from "effect" * @@ -3652,18 +4374,21 @@ export declare const externals: { * console.log(sources) // [0, 3] * ``` * - * @since 4.0.0 * @category iterators + * @since 3.18.0 */ (config?: ExternalsConfig): (graph: Graph | MutableGraph) => NodeWalker; /** - * Creates an iterator over external nodes (nodes without edges in specified direction). + * Creates an iterator over external nodes (nodes without edges in the specified direction). + * + * **Details** * - * External nodes are nodes that have no outgoing edges (direction="outgoing") or - * no incoming edges (direction="incoming"). These are useful for finding + * External nodes have no outgoing edges (`direction: "outgoing"`) or no + * incoming edges (`direction: "incoming"`). These are useful for finding * sources, sinks, or isolated nodes. * - * @example + * **Example** (Iterating external nodes) + * * ```ts * import { Graph } from "effect" * @@ -3690,8 +4415,8 @@ export declare const externals: { * console.log(sources) // [0, 3] * ``` * - * @since 4.0.0 * @category iterators + * @since 3.18.0 */ (graph: Graph | MutableGraph, config?: ExternalsConfig): NodeWalker; };