@opencode-ai/schema 0.0.0-next-16732 → 0.0.0-next-16745

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/vcs.d.ts CHANGED
@@ -1,5 +1,19 @@
1
1
  export * as Vcs from "./vcs.js";
2
2
  import { Schema } from "effect";
3
+ export declare const Branch: Schema.Struct<{
4
+ readonly current: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
5
+ readonly default: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
6
+ }>;
7
+ export interface Branch extends Schema.Schema.Type<typeof Branch> {
8
+ }
9
+ export declare const Info: Schema.Struct<{
10
+ readonly branch: Schema.Struct<{
11
+ readonly current: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
12
+ readonly default: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
13
+ }>;
14
+ }>;
15
+ export interface Info extends Schema.Schema.Type<typeof Info> {
16
+ }
3
17
  export declare const Mode: Schema.Literals<readonly ["working", "branch"]>;
4
18
  export type Mode = typeof Mode.Type;
5
19
  export declare const FileStatus: Schema.Struct<{
package/dist/vcs.js CHANGED
@@ -1,6 +1,13 @@
1
1
  export * as Vcs from "./vcs.js";
2
2
  import { Schema } from "effect";
3
- import { NonNegativeInt } from "./schema.js";
3
+ import { NonNegativeInt, optional } from "./schema.js";
4
+ export const Branch = Schema.Struct({
5
+ current: optional(Schema.String),
6
+ default: optional(Schema.String),
7
+ }).annotate({ identifier: "Vcs.Branch" });
8
+ export const Info = Schema.Struct({
9
+ branch: Branch,
10
+ }).annotate({ identifier: "Vcs.Info" });
4
11
  export const Mode = Schema.Literals(["working", "branch"]).annotate({ identifier: "Vcs.Mode" });
5
12
  export const FileStatus = Schema.Struct({
6
13
  file: Schema.String,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode-ai/schema",
4
- "version": "0.0.0-next-16732",
4
+ "version": "0.0.0-next-16745",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {