@opencode-ai/schema 0.0.0-next-14709 → 0.0.0-next-14714

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/command.d.ts CHANGED
@@ -42,3 +42,91 @@ export declare const Info: Schema.Struct<{
42
42
  }>>, never, never>;
43
43
  readonly subtask: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
44
44
  }>;
45
+ export declare const Event: {
46
+ Updated: Schema.Struct<{
47
+ readonly id: Schema.brand<Schema.String, "Event.ID"> & {
48
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
49
+ };
50
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
51
+ readonly type: Schema.Literal<"command.updated">;
52
+ readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
53
+ readonly aggregateID: Schema.String;
54
+ readonly seq: Schema.Int;
55
+ readonly version: Schema.Int;
56
+ }>>>, Schema.optionalKey<Schema.Struct<{
57
+ readonly aggregateID: Schema.String;
58
+ readonly seq: Schema.Int;
59
+ readonly version: Schema.Int;
60
+ }>>, never, never>;
61
+ readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
62
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
63
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
64
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
65
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
66
+ }>>, Schema.optionalKey<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
+ }>, never, never>;
70
+ }>>>, Schema.optionalKey<Schema.Struct<{
71
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
72
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
73
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
74
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
75
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
76
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
77
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
78
+ }>, never, never>;
79
+ }>>, never, never>;
80
+ readonly data: Schema.Struct<{}>;
81
+ }> & {
82
+ data: Schema.Struct<{}>;
83
+ durable?: {
84
+ readonly version: number;
85
+ readonly aggregate: string;
86
+ } | undefined;
87
+ type: "command.updated";
88
+ };
89
+ Definitions: readonly [Schema.Struct<{
90
+ readonly id: Schema.brand<Schema.String, "Event.ID"> & {
91
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
92
+ };
93
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
94
+ readonly type: Schema.Literal<"command.updated">;
95
+ readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
96
+ readonly aggregateID: Schema.String;
97
+ readonly seq: Schema.Int;
98
+ readonly version: Schema.Int;
99
+ }>>>, Schema.optionalKey<Schema.Struct<{
100
+ readonly aggregateID: Schema.String;
101
+ readonly seq: Schema.Int;
102
+ readonly version: Schema.Int;
103
+ }>>, never, never>;
104
+ readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
105
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
106
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
107
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
108
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
109
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
110
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
111
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
112
+ }>, never, never>;
113
+ }>>>, Schema.optionalKey<Schema.Struct<{
114
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
115
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
116
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
117
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
118
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
119
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
120
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
121
+ }>, never, never>;
122
+ }>>, never, never>;
123
+ readonly data: Schema.Struct<{}>;
124
+ }> & {
125
+ data: Schema.Struct<{}>;
126
+ durable?: {
127
+ readonly version: number;
128
+ readonly aggregate: string;
129
+ } | undefined;
130
+ type: "command.updated";
131
+ }];
132
+ };
package/dist/command.js CHANGED
@@ -1,7 +1,9 @@
1
1
  export * as Command from "./command.js";
2
2
  import { Schema } from "effect";
3
+ import { define, inventory } from "./event.js";
3
4
  import { optional } from "./schema.js";
4
5
  import { Model } from "./model.js";
6
+ const Updated = define({ type: "command.updated", schema: {} });
5
7
  export const Info = Schema.Struct({
6
8
  name: Schema.String,
7
9
  template: Schema.String,
@@ -10,3 +12,7 @@ export const Info = Schema.Struct({
10
12
  model: Model.Ref.pipe(optional),
11
13
  subtask: Schema.Boolean.pipe(optional),
12
14
  }).annotate({ identifier: "CommandV2.Info" });
15
+ export const Event = {
16
+ Updated,
17
+ Definitions: inventory(Updated),
18
+ };
@@ -6153,6 +6153,48 @@ export declare const ServerDefinitions: readonly [import("effect/Schema").Struct
6153
6153
  readonly aggregate: string;
6154
6154
  } | undefined;
6155
6155
  type: "project.directories.updated";
6156
+ }, import("effect/Schema").Struct<{
6157
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
6158
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
6159
+ };
6160
+ readonly metadata: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>, never, never>;
6161
+ readonly type: import("effect/Schema").Literal<"command.updated">;
6162
+ readonly durable: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
6163
+ readonly aggregateID: import("effect/Schema").String;
6164
+ readonly seq: import("effect/Schema").Int;
6165
+ readonly version: import("effect/Schema").Int;
6166
+ }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
6167
+ readonly aggregateID: import("effect/Schema").String;
6168
+ readonly seq: import("effect/Schema").Int;
6169
+ readonly version: import("effect/Schema").Int;
6170
+ }>>, never, never>;
6171
+ readonly location: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
6172
+ readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
6173
+ readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
6174
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
6175
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
6176
+ }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
6177
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
6178
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
6179
+ }>, never, never>;
6180
+ }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
6181
+ readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
6182
+ readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
6183
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
6184
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
6185
+ }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
6186
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
6187
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
6188
+ }>, never, never>;
6189
+ }>>, never, never>;
6190
+ readonly data: import("effect/Schema").Struct<{}>;
6191
+ }> & {
6192
+ data: import("effect/Schema").Struct<{}>;
6193
+ durable?: {
6194
+ readonly version: number;
6195
+ readonly aggregate: string;
6196
+ } | undefined;
6197
+ type: "command.updated";
6156
6198
  }, import("effect/Schema").Struct<{
6157
6199
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
6158
6200
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
@@ -13198,6 +13240,48 @@ export declare const Definitions: readonly [import("effect/Schema").Struct<{
13198
13240
  readonly aggregate: string;
13199
13241
  } | undefined;
13200
13242
  type: "project.directories.updated";
13243
+ }, import("effect/Schema").Struct<{
13244
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
13245
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
13246
+ };
13247
+ readonly metadata: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>, never, never>;
13248
+ readonly type: import("effect/Schema").Literal<"command.updated">;
13249
+ readonly durable: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
13250
+ readonly aggregateID: import("effect/Schema").String;
13251
+ readonly seq: import("effect/Schema").Int;
13252
+ readonly version: import("effect/Schema").Int;
13253
+ }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
13254
+ readonly aggregateID: import("effect/Schema").String;
13255
+ readonly seq: import("effect/Schema").Int;
13256
+ readonly version: import("effect/Schema").Int;
13257
+ }>>, never, never>;
13258
+ readonly location: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
13259
+ readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
13260
+ readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
13261
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
13262
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
13263
+ }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
13264
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
13265
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
13266
+ }>, never, never>;
13267
+ }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
13268
+ readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
13269
+ readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
13270
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
13271
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
13272
+ }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
13273
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
13274
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
13275
+ }>, never, never>;
13276
+ }>>, never, never>;
13277
+ readonly data: import("effect/Schema").Struct<{}>;
13278
+ }> & {
13279
+ data: import("effect/Schema").Struct<{}>;
13280
+ durable?: {
13281
+ readonly version: number;
13282
+ readonly aggregate: string;
13283
+ } | undefined;
13284
+ type: "command.updated";
13201
13285
  }, import("effect/Schema").Struct<{
13202
13286
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
13203
13287
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
@@ -1,6 +1,7 @@
1
1
  export * as EventManifest from "./event-manifest.js";
2
2
  import { Agent } from "./agent.js";
3
3
  import { Catalog } from "./catalog.js";
4
+ import { Command } from "./command.js";
4
5
  import { Durable } from "./durable-event-manifest.js";
5
6
  import { Event } from "./event.js";
6
7
  import { FileSystem } from "./filesystem.js";
@@ -36,7 +37,7 @@ const sessionV1DurableDefinitions = SessionV1.Event.Definitions.filter((definiti
36
37
  const sessionV1LiveDefinitions = SessionV1.Event.Definitions.filter((definition) => definition.durable === undefined);
37
38
  const coreDefinitions = Event.inventory(...sessionV1DurableDefinitions, ...SessionEvent.Definitions);
38
39
  const foundationDefinitions = Event.inventory(...ModelsDev.Event.Definitions, ...Integration.Event.Definitions, ...Catalog.Event.Definitions, ...Agent.Event.Definitions, ...coreDefinitions);
39
- const featureDefinitions = Event.inventory(...FileSystem.Event.Definitions, ...Reference.Event.Definitions, ...Permission.Event.Definitions, ...Plugin.Event.Definitions, ...ProjectDirectories.Event.Definitions, ...Skill.Event.Definitions, ...FileSystemWatcher.Event.Definitions, ...Pty.Event.Definitions, ...Shell.Event.Definitions, ...Question.Event.Definitions);
40
+ const featureDefinitions = Event.inventory(...FileSystem.Event.Definitions, ...Reference.Event.Definitions, ...Permission.Event.Definitions, ...Plugin.Event.Definitions, ...ProjectDirectories.Event.Definitions, ...Command.Event.Definitions, ...Skill.Event.Definitions, ...FileSystemWatcher.Event.Definitions, ...Pty.Event.Definitions, ...Shell.Event.Definitions, ...Question.Event.Definitions);
40
41
  export const ServerDefinitions = Event.inventory(...foundationDefinitions, ...featureDefinitions, ...SessionTodo.Event.Definitions);
41
42
  export const Definitions = Event.inventory(...foundationDefinitions, ...sessionV1LiveDefinitions, ...InstallationEvent.Definitions, ...featureDefinitions, ...SessionTodo.Event.Definitions, ...LspEvent.Definitions, ...PermissionV1.Event.Definitions, ...TuiEvent.Definitions, ...McpEvent.Definitions, ...LegacyEvent.Definitions, ...Project.Event.Definitions, ...SessionStatusEvent.Definitions, ...QuestionV1.Event.Definitions, ...SessionCompactionEvent.Definitions, ...VcsEvent.Definitions, ...WorkspaceEvent.Definitions, ...WorktreeEvent.Definitions, ...ServerEvent.Definitions);
42
43
  export const Latest = Event.latest(Definitions);
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-14709",
4
+ "version": "0.0.0-next-14714",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {