@opencode-ai/schema
Advanced tools
+14
-0
| export * as Vcs from "./vcs.js"; | ||
| import { Schema } from "effect"; | ||
| export declare const Branch: Schema.Struct<{ | ||
| readonly current: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>; | ||
| readonly default: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>; | ||
| }>; | ||
| export interface Branch extends Schema.Schema.Type<typeof Branch> { | ||
| } | ||
| export declare const Info: Schema.Struct<{ | ||
| readonly branch: Schema.Struct<{ | ||
| readonly current: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>; | ||
| readonly default: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>; | ||
| }>; | ||
| }>; | ||
| export interface Info extends Schema.Schema.Type<typeof Info> { | ||
| } | ||
| export declare const Mode: Schema.Literals<readonly ["working", "branch"]>; | ||
@@ -4,0 +18,0 @@ export type Mode = typeof Mode.Type; |
+8
-1
| export * as Vcs from "./vcs.js"; | ||
| import { Schema } from "effect"; | ||
| import { NonNegativeInt } from "./schema.js"; | ||
| import { NonNegativeInt, optional } from "./schema.js"; | ||
| export const Branch = Schema.Struct({ | ||
| current: optional(Schema.String), | ||
| default: optional(Schema.String), | ||
| }).annotate({ identifier: "Vcs.Branch" }); | ||
| export const Info = Schema.Struct({ | ||
| branch: Branch, | ||
| }).annotate({ identifier: "Vcs.Info" }); | ||
| export const Mode = Schema.Literals(["working", "branch"]).annotate({ identifier: "Vcs.Mode" }); | ||
@@ -5,0 +12,0 @@ export const FileStatus = Schema.Struct({ |
+1
-1
| { | ||
| "$schema": "https://json.schemastore.org/package.json", | ||
| "name": "@opencode-ai/schema", | ||
| "version": "0.0.0-next-16741", | ||
| "version": "0.0.0-next-16745", | ||
| "type": "module", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
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.
3631186
0.03%56965
0.04%