@nyte-ai/schema 0.0.24 → 0.0.25-beta.1
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/chunks/{browser-xk4psyrx.js → browser-40skw1kj.js} +1 -1
- package/dist/chunks/{browser-fnanbp6m.js → browser-5w8ywd56.js} +5 -4
- package/dist/chunks/{browser-0chm3654.js → browser-82qzgxz4.js} +13 -2
- package/dist/chunks/{browser-qncc807c.js → browser-b1pzvhs6.js} +1 -1
- package/dist/chunks/{browser-h5k4hqfq.js → browser-b1zjf2es.js} +1 -1
- package/dist/chunks/{browser-ay8k1s1m.js → browser-fw8cf4fc.js} +2 -2
- package/dist/chunks/{browser-fe66aj8v.js → browser-kmkhr82d.js} +27 -9
- package/dist/chunks/{browser-s2xe7c21.js → browser-pk5dmvrr.js} +3 -3
- package/dist/chunks/{browser-etfrcxhb.js → browser-pvrs6rs5.js} +3 -3
- package/dist/chunks/{browser-xensz05x.js → browser-t7t9fc1r.js} +1 -1
- package/dist/chunks/{browser-gzn951k8.js → browser-ts4gc07c.js} +39 -4
- package/dist/chunks/{browser-hq5q56sf.js → browser-wqkhghw2.js} +15 -7
- package/dist/src/connection.js +4 -4
- package/dist/src/events.d.ts +108 -108
- package/dist/src/events.js +3 -3
- package/dist/src/heads.d.ts +20 -0
- package/dist/src/heads.js +8 -2
- package/dist/src/hooks.js +2 -2
- package/dist/src/ids.d.ts +1 -2
- package/dist/src/index.js +20 -12
- package/dist/src/mcp.d.ts +8 -8
- package/dist/src/messages.d.ts +8 -0
- package/dist/src/messages.js +4 -2
- package/dist/src/parts.d.ts +40 -40
- package/dist/src/runs.d.ts +12 -12
- package/dist/src/sessions.d.ts +8 -8
- package/dist/src/sessions.js +2 -2
- package/dist/src/store.d.ts +52 -52
- package/dist/src/store.js +4 -4
- package/dist/src/views.d.ts +502 -170
- package/dist/src/views.js +3 -3
- package/dist/src/wire/operations/browser.d.ts +119 -119
- package/dist/src/wire/operations/fields.d.ts +6 -6
- package/dist/src/wire/operations/files.d.ts +52 -52
- package/dist/src/wire/operations/git.d.ts +121 -121
- package/dist/src/wire/operations/github.d.ts +34 -34
- package/dist/src/wire/operations/host.d.ts +299 -298
- package/dist/src/wire/operations/host.js +6 -6
- package/dist/src/wire/operations/index.d.ts +4771 -4362
- package/dist/src/wire/operations/index.js +9 -9
- package/dist/src/wire/operations/session.d.ts +2511 -2103
- package/dist/src/wire/operations/session.js +5 -5
- package/dist/src/wire/operations/workspace.d.ts +244 -244
- package/dist/src/wire/operations/workspace.js +3 -3
- package/package.json +2 -3
|
@@ -10,23 +10,23 @@ export declare function wireSchema<T extends TSchema>(type: T): import("../../sc
|
|
|
10
10
|
} & {
|
|
11
11
|
Root: T;
|
|
12
12
|
}, {}, T>>;
|
|
13
|
-
export declare function wireObject<P extends TProperties>(properties: P): import("../../schema.ts").Schema<keyof P extends never ? object : (Readonly<Partial<Pick<{ [
|
|
13
|
+
export declare function wireObject<P extends TProperties>(properties: P): import("../../schema.ts").Schema<keyof P extends never ? object : (Readonly<Partial<Pick<{ [Key in keyof P]: import("typebox").StaticType<["Root"], "Decode", {
|
|
14
14
|
Json: Type.TUnion<[Type.TNull, Type.TBoolean, Type.TNumber, Type.TString, Type.TArray<Type.TRef<"Json">>, Type.TRecord<"^.*$", Type.TRef<"Json">>]>;
|
|
15
15
|
} & {
|
|
16
16
|
Root: Type.TObject<P>;
|
|
17
|
-
}, P, P[
|
|
17
|
+
}, P, P[Key]>; }, { [Key in keyof P]: P[Key] extends Type.TReadonly<TSchema> ? P[Key] extends Type.TOptional<P[Key]> ? Key : never : never; }[keyof P]>>> & Readonly<Pick<{ [Key in keyof P]: import("typebox").StaticType<["Root"], "Decode", {
|
|
18
18
|
Json: Type.TUnion<[Type.TNull, Type.TBoolean, Type.TNumber, Type.TString, Type.TArray<Type.TRef<"Json">>, Type.TRecord<"^.*$", Type.TRef<"Json">>]>;
|
|
19
19
|
} & {
|
|
20
20
|
Root: Type.TObject<P>;
|
|
21
|
-
}, P, P[
|
|
21
|
+
}, P, P[Key]>; }, { [Key in keyof P]: P[Key] extends Type.TReadonly<TSchema> ? P[Key] extends Type.TOptional<P[Key]> ? never : Key : never; }[keyof P]>> & Partial<Pick<{ [Key in keyof P]: import("typebox").StaticType<["Root"], "Decode", {
|
|
22
22
|
Json: Type.TUnion<[Type.TNull, Type.TBoolean, Type.TNumber, Type.TString, Type.TArray<Type.TRef<"Json">>, Type.TRecord<"^.*$", Type.TRef<"Json">>]>;
|
|
23
23
|
} & {
|
|
24
24
|
Root: Type.TObject<P>;
|
|
25
|
-
}, P, P[
|
|
25
|
+
}, P, P[Key]>; }, { [Key in keyof P]: P[Key] extends Type.TOptional<TSchema> ? P[Key] extends Type.TReadonly<P[Key]> ? never : Key : never; }[keyof P]>> & Required<Pick<{ [Key in keyof P]: import("typebox").StaticType<["Root"], "Decode", {
|
|
26
26
|
Json: Type.TUnion<[Type.TNull, Type.TBoolean, Type.TNumber, Type.TString, Type.TArray<Type.TRef<"Json">>, Type.TRecord<"^.*$", Type.TRef<"Json">>]>;
|
|
27
27
|
} & {
|
|
28
28
|
Root: Type.TObject<P>;
|
|
29
|
-
}, P, P[
|
|
29
|
+
}, P, P[Key]>; }, Exclude<keyof P, { [Key in keyof P]: P[Key] extends Type.TReadonly<TSchema> ? P[Key] extends Type.TOptional<P[Key]> ? Key : never : never; }[keyof P] | { [Key in keyof P]: P[Key] extends Type.TReadonly<TSchema> ? P[Key] extends Type.TOptional<P[Key]> ? never : Key : never; }[keyof P] | { [Key in keyof P]: P[Key] extends Type.TOptional<TSchema> ? P[Key] extends Type.TReadonly<P[Key]> ? never : Key : never; }[keyof P]>>> extends infer T_1 ? { [K in keyof T_1]: T_1[K]; } : never) extends infer T extends Record<PropertyKey, unknown> ? { [Key in keyof T]: T[Key]; } : never>;
|
|
30
30
|
export declare const SESSION: {
|
|
31
31
|
session: Type.TUnsafe<import("../../ids.ts").Id<"session">>;
|
|
32
32
|
};
|
|
@@ -34,8 +34,8 @@ export declare const WORKSPACE: {
|
|
|
34
34
|
workspace: Type.TUnsafe<import("../../ids.ts").Id<"workspace">>;
|
|
35
35
|
};
|
|
36
36
|
export declare const PATH: {
|
|
37
|
-
path: Type.TString;
|
|
38
37
|
workspace: Type.TUnsafe<import("../../ids.ts").Id<"workspace">>;
|
|
38
|
+
path: Type.TString;
|
|
39
39
|
};
|
|
40
40
|
export declare const NOTHING: import("../../schema.ts").Schema<null>;
|
|
41
41
|
export declare const BYTES: import("../../schema.ts").Schema<Uint8Array<ArrayBufferLike>>;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
export declare const FILE_OPERATIONS: {
|
|
2
2
|
readonly "files.read": {
|
|
3
|
+
readonly authority: "participant";
|
|
4
|
+
readonly scope: "workspace";
|
|
5
|
+
readonly capability: "files";
|
|
3
6
|
readonly kind: "query";
|
|
4
7
|
readonly input: import("../../schema.ts").Schema<{
|
|
5
8
|
workspace: import("../../ids.ts").Id<"workspace">;
|
|
@@ -8,57 +11,57 @@ export declare const FILE_OPERATIONS: {
|
|
|
8
11
|
readonly output: import("../../schema.ts").Schema<{
|
|
9
12
|
readonly kind: "text";
|
|
10
13
|
readonly path: string;
|
|
11
|
-
readonly version: import("../../ids.ts").Id<"file-version">;
|
|
12
14
|
readonly contents: string;
|
|
15
|
+
readonly version: import("../../ids.ts").Id<"file-version">;
|
|
13
16
|
} | {
|
|
14
17
|
readonly kind: "binary" | "large";
|
|
15
18
|
readonly path: string;
|
|
16
|
-
readonly version: import("../../ids.ts").Id<"file-version">;
|
|
17
19
|
readonly size: number;
|
|
20
|
+
readonly version: import("../../ids.ts").Id<"file-version">;
|
|
18
21
|
} | {
|
|
19
22
|
readonly kind: "missing";
|
|
20
23
|
readonly path: string;
|
|
21
24
|
}>;
|
|
25
|
+
};
|
|
26
|
+
readonly "files.bytes": {
|
|
22
27
|
readonly authority: "participant";
|
|
23
28
|
readonly scope: "workspace";
|
|
24
29
|
readonly capability: "files";
|
|
25
|
-
};
|
|
26
|
-
readonly "files.bytes": {
|
|
27
30
|
readonly kind: "stream";
|
|
28
31
|
readonly input: import("../../schema.ts").Schema<{
|
|
29
32
|
workspace: import("../../ids.ts").Id<"workspace">;
|
|
30
33
|
path: string;
|
|
31
34
|
}>;
|
|
32
35
|
readonly output: import("../../schema.ts").Schema<Uint8Array<ArrayBufferLike>>;
|
|
36
|
+
};
|
|
37
|
+
readonly "files.stat": {
|
|
33
38
|
readonly authority: "participant";
|
|
34
39
|
readonly scope: "workspace";
|
|
35
40
|
readonly capability: "files";
|
|
36
|
-
};
|
|
37
|
-
readonly "files.stat": {
|
|
38
41
|
readonly kind: "query";
|
|
39
42
|
readonly input: import("../../schema.ts").Schema<{
|
|
40
43
|
workspace: import("../../ids.ts").Id<"workspace">;
|
|
41
44
|
path: string;
|
|
42
45
|
}>;
|
|
43
46
|
readonly output: import("../../schema.ts").Schema<{
|
|
44
|
-
|
|
45
|
-
kind: "file" | "directory" | "symlink";
|
|
46
|
-
version: import("../../ids.ts").Id<"file-version">;
|
|
47
|
+
kind: "directory" | "file" | "symlink";
|
|
47
48
|
size: number;
|
|
49
|
+
version: import("../../ids.ts").Id<"file-version">;
|
|
50
|
+
target?: string | undefined;
|
|
48
51
|
} | null>;
|
|
52
|
+
};
|
|
53
|
+
readonly "files.write": {
|
|
49
54
|
readonly authority: "participant";
|
|
50
55
|
readonly scope: "workspace";
|
|
51
56
|
readonly capability: "files";
|
|
52
|
-
};
|
|
53
|
-
readonly "files.write": {
|
|
54
57
|
readonly kind: "command";
|
|
55
58
|
readonly input: import("../../schema.ts").Schema<{
|
|
59
|
+
workspace: import("../../ids.ts").Id<"workspace">;
|
|
60
|
+
path: string;
|
|
56
61
|
options?: {
|
|
57
|
-
expect?: import("../../ids.ts").Id<"file-version"> |
|
|
62
|
+
expect?: "absent" | import("../../ids.ts").Id<"file-version"> | undefined;
|
|
58
63
|
parents?: boolean | undefined;
|
|
59
64
|
} | undefined;
|
|
60
|
-
workspace: import("../../ids.ts").Id<"workspace">;
|
|
61
|
-
path: string;
|
|
62
65
|
}>;
|
|
63
66
|
readonly output: import("../../schema.ts").Schema<{
|
|
64
67
|
readonly kind: "saved";
|
|
@@ -69,18 +72,18 @@ export declare const FILE_OPERATIONS: {
|
|
|
69
72
|
} | {
|
|
70
73
|
readonly kind: "missing-parent";
|
|
71
74
|
}>;
|
|
75
|
+
};
|
|
76
|
+
readonly "files.remove": {
|
|
72
77
|
readonly authority: "participant";
|
|
73
78
|
readonly scope: "workspace";
|
|
74
79
|
readonly capability: "files";
|
|
75
|
-
};
|
|
76
|
-
readonly "files.remove": {
|
|
77
80
|
readonly kind: "command";
|
|
78
81
|
readonly input: import("../../schema.ts").Schema<{
|
|
82
|
+
workspace: import("../../ids.ts").Id<"workspace">;
|
|
83
|
+
path: string;
|
|
79
84
|
options?: {
|
|
80
85
|
expect?: import("../../ids.ts").Id<"file-version"> | undefined;
|
|
81
86
|
} | undefined;
|
|
82
|
-
workspace: import("../../ids.ts").Id<"workspace">;
|
|
83
|
-
path: string;
|
|
84
87
|
}>;
|
|
85
88
|
readonly output: import("../../schema.ts").Schema<{
|
|
86
89
|
readonly kind: "saved";
|
|
@@ -91,37 +94,37 @@ export declare const FILE_OPERATIONS: {
|
|
|
91
94
|
} | {
|
|
92
95
|
readonly kind: "missing-parent";
|
|
93
96
|
}>;
|
|
97
|
+
};
|
|
98
|
+
readonly "files.batch": {
|
|
94
99
|
readonly authority: "participant";
|
|
95
100
|
readonly scope: "workspace";
|
|
96
101
|
readonly capability: "files";
|
|
97
|
-
};
|
|
98
|
-
readonly "files.batch": {
|
|
99
102
|
readonly kind: "receipt";
|
|
100
103
|
readonly recovery: "replay";
|
|
101
104
|
readonly input: import("../../schema.ts").Schema<{
|
|
105
|
+
workspace: import("../../ids.ts").Id<"workspace">;
|
|
102
106
|
id?: import("../../ids.ts").Id<"receipt"> | undefined;
|
|
103
107
|
entries: ({
|
|
104
|
-
expect?: import("../../ids.ts").Id<"file-version"> | "absent" | undefined;
|
|
105
108
|
kind: "put";
|
|
106
109
|
path: string;
|
|
107
110
|
contents: string | {
|
|
108
111
|
blob: import("../../ids.ts").Id<"blob">;
|
|
109
112
|
};
|
|
113
|
+
expect?: "absent" | import("../../ids.ts").Id<"file-version"> | undefined;
|
|
110
114
|
} | {
|
|
111
|
-
expect?: import("../../ids.ts").Id<"file-version"> | undefined;
|
|
112
115
|
kind: "remove";
|
|
113
116
|
path: string;
|
|
117
|
+
expect?: import("../../ids.ts").Id<"file-version"> | undefined;
|
|
114
118
|
})[];
|
|
115
|
-
workspace: import("../../ids.ts").Id<"workspace">;
|
|
116
119
|
}>;
|
|
117
120
|
readonly output: import("../../schema.ts").Schema<{
|
|
118
121
|
receipt: import("../../ids.ts").Id<"receipt">;
|
|
119
122
|
}>;
|
|
123
|
+
};
|
|
124
|
+
readonly "files.format": {
|
|
120
125
|
readonly authority: "participant";
|
|
121
126
|
readonly scope: "workspace";
|
|
122
127
|
readonly capability: "files";
|
|
123
|
-
};
|
|
124
|
-
readonly "files.format": {
|
|
125
128
|
readonly kind: "query";
|
|
126
129
|
readonly input: import("../../schema.ts").Schema<{
|
|
127
130
|
workspace: import("../../ids.ts").Id<"workspace">;
|
|
@@ -137,55 +140,56 @@ export declare const FILE_OPERATIONS: {
|
|
|
137
140
|
readonly kind: "unavailable";
|
|
138
141
|
readonly reason: string;
|
|
139
142
|
}>;
|
|
143
|
+
};
|
|
144
|
+
readonly "files.scan": {
|
|
140
145
|
readonly authority: "participant";
|
|
141
146
|
readonly scope: "workspace";
|
|
142
147
|
readonly capability: "files";
|
|
143
|
-
};
|
|
144
|
-
readonly "files.scan": {
|
|
145
148
|
readonly kind: "stream";
|
|
146
149
|
readonly input: import("../../schema.ts").Schema<{
|
|
147
|
-
directory?: string | undefined;
|
|
148
|
-
ignored?: "include" | "exclude" | undefined;
|
|
149
150
|
workspace: import("../../ids.ts").Id<"workspace">;
|
|
151
|
+
directory?: string | undefined;
|
|
152
|
+
ignored?: "exclude" | "include" | undefined;
|
|
150
153
|
}>;
|
|
151
154
|
readonly output: import("../../schema.ts").Schema<{
|
|
155
|
+
readonly kind: "entries";
|
|
152
156
|
readonly entries: readonly {
|
|
153
|
-
readonly kind: "file" | "directory" | "symlink";
|
|
154
157
|
readonly path: string;
|
|
155
|
-
readonly
|
|
158
|
+
readonly kind: "directory" | "file" | "symlink";
|
|
156
159
|
readonly size: number | null;
|
|
160
|
+
readonly version: import("../../ids.ts").Id<"file-version"> | null;
|
|
157
161
|
}[];
|
|
158
|
-
readonly kind: "entries";
|
|
159
162
|
} | {
|
|
160
163
|
readonly kind: "complete";
|
|
161
164
|
} | {
|
|
162
165
|
readonly kind: "incomplete";
|
|
163
|
-
readonly reason: "
|
|
166
|
+
readonly reason: "changed" | "limit" | "permission";
|
|
164
167
|
}>;
|
|
168
|
+
};
|
|
169
|
+
readonly "files.find": {
|
|
165
170
|
readonly authority: "participant";
|
|
166
171
|
readonly scope: "workspace";
|
|
167
172
|
readonly capability: "files";
|
|
168
|
-
};
|
|
169
|
-
readonly "files.find": {
|
|
170
173
|
readonly kind: "query";
|
|
171
174
|
readonly input: import("../../schema.ts").Schema<{
|
|
172
|
-
limit?: number | undefined;
|
|
173
175
|
workspace: import("../../ids.ts").Id<"workspace">;
|
|
174
176
|
query: string;
|
|
177
|
+
limit?: number | undefined;
|
|
175
178
|
}>;
|
|
176
179
|
readonly output: import("../../schema.ts").Schema<{
|
|
177
|
-
kind: "file" | "directory" | "symlink";
|
|
178
180
|
path: string;
|
|
179
|
-
|
|
181
|
+
kind: "directory" | "file" | "symlink";
|
|
180
182
|
size: number | null;
|
|
183
|
+
version: import("../../ids.ts").Id<"file-version"> | null;
|
|
181
184
|
}[]>;
|
|
185
|
+
};
|
|
186
|
+
readonly "files.search": {
|
|
182
187
|
readonly authority: "participant";
|
|
183
188
|
readonly scope: "workspace";
|
|
184
189
|
readonly capability: "files";
|
|
185
|
-
};
|
|
186
|
-
readonly "files.search": {
|
|
187
190
|
readonly kind: "stream";
|
|
188
191
|
readonly input: import("../../schema.ts").Schema<{
|
|
192
|
+
query: string;
|
|
189
193
|
limit?: number | undefined;
|
|
190
194
|
caseSensitive?: boolean | undefined;
|
|
191
195
|
wholeWord?: boolean | undefined;
|
|
@@ -197,48 +201,44 @@ export declare const FILE_OPERATIONS: {
|
|
|
197
201
|
contents: string;
|
|
198
202
|
}[] | undefined;
|
|
199
203
|
workspace: import("../../ids.ts").Id<"workspace">;
|
|
200
|
-
query: string;
|
|
201
204
|
}>;
|
|
202
205
|
readonly output: import("../../schema.ts").Schema<{
|
|
203
|
-
readonly length: number;
|
|
204
|
-
readonly text: string;
|
|
205
206
|
readonly kind: "match";
|
|
206
207
|
readonly path: string;
|
|
207
208
|
readonly line: number;
|
|
208
209
|
readonly column: number;
|
|
210
|
+
readonly length: number;
|
|
211
|
+
readonly text: string;
|
|
209
212
|
} | {
|
|
210
213
|
readonly kind: "complete";
|
|
211
214
|
} | {
|
|
212
215
|
readonly kind: "truncated";
|
|
213
216
|
readonly limit: number;
|
|
214
217
|
}>;
|
|
218
|
+
};
|
|
219
|
+
readonly "files.watch": {
|
|
215
220
|
readonly authority: "participant";
|
|
216
221
|
readonly scope: "workspace";
|
|
217
222
|
readonly capability: "files";
|
|
218
|
-
};
|
|
219
|
-
readonly "files.watch": {
|
|
220
223
|
readonly kind: "watch";
|
|
221
224
|
readonly input: import("../../schema.ts").Schema<{
|
|
222
|
-
paths?: string[] | undefined;
|
|
223
225
|
workspace: import("../../ids.ts").Id<"workspace">;
|
|
226
|
+
paths?: string[] | undefined;
|
|
224
227
|
}>;
|
|
225
228
|
readonly output: import("../../schema.ts").Schema<{
|
|
226
|
-
kind: "created" | "removed" | "modified";
|
|
227
229
|
path: string;
|
|
228
230
|
version: import("../../ids.ts").Id<"file-version"> | null;
|
|
231
|
+
kind: "created" | "modified" | "removed";
|
|
229
232
|
}[]>;
|
|
233
|
+
};
|
|
234
|
+
readonly "files.upload": {
|
|
230
235
|
readonly authority: "participant";
|
|
231
236
|
readonly scope: "workspace";
|
|
232
237
|
readonly capability: "files";
|
|
233
|
-
};
|
|
234
|
-
readonly "files.upload": {
|
|
235
238
|
readonly kind: "command";
|
|
236
239
|
readonly input: import("../../schema.ts").Schema<{
|
|
237
240
|
workspace: import("../../ids.ts").Id<"workspace">;
|
|
238
241
|
}>;
|
|
239
242
|
readonly output: import("../../schema.ts").Schema<import("../../ids.ts").BlobId>;
|
|
240
|
-
readonly authority: "participant";
|
|
241
|
-
readonly scope: "workspace";
|
|
242
|
-
readonly capability: "files";
|
|
243
243
|
};
|
|
244
244
|
};
|