@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.
- package/dist/agent.d.ts +6 -28
- package/dist/agent.js +2 -2
- package/dist/catalog.d.ts +6 -28
- package/dist/catalog.js +2 -2
- package/dist/command.d.ts +6 -28
- package/dist/command.js +2 -2
- package/dist/durable-event-manifest.d.ts +254 -8301
- package/dist/durable-event-manifest.js +2 -5
- package/dist/event-manifest.d.ts +994 -2747
- package/dist/event-manifest.js +2 -2
- package/dist/event.d.ts +65 -19
- package/dist/event.js +24 -5
- package/dist/filesystem-watcher.d.ts +6 -28
- package/dist/filesystem-watcher.js +2 -2
- package/dist/filesystem.d.ts +6 -28
- package/dist/filesystem.js +2 -2
- package/dist/form.d.ts +18 -84
- package/dist/form.js +4 -4
- package/dist/ide-event.d.ts +6 -28
- package/dist/ide-event.js +1 -1
- package/dist/installation-event.d.ts +12 -56
- package/dist/installation-event.js +2 -2
- package/dist/integration.d.ts +12 -56
- package/dist/integration.js +3 -3
- package/dist/lsp-event.d.ts +6 -28
- package/dist/lsp-event.js +1 -1
- package/dist/mcp-event.d.ts +18 -84
- package/dist/mcp-event.js +3 -3
- package/dist/models-dev.d.ts +6 -28
- package/dist/models-dev.js +2 -2
- package/dist/permission.d.ts +12 -56
- package/dist/permission.js +3 -3
- package/dist/plugin.d.ts +6 -28
- package/dist/plugin.js +2 -2
- package/dist/project-directories.d.ts +6 -28
- package/dist/project-directories.js +2 -2
- package/dist/project.d.ts +6 -28
- package/dist/project.js +2 -2
- package/dist/pty.d.ts +24 -112
- package/dist/pty.js +5 -5
- package/dist/question.d.ts +18 -84
- package/dist/question.js +4 -4
- package/dist/reference.d.ts +6 -28
- package/dist/reference.js +2 -2
- package/dist/server-event.d.ts +12 -56
- package/dist/server-event.js +2 -2
- package/dist/session-compaction-event.d.ts +6 -28
- package/dist/session-compaction-event.js +1 -1
- package/dist/session-event.d.ts +1900 -2530
- package/dist/session-event.js +37 -37
- package/dist/session-status-event.d.ts +12 -56
- package/dist/session-status-event.js +2 -2
- package/dist/session-todo.d.ts +6 -28
- package/dist/session-todo.js +2 -2
- package/dist/shell.d.ts +18 -84
- package/dist/shell.js +4 -4
- package/dist/skill.d.ts +6 -28
- package/dist/skill.js +2 -2
- package/dist/tui-event.d.ts +24 -112
- package/dist/tui-event.js +4 -4
- package/dist/v1/legacy-event.d.ts +6 -28
- package/dist/v1/legacy-event.js +2 -2
- package/dist/v1/permission.d.ts +12 -56
- package/dist/v1/permission.js +3 -3
- package/dist/v1/question.d.ts +18 -84
- package/dist/v1/question.js +4 -4
- package/dist/v1/session.d.ts +139 -280
- package/dist/v1/session.js +11 -11
- package/dist/vcs-event.d.ts +6 -28
- package/dist/vcs-event.js +1 -1
- package/dist/workspace-event.d.ts +18 -84
- package/dist/workspace-event.js +3 -3
- package/dist/worktree-event.d.ts +12 -56
- package/dist/worktree-event.js +2 -2
- package/package.json +1 -1
package/dist/mcp-event.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export * as McpEvent from "./mcp-event.js";
|
|
2
2
|
import { Schema } from "effect";
|
|
3
3
|
import { Event } from "./event.js";
|
|
4
|
-
export const ToolsChanged = Event.
|
|
4
|
+
export const ToolsChanged = Event.ephemeral({
|
|
5
5
|
type: "mcp.tools.changed",
|
|
6
6
|
schema: {
|
|
7
7
|
server: Schema.String,
|
|
8
8
|
},
|
|
9
9
|
});
|
|
10
|
-
export const BrowserOpenFailed = Event.
|
|
10
|
+
export const BrowserOpenFailed = Event.ephemeral({
|
|
11
11
|
type: "mcp.browser.open.failed",
|
|
12
12
|
schema: {
|
|
13
13
|
mcpName: Schema.String,
|
|
@@ -16,7 +16,7 @@ export const BrowserOpenFailed = Event.define({
|
|
|
16
16
|
});
|
|
17
17
|
// Emitted whenever a server's connection status settles (connected, failed, needs_auth, closed) so
|
|
18
18
|
// observers can refresh status without polling.
|
|
19
|
-
export const StatusChanged = Event.
|
|
19
|
+
export const StatusChanged = Event.ephemeral({
|
|
20
20
|
type: "mcp.status.changed",
|
|
21
21
|
schema: {
|
|
22
22
|
server: Schema.String,
|
package/dist/models-dev.d.ts
CHANGED
|
@@ -6,15 +6,6 @@ export declare const Event: {
|
|
|
6
6
|
};
|
|
7
7
|
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>;
|
|
8
8
|
readonly type: import("effect/Schema").Literal<"models-dev.refreshed">;
|
|
9
|
-
readonly durable: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
|
|
10
|
-
readonly aggregateID: import("effect/Schema").String;
|
|
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
|
-
}>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
14
|
-
readonly aggregateID: import("effect/Schema").String;
|
|
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
|
-
}>>, never, never>;
|
|
18
9
|
readonly location: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
|
|
19
10
|
readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
|
|
20
11
|
readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
|
|
@@ -36,12 +27,10 @@ export declare const Event: {
|
|
|
36
27
|
}>>, never, never>;
|
|
37
28
|
readonly data: import("effect/Schema").Struct<{}>;
|
|
38
29
|
}> & {
|
|
39
|
-
data: import("effect/Schema").Struct<{}>;
|
|
40
|
-
durable?: {
|
|
41
|
-
readonly version: number;
|
|
42
|
-
readonly aggregate: string;
|
|
43
|
-
} | undefined;
|
|
44
30
|
type: "models-dev.refreshed";
|
|
31
|
+
durability: "ephemeral";
|
|
32
|
+
durable: undefined;
|
|
33
|
+
data: import("effect/Schema").Struct<{}>;
|
|
45
34
|
};
|
|
46
35
|
Definitions: readonly [import("effect/Schema").Struct<{
|
|
47
36
|
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
|
|
@@ -49,15 +38,6 @@ export declare const Event: {
|
|
|
49
38
|
};
|
|
50
39
|
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>;
|
|
51
40
|
readonly type: import("effect/Schema").Literal<"models-dev.refreshed">;
|
|
52
|
-
readonly durable: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
|
|
53
|
-
readonly aggregateID: import("effect/Schema").String;
|
|
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
|
-
}>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
57
|
-
readonly aggregateID: import("effect/Schema").String;
|
|
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
|
-
}>>, never, never>;
|
|
61
41
|
readonly location: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
|
|
62
42
|
readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
|
|
63
43
|
readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
|
|
@@ -79,11 +59,9 @@ export declare const Event: {
|
|
|
79
59
|
}>>, never, never>;
|
|
80
60
|
readonly data: import("effect/Schema").Struct<{}>;
|
|
81
61
|
}> & {
|
|
82
|
-
data: import("effect/Schema").Struct<{}>;
|
|
83
|
-
durable?: {
|
|
84
|
-
readonly version: number;
|
|
85
|
-
readonly aggregate: string;
|
|
86
|
-
} | undefined;
|
|
87
62
|
type: "models-dev.refreshed";
|
|
63
|
+
durability: "ephemeral";
|
|
64
|
+
durable: undefined;
|
|
65
|
+
data: import("effect/Schema").Struct<{}>;
|
|
88
66
|
}];
|
|
89
67
|
};
|
package/dist/models-dev.js
CHANGED
package/dist/permission.d.ts
CHANGED
|
@@ -43,15 +43,6 @@ export declare const Event: {
|
|
|
43
43
|
};
|
|
44
44
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
45
45
|
readonly type: Schema.Literal<"permission.v2.asked">;
|
|
46
|
-
readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
47
|
-
readonly aggregateID: Schema.String;
|
|
48
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
49
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
50
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
51
|
-
readonly aggregateID: Schema.String;
|
|
52
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
53
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
54
|
-
}>>, never, never>;
|
|
55
46
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
56
47
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
57
48
|
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
@@ -94,6 +85,9 @@ export declare const Event: {
|
|
|
94
85
|
};
|
|
95
86
|
}>;
|
|
96
87
|
}> & {
|
|
88
|
+
type: "permission.v2.asked";
|
|
89
|
+
durability: "ephemeral";
|
|
90
|
+
durable: undefined;
|
|
97
91
|
data: Schema.Struct<{
|
|
98
92
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
99
93
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -116,11 +110,6 @@ export declare const Event: {
|
|
|
116
110
|
create: (id?: string) => string & import("effect/Brand").Brand<"PermissionV2.ID">;
|
|
117
111
|
};
|
|
118
112
|
}>;
|
|
119
|
-
durable?: {
|
|
120
|
-
readonly version: number;
|
|
121
|
-
readonly aggregate: string;
|
|
122
|
-
} | undefined;
|
|
123
|
-
type: "permission.v2.asked";
|
|
124
113
|
};
|
|
125
114
|
Replied: Schema.Struct<{
|
|
126
115
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
@@ -128,15 +117,6 @@ export declare const Event: {
|
|
|
128
117
|
};
|
|
129
118
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
130
119
|
readonly type: Schema.Literal<"permission.v2.replied">;
|
|
131
|
-
readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
132
|
-
readonly aggregateID: Schema.String;
|
|
133
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
134
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
135
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
136
|
-
readonly aggregateID: Schema.String;
|
|
137
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
138
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
139
|
-
}>>, never, never>;
|
|
140
120
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
141
121
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
142
122
|
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
@@ -167,6 +147,9 @@ export declare const Event: {
|
|
|
167
147
|
readonly reply: Schema.Literals<readonly ["once", "always", "reject"]>;
|
|
168
148
|
}>;
|
|
169
149
|
}> & {
|
|
150
|
+
type: "permission.v2.replied";
|
|
151
|
+
durability: "ephemeral";
|
|
152
|
+
durable: undefined;
|
|
170
153
|
data: Schema.Struct<{
|
|
171
154
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
172
155
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -177,11 +160,6 @@ export declare const Event: {
|
|
|
177
160
|
};
|
|
178
161
|
readonly reply: Schema.Literals<readonly ["once", "always", "reject"]>;
|
|
179
162
|
}>;
|
|
180
|
-
durable?: {
|
|
181
|
-
readonly version: number;
|
|
182
|
-
readonly aggregate: string;
|
|
183
|
-
} | undefined;
|
|
184
|
-
type: "permission.v2.replied";
|
|
185
163
|
};
|
|
186
164
|
Definitions: readonly [Schema.Struct<{
|
|
187
165
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
@@ -189,15 +167,6 @@ export declare const Event: {
|
|
|
189
167
|
};
|
|
190
168
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
191
169
|
readonly type: Schema.Literal<"permission.v2.asked">;
|
|
192
|
-
readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
193
|
-
readonly aggregateID: Schema.String;
|
|
194
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
195
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
196
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
197
|
-
readonly aggregateID: Schema.String;
|
|
198
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
199
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
200
|
-
}>>, never, never>;
|
|
201
170
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
202
171
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
203
172
|
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
@@ -240,6 +209,9 @@ export declare const Event: {
|
|
|
240
209
|
};
|
|
241
210
|
}>;
|
|
242
211
|
}> & {
|
|
212
|
+
type: "permission.v2.asked";
|
|
213
|
+
durability: "ephemeral";
|
|
214
|
+
durable: undefined;
|
|
243
215
|
data: Schema.Struct<{
|
|
244
216
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
245
217
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -262,26 +234,12 @@ export declare const Event: {
|
|
|
262
234
|
create: (id?: string) => string & import("effect/Brand").Brand<"PermissionV2.ID">;
|
|
263
235
|
};
|
|
264
236
|
}>;
|
|
265
|
-
durable?: {
|
|
266
|
-
readonly version: number;
|
|
267
|
-
readonly aggregate: string;
|
|
268
|
-
} | undefined;
|
|
269
|
-
type: "permission.v2.asked";
|
|
270
237
|
}, Schema.Struct<{
|
|
271
238
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
272
239
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
273
240
|
};
|
|
274
241
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
275
242
|
readonly type: Schema.Literal<"permission.v2.replied">;
|
|
276
|
-
readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
277
|
-
readonly aggregateID: Schema.String;
|
|
278
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
279
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
280
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
281
|
-
readonly aggregateID: Schema.String;
|
|
282
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
283
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
284
|
-
}>>, never, never>;
|
|
285
243
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
286
244
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
287
245
|
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
@@ -312,6 +270,9 @@ export declare const Event: {
|
|
|
312
270
|
readonly reply: Schema.Literals<readonly ["once", "always", "reject"]>;
|
|
313
271
|
}>;
|
|
314
272
|
}> & {
|
|
273
|
+
type: "permission.v2.replied";
|
|
274
|
+
durability: "ephemeral";
|
|
275
|
+
durable: undefined;
|
|
315
276
|
data: Schema.Struct<{
|
|
316
277
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
317
278
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -322,11 +283,6 @@ export declare const Event: {
|
|
|
322
283
|
};
|
|
323
284
|
readonly reply: Schema.Literals<readonly ["once", "always", "reject"]>;
|
|
324
285
|
}>;
|
|
325
|
-
durable?: {
|
|
326
|
-
readonly version: number;
|
|
327
|
-
readonly aggregate: string;
|
|
328
|
-
} | undefined;
|
|
329
|
-
type: "permission.v2.replied";
|
|
330
286
|
}];
|
|
331
287
|
};
|
|
332
288
|
export declare const Effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
package/dist/permission.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * as Permission from "./permission.js";
|
|
2
2
|
import { Schema } from "effect";
|
|
3
3
|
import { optional } from "./schema.js";
|
|
4
|
-
import {
|
|
4
|
+
import { ephemeral, inventory } from "./event.js";
|
|
5
5
|
import { ascending } from "./identifier.js";
|
|
6
6
|
import { SessionID } from "./session-id.js";
|
|
7
7
|
import { statics } from "./schema.js";
|
|
@@ -26,8 +26,8 @@ export const Request = Schema.Struct({
|
|
|
26
26
|
...RequestFields,
|
|
27
27
|
}).annotate({ identifier: "PermissionV2.Request" });
|
|
28
28
|
export const Reply = Schema.Literals(["once", "always", "reject"]).annotate({ identifier: "PermissionV2.Reply" });
|
|
29
|
-
const Asked =
|
|
30
|
-
const Replied =
|
|
29
|
+
const Asked = ephemeral({ type: "permission.v2.asked", schema: Request.fields });
|
|
30
|
+
const Replied = ephemeral({
|
|
31
31
|
type: "permission.v2.replied",
|
|
32
32
|
schema: {
|
|
33
33
|
sessionID: SessionID,
|
package/dist/plugin.d.ts
CHANGED
|
@@ -14,15 +14,6 @@ export declare const Event: {
|
|
|
14
14
|
};
|
|
15
15
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
16
16
|
readonly type: Schema.Literal<"plugin.added">;
|
|
17
|
-
readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
18
|
-
readonly aggregateID: Schema.String;
|
|
19
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
20
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
21
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
22
|
-
readonly aggregateID: Schema.String;
|
|
23
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
24
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
25
|
-
}>>, never, never>;
|
|
26
17
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
27
18
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
28
19
|
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
@@ -46,14 +37,12 @@ export declare const Event: {
|
|
|
46
37
|
readonly id: Schema.brand<Schema.String, "Plugin.ID">;
|
|
47
38
|
}>;
|
|
48
39
|
}> & {
|
|
40
|
+
type: "plugin.added";
|
|
41
|
+
durability: "ephemeral";
|
|
42
|
+
durable: undefined;
|
|
49
43
|
data: Schema.Struct<{
|
|
50
44
|
readonly id: Schema.brand<Schema.String, "Plugin.ID">;
|
|
51
45
|
}>;
|
|
52
|
-
durable?: {
|
|
53
|
-
readonly version: number;
|
|
54
|
-
readonly aggregate: string;
|
|
55
|
-
} | undefined;
|
|
56
|
-
type: "plugin.added";
|
|
57
46
|
};
|
|
58
47
|
Definitions: readonly [Schema.Struct<{
|
|
59
48
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
@@ -61,15 +50,6 @@ export declare const Event: {
|
|
|
61
50
|
};
|
|
62
51
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
63
52
|
readonly type: Schema.Literal<"plugin.added">;
|
|
64
|
-
readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
65
|
-
readonly aggregateID: Schema.String;
|
|
66
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
67
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
68
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
69
|
-
readonly aggregateID: Schema.String;
|
|
70
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
71
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
72
|
-
}>>, never, never>;
|
|
73
53
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
74
54
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
75
55
|
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
@@ -93,13 +73,11 @@ export declare const Event: {
|
|
|
93
73
|
readonly id: Schema.brand<Schema.String, "Plugin.ID">;
|
|
94
74
|
}>;
|
|
95
75
|
}> & {
|
|
76
|
+
type: "plugin.added";
|
|
77
|
+
durability: "ephemeral";
|
|
78
|
+
durable: undefined;
|
|
96
79
|
data: Schema.Struct<{
|
|
97
80
|
readonly id: Schema.brand<Schema.String, "Plugin.ID">;
|
|
98
81
|
}>;
|
|
99
|
-
durable?: {
|
|
100
|
-
readonly version: number;
|
|
101
|
-
readonly aggregate: string;
|
|
102
|
-
} | undefined;
|
|
103
|
-
type: "plugin.added";
|
|
104
82
|
}];
|
|
105
83
|
};
|
package/dist/plugin.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export * as Plugin from "./plugin.js";
|
|
2
2
|
import { Schema } from "effect";
|
|
3
|
-
import {
|
|
3
|
+
import { ephemeral, inventory } from "./event.js";
|
|
4
4
|
export const ID = Schema.String.pipe(Schema.brand("Plugin.ID"));
|
|
5
5
|
export const Info = Schema.Struct({
|
|
6
6
|
id: ID,
|
|
7
7
|
}).annotate({ identifier: "Plugin.Info" });
|
|
8
|
-
const Added =
|
|
8
|
+
const Added = ephemeral({
|
|
9
9
|
type: "plugin.added",
|
|
10
10
|
schema: { id: ID },
|
|
11
11
|
});
|
|
@@ -6,15 +6,6 @@ export declare const Event: {
|
|
|
6
6
|
};
|
|
7
7
|
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>;
|
|
8
8
|
readonly type: import("effect/Schema").Literal<"project.directories.updated">;
|
|
9
|
-
readonly durable: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
|
|
10
|
-
readonly aggregateID: import("effect/Schema").String;
|
|
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
|
-
}>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
14
|
-
readonly aggregateID: import("effect/Schema").String;
|
|
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
|
-
}>>, never, never>;
|
|
18
9
|
readonly location: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
|
|
19
10
|
readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
|
|
20
11
|
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,16 +31,14 @@ export declare const Event: {
|
|
|
40
31
|
};
|
|
41
32
|
}>;
|
|
42
33
|
}> & {
|
|
34
|
+
type: "project.directories.updated";
|
|
35
|
+
durability: "ephemeral";
|
|
36
|
+
durable: undefined;
|
|
43
37
|
data: import("effect/Schema").Struct<{
|
|
44
38
|
readonly projectID: import("effect/Schema").brand<import("effect/Schema").String, "Project.ID"> & {
|
|
45
39
|
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
46
40
|
};
|
|
47
41
|
}>;
|
|
48
|
-
durable?: {
|
|
49
|
-
readonly version: number;
|
|
50
|
-
readonly aggregate: string;
|
|
51
|
-
} | undefined;
|
|
52
|
-
type: "project.directories.updated";
|
|
53
42
|
};
|
|
54
43
|
Definitions: readonly [import("effect/Schema").Struct<{
|
|
55
44
|
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
|
|
@@ -57,15 +46,6 @@ export declare const Event: {
|
|
|
57
46
|
};
|
|
58
47
|
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>;
|
|
59
48
|
readonly type: import("effect/Schema").Literal<"project.directories.updated">;
|
|
60
|
-
readonly durable: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
|
|
61
|
-
readonly aggregateID: import("effect/Schema").String;
|
|
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
|
-
}>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
65
|
-
readonly aggregateID: import("effect/Schema").String;
|
|
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
|
-
}>>, never, never>;
|
|
69
49
|
readonly location: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
|
|
70
50
|
readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
|
|
71
51
|
readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
|
|
@@ -91,15 +71,13 @@ export declare const Event: {
|
|
|
91
71
|
};
|
|
92
72
|
}>;
|
|
93
73
|
}> & {
|
|
74
|
+
type: "project.directories.updated";
|
|
75
|
+
durability: "ephemeral";
|
|
76
|
+
durable: undefined;
|
|
94
77
|
data: import("effect/Schema").Struct<{
|
|
95
78
|
readonly projectID: import("effect/Schema").brand<import("effect/Schema").String, "Project.ID"> & {
|
|
96
79
|
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
97
80
|
};
|
|
98
81
|
}>;
|
|
99
|
-
durable?: {
|
|
100
|
-
readonly version: number;
|
|
101
|
-
readonly aggregate: string;
|
|
102
|
-
} | undefined;
|
|
103
|
-
type: "project.directories.updated";
|
|
104
82
|
}];
|
|
105
83
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * as ProjectDirectories from "./project-directories.js";
|
|
2
|
-
import {
|
|
2
|
+
import { ephemeral, inventory } from "./event.js";
|
|
3
3
|
import { Project } from "./project.js";
|
|
4
|
-
const Updated =
|
|
4
|
+
const Updated = ephemeral({
|
|
5
5
|
type: "project.directories.updated",
|
|
6
6
|
schema: { projectID: Project.ID },
|
|
7
7
|
});
|
package/dist/project.d.ts
CHANGED
|
@@ -87,15 +87,6 @@ export declare const Event: {
|
|
|
87
87
|
};
|
|
88
88
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
89
89
|
readonly type: Schema.Literal<"project.updated">;
|
|
90
|
-
readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
91
|
-
readonly aggregateID: Schema.String;
|
|
92
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
93
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
94
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
95
|
-
readonly aggregateID: Schema.String;
|
|
96
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
97
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
98
|
-
}>>, never, never>;
|
|
99
90
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
100
91
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
101
92
|
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
@@ -144,6 +135,9 @@ export declare const Event: {
|
|
|
144
135
|
readonly sandboxes: Schema.$Array<Schema.String>;
|
|
145
136
|
}>;
|
|
146
137
|
}> & {
|
|
138
|
+
type: "project.updated";
|
|
139
|
+
durability: "ephemeral";
|
|
140
|
+
durable: undefined;
|
|
147
141
|
data: Schema.Struct<{
|
|
148
142
|
readonly id: Schema.brand<Schema.String, "Project.ID"> & {
|
|
149
143
|
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
@@ -172,11 +166,6 @@ export declare const Event: {
|
|
|
172
166
|
}>;
|
|
173
167
|
readonly sandboxes: Schema.$Array<Schema.String>;
|
|
174
168
|
}>;
|
|
175
|
-
durable?: {
|
|
176
|
-
readonly version: number;
|
|
177
|
-
readonly aggregate: string;
|
|
178
|
-
} | undefined;
|
|
179
|
-
type: "project.updated";
|
|
180
169
|
};
|
|
181
170
|
Definitions: readonly [Schema.Struct<{
|
|
182
171
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
@@ -184,15 +173,6 @@ export declare const Event: {
|
|
|
184
173
|
};
|
|
185
174
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
186
175
|
readonly type: Schema.Literal<"project.updated">;
|
|
187
|
-
readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
188
|
-
readonly aggregateID: Schema.String;
|
|
189
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
190
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
191
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
192
|
-
readonly aggregateID: Schema.String;
|
|
193
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
194
|
-
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
195
|
-
}>>, never, never>;
|
|
196
176
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
197
177
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
198
178
|
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
@@ -241,6 +221,9 @@ export declare const Event: {
|
|
|
241
221
|
readonly sandboxes: Schema.$Array<Schema.String>;
|
|
242
222
|
}>;
|
|
243
223
|
}> & {
|
|
224
|
+
type: "project.updated";
|
|
225
|
+
durability: "ephemeral";
|
|
226
|
+
durable: undefined;
|
|
244
227
|
data: Schema.Struct<{
|
|
245
228
|
readonly id: Schema.brand<Schema.String, "Project.ID"> & {
|
|
246
229
|
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
@@ -269,10 +252,5 @@ export declare const Event: {
|
|
|
269
252
|
}>;
|
|
270
253
|
readonly sandboxes: Schema.$Array<Schema.String>;
|
|
271
254
|
}>;
|
|
272
|
-
durable?: {
|
|
273
|
-
readonly version: number;
|
|
274
|
-
readonly aggregate: string;
|
|
275
|
-
} | undefined;
|
|
276
|
-
type: "project.updated";
|
|
277
255
|
}];
|
|
278
256
|
};
|
package/dist/project.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * as Project from "./project.js";
|
|
2
2
|
import { Schema } from "effect";
|
|
3
|
-
import {
|
|
3
|
+
import { ephemeral, inventory } from "./event.js";
|
|
4
4
|
import { AbsolutePath, NonNegativeInt, optional } from "./schema.js";
|
|
5
5
|
import { ProjectID } from "./project-id.js";
|
|
6
6
|
export const ID = ProjectID;
|
|
@@ -40,5 +40,5 @@ export const Info = Schema.Struct({
|
|
|
40
40
|
time: Time,
|
|
41
41
|
sandboxes: Schema.Array(Schema.String),
|
|
42
42
|
}).annotate({ identifier: "Project" });
|
|
43
|
-
const Updated =
|
|
43
|
+
const Updated = ephemeral({ type: "project.updated", schema: Info.fields });
|
|
44
44
|
export const Event = { Updated, Definitions: inventory(Updated) };
|