@opencode-ai/schema 0.0.0-next-14798 → 0.0.0-next-14801

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.
Files changed (75) hide show
  1. package/dist/agent.d.ts +6 -28
  2. package/dist/agent.js +2 -2
  3. package/dist/catalog.d.ts +6 -28
  4. package/dist/catalog.js +2 -2
  5. package/dist/command.d.ts +6 -28
  6. package/dist/command.js +2 -2
  7. package/dist/durable-event-manifest.d.ts +254 -8301
  8. package/dist/durable-event-manifest.js +2 -5
  9. package/dist/event-manifest.d.ts +994 -2747
  10. package/dist/event-manifest.js +2 -2
  11. package/dist/event.d.ts +65 -19
  12. package/dist/event.js +24 -5
  13. package/dist/filesystem-watcher.d.ts +6 -28
  14. package/dist/filesystem-watcher.js +2 -2
  15. package/dist/filesystem.d.ts +6 -28
  16. package/dist/filesystem.js +2 -2
  17. package/dist/form.d.ts +18 -84
  18. package/dist/form.js +4 -4
  19. package/dist/ide-event.d.ts +6 -28
  20. package/dist/ide-event.js +1 -1
  21. package/dist/installation-event.d.ts +12 -56
  22. package/dist/installation-event.js +2 -2
  23. package/dist/integration.d.ts +12 -56
  24. package/dist/integration.js +3 -3
  25. package/dist/lsp-event.d.ts +6 -28
  26. package/dist/lsp-event.js +1 -1
  27. package/dist/mcp-event.d.ts +18 -84
  28. package/dist/mcp-event.js +3 -3
  29. package/dist/models-dev.d.ts +6 -28
  30. package/dist/models-dev.js +2 -2
  31. package/dist/permission.d.ts +12 -56
  32. package/dist/permission.js +3 -3
  33. package/dist/plugin.d.ts +6 -28
  34. package/dist/plugin.js +2 -2
  35. package/dist/project-directories.d.ts +6 -28
  36. package/dist/project-directories.js +2 -2
  37. package/dist/project.d.ts +6 -28
  38. package/dist/project.js +2 -2
  39. package/dist/pty.d.ts +24 -112
  40. package/dist/pty.js +5 -5
  41. package/dist/question.d.ts +18 -84
  42. package/dist/question.js +4 -4
  43. package/dist/reference.d.ts +6 -28
  44. package/dist/reference.js +2 -2
  45. package/dist/server-event.d.ts +12 -56
  46. package/dist/server-event.js +2 -2
  47. package/dist/session-compaction-event.d.ts +6 -28
  48. package/dist/session-compaction-event.js +1 -1
  49. package/dist/session-event.d.ts +1900 -2530
  50. package/dist/session-event.js +37 -37
  51. package/dist/session-status-event.d.ts +12 -56
  52. package/dist/session-status-event.js +2 -2
  53. package/dist/session-todo.d.ts +6 -28
  54. package/dist/session-todo.js +2 -2
  55. package/dist/shell.d.ts +18 -84
  56. package/dist/shell.js +4 -4
  57. package/dist/skill.d.ts +6 -28
  58. package/dist/skill.js +2 -2
  59. package/dist/tui-event.d.ts +24 -112
  60. package/dist/tui-event.js +4 -4
  61. package/dist/v1/legacy-event.d.ts +6 -28
  62. package/dist/v1/legacy-event.js +2 -2
  63. package/dist/v1/permission.d.ts +12 -56
  64. package/dist/v1/permission.js +3 -3
  65. package/dist/v1/question.d.ts +18 -84
  66. package/dist/v1/question.js +4 -4
  67. package/dist/v1/session.d.ts +139 -280
  68. package/dist/v1/session.js +11 -11
  69. package/dist/vcs-event.d.ts +6 -28
  70. package/dist/vcs-event.js +1 -1
  71. package/dist/workspace-event.d.ts +18 -84
  72. package/dist/workspace-event.js +3 -3
  73. package/dist/worktree-event.d.ts +12 -56
  74. package/dist/worktree-event.js +2 -2
  75. package/package.json +1 -1
@@ -6,15 +6,6 @@ export declare const Installed: Schema.Struct<{
6
6
  };
7
7
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
8
8
  readonly type: Schema.Literal<"ide.installed">;
9
- readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
10
- readonly aggregateID: Schema.String;
11
- readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
12
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
13
- }>>>, Schema.optionalKey<Schema.Struct<{
14
- readonly aggregateID: Schema.String;
15
- readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
16
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
17
- }>>, never, never>;
18
9
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
19
10
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
20
11
  readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
@@ -38,14 +29,12 @@ export declare const Installed: Schema.Struct<{
38
29
  readonly ide: Schema.String;
39
30
  }>;
40
31
  }> & {
32
+ type: "ide.installed";
33
+ durability: "ephemeral";
34
+ durable: undefined;
41
35
  data: Schema.Struct<{
42
36
  readonly ide: Schema.String;
43
37
  }>;
44
- durable?: {
45
- readonly version: number;
46
- readonly aggregate: string;
47
- } | undefined;
48
- type: "ide.installed";
49
38
  };
50
39
  export declare const Definitions: readonly [Schema.Struct<{
51
40
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
@@ -53,15 +42,6 @@ export declare const Definitions: readonly [Schema.Struct<{
53
42
  };
54
43
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
55
44
  readonly type: Schema.Literal<"ide.installed">;
56
- readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
57
- readonly aggregateID: Schema.String;
58
- readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
59
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
60
- }>>>, Schema.optionalKey<Schema.Struct<{
61
- readonly aggregateID: Schema.String;
62
- readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
63
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
64
- }>>, never, never>;
65
45
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
66
46
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
67
47
  readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
@@ -85,12 +65,10 @@ export declare const Definitions: readonly [Schema.Struct<{
85
65
  readonly ide: Schema.String;
86
66
  }>;
87
67
  }> & {
68
+ type: "ide.installed";
69
+ durability: "ephemeral";
70
+ durable: undefined;
88
71
  data: Schema.Struct<{
89
72
  readonly ide: Schema.String;
90
73
  }>;
91
- durable?: {
92
- readonly version: number;
93
- readonly aggregate: string;
94
- } | undefined;
95
- type: "ide.installed";
96
74
  }];
package/dist/ide-event.js CHANGED
@@ -1,7 +1,7 @@
1
1
  export * as IdeEvent from "./ide-event.js";
2
2
  import { Schema } from "effect";
3
3
  import { Event } from "./event.js";
4
- export const Installed = Event.define({
4
+ export const Installed = Event.ephemeral({
5
5
  type: "ide.installed",
6
6
  schema: {
7
7
  ide: Schema.String,
@@ -6,15 +6,6 @@ export declare const Updated: Schema.Struct<{
6
6
  };
7
7
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
8
8
  readonly type: Schema.Literal<"installation.updated">;
9
- readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
10
- readonly aggregateID: Schema.String;
11
- readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
12
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
13
- }>>>, Schema.optionalKey<Schema.Struct<{
14
- readonly aggregateID: Schema.String;
15
- readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
16
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
17
- }>>, never, never>;
18
9
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
19
10
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
20
11
  readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
@@ -38,14 +29,12 @@ export declare const Updated: Schema.Struct<{
38
29
  readonly version: Schema.String;
39
30
  }>;
40
31
  }> & {
32
+ type: "installation.updated";
33
+ durability: "ephemeral";
34
+ durable: undefined;
41
35
  data: Schema.Struct<{
42
36
  readonly version: Schema.String;
43
37
  }>;
44
- durable?: {
45
- readonly version: number;
46
- readonly aggregate: string;
47
- } | undefined;
48
- type: "installation.updated";
49
38
  };
50
39
  export declare const UpdateAvailable: Schema.Struct<{
51
40
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
@@ -53,15 +42,6 @@ export declare const UpdateAvailable: Schema.Struct<{
53
42
  };
54
43
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
55
44
  readonly type: Schema.Literal<"installation.update-available">;
56
- readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
57
- readonly aggregateID: Schema.String;
58
- readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
59
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
60
- }>>>, Schema.optionalKey<Schema.Struct<{
61
- readonly aggregateID: Schema.String;
62
- readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
63
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
64
- }>>, never, never>;
65
45
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
66
46
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
67
47
  readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
@@ -85,14 +65,12 @@ export declare const UpdateAvailable: Schema.Struct<{
85
65
  readonly version: Schema.String;
86
66
  }>;
87
67
  }> & {
68
+ type: "installation.update-available";
69
+ durability: "ephemeral";
70
+ durable: undefined;
88
71
  data: Schema.Struct<{
89
72
  readonly version: Schema.String;
90
73
  }>;
91
- durable?: {
92
- readonly version: number;
93
- readonly aggregate: string;
94
- } | undefined;
95
- type: "installation.update-available";
96
74
  };
97
75
  export declare const Definitions: readonly [Schema.Struct<{
98
76
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
@@ -100,15 +78,6 @@ export declare const Definitions: readonly [Schema.Struct<{
100
78
  };
101
79
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
102
80
  readonly type: Schema.Literal<"installation.updated">;
103
- readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
104
- readonly aggregateID: Schema.String;
105
- readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
106
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
107
- }>>>, Schema.optionalKey<Schema.Struct<{
108
- readonly aggregateID: Schema.String;
109
- readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
110
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
111
- }>>, never, never>;
112
81
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
113
82
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
114
83
  readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
@@ -132,29 +101,18 @@ export declare const Definitions: readonly [Schema.Struct<{
132
101
  readonly version: Schema.String;
133
102
  }>;
134
103
  }> & {
104
+ type: "installation.updated";
105
+ durability: "ephemeral";
106
+ durable: undefined;
135
107
  data: Schema.Struct<{
136
108
  readonly version: Schema.String;
137
109
  }>;
138
- durable?: {
139
- readonly version: number;
140
- readonly aggregate: string;
141
- } | undefined;
142
- type: "installation.updated";
143
110
  }, Schema.Struct<{
144
111
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
145
112
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
146
113
  };
147
114
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
148
115
  readonly type: Schema.Literal<"installation.update-available">;
149
- readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
150
- readonly aggregateID: Schema.String;
151
- readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
152
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
153
- }>>>, Schema.optionalKey<Schema.Struct<{
154
- readonly aggregateID: Schema.String;
155
- readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
156
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
157
- }>>, never, never>;
158
116
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
159
117
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
160
118
  readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
@@ -178,12 +136,10 @@ export declare const Definitions: readonly [Schema.Struct<{
178
136
  readonly version: Schema.String;
179
137
  }>;
180
138
  }> & {
139
+ type: "installation.update-available";
140
+ durability: "ephemeral";
141
+ durable: undefined;
181
142
  data: Schema.Struct<{
182
143
  readonly version: Schema.String;
183
144
  }>;
184
- durable?: {
185
- readonly version: number;
186
- readonly aggregate: string;
187
- } | undefined;
188
- type: "installation.update-available";
189
145
  }];
@@ -1,13 +1,13 @@
1
1
  export * as InstallationEvent from "./installation-event.js";
2
2
  import { Schema } from "effect";
3
3
  import { Event } from "./event.js";
4
- export const Updated = Event.define({
4
+ export const Updated = Event.ephemeral({
5
5
  type: "installation.updated",
6
6
  schema: {
7
7
  version: Schema.String,
8
8
  },
9
9
  });
10
- export const UpdateAvailable = Event.define({
10
+ export const UpdateAvailable = Event.ephemeral({
11
11
  type: "installation.update-available",
12
12
  schema: {
13
13
  version: Schema.String,
@@ -253,15 +253,6 @@ export declare const Event: {
253
253
  };
254
254
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
255
255
  readonly type: Schema.Literal<"integration.updated">;
256
- readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
257
- readonly aggregateID: Schema.String;
258
- readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
259
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
260
- }>>>, Schema.optionalKey<Schema.Struct<{
261
- readonly aggregateID: Schema.String;
262
- readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
263
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
264
- }>>, never, never>;
265
256
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
266
257
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
267
258
  readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
@@ -283,12 +274,10 @@ export declare const Event: {
283
274
  }>>, never, never>;
284
275
  readonly data: Schema.Struct<{}>;
285
276
  }> & {
286
- data: Schema.Struct<{}>;
287
- durable?: {
288
- readonly version: number;
289
- readonly aggregate: string;
290
- } | undefined;
291
277
  type: "integration.updated";
278
+ durability: "ephemeral";
279
+ durable: undefined;
280
+ data: Schema.Struct<{}>;
292
281
  };
293
282
  ConnectionUpdated: Schema.Struct<{
294
283
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
@@ -296,15 +285,6 @@ export declare const Event: {
296
285
  };
297
286
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
298
287
  readonly type: Schema.Literal<"integration.connection.updated">;
299
- readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
300
- readonly aggregateID: Schema.String;
301
- readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
302
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
303
- }>>>, Schema.optionalKey<Schema.Struct<{
304
- readonly aggregateID: Schema.String;
305
- readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
306
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
307
- }>>, never, never>;
308
288
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
309
289
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
310
290
  readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
@@ -328,14 +308,12 @@ export declare const Event: {
328
308
  readonly integrationID: Schema.brand<Schema.String, "Integration.ID">;
329
309
  }>;
330
310
  }> & {
311
+ type: "integration.connection.updated";
312
+ durability: "ephemeral";
313
+ durable: undefined;
331
314
  data: Schema.Struct<{
332
315
  readonly integrationID: Schema.brand<Schema.String, "Integration.ID">;
333
316
  }>;
334
- durable?: {
335
- readonly version: number;
336
- readonly aggregate: string;
337
- } | undefined;
338
- type: "integration.connection.updated";
339
317
  };
340
318
  Definitions: readonly [Schema.Struct<{
341
319
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
@@ -343,15 +321,6 @@ export declare const Event: {
343
321
  };
344
322
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
345
323
  readonly type: Schema.Literal<"integration.updated">;
346
- readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
347
- readonly aggregateID: Schema.String;
348
- readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
349
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
350
- }>>>, Schema.optionalKey<Schema.Struct<{
351
- readonly aggregateID: Schema.String;
352
- readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
353
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
354
- }>>, never, never>;
355
324
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
356
325
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
357
326
  readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
@@ -373,27 +342,16 @@ export declare const Event: {
373
342
  }>>, never, never>;
374
343
  readonly data: Schema.Struct<{}>;
375
344
  }> & {
376
- data: Schema.Struct<{}>;
377
- durable?: {
378
- readonly version: number;
379
- readonly aggregate: string;
380
- } | undefined;
381
345
  type: "integration.updated";
346
+ durability: "ephemeral";
347
+ durable: undefined;
348
+ data: Schema.Struct<{}>;
382
349
  }, Schema.Struct<{
383
350
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
384
351
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
385
352
  };
386
353
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
387
354
  readonly type: Schema.Literal<"integration.connection.updated">;
388
- readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
389
- readonly aggregateID: Schema.String;
390
- readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
391
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
392
- }>>>, Schema.optionalKey<Schema.Struct<{
393
- readonly aggregateID: Schema.String;
394
- readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
395
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
396
- }>>, never, never>;
397
355
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
398
356
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
399
357
  readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
@@ -417,14 +375,12 @@ export declare const Event: {
417
375
  readonly integrationID: Schema.brand<Schema.String, "Integration.ID">;
418
376
  }>;
419
377
  }> & {
378
+ type: "integration.connection.updated";
379
+ durability: "ephemeral";
380
+ durable: undefined;
420
381
  data: Schema.Struct<{
421
382
  readonly integrationID: Schema.brand<Schema.String, "Integration.ID">;
422
383
  }>;
423
- durable?: {
424
- readonly version: number;
425
- readonly aggregate: string;
426
- } | undefined;
427
- type: "integration.connection.updated";
428
384
  }];
429
385
  };
430
386
  export interface Ref extends Schema.Schema.Type<typeof Ref> {
@@ -1,7 +1,7 @@
1
1
  export * as Integration from "./integration.js";
2
2
  import { Schema } from "effect";
3
3
  import { optional } from "./schema.js";
4
- import { define, inventory } from "./event.js";
4
+ import { ephemeral, inventory } from "./event.js";
5
5
  import { Connection } from "./connection.js";
6
6
  import { ascending } from "./identifier.js";
7
7
  import { statics } from "./schema.js";
@@ -50,11 +50,11 @@ export const Method = Schema.Union([OAuthMethod, KeyMethod, EnvMethod])
50
50
  .pipe(Schema.toTaggedUnion("type"))
51
51
  .annotate({ identifier: "Integration.Method" });
52
52
  export const Inputs = Schema.Record(Schema.String, Schema.String).annotate({ identifier: "Integration.Inputs" });
53
- const Updated = define({
53
+ const Updated = ephemeral({
54
54
  type: "integration.updated",
55
55
  schema: {},
56
56
  });
57
- const ConnectionUpdated = define({
57
+ const ConnectionUpdated = ephemeral({
58
58
  type: "integration.connection.updated",
59
59
  schema: { integrationID: ID },
60
60
  });
@@ -5,15 +5,6 @@ export declare const Updated: import("effect/Schema").Struct<{
5
5
  };
6
6
  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>;
7
7
  readonly type: import("effect/Schema").Literal<"lsp.updated">;
8
- readonly durable: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
9
- readonly aggregateID: import("effect/Schema").String;
10
- readonly seq: import("effect/Schema").brand<import("effect/Schema").Int, "Event.Seq">;
11
- readonly version: import("effect/Schema").brand<import("effect/Schema").Int, "Event.Version">;
12
- }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
13
- readonly aggregateID: import("effect/Schema").String;
14
- readonly seq: import("effect/Schema").brand<import("effect/Schema").Int, "Event.Seq">;
15
- readonly version: import("effect/Schema").brand<import("effect/Schema").Int, "Event.Version">;
16
- }>>, never, never>;
17
8
  readonly location: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
18
9
  readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
19
10
  readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
@@ -35,12 +26,10 @@ export declare const Updated: import("effect/Schema").Struct<{
35
26
  }>>, never, never>;
36
27
  readonly data: import("effect/Schema").Struct<{}>;
37
28
  }> & {
38
- data: import("effect/Schema").Struct<{}>;
39
- durable?: {
40
- readonly version: number;
41
- readonly aggregate: string;
42
- } | undefined;
43
29
  type: "lsp.updated";
30
+ durability: "ephemeral";
31
+ durable: undefined;
32
+ data: import("effect/Schema").Struct<{}>;
44
33
  };
45
34
  export declare const Definitions: readonly [import("effect/Schema").Struct<{
46
35
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
@@ -48,15 +37,6 @@ export declare const Definitions: readonly [import("effect/Schema").Struct<{
48
37
  };
49
38
  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>;
50
39
  readonly type: import("effect/Schema").Literal<"lsp.updated">;
51
- readonly durable: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
52
- readonly aggregateID: import("effect/Schema").String;
53
- readonly seq: import("effect/Schema").brand<import("effect/Schema").Int, "Event.Seq">;
54
- readonly version: import("effect/Schema").brand<import("effect/Schema").Int, "Event.Version">;
55
- }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
56
- readonly aggregateID: import("effect/Schema").String;
57
- readonly seq: import("effect/Schema").brand<import("effect/Schema").Int, "Event.Seq">;
58
- readonly version: import("effect/Schema").brand<import("effect/Schema").Int, "Event.Version">;
59
- }>>, never, never>;
60
40
  readonly location: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
61
41
  readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
62
42
  readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
@@ -78,10 +58,8 @@ export declare const Definitions: readonly [import("effect/Schema").Struct<{
78
58
  }>>, never, never>;
79
59
  readonly data: import("effect/Schema").Struct<{}>;
80
60
  }> & {
81
- data: import("effect/Schema").Struct<{}>;
82
- durable?: {
83
- readonly version: number;
84
- readonly aggregate: string;
85
- } | undefined;
86
61
  type: "lsp.updated";
62
+ durability: "ephemeral";
63
+ durable: undefined;
64
+ data: import("effect/Schema").Struct<{}>;
87
65
  }];
package/dist/lsp-event.js CHANGED
@@ -1,4 +1,4 @@
1
1
  export * as LspEvent from "./lsp-event.js";
2
2
  import { Event } from "./event.js";
3
- export const Updated = Event.define({ type: "lsp.updated", schema: {} });
3
+ export const Updated = Event.ephemeral({ type: "lsp.updated", schema: {} });
4
4
  export const Definitions = Event.inventory(Updated);
@@ -6,15 +6,6 @@ export declare const ToolsChanged: Schema.Struct<{
6
6
  };
7
7
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
8
8
  readonly type: Schema.Literal<"mcp.tools.changed">;
9
- readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
10
- readonly aggregateID: Schema.String;
11
- readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
12
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
13
- }>>>, Schema.optionalKey<Schema.Struct<{
14
- readonly aggregateID: Schema.String;
15
- readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
16
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
17
- }>>, never, never>;
18
9
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
19
10
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
20
11
  readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
@@ -38,14 +29,12 @@ export declare const ToolsChanged: Schema.Struct<{
38
29
  readonly server: Schema.String;
39
30
  }>;
40
31
  }> & {
32
+ type: "mcp.tools.changed";
33
+ durability: "ephemeral";
34
+ durable: undefined;
41
35
  data: Schema.Struct<{
42
36
  readonly server: Schema.String;
43
37
  }>;
44
- durable?: {
45
- readonly version: number;
46
- readonly aggregate: string;
47
- } | undefined;
48
- type: "mcp.tools.changed";
49
38
  };
50
39
  export declare const BrowserOpenFailed: Schema.Struct<{
51
40
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
@@ -53,15 +42,6 @@ export declare const BrowserOpenFailed: Schema.Struct<{
53
42
  };
54
43
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
55
44
  readonly type: Schema.Literal<"mcp.browser.open.failed">;
56
- readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
57
- readonly aggregateID: Schema.String;
58
- readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
59
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
60
- }>>>, Schema.optionalKey<Schema.Struct<{
61
- readonly aggregateID: Schema.String;
62
- readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
63
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
64
- }>>, never, never>;
65
45
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
66
46
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
67
47
  readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
@@ -86,15 +66,13 @@ export declare const BrowserOpenFailed: Schema.Struct<{
86
66
  readonly url: Schema.String;
87
67
  }>;
88
68
  }> & {
69
+ type: "mcp.browser.open.failed";
70
+ durability: "ephemeral";
71
+ durable: undefined;
89
72
  data: Schema.Struct<{
90
73
  readonly mcpName: Schema.String;
91
74
  readonly url: Schema.String;
92
75
  }>;
93
- durable?: {
94
- readonly version: number;
95
- readonly aggregate: string;
96
- } | undefined;
97
- type: "mcp.browser.open.failed";
98
76
  };
99
77
  export declare const StatusChanged: Schema.Struct<{
100
78
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
@@ -102,15 +80,6 @@ export declare const StatusChanged: Schema.Struct<{
102
80
  };
103
81
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
104
82
  readonly type: Schema.Literal<"mcp.status.changed">;
105
- readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
106
- readonly aggregateID: Schema.String;
107
- readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
108
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
109
- }>>>, Schema.optionalKey<Schema.Struct<{
110
- readonly aggregateID: Schema.String;
111
- readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
112
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
113
- }>>, never, never>;
114
83
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
115
84
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
116
85
  readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
@@ -134,14 +103,12 @@ export declare const StatusChanged: Schema.Struct<{
134
103
  readonly server: Schema.String;
135
104
  }>;
136
105
  }> & {
106
+ type: "mcp.status.changed";
107
+ durability: "ephemeral";
108
+ durable: undefined;
137
109
  data: Schema.Struct<{
138
110
  readonly server: Schema.String;
139
111
  }>;
140
- durable?: {
141
- readonly version: number;
142
- readonly aggregate: string;
143
- } | undefined;
144
- type: "mcp.status.changed";
145
112
  };
146
113
  export declare const Definitions: readonly [Schema.Struct<{
147
114
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
@@ -149,15 +116,6 @@ export declare const Definitions: readonly [Schema.Struct<{
149
116
  };
150
117
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
151
118
  readonly type: Schema.Literal<"mcp.tools.changed">;
152
- readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
153
- readonly aggregateID: Schema.String;
154
- readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
155
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
156
- }>>>, Schema.optionalKey<Schema.Struct<{
157
- readonly aggregateID: Schema.String;
158
- readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
159
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
160
- }>>, never, never>;
161
119
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
162
120
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
163
121
  readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
@@ -181,29 +139,18 @@ export declare const Definitions: readonly [Schema.Struct<{
181
139
  readonly server: Schema.String;
182
140
  }>;
183
141
  }> & {
142
+ type: "mcp.tools.changed";
143
+ durability: "ephemeral";
144
+ durable: undefined;
184
145
  data: Schema.Struct<{
185
146
  readonly server: Schema.String;
186
147
  }>;
187
- durable?: {
188
- readonly version: number;
189
- readonly aggregate: string;
190
- } | undefined;
191
- type: "mcp.tools.changed";
192
148
  }, Schema.Struct<{
193
149
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
194
150
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
195
151
  };
196
152
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
197
153
  readonly type: Schema.Literal<"mcp.browser.open.failed">;
198
- readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
199
- readonly aggregateID: Schema.String;
200
- readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
201
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
202
- }>>>, Schema.optionalKey<Schema.Struct<{
203
- readonly aggregateID: Schema.String;
204
- readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
205
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
206
- }>>, never, never>;
207
154
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
208
155
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
209
156
  readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
@@ -228,30 +175,19 @@ export declare const Definitions: readonly [Schema.Struct<{
228
175
  readonly url: Schema.String;
229
176
  }>;
230
177
  }> & {
178
+ type: "mcp.browser.open.failed";
179
+ durability: "ephemeral";
180
+ durable: undefined;
231
181
  data: Schema.Struct<{
232
182
  readonly mcpName: Schema.String;
233
183
  readonly url: Schema.String;
234
184
  }>;
235
- durable?: {
236
- readonly version: number;
237
- readonly aggregate: string;
238
- } | undefined;
239
- type: "mcp.browser.open.failed";
240
185
  }, Schema.Struct<{
241
186
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
242
187
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
243
188
  };
244
189
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
245
190
  readonly type: Schema.Literal<"mcp.status.changed">;
246
- readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
247
- readonly aggregateID: Schema.String;
248
- readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
249
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
250
- }>>>, Schema.optionalKey<Schema.Struct<{
251
- readonly aggregateID: Schema.String;
252
- readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
253
- readonly version: Schema.brand<Schema.Int, "Event.Version">;
254
- }>>, never, never>;
255
191
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
256
192
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
257
193
  readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
@@ -275,12 +211,10 @@ export declare const Definitions: readonly [Schema.Struct<{
275
211
  readonly server: Schema.String;
276
212
  }>;
277
213
  }> & {
214
+ type: "mcp.status.changed";
215
+ durability: "ephemeral";
216
+ durable: undefined;
278
217
  data: Schema.Struct<{
279
218
  readonly server: Schema.String;
280
219
  }>;
281
- durable?: {
282
- readonly version: number;
283
- readonly aggregate: string;
284
- } | undefined;
285
- type: "mcp.status.changed";
286
220
  }];