@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,152 @@
|
|
|
1
|
+
import { Type } from "typebox";
|
|
2
|
+
import type { Decoded, Schema } from "./schema.ts";
|
|
3
|
+
export declare const EndReasonType: Type.TEnum<["exited", "terminated", "expired", "host-lost"]>;
|
|
4
|
+
export type EndReason = Decoded<typeof EndReasonType>;
|
|
5
|
+
export declare const JobEndType: Type.TUnion<[Type.TObject<{
|
|
6
|
+
kind: Type.TLiteral<"exited">;
|
|
7
|
+
code: Type.TUnion<[Type.TNumber, Type.TNull]>;
|
|
8
|
+
reason: Type.TEnum<["exited", "terminated", "expired", "host-lost"]>;
|
|
9
|
+
}>, Type.TObject<{
|
|
10
|
+
kind: Type.TLiteral<"lost">;
|
|
11
|
+
}>]>;
|
|
12
|
+
export type JobEnd = Decoded<typeof JobEndType>;
|
|
13
|
+
export declare const JobStateType: Type.TUnion<[Type.TObject<{
|
|
14
|
+
kind: Type.TLiteral<"running">;
|
|
15
|
+
}>, Type.TUnion<[Type.TObject<{
|
|
16
|
+
kind: Type.TLiteral<"exited">;
|
|
17
|
+
code: Type.TUnion<[Type.TNumber, Type.TNull]>;
|
|
18
|
+
reason: Type.TEnum<["exited", "terminated", "expired", "host-lost"]>;
|
|
19
|
+
}>, Type.TObject<{
|
|
20
|
+
kind: Type.TLiteral<"lost">;
|
|
21
|
+
}>]>]>;
|
|
22
|
+
export type JobState = Decoded<typeof JobStateType>;
|
|
23
|
+
export declare const JobViewType: Type.TObject<{
|
|
24
|
+
id: Type.TUnsafe<import("./ids.ts").Id<"job">>;
|
|
25
|
+
command: Type.TString;
|
|
26
|
+
title: Type.TString;
|
|
27
|
+
session: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"session">>, Type.TNull]>;
|
|
28
|
+
pty: Type.TUnion<[Type.TObject<{
|
|
29
|
+
columns: Type.TNumber;
|
|
30
|
+
rows: Type.TNumber;
|
|
31
|
+
shell: Type.TString;
|
|
32
|
+
}>, Type.TNull]>;
|
|
33
|
+
state: Type.TUnion<[Type.TObject<{
|
|
34
|
+
kind: Type.TLiteral<"running">;
|
|
35
|
+
}>, Type.TUnion<[Type.TObject<{
|
|
36
|
+
kind: Type.TLiteral<"exited">;
|
|
37
|
+
code: Type.TUnion<[Type.TNumber, Type.TNull]>;
|
|
38
|
+
reason: Type.TEnum<["exited", "terminated", "expired", "host-lost"]>;
|
|
39
|
+
}>, Type.TObject<{
|
|
40
|
+
kind: Type.TLiteral<"lost">;
|
|
41
|
+
}>]>]>;
|
|
42
|
+
startedAt: Type.TNumber;
|
|
43
|
+
endedAt: Type.TUnion<[Type.TNumber, Type.TNull]>;
|
|
44
|
+
tail: Type.TString;
|
|
45
|
+
}>;
|
|
46
|
+
export type JobView = Decoded<typeof JobViewType>;
|
|
47
|
+
/** One job's move in a workspace's job list: its new view, or its removal once the list stops keeping it. */
|
|
48
|
+
export declare const JobChangeType: Type.TUnion<[Type.TObject<{
|
|
49
|
+
kind: Type.TLiteral<"job">;
|
|
50
|
+
job: Type.TObject<{
|
|
51
|
+
id: Type.TUnsafe<import("./ids.ts").Id<"job">>;
|
|
52
|
+
command: Type.TString;
|
|
53
|
+
title: Type.TString;
|
|
54
|
+
session: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"session">>, Type.TNull]>;
|
|
55
|
+
pty: Type.TUnion<[Type.TObject<{
|
|
56
|
+
columns: Type.TNumber;
|
|
57
|
+
rows: Type.TNumber;
|
|
58
|
+
shell: Type.TString;
|
|
59
|
+
}>, Type.TNull]>;
|
|
60
|
+
state: Type.TUnion<[Type.TObject<{
|
|
61
|
+
kind: Type.TLiteral<"running">;
|
|
62
|
+
}>, Type.TUnion<[Type.TObject<{
|
|
63
|
+
kind: Type.TLiteral<"exited">;
|
|
64
|
+
code: Type.TUnion<[Type.TNumber, Type.TNull]>;
|
|
65
|
+
reason: Type.TEnum<["exited", "terminated", "expired", "host-lost"]>;
|
|
66
|
+
}>, Type.TObject<{
|
|
67
|
+
kind: Type.TLiteral<"lost">;
|
|
68
|
+
}>]>]>;
|
|
69
|
+
startedAt: Type.TNumber;
|
|
70
|
+
endedAt: Type.TUnion<[Type.TNumber, Type.TNull]>;
|
|
71
|
+
tail: Type.TString;
|
|
72
|
+
}>;
|
|
73
|
+
}>, Type.TObject<{
|
|
74
|
+
kind: Type.TLiteral<"forgotten">;
|
|
75
|
+
id: Type.TUnsafe<import("./ids.ts").Id<"job">>;
|
|
76
|
+
}>]>;
|
|
77
|
+
export type JobChange = Decoded<typeof JobChangeType>;
|
|
78
|
+
/** A frame of `jobs.watch`: the whole list first (and again after a reconnect), then each job that moved, alone. */
|
|
79
|
+
export declare const JobsChangeType: Type.TUnion<[Type.TObject<{
|
|
80
|
+
kind: Type.TLiteral<"jobs">;
|
|
81
|
+
jobs: Type.TArray<Type.TObject<{
|
|
82
|
+
id: Type.TUnsafe<import("./ids.ts").Id<"job">>;
|
|
83
|
+
command: Type.TString;
|
|
84
|
+
title: Type.TString;
|
|
85
|
+
session: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"session">>, Type.TNull]>;
|
|
86
|
+
pty: Type.TUnion<[Type.TObject<{
|
|
87
|
+
columns: Type.TNumber;
|
|
88
|
+
rows: Type.TNumber;
|
|
89
|
+
shell: Type.TString;
|
|
90
|
+
}>, Type.TNull]>;
|
|
91
|
+
state: Type.TUnion<[Type.TObject<{
|
|
92
|
+
kind: Type.TLiteral<"running">;
|
|
93
|
+
}>, Type.TUnion<[Type.TObject<{
|
|
94
|
+
kind: Type.TLiteral<"exited">;
|
|
95
|
+
code: Type.TUnion<[Type.TNumber, Type.TNull]>;
|
|
96
|
+
reason: Type.TEnum<["exited", "terminated", "expired", "host-lost"]>;
|
|
97
|
+
}>, Type.TObject<{
|
|
98
|
+
kind: Type.TLiteral<"lost">;
|
|
99
|
+
}>]>]>;
|
|
100
|
+
startedAt: Type.TNumber;
|
|
101
|
+
endedAt: Type.TUnion<[Type.TNumber, Type.TNull]>;
|
|
102
|
+
tail: Type.TString;
|
|
103
|
+
}>>;
|
|
104
|
+
}>, Type.TObject<{
|
|
105
|
+
kind: Type.TLiteral<"job">;
|
|
106
|
+
job: Type.TObject<{
|
|
107
|
+
id: Type.TUnsafe<import("./ids.ts").Id<"job">>;
|
|
108
|
+
command: Type.TString;
|
|
109
|
+
title: Type.TString;
|
|
110
|
+
session: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"session">>, Type.TNull]>;
|
|
111
|
+
pty: Type.TUnion<[Type.TObject<{
|
|
112
|
+
columns: Type.TNumber;
|
|
113
|
+
rows: Type.TNumber;
|
|
114
|
+
shell: Type.TString;
|
|
115
|
+
}>, Type.TNull]>;
|
|
116
|
+
state: Type.TUnion<[Type.TObject<{
|
|
117
|
+
kind: Type.TLiteral<"running">;
|
|
118
|
+
}>, Type.TUnion<[Type.TObject<{
|
|
119
|
+
kind: Type.TLiteral<"exited">;
|
|
120
|
+
code: Type.TUnion<[Type.TNumber, Type.TNull]>;
|
|
121
|
+
reason: Type.TEnum<["exited", "terminated", "expired", "host-lost"]>;
|
|
122
|
+
}>, Type.TObject<{
|
|
123
|
+
kind: Type.TLiteral<"lost">;
|
|
124
|
+
}>]>]>;
|
|
125
|
+
startedAt: Type.TNumber;
|
|
126
|
+
endedAt: Type.TUnion<[Type.TNumber, Type.TNull]>;
|
|
127
|
+
tail: Type.TString;
|
|
128
|
+
}>;
|
|
129
|
+
}>, Type.TObject<{
|
|
130
|
+
kind: Type.TLiteral<"forgotten">;
|
|
131
|
+
id: Type.TUnsafe<import("./ids.ts").Id<"job">>;
|
|
132
|
+
}>]>;
|
|
133
|
+
export type JobsChange = Decoded<typeof JobsChangeType>;
|
|
134
|
+
/** The job list after `change`: the whole list it carries, the moved job in its place (or last, when new), or the list without a forgotten job. Every other job keeps its view object. */
|
|
135
|
+
export declare function foldJobChange(jobs: readonly JobView[], change: JobsChange): readonly JobView[];
|
|
136
|
+
/** A job's output: bytes it wrote (`stream: "stderr"` for its stderr when it runs with `stdio: "protocol"`), a `gap` where a reader missed some, and its exit. */
|
|
137
|
+
export declare const OutputFrameType: Type.TUnion<[Type.TObject<{
|
|
138
|
+
kind: Type.TLiteral<"bytes">;
|
|
139
|
+
data: Type.TCodec<Type.TString, Uint8Array<ArrayBufferLike>>;
|
|
140
|
+
stream: Type.TOptional<Type.TLiteral<"stderr">>;
|
|
141
|
+
}>, Type.TObject<{
|
|
142
|
+
kind: Type.TLiteral<"gap">;
|
|
143
|
+
}>, Type.TObject<{
|
|
144
|
+
kind: Type.TLiteral<"exit">;
|
|
145
|
+
code: Type.TUnion<[Type.TNumber, Type.TNull]>;
|
|
146
|
+
}>]>;
|
|
147
|
+
export type OutputFrame = Decoded<typeof OutputFrameType>;
|
|
148
|
+
export declare const EndReasonSchema: Schema<EndReason>;
|
|
149
|
+
export declare const JobEndSchema: Schema<JobEnd>;
|
|
150
|
+
export declare const JobStateSchema: Schema<JobState>;
|
|
151
|
+
export declare const JobViewSchema: Schema<JobView>;
|
|
152
|
+
export declare const OutputFrameSchema: Schema<OutputFrame>;
|
package/dist/src/jobs.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import {
|
|
2
|
+
EndReasonType2,
|
|
3
|
+
JobEndType2,
|
|
4
|
+
JobStateType2,
|
|
5
|
+
JobViewType2,
|
|
6
|
+
JobChangeType2,
|
|
7
|
+
JobsChangeType2,
|
|
8
|
+
foldJobChange2,
|
|
9
|
+
OutputFrameType2,
|
|
10
|
+
EndReasonSchema2,
|
|
11
|
+
JobEndSchema2,
|
|
12
|
+
JobStateSchema2,
|
|
13
|
+
JobViewSchema2,
|
|
14
|
+
OutputFrameSchema2
|
|
15
|
+
} from "../chunks/browser-40enyw9r.js";
|
|
16
|
+
import"../chunks/browser-m0wzr0g8.js";
|
|
17
|
+
import"../chunks/browser-4et7qtz3.js";
|
|
18
|
+
import"../chunks/browser-ypez6s7v.js";
|
|
19
|
+
import"../chunks/browser-vzc3r2r3.js";
|
|
20
|
+
export {
|
|
21
|
+
EndReasonSchema2 as EndReasonSchema,
|
|
22
|
+
EndReasonType2 as EndReasonType,
|
|
23
|
+
JobChangeType2 as JobChangeType,
|
|
24
|
+
JobEndSchema2 as JobEndSchema,
|
|
25
|
+
JobEndType2 as JobEndType,
|
|
26
|
+
JobStateSchema2 as JobStateSchema,
|
|
27
|
+
JobStateType2 as JobStateType,
|
|
28
|
+
JobViewSchema2 as JobViewSchema,
|
|
29
|
+
JobViewType2 as JobViewType,
|
|
30
|
+
JobsChangeType2 as JobsChangeType,
|
|
31
|
+
OutputFrameSchema2 as OutputFrameSchema,
|
|
32
|
+
OutputFrameType2 as OutputFrameType,
|
|
33
|
+
foldJobChange2 as foldJobChange
|
|
34
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Type } from "typebox";
|
|
2
|
+
import type { TCyclic, TProperties, TSchema } from "typebox";
|
|
3
|
+
import type { Decoded, Schema } from "./schema.ts";
|
|
4
|
+
export type Json = null | boolean | number | string | readonly Json[] | {
|
|
5
|
+
readonly [key: string]: Json;
|
|
6
|
+
};
|
|
7
|
+
declare const JSON_DEFINITION: Type.TUnion<[Type.TNull, Type.TBoolean, Type.TNumber, Type.TString, Type.TArray<Type.TRef<"Json">>, Type.TRecord<"^.*$", Type.TRef<"Json">>]>;
|
|
8
|
+
export declare const JsonType: Type.TUnsafe<Json>;
|
|
9
|
+
export declare const JsonObjectType: Type.TRecord<"^.*$", Type.TUnsafe<Json>>;
|
|
10
|
+
export type JsonSchema = Decoded<typeof JsonObjectType>;
|
|
11
|
+
export declare function cyclicWithJson<Definitions extends TProperties, Ref extends string>(definitions: Definitions, ref: Ref): TCyclic<{
|
|
12
|
+
Json: typeof JSON_DEFINITION;
|
|
13
|
+
} & Definitions, Ref>;
|
|
14
|
+
export declare function withJson<T extends TSchema>(schema: T): TCyclic<{
|
|
15
|
+
Json: typeof JSON_DEFINITION;
|
|
16
|
+
} & {
|
|
17
|
+
Root: T;
|
|
18
|
+
}, "Root">;
|
|
19
|
+
export declare const JsonValueSchema: Schema<Json>;
|
|
20
|
+
export declare const JsonObjectSchema: Schema<JsonSchema>;
|
|
21
|
+
/** Walked by hand: under a renderer's CSP a cyclic TypeBox check runs interpreted, tens of milliseconds over a long chat's view frame. */
|
|
22
|
+
export declare function isJson(value: unknown): value is Json;
|
|
23
|
+
export declare function isJsonObject(value: Json | undefined): value is JsonSchema;
|
|
24
|
+
export {};
|
package/dist/src/json.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import {
|
|
2
|
+
JsonType2,
|
|
3
|
+
JsonObjectType2,
|
|
4
|
+
cyclicWithJson2,
|
|
5
|
+
withJson2,
|
|
6
|
+
JsonValueSchema2,
|
|
7
|
+
JsonObjectSchema2,
|
|
8
|
+
isJson2,
|
|
9
|
+
isJsonObject2
|
|
10
|
+
} from "../chunks/browser-sgwxbek9.js";
|
|
11
|
+
import"../chunks/browser-vzc3r2r3.js";
|
|
12
|
+
export {
|
|
13
|
+
JsonObjectSchema2 as JsonObjectSchema,
|
|
14
|
+
JsonObjectType2 as JsonObjectType,
|
|
15
|
+
JsonType2 as JsonType,
|
|
16
|
+
JsonValueSchema2 as JsonValueSchema,
|
|
17
|
+
cyclicWithJson2 as cyclicWithJson,
|
|
18
|
+
isJson2 as isJson,
|
|
19
|
+
isJsonObject2 as isJsonObject,
|
|
20
|
+
withJson2 as withJson
|
|
21
|
+
};
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
import { Type } from "typebox";
|
|
2
|
+
import type { Decoded, Schema } from "./schema.ts";
|
|
3
|
+
export declare const McpExposureType: Type.TEnum<["model", "deferred", "code", "hidden"]>;
|
|
4
|
+
/**
|
|
5
|
+
* How a server's tools reach the model. `model` declares them, `deferred`
|
|
6
|
+
* leaves them for tool search, `code` makes them callable only from codemode
|
|
7
|
+
* scripts (the default), and `hidden` makes them unreachable.
|
|
8
|
+
*/
|
|
9
|
+
export type McpExposure = Decoded<typeof McpExposureType>;
|
|
10
|
+
export declare const McpScopeType: Type.TEnum<["user", "project"]>;
|
|
11
|
+
/** `user` servers come from `~/.nyte/mcp.json`; `project` servers from a trusted workspace's `.nyte/mcp.json`. */
|
|
12
|
+
export type McpScope = Decoded<typeof McpScopeType>;
|
|
13
|
+
export declare const McpToolViewType: Type.TObject<{
|
|
14
|
+
name: Type.TString;
|
|
15
|
+
description: Type.TString;
|
|
16
|
+
exposure: Type.TEnum<["model", "deferred", "code", "hidden"]>;
|
|
17
|
+
}>;
|
|
18
|
+
/** One tool as the server lists it; sessions see it as `mcp__<server>__<name>`. */
|
|
19
|
+
export type McpToolView = Decoded<typeof McpToolViewType>;
|
|
20
|
+
export declare const McpServerStateType: Type.TUnion<[Type.TObject<{
|
|
21
|
+
kind: Type.TLiteral<"disabled">;
|
|
22
|
+
}>, Type.TObject<{
|
|
23
|
+
kind: Type.TLiteral<"connecting">;
|
|
24
|
+
}>, Type.TObject<{
|
|
25
|
+
kind: Type.TLiteral<"connected">;
|
|
26
|
+
tools: Type.TArray<Type.TObject<{
|
|
27
|
+
name: Type.TString;
|
|
28
|
+
description: Type.TString;
|
|
29
|
+
exposure: Type.TEnum<["model", "deferred", "code", "hidden"]>;
|
|
30
|
+
}>>;
|
|
31
|
+
}>, Type.TObject<{
|
|
32
|
+
kind: Type.TLiteral<"needs-sign-in">;
|
|
33
|
+
}>, Type.TObject<{
|
|
34
|
+
kind: Type.TLiteral<"failed">;
|
|
35
|
+
message: Type.TString;
|
|
36
|
+
stderr: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
37
|
+
}>]>;
|
|
38
|
+
/**
|
|
39
|
+
* A server's connection. `needs-sign-in` waits for the user: offer
|
|
40
|
+
* `workspace(id).mcp.login(name)`, and the server connects once it is done.
|
|
41
|
+
* Show `failed` with `message`, and `stderr` when a stdio server wrote any.
|
|
42
|
+
*/
|
|
43
|
+
export type McpServerState = Decoded<typeof McpServerStateType>;
|
|
44
|
+
export declare const McpServerViewType: Type.TObject<{
|
|
45
|
+
name: Type.TString;
|
|
46
|
+
scope: Type.TEnum<["user", "project"]>;
|
|
47
|
+
/** The `mcp.json` that defines the server. */
|
|
48
|
+
path: Type.TString;
|
|
49
|
+
/** The project `mcp.json` whose override entry changes this user-level server, or `null`. */
|
|
50
|
+
override: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
51
|
+
transport: Type.TUnion<[Type.TObject<{
|
|
52
|
+
kind: Type.TLiteral<"stdio">;
|
|
53
|
+
command: Type.TString;
|
|
54
|
+
args: Type.TArray<Type.TString>;
|
|
55
|
+
}>, Type.TObject<{
|
|
56
|
+
kind: Type.TLiteral<"http">;
|
|
57
|
+
url: Type.TString;
|
|
58
|
+
}>]>;
|
|
59
|
+
exposure: Type.TEnum<["model", "deferred", "code", "hidden"]>;
|
|
60
|
+
description: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
61
|
+
state: Type.TUnion<[Type.TObject<{
|
|
62
|
+
kind: Type.TLiteral<"disabled">;
|
|
63
|
+
}>, Type.TObject<{
|
|
64
|
+
kind: Type.TLiteral<"connecting">;
|
|
65
|
+
}>, Type.TObject<{
|
|
66
|
+
kind: Type.TLiteral<"connected">;
|
|
67
|
+
tools: Type.TArray<Type.TObject<{
|
|
68
|
+
name: Type.TString;
|
|
69
|
+
description: Type.TString;
|
|
70
|
+
exposure: Type.TEnum<["model", "deferred", "code", "hidden"]>;
|
|
71
|
+
}>>;
|
|
72
|
+
}>, Type.TObject<{
|
|
73
|
+
kind: Type.TLiteral<"needs-sign-in">;
|
|
74
|
+
}>, Type.TObject<{
|
|
75
|
+
kind: Type.TLiteral<"failed">;
|
|
76
|
+
message: Type.TString;
|
|
77
|
+
stderr: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
78
|
+
}>]>;
|
|
79
|
+
}>;
|
|
80
|
+
/** One configured server, with where it is defined and its connection now. */
|
|
81
|
+
export type McpServerView = Decoded<typeof McpServerViewType>;
|
|
82
|
+
export declare const McpViewType: Type.TObject<{
|
|
83
|
+
servers: Type.TArray<Type.TObject<{
|
|
84
|
+
name: Type.TString;
|
|
85
|
+
scope: Type.TEnum<["user", "project"]>;
|
|
86
|
+
/** The `mcp.json` that defines the server. */
|
|
87
|
+
path: Type.TString;
|
|
88
|
+
/** The project `mcp.json` whose override entry changes this user-level server, or `null`. */
|
|
89
|
+
override: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
90
|
+
transport: Type.TUnion<[Type.TObject<{
|
|
91
|
+
kind: Type.TLiteral<"stdio">;
|
|
92
|
+
command: Type.TString;
|
|
93
|
+
args: Type.TArray<Type.TString>;
|
|
94
|
+
}>, Type.TObject<{
|
|
95
|
+
kind: Type.TLiteral<"http">;
|
|
96
|
+
url: Type.TString;
|
|
97
|
+
}>]>;
|
|
98
|
+
exposure: Type.TEnum<["model", "deferred", "code", "hidden"]>;
|
|
99
|
+
description: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
100
|
+
state: Type.TUnion<[Type.TObject<{
|
|
101
|
+
kind: Type.TLiteral<"disabled">;
|
|
102
|
+
}>, Type.TObject<{
|
|
103
|
+
kind: Type.TLiteral<"connecting">;
|
|
104
|
+
}>, Type.TObject<{
|
|
105
|
+
kind: Type.TLiteral<"connected">;
|
|
106
|
+
tools: Type.TArray<Type.TObject<{
|
|
107
|
+
name: Type.TString;
|
|
108
|
+
description: Type.TString;
|
|
109
|
+
exposure: Type.TEnum<["model", "deferred", "code", "hidden"]>;
|
|
110
|
+
}>>;
|
|
111
|
+
}>, Type.TObject<{
|
|
112
|
+
kind: Type.TLiteral<"needs-sign-in">;
|
|
113
|
+
}>, Type.TObject<{
|
|
114
|
+
kind: Type.TLiteral<"failed">;
|
|
115
|
+
message: Type.TString;
|
|
116
|
+
stderr: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
117
|
+
}>]>;
|
|
118
|
+
}>>;
|
|
119
|
+
issues: Type.TArray<Type.TObject<{
|
|
120
|
+
severity: Type.TEnum<["error", "warning"]>;
|
|
121
|
+
path: Type.TArray<Type.TUnion<[Type.TString, Type.TNumber]>>;
|
|
122
|
+
message: Type.TString;
|
|
123
|
+
source: Type.TOptional<Type.TObject<{
|
|
124
|
+
plugin: Type.TString;
|
|
125
|
+
file: Type.TOptional<Type.TString>;
|
|
126
|
+
line: Type.TOptional<Type.TNumber>;
|
|
127
|
+
}>>;
|
|
128
|
+
}>>;
|
|
129
|
+
}>;
|
|
130
|
+
/**
|
|
131
|
+
* What `workspace(id).mcp()` yields: every server the workspace sees, sorted
|
|
132
|
+
* by name, and the problems found reading its `mcp.json` files or the tools
|
|
133
|
+
* its servers list. An invalid entry appears in `issues` and not in
|
|
134
|
+
* `servers`; the others still connect. A listed tool whose input schema is
|
|
135
|
+
* not JSON Schema appears in `issues` and not in its server's tools.
|
|
136
|
+
*/
|
|
137
|
+
export type McpView = Decoded<typeof McpViewType>;
|
|
138
|
+
export declare const McpExposureNameType: Type.TEnum<["direct", "deferred", "codemode", "codemode-deferred", "hidden"]>;
|
|
139
|
+
/** An exposure as `mcp.json` names it: `direct` is `model`, `codemode` (or `codemode-deferred`) is `code`. */
|
|
140
|
+
export type McpExposureName = Decoded<typeof McpExposureNameType>;
|
|
141
|
+
export declare const McpOAuthConfigType: Type.TObject<{
|
|
142
|
+
clientId: Type.TOptional<Type.TString>;
|
|
143
|
+
clientSecret: Type.TOptional<Type.TString>;
|
|
144
|
+
callbackPort: Type.TOptional<Type.TInteger>;
|
|
145
|
+
callbackUrl: Type.TOptional<Type.TString>;
|
|
146
|
+
clientName: Type.TOptional<Type.TString>;
|
|
147
|
+
scope: Type.TOptional<Type.TString>;
|
|
148
|
+
authServerMetadataUrl: Type.TOptional<Type.TString>;
|
|
149
|
+
}>;
|
|
150
|
+
/**
|
|
151
|
+
* How Nyte signs in to a url server that uses OAuth. Without it, Nyte
|
|
152
|
+
* registers itself as "Nyte" on a free loopback port. Set `clientId` (and
|
|
153
|
+
* `clientSecret`, which may name `${VAR}`) with `callbackPort` or
|
|
154
|
+
* `callbackUrl` for a server that needs a registered client, `clientName`
|
|
155
|
+
* for one that accepts only known names, `scope` for one that does not
|
|
156
|
+
* advertise its scopes, and `authServerMetadataUrl` for one that advertises
|
|
157
|
+
* the wrong authorization server.
|
|
158
|
+
*/
|
|
159
|
+
export type McpOAuthConfig = Decoded<typeof McpOAuthConfigType>;
|
|
160
|
+
export declare const McpServerConfigType: Type.TUnion<[Type.TObject<{
|
|
161
|
+
type: Type.TOptional<Type.TLiteral<"stdio">>;
|
|
162
|
+
command: Type.TString;
|
|
163
|
+
args: Type.TOptional<Type.TArray<Type.TString>>;
|
|
164
|
+
env: Type.TOptional<Type.TRecord<"^.*$", Type.TString>>;
|
|
165
|
+
cwd: Type.TOptional<Type.TString>;
|
|
166
|
+
enabled: Type.TOptional<Type.TBoolean>;
|
|
167
|
+
/** Seconds each request may take; progress notifications restart it. Default 60. */
|
|
168
|
+
timeout: Type.TOptional<Type.TNumber>;
|
|
169
|
+
description: Type.TOptional<Type.TString>;
|
|
170
|
+
exposure: Type.TOptional<Type.TEnum<["direct", "deferred", "codemode", "codemode-deferred", "hidden"]>>;
|
|
171
|
+
/** Exposure per tool name; `*` matches any characters, exact names win, then the first matching pattern. */
|
|
172
|
+
toolExposure: Type.TOptional<Type.TRecord<"^.*$", Type.TEnum<["direct", "deferred", "codemode", "codemode-deferred", "hidden"]>>>;
|
|
173
|
+
}>, Type.TObject<{
|
|
174
|
+
type: Type.TOptional<Type.TEnum<["http", "streamable-http"]>>;
|
|
175
|
+
url: Type.TString;
|
|
176
|
+
headers: Type.TOptional<Type.TRecord<"^.*$", Type.TString>>;
|
|
177
|
+
oauth: Type.TOptional<Type.TObject<{
|
|
178
|
+
clientId: Type.TOptional<Type.TString>;
|
|
179
|
+
clientSecret: Type.TOptional<Type.TString>;
|
|
180
|
+
callbackPort: Type.TOptional<Type.TInteger>;
|
|
181
|
+
callbackUrl: Type.TOptional<Type.TString>;
|
|
182
|
+
clientName: Type.TOptional<Type.TString>;
|
|
183
|
+
scope: Type.TOptional<Type.TString>;
|
|
184
|
+
authServerMetadataUrl: Type.TOptional<Type.TString>;
|
|
185
|
+
}>>;
|
|
186
|
+
enabled: Type.TOptional<Type.TBoolean>;
|
|
187
|
+
/** Seconds each request may take; progress notifications restart it. Default 60. */
|
|
188
|
+
timeout: Type.TOptional<Type.TNumber>;
|
|
189
|
+
description: Type.TOptional<Type.TString>;
|
|
190
|
+
exposure: Type.TOptional<Type.TEnum<["direct", "deferred", "codemode", "codemode-deferred", "hidden"]>>;
|
|
191
|
+
/** Exposure per tool name; `*` matches any characters, exact names win, then the first matching pattern. */
|
|
192
|
+
toolExposure: Type.TOptional<Type.TRecord<"^.*$", Type.TEnum<["direct", "deferred", "codemode", "codemode-deferred", "hidden"]>>>;
|
|
193
|
+
}>]>;
|
|
194
|
+
/**
|
|
195
|
+
* One `mcpServers` entry of `mcp.json`, the format other MCP clients use: a
|
|
196
|
+
* `command` run over stdio, or a streamable HTTP `url`. `env`, `headers` and
|
|
197
|
+
* `oauth.clientSecret` may name `${VAR}` environment variables.
|
|
198
|
+
*/
|
|
199
|
+
export type McpServerConfig = Decoded<typeof McpServerConfigType>;
|
|
200
|
+
export declare const McpChangeType: Type.TUnion<[Type.TObject<{
|
|
201
|
+
kind: Type.TLiteral<"updated">;
|
|
202
|
+
}>, Type.TObject<{
|
|
203
|
+
kind: Type.TLiteral<"missing">;
|
|
204
|
+
}>, Type.TObject<{
|
|
205
|
+
kind: Type.TLiteral<"invalid">;
|
|
206
|
+
message: Type.TString;
|
|
207
|
+
}>]>;
|
|
208
|
+
/** What an MCP action did: `missing` names no configured server, `invalid` explains a refused change. */
|
|
209
|
+
export type McpChange = Decoded<typeof McpChangeType>;
|
|
210
|
+
export declare const McpViewSchema: Schema<McpView>;
|
|
211
|
+
export declare const McpServerConfigSchema: Schema<McpServerConfig>;
|
|
212
|
+
export declare const McpChangeSchema: Schema<McpChange>;
|
package/dist/src/mcp.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import {
|
|
2
|
+
McpExposureType2,
|
|
3
|
+
McpScopeType2,
|
|
4
|
+
McpToolViewType2,
|
|
5
|
+
McpServerStateType2,
|
|
6
|
+
McpServerViewType2,
|
|
7
|
+
McpViewType2,
|
|
8
|
+
McpExposureNameType2,
|
|
9
|
+
McpOAuthConfigType2,
|
|
10
|
+
McpServerConfigType2,
|
|
11
|
+
McpChangeType2,
|
|
12
|
+
McpViewSchema2,
|
|
13
|
+
McpServerConfigSchema2,
|
|
14
|
+
McpChangeSchema2
|
|
15
|
+
} from "../chunks/browser-b519jtez.js";
|
|
16
|
+
import"../chunks/browser-1sfp0bcx.js";
|
|
17
|
+
import"../chunks/browser-4et7qtz3.js";
|
|
18
|
+
import"../chunks/browser-ypez6s7v.js";
|
|
19
|
+
import"../chunks/browser-vzc3r2r3.js";
|
|
20
|
+
export {
|
|
21
|
+
McpChangeSchema2 as McpChangeSchema,
|
|
22
|
+
McpChangeType2 as McpChangeType,
|
|
23
|
+
McpExposureNameType2 as McpExposureNameType,
|
|
24
|
+
McpExposureType2 as McpExposureType,
|
|
25
|
+
McpOAuthConfigType2 as McpOAuthConfigType,
|
|
26
|
+
McpScopeType2 as McpScopeType,
|
|
27
|
+
McpServerConfigSchema2 as McpServerConfigSchema,
|
|
28
|
+
McpServerConfigType2 as McpServerConfigType,
|
|
29
|
+
McpServerStateType2 as McpServerStateType,
|
|
30
|
+
McpServerViewType2 as McpServerViewType,
|
|
31
|
+
McpToolViewType2 as McpToolViewType,
|
|
32
|
+
McpViewSchema2 as McpViewSchema,
|
|
33
|
+
McpViewType2 as McpViewType
|
|
34
|
+
};
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { Type } from "typebox";
|
|
2
|
+
import type { Decoded, Schema } from "./schema.ts";
|
|
3
|
+
export declare const DeliveryType: Type.TEnum<["steer", "queue", "attach"]>;
|
|
4
|
+
export type Delivery = Decoded<typeof DeliveryType>;
|
|
5
|
+
export declare const ExcerptSourceType: Type.TUnion<[Type.TObject<{
|
|
6
|
+
kind: Type.TLiteral<"diff">;
|
|
7
|
+
path: Type.TString;
|
|
8
|
+
side: Type.TEnum<["old", "new"]>;
|
|
9
|
+
start: Type.TNumber;
|
|
10
|
+
end: Type.TNumber;
|
|
11
|
+
}>, Type.TObject<{
|
|
12
|
+
kind: Type.TLiteral<"terminal">;
|
|
13
|
+
command: Type.TOptional<Type.TString>;
|
|
14
|
+
}>, Type.TObject<{
|
|
15
|
+
kind: Type.TLiteral<"browser">;
|
|
16
|
+
url: Type.TString;
|
|
17
|
+
selector: Type.TString;
|
|
18
|
+
}>]>;
|
|
19
|
+
/**
|
|
20
|
+
* Where an excerpt was taken from. A `diff` range names the file and the
|
|
21
|
+
* lines `start` to `end` on one side of its change: `new` counts in the file
|
|
22
|
+
* as it is now, `old` as it was before. A `terminal` selection names the
|
|
23
|
+
* command line its output followed, when one is known. A `browser` element
|
|
24
|
+
* names the page `url` and a CSS `selector` that finds it there.
|
|
25
|
+
*/
|
|
26
|
+
export type ExcerptSource = Decoded<typeof ExcerptSourceType>;
|
|
27
|
+
export declare const UserContentType: Type.TUnion<[Type.TString, Type.TArray<Type.TUnion<[Type.TObject<{
|
|
28
|
+
kind: Type.TLiteral<"text">;
|
|
29
|
+
text: Type.TString;
|
|
30
|
+
}>, Type.TObject<{
|
|
31
|
+
kind: Type.TLiteral<"file">;
|
|
32
|
+
blob: Type.TUnsafe<import("./ids.ts").Id<"blob">>;
|
|
33
|
+
mime: Type.TString;
|
|
34
|
+
name: Type.TString;
|
|
35
|
+
}>, Type.TObject<{
|
|
36
|
+
kind: Type.TLiteral<"reference">;
|
|
37
|
+
path: Type.TString;
|
|
38
|
+
blob: Type.TOptional<Type.TUnsafe<import("./ids.ts").Id<"blob">>>;
|
|
39
|
+
}>, Type.TObject<{
|
|
40
|
+
kind: Type.TLiteral<"skill">;
|
|
41
|
+
name: Type.TString;
|
|
42
|
+
location: Type.TString;
|
|
43
|
+
}>, Type.TObject<{
|
|
44
|
+
kind: Type.TLiteral<"excerpt">;
|
|
45
|
+
source: Type.TUnion<[Type.TObject<{
|
|
46
|
+
kind: Type.TLiteral<"diff">;
|
|
47
|
+
path: Type.TString;
|
|
48
|
+
side: Type.TEnum<["old", "new"]>;
|
|
49
|
+
start: Type.TNumber;
|
|
50
|
+
end: Type.TNumber;
|
|
51
|
+
}>, Type.TObject<{
|
|
52
|
+
kind: Type.TLiteral<"terminal">;
|
|
53
|
+
command: Type.TOptional<Type.TString>;
|
|
54
|
+
}>, Type.TObject<{
|
|
55
|
+
kind: Type.TLiteral<"browser">;
|
|
56
|
+
url: Type.TString;
|
|
57
|
+
selector: Type.TString;
|
|
58
|
+
}>]>;
|
|
59
|
+
text: Type.TString;
|
|
60
|
+
}>]>>]>;
|
|
61
|
+
/**
|
|
62
|
+
* What a message says: text, or parts. A `file` is an attachment the client
|
|
63
|
+
* uploaded. A `reference` mentions a workspace file by `path`; the host reads
|
|
64
|
+
* it once when the message is sent and keeps that text as `blob`, so every
|
|
65
|
+
* request shows the model the file as it was then (a folder, or a file it
|
|
66
|
+
* cannot read, stays a bare mention). A `skill` asks the model to follow the
|
|
67
|
+
* skill at `location`. An `excerpt` is text the user took from a workbench
|
|
68
|
+
* panel, kept exactly as taken: a diff range's hunk, a terminal selection, or a
|
|
69
|
+
* page element's HTML; the model reads it with its `source`. Clients draw
|
|
70
|
+
* `reference`, `skill` and `excerpt` as chips.
|
|
71
|
+
*/
|
|
72
|
+
export type UserContent = Decoded<typeof UserContentType>;
|
|
73
|
+
export declare const PositionType: Type.TUnion<[Type.TObject<{
|
|
74
|
+
kind: Type.TLiteral<"start">;
|
|
75
|
+
}>, Type.TObject<{
|
|
76
|
+
kind: Type.TLiteral<"commit">;
|
|
77
|
+
id: Type.TUnsafe<import("./ids.ts").Id<"commit">>;
|
|
78
|
+
}>]>;
|
|
79
|
+
export type Position = Decoded<typeof PositionType>;
|
|
80
|
+
export declare const MessageSourceType: Type.TUnion<[Type.TObject<{
|
|
81
|
+
kind: Type.TLiteral<"user">;
|
|
82
|
+
}>, Type.TObject<{
|
|
83
|
+
kind: Type.TLiteral<"child">;
|
|
84
|
+
session: Type.TUnsafe<import("./ids.ts").Id<"session">>;
|
|
85
|
+
end: Type.TEnum<["completed", "stopped", "failed"]>;
|
|
86
|
+
}>, Type.TObject<{
|
|
87
|
+
kind: Type.TLiteral<"job">;
|
|
88
|
+
job: Type.TUnsafe<import("./ids.ts").Id<"job">>;
|
|
89
|
+
}>, Type.TObject<{
|
|
90
|
+
kind: Type.TLiteral<"shell">;
|
|
91
|
+
}>, Type.TObject<{
|
|
92
|
+
kind: Type.TLiteral<"action">;
|
|
93
|
+
label: Type.TString;
|
|
94
|
+
command: Type.TOptional<Type.TString>;
|
|
95
|
+
}>]>;
|
|
96
|
+
export type MessageSource = Decoded<typeof MessageSourceType>;
|
|
97
|
+
export declare const ScheduleType: Type.TUnion<[Type.TObject<{
|
|
98
|
+
kind: Type.TLiteral<"joined">;
|
|
99
|
+
run: Type.TUnsafe<import("./ids.ts").Id<"run">>;
|
|
100
|
+
}>, Type.TObject<{
|
|
101
|
+
kind: Type.TLiteral<"next-turn">;
|
|
102
|
+
reason: Type.TEnum<["requested", "idle", "run-ended", "configuration"]>;
|
|
103
|
+
}>, Type.TObject<{
|
|
104
|
+
kind: Type.TLiteral<"attached">;
|
|
105
|
+
}>, Type.TObject<{
|
|
106
|
+
kind: Type.TLiteral<"deciding">;
|
|
107
|
+
}>]>;
|
|
108
|
+
/** When an admitted input runs. `deciding` is a chat's first message, admitted with the chat while its before_send hooks decide it; nothing on its head runs until they do. */
|
|
109
|
+
export type Schedule = Decoded<typeof ScheduleType>;
|
|
110
|
+
export declare const DeliverySchema: Schema<Delivery>;
|
|
111
|
+
export declare const UserContentSchema: Schema<UserContent>;
|
|
112
|
+
export declare const PositionSchema: Schema<Position>;
|
|
113
|
+
export declare const MessageSourceSchema: Schema<MessageSource>;
|
|
114
|
+
export declare const ScheduleSchema: Schema<Schedule>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DeliveryType2,
|
|
3
|
+
ExcerptSourceType2,
|
|
4
|
+
UserContentType2,
|
|
5
|
+
PositionType2,
|
|
6
|
+
MessageSourceType2,
|
|
7
|
+
ScheduleType2,
|
|
8
|
+
DeliverySchema2,
|
|
9
|
+
UserContentSchema2,
|
|
10
|
+
PositionSchema2,
|
|
11
|
+
MessageSourceSchema2,
|
|
12
|
+
ScheduleSchema2
|
|
13
|
+
} from "../chunks/browser-hq5q56sf.js";
|
|
14
|
+
import"../chunks/browser-ypez6s7v.js";
|
|
15
|
+
import"../chunks/browser-vzc3r2r3.js";
|
|
16
|
+
export {
|
|
17
|
+
DeliverySchema2 as DeliverySchema,
|
|
18
|
+
DeliveryType2 as DeliveryType,
|
|
19
|
+
ExcerptSourceType2 as ExcerptSourceType,
|
|
20
|
+
MessageSourceSchema2 as MessageSourceSchema,
|
|
21
|
+
MessageSourceType2 as MessageSourceType,
|
|
22
|
+
PositionSchema2 as PositionSchema,
|
|
23
|
+
PositionType2 as PositionType,
|
|
24
|
+
ScheduleSchema2 as ScheduleSchema,
|
|
25
|
+
ScheduleType2 as ScheduleType,
|
|
26
|
+
UserContentSchema2 as UserContentSchema,
|
|
27
|
+
UserContentType2 as UserContentType
|
|
28
|
+
};
|