@opencode-ai/protocol 0.0.0-dev-18224 → 0.0.0-dev-18227
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/groups/event.d.ts +203 -0
- package/package.json +2 -2
package/dist/groups/event.d.ts
CHANGED
|
@@ -4103,6 +4103,92 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
4103
4103
|
durability: "ephemeral";
|
|
4104
4104
|
durable: undefined;
|
|
4105
4105
|
data: Schema.Struct<{}>;
|
|
4106
|
+
}, Schema.Struct<{
|
|
4107
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
4108
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
4109
|
+
};
|
|
4110
|
+
readonly created: Schema.Finite;
|
|
4111
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
4112
|
+
readonly type: Schema.Literal<"project.updated">;
|
|
4113
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
4114
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
4115
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
4116
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
4117
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
4118
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
4119
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
4120
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
4121
|
+
}>, never, never>;
|
|
4122
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
4123
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
4124
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
4125
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
4126
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
4127
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
4128
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
4129
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
4130
|
+
}>, never, never>;
|
|
4131
|
+
}>>, never, never>;
|
|
4132
|
+
readonly data: Schema.Struct<{
|
|
4133
|
+
readonly id: Schema.brand<Schema.String, "Project.ID"> & {
|
|
4134
|
+
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
4135
|
+
};
|
|
4136
|
+
readonly canonical: Schema.brand<Schema.String, "AbsolutePath">;
|
|
4137
|
+
readonly vcs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["git", "hg"]>>>, Schema.optionalKey<Schema.Literals<readonly ["git", "hg"]>>, never, never>;
|
|
4138
|
+
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
4139
|
+
readonly icon: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
4140
|
+
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
4141
|
+
readonly override: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
4142
|
+
readonly color: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
4143
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
4144
|
+
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
4145
|
+
readonly override: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
4146
|
+
readonly color: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
4147
|
+
}>>, never, never>;
|
|
4148
|
+
readonly commands: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
4149
|
+
readonly start: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
4150
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
4151
|
+
readonly start: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
4152
|
+
}>>, never, never>;
|
|
4153
|
+
readonly time: Schema.Struct<{
|
|
4154
|
+
readonly created: Schema.Int;
|
|
4155
|
+
readonly updated: Schema.Int;
|
|
4156
|
+
readonly initialized: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
4157
|
+
}>;
|
|
4158
|
+
readonly sandboxes: Schema.$Array<Schema.String>;
|
|
4159
|
+
}>;
|
|
4160
|
+
}> & {
|
|
4161
|
+
type: "project.updated";
|
|
4162
|
+
durability: "ephemeral";
|
|
4163
|
+
durable: undefined;
|
|
4164
|
+
data: Schema.Struct<{
|
|
4165
|
+
readonly id: Schema.brand<Schema.String, "Project.ID"> & {
|
|
4166
|
+
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
4167
|
+
};
|
|
4168
|
+
readonly canonical: Schema.brand<Schema.String, "AbsolutePath">;
|
|
4169
|
+
readonly vcs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["git", "hg"]>>>, Schema.optionalKey<Schema.Literals<readonly ["git", "hg"]>>, never, never>;
|
|
4170
|
+
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
4171
|
+
readonly icon: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
4172
|
+
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
4173
|
+
readonly override: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
4174
|
+
readonly color: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
4175
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
4176
|
+
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
4177
|
+
readonly override: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
4178
|
+
readonly color: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
4179
|
+
}>>, never, never>;
|
|
4180
|
+
readonly commands: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
4181
|
+
readonly start: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
4182
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
4183
|
+
readonly start: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
4184
|
+
}>>, never, never>;
|
|
4185
|
+
readonly time: Schema.Struct<{
|
|
4186
|
+
readonly created: Schema.Int;
|
|
4187
|
+
readonly updated: Schema.Int;
|
|
4188
|
+
readonly initialized: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
4189
|
+
}>;
|
|
4190
|
+
readonly sandboxes: Schema.$Array<Schema.String>;
|
|
4191
|
+
}>;
|
|
4106
4192
|
}, Schema.Struct<{
|
|
4107
4193
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
4108
4194
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -6006,6 +6092,37 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
6006
6092
|
readonly metadata?: {
|
|
6007
6093
|
readonly [x: string]: unknown;
|
|
6008
6094
|
} | undefined;
|
|
6095
|
+
} | {
|
|
6096
|
+
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
6097
|
+
readonly data: {
|
|
6098
|
+
readonly id: string & import("effect/Brand").Brand<"Project.ID">;
|
|
6099
|
+
readonly canonical: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
6100
|
+
readonly time: {
|
|
6101
|
+
readonly created: number;
|
|
6102
|
+
readonly updated: number;
|
|
6103
|
+
readonly initialized?: number | undefined;
|
|
6104
|
+
};
|
|
6105
|
+
readonly sandboxes: readonly string[];
|
|
6106
|
+
readonly name?: string | undefined;
|
|
6107
|
+
readonly vcs?: "git" | "hg" | undefined;
|
|
6108
|
+
readonly icon?: {
|
|
6109
|
+
readonly url?: string | undefined;
|
|
6110
|
+
readonly color?: string | undefined;
|
|
6111
|
+
readonly override?: string | undefined;
|
|
6112
|
+
} | undefined;
|
|
6113
|
+
readonly commands?: {
|
|
6114
|
+
readonly start?: string | undefined;
|
|
6115
|
+
} | undefined;
|
|
6116
|
+
};
|
|
6117
|
+
readonly type: "project.updated";
|
|
6118
|
+
readonly created: number;
|
|
6119
|
+
readonly location?: {
|
|
6120
|
+
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
6121
|
+
readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
6122
|
+
} | undefined;
|
|
6123
|
+
readonly metadata?: {
|
|
6124
|
+
readonly [x: string]: unknown;
|
|
6125
|
+
} | undefined;
|
|
6009
6126
|
} | {
|
|
6010
6127
|
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
6011
6128
|
readonly data: {
|
|
@@ -11824,6 +11941,92 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
11824
11941
|
durability: "ephemeral";
|
|
11825
11942
|
durable: undefined;
|
|
11826
11943
|
data: Schema.Struct<{}>;
|
|
11944
|
+
}, Schema.Struct<{
|
|
11945
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
11946
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
11947
|
+
};
|
|
11948
|
+
readonly created: Schema.Finite;
|
|
11949
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
11950
|
+
readonly type: Schema.Literal<"project.updated">;
|
|
11951
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
11952
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
11953
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
11954
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
11955
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
11956
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
11957
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
11958
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
11959
|
+
}>, never, never>;
|
|
11960
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
11961
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
11962
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
11963
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
11964
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
11965
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
11966
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
11967
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
11968
|
+
}>, never, never>;
|
|
11969
|
+
}>>, never, never>;
|
|
11970
|
+
readonly data: Schema.Struct<{
|
|
11971
|
+
readonly id: Schema.brand<Schema.String, "Project.ID"> & {
|
|
11972
|
+
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
11973
|
+
};
|
|
11974
|
+
readonly canonical: Schema.brand<Schema.String, "AbsolutePath">;
|
|
11975
|
+
readonly vcs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["git", "hg"]>>>, Schema.optionalKey<Schema.Literals<readonly ["git", "hg"]>>, never, never>;
|
|
11976
|
+
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11977
|
+
readonly icon: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
11978
|
+
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11979
|
+
readonly override: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11980
|
+
readonly color: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11981
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
11982
|
+
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11983
|
+
readonly override: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11984
|
+
readonly color: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11985
|
+
}>>, never, never>;
|
|
11986
|
+
readonly commands: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
11987
|
+
readonly start: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11988
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
11989
|
+
readonly start: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11990
|
+
}>>, never, never>;
|
|
11991
|
+
readonly time: Schema.Struct<{
|
|
11992
|
+
readonly created: Schema.Int;
|
|
11993
|
+
readonly updated: Schema.Int;
|
|
11994
|
+
readonly initialized: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
11995
|
+
}>;
|
|
11996
|
+
readonly sandboxes: Schema.$Array<Schema.String>;
|
|
11997
|
+
}>;
|
|
11998
|
+
}> & {
|
|
11999
|
+
type: "project.updated";
|
|
12000
|
+
durability: "ephemeral";
|
|
12001
|
+
durable: undefined;
|
|
12002
|
+
data: Schema.Struct<{
|
|
12003
|
+
readonly id: Schema.brand<Schema.String, "Project.ID"> & {
|
|
12004
|
+
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
12005
|
+
};
|
|
12006
|
+
readonly canonical: Schema.brand<Schema.String, "AbsolutePath">;
|
|
12007
|
+
readonly vcs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["git", "hg"]>>>, Schema.optionalKey<Schema.Literals<readonly ["git", "hg"]>>, never, never>;
|
|
12008
|
+
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
12009
|
+
readonly icon: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
12010
|
+
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
12011
|
+
readonly override: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
12012
|
+
readonly color: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
12013
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
12014
|
+
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
12015
|
+
readonly override: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
12016
|
+
readonly color: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
12017
|
+
}>>, never, never>;
|
|
12018
|
+
readonly commands: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
12019
|
+
readonly start: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
12020
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
12021
|
+
readonly start: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
12022
|
+
}>>, never, never>;
|
|
12023
|
+
readonly time: Schema.Struct<{
|
|
12024
|
+
readonly created: Schema.Int;
|
|
12025
|
+
readonly updated: Schema.Int;
|
|
12026
|
+
readonly initialized: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
12027
|
+
}>;
|
|
12028
|
+
readonly sandboxes: Schema.$Array<Schema.String>;
|
|
12029
|
+
}>;
|
|
11827
12030
|
}, Schema.Struct<{
|
|
11828
12031
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
11829
12032
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@opencode-ai/protocol",
|
|
4
|
-
"version": "0.0.0-dev-
|
|
4
|
+
"version": "0.0.0-dev-18227",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"typecheck": "tsgo --noEmit"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@opencode-ai/schema": "0.0.0-dev-
|
|
35
|
+
"@opencode-ai/schema": "0.0.0-dev-18227",
|
|
36
36
|
"effect": "4.0.0-rc.111"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|