@nyte-ai/schema 0.0.0-stage → 0.0.19
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/LICENSE +21 -0
- package/THIRD-PARTY-NOTICES.md +866 -0
- package/dist/chunks/browser-0byq2fja.js +50 -0
- package/dist/chunks/browser-0chm3654.js +125 -0
- package/dist/chunks/browser-0g0z3617.js +47 -0
- package/dist/chunks/browser-0khex2b1.js +33 -0
- package/dist/chunks/browser-0sbkxgkx.js +115 -0
- package/dist/chunks/browser-0xr6c36r.js +106 -0
- package/dist/chunks/browser-1nqahr9q.js +239 -0
- package/dist/chunks/browser-1sfp0bcx.js +73 -0
- package/dist/chunks/browser-3exd93gm.js +50 -0
- package/dist/chunks/browser-40enyw9r.js +75 -0
- package/dist/chunks/browser-4et7qtz3.js +7 -0
- package/dist/chunks/browser-6e1madxa.js +83 -0
- package/dist/chunks/browser-6yby604e.js +96 -0
- package/dist/chunks/browser-7195qf3t.js +14 -0
- package/dist/chunks/browser-8ancsy4m.js +118 -0
- package/dist/chunks/browser-9ystjh78.js +0 -0
- package/dist/chunks/browser-b519jtez.js +102 -0
- package/dist/chunks/browser-bg1esaw0.js +82 -0
- package/dist/chunks/browser-ebr6k189.js +120 -0
- package/dist/chunks/browser-ekbecx9r.js +73 -0
- package/dist/chunks/browser-fd3accdr.js +159 -0
- package/dist/chunks/browser-g5khdcap.js +170 -0
- package/dist/chunks/browser-h5k4hqfq.js +244 -0
- package/dist/chunks/browser-h86zs54a.js +65 -0
- package/dist/chunks/browser-hp9ze9ga.js +185 -0
- package/dist/chunks/browser-hq5q56sf.js +79 -0
- package/dist/chunks/browser-j150etqf.js +101 -0
- package/dist/chunks/browser-j629a6wa.js +17 -0
- package/dist/chunks/browser-jgxe05s4.js +301 -0
- package/dist/chunks/browser-k20f6cvv.js +0 -0
- package/dist/chunks/browser-m0wzr0g8.js +5 -0
- package/dist/chunks/browser-mzfc0v5j.js +58 -0
- package/dist/chunks/browser-p691tcac.js +139 -0
- package/dist/chunks/browser-pdv675va.js +135 -0
- package/dist/chunks/browser-pvfshqyk.js +36 -0
- package/dist/chunks/browser-qkxe0fwp.js +6 -0
- package/dist/chunks/browser-qncc807c.js +66 -0
- package/dist/chunks/browser-r87w64mz.js +32 -0
- package/dist/chunks/browser-s2xe7c21.js +82 -0
- package/dist/chunks/browser-sgst60b0.js +293 -0
- package/dist/chunks/browser-sgwxbek9.js +37 -0
- package/dist/chunks/browser-v70eq512.js +215 -0
- package/dist/chunks/browser-vzc3r2r3.js +64 -0
- package/dist/chunks/browser-xensz05x.js +172 -0
- package/dist/chunks/browser-ynj8v9ad.js +35 -0
- package/dist/chunks/browser-ypez6s7v.js +52 -0
- package/dist/src/browser.d.ts +64 -0
- package/dist/src/browser.js +26 -0
- package/dist/src/configuration.d.ts +26 -0
- package/dist/src/configuration.js +17 -0
- package/dist/src/connection.d.ts +189 -0
- package/dist/src/connection.js +35 -0
- package/dist/src/declaration.d.ts +12 -0
- package/dist/src/declaration.js +1 -0
- package/dist/src/errors.d.ts +56 -0
- package/dist/src/errors.js +23 -0
- package/dist/src/events.d.ts +1752 -0
- package/dist/src/events.js +36 -0
- package/dist/src/files.d.ts +130 -0
- package/dist/src/files.js +49 -0
- package/dist/src/git.d.ts +280 -0
- package/dist/src/git.js +66 -0
- package/dist/src/github.d.ts +174 -0
- package/dist/src/github.js +31 -0
- package/dist/src/heads.d.ts +255 -0
- package/dist/src/heads.js +48 -0
- package/dist/src/hooks.d.ts +201 -0
- package/dist/src/hooks.js +28 -0
- package/dist/src/host.d.ts +137 -0
- package/dist/src/host.js +49 -0
- package/dist/src/ids.d.ts +66 -0
- package/dist/src/ids.js +67 -0
- package/dist/src/index.d.ts +30 -0
- package/dist/src/index.js +783 -0
- package/dist/src/jobs.d.ts +152 -0
- package/dist/src/jobs.js +34 -0
- package/dist/src/json.d.ts +24 -0
- package/dist/src/json.js +21 -0
- package/dist/src/mcp.d.ts +212 -0
- package/dist/src/mcp.js +34 -0
- package/dist/src/messages.d.ts +114 -0
- package/dist/src/messages.js +28 -0
- package/dist/src/model/index.d.ts +6 -0
- package/dist/src/model/index.js +61 -0
- package/dist/src/model/message.d.ts +178 -0
- package/dist/src/model/message.js +7 -0
- package/dist/src/model/model.d.ts +154 -0
- package/dist/src/model/model.js +11 -0
- package/dist/src/model/text.d.ts +6 -0
- package/dist/src/model/text.js +10 -0
- package/dist/src/model/tool.d.ts +36 -0
- package/dist/src/model/tool.js +1 -0
- package/dist/src/model/transcript.d.ts +34 -0
- package/dist/src/model/transcript.js +37 -0
- package/dist/src/model/typed.d.ts +6 -0
- package/dist/src/model/typed.js +8 -0
- package/dist/src/models.d.ts +198 -0
- package/dist/src/models.js +47 -0
- package/dist/src/parts.d.ts +364 -0
- package/dist/src/parts.js +35 -0
- package/dist/src/patch.d.ts +21 -0
- package/dist/src/patch.js +11 -0
- package/dist/src/plugins.d.ts +36 -0
- package/dist/src/plugins.js +9 -0
- package/dist/src/primitives.d.ts +83 -0
- package/dist/src/primitives.js +26 -0
- package/dist/src/runs.d.ts +433 -0
- package/dist/src/runs.js +39 -0
- package/dist/src/schema.d.ts +14 -0
- package/dist/src/schema.js +8 -0
- package/dist/src/serial.d.ts +18 -0
- package/dist/src/serial.js +39 -0
- package/dist/src/sessions.d.ts +578 -0
- package/dist/src/sessions.js +74 -0
- package/dist/src/store.d.ts +830 -0
- package/dist/src/store.js +33 -0
- package/dist/src/tools.d.ts +76 -0
- package/dist/src/tools.js +24 -0
- package/dist/src/views.d.ts +3105 -0
- package/dist/src/views.js +50 -0
- package/dist/src/wire/base64.d.ts +2 -0
- package/dist/src/wire/base64.js +6 -0
- package/dist/src/wire/nullable.d.ts +2 -0
- package/dist/src/wire/nullable.js +6 -0
- package/dist/src/wire/operations/browser.d.ts +535 -0
- package/dist/src/wire/operations/browser.js +12 -0
- package/dist/src/wire/operations/fields.d.ts +54 -0
- package/dist/src/wire/operations/fields.js +30 -0
- package/dist/src/wire/operations/files.d.ts +244 -0
- package/dist/src/wire/operations/files.js +13 -0
- package/dist/src/wire/operations/git.d.ts +513 -0
- package/dist/src/wire/operations/git.js +15 -0
- package/dist/src/wire/operations/github.d.ts +172 -0
- package/dist/src/wire/operations/github.js +12 -0
- package/dist/src/wire/operations/host.d.ts +1031 -0
- package/dist/src/wire/operations/host.js +27 -0
- package/dist/src/wire/operations/index.d.ts +7103 -0
- package/dist/src/wire/operations/index.js +40 -0
- package/dist/src/wire/operations/session.d.ts +3779 -0
- package/dist/src/wire/operations/session.js +25 -0
- package/dist/src/wire/operations/workspace.d.ts +842 -0
- package/dist/src/wire/operations/workspace.js +24 -0
- package/dist/src/workspaces.d.ts +119 -0
- package/dist/src/workspaces.js +38 -0
- package/package.json +51 -3
- package/README.md +0 -3
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { Type } from "typebox";
|
|
2
|
+
import type { TProperties, TSchema } from "typebox";
|
|
3
|
+
import type { Declaration } from "../../declaration.ts";
|
|
4
|
+
/** Returns a group of operation rows, each a declaration of its schemas, kind and access. */
|
|
5
|
+
export type OperationRows = {
|
|
6
|
+
readonly [name: string]: Declaration<unknown, unknown>;
|
|
7
|
+
};
|
|
8
|
+
export declare function wireSchema<T extends TSchema>(type: T): import("../../schema.ts").Schema<import("typebox").StaticType<["Root"], "Decode", {
|
|
9
|
+
Json: Type.TUnion<[Type.TNull, Type.TBoolean, Type.TNumber, Type.TString, Type.TArray<Type.TRef<"Json">>, Type.TRecord<"^.*$", Type.TRef<"Json">>]>;
|
|
10
|
+
} & {
|
|
11
|
+
Root: T;
|
|
12
|
+
}, {}, T>>;
|
|
13
|
+
export declare function wireObject<P extends TProperties>(properties: P): import("../../schema.ts").Schema<keyof P extends never ? object : (Readonly<Partial<Pick<{ [Key_1 in keyof P]: import("typebox").StaticType<["Root"], "Decode", {
|
|
14
|
+
Json: Type.TUnion<[Type.TNull, Type.TBoolean, Type.TNumber, Type.TString, Type.TArray<Type.TRef<"Json">>, Type.TRecord<"^.*$", Type.TRef<"Json">>]>;
|
|
15
|
+
} & {
|
|
16
|
+
Root: Type.TObject<P>;
|
|
17
|
+
}, P, P[Key_1]>; }, { [Key_2 in keyof P]: P[Key_2] extends Type.TReadonly<Type.TSchema> ? P[Key_2] extends Type.TOptional<P[Key_2]> ? Key_2 : never : never; }[keyof P]>>> & Readonly<Pick<{ [Key_1 in keyof P]: import("typebox").StaticType<["Root"], "Decode", {
|
|
18
|
+
Json: Type.TUnion<[Type.TNull, Type.TBoolean, Type.TNumber, Type.TString, Type.TArray<Type.TRef<"Json">>, Type.TRecord<"^.*$", Type.TRef<"Json">>]>;
|
|
19
|
+
} & {
|
|
20
|
+
Root: Type.TObject<P>;
|
|
21
|
+
}, P, P[Key_1]>; }, { [Key_3 in keyof P]: P[Key_3] extends Type.TReadonly<Type.TSchema> ? P[Key_3] extends Type.TOptional<P[Key_3]> ? never : Key_3 : never; }[keyof P]>> & Partial<Pick<{ [Key_1 in keyof P]: import("typebox").StaticType<["Root"], "Decode", {
|
|
22
|
+
Json: Type.TUnion<[Type.TNull, Type.TBoolean, Type.TNumber, Type.TString, Type.TArray<Type.TRef<"Json">>, Type.TRecord<"^.*$", Type.TRef<"Json">>]>;
|
|
23
|
+
} & {
|
|
24
|
+
Root: Type.TObject<P>;
|
|
25
|
+
}, P, P[Key_1]>; }, { [Key_4 in keyof P]: P[Key_4] extends Type.TOptional<Type.TSchema> ? P[Key_4] extends Type.TReadonly<P[Key_4]> ? never : Key_4 : never; }[keyof P]>> & Required<Pick<{ [Key_1 in keyof P]: import("typebox").StaticType<["Root"], "Decode", {
|
|
26
|
+
Json: Type.TUnion<[Type.TNull, Type.TBoolean, Type.TNumber, Type.TString, Type.TArray<Type.TRef<"Json">>, Type.TRecord<"^.*$", Type.TRef<"Json">>]>;
|
|
27
|
+
} & {
|
|
28
|
+
Root: Type.TObject<P>;
|
|
29
|
+
}, P, P[Key_1]>; }, Exclude<keyof P, { [Key_2 in keyof P]: P[Key_2] extends Type.TReadonly<Type.TSchema> ? P[Key_2] extends Type.TOptional<P[Key_2]> ? Key_2 : never : never; }[keyof P] | { [Key_3 in keyof P]: P[Key_3] extends Type.TReadonly<Type.TSchema> ? P[Key_3] extends Type.TOptional<P[Key_3]> ? never : Key_3 : never; }[keyof P] | { [Key_4 in keyof P]: P[Key_4] extends Type.TOptional<Type.TSchema> ? P[Key_4] extends Type.TReadonly<P[Key_4]> ? never : Key_4 : 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
|
+
export declare const SESSION: {
|
|
31
|
+
session: Type.TUnsafe<import("../../ids.ts").Id<"session">>;
|
|
32
|
+
};
|
|
33
|
+
export declare const WORKSPACE: {
|
|
34
|
+
workspace: Type.TUnsafe<import("../../ids.ts").Id<"workspace">>;
|
|
35
|
+
};
|
|
36
|
+
export declare const PATH: {
|
|
37
|
+
path: Type.TString;
|
|
38
|
+
workspace: Type.TUnsafe<import("../../ids.ts").Id<"workspace">>;
|
|
39
|
+
};
|
|
40
|
+
export declare const NOTHING: import("../../schema.ts").Schema<null>;
|
|
41
|
+
export declare const BYTES: import("../../schema.ts").Schema<Uint8Array<ArrayBufferLike>>;
|
|
42
|
+
export declare const ON_SESSION: import("../../schema.ts").Schema<{
|
|
43
|
+
session: import("../../ids.ts").Id<"session">;
|
|
44
|
+
}>;
|
|
45
|
+
export declare const ON_WORKSPACE: import("../../schema.ts").Schema<{
|
|
46
|
+
workspace: import("../../ids.ts").Id<"workspace">;
|
|
47
|
+
}>;
|
|
48
|
+
export declare const ON_PATH: import("../../schema.ts").Schema<{
|
|
49
|
+
workspace: import("../../ids.ts").Id<"workspace">;
|
|
50
|
+
path: string;
|
|
51
|
+
}>;
|
|
52
|
+
export declare const RECEIPT_ID: import("../../schema.ts").Schema<{
|
|
53
|
+
receipt: import("../../ids.ts").Id<"receipt">;
|
|
54
|
+
}>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import {
|
|
2
|
+
wireSchema2,
|
|
3
|
+
wireObject2,
|
|
4
|
+
SESSION2,
|
|
5
|
+
WORKSPACE2,
|
|
6
|
+
PATH2,
|
|
7
|
+
NOTHING2,
|
|
8
|
+
BYTES2,
|
|
9
|
+
ON_SESSION2,
|
|
10
|
+
ON_WORKSPACE2,
|
|
11
|
+
ON_PATH2,
|
|
12
|
+
RECEIPT_ID2
|
|
13
|
+
} from "../../../chunks/browser-r87w64mz.js";
|
|
14
|
+
import"../../../chunks/browser-m0wzr0g8.js";
|
|
15
|
+
import"../../../chunks/browser-sgwxbek9.js";
|
|
16
|
+
import"../../../chunks/browser-ypez6s7v.js";
|
|
17
|
+
import"../../../chunks/browser-vzc3r2r3.js";
|
|
18
|
+
export {
|
|
19
|
+
BYTES2 as BYTES,
|
|
20
|
+
NOTHING2 as NOTHING,
|
|
21
|
+
ON_PATH2 as ON_PATH,
|
|
22
|
+
ON_SESSION2 as ON_SESSION,
|
|
23
|
+
ON_WORKSPACE2 as ON_WORKSPACE,
|
|
24
|
+
PATH2 as PATH,
|
|
25
|
+
RECEIPT_ID2 as RECEIPT_ID,
|
|
26
|
+
SESSION2 as SESSION,
|
|
27
|
+
WORKSPACE2 as WORKSPACE,
|
|
28
|
+
wireObject2 as wireObject,
|
|
29
|
+
wireSchema2 as wireSchema
|
|
30
|
+
};
|
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
export declare const FILE_OPERATIONS: {
|
|
2
|
+
readonly "files.read": {
|
|
3
|
+
readonly kind: "query";
|
|
4
|
+
readonly input: import("../../schema.ts").Schema<{
|
|
5
|
+
workspace: import("../../ids.ts").Id<"workspace">;
|
|
6
|
+
path: string;
|
|
7
|
+
}>;
|
|
8
|
+
readonly output: import("../../schema.ts").Schema<{
|
|
9
|
+
readonly kind: "text";
|
|
10
|
+
readonly path: string;
|
|
11
|
+
readonly version: import("../../ids.ts").Id<"file-version">;
|
|
12
|
+
readonly contents: string;
|
|
13
|
+
} | {
|
|
14
|
+
readonly kind: "binary" | "large";
|
|
15
|
+
readonly path: string;
|
|
16
|
+
readonly version: import("../../ids.ts").Id<"file-version">;
|
|
17
|
+
readonly size: number;
|
|
18
|
+
} | {
|
|
19
|
+
readonly kind: "missing";
|
|
20
|
+
readonly path: string;
|
|
21
|
+
}>;
|
|
22
|
+
readonly authority: "participant";
|
|
23
|
+
readonly scope: "workspace";
|
|
24
|
+
readonly capability: "files";
|
|
25
|
+
};
|
|
26
|
+
readonly "files.bytes": {
|
|
27
|
+
readonly kind: "stream";
|
|
28
|
+
readonly input: import("../../schema.ts").Schema<{
|
|
29
|
+
workspace: import("../../ids.ts").Id<"workspace">;
|
|
30
|
+
path: string;
|
|
31
|
+
}>;
|
|
32
|
+
readonly output: import("../../schema.ts").Schema<Uint8Array<ArrayBufferLike>>;
|
|
33
|
+
readonly authority: "participant";
|
|
34
|
+
readonly scope: "workspace";
|
|
35
|
+
readonly capability: "files";
|
|
36
|
+
};
|
|
37
|
+
readonly "files.stat": {
|
|
38
|
+
readonly kind: "query";
|
|
39
|
+
readonly input: import("../../schema.ts").Schema<{
|
|
40
|
+
workspace: import("../../ids.ts").Id<"workspace">;
|
|
41
|
+
path: string;
|
|
42
|
+
}>;
|
|
43
|
+
readonly output: import("../../schema.ts").Schema<{
|
|
44
|
+
target?: string | undefined;
|
|
45
|
+
kind: "file" | "directory" | "symlink";
|
|
46
|
+
version: import("../../ids.ts").Id<"file-version">;
|
|
47
|
+
size: number;
|
|
48
|
+
} | null>;
|
|
49
|
+
readonly authority: "participant";
|
|
50
|
+
readonly scope: "workspace";
|
|
51
|
+
readonly capability: "files";
|
|
52
|
+
};
|
|
53
|
+
readonly "files.write": {
|
|
54
|
+
readonly kind: "command";
|
|
55
|
+
readonly input: import("../../schema.ts").Schema<{
|
|
56
|
+
options?: {
|
|
57
|
+
expect?: import("../../ids.ts").Id<"file-version"> | "absent" | undefined;
|
|
58
|
+
parents?: boolean | undefined;
|
|
59
|
+
} | undefined;
|
|
60
|
+
workspace: import("../../ids.ts").Id<"workspace">;
|
|
61
|
+
path: string;
|
|
62
|
+
}>;
|
|
63
|
+
readonly output: import("../../schema.ts").Schema<{
|
|
64
|
+
readonly kind: "saved";
|
|
65
|
+
readonly version: import("../../ids.ts").Id<"file-version">;
|
|
66
|
+
} | {
|
|
67
|
+
readonly kind: "stale";
|
|
68
|
+
readonly current: import("../../ids.ts").Id<"file-version"> | null;
|
|
69
|
+
} | {
|
|
70
|
+
readonly kind: "missing-parent";
|
|
71
|
+
}>;
|
|
72
|
+
readonly authority: "participant";
|
|
73
|
+
readonly scope: "workspace";
|
|
74
|
+
readonly capability: "files";
|
|
75
|
+
};
|
|
76
|
+
readonly "files.remove": {
|
|
77
|
+
readonly kind: "command";
|
|
78
|
+
readonly input: import("../../schema.ts").Schema<{
|
|
79
|
+
options?: {
|
|
80
|
+
expect?: import("../../ids.ts").Id<"file-version"> | undefined;
|
|
81
|
+
} | undefined;
|
|
82
|
+
workspace: import("../../ids.ts").Id<"workspace">;
|
|
83
|
+
path: string;
|
|
84
|
+
}>;
|
|
85
|
+
readonly output: import("../../schema.ts").Schema<{
|
|
86
|
+
readonly kind: "saved";
|
|
87
|
+
readonly version: import("../../ids.ts").Id<"file-version">;
|
|
88
|
+
} | {
|
|
89
|
+
readonly kind: "stale";
|
|
90
|
+
readonly current: import("../../ids.ts").Id<"file-version"> | null;
|
|
91
|
+
} | {
|
|
92
|
+
readonly kind: "missing-parent";
|
|
93
|
+
}>;
|
|
94
|
+
readonly authority: "participant";
|
|
95
|
+
readonly scope: "workspace";
|
|
96
|
+
readonly capability: "files";
|
|
97
|
+
};
|
|
98
|
+
readonly "files.batch": {
|
|
99
|
+
readonly kind: "receipt";
|
|
100
|
+
readonly recovery: "replay";
|
|
101
|
+
readonly input: import("../../schema.ts").Schema<{
|
|
102
|
+
id?: import("../../ids.ts").Id<"receipt"> | undefined;
|
|
103
|
+
entries: ({
|
|
104
|
+
expect?: import("../../ids.ts").Id<"file-version"> | "absent" | undefined;
|
|
105
|
+
kind: "put";
|
|
106
|
+
path: string;
|
|
107
|
+
contents: string | {
|
|
108
|
+
blob: import("../../ids.ts").Id<"blob">;
|
|
109
|
+
};
|
|
110
|
+
} | {
|
|
111
|
+
expect?: import("../../ids.ts").Id<"file-version"> | undefined;
|
|
112
|
+
kind: "remove";
|
|
113
|
+
path: string;
|
|
114
|
+
})[];
|
|
115
|
+
workspace: import("../../ids.ts").Id<"workspace">;
|
|
116
|
+
}>;
|
|
117
|
+
readonly output: import("../../schema.ts").Schema<{
|
|
118
|
+
receipt: import("../../ids.ts").Id<"receipt">;
|
|
119
|
+
}>;
|
|
120
|
+
readonly authority: "participant";
|
|
121
|
+
readonly scope: "workspace";
|
|
122
|
+
readonly capability: "files";
|
|
123
|
+
};
|
|
124
|
+
readonly "files.format": {
|
|
125
|
+
readonly kind: "query";
|
|
126
|
+
readonly input: import("../../schema.ts").Schema<{
|
|
127
|
+
workspace: import("../../ids.ts").Id<"workspace">;
|
|
128
|
+
path: string;
|
|
129
|
+
contents: string;
|
|
130
|
+
}>;
|
|
131
|
+
readonly output: import("../../schema.ts").Schema<{
|
|
132
|
+
readonly kind: "formatted";
|
|
133
|
+
readonly contents: string;
|
|
134
|
+
} | {
|
|
135
|
+
readonly kind: "unchanged";
|
|
136
|
+
} | {
|
|
137
|
+
readonly kind: "unavailable";
|
|
138
|
+
readonly reason: string;
|
|
139
|
+
}>;
|
|
140
|
+
readonly authority: "participant";
|
|
141
|
+
readonly scope: "workspace";
|
|
142
|
+
readonly capability: "files";
|
|
143
|
+
};
|
|
144
|
+
readonly "files.scan": {
|
|
145
|
+
readonly kind: "stream";
|
|
146
|
+
readonly input: import("../../schema.ts").Schema<{
|
|
147
|
+
directory?: string | undefined;
|
|
148
|
+
ignored?: "include" | "exclude" | undefined;
|
|
149
|
+
workspace: import("../../ids.ts").Id<"workspace">;
|
|
150
|
+
}>;
|
|
151
|
+
readonly output: import("../../schema.ts").Schema<{
|
|
152
|
+
readonly entries: readonly {
|
|
153
|
+
readonly kind: "file" | "directory" | "symlink";
|
|
154
|
+
readonly path: string;
|
|
155
|
+
readonly version: import("../../ids.ts").Id<"file-version"> | null;
|
|
156
|
+
readonly size: number | null;
|
|
157
|
+
}[];
|
|
158
|
+
readonly kind: "entries";
|
|
159
|
+
} | {
|
|
160
|
+
readonly kind: "complete";
|
|
161
|
+
} | {
|
|
162
|
+
readonly kind: "incomplete";
|
|
163
|
+
readonly reason: "limit" | "changed" | "permission";
|
|
164
|
+
}>;
|
|
165
|
+
readonly authority: "participant";
|
|
166
|
+
readonly scope: "workspace";
|
|
167
|
+
readonly capability: "files";
|
|
168
|
+
};
|
|
169
|
+
readonly "files.find": {
|
|
170
|
+
readonly kind: "query";
|
|
171
|
+
readonly input: import("../../schema.ts").Schema<{
|
|
172
|
+
limit?: number | undefined;
|
|
173
|
+
workspace: import("../../ids.ts").Id<"workspace">;
|
|
174
|
+
query: string;
|
|
175
|
+
}>;
|
|
176
|
+
readonly output: import("../../schema.ts").Schema<{
|
|
177
|
+
kind: "file" | "directory" | "symlink";
|
|
178
|
+
path: string;
|
|
179
|
+
version: import("../../ids.ts").Id<"file-version"> | null;
|
|
180
|
+
size: number | null;
|
|
181
|
+
}[]>;
|
|
182
|
+
readonly authority: "participant";
|
|
183
|
+
readonly scope: "workspace";
|
|
184
|
+
readonly capability: "files";
|
|
185
|
+
};
|
|
186
|
+
readonly "files.search": {
|
|
187
|
+
readonly kind: "stream";
|
|
188
|
+
readonly input: import("../../schema.ts").Schema<{
|
|
189
|
+
limit?: number | undefined;
|
|
190
|
+
caseSensitive?: boolean | undefined;
|
|
191
|
+
wholeWord?: boolean | undefined;
|
|
192
|
+
regex?: boolean | undefined;
|
|
193
|
+
include?: string[] | undefined;
|
|
194
|
+
exclude?: string[] | undefined;
|
|
195
|
+
drafts?: {
|
|
196
|
+
path: string;
|
|
197
|
+
contents: string;
|
|
198
|
+
}[] | undefined;
|
|
199
|
+
workspace: import("../../ids.ts").Id<"workspace">;
|
|
200
|
+
query: string;
|
|
201
|
+
}>;
|
|
202
|
+
readonly output: import("../../schema.ts").Schema<{
|
|
203
|
+
readonly length: number;
|
|
204
|
+
readonly text: string;
|
|
205
|
+
readonly kind: "match";
|
|
206
|
+
readonly path: string;
|
|
207
|
+
readonly line: number;
|
|
208
|
+
readonly column: number;
|
|
209
|
+
} | {
|
|
210
|
+
readonly kind: "complete";
|
|
211
|
+
} | {
|
|
212
|
+
readonly kind: "truncated";
|
|
213
|
+
readonly limit: number;
|
|
214
|
+
}>;
|
|
215
|
+
readonly authority: "participant";
|
|
216
|
+
readonly scope: "workspace";
|
|
217
|
+
readonly capability: "files";
|
|
218
|
+
};
|
|
219
|
+
readonly "files.watch": {
|
|
220
|
+
readonly kind: "watch";
|
|
221
|
+
readonly input: import("../../schema.ts").Schema<{
|
|
222
|
+
paths?: string[] | undefined;
|
|
223
|
+
workspace: import("../../ids.ts").Id<"workspace">;
|
|
224
|
+
}>;
|
|
225
|
+
readonly output: import("../../schema.ts").Schema<{
|
|
226
|
+
kind: "created" | "removed" | "modified";
|
|
227
|
+
path: string;
|
|
228
|
+
version: import("../../ids.ts").Id<"file-version"> | null;
|
|
229
|
+
}[]>;
|
|
230
|
+
readonly authority: "participant";
|
|
231
|
+
readonly scope: "workspace";
|
|
232
|
+
readonly capability: "files";
|
|
233
|
+
};
|
|
234
|
+
readonly "files.upload": {
|
|
235
|
+
readonly kind: "command";
|
|
236
|
+
readonly input: import("../../schema.ts").Schema<{
|
|
237
|
+
workspace: import("../../ids.ts").Id<"workspace">;
|
|
238
|
+
}>;
|
|
239
|
+
readonly output: import("../../schema.ts").Schema<import("../../ids.ts").BlobId>;
|
|
240
|
+
readonly authority: "participant";
|
|
241
|
+
readonly scope: "workspace";
|
|
242
|
+
readonly capability: "files";
|
|
243
|
+
};
|
|
244
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
FILE_OPERATIONS2
|
|
3
|
+
} from "../../../chunks/browser-pdv675va.js";
|
|
4
|
+
import"../../../chunks/browser-r87w64mz.js";
|
|
5
|
+
import"../../../chunks/browser-m0wzr0g8.js";
|
|
6
|
+
import"../../../chunks/browser-sgwxbek9.js";
|
|
7
|
+
import"../../../chunks/browser-ebr6k189.js";
|
|
8
|
+
import"../../../chunks/browser-4et7qtz3.js";
|
|
9
|
+
import"../../../chunks/browser-ypez6s7v.js";
|
|
10
|
+
import"../../../chunks/browser-vzc3r2r3.js";
|
|
11
|
+
export {
|
|
12
|
+
FILE_OPERATIONS2 as FILE_OPERATIONS
|
|
13
|
+
};
|