@opencode-ai/schema 0.0.0-next-14723 → 0.0.0-next-14730

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 (46) hide show
  1. package/dist/agent.d.ts +8 -8
  2. package/dist/catalog.d.ts +8 -8
  3. package/dist/command.d.ts +8 -8
  4. package/dist/durable-event-manifest.d.ts +412 -412
  5. package/dist/event-log.d.ts +46 -0
  6. package/dist/event-log.js +44 -0
  7. package/dist/event-manifest.d.ts +1224 -852
  8. package/dist/event-manifest.js +2 -2
  9. package/dist/event.d.ts +16 -6
  10. package/dist/event.js +9 -1
  11. package/dist/filesystem-watcher.d.ts +8 -8
  12. package/dist/filesystem.d.ts +8 -8
  13. package/dist/form.d.ts +1339 -0
  14. package/dist/form.js +105 -0
  15. package/dist/ide-event.d.ts +8 -8
  16. package/dist/index.d.ts +1 -1
  17. package/dist/index.js +1 -1
  18. package/dist/installation-event.d.ts +16 -16
  19. package/dist/integration.d.ts +16 -16
  20. package/dist/lsp-event.d.ts +8 -8
  21. package/dist/mcp-event.d.ts +24 -24
  22. package/dist/models-dev.d.ts +8 -8
  23. package/dist/permission.d.ts +16 -16
  24. package/dist/plugin.d.ts +8 -8
  25. package/dist/project-directories.d.ts +8 -8
  26. package/dist/project.d.ts +8 -8
  27. package/dist/pty.d.ts +32 -32
  28. package/dist/reference.d.ts +8 -8
  29. package/dist/server-event.d.ts +16 -16
  30. package/dist/session-compaction-event.d.ts +8 -8
  31. package/dist/session-event.d.ts +680 -680
  32. package/dist/session-status-event.d.ts +16 -16
  33. package/dist/session-todo.d.ts +8 -8
  34. package/dist/shell.d.ts +24 -24
  35. package/dist/skill.d.ts +8 -8
  36. package/dist/tui-event.d.ts +32 -32
  37. package/dist/v1/legacy-event.d.ts +8 -8
  38. package/dist/v1/permission.d.ts +16 -16
  39. package/dist/v1/question.d.ts +24 -24
  40. package/dist/v1/session.d.ts +92 -92
  41. package/dist/vcs-event.d.ts +8 -8
  42. package/dist/workspace-event.d.ts +24 -24
  43. package/dist/worktree-event.d.ts +16 -16
  44. package/package.json +1 -1
  45. package/dist/question.d.ts +0 -516
  46. package/dist/question.js +0 -64
package/dist/form.js ADDED
@@ -0,0 +1,105 @@
1
+ export * as Form from "./form.js";
2
+ import { Schema } from "effect";
3
+ import { define, inventory } from "./event.js";
4
+ import { ascending } from "./identifier.js";
5
+ import { NonNegativeInt, optional, statics } from "./schema.js";
6
+ const IDSchema = Schema.String.check(Schema.isStartsWith("frm_")).pipe(Schema.brand("Form.ID"));
7
+ export const ID = IDSchema.pipe(statics((schema) => ({ create: (id) => schema.make(id ?? "frm_" + ascending()) })));
8
+ export const Metadata = Schema.Record(Schema.String, Schema.Unknown).annotate({ identifier: "Form.Metadata" });
9
+ export const Option = Schema.Struct({
10
+ value: Schema.String,
11
+ label: Schema.String,
12
+ description: Schema.String.pipe(optional),
13
+ }).annotate({ identifier: "Form.Option" });
14
+ export const When = Schema.Struct({
15
+ key: Schema.String,
16
+ op: Schema.Literals(["eq", "neq"]),
17
+ value: Schema.String,
18
+ }).annotate({ identifier: "Form.When" });
19
+ const FieldBase = {
20
+ key: Schema.String,
21
+ title: Schema.String.pipe(optional),
22
+ description: Schema.String.pipe(optional),
23
+ required: Schema.Boolean.pipe(optional),
24
+ when: When.pipe(optional),
25
+ };
26
+ export const StringField = Schema.Struct({
27
+ ...FieldBase,
28
+ type: Schema.Literal("string"),
29
+ format: Schema.Literals(["email", "uri", "date", "date-time"]).pipe(optional),
30
+ minLength: NonNegativeInt.pipe(optional),
31
+ maxLength: NonNegativeInt.pipe(optional),
32
+ pattern: Schema.String.pipe(optional),
33
+ placeholder: Schema.String.pipe(optional),
34
+ default: Schema.String.pipe(optional),
35
+ options: Schema.Array(Option).pipe(optional),
36
+ custom: Schema.Boolean.pipe(optional),
37
+ }).annotate({ identifier: "Form.StringField" });
38
+ export const NumberField = Schema.Struct({
39
+ ...FieldBase,
40
+ type: Schema.Literal("number"),
41
+ minimum: Schema.Number.pipe(optional),
42
+ maximum: Schema.Number.pipe(optional),
43
+ default: Schema.Number.pipe(optional),
44
+ }).annotate({ identifier: "Form.NumberField" });
45
+ export const IntegerField = Schema.Struct({
46
+ ...FieldBase,
47
+ type: Schema.Literal("integer"),
48
+ minimum: Schema.Number.pipe(optional),
49
+ maximum: Schema.Number.pipe(optional),
50
+ default: Schema.Number.pipe(optional),
51
+ }).annotate({ identifier: "Form.IntegerField" });
52
+ export const BooleanField = Schema.Struct({
53
+ ...FieldBase,
54
+ type: Schema.Literal("boolean"),
55
+ default: Schema.Boolean.pipe(optional),
56
+ }).annotate({ identifier: "Form.BooleanField" });
57
+ export const MultiselectField = Schema.Struct({
58
+ ...FieldBase,
59
+ type: Schema.Literal("multiselect"),
60
+ options: Schema.Array(Option),
61
+ minItems: NonNegativeInt.pipe(optional),
62
+ maxItems: NonNegativeInt.pipe(optional),
63
+ custom: Schema.Boolean.pipe(optional),
64
+ default: Schema.Array(Schema.String).pipe(optional),
65
+ }).annotate({ identifier: "Form.MultiselectField" });
66
+ export const Field = Schema.Union([StringField, NumberField, IntegerField, BooleanField, MultiselectField]).pipe(Schema.toTaggedUnion("type"));
67
+ const InfoBase = {
68
+ id: ID,
69
+ // Public form flows are session-owned. This is intentionally `string` because the server
70
+ // currently accepts an undocumented `global` sentinel for MCP elicitation forms that cannot
71
+ // be attributed to a concrete session yet. Do not document or rely on `global` outside our
72
+ // own clients; remove the sentinel path once MCP elicitation can carry session ownership.
73
+ sessionID: Schema.String,
74
+ title: Schema.String.pipe(optional),
75
+ metadata: Metadata.pipe(optional),
76
+ };
77
+ export const FormInfo = Schema.Struct({
78
+ ...InfoBase,
79
+ mode: Schema.Literal("form"),
80
+ fields: Schema.Array(Field),
81
+ }).annotate({ identifier: "Form.FormInfo" });
82
+ export const UrlInfo = Schema.Struct({
83
+ ...InfoBase,
84
+ mode: Schema.Literal("url"),
85
+ url: Schema.String,
86
+ }).annotate({ identifier: "Form.UrlInfo" });
87
+ export const Info = Schema.Union([FormInfo, UrlInfo]).pipe(Schema.toTaggedUnion("mode"));
88
+ export const Value = Schema.Union([Schema.String, Schema.Number, Schema.Boolean, Schema.Array(Schema.String)]).annotate({
89
+ identifier: "Form.Value",
90
+ });
91
+ export const Answer = Schema.Record(Schema.String, Value).annotate({ identifier: "Form.Answer" });
92
+ export const State = Schema.Union([
93
+ Schema.Struct({ status: Schema.Literal("pending") }),
94
+ Schema.Struct({ status: Schema.Literal("answered"), answer: Answer }),
95
+ Schema.Struct({ status: Schema.Literal("cancelled") }),
96
+ ])
97
+ .pipe(Schema.toTaggedUnion("status"))
98
+ .annotate({ identifier: "Form.State" });
99
+ export const Reply = Schema.Struct({
100
+ answer: Answer,
101
+ }).annotate({ identifier: "Form.Reply" });
102
+ const Created = define({ type: "form.created", schema: { form: Info } });
103
+ const Replied = define({ type: "form.replied", schema: { id: ID, sessionID: Schema.String, answer: Answer } });
104
+ const Cancelled = define({ type: "form.cancelled", schema: { id: ID, sessionID: Schema.String } });
105
+ export const Event = { Created, Replied, Cancelled, Definitions: inventory(Created, Replied, Cancelled) };
@@ -8,12 +8,12 @@ export declare const Installed: Schema.Struct<{
8
8
  readonly type: Schema.Literal<"ide.installed">;
9
9
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
10
10
  readonly aggregateID: Schema.String;
11
- readonly seq: Schema.Int;
12
- readonly version: Schema.Int;
11
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
12
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
13
13
  }>>>, Schema.optionalKey<Schema.Struct<{
14
14
  readonly aggregateID: Schema.String;
15
- readonly seq: Schema.Int;
16
- readonly version: Schema.Int;
15
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
16
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
17
17
  }>>, never, never>;
18
18
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
19
19
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -55,12 +55,12 @@ export declare const Definitions: readonly [Schema.Struct<{
55
55
  readonly type: Schema.Literal<"ide.installed">;
56
56
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
57
57
  readonly aggregateID: Schema.String;
58
- readonly seq: Schema.Int;
59
- readonly version: Schema.Int;
58
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
59
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
60
60
  }>>>, Schema.optionalKey<Schema.Struct<{
61
61
  readonly aggregateID: Schema.String;
62
- readonly seq: Schema.Int;
63
- readonly version: Schema.Int;
62
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
63
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
64
64
  }>>, never, never>;
65
65
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
66
66
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
package/dist/index.d.ts CHANGED
@@ -4,6 +4,7 @@ export { Connection } from "./connection.js";
4
4
  export { Credential } from "./credential.js";
5
5
  export { Event } from "./event.js";
6
6
  export { FileSystem } from "./filesystem.js";
7
+ export { Form } from "./form.js";
7
8
  export { Integration } from "./integration.js";
8
9
  export { LLM } from "./llm.js";
9
10
  export { Location } from "./location.js";
@@ -22,7 +23,6 @@ export { Shell } from "./shell.js";
22
23
  export { Skill } from "./skill.js";
23
24
  export { Pty } from "./pty.js";
24
25
  export { PtyTicket } from "./pty-ticket.js";
25
- export { Question } from "./question.js";
26
26
  export { Workspace } from "./workspace.js";
27
27
  export { Prompt, Source, FileAttachment, AgentAttachment } from "./prompt.js";
28
28
  export { PromptInput } from "./prompt-input.js";
package/dist/index.js CHANGED
@@ -4,6 +4,7 @@ export { Connection } from "./connection.js";
4
4
  export { Credential } from "./credential.js";
5
5
  export { Event } from "./event.js";
6
6
  export { FileSystem } from "./filesystem.js";
7
+ export { Form } from "./form.js";
7
8
  export { Integration } from "./integration.js";
8
9
  export { LLM } from "./llm.js";
9
10
  export { Location } from "./location.js";
@@ -22,7 +23,6 @@ export { Shell } from "./shell.js";
22
23
  export { Skill } from "./skill.js";
23
24
  export { Pty } from "./pty.js";
24
25
  export { PtyTicket } from "./pty-ticket.js";
25
- export { Question } from "./question.js";
26
26
  export { Workspace } from "./workspace.js";
27
27
  export { Prompt, Source, FileAttachment, AgentAttachment } from "./prompt.js";
28
28
  export { PromptInput } from "./prompt-input.js";
@@ -8,12 +8,12 @@ export declare const Updated: Schema.Struct<{
8
8
  readonly type: Schema.Literal<"installation.updated">;
9
9
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
10
10
  readonly aggregateID: Schema.String;
11
- readonly seq: Schema.Int;
12
- readonly version: Schema.Int;
11
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
12
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
13
13
  }>>>, Schema.optionalKey<Schema.Struct<{
14
14
  readonly aggregateID: Schema.String;
15
- readonly seq: Schema.Int;
16
- readonly version: Schema.Int;
15
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
16
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
17
17
  }>>, never, never>;
18
18
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
19
19
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -55,12 +55,12 @@ export declare const UpdateAvailable: Schema.Struct<{
55
55
  readonly type: Schema.Literal<"installation.update-available">;
56
56
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
57
57
  readonly aggregateID: Schema.String;
58
- readonly seq: Schema.Int;
59
- readonly version: Schema.Int;
58
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
59
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
60
60
  }>>>, Schema.optionalKey<Schema.Struct<{
61
61
  readonly aggregateID: Schema.String;
62
- readonly seq: Schema.Int;
63
- readonly version: Schema.Int;
62
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
63
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
64
64
  }>>, never, never>;
65
65
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
66
66
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -102,12 +102,12 @@ export declare const Definitions: readonly [Schema.Struct<{
102
102
  readonly type: Schema.Literal<"installation.updated">;
103
103
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
104
104
  readonly aggregateID: Schema.String;
105
- readonly seq: Schema.Int;
106
- readonly version: Schema.Int;
105
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
106
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
107
107
  }>>>, Schema.optionalKey<Schema.Struct<{
108
108
  readonly aggregateID: Schema.String;
109
- readonly seq: Schema.Int;
110
- readonly version: Schema.Int;
109
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
110
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
111
111
  }>>, never, never>;
112
112
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
113
113
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -148,12 +148,12 @@ export declare const Definitions: readonly [Schema.Struct<{
148
148
  readonly type: Schema.Literal<"installation.update-available">;
149
149
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
150
150
  readonly aggregateID: Schema.String;
151
- readonly seq: Schema.Int;
152
- readonly version: Schema.Int;
151
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
152
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
153
153
  }>>>, Schema.optionalKey<Schema.Struct<{
154
154
  readonly aggregateID: Schema.String;
155
- readonly seq: Schema.Int;
156
- readonly version: Schema.Int;
155
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
156
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
157
157
  }>>, never, never>;
158
158
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
159
159
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -255,12 +255,12 @@ export declare const Event: {
255
255
  readonly type: Schema.Literal<"integration.updated">;
256
256
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
257
257
  readonly aggregateID: Schema.String;
258
- readonly seq: Schema.Int;
259
- readonly version: Schema.Int;
258
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
259
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
260
260
  }>>>, Schema.optionalKey<Schema.Struct<{
261
261
  readonly aggregateID: Schema.String;
262
- readonly seq: Schema.Int;
263
- readonly version: Schema.Int;
262
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
263
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
264
264
  }>>, never, never>;
265
265
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
266
266
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -298,12 +298,12 @@ export declare const Event: {
298
298
  readonly type: Schema.Literal<"integration.connection.updated">;
299
299
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
300
300
  readonly aggregateID: Schema.String;
301
- readonly seq: Schema.Int;
302
- readonly version: Schema.Int;
301
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
302
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
303
303
  }>>>, Schema.optionalKey<Schema.Struct<{
304
304
  readonly aggregateID: Schema.String;
305
- readonly seq: Schema.Int;
306
- readonly version: Schema.Int;
305
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
306
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
307
307
  }>>, never, never>;
308
308
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
309
309
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -345,12 +345,12 @@ export declare const Event: {
345
345
  readonly type: Schema.Literal<"integration.updated">;
346
346
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
347
347
  readonly aggregateID: Schema.String;
348
- readonly seq: Schema.Int;
349
- readonly version: Schema.Int;
348
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
349
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
350
350
  }>>>, Schema.optionalKey<Schema.Struct<{
351
351
  readonly aggregateID: Schema.String;
352
- readonly seq: Schema.Int;
353
- readonly version: Schema.Int;
352
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
353
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
354
354
  }>>, never, never>;
355
355
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
356
356
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -387,12 +387,12 @@ export declare const Event: {
387
387
  readonly type: Schema.Literal<"integration.connection.updated">;
388
388
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
389
389
  readonly aggregateID: Schema.String;
390
- readonly seq: Schema.Int;
391
- readonly version: Schema.Int;
390
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
391
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
392
392
  }>>>, Schema.optionalKey<Schema.Struct<{
393
393
  readonly aggregateID: Schema.String;
394
- readonly seq: Schema.Int;
395
- readonly version: Schema.Int;
394
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
395
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
396
396
  }>>, never, never>;
397
397
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
398
398
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -7,12 +7,12 @@ export declare const Updated: import("effect/Schema").Struct<{
7
7
  readonly type: import("effect/Schema").Literal<"lsp.updated">;
8
8
  readonly durable: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
9
9
  readonly aggregateID: import("effect/Schema").String;
10
- readonly seq: import("effect/Schema").Int;
11
- readonly version: import("effect/Schema").Int;
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
12
  }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
13
13
  readonly aggregateID: import("effect/Schema").String;
14
- readonly seq: import("effect/Schema").Int;
15
- readonly version: import("effect/Schema").Int;
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
16
  }>>, never, never>;
17
17
  readonly location: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
18
18
  readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
@@ -50,12 +50,12 @@ export declare const Definitions: readonly [import("effect/Schema").Struct<{
50
50
  readonly type: import("effect/Schema").Literal<"lsp.updated">;
51
51
  readonly durable: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
52
52
  readonly aggregateID: import("effect/Schema").String;
53
- readonly seq: import("effect/Schema").Int;
54
- readonly version: import("effect/Schema").Int;
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
55
  }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
56
56
  readonly aggregateID: import("effect/Schema").String;
57
- readonly seq: import("effect/Schema").Int;
58
- readonly version: import("effect/Schema").Int;
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
59
  }>>, never, never>;
60
60
  readonly location: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
61
61
  readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
@@ -8,12 +8,12 @@ export declare const ToolsChanged: Schema.Struct<{
8
8
  readonly type: Schema.Literal<"mcp.tools.changed">;
9
9
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
10
10
  readonly aggregateID: Schema.String;
11
- readonly seq: Schema.Int;
12
- readonly version: Schema.Int;
11
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
12
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
13
13
  }>>>, Schema.optionalKey<Schema.Struct<{
14
14
  readonly aggregateID: Schema.String;
15
- readonly seq: Schema.Int;
16
- readonly version: Schema.Int;
15
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
16
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
17
17
  }>>, never, never>;
18
18
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
19
19
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -55,12 +55,12 @@ export declare const BrowserOpenFailed: Schema.Struct<{
55
55
  readonly type: Schema.Literal<"mcp.browser.open.failed">;
56
56
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
57
57
  readonly aggregateID: Schema.String;
58
- readonly seq: Schema.Int;
59
- readonly version: Schema.Int;
58
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
59
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
60
60
  }>>>, Schema.optionalKey<Schema.Struct<{
61
61
  readonly aggregateID: Schema.String;
62
- readonly seq: Schema.Int;
63
- readonly version: Schema.Int;
62
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
63
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
64
64
  }>>, never, never>;
65
65
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
66
66
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -104,12 +104,12 @@ export declare const StatusChanged: Schema.Struct<{
104
104
  readonly type: Schema.Literal<"mcp.status.changed">;
105
105
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
106
106
  readonly aggregateID: Schema.String;
107
- readonly seq: Schema.Int;
108
- readonly version: Schema.Int;
107
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
108
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
109
109
  }>>>, Schema.optionalKey<Schema.Struct<{
110
110
  readonly aggregateID: Schema.String;
111
- readonly seq: Schema.Int;
112
- readonly version: Schema.Int;
111
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
112
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
113
113
  }>>, never, never>;
114
114
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
115
115
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -151,12 +151,12 @@ export declare const Definitions: readonly [Schema.Struct<{
151
151
  readonly type: Schema.Literal<"mcp.tools.changed">;
152
152
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
153
153
  readonly aggregateID: Schema.String;
154
- readonly seq: Schema.Int;
155
- readonly version: Schema.Int;
154
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
155
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
156
156
  }>>>, Schema.optionalKey<Schema.Struct<{
157
157
  readonly aggregateID: Schema.String;
158
- readonly seq: Schema.Int;
159
- readonly version: Schema.Int;
158
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
159
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
160
160
  }>>, never, never>;
161
161
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
162
162
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -197,12 +197,12 @@ export declare const Definitions: readonly [Schema.Struct<{
197
197
  readonly type: Schema.Literal<"mcp.browser.open.failed">;
198
198
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
199
199
  readonly aggregateID: Schema.String;
200
- readonly seq: Schema.Int;
201
- readonly version: Schema.Int;
200
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
201
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
202
202
  }>>>, Schema.optionalKey<Schema.Struct<{
203
203
  readonly aggregateID: Schema.String;
204
- readonly seq: Schema.Int;
205
- readonly version: Schema.Int;
204
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
205
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
206
206
  }>>, never, never>;
207
207
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
208
208
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -245,12 +245,12 @@ export declare const Definitions: readonly [Schema.Struct<{
245
245
  readonly type: Schema.Literal<"mcp.status.changed">;
246
246
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
247
247
  readonly aggregateID: Schema.String;
248
- readonly seq: Schema.Int;
249
- readonly version: Schema.Int;
248
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
249
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
250
250
  }>>>, Schema.optionalKey<Schema.Struct<{
251
251
  readonly aggregateID: Schema.String;
252
- readonly seq: Schema.Int;
253
- readonly version: Schema.Int;
252
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
253
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
254
254
  }>>, never, never>;
255
255
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
256
256
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -8,12 +8,12 @@ export declare const Event: {
8
8
  readonly type: import("effect/Schema").Literal<"models-dev.refreshed">;
9
9
  readonly durable: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
10
10
  readonly aggregateID: import("effect/Schema").String;
11
- readonly seq: import("effect/Schema").Int;
12
- readonly version: import("effect/Schema").Int;
11
+ readonly seq: import("effect/Schema").brand<import("effect/Schema").Int, "Event.Seq">;
12
+ readonly version: import("effect/Schema").brand<import("effect/Schema").Int, "Event.Version">;
13
13
  }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
14
14
  readonly aggregateID: import("effect/Schema").String;
15
- readonly seq: import("effect/Schema").Int;
16
- readonly version: import("effect/Schema").Int;
15
+ readonly seq: import("effect/Schema").brand<import("effect/Schema").Int, "Event.Seq">;
16
+ readonly version: import("effect/Schema").brand<import("effect/Schema").Int, "Event.Version">;
17
17
  }>>, never, never>;
18
18
  readonly location: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
19
19
  readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
@@ -51,12 +51,12 @@ export declare const Event: {
51
51
  readonly type: import("effect/Schema").Literal<"models-dev.refreshed">;
52
52
  readonly durable: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
53
53
  readonly aggregateID: import("effect/Schema").String;
54
- readonly seq: import("effect/Schema").Int;
55
- readonly version: import("effect/Schema").Int;
54
+ readonly seq: import("effect/Schema").brand<import("effect/Schema").Int, "Event.Seq">;
55
+ readonly version: import("effect/Schema").brand<import("effect/Schema").Int, "Event.Version">;
56
56
  }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
57
57
  readonly aggregateID: import("effect/Schema").String;
58
- readonly seq: import("effect/Schema").Int;
59
- readonly version: import("effect/Schema").Int;
58
+ readonly seq: import("effect/Schema").brand<import("effect/Schema").Int, "Event.Seq">;
59
+ readonly version: import("effect/Schema").brand<import("effect/Schema").Int, "Event.Version">;
60
60
  }>>, never, never>;
61
61
  readonly location: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
62
62
  readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
@@ -45,12 +45,12 @@ export declare const Event: {
45
45
  readonly type: Schema.Literal<"permission.v2.asked">;
46
46
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
47
47
  readonly aggregateID: Schema.String;
48
- readonly seq: Schema.Int;
49
- readonly version: Schema.Int;
48
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
49
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
50
50
  }>>>, Schema.optionalKey<Schema.Struct<{
51
51
  readonly aggregateID: Schema.String;
52
- readonly seq: Schema.Int;
53
- readonly version: Schema.Int;
52
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
53
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
54
54
  }>>, never, never>;
55
55
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
56
56
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -130,12 +130,12 @@ export declare const Event: {
130
130
  readonly type: Schema.Literal<"permission.v2.replied">;
131
131
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
132
132
  readonly aggregateID: Schema.String;
133
- readonly seq: Schema.Int;
134
- readonly version: Schema.Int;
133
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
134
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
135
135
  }>>>, Schema.optionalKey<Schema.Struct<{
136
136
  readonly aggregateID: Schema.String;
137
- readonly seq: Schema.Int;
138
- readonly version: Schema.Int;
137
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
138
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
139
139
  }>>, never, never>;
140
140
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
141
141
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -191,12 +191,12 @@ export declare const Event: {
191
191
  readonly type: Schema.Literal<"permission.v2.asked">;
192
192
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
193
193
  readonly aggregateID: Schema.String;
194
- readonly seq: Schema.Int;
195
- readonly version: Schema.Int;
194
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
195
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
196
196
  }>>>, Schema.optionalKey<Schema.Struct<{
197
197
  readonly aggregateID: Schema.String;
198
- readonly seq: Schema.Int;
199
- readonly version: Schema.Int;
198
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
199
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
200
200
  }>>, never, never>;
201
201
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
202
202
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -275,12 +275,12 @@ export declare const Event: {
275
275
  readonly type: Schema.Literal<"permission.v2.replied">;
276
276
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
277
277
  readonly aggregateID: Schema.String;
278
- readonly seq: Schema.Int;
279
- readonly version: Schema.Int;
278
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
279
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
280
280
  }>>>, Schema.optionalKey<Schema.Struct<{
281
281
  readonly aggregateID: Schema.String;
282
- readonly seq: Schema.Int;
283
- readonly version: Schema.Int;
282
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
283
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
284
284
  }>>, never, never>;
285
285
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
286
286
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
package/dist/plugin.d.ts CHANGED
@@ -16,12 +16,12 @@ export declare const Event: {
16
16
  readonly type: Schema.Literal<"plugin.added">;
17
17
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
18
18
  readonly aggregateID: Schema.String;
19
- readonly seq: Schema.Int;
20
- readonly version: Schema.Int;
19
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
20
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
21
21
  }>>>, Schema.optionalKey<Schema.Struct<{
22
22
  readonly aggregateID: Schema.String;
23
- readonly seq: Schema.Int;
24
- readonly version: Schema.Int;
23
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
24
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
25
25
  }>>, never, never>;
26
26
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
27
27
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -63,12 +63,12 @@ export declare const Event: {
63
63
  readonly type: Schema.Literal<"plugin.added">;
64
64
  readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
65
65
  readonly aggregateID: Schema.String;
66
- readonly seq: Schema.Int;
67
- readonly version: Schema.Int;
66
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
67
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
68
68
  }>>>, Schema.optionalKey<Schema.Struct<{
69
69
  readonly aggregateID: Schema.String;
70
- readonly seq: Schema.Int;
71
- readonly version: Schema.Int;
70
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
71
+ readonly version: Schema.brand<Schema.Int, "Event.Version">;
72
72
  }>>, never, never>;
73
73
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
74
74
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -8,12 +8,12 @@ export declare const Event: {
8
8
  readonly type: import("effect/Schema").Literal<"project.directories.updated">;
9
9
  readonly durable: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
10
10
  readonly aggregateID: import("effect/Schema").String;
11
- readonly seq: import("effect/Schema").Int;
12
- readonly version: import("effect/Schema").Int;
11
+ readonly seq: import("effect/Schema").brand<import("effect/Schema").Int, "Event.Seq">;
12
+ readonly version: import("effect/Schema").brand<import("effect/Schema").Int, "Event.Version">;
13
13
  }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
14
14
  readonly aggregateID: import("effect/Schema").String;
15
- readonly seq: import("effect/Schema").Int;
16
- readonly version: import("effect/Schema").Int;
15
+ readonly seq: import("effect/Schema").brand<import("effect/Schema").Int, "Event.Seq">;
16
+ readonly version: import("effect/Schema").brand<import("effect/Schema").Int, "Event.Version">;
17
17
  }>>, never, never>;
18
18
  readonly location: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
19
19
  readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
@@ -59,12 +59,12 @@ export declare const Event: {
59
59
  readonly type: import("effect/Schema").Literal<"project.directories.updated">;
60
60
  readonly durable: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
61
61
  readonly aggregateID: import("effect/Schema").String;
62
- readonly seq: import("effect/Schema").Int;
63
- readonly version: import("effect/Schema").Int;
62
+ readonly seq: import("effect/Schema").brand<import("effect/Schema").Int, "Event.Seq">;
63
+ readonly version: import("effect/Schema").brand<import("effect/Schema").Int, "Event.Version">;
64
64
  }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
65
65
  readonly aggregateID: import("effect/Schema").String;
66
- readonly seq: import("effect/Schema").Int;
67
- readonly version: import("effect/Schema").Int;
66
+ readonly seq: import("effect/Schema").brand<import("effect/Schema").Int, "Event.Seq">;
67
+ readonly version: import("effect/Schema").brand<import("effect/Schema").Int, "Event.Version">;
68
68
  }>>, never, never>;
69
69
  readonly location: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
70
70
  readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;