@opencode-ai/schema
Advanced tools
+192
-0
@@ -480,2 +480,194 @@ import { Schema } from "effect"; | ||
| }; | ||
| readonly matchOrElse: { | ||
| <Cases extends { | ||
| current?: ((value: { | ||
| readonly source: "current"; | ||
| readonly revert: { | ||
| readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">; | ||
| readonly files?: readonly { | ||
| readonly file: string; | ||
| readonly patch: string; | ||
| readonly additions: number; | ||
| readonly deletions: number; | ||
| readonly status: "added" | "deleted" | "modified"; | ||
| }[] | undefined; | ||
| readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined; | ||
| readonly partID?: string | undefined; | ||
| }; | ||
| }) => any) | undefined; | ||
| legacy?: ((value: { | ||
| readonly source: "legacy"; | ||
| readonly revert: { | ||
| readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">; | ||
| readonly files?: readonly { | ||
| readonly path: string; | ||
| readonly status: "added" | "deleted" | "modified"; | ||
| readonly additions: number; | ||
| readonly deletions: number; | ||
| readonly patch: string; | ||
| }[] | undefined; | ||
| readonly snapshot?: string | undefined; | ||
| readonly partID?: string | undefined; | ||
| readonly diff?: string | undefined; | ||
| }; | ||
| }) => any) | undefined; | ||
| } & { [K in Exclude<keyof Cases, "current" | "legacy">]: never; }, OrElse extends (value: Exclude<{ | ||
| readonly source: "current"; | ||
| readonly revert: { | ||
| readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">; | ||
| readonly files?: readonly { | ||
| readonly file: string; | ||
| readonly patch: string; | ||
| readonly additions: number; | ||
| readonly deletions: number; | ||
| readonly status: "added" | "deleted" | "modified"; | ||
| }[] | undefined; | ||
| readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined; | ||
| readonly partID?: string | undefined; | ||
| }; | ||
| }, { | ||
| readonly source: keyof Cases; | ||
| }> | Exclude<{ | ||
| readonly source: "legacy"; | ||
| readonly revert: { | ||
| readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">; | ||
| readonly files?: readonly { | ||
| readonly path: string; | ||
| readonly status: "added" | "deleted" | "modified"; | ||
| readonly additions: number; | ||
| readonly deletions: number; | ||
| readonly patch: string; | ||
| }[] | undefined; | ||
| readonly snapshot?: string | undefined; | ||
| readonly partID?: string | undefined; | ||
| readonly diff?: string | undefined; | ||
| }; | ||
| }, { | ||
| readonly source: keyof Cases; | ||
| }>) => any>(value: { | ||
| readonly source: "current"; | ||
| readonly revert: { | ||
| readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">; | ||
| readonly files?: readonly { | ||
| readonly file: string; | ||
| readonly patch: string; | ||
| readonly additions: number; | ||
| readonly deletions: number; | ||
| readonly status: "added" | "deleted" | "modified"; | ||
| }[] | undefined; | ||
| readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined; | ||
| readonly partID?: string | undefined; | ||
| }; | ||
| } | { | ||
| readonly source: "legacy"; | ||
| readonly revert: { | ||
| readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">; | ||
| readonly files?: readonly { | ||
| readonly path: string; | ||
| readonly status: "added" | "deleted" | "modified"; | ||
| readonly additions: number; | ||
| readonly deletions: number; | ||
| readonly patch: string; | ||
| }[] | undefined; | ||
| readonly snapshot?: string | undefined; | ||
| readonly partID?: string | undefined; | ||
| readonly diff?: string | undefined; | ||
| }; | ||
| }, cases: Cases, orElse: OrElse): import("effect/Unify").Unify<{ [K_1 in keyof Cases]-?: NonNullable<Cases[K_1]> extends (...args: Array<any>) => infer R ? R : never; }[keyof Cases] | ReturnType<OrElse>>; | ||
| <Cases extends { | ||
| current?: ((value: { | ||
| readonly source: "current"; | ||
| readonly revert: { | ||
| readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">; | ||
| readonly files?: readonly { | ||
| readonly file: string; | ||
| readonly patch: string; | ||
| readonly additions: number; | ||
| readonly deletions: number; | ||
| readonly status: "added" | "deleted" | "modified"; | ||
| }[] | undefined; | ||
| readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined; | ||
| readonly partID?: string | undefined; | ||
| }; | ||
| }) => any) | undefined; | ||
| legacy?: ((value: { | ||
| readonly source: "legacy"; | ||
| readonly revert: { | ||
| readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">; | ||
| readonly files?: readonly { | ||
| readonly path: string; | ||
| readonly status: "added" | "deleted" | "modified"; | ||
| readonly additions: number; | ||
| readonly deletions: number; | ||
| readonly patch: string; | ||
| }[] | undefined; | ||
| readonly snapshot?: string | undefined; | ||
| readonly partID?: string | undefined; | ||
| readonly diff?: string | undefined; | ||
| }; | ||
| }) => any) | undefined; | ||
| } & { [K in Exclude<keyof Cases, "current" | "legacy">]: never; }, OrElse extends (value: Exclude<{ | ||
| readonly source: "current"; | ||
| readonly revert: { | ||
| readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">; | ||
| readonly files?: readonly { | ||
| readonly file: string; | ||
| readonly patch: string; | ||
| readonly additions: number; | ||
| readonly deletions: number; | ||
| readonly status: "added" | "deleted" | "modified"; | ||
| }[] | undefined; | ||
| readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined; | ||
| readonly partID?: string | undefined; | ||
| }; | ||
| }, { | ||
| readonly source: keyof Cases; | ||
| }> | Exclude<{ | ||
| readonly source: "legacy"; | ||
| readonly revert: { | ||
| readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">; | ||
| readonly files?: readonly { | ||
| readonly path: string; | ||
| readonly status: "added" | "deleted" | "modified"; | ||
| readonly additions: number; | ||
| readonly deletions: number; | ||
| readonly patch: string; | ||
| }[] | undefined; | ||
| readonly snapshot?: string | undefined; | ||
| readonly partID?: string | undefined; | ||
| readonly diff?: string | undefined; | ||
| }; | ||
| }, { | ||
| readonly source: keyof Cases; | ||
| }>) => any>(cases: Cases, orElse: OrElse): (value: { | ||
| readonly source: "current"; | ||
| readonly revert: { | ||
| readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">; | ||
| readonly files?: readonly { | ||
| readonly file: string; | ||
| readonly patch: string; | ||
| readonly additions: number; | ||
| readonly deletions: number; | ||
| readonly status: "added" | "deleted" | "modified"; | ||
| }[] | undefined; | ||
| readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined; | ||
| readonly partID?: string | undefined; | ||
| }; | ||
| } | { | ||
| readonly source: "legacy"; | ||
| readonly revert: { | ||
| readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">; | ||
| readonly files?: readonly { | ||
| readonly path: string; | ||
| readonly status: "added" | "deleted" | "modified"; | ||
| readonly additions: number; | ||
| readonly deletions: number; | ||
| readonly patch: string; | ||
| }[] | undefined; | ||
| readonly snapshot?: string | undefined; | ||
| readonly partID?: string | undefined; | ||
| readonly diff?: string | undefined; | ||
| }; | ||
| }) => import("effect/Unify").Unify<{ [K_1 in keyof Cases]-?: NonNullable<Cases[K_1]> extends (...args: Array<any>) => infer R ? R : never; }[keyof Cases] | ReturnType<OrElse>>; | ||
| }; | ||
| }, never, never>; |
+2
-2
| { | ||
| "$schema": "https://json.schemastore.org/package.json", | ||
| "name": "@opencode-ai/schema", | ||
| "version": "0.0.0-dev-18534", | ||
| "version": "0.0.0-dev-18535", | ||
| "type": "module", | ||
@@ -34,3 +34,3 @@ "license": "MIT", | ||
| "@standard-schema/spec": "1.1.0", | ||
| "effect": "4.0.0-rc.111" | ||
| "effect": "4.0.0-rc.112" | ||
| }, | ||
@@ -37,0 +37,0 @@ "devDependencies": { |
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
3751971
0.26%59321
0.32%+ Added
- Removed
Updated