@nyte-ai/protocol 0.0.29-nightly.20261120.113 → 0.3.0
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/README.md +1 -1
- package/THIRD-PARTY-NOTICES.md +61 -3
- package/dist/chunks/{client-ha6yznqf.js → index-0q4bw06r.js} +12 -5
- package/dist/chunks/{client-wn6q96dq.js → index-1gda64ex.js} +27 -9
- package/dist/chunks/{client-4fq758q8.js → index-362qtcjf.js} +43 -20
- package/dist/chunks/index-7v2tp03w.js +224 -0
- package/dist/chunks/{client-wqkvb55q.js → index-gw4eefqr.js} +72 -37
- package/dist/chunks/{client-3sbyne3r.js → index-h14s9gt3.js} +1 -1
- package/dist/chunks/{client-eggvt9rc.js → index-ht11mtxs.js} +1 -1
- package/dist/chunks/{client-sw8vswjs.js → index-k7th682a.js} +53 -15
- package/dist/chunks/{client-xscg1xbf.js → index-kr00kac7.js} +1 -1
- package/dist/chunks/{client-j4157t87.js → index-q0t950kb.js} +10 -4
- package/dist/chunks/{client-101w6sd1.js → index-ra9p4jfx.js} +1 -1
- package/dist/chunks/{client-b8brz84x.js → index-rzv8zrzf.js} +3 -1
- package/dist/chunks/index-t6hyhcet.js +36 -0
- package/dist/chunks/{client-kqr7p5nh.js → index-vbt1c8yx.js} +3 -2
- package/dist/src/client/directory-store.d.ts +24 -0
- package/dist/src/{directory-store.js → client/directory-store.js} +1 -1
- package/dist/src/{session-store.d.ts → client/session-store.d.ts} +3 -1
- package/dist/src/{session-store.js → client/session-store.js} +1 -1
- package/dist/src/{socket-client.d.ts → client/socket-client.d.ts} +5 -0
- package/dist/src/client/socket-client.js +9 -0
- package/dist/src/client/stream-client.d.ts +11 -0
- package/dist/src/client/stream-client.js +14 -0
- package/dist/src/{client.d.ts → client/transport.d.ts} +2 -3
- package/dist/src/client/transport.js +11 -0
- package/dist/src/index.d.ts +13 -13
- package/dist/src/index.js +20 -16
- package/dist/src/{codec.js → operations/codec.js} +3 -2
- package/dist/src/operations/declarations.js +1 -0
- package/dist/src/{digest.js → operations/digest.js} +1 -1
- package/dist/src/{raw-parts.js → operations/raw-parts.js} +1 -1
- package/dist/src/wire/frame-checks.d.ts +247 -0
- package/dist/src/{frame-checks.js → wire/frame-checks.js} +1 -1
- package/dist/src/wire/json.d.ts +6 -0
- package/dist/src/wire/json.js +10 -0
- package/dist/src/{stream-buffer.js → wire/stream-buffer.js} +1 -1
- package/dist/src/{stream-channel.js → wire/stream-channel.js} +1 -1
- package/dist/src/{streams.js → wire/streams.js} +1 -1
- package/dist/src/{wire.d.ts → wire/wire.d.ts} +2 -1
- package/dist/src/{wire.js → wire/wire.js} +2 -2
- package/package.json +9 -9
- package/dist/chunks/client-6vn29412.js +0 -138
- package/dist/chunks/client-rk08pxm6.js +0 -12
- package/dist/src/client.js +0 -11
- package/dist/src/declarations.js +0 -1
- package/dist/src/directory-store.d.ts +0 -16
- package/dist/src/frame-checks.d.ts +0 -246
- package/dist/src/json.d.ts +0 -2
- package/dist/src/json.js +0 -6
- package/dist/src/socket-client.js +0 -9
- package/dist/src/stream-client.d.ts +0 -7
- package/dist/src/stream-client.js +0 -10
- /package/dist/chunks/{client-x7k53ygp.js → index-r3zsnw1t.js} +0 -0
- /package/dist/src/{codec.d.ts → operations/codec.d.ts} +0 -0
- /package/dist/src/{declarations.d.ts → operations/declarations.d.ts} +0 -0
- /package/dist/src/{digest.d.ts → operations/digest.d.ts} +0 -0
- /package/dist/src/{raw-parts.d.ts → operations/raw-parts.d.ts} +0 -0
- /package/dist/src/{stream-buffer.d.ts → wire/stream-buffer.d.ts} +0 -0
- /package/dist/src/{stream-channel.d.ts → wire/stream-channel.d.ts} +0 -0
- /package/dist/src/{streams.d.ts → wire/streams.d.ts} +0 -0
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { ParentFilter, SessionId, SessionInfo, SessionsChange, SessionsRead } from "@nyte-ai/schema";
|
|
2
|
-
export interface DirectorySnapshot {
|
|
3
|
-
readonly ids: readonly SessionId[];
|
|
4
|
-
readonly rows: ReadonlyMap<SessionId, SessionInfo>;
|
|
5
|
-
}
|
|
6
|
-
export interface DirectoryWindow {
|
|
7
|
-
readonly parents?: ParentFilter;
|
|
8
|
-
readonly limit?: number;
|
|
9
|
-
}
|
|
10
|
-
export interface DirectoryStore {
|
|
11
|
-
readonly seq: number;
|
|
12
|
-
apply(change: SessionsChange): void;
|
|
13
|
-
resume(read: SessionsRead): void;
|
|
14
|
-
snapshot(): DirectorySnapshot;
|
|
15
|
-
}
|
|
16
|
-
export declare function openDirectoryStore(read: SessionsRead, window?: DirectoryWindow): DirectoryStore;
|
|
@@ -1,246 +0,0 @@
|
|
|
1
|
-
export declare const welcomes: Pick<import("typebox/compile").Validator<{}, import("typebox").TCyclic<{
|
|
2
|
-
Json: import("typebox").TUnion<[import("typebox").TNull, import("typebox").TBoolean, import("typebox").TNumber, import("typebox").TString, import("typebox").TArray<import("typebox").TRef<"Json">>, import("typebox").TRecord<"^.*$", import("typebox").TRef<"Json">>]>;
|
|
3
|
-
} & {
|
|
4
|
-
Root: import("typebox").TObject<{
|
|
5
|
-
c: import("typebox").TLiteral<"e">;
|
|
6
|
-
type: import("typebox").TLiteral<"welcome">;
|
|
7
|
-
api_revision: import("typebox").TInteger;
|
|
8
|
-
api_min_revision: import("typebox").TInteger;
|
|
9
|
-
api_server_revision: import("typebox").TInteger;
|
|
10
|
-
host_id: import("typebox").TUnsafe<import("@nyte-ai/schema").Id<"host">>;
|
|
11
|
-
client_id: import("typebox").TUnsafe<import("@nyte-ai/schema").Id<"client">>;
|
|
12
|
-
limits: import("typebox").TObject<{
|
|
13
|
-
backlogBytes: import("typebox").TInteger;
|
|
14
|
-
maxFrameBytes: import("typebox").TInteger;
|
|
15
|
-
}>;
|
|
16
|
-
}>;
|
|
17
|
-
}, "Root">, {
|
|
18
|
-
c: "e";
|
|
19
|
-
type: "welcome";
|
|
20
|
-
api_revision: number;
|
|
21
|
-
api_min_revision: number;
|
|
22
|
-
api_server_revision: number;
|
|
23
|
-
host_id: import("@nyte-ai/schema").Id<"host">;
|
|
24
|
-
client_id: import("@nyte-ai/schema").Id<"client">;
|
|
25
|
-
limits: {
|
|
26
|
-
backlogBytes: number;
|
|
27
|
-
maxFrameBytes: number;
|
|
28
|
-
};
|
|
29
|
-
}, {
|
|
30
|
-
c: "e";
|
|
31
|
-
type: "welcome";
|
|
32
|
-
api_revision: number;
|
|
33
|
-
api_min_revision: number;
|
|
34
|
-
api_server_revision: number;
|
|
35
|
-
host_id: import("@nyte-ai/schema").Id<"host">;
|
|
36
|
-
client_id: import("@nyte-ai/schema").Id<"client">;
|
|
37
|
-
limits: {
|
|
38
|
-
backlogBytes: number;
|
|
39
|
-
maxFrameBytes: number;
|
|
40
|
-
};
|
|
41
|
-
}>, "Check">;
|
|
42
|
-
export declare const results: Pick<import("typebox/compile").Validator<{}, import("typebox").TCyclic<{
|
|
43
|
-
Json: import("typebox").TUnion<[import("typebox").TNull, import("typebox").TBoolean, import("typebox").TNumber, import("typebox").TString, import("typebox").TArray<import("typebox").TRef<"Json">>, import("typebox").TRecord<"^.*$", import("typebox").TRef<"Json">>]>;
|
|
44
|
-
} & {
|
|
45
|
-
Root: import("typebox").TObject<{
|
|
46
|
-
c: import("typebox").TLiteral<"e">;
|
|
47
|
-
type: import("typebox").TLiteral<"result">;
|
|
48
|
-
id: import("typebox").TString;
|
|
49
|
-
output: import("typebox").TUnsafe<import("@nyte-ai/schema").Json>;
|
|
50
|
-
}>;
|
|
51
|
-
}, "Root">, {
|
|
52
|
-
c: "e";
|
|
53
|
-
type: "result";
|
|
54
|
-
id: string;
|
|
55
|
-
output: import("@nyte-ai/schema").Json;
|
|
56
|
-
}, {
|
|
57
|
-
c: "e";
|
|
58
|
-
type: "result";
|
|
59
|
-
id: string;
|
|
60
|
-
output: import("@nyte-ai/schema").Json;
|
|
61
|
-
}>, "Check">;
|
|
62
|
-
export declare const errors: Pick<import("typebox/compile").Validator<{}, import("typebox").TCyclic<{
|
|
63
|
-
Json: import("typebox").TUnion<[import("typebox").TNull, import("typebox").TBoolean, import("typebox").TNumber, import("typebox").TString, import("typebox").TArray<import("typebox").TRef<"Json">>, import("typebox").TRecord<"^.*$", import("typebox").TRef<"Json">>]>;
|
|
64
|
-
} & {
|
|
65
|
-
Root: import("typebox").TObject<{
|
|
66
|
-
c: import("typebox").TLiteral<"e">;
|
|
67
|
-
type: import("typebox").TLiteral<"error">;
|
|
68
|
-
id: import("typebox").TString;
|
|
69
|
-
error: import("typebox").TObject<{
|
|
70
|
-
code: import("typebox").TEnum<["unauthenticated", "denied", "unknown", "invalid", "stale", "unavailable", "internal", "not_supported", "timeout"]>;
|
|
71
|
-
message: import("typebox").TString;
|
|
72
|
-
hostId: import("typebox").TUnion<[import("typebox").TUnsafe<import("@nyte-ai/schema").Id<"host">>, import("typebox").TNull]>;
|
|
73
|
-
issues: import("typebox").TArray<import("typebox").TObject<{
|
|
74
|
-
severity: import("typebox").TEnum<["error", "warning"]>;
|
|
75
|
-
path: import("typebox").TArray<import("typebox").TUnion<[import("typebox").TString, import("typebox").TNumber]>>;
|
|
76
|
-
message: import("typebox").TString;
|
|
77
|
-
source: import("typebox").TOptional<import("typebox").TObject<{
|
|
78
|
-
plugin: import("typebox").TString;
|
|
79
|
-
file: import("typebox").TOptional<import("typebox").TString>;
|
|
80
|
-
line: import("typebox").TOptional<import("typebox").TNumber>;
|
|
81
|
-
}>>;
|
|
82
|
-
}>>;
|
|
83
|
-
correlation: import("typebox").TUnion<[import("typebox").TString, import("typebox").TNull]>;
|
|
84
|
-
}>;
|
|
85
|
-
}>;
|
|
86
|
-
}, "Root">, {
|
|
87
|
-
c: "e";
|
|
88
|
-
type: "error";
|
|
89
|
-
id: string;
|
|
90
|
-
error: {
|
|
91
|
-
code: "denied" | "internal" | "invalid" | "not_supported" | "stale" | "timeout" | "unauthenticated" | "unavailable" | "unknown";
|
|
92
|
-
message: string;
|
|
93
|
-
hostId: import("@nyte-ai/schema").Id<"host"> | null;
|
|
94
|
-
issues: {
|
|
95
|
-
severity: "error" | "warning";
|
|
96
|
-
path: (string | number)[];
|
|
97
|
-
message: string;
|
|
98
|
-
source?: {
|
|
99
|
-
plugin: string;
|
|
100
|
-
file?: string | undefined;
|
|
101
|
-
line?: number | undefined;
|
|
102
|
-
} | undefined;
|
|
103
|
-
}[];
|
|
104
|
-
correlation: string | null;
|
|
105
|
-
};
|
|
106
|
-
}, {
|
|
107
|
-
c: "e";
|
|
108
|
-
type: "error";
|
|
109
|
-
id: string;
|
|
110
|
-
error: {
|
|
111
|
-
code: "denied" | "internal" | "invalid" | "not_supported" | "stale" | "timeout" | "unauthenticated" | "unavailable" | "unknown";
|
|
112
|
-
message: string;
|
|
113
|
-
hostId: import("@nyte-ai/schema").Id<"host"> | null;
|
|
114
|
-
issues: {
|
|
115
|
-
severity: "error" | "warning";
|
|
116
|
-
path: (string | number)[];
|
|
117
|
-
message: string;
|
|
118
|
-
source?: {
|
|
119
|
-
plugin: string;
|
|
120
|
-
file?: string | undefined;
|
|
121
|
-
line?: number | undefined;
|
|
122
|
-
} | undefined;
|
|
123
|
-
}[];
|
|
124
|
-
correlation: string | null;
|
|
125
|
-
};
|
|
126
|
-
}>, "Check">;
|
|
127
|
-
export declare const events: Pick<import("typebox/compile").Validator<{}, import("typebox").TCyclic<{
|
|
128
|
-
Json: import("typebox").TUnion<[import("typebox").TNull, import("typebox").TBoolean, import("typebox").TNumber, import("typebox").TString, import("typebox").TArray<import("typebox").TRef<"Json">>, import("typebox").TRecord<"^.*$", import("typebox").TRef<"Json">>]>;
|
|
129
|
-
} & {
|
|
130
|
-
Root: import("typebox").TObject<{
|
|
131
|
-
c: import("typebox").TLiteral<"e">;
|
|
132
|
-
type: import("typebox").TLiteral<"event">;
|
|
133
|
-
scope: import("typebox").TString;
|
|
134
|
-
seq: import("typebox").TUnion<[import("typebox").TInteger, import("typebox").TNull]>;
|
|
135
|
-
kind: import("typebox").TString;
|
|
136
|
-
}>;
|
|
137
|
-
}, "Root">, {
|
|
138
|
-
c: "e";
|
|
139
|
-
type: "event";
|
|
140
|
-
scope: string;
|
|
141
|
-
seq: number | null;
|
|
142
|
-
kind: string;
|
|
143
|
-
}, {
|
|
144
|
-
c: "e";
|
|
145
|
-
type: "event";
|
|
146
|
-
scope: string;
|
|
147
|
-
seq: number | null;
|
|
148
|
-
kind: string;
|
|
149
|
-
}>, "Check">;
|
|
150
|
-
export declare const texts: Pick<import("typebox/compile").Validator<{}, import("typebox").TCyclic<{
|
|
151
|
-
Json: import("typebox").TUnion<[import("typebox").TNull, import("typebox").TBoolean, import("typebox").TNumber, import("typebox").TString, import("typebox").TArray<import("typebox").TRef<"Json">>, import("typebox").TRecord<"^.*$", import("typebox").TRef<"Json">>]>;
|
|
152
|
-
} & {
|
|
153
|
-
Root: import("typebox").TUnion<[import("typebox").TObject<{
|
|
154
|
-
c: import("typebox").TLiteral<"t">;
|
|
155
|
-
part: import("typebox").TUnsafe<import("@nyte-ai/schema").Id<"part">>;
|
|
156
|
-
run: import("typebox").TUnion<[import("typebox").TUnsafe<import("@nyte-ai/schema").Id<"run">>, import("typebox").TNull]>;
|
|
157
|
-
version: import("typebox").TNumber;
|
|
158
|
-
text: import("typebox").TString;
|
|
159
|
-
}>, import("typebox").TObject<{
|
|
160
|
-
c: import("typebox").TLiteral<"t">;
|
|
161
|
-
part: import("typebox").TUnsafe<import("@nyte-ai/schema").Id<"part">>;
|
|
162
|
-
run: import("typebox").TUnion<[import("typebox").TUnsafe<import("@nyte-ai/schema").Id<"run">>, import("typebox").TNull]>;
|
|
163
|
-
version: import("typebox").TNumber;
|
|
164
|
-
append: import("typebox").TString;
|
|
165
|
-
}>, import("typebox").TObject<{
|
|
166
|
-
c: import("typebox").TLiteral<"t">;
|
|
167
|
-
part: import("typebox").TUnsafe<import("@nyte-ai/schema").Id<"part">>;
|
|
168
|
-
run: import("typebox").TUnion<[import("typebox").TUnsafe<import("@nyte-ai/schema").Id<"run">>, import("typebox").TNull]>;
|
|
169
|
-
progress: import("typebox").TObject<{
|
|
170
|
-
text: import("typebox").TOptional<import("typebox").TString>;
|
|
171
|
-
fraction: import("typebox").TOptional<import("typebox").TNumber>;
|
|
172
|
-
detail: import("typebox").TOptional<import("typebox").TUnsafe<import("@nyte-ai/schema").Json>>;
|
|
173
|
-
}>;
|
|
174
|
-
}>, import("typebox").TObject<{
|
|
175
|
-
c: import("typebox").TLiteral<"t">;
|
|
176
|
-
type: import("typebox").TLiteral<"closed">;
|
|
177
|
-
}>]>;
|
|
178
|
-
}, "Root">, {
|
|
179
|
-
c: "t";
|
|
180
|
-
part: import("@nyte-ai/schema").Id<"part">;
|
|
181
|
-
run: import("@nyte-ai/schema").Id<"run"> | null;
|
|
182
|
-
version: number;
|
|
183
|
-
text: string;
|
|
184
|
-
} | {
|
|
185
|
-
c: "t";
|
|
186
|
-
part: import("@nyte-ai/schema").Id<"part">;
|
|
187
|
-
run: import("@nyte-ai/schema").Id<"run"> | null;
|
|
188
|
-
version: number;
|
|
189
|
-
append: string;
|
|
190
|
-
} | {
|
|
191
|
-
c: "t";
|
|
192
|
-
part: import("@nyte-ai/schema").Id<"part">;
|
|
193
|
-
run: import("@nyte-ai/schema").Id<"run"> | null;
|
|
194
|
-
progress: {
|
|
195
|
-
text?: string | undefined;
|
|
196
|
-
fraction?: number | undefined;
|
|
197
|
-
detail?: import("@nyte-ai/schema").Json | undefined;
|
|
198
|
-
};
|
|
199
|
-
} | {
|
|
200
|
-
c: "t";
|
|
201
|
-
type: "closed";
|
|
202
|
-
}, {
|
|
203
|
-
c: "t";
|
|
204
|
-
part: import("@nyte-ai/schema").Id<"part">;
|
|
205
|
-
run: import("@nyte-ai/schema").Id<"run"> | null;
|
|
206
|
-
version: number;
|
|
207
|
-
text: string;
|
|
208
|
-
} | {
|
|
209
|
-
c: "t";
|
|
210
|
-
part: import("@nyte-ai/schema").Id<"part">;
|
|
211
|
-
run: import("@nyte-ai/schema").Id<"run"> | null;
|
|
212
|
-
version: number;
|
|
213
|
-
append: string;
|
|
214
|
-
} | {
|
|
215
|
-
c: "t";
|
|
216
|
-
part: import("@nyte-ai/schema").Id<"part">;
|
|
217
|
-
run: import("@nyte-ai/schema").Id<"run"> | null;
|
|
218
|
-
progress: {
|
|
219
|
-
text?: string | undefined;
|
|
220
|
-
fraction?: number | undefined;
|
|
221
|
-
detail?: import("@nyte-ai/schema").Json | undefined;
|
|
222
|
-
};
|
|
223
|
-
} | {
|
|
224
|
-
c: "t";
|
|
225
|
-
type: "closed";
|
|
226
|
-
}>, "Check">;
|
|
227
|
-
export declare const fragments: Pick<import("typebox/compile").Validator<{}, import("typebox").TCyclic<{
|
|
228
|
-
Json: import("typebox").TUnion<[import("typebox").TNull, import("typebox").TBoolean, import("typebox").TNumber, import("typebox").TString, import("typebox").TArray<import("typebox").TRef<"Json">>, import("typebox").TRecord<"^.*$", import("typebox").TRef<"Json">>]>;
|
|
229
|
-
} & {
|
|
230
|
-
Root: import("typebox").TObject<{
|
|
231
|
-
c: import("typebox").TLiteral<"e">;
|
|
232
|
-
type: import("typebox").TLiteral<"fragment">;
|
|
233
|
-
text: import("typebox").TString;
|
|
234
|
-
last: import("typebox").TBoolean;
|
|
235
|
-
}>;
|
|
236
|
-
}, "Root">, {
|
|
237
|
-
c: "e";
|
|
238
|
-
type: "fragment";
|
|
239
|
-
text: string;
|
|
240
|
-
last: boolean;
|
|
241
|
-
}, {
|
|
242
|
-
c: "e";
|
|
243
|
-
type: "fragment";
|
|
244
|
-
text: string;
|
|
245
|
-
last: boolean;
|
|
246
|
-
}>, "Check">;
|
package/dist/src/json.d.ts
DELETED
package/dist/src/json.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { Json } from "@nyte-ai/schema";
|
|
2
|
-
type Post = (path: string, init: RequestInit & {
|
|
3
|
-
readonly headers: Readonly<Record<string, string>>;
|
|
4
|
-
}) => Promise<Response>;
|
|
5
|
-
/** Multiplex streams over one channel opened through `post`, asking for `deflated` frames when `deflate`; the channel closes when its last stream is released. */
|
|
6
|
-
export declare function createStreamClient(post: Post, deflate: boolean): (name: string, input: Json, signal: AbortSignal) => Promise<ReadableStream<Uint8Array>>;
|
|
7
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
createStreamClient2
|
|
3
|
-
} from "../chunks/client-wn6q96dq.js";
|
|
4
|
-
import"../chunks/client-b8brz84x.js";
|
|
5
|
-
import"../chunks/client-3sbyne3r.js";
|
|
6
|
-
import"../chunks/client-4fq758q8.js";
|
|
7
|
-
import"../chunks/client-rk08pxm6.js";
|
|
8
|
-
export {
|
|
9
|
-
createStreamClient2 as createStreamClient
|
|
10
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|