@opencode-ai/schema 0.0.0-next-14835 → 0.0.0-next-14838
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/config.d.ts +69 -0
- package/dist/config.js +7 -0
- package/dist/event-manifest.d.ts +56 -28
- package/dist/event-manifest.js +4 -3
- package/dist/filesystem-v1.d.ts +1 -0
- package/dist/filesystem-v1.js +1 -0
- package/dist/filesystem.d.ts +9 -5
- package/dist/filesystem.js +7 -4
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/mcp.d.ts +2 -2
- package/dist/mcp.js +3 -3
- package/dist/{filesystem-watcher.d.ts → v1/filesystem.d.ts} +6 -10
- package/dist/v1/filesystem.js +8 -0
- package/package.json +1 -1
- package/dist/filesystem-watcher.js +0 -11
package/dist/config.d.ts
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
export * as Config from "./config.js";
|
|
2
|
+
export declare const Event: {
|
|
3
|
+
Updated: import("effect/Schema").Struct<{
|
|
4
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
|
|
5
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
6
|
+
};
|
|
7
|
+
readonly created: import("effect/Schema").decodeTo<import("effect/Schema").DateTimeUtc, import("effect/Schema").Finite, never, never>;
|
|
8
|
+
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>;
|
|
9
|
+
readonly type: import("effect/Schema").Literal<"config.updated">;
|
|
10
|
+
readonly location: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
|
|
11
|
+
readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
|
|
12
|
+
readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
|
|
13
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
14
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
15
|
+
}>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
|
|
16
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
17
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
18
|
+
}>, never, never>;
|
|
19
|
+
}>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
20
|
+
readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
|
|
21
|
+
readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
|
|
22
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
23
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
24
|
+
}>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
|
|
25
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
26
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
27
|
+
}>, never, never>;
|
|
28
|
+
}>>, never, never>;
|
|
29
|
+
readonly data: import("effect/Schema").Struct<{}>;
|
|
30
|
+
}> & {
|
|
31
|
+
type: "config.updated";
|
|
32
|
+
durability: "ephemeral";
|
|
33
|
+
durable: undefined;
|
|
34
|
+
data: import("effect/Schema").Struct<{}>;
|
|
35
|
+
};
|
|
36
|
+
Definitions: readonly [import("effect/Schema").Struct<{
|
|
37
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
|
|
38
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
39
|
+
};
|
|
40
|
+
readonly created: import("effect/Schema").decodeTo<import("effect/Schema").DateTimeUtc, import("effect/Schema").Finite, never, never>;
|
|
41
|
+
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>;
|
|
42
|
+
readonly type: import("effect/Schema").Literal<"config.updated">;
|
|
43
|
+
readonly location: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
|
|
44
|
+
readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
|
|
45
|
+
readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
|
|
46
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
47
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
48
|
+
}>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
|
|
49
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
50
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
51
|
+
}>, never, never>;
|
|
52
|
+
}>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
53
|
+
readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
|
|
54
|
+
readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
|
|
55
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
56
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
57
|
+
}>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
|
|
58
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
59
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
60
|
+
}>, never, never>;
|
|
61
|
+
}>>, never, never>;
|
|
62
|
+
readonly data: import("effect/Schema").Struct<{}>;
|
|
63
|
+
}> & {
|
|
64
|
+
type: "config.updated";
|
|
65
|
+
durability: "ephemeral";
|
|
66
|
+
durable: undefined;
|
|
67
|
+
data: import("effect/Schema").Struct<{}>;
|
|
68
|
+
}];
|
|
69
|
+
};
|
package/dist/config.js
ADDED
package/dist/event-manifest.d.ts
CHANGED
|
@@ -5117,7 +5117,7 @@ export declare const ServerDefinitions: readonly [import("effect/Schema").Struct
|
|
|
5117
5117
|
};
|
|
5118
5118
|
readonly created: import("effect/Schema").decodeTo<import("effect/Schema").DateTimeUtc, import("effect/Schema").Finite, never, never>;
|
|
5119
5119
|
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>;
|
|
5120
|
-
readonly type: import("effect/Schema").Literal<"
|
|
5120
|
+
readonly type: import("effect/Schema").Literal<"filesystem.changed">;
|
|
5121
5121
|
readonly location: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
|
|
5122
5122
|
readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
|
|
5123
5123
|
readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
|
|
@@ -5139,13 +5139,15 @@ export declare const ServerDefinitions: readonly [import("effect/Schema").Struct
|
|
|
5139
5139
|
}>>, never, never>;
|
|
5140
5140
|
readonly data: import("effect/Schema").Struct<{
|
|
5141
5141
|
readonly file: import("effect/Schema").String;
|
|
5142
|
+
readonly event: import("effect/Schema").Literals<readonly ["add", "change", "unlink"]>;
|
|
5142
5143
|
}>;
|
|
5143
5144
|
}> & {
|
|
5144
|
-
type: "
|
|
5145
|
+
type: "filesystem.changed";
|
|
5145
5146
|
durability: "ephemeral";
|
|
5146
5147
|
durable: undefined;
|
|
5147
5148
|
data: import("effect/Schema").Struct<{
|
|
5148
5149
|
readonly file: import("effect/Schema").String;
|
|
5150
|
+
readonly event: import("effect/Schema").Literals<readonly ["add", "change", "unlink"]>;
|
|
5149
5151
|
}>;
|
|
5150
5152
|
}, import("effect/Schema").Struct<{
|
|
5151
5153
|
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
|
|
@@ -5417,7 +5419,7 @@ export declare const ServerDefinitions: readonly [import("effect/Schema").Struct
|
|
|
5417
5419
|
};
|
|
5418
5420
|
readonly created: import("effect/Schema").decodeTo<import("effect/Schema").DateTimeUtc, import("effect/Schema").Finite, never, never>;
|
|
5419
5421
|
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>;
|
|
5420
|
-
readonly type: import("effect/Schema").Literal<"
|
|
5422
|
+
readonly type: import("effect/Schema").Literal<"config.updated">;
|
|
5421
5423
|
readonly location: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
|
|
5422
5424
|
readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
|
|
5423
5425
|
readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
|
|
@@ -5439,7 +5441,7 @@ export declare const ServerDefinitions: readonly [import("effect/Schema").Struct
|
|
|
5439
5441
|
}>>, never, never>;
|
|
5440
5442
|
readonly data: import("effect/Schema").Struct<{}>;
|
|
5441
5443
|
}> & {
|
|
5442
|
-
type: "
|
|
5444
|
+
type: "config.updated";
|
|
5443
5445
|
durability: "ephemeral";
|
|
5444
5446
|
durable: undefined;
|
|
5445
5447
|
data: import("effect/Schema").Struct<{}>;
|
|
@@ -5449,7 +5451,7 @@ export declare const ServerDefinitions: readonly [import("effect/Schema").Struct
|
|
|
5449
5451
|
};
|
|
5450
5452
|
readonly created: import("effect/Schema").decodeTo<import("effect/Schema").DateTimeUtc, import("effect/Schema").Finite, never, never>;
|
|
5451
5453
|
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>;
|
|
5452
|
-
readonly type: import("effect/Schema").Literal<"
|
|
5454
|
+
readonly type: import("effect/Schema").Literal<"skill.updated">;
|
|
5453
5455
|
readonly location: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
|
|
5454
5456
|
readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
|
|
5455
5457
|
readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
|
|
@@ -5469,18 +5471,12 @@ export declare const ServerDefinitions: readonly [import("effect/Schema").Struct
|
|
|
5469
5471
|
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
5470
5472
|
}>, never, never>;
|
|
5471
5473
|
}>>, never, never>;
|
|
5472
|
-
readonly data: import("effect/Schema").Struct<{
|
|
5473
|
-
readonly file: import("effect/Schema").String;
|
|
5474
|
-
readonly event: import("effect/Schema").Literals<readonly ["add", "change", "unlink"]>;
|
|
5475
|
-
}>;
|
|
5474
|
+
readonly data: import("effect/Schema").Struct<{}>;
|
|
5476
5475
|
}> & {
|
|
5477
|
-
type: "
|
|
5476
|
+
type: "skill.updated";
|
|
5478
5477
|
durability: "ephemeral";
|
|
5479
5478
|
durable: undefined;
|
|
5480
|
-
data: import("effect/Schema").Struct<{
|
|
5481
|
-
readonly file: import("effect/Schema").String;
|
|
5482
|
-
readonly event: import("effect/Schema").Literals<readonly ["add", "change", "unlink"]>;
|
|
5483
|
-
}>;
|
|
5479
|
+
data: import("effect/Schema").Struct<{}>;
|
|
5484
5480
|
}, import("effect/Schema").Struct<{
|
|
5485
5481
|
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
|
|
5486
5482
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -12752,7 +12748,7 @@ export declare const Definitions: readonly [import("effect/Schema").Struct<{
|
|
|
12752
12748
|
};
|
|
12753
12749
|
readonly created: import("effect/Schema").decodeTo<import("effect/Schema").DateTimeUtc, import("effect/Schema").Finite, never, never>;
|
|
12754
12750
|
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>;
|
|
12755
|
-
readonly type: import("effect/Schema").Literal<"
|
|
12751
|
+
readonly type: import("effect/Schema").Literal<"filesystem.changed">;
|
|
12756
12752
|
readonly location: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
|
|
12757
12753
|
readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
|
|
12758
12754
|
readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
|
|
@@ -12774,13 +12770,15 @@ export declare const Definitions: readonly [import("effect/Schema").Struct<{
|
|
|
12774
12770
|
}>>, never, never>;
|
|
12775
12771
|
readonly data: import("effect/Schema").Struct<{
|
|
12776
12772
|
readonly file: import("effect/Schema").String;
|
|
12773
|
+
readonly event: import("effect/Schema").Literals<readonly ["add", "change", "unlink"]>;
|
|
12777
12774
|
}>;
|
|
12778
12775
|
}> & {
|
|
12779
|
-
type: "
|
|
12776
|
+
type: "filesystem.changed";
|
|
12780
12777
|
durability: "ephemeral";
|
|
12781
12778
|
durable: undefined;
|
|
12782
12779
|
data: import("effect/Schema").Struct<{
|
|
12783
12780
|
readonly file: import("effect/Schema").String;
|
|
12781
|
+
readonly event: import("effect/Schema").Literals<readonly ["add", "change", "unlink"]>;
|
|
12784
12782
|
}>;
|
|
12785
12783
|
}, import("effect/Schema").Struct<{
|
|
12786
12784
|
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
|
|
@@ -13052,7 +13050,7 @@ export declare const Definitions: readonly [import("effect/Schema").Struct<{
|
|
|
13052
13050
|
};
|
|
13053
13051
|
readonly created: import("effect/Schema").decodeTo<import("effect/Schema").DateTimeUtc, import("effect/Schema").Finite, never, never>;
|
|
13054
13052
|
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>;
|
|
13055
|
-
readonly type: import("effect/Schema").Literal<"
|
|
13053
|
+
readonly type: import("effect/Schema").Literal<"config.updated">;
|
|
13056
13054
|
readonly location: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
|
|
13057
13055
|
readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
|
|
13058
13056
|
readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
|
|
@@ -13074,7 +13072,7 @@ export declare const Definitions: readonly [import("effect/Schema").Struct<{
|
|
|
13074
13072
|
}>>, never, never>;
|
|
13075
13073
|
readonly data: import("effect/Schema").Struct<{}>;
|
|
13076
13074
|
}> & {
|
|
13077
|
-
type: "
|
|
13075
|
+
type: "config.updated";
|
|
13078
13076
|
durability: "ephemeral";
|
|
13079
13077
|
durable: undefined;
|
|
13080
13078
|
data: import("effect/Schema").Struct<{}>;
|
|
@@ -13084,7 +13082,7 @@ export declare const Definitions: readonly [import("effect/Schema").Struct<{
|
|
|
13084
13082
|
};
|
|
13085
13083
|
readonly created: import("effect/Schema").decodeTo<import("effect/Schema").DateTimeUtc, import("effect/Schema").Finite, never, never>;
|
|
13086
13084
|
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>;
|
|
13087
|
-
readonly type: import("effect/Schema").Literal<"
|
|
13085
|
+
readonly type: import("effect/Schema").Literal<"skill.updated">;
|
|
13088
13086
|
readonly location: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
|
|
13089
13087
|
readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
|
|
13090
13088
|
readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
|
|
@@ -13104,18 +13102,12 @@ export declare const Definitions: readonly [import("effect/Schema").Struct<{
|
|
|
13104
13102
|
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
13105
13103
|
}>, never, never>;
|
|
13106
13104
|
}>>, never, never>;
|
|
13107
|
-
readonly data: import("effect/Schema").Struct<{
|
|
13108
|
-
readonly file: import("effect/Schema").String;
|
|
13109
|
-
readonly event: import("effect/Schema").Literals<readonly ["add", "change", "unlink"]>;
|
|
13110
|
-
}>;
|
|
13105
|
+
readonly data: import("effect/Schema").Struct<{}>;
|
|
13111
13106
|
}> & {
|
|
13112
|
-
type: "
|
|
13107
|
+
type: "skill.updated";
|
|
13113
13108
|
durability: "ephemeral";
|
|
13114
13109
|
durable: undefined;
|
|
13115
|
-
data: import("effect/Schema").Struct<{
|
|
13116
|
-
readonly file: import("effect/Schema").String;
|
|
13117
|
-
readonly event: import("effect/Schema").Literals<readonly ["add", "change", "unlink"]>;
|
|
13118
|
-
}>;
|
|
13110
|
+
data: import("effect/Schema").Struct<{}>;
|
|
13119
13111
|
}, import("effect/Schema").Struct<{
|
|
13120
13112
|
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
|
|
13121
13113
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -14510,6 +14502,42 @@ export declare const Definitions: readonly [import("effect/Schema").Struct<{
|
|
|
14510
14502
|
ascending: (id?: string) => string & import("effect/Brand").Brand<"MessageID">;
|
|
14511
14503
|
};
|
|
14512
14504
|
}>;
|
|
14505
|
+
}, import("effect/Schema").Struct<{
|
|
14506
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
|
|
14507
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
14508
|
+
};
|
|
14509
|
+
readonly created: import("effect/Schema").decodeTo<import("effect/Schema").DateTimeUtc, import("effect/Schema").Finite, never, never>;
|
|
14510
|
+
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>;
|
|
14511
|
+
readonly type: import("effect/Schema").Literal<"file.edited">;
|
|
14512
|
+
readonly location: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
|
|
14513
|
+
readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
|
|
14514
|
+
readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
|
|
14515
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
14516
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
14517
|
+
}>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
|
|
14518
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
14519
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
14520
|
+
}>, never, never>;
|
|
14521
|
+
}>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
14522
|
+
readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
|
|
14523
|
+
readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
|
|
14524
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
14525
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
14526
|
+
}>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
|
|
14527
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
14528
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
14529
|
+
}>, never, never>;
|
|
14530
|
+
}>>, never, never>;
|
|
14531
|
+
readonly data: import("effect/Schema").Struct<{
|
|
14532
|
+
readonly file: import("effect/Schema").String;
|
|
14533
|
+
}>;
|
|
14534
|
+
}> & {
|
|
14535
|
+
type: "file.edited";
|
|
14536
|
+
durability: "ephemeral";
|
|
14537
|
+
durable: undefined;
|
|
14538
|
+
data: import("effect/Schema").Struct<{
|
|
14539
|
+
readonly file: import("effect/Schema").String;
|
|
14540
|
+
}>;
|
|
14513
14541
|
}, import("effect/Schema").Struct<{
|
|
14514
14542
|
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
|
|
14515
14543
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
package/dist/event-manifest.js
CHANGED
|
@@ -2,10 +2,11 @@ export * as EventManifest from "./event-manifest.js";
|
|
|
2
2
|
import { Agent } from "./agent.js";
|
|
3
3
|
import { Catalog } from "./catalog.js";
|
|
4
4
|
import { Command } from "./command.js";
|
|
5
|
+
import { Config } from "./config.js";
|
|
5
6
|
import { Durable } from "./durable-event-manifest.js";
|
|
6
7
|
import { Event } from "./event.js";
|
|
7
8
|
import { FileSystem } from "./filesystem.js";
|
|
8
|
-
import {
|
|
9
|
+
import { FileSystemV1 } from "./filesystem-v1.js";
|
|
9
10
|
import { Form } from "./form.js";
|
|
10
11
|
import { InstallationEvent } from "./installation-event.js";
|
|
11
12
|
import { Integration } from "./integration.js";
|
|
@@ -38,7 +39,7 @@ const sessionV1DurableDefinitions = SessionV1.Event.Definitions.filter((definiti
|
|
|
38
39
|
const sessionV1LiveDefinitions = SessionV1.Event.Definitions.filter((definition) => definition.durability === "ephemeral");
|
|
39
40
|
const coreDefinitions = Event.inventory(...sessionV1DurableDefinitions, ...SessionEvent.Definitions);
|
|
40
41
|
const foundationDefinitions = Event.inventory(...ModelsDev.Event.Definitions, ...Integration.Event.Definitions, ...Catalog.Event.Definitions, ...Agent.Event.Definitions, ...coreDefinitions);
|
|
41
|
-
const featureDefinitions = Event.inventory(...FileSystem.Event.Definitions, ...Reference.Event.Definitions, ...Permission.Event.Definitions, ...Plugin.Event.Definitions, ...ProjectDirectories.Event.Definitions, ...Command.Event.Definitions, ...
|
|
42
|
+
const featureDefinitions = Event.inventory(...FileSystem.Event.Definitions, ...Reference.Event.Definitions, ...Permission.Event.Definitions, ...Plugin.Event.Definitions, ...ProjectDirectories.Event.Definitions, ...Command.Event.Definitions, ...Config.Event.Definitions, ...Skill.Event.Definitions, ...Pty.Event.Definitions, ...Shell.Event.Definitions, ...Question.Event.Definitions, ...Form.Event.Definitions);
|
|
42
43
|
export const ServerDefinitions = Event.inventory(...foundationDefinitions, ...featureDefinitions, ...SessionTodo.Event.Definitions,
|
|
43
44
|
// Current events the TUI consumes from the public stream.
|
|
44
45
|
...SessionStatusEvent.Definitions, ...TuiEvent.Definitions, ...InstallationEvent.Definitions, ...VcsEvent.Definitions, McpEvent.StatusChanged,
|
|
@@ -46,6 +47,6 @@ export const ServerDefinitions = Event.inventory(...foundationDefinitions, ...fe
|
|
|
46
47
|
// the migration (permission.asked/replied, question.asked, session.error).
|
|
47
48
|
// Remove when the TUI moves to the current permission/question surfaces.
|
|
48
49
|
...PermissionV1.Event.Definitions, ...QuestionV1.Event.Definitions, SessionV1.Error);
|
|
49
|
-
export const Definitions = Event.inventory(...foundationDefinitions, ...sessionV1LiveDefinitions, ...InstallationEvent.Definitions, ...featureDefinitions, ...SessionTodo.Event.Definitions, ...LspEvent.Definitions, ...PermissionV1.Event.Definitions, ...TuiEvent.Definitions, ...McpEvent.Definitions, ...LegacyEvent.Definitions, ...Project.Event.Definitions, ...SessionStatusEvent.Definitions, ...QuestionV1.Event.Definitions, ...SessionCompactionEvent.Definitions, ...VcsEvent.Definitions, ...WorkspaceEvent.Definitions, ...WorktreeEvent.Definitions, ...ServerEvent.Definitions);
|
|
50
|
+
export const Definitions = Event.inventory(...foundationDefinitions, ...sessionV1LiveDefinitions, ...InstallationEvent.Definitions, ...featureDefinitions, ...SessionTodo.Event.Definitions, ...LspEvent.Definitions, ...PermissionV1.Event.Definitions, ...TuiEvent.Definitions, ...McpEvent.Definitions, ...LegacyEvent.Definitions, ...FileSystemV1.Event.Definitions, ...Project.Event.Definitions, ...SessionStatusEvent.Definitions, ...QuestionV1.Event.Definitions, ...SessionCompactionEvent.Definitions, ...VcsEvent.Definitions, ...WorkspaceEvent.Definitions, ...WorktreeEvent.Definitions, ...ServerEvent.Definitions);
|
|
50
51
|
export const Latest = Event.latest(Definitions);
|
|
51
52
|
export { Durable };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./v1/filesystem.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./v1/filesystem.js";
|
package/dist/filesystem.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export * as FileSystem from "./filesystem.js";
|
|
2
2
|
import { Schema } from "effect";
|
|
3
3
|
export declare const Event: {
|
|
4
|
-
|
|
4
|
+
Changed: Schema.Struct<{
|
|
5
5
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
6
6
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
7
7
|
};
|
|
8
8
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
9
9
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
10
|
-
readonly type: Schema.Literal<"
|
|
10
|
+
readonly type: Schema.Literal<"filesystem.changed">;
|
|
11
11
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
12
12
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
13
13
|
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
@@ -29,13 +29,15 @@ export declare const Event: {
|
|
|
29
29
|
}>>, never, never>;
|
|
30
30
|
readonly data: Schema.Struct<{
|
|
31
31
|
readonly file: Schema.String;
|
|
32
|
+
readonly event: Schema.Literals<readonly ["add", "change", "unlink"]>;
|
|
32
33
|
}>;
|
|
33
34
|
}> & {
|
|
34
|
-
type: "
|
|
35
|
+
type: "filesystem.changed";
|
|
35
36
|
durability: "ephemeral";
|
|
36
37
|
durable: undefined;
|
|
37
38
|
data: Schema.Struct<{
|
|
38
39
|
readonly file: Schema.String;
|
|
40
|
+
readonly event: Schema.Literals<readonly ["add", "change", "unlink"]>;
|
|
39
41
|
}>;
|
|
40
42
|
};
|
|
41
43
|
Definitions: readonly [Schema.Struct<{
|
|
@@ -44,7 +46,7 @@ export declare const Event: {
|
|
|
44
46
|
};
|
|
45
47
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
46
48
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
47
|
-
readonly type: Schema.Literal<"
|
|
49
|
+
readonly type: Schema.Literal<"filesystem.changed">;
|
|
48
50
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
49
51
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
50
52
|
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
@@ -66,13 +68,15 @@ export declare const Event: {
|
|
|
66
68
|
}>>, never, never>;
|
|
67
69
|
readonly data: Schema.Struct<{
|
|
68
70
|
readonly file: Schema.String;
|
|
71
|
+
readonly event: Schema.Literals<readonly ["add", "change", "unlink"]>;
|
|
69
72
|
}>;
|
|
70
73
|
}> & {
|
|
71
|
-
type: "
|
|
74
|
+
type: "filesystem.changed";
|
|
72
75
|
durability: "ephemeral";
|
|
73
76
|
durable: undefined;
|
|
74
77
|
data: Schema.Struct<{
|
|
75
78
|
readonly file: Schema.String;
|
|
79
|
+
readonly event: Schema.Literals<readonly ["add", "change", "unlink"]>;
|
|
76
80
|
}>;
|
|
77
81
|
}];
|
|
78
82
|
};
|
package/dist/filesystem.js
CHANGED
|
@@ -3,11 +3,14 @@ import { Schema } from "effect";
|
|
|
3
3
|
import { optional } from "./schema.js";
|
|
4
4
|
import { ephemeral, inventory } from "./event.js";
|
|
5
5
|
import { NonNegativeInt, PositiveInt, RelativePath } from "./schema.js";
|
|
6
|
-
const
|
|
7
|
-
type: "
|
|
8
|
-
schema: {
|
|
6
|
+
const Changed = ephemeral({
|
|
7
|
+
type: "filesystem.changed",
|
|
8
|
+
schema: {
|
|
9
|
+
file: Schema.String,
|
|
10
|
+
event: Schema.Literals(["add", "change", "unlink"]),
|
|
11
|
+
},
|
|
9
12
|
});
|
|
10
|
-
export const Event = {
|
|
13
|
+
export const Event = { Changed, Definitions: inventory(Changed) };
|
|
11
14
|
export const Entry = Schema.Struct({
|
|
12
15
|
path: RelativePath,
|
|
13
16
|
type: Schema.Literals(["file", "directory"]),
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/dist/mcp.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export type Status = typeof Status.Type;
|
|
|
4
4
|
export declare const Status: Schema.toTaggedUnion<"status", readonly [Schema.Struct<{
|
|
5
5
|
readonly status: Schema.Literal<"connected">;
|
|
6
6
|
}>, Schema.Struct<{
|
|
7
|
-
readonly status: Schema.Literal<"
|
|
7
|
+
readonly status: Schema.Literal<"pending">;
|
|
8
8
|
}>, Schema.Struct<{
|
|
9
9
|
readonly status: Schema.Literal<"disabled">;
|
|
10
10
|
}>, Schema.Struct<{
|
|
@@ -23,7 +23,7 @@ export declare const Server: Schema.Struct<{
|
|
|
23
23
|
readonly status: Schema.toTaggedUnion<"status", readonly [Schema.Struct<{
|
|
24
24
|
readonly status: Schema.Literal<"connected">;
|
|
25
25
|
}>, Schema.Struct<{
|
|
26
|
-
readonly status: Schema.Literal<"
|
|
26
|
+
readonly status: Schema.Literal<"pending">;
|
|
27
27
|
}>, Schema.Struct<{
|
|
28
28
|
readonly status: Schema.Literal<"disabled">;
|
|
29
29
|
}>, Schema.Struct<{
|
package/dist/mcp.js
CHANGED
|
@@ -5,8 +5,8 @@ import { IntegrationID } from "./integration-id.js";
|
|
|
5
5
|
const Connected = Schema.Struct({ status: Schema.Literal("connected") }).annotate({
|
|
6
6
|
identifier: "Mcp.Status.Connected",
|
|
7
7
|
});
|
|
8
|
-
const
|
|
9
|
-
identifier: "Mcp.Status.
|
|
8
|
+
const Pending = Schema.Struct({ status: Schema.Literal("pending") }).annotate({
|
|
9
|
+
identifier: "Mcp.Status.Pending",
|
|
10
10
|
});
|
|
11
11
|
const Disabled = Schema.Struct({ status: Schema.Literal("disabled") }).annotate({
|
|
12
12
|
identifier: "Mcp.Status.Disabled",
|
|
@@ -23,7 +23,7 @@ const NeedsClientRegistration = Schema.Struct({
|
|
|
23
23
|
}).annotate({ identifier: "Mcp.Status.NeedsClientRegistration" });
|
|
24
24
|
export const Status = Schema.Union([
|
|
25
25
|
Connected,
|
|
26
|
-
|
|
26
|
+
Pending,
|
|
27
27
|
Disabled,
|
|
28
28
|
Failed,
|
|
29
29
|
NeedsAuth,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export * as
|
|
1
|
+
export * as FileSystemV1 from "./filesystem.js";
|
|
2
2
|
import { Schema } from "effect";
|
|
3
3
|
export declare const Event: {
|
|
4
|
-
|
|
4
|
+
Edited: Schema.Struct<{
|
|
5
5
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
6
6
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
7
7
|
};
|
|
8
8
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
9
9
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
10
|
-
readonly type: Schema.Literal<"file.
|
|
10
|
+
readonly type: Schema.Literal<"file.edited">;
|
|
11
11
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
12
12
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
13
13
|
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
@@ -29,15 +29,13 @@ export declare const Event: {
|
|
|
29
29
|
}>>, never, never>;
|
|
30
30
|
readonly data: Schema.Struct<{
|
|
31
31
|
readonly file: Schema.String;
|
|
32
|
-
readonly event: Schema.Literals<readonly ["add", "change", "unlink"]>;
|
|
33
32
|
}>;
|
|
34
33
|
}> & {
|
|
35
|
-
type: "file.
|
|
34
|
+
type: "file.edited";
|
|
36
35
|
durability: "ephemeral";
|
|
37
36
|
durable: undefined;
|
|
38
37
|
data: Schema.Struct<{
|
|
39
38
|
readonly file: Schema.String;
|
|
40
|
-
readonly event: Schema.Literals<readonly ["add", "change", "unlink"]>;
|
|
41
39
|
}>;
|
|
42
40
|
};
|
|
43
41
|
Definitions: readonly [Schema.Struct<{
|
|
@@ -46,7 +44,7 @@ export declare const Event: {
|
|
|
46
44
|
};
|
|
47
45
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
48
46
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
49
|
-
readonly type: Schema.Literal<"file.
|
|
47
|
+
readonly type: Schema.Literal<"file.edited">;
|
|
50
48
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
51
49
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
52
50
|
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
@@ -68,15 +66,13 @@ export declare const Event: {
|
|
|
68
66
|
}>>, never, never>;
|
|
69
67
|
readonly data: Schema.Struct<{
|
|
70
68
|
readonly file: Schema.String;
|
|
71
|
-
readonly event: Schema.Literals<readonly ["add", "change", "unlink"]>;
|
|
72
69
|
}>;
|
|
73
70
|
}> & {
|
|
74
|
-
type: "file.
|
|
71
|
+
type: "file.edited";
|
|
75
72
|
durability: "ephemeral";
|
|
76
73
|
durable: undefined;
|
|
77
74
|
data: Schema.Struct<{
|
|
78
75
|
readonly file: Schema.String;
|
|
79
|
-
readonly event: Schema.Literals<readonly ["add", "change", "unlink"]>;
|
|
80
76
|
}>;
|
|
81
77
|
}];
|
|
82
78
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * as FileSystemV1 from "./filesystem.js";
|
|
2
|
+
import { Schema } from "effect";
|
|
3
|
+
import { ephemeral, inventory } from "../event.js";
|
|
4
|
+
const Edited = ephemeral({
|
|
5
|
+
type: "file.edited",
|
|
6
|
+
schema: { file: Schema.String },
|
|
7
|
+
});
|
|
8
|
+
export const Event = { Edited, Definitions: inventory(Edited) };
|
package/package.json
CHANGED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export * as FileSystemWatcher from "./filesystem-watcher.js";
|
|
2
|
-
import { Schema } from "effect";
|
|
3
|
-
import { ephemeral, inventory } from "./event.js";
|
|
4
|
-
const Updated = ephemeral({
|
|
5
|
-
type: "file.watcher.updated",
|
|
6
|
-
schema: {
|
|
7
|
-
file: Schema.String,
|
|
8
|
-
event: Schema.Literals(["add", "change", "unlink"]),
|
|
9
|
-
},
|
|
10
|
-
});
|
|
11
|
-
export const Event = { Updated, Definitions: inventory(Updated) };
|