@opencode-ai/schema 0.0.0-dev-18792 → 0.0.0-dev-18794
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/plugin.d.ts +6 -2
- package/dist/plugin.js +6 -1
- package/package.json +1 -1
package/dist/plugin.d.ts
CHANGED
|
@@ -6,7 +6,9 @@ export declare const Source: Schema.Union<readonly [Schema.Struct<{
|
|
|
6
6
|
readonly type: Schema.Literal<"builtin">;
|
|
7
7
|
}>, Schema.Struct<{
|
|
8
8
|
readonly type: Schema.Literal<"package">;
|
|
9
|
-
readonly
|
|
9
|
+
readonly target: Schema.String;
|
|
10
|
+
readonly version: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11
|
+
readonly outdated: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
|
|
10
12
|
}>, Schema.Struct<{
|
|
11
13
|
readonly type: Schema.Literal<"local">;
|
|
12
14
|
readonly path: Schema.String;
|
|
@@ -35,7 +37,9 @@ export declare const Info: Schema.Struct<{
|
|
|
35
37
|
readonly type: Schema.Literal<"builtin">;
|
|
36
38
|
}>, Schema.Struct<{
|
|
37
39
|
readonly type: Schema.Literal<"package">;
|
|
38
|
-
readonly
|
|
40
|
+
readonly target: Schema.String;
|
|
41
|
+
readonly version: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
42
|
+
readonly outdated: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
|
|
39
43
|
}>, Schema.Struct<{
|
|
40
44
|
readonly type: Schema.Literal<"local">;
|
|
41
45
|
readonly path: Schema.String;
|
package/dist/plugin.js
CHANGED
|
@@ -5,7 +5,12 @@ import { optional } from "./schema.js";
|
|
|
5
5
|
export const ID = Schema.String.pipe(Schema.brand("Plugin.ID"));
|
|
6
6
|
export const Source = Schema.Union([
|
|
7
7
|
Schema.Struct({ type: Schema.Literal("builtin") }),
|
|
8
|
-
Schema.Struct({
|
|
8
|
+
Schema.Struct({
|
|
9
|
+
type: Schema.Literal("package"),
|
|
10
|
+
target: Schema.String,
|
|
11
|
+
version: Schema.String.pipe(optional),
|
|
12
|
+
outdated: Schema.Literal(true).pipe(optional),
|
|
13
|
+
}),
|
|
9
14
|
Schema.Struct({ type: Schema.Literal("local"), path: Schema.String }),
|
|
10
15
|
Schema.Struct({ type: Schema.Literal("sdk") }),
|
|
11
16
|
]).annotate({ identifier: "Plugin.Source" });
|