@opencode-ai/schema 0.0.0-dev-18911 → 0.0.0-dev-18953
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/config.d.ts +1 -1
- package/dist/config.js +2 -4
- package/dist/event-manifest.d.ts +0 -72
- package/dist/plugin.d.ts +0 -73
- package/dist/plugin.js +1 -5
- package/package.json +1 -1
package/dist/config.d.ts
CHANGED
|
@@ -36,7 +36,7 @@ declare const Info_base: Schema.Class<Info, Schema.Struct<{
|
|
|
36
36
|
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
37
37
|
}>]>, never, never>>, never, never>;
|
|
38
38
|
readonly default_agent: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
39
|
-
readonly
|
|
39
|
+
readonly update: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["disable", "notify", "auto"]>>>, Schema.optionalKey<Schema.Literals<readonly ["disable", "notify", "auto"]>>, never, never>;
|
|
40
40
|
readonly share: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["manual", "auto", "disabled"]>>>, Schema.optionalKey<Schema.Literals<readonly ["manual", "auto", "disabled"]>>, never, never>;
|
|
41
41
|
readonly enterprise: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
42
42
|
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
package/dist/config.js
CHANGED
|
@@ -32,10 +32,8 @@ export class Info extends Schema.Class("Config.Info")({
|
|
|
32
32
|
default_agent: Schema.String.pipe(optional).annotate({
|
|
33
33
|
description: "Default primary agent to use when no session agent is selected",
|
|
34
34
|
}),
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
.annotate({
|
|
38
|
-
description: "Automatically update or notify when a new version is available",
|
|
35
|
+
update: Schema.Literals(["disable", "notify", "auto"]).pipe(optional).annotate({
|
|
36
|
+
description: "Disable updates, notify when one is available, or install automatically",
|
|
39
37
|
}),
|
|
40
38
|
share: Schema.Literals(["manual", "auto", "disabled"]).pipe(optional).annotate({
|
|
41
39
|
description: "Control whether sessions may be shared manually, automatically, or not at all",
|
package/dist/event-manifest.d.ts
CHANGED
|
@@ -4317,42 +4317,6 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
4317
4317
|
};
|
|
4318
4318
|
readonly reply: Schema.Literals<readonly ["once", "always", "reject"]>;
|
|
4319
4319
|
}>;
|
|
4320
|
-
}, Schema.Struct<{
|
|
4321
|
-
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
4322
|
-
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
4323
|
-
};
|
|
4324
|
-
readonly created: Schema.Finite;
|
|
4325
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
4326
|
-
readonly type: Schema.Literal<"plugin.added">;
|
|
4327
|
-
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
4328
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
4329
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
4330
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
4331
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
4332
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
4333
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
4334
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
4335
|
-
}>, never, never>;
|
|
4336
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
4337
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
4338
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
4339
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
4340
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
4341
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
4342
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
4343
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
4344
|
-
}>, never, never>;
|
|
4345
|
-
}>>, never, never>;
|
|
4346
|
-
readonly data: Schema.Struct<{
|
|
4347
|
-
readonly id: Schema.brand<Schema.String, "Plugin.ID">;
|
|
4348
|
-
}>;
|
|
4349
|
-
}> & {
|
|
4350
|
-
type: "plugin.added";
|
|
4351
|
-
durability: "ephemeral";
|
|
4352
|
-
durable: undefined;
|
|
4353
|
-
data: Schema.Struct<{
|
|
4354
|
-
readonly id: Schema.brand<Schema.String, "Plugin.ID">;
|
|
4355
|
-
}>;
|
|
4356
4320
|
}, Schema.Struct<{
|
|
4357
4321
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
4358
4322
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -10433,42 +10397,6 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
10433
10397
|
};
|
|
10434
10398
|
readonly reply: Schema.Literals<readonly ["once", "always", "reject"]>;
|
|
10435
10399
|
}>;
|
|
10436
|
-
}, Schema.Struct<{
|
|
10437
|
-
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
10438
|
-
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
10439
|
-
};
|
|
10440
|
-
readonly created: Schema.Finite;
|
|
10441
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
10442
|
-
readonly type: Schema.Literal<"plugin.added">;
|
|
10443
|
-
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
10444
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
10445
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
10446
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
10447
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
10448
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
10449
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
10450
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
10451
|
-
}>, never, never>;
|
|
10452
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
10453
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
10454
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
10455
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
10456
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
10457
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
10458
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
10459
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
10460
|
-
}>, never, never>;
|
|
10461
|
-
}>>, never, never>;
|
|
10462
|
-
readonly data: Schema.Struct<{
|
|
10463
|
-
readonly id: Schema.brand<Schema.String, "Plugin.ID">;
|
|
10464
|
-
}>;
|
|
10465
|
-
}> & {
|
|
10466
|
-
type: "plugin.added";
|
|
10467
|
-
durability: "ephemeral";
|
|
10468
|
-
durable: undefined;
|
|
10469
|
-
data: Schema.Struct<{
|
|
10470
|
-
readonly id: Schema.brand<Schema.String, "Plugin.ID">;
|
|
10471
|
-
}>;
|
|
10472
10400
|
}, Schema.Struct<{
|
|
10473
10401
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
10474
10402
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
package/dist/plugin.d.ts
CHANGED
|
@@ -63,43 +63,6 @@ export declare const Info: Schema.Struct<{
|
|
|
63
63
|
}>]>;
|
|
64
64
|
}>;
|
|
65
65
|
export declare const Event: {
|
|
66
|
-
Added: Schema.Struct<{
|
|
67
|
-
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
68
|
-
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
69
|
-
};
|
|
70
|
-
readonly created: Schema.Finite;
|
|
71
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
72
|
-
readonly type: Schema.Literal<"plugin.added">;
|
|
73
|
-
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
74
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
75
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
76
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
77
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
78
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
79
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
80
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
81
|
-
}>, never, never>;
|
|
82
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
83
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
84
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
85
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
86
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
87
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
88
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
89
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
90
|
-
}>, never, never>;
|
|
91
|
-
}>>, never, never>;
|
|
92
|
-
readonly data: Schema.Struct<{
|
|
93
|
-
readonly id: Schema.brand<Schema.String, "Plugin.ID">;
|
|
94
|
-
}>;
|
|
95
|
-
}> & {
|
|
96
|
-
type: "plugin.added";
|
|
97
|
-
durability: "ephemeral";
|
|
98
|
-
durable: undefined;
|
|
99
|
-
data: Schema.Struct<{
|
|
100
|
-
readonly id: Schema.brand<Schema.String, "Plugin.ID">;
|
|
101
|
-
}>;
|
|
102
|
-
};
|
|
103
66
|
Updated: Schema.Struct<{
|
|
104
67
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
105
68
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -134,42 +97,6 @@ export declare const Event: {
|
|
|
134
97
|
data: Schema.Struct<{}>;
|
|
135
98
|
};
|
|
136
99
|
Definitions: readonly [Schema.Struct<{
|
|
137
|
-
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
138
|
-
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
139
|
-
};
|
|
140
|
-
readonly created: Schema.Finite;
|
|
141
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
142
|
-
readonly type: Schema.Literal<"plugin.added">;
|
|
143
|
-
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
144
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
145
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
146
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
147
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
148
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
149
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
150
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
151
|
-
}>, never, never>;
|
|
152
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
153
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
154
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
155
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
156
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
157
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
158
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
159
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
160
|
-
}>, never, never>;
|
|
161
|
-
}>>, never, never>;
|
|
162
|
-
readonly data: Schema.Struct<{
|
|
163
|
-
readonly id: Schema.brand<Schema.String, "Plugin.ID">;
|
|
164
|
-
}>;
|
|
165
|
-
}> & {
|
|
166
|
-
type: "plugin.added";
|
|
167
|
-
durability: "ephemeral";
|
|
168
|
-
durable: undefined;
|
|
169
|
-
data: Schema.Struct<{
|
|
170
|
-
readonly id: Schema.brand<Schema.String, "Plugin.ID">;
|
|
171
|
-
}>;
|
|
172
|
-
}, Schema.Struct<{
|
|
173
100
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
174
101
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
175
102
|
};
|
package/dist/plugin.js
CHANGED
|
@@ -30,12 +30,8 @@ export const Info = Schema.Struct({
|
|
|
30
30
|
features: Features,
|
|
31
31
|
state: State,
|
|
32
32
|
}).annotate({ identifier: "Plugin.Info" });
|
|
33
|
-
const Added = ephemeral({
|
|
34
|
-
type: "plugin.added",
|
|
35
|
-
schema: { id: ID },
|
|
36
|
-
});
|
|
37
33
|
const Updated = ephemeral({
|
|
38
34
|
type: "plugin.updated",
|
|
39
35
|
schema: {},
|
|
40
36
|
});
|
|
41
|
-
export const Event = {
|
|
37
|
+
export const Event = { Updated, Definitions: inventory(Updated) };
|