@opencode-ai/schema 0.0.0-next-14938 → 0.0.0-next-14942
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/event-manifest.d.ts +64 -0
- package/dist/plugin.d.ts +65 -0
- package/dist/plugin.js +5 -1
- package/package.json +1 -1
package/dist/event-manifest.d.ts
CHANGED
|
@@ -5342,6 +5342,38 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
5342
5342
|
data: Schema.Struct<{
|
|
5343
5343
|
readonly id: Schema.brand<Schema.String, "Plugin.ID">;
|
|
5344
5344
|
}>;
|
|
5345
|
+
}, Schema.Struct<{
|
|
5346
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
5347
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
5348
|
+
};
|
|
5349
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
5350
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
5351
|
+
readonly type: Schema.Literal<"plugin.updated">;
|
|
5352
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
5353
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
5354
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
5355
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
5356
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
5357
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
5358
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
5359
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
5360
|
+
}>, never, never>;
|
|
5361
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
5362
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
5363
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
5364
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
5365
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
5366
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
5367
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
5368
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
5369
|
+
}>, never, never>;
|
|
5370
|
+
}>>, never, never>;
|
|
5371
|
+
readonly data: Schema.Struct<{}>;
|
|
5372
|
+
}> & {
|
|
5373
|
+
type: "plugin.updated";
|
|
5374
|
+
durability: "ephemeral";
|
|
5375
|
+
durable: undefined;
|
|
5376
|
+
data: Schema.Struct<{}>;
|
|
5345
5377
|
}, Schema.Struct<{
|
|
5346
5378
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
5347
5379
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -12978,6 +13010,38 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
12978
13010
|
data: Schema.Struct<{
|
|
12979
13011
|
readonly id: Schema.brand<Schema.String, "Plugin.ID">;
|
|
12980
13012
|
}>;
|
|
13013
|
+
}, Schema.Struct<{
|
|
13014
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
13015
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
13016
|
+
};
|
|
13017
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
13018
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
13019
|
+
readonly type: Schema.Literal<"plugin.updated">;
|
|
13020
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
13021
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
13022
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
13023
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
13024
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
13025
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
13026
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
13027
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
13028
|
+
}>, never, never>;
|
|
13029
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
13030
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
13031
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
13032
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
13033
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
13034
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
13035
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
13036
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
13037
|
+
}>, never, never>;
|
|
13038
|
+
}>>, never, never>;
|
|
13039
|
+
readonly data: Schema.Struct<{}>;
|
|
13040
|
+
}> & {
|
|
13041
|
+
type: "plugin.updated";
|
|
13042
|
+
durability: "ephemeral";
|
|
13043
|
+
durable: undefined;
|
|
13044
|
+
data: Schema.Struct<{}>;
|
|
12981
13045
|
}, Schema.Struct<{
|
|
12982
13046
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
12983
13047
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
package/dist/plugin.d.ts
CHANGED
|
@@ -45,6 +45,39 @@ export declare const Event: {
|
|
|
45
45
|
readonly id: Schema.brand<Schema.String, "Plugin.ID">;
|
|
46
46
|
}>;
|
|
47
47
|
};
|
|
48
|
+
Updated: Schema.Struct<{
|
|
49
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
50
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
51
|
+
};
|
|
52
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
53
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
54
|
+
readonly type: Schema.Literal<"plugin.updated">;
|
|
55
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
56
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
57
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
58
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
59
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
60
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
61
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
62
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
63
|
+
}>, never, never>;
|
|
64
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
65
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
66
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
67
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
68
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
69
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
70
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
71
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
72
|
+
}>, never, never>;
|
|
73
|
+
}>>, never, never>;
|
|
74
|
+
readonly data: Schema.Struct<{}>;
|
|
75
|
+
}> & {
|
|
76
|
+
type: "plugin.updated";
|
|
77
|
+
durability: "ephemeral";
|
|
78
|
+
durable: undefined;
|
|
79
|
+
data: Schema.Struct<{}>;
|
|
80
|
+
};
|
|
48
81
|
Definitions: readonly [Schema.Struct<{
|
|
49
82
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
50
83
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -81,5 +114,37 @@ export declare const Event: {
|
|
|
81
114
|
data: Schema.Struct<{
|
|
82
115
|
readonly id: Schema.brand<Schema.String, "Plugin.ID">;
|
|
83
116
|
}>;
|
|
117
|
+
}, Schema.Struct<{
|
|
118
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
119
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
120
|
+
};
|
|
121
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
122
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
123
|
+
readonly type: Schema.Literal<"plugin.updated">;
|
|
124
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
125
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
126
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
127
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
128
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
129
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
130
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
131
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
132
|
+
}>, never, never>;
|
|
133
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
134
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
135
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
136
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
137
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
138
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
139
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
140
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
141
|
+
}>, never, never>;
|
|
142
|
+
}>>, never, never>;
|
|
143
|
+
readonly data: Schema.Struct<{}>;
|
|
144
|
+
}> & {
|
|
145
|
+
type: "plugin.updated";
|
|
146
|
+
durability: "ephemeral";
|
|
147
|
+
durable: undefined;
|
|
148
|
+
data: Schema.Struct<{}>;
|
|
84
149
|
}];
|
|
85
150
|
};
|
package/dist/plugin.js
CHANGED
|
@@ -9,4 +9,8 @@ const Added = ephemeral({
|
|
|
9
9
|
type: "plugin.added",
|
|
10
10
|
schema: { id: ID },
|
|
11
11
|
});
|
|
12
|
-
|
|
12
|
+
const Updated = ephemeral({
|
|
13
|
+
type: "plugin.updated",
|
|
14
|
+
schema: {},
|
|
15
|
+
});
|
|
16
|
+
export const Event = { Added, Updated, Definitions: inventory(Added, Updated) };
|