@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
@@ -5,15 +5,6 @@ export declare const Connected: 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<"server.connected">;
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 Connected: 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: "server.connected";
30
+ durability: "ephemeral";
31
+ durable: undefined;
32
+ data: import("effect/Schema").Struct<{}>;
44
33
  };
45
34
  export declare const Disposed: 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 Disposed: 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<"global.disposed">;
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,12 +58,10 @@ export declare const Disposed: 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: "global.disposed";
62
+ durability: "ephemeral";
63
+ durable: undefined;
64
+ data: import("effect/Schema").Struct<{}>;
87
65
  };
88
66
  export declare const Definitions: readonly [import("effect/Schema").Struct<{
89
67
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
@@ -91,15 +69,6 @@ export declare const Definitions: readonly [import("effect/Schema").Struct<{
91
69
  };
92
70
  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>;
93
71
  readonly type: import("effect/Schema").Literal<"server.connected">;
94
- readonly durable: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
95
- readonly aggregateID: import("effect/Schema").String;
96
- readonly seq: import("effect/Schema").brand<import("effect/Schema").Int, "Event.Seq">;
97
- readonly version: import("effect/Schema").brand<import("effect/Schema").Int, "Event.Version">;
98
- }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
99
- readonly aggregateID: import("effect/Schema").String;
100
- readonly seq: import("effect/Schema").brand<import("effect/Schema").Int, "Event.Seq">;
101
- readonly version: import("effect/Schema").brand<import("effect/Schema").Int, "Event.Version">;
102
- }>>, never, never>;
103
72
  readonly location: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
104
73
  readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
105
74
  readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
@@ -121,27 +90,16 @@ export declare const Definitions: readonly [import("effect/Schema").Struct<{
121
90
  }>>, never, never>;
122
91
  readonly data: import("effect/Schema").Struct<{}>;
123
92
  }> & {
124
- data: import("effect/Schema").Struct<{}>;
125
- durable?: {
126
- readonly version: number;
127
- readonly aggregate: string;
128
- } | undefined;
129
93
  type: "server.connected";
94
+ durability: "ephemeral";
95
+ durable: undefined;
96
+ data: import("effect/Schema").Struct<{}>;
130
97
  }, import("effect/Schema").Struct<{
131
98
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
132
99
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
133
100
  };
134
101
  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>;
135
102
  readonly type: import("effect/Schema").Literal<"global.disposed">;
136
- readonly durable: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
137
- readonly aggregateID: import("effect/Schema").String;
138
- readonly seq: import("effect/Schema").brand<import("effect/Schema").Int, "Event.Seq">;
139
- readonly version: import("effect/Schema").brand<import("effect/Schema").Int, "Event.Version">;
140
- }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
141
- readonly aggregateID: import("effect/Schema").String;
142
- readonly seq: import("effect/Schema").brand<import("effect/Schema").Int, "Event.Seq">;
143
- readonly version: import("effect/Schema").brand<import("effect/Schema").Int, "Event.Version">;
144
- }>>, never, never>;
145
103
  readonly location: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
146
104
  readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
147
105
  readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
@@ -163,10 +121,8 @@ export declare const Definitions: readonly [import("effect/Schema").Struct<{
163
121
  }>>, never, never>;
164
122
  readonly data: import("effect/Schema").Struct<{}>;
165
123
  }> & {
166
- data: import("effect/Schema").Struct<{}>;
167
- durable?: {
168
- readonly version: number;
169
- readonly aggregate: string;
170
- } | undefined;
171
124
  type: "global.disposed";
125
+ durability: "ephemeral";
126
+ durable: undefined;
127
+ data: import("effect/Schema").Struct<{}>;
172
128
  }];
@@ -1,5 +1,5 @@
1
1
  export * as ServerEvent from "./server-event.js";
2
2
  import { Event } from "./event.js";
3
- export const Connected = Event.define({ type: "server.connected", schema: {} });
4
- export const Disposed = Event.define({ type: "global.disposed", schema: {} });
3
+ export const Connected = Event.ephemeral({ type: "server.connected", schema: {} });
4
+ export const Disposed = Event.ephemeral({ type: "global.disposed", schema: {} });
5
5
  export const Definitions = Event.inventory(Connected, Disposed);
@@ -5,15 +5,6 @@ export declare const Compacted: 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<"session.compacted">;
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"> & {
@@ -40,17 +31,15 @@ export declare const Compacted: import("effect/Schema").Struct<{
40
31
  };
41
32
  }>;
42
33
  }> & {
34
+ type: "session.compacted";
35
+ durability: "ephemeral";
36
+ durable: undefined;
43
37
  data: import("effect/Schema").Struct<{
44
38
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
45
39
  create: () => string & import("effect/Brand").Brand<"SessionID">;
46
40
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
47
41
  };
48
42
  }>;
49
- durable?: {
50
- readonly version: number;
51
- readonly aggregate: string;
52
- } | undefined;
53
- type: "session.compacted";
54
43
  };
55
44
  export declare const Definitions: readonly [import("effect/Schema").Struct<{
56
45
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
@@ -58,15 +47,6 @@ export declare const Definitions: readonly [import("effect/Schema").Struct<{
58
47
  };
59
48
  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>;
60
49
  readonly type: import("effect/Schema").Literal<"session.compacted">;
61
- readonly durable: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
62
- readonly aggregateID: import("effect/Schema").String;
63
- readonly seq: import("effect/Schema").brand<import("effect/Schema").Int, "Event.Seq">;
64
- readonly version: import("effect/Schema").brand<import("effect/Schema").Int, "Event.Version">;
65
- }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
66
- readonly aggregateID: import("effect/Schema").String;
67
- readonly seq: import("effect/Schema").brand<import("effect/Schema").Int, "Event.Seq">;
68
- readonly version: import("effect/Schema").brand<import("effect/Schema").Int, "Event.Version">;
69
- }>>, never, never>;
70
50
  readonly location: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
71
51
  readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
72
52
  readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
@@ -93,15 +73,13 @@ export declare const Definitions: readonly [import("effect/Schema").Struct<{
93
73
  };
94
74
  }>;
95
75
  }> & {
76
+ type: "session.compacted";
77
+ durability: "ephemeral";
78
+ durable: undefined;
96
79
  data: import("effect/Schema").Struct<{
97
80
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
98
81
  create: () => string & import("effect/Brand").Brand<"SessionID">;
99
82
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
100
83
  };
101
84
  }>;
102
- durable?: {
103
- readonly version: number;
104
- readonly aggregate: string;
105
- } | undefined;
106
- type: "session.compacted";
107
85
  }];
@@ -1,7 +1,7 @@
1
1
  export * as SessionCompactionEvent from "./session-compaction-event.js";
2
2
  import { Event } from "./event.js";
3
3
  import { SessionID } from "./session-id.js";
4
- export const Compacted = Event.define({
4
+ export const Compacted = Event.ephemeral({
5
5
  type: "session.compacted",
6
6
  schema: {
7
7
  sessionID: SessionID,