@nyte-ai/schema 0.0.25-nightly.20261101.43 → 0.0.27
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/THIRD-PARTY-NOTICES.md +65 -0
- package/dist/chunks/{browser-essdh8bs.js → browser-103r6swq.js} +2 -2
- package/dist/chunks/{browser-wncza0bz.js → browser-1d594pfy.js} +9 -7
- package/dist/chunks/{browser-am89fq8c.js → browser-2de97wy9.js} +97 -18
- package/dist/chunks/{browser-b6fzfcnk.js → browser-6kfxrya6.js} +53 -2
- package/dist/chunks/{browser-4h6kvmq3.js → browser-8892y5ht.js} +1 -1
- package/dist/chunks/{browser-bs3see6w.js → browser-8aeqa34r.js} +3 -0
- package/dist/chunks/{browser-rfqgg9cs.js → browser-9jds4zd3.js} +4 -3
- package/dist/chunks/{browser-7dq69zxn.js → browser-b65vf90n.js} +11 -9
- package/dist/chunks/browser-e9zs4tr5.js +124 -0
- package/dist/chunks/{browser-s4teas34.js → browser-ggsck4tk.js} +5 -2
- package/dist/chunks/{browser-0eywkbqv.js → browser-hmjz4pq1.js} +35 -23
- package/dist/chunks/{browser-jgwseq7f.js → browser-m0mvb774.js} +1 -1
- package/dist/chunks/{browser-psrkwr58.js → browser-n0nykn4c.js} +3 -2
- package/dist/chunks/{browser-42s8gjcs.js → browser-nyax6822.js} +2 -2
- package/dist/chunks/{browser-j9f6g8ww.js → browser-peqre1gb.js} +13 -6
- package/dist/chunks/{browser-xv5vqejz.js → browser-sj6zjph8.js} +3 -1
- package/dist/chunks/{browser-hkny645x.js → browser-va00q82t.js} +74 -47
- package/dist/chunks/{browser-z40arxrw.js → browser-xd8gxrhc.js} +4 -2
- package/dist/chunks/browser-y54qh224.js +79 -0
- package/dist/chunks/{browser-wxybeanz.js → browser-zzv5wce6.js} +34 -7
- package/dist/src/connection.d.ts +20 -0
- package/dist/src/connection.js +7 -7
- package/dist/src/declaration.d.ts +2 -0
- package/dist/src/errors.d.ts +1 -1
- package/dist/src/errors.js +1 -1
- package/dist/src/events.d.ts +126 -112
- package/dist/src/events.js +7 -6
- package/dist/src/heads.d.ts +8 -0
- package/dist/src/heads.js +3 -3
- package/dist/src/hooks.d.ts +12 -0
- package/dist/src/hooks.js +2 -2
- package/dist/src/host.d.ts +50 -0
- package/dist/src/host.js +17 -3
- package/dist/src/ids.d.ts +1 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.js +111 -28
- package/dist/src/mcp.js +2 -2
- package/dist/src/messages.d.ts +14 -1
- package/dist/src/messages.js +1 -1
- package/dist/src/parts.js +3 -3
- package/dist/src/runs.d.ts +4 -4
- package/dist/src/runs.js +2 -2
- package/dist/src/sessions.d.ts +349 -7
- package/dist/src/sessions.js +16 -5
- package/dist/src/socket.d.ts +226 -0
- package/dist/src/socket.js +44 -0
- package/dist/src/store.d.ts +63 -56
- package/dist/src/store.js +8 -7
- package/dist/src/views.d.ts +1459 -1600
- package/dist/src/views.js +35 -16
- package/dist/src/wire/operations/events.d.ts +78 -0
- package/dist/src/wire/operations/events.js +15 -0
- package/dist/src/wire/operations/files.d.ts +3 -0
- package/dist/src/wire/operations/files.js +1 -1
- package/dist/src/wire/operations/host.d.ts +342 -100
- package/dist/src/wire/operations/host.js +8 -12
- package/dist/src/wire/operations/index.d.ts +1092 -2052
- package/dist/src/wire/operations/index.js +22 -16
- package/dist/src/wire/operations/session.d.ts +675 -1963
- package/dist/src/wire/operations/session.js +9 -8
- package/dist/src/wire/operations/workspace.d.ts +5 -0
- package/dist/src/wire/operations/workspace.js +7 -6
- package/package.json +5 -5
package/THIRD-PARTY-NOTICES.md
CHANGED
|
@@ -611,6 +611,71 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
611
611
|
SOFTWARE.
|
|
612
612
|
```
|
|
613
613
|
|
|
614
|
+
## Ghostty (`ghostty-org/ghostty`)
|
|
615
|
+
|
|
616
|
+
- Repository: https://github.com/ghostty-org/ghostty
|
|
617
|
+
- What: `packages/vt/ghostty-vt.wasm` is the signed libghostty-vt WebAssembly
|
|
618
|
+
build from Ghostty's `tip` release at the commit recorded in
|
|
619
|
+
`packages/vt/pin.json`, shipped unmodified. `packages/vt` binds its C API.
|
|
620
|
+
|
|
621
|
+
License: MIT, with the following notice:
|
|
622
|
+
|
|
623
|
+
```text
|
|
624
|
+
MIT License
|
|
625
|
+
|
|
626
|
+
Copyright (c) 2024 Mitchell Hashimoto, Ghostty contributors
|
|
627
|
+
|
|
628
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
629
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
630
|
+
in the Software without restriction, including without limitation the rights
|
|
631
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
632
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
633
|
+
furnished to do so, subject to the following conditions:
|
|
634
|
+
|
|
635
|
+
The above copyright notice and this permission notice shall be included in all
|
|
636
|
+
copies or substantial portions of the Software.
|
|
637
|
+
|
|
638
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
639
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
640
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
641
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
642
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
643
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
644
|
+
SOFTWARE.
|
|
645
|
+
```
|
|
646
|
+
|
|
647
|
+
## ghostty-web (`coder/ghostty-web`)
|
|
648
|
+
|
|
649
|
+
- Repository: https://github.com/coder/ghostty-web
|
|
650
|
+
- What: the escape-heavy viewport row-merge fixture in `packages/vt/test` is
|
|
651
|
+
ported from ghostty-web's `lib/viewport-row-merge.test.ts`.
|
|
652
|
+
|
|
653
|
+
License: MIT, with the following notice:
|
|
654
|
+
|
|
655
|
+
```text
|
|
656
|
+
MIT License
|
|
657
|
+
|
|
658
|
+
Copyright (c) 2025 Coder
|
|
659
|
+
|
|
660
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
661
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
662
|
+
in the Software without restriction, including without limitation the rights
|
|
663
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
664
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
665
|
+
furnished to do so, subject to the following conditions:
|
|
666
|
+
|
|
667
|
+
The above copyright notice and this permission notice shall be included in all
|
|
668
|
+
copies or substantial portions of the Software.
|
|
669
|
+
|
|
670
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
671
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
672
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
673
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
674
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
675
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
676
|
+
SOFTWARE.
|
|
677
|
+
```
|
|
678
|
+
|
|
614
679
|
## Naybr, "Copyright Free Gameplay (No Commentary) - Minecraft Survival"
|
|
615
680
|
|
|
616
681
|
- Source: https://www.youtube.com/watch?v=GPsGyv5zTlM, by Naybr (youtube.com/@Naybr)
|
|
@@ -18,13 +18,13 @@ import {
|
|
|
18
18
|
} from "./browser-hj9h95j8.js";
|
|
19
19
|
import {
|
|
20
20
|
ValidationIssueType2
|
|
21
|
-
} from "./browser-
|
|
21
|
+
} from "./browser-sj6zjph8.js";
|
|
22
22
|
import {
|
|
23
23
|
DeliveryType2,
|
|
24
24
|
UserContentType2,
|
|
25
25
|
PositionType2,
|
|
26
26
|
MessageSourceType2
|
|
27
|
-
} from "./browser-
|
|
27
|
+
} from "./browser-xd8gxrhc.js";
|
|
28
28
|
|
|
29
29
|
// src/heads.ts
|
|
30
30
|
import { Type } from "typebox";
|
|
@@ -9,22 +9,23 @@ import {
|
|
|
9
9
|
} from "./browser-4et7qtz3.js";
|
|
10
10
|
import {
|
|
11
11
|
ValidationIssueType2
|
|
12
|
-
} from "./browser-
|
|
12
|
+
} from "./browser-sj6zjph8.js";
|
|
13
13
|
import {
|
|
14
14
|
withJson2
|
|
15
15
|
} from "./browser-1syehtzx.js";
|
|
16
16
|
import {
|
|
17
17
|
UserContentType2
|
|
18
|
-
} from "./browser-
|
|
18
|
+
} from "./browser-xd8gxrhc.js";
|
|
19
19
|
import {
|
|
20
20
|
SendOptionsType2
|
|
21
|
-
} from "./browser-
|
|
21
|
+
} from "./browser-103r6swq.js";
|
|
22
22
|
import {
|
|
23
|
-
AuthorityType2
|
|
24
|
-
|
|
23
|
+
AuthorityType2,
|
|
24
|
+
TailnetStatusType2
|
|
25
|
+
} from "./browser-6kfxrya6.js";
|
|
25
26
|
import {
|
|
26
27
|
SettingInfoType2
|
|
27
|
-
} from "./browser-
|
|
28
|
+
} from "./browser-zzv5wce6.js";
|
|
28
29
|
|
|
29
30
|
// src/connection.ts
|
|
30
31
|
import { Type } from "typebox";
|
|
@@ -61,7 +62,8 @@ var HostViewWireType2 = Type.Object({
|
|
|
61
62
|
})),
|
|
62
63
|
defaultWorkspace: nullable2(idSchema2()),
|
|
63
64
|
authority: Type.Array(AuthorityType2),
|
|
64
|
-
principal: idSchema2()
|
|
65
|
+
principal: idSchema2(),
|
|
66
|
+
tailnet: Type.Optional(TailnetStatusType2)
|
|
65
67
|
});
|
|
66
68
|
var CredentialSourceWireType2 = Type.Union([
|
|
67
69
|
Type.Object({ kind: Type.Literal("token"), token: Type.String() }),
|
|
@@ -18,14 +18,18 @@ import {
|
|
|
18
18
|
} from "./browser-hj9h95j8.js";
|
|
19
19
|
import {
|
|
20
20
|
UserContentType2
|
|
21
|
-
} from "./browser-
|
|
21
|
+
} from "./browser-xd8gxrhc.js";
|
|
22
22
|
import {
|
|
23
23
|
AuthorityType2,
|
|
24
24
|
PrincipalViewWireType2,
|
|
25
|
+
TailnetSettingsType2,
|
|
26
|
+
TailnetStatusType2,
|
|
27
|
+
McpAccessType2,
|
|
28
|
+
McpGrantViewType2,
|
|
25
29
|
OperationDescriptionType2,
|
|
26
30
|
PluginCheckReportSchema2,
|
|
27
31
|
PluginReplacementReportSchema2
|
|
28
|
-
} from "./browser-
|
|
32
|
+
} from "./browser-6kfxrya6.js";
|
|
29
33
|
import {
|
|
30
34
|
WorkspaceTargetType2,
|
|
31
35
|
WorkspaceInfoType2,
|
|
@@ -35,12 +39,14 @@ import {
|
|
|
35
39
|
WorkspaceInspectionSchema2
|
|
36
40
|
} from "./browser-zpmvm43p.js";
|
|
37
41
|
import {
|
|
38
|
-
SessionInfoType2
|
|
39
|
-
|
|
42
|
+
SessionInfoType2,
|
|
43
|
+
SessionsReadType2,
|
|
44
|
+
SessionCatalogViewSchema2
|
|
45
|
+
} from "./browser-zzv5wce6.js";
|
|
40
46
|
import {
|
|
41
47
|
HostViewWireSchema2,
|
|
42
48
|
SettingOutcomeSchema2
|
|
43
|
-
} from "./browser-
|
|
49
|
+
} from "./browser-1d594pfy.js";
|
|
44
50
|
import {
|
|
45
51
|
PromptOverrideType2
|
|
46
52
|
} from "./browser-yhzp7eyw.js";
|
|
@@ -48,9 +54,6 @@ import {
|
|
|
48
54
|
pagedSchema2,
|
|
49
55
|
ParentFilterType2
|
|
50
56
|
} from "./browser-vmx34zex.js";
|
|
51
|
-
import {
|
|
52
|
-
SessionsFrameType2
|
|
53
|
-
} from "./browser-hkny645x.js";
|
|
54
57
|
import {
|
|
55
58
|
wireSchema2,
|
|
56
59
|
wireObject2,
|
|
@@ -64,6 +67,7 @@ import { Type } from "typebox";
|
|
|
64
67
|
var PARTICIPANT = { authority: "participant", scope: "host" };
|
|
65
68
|
var OWNER = { authority: "owner", scope: "host" };
|
|
66
69
|
var MAINTENANCE = { authority: "maintenance", scope: "host" };
|
|
70
|
+
var LOCAL_OWNER = { ...OWNER, local: true };
|
|
67
71
|
var PROVIDER = { provider: Type.String() };
|
|
68
72
|
var PLUGIN_FILE = Type.Object({ path: Type.String() });
|
|
69
73
|
var NO_INPUT = wireObject2({});
|
|
@@ -83,6 +87,13 @@ var HOST_OPERATIONS2 = {
|
|
|
83
87
|
input: wireObject2({ id: idSchema2() }),
|
|
84
88
|
output: BYTES2
|
|
85
89
|
},
|
|
90
|
+
"catalogs.read": {
|
|
91
|
+
...PARTICIPANT,
|
|
92
|
+
summary: "Reads the commands, settings, skills, agents and tools of a chat's catalog by the id its session rows carry.",
|
|
93
|
+
kind: "query",
|
|
94
|
+
input: wireObject2({ id: idSchema2() }),
|
|
95
|
+
output: SessionCatalogViewSchema2
|
|
96
|
+
},
|
|
86
97
|
"operations.describe": {
|
|
87
98
|
...PARTICIPANT,
|
|
88
99
|
summary: "Describes the operations this host serves, or the ones named, with their access and wire JSON Schemas.",
|
|
@@ -224,6 +235,7 @@ var HOST_OPERATIONS2 = {
|
|
|
224
235
|
},
|
|
225
236
|
"workspaces.list": {
|
|
226
237
|
...PARTICIPANT,
|
|
238
|
+
mcp: "read",
|
|
227
239
|
summary: "Lists the workspaces the host knows.",
|
|
228
240
|
kind: "query",
|
|
229
241
|
input: NO_INPUT,
|
|
@@ -263,18 +275,9 @@ var HOST_OPERATIONS2 = {
|
|
|
263
275
|
input: NO_INPUT,
|
|
264
276
|
output: WorktreeCleanupSchema2
|
|
265
277
|
},
|
|
266
|
-
"sessions.watch": {
|
|
267
|
-
...PARTICIPANT,
|
|
268
|
-
summary: "Streams the host's sessions as they change.",
|
|
269
|
-
kind: "watch",
|
|
270
|
-
input: wireObject2({
|
|
271
|
-
parents: Type.Optional(ParentFilterType2),
|
|
272
|
-
limit: Type.Optional(Type.Number())
|
|
273
|
-
}),
|
|
274
|
-
output: wireSchema2(SessionsFrameType2)
|
|
275
|
-
},
|
|
276
278
|
"sessions.start": {
|
|
277
279
|
...PARTICIPANT,
|
|
280
|
+
mcp: "write",
|
|
278
281
|
summary: "Starts a chat with its first message.",
|
|
279
282
|
kind: "receipt",
|
|
280
283
|
recovery: "replay",
|
|
@@ -287,6 +290,7 @@ var HOST_OPERATIONS2 = {
|
|
|
287
290
|
prompt: Type.Optional(PromptOverrideType2),
|
|
288
291
|
isolation: Type.Optional(Type.Literal("worktree")),
|
|
289
292
|
contextFiles: Type.Optional(Type.Literal(false)),
|
|
293
|
+
side: Type.Optional(Type.Literal(true)),
|
|
290
294
|
content: UserContentType2
|
|
291
295
|
}),
|
|
292
296
|
output: wireObject2({
|
|
@@ -297,6 +301,7 @@ var HOST_OPERATIONS2 = {
|
|
|
297
301
|
},
|
|
298
302
|
"sessions.list": {
|
|
299
303
|
...PARTICIPANT,
|
|
304
|
+
mcp: "read",
|
|
300
305
|
summary: "Lists the host's sessions one page at a time.",
|
|
301
306
|
kind: "query",
|
|
302
307
|
input: wireObject2({
|
|
@@ -305,6 +310,80 @@ var HOST_OPERATIONS2 = {
|
|
|
305
310
|
limit: Type.Optional(Type.Number())
|
|
306
311
|
}),
|
|
307
312
|
output: pagedSchema2(SessionInfoType2)
|
|
313
|
+
},
|
|
314
|
+
"sessions.read": {
|
|
315
|
+
...PARTICIPANT,
|
|
316
|
+
summary: "Reads the host's sessions table: the ids a filter selects and every row changed since a seq.",
|
|
317
|
+
kind: "query",
|
|
318
|
+
input: wireObject2({
|
|
319
|
+
parents: Type.Optional(ParentFilterType2),
|
|
320
|
+
limit: Type.Optional(Type.Number()),
|
|
321
|
+
resume: Type.Optional(Type.Object({ seq: Type.Number() }))
|
|
322
|
+
}),
|
|
323
|
+
output: wireSchema2(SessionsReadType2)
|
|
324
|
+
},
|
|
325
|
+
"host.tailnet.status": {
|
|
326
|
+
...LOCAL_OWNER,
|
|
327
|
+
summary: "Returns the status of the host's embedded tailnet node.",
|
|
328
|
+
kind: "query",
|
|
329
|
+
input: NO_INPUT,
|
|
330
|
+
output: wireSchema2(TailnetStatusType2)
|
|
331
|
+
},
|
|
332
|
+
"host.tailnet.configure": {
|
|
333
|
+
...LOCAL_OWNER,
|
|
334
|
+
summary: "Saves the embedded tailnet node's settings and restarts it, signing in with the auth key when one is given; the key is passed to the node once and never saved.",
|
|
335
|
+
kind: "command",
|
|
336
|
+
input: wireObject2({ ...TailnetSettingsType2.properties, authKey: Type.Optional(Type.String()) }),
|
|
337
|
+
output: wireSchema2(TailnetStatusType2)
|
|
338
|
+
},
|
|
339
|
+
"host.tailnet.logout": {
|
|
340
|
+
...LOCAL_OWNER,
|
|
341
|
+
summary: "Signs the embedded tailnet node out and turns it off.",
|
|
342
|
+
kind: "command",
|
|
343
|
+
input: NO_INPUT,
|
|
344
|
+
output: wireSchema2(TailnetStatusType2)
|
|
345
|
+
},
|
|
346
|
+
"host.execution.pause": {
|
|
347
|
+
...LOCAL_OWNER,
|
|
348
|
+
summary: "Ends the host's model streams in flight and holds new requests until resumed, as while the machine sleeps; runs stay live.",
|
|
349
|
+
kind: "command",
|
|
350
|
+
input: NO_INPUT,
|
|
351
|
+
output: NOTHING2
|
|
352
|
+
},
|
|
353
|
+
"host.execution.resume": {
|
|
354
|
+
...LOCAL_OWNER,
|
|
355
|
+
summary: "Lets the runs a pause held request again.",
|
|
356
|
+
kind: "command",
|
|
357
|
+
input: NO_INPUT,
|
|
358
|
+
output: NOTHING2
|
|
359
|
+
},
|
|
360
|
+
"mcp.approve": {
|
|
361
|
+
...LOCAL_OWNER,
|
|
362
|
+
summary: "Approves the MCP sign-in waiting with this code, for read-only tools or for write tools under an approval policy ceiling.",
|
|
363
|
+
kind: "command",
|
|
364
|
+
input: wireObject2({ code: Type.String(), access: McpAccessType2 }),
|
|
365
|
+
output: wireObject2({ client: Type.String() })
|
|
366
|
+
},
|
|
367
|
+
"mcp.deny": {
|
|
368
|
+
...LOCAL_OWNER,
|
|
369
|
+
summary: "Refuses the MCP sign-in waiting with this code.",
|
|
370
|
+
kind: "command",
|
|
371
|
+
input: wireObject2({ code: Type.String() }),
|
|
372
|
+
output: NOTHING2
|
|
373
|
+
},
|
|
374
|
+
"mcp.grants.list": {
|
|
375
|
+
...LOCAL_OWNER,
|
|
376
|
+
summary: "Lists the MCP clients this host granted access to.",
|
|
377
|
+
kind: "query",
|
|
378
|
+
input: NO_INPUT,
|
|
379
|
+
output: wireSchema2(Type.Array(McpGrantViewType2))
|
|
380
|
+
},
|
|
381
|
+
"mcp.grants.revoke": {
|
|
382
|
+
...LOCAL_OWNER,
|
|
383
|
+
summary: "Revokes an MCP client's grant and every token issued under it.",
|
|
384
|
+
kind: "command",
|
|
385
|
+
input: wireObject2({ id: Type.String() }),
|
|
386
|
+
output: NOTHING2
|
|
308
387
|
}
|
|
309
388
|
};
|
|
310
389
|
var MAINTENANCE_OPERATIONS2 = {
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./browser-4et7qtz3.js";
|
|
10
10
|
import {
|
|
11
11
|
ValidationIssueType2
|
|
12
|
-
} from "./browser-
|
|
12
|
+
} from "./browser-sj6zjph8.js";
|
|
13
13
|
import {
|
|
14
14
|
JsonType2,
|
|
15
15
|
withJson2
|
|
@@ -41,6 +41,56 @@ var PrincipalViewWireType2 = Type.Object({
|
|
|
41
41
|
authority: Type.Array(AuthorityType2),
|
|
42
42
|
pairedAt: Type.Number()
|
|
43
43
|
});
|
|
44
|
+
var TailnetAccessType2 = Type.Enum(["owner", "tailnet"]);
|
|
45
|
+
var TailnetSettingsType2 = Type.Object({
|
|
46
|
+
enabled: Type.Boolean(),
|
|
47
|
+
hostname: Type.String({ pattern: "^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$" }),
|
|
48
|
+
tags: Type.Array(Type.String({ pattern: "^tag:[A-Za-z0-9][A-Za-z0-9-]*$" })),
|
|
49
|
+
access: TailnetAccessType2
|
|
50
|
+
});
|
|
51
|
+
var TailnetStatusType2 = Type.Object({
|
|
52
|
+
state: Type.Enum([
|
|
53
|
+
"disabled",
|
|
54
|
+
"starting",
|
|
55
|
+
"needs_login",
|
|
56
|
+
"needs_machine_approval",
|
|
57
|
+
"running",
|
|
58
|
+
"stopped"
|
|
59
|
+
]),
|
|
60
|
+
authUrl: Type.Optional(Type.String()),
|
|
61
|
+
dnsName: Type.Optional(Type.String()),
|
|
62
|
+
https: Type.Enum(["pending", "available", "unavailable"]),
|
|
63
|
+
access: TailnetAccessType2,
|
|
64
|
+
tags: Type.Array(Type.String()),
|
|
65
|
+
reason: Type.Optional(Type.Enum([
|
|
66
|
+
"locked",
|
|
67
|
+
"protocol",
|
|
68
|
+
"version",
|
|
69
|
+
"hello_timeout",
|
|
70
|
+
"start_timeout",
|
|
71
|
+
"invalid_status",
|
|
72
|
+
"exited"
|
|
73
|
+
])),
|
|
74
|
+
holder: Type.Optional(Type.Number()),
|
|
75
|
+
detail: Type.Optional(Type.String()),
|
|
76
|
+
stderr: Type.Optional(Type.String())
|
|
77
|
+
});
|
|
78
|
+
var ApprovalPolicyType2 = Type.Union([
|
|
79
|
+
Type.Literal("ask"),
|
|
80
|
+
Type.Literal("auto-edit"),
|
|
81
|
+
Type.Literal("full")
|
|
82
|
+
]);
|
|
83
|
+
var McpAccessType2 = Type.Union([
|
|
84
|
+
Type.Object({ kind: Type.Literal("read-only") }),
|
|
85
|
+
Type.Object({ kind: Type.Literal("ceiling"), ceiling: ApprovalPolicyType2 })
|
|
86
|
+
]);
|
|
87
|
+
var McpCeilingType2 = Type.Object({ grant: Type.String(), ceiling: ApprovalPolicyType2 });
|
|
88
|
+
var McpGrantViewType2 = Type.Object({
|
|
89
|
+
id: Type.String(),
|
|
90
|
+
client: Type.String(),
|
|
91
|
+
access: McpAccessType2,
|
|
92
|
+
createdAt: Type.Number()
|
|
93
|
+
});
|
|
44
94
|
var PluginLoadOutcomeType2 = Type.Object({
|
|
45
95
|
kind: Type.Enum(["activated", "rejected", "kept-previous"]),
|
|
46
96
|
id: Type.String(),
|
|
@@ -57,6 +107,7 @@ var OperationDescriptionType2 = Type.Object({
|
|
|
57
107
|
authority: AuthorityType2,
|
|
58
108
|
scope: Type.Enum(["host", "session", "workspace"]),
|
|
59
109
|
capability: Type.Optional(Type.Enum(["files", "git", "github", "browser"])),
|
|
110
|
+
local: Type.Optional(Type.Literal(true)),
|
|
60
111
|
input: JsonType2,
|
|
61
112
|
output: JsonType2
|
|
62
113
|
});
|
|
@@ -90,4 +141,4 @@ var PluginReplacementReportSchema2 = standard2(PluginReplacementReportType2);
|
|
|
90
141
|
var DecodedObjectViewSchema2 = standard2(withJson2(DecodedObjectViewType2));
|
|
91
142
|
var IntegrityReportSchema2 = standard2(IntegrityReportType2);
|
|
92
143
|
|
|
93
|
-
export { AuthorityType2, ExecutionCoverageType2, AdvanceReportType2, RepairPageType2, PrincipalViewWireType2, PluginLoadOutcomeType2, PluginCheckReportType2, OperationDescriptionType2, PluginReplacementReportType2, DecodedObjectViewType2, IntegrityReportType2, AuthoritySchema2, ExecutionCoverageSchema2, AdvanceReportSchema2, RepairPageSchema2, PrincipalViewWireSchema2, PluginLoadOutcomeSchema2, PluginCheckReportSchema2, PluginReplacementReportSchema2, DecodedObjectViewSchema2, IntegrityReportSchema2 };
|
|
144
|
+
export { AuthorityType2, ExecutionCoverageType2, AdvanceReportType2, RepairPageType2, PrincipalViewWireType2, TailnetAccessType2, TailnetSettingsType2, TailnetStatusType2, ApprovalPolicyType2, McpAccessType2, McpCeilingType2, McpGrantViewType2, PluginLoadOutcomeType2, PluginCheckReportType2, OperationDescriptionType2, PluginReplacementReportType2, DecodedObjectViewType2, IntegrityReportType2, AuthoritySchema2, ExecutionCoverageSchema2, AdvanceReportSchema2, RepairPageSchema2, PrincipalViewWireSchema2, PluginLoadOutcomeSchema2, PluginCheckReportSchema2, PluginReplacementReportSchema2, DecodedObjectViewSchema2, IntegrityReportSchema2 };
|
|
@@ -37,6 +37,7 @@ var QUERY_INPUT = wireObject2({
|
|
|
37
37
|
var FILE_OPERATIONS2 = {
|
|
38
38
|
"files.read": {
|
|
39
39
|
...FILES,
|
|
40
|
+
mcp: "read",
|
|
40
41
|
summary: "Reads a file as text or as a document with its version.",
|
|
41
42
|
kind: "query",
|
|
42
43
|
input: wireObject2({
|
|
@@ -54,6 +55,7 @@ var FILE_OPERATIONS2 = {
|
|
|
54
55
|
},
|
|
55
56
|
"files.stat": {
|
|
56
57
|
...FILES,
|
|
58
|
+
mcp: "read",
|
|
57
59
|
summary: "Returns a path's kind, size and version, or null if nothing is there.",
|
|
58
60
|
kind: "query",
|
|
59
61
|
input: ON_PATH2,
|
|
@@ -131,6 +133,7 @@ var FILE_OPERATIONS2 = {
|
|
|
131
133
|
},
|
|
132
134
|
"files.find": {
|
|
133
135
|
...FILES,
|
|
136
|
+
mcp: "read",
|
|
134
137
|
summary: "Lists the files whose paths best match a query, best first.",
|
|
135
138
|
kind: "query",
|
|
136
139
|
input: QUERY_INPUT,
|
|
@@ -21,13 +21,13 @@ import {
|
|
|
21
21
|
McpServerConfigType2,
|
|
22
22
|
McpViewSchema2,
|
|
23
23
|
McpChangeSchema2
|
|
24
|
-
} from "./browser-
|
|
24
|
+
} from "./browser-m0mvb774.js";
|
|
25
25
|
import {
|
|
26
26
|
CapabilityWireSchema2
|
|
27
27
|
} from "./browser-vmx34zex.js";
|
|
28
28
|
import {
|
|
29
29
|
stopOutcomeSchema2
|
|
30
|
-
} from "./browser-
|
|
30
|
+
} from "./browser-ggsck4tk.js";
|
|
31
31
|
import {
|
|
32
32
|
WorkspaceInfoSchema2
|
|
33
33
|
} from "./browser-zpmvm43p.js";
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
WorkspaceCatalogViewType2,
|
|
36
36
|
CommandCompletionsSchema2,
|
|
37
37
|
WorkspaceCommandOutcomeSchema2
|
|
38
|
-
} from "./browser-
|
|
38
|
+
} from "./browser-zzv5wce6.js";
|
|
39
39
|
import {
|
|
40
40
|
wireSchema2,
|
|
41
41
|
wireObject2,
|
|
@@ -60,6 +60,7 @@ var ON_SERVER = wireObject2({ ...WORKSPACE2, server: Type.String() });
|
|
|
60
60
|
var WORKSPACE_OPERATIONS2 = {
|
|
61
61
|
"workspace.info": {
|
|
62
62
|
...PARTICIPANT,
|
|
63
|
+
mcp: "read",
|
|
63
64
|
summary: "Reads the workspace's folder, trust and state.",
|
|
64
65
|
kind: "query",
|
|
65
66
|
input: ON_WORKSPACE2,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
} from "./browser-hj9h95j8.js";
|
|
23
23
|
import {
|
|
24
24
|
FailureType2
|
|
25
|
-
} from "./browser-
|
|
25
|
+
} from "./browser-sj6zjph8.js";
|
|
26
26
|
import {
|
|
27
27
|
FileChangeType2
|
|
28
28
|
} from "./browser-9exss9bd.js";
|
|
@@ -31,13 +31,13 @@ import {
|
|
|
31
31
|
UserContentType2,
|
|
32
32
|
MessageSourceType2,
|
|
33
33
|
ScheduleType2
|
|
34
|
-
} from "./browser-
|
|
34
|
+
} from "./browser-xd8gxrhc.js";
|
|
35
35
|
import {
|
|
36
36
|
RunViewType2,
|
|
37
37
|
RunEndType2,
|
|
38
38
|
WaitTargetType2,
|
|
39
39
|
BackgroundItemType2
|
|
40
|
-
} from "./browser-
|
|
40
|
+
} from "./browser-ggsck4tk.js";
|
|
41
41
|
import {
|
|
42
42
|
ToolOutcomeType2,
|
|
43
43
|
ToolProgressType2
|
|
@@ -45,14 +45,13 @@ import {
|
|
|
45
45
|
import {
|
|
46
46
|
PlacementType2,
|
|
47
47
|
ToolChangesType2
|
|
48
|
-
} from "./browser-
|
|
48
|
+
} from "./browser-nyax6822.js";
|
|
49
49
|
import {
|
|
50
50
|
ActivationType2
|
|
51
51
|
} from "./browser-zpmvm43p.js";
|
|
52
52
|
import {
|
|
53
|
-
SessionInfoType2
|
|
54
|
-
|
|
55
|
-
} from "./browser-wxybeanz.js";
|
|
53
|
+
SessionInfoType2
|
|
54
|
+
} from "./browser-zzv5wce6.js";
|
|
56
55
|
|
|
57
56
|
// src/events.ts
|
|
58
57
|
import { Type } from "typebox";
|
|
@@ -237,10 +236,13 @@ function durableEvent(common) {
|
|
|
237
236
|
Type.Object({ ...common, kind: Type.Literal("changes"), files: Type.Array(FileChangeType2) }),
|
|
238
237
|
Type.Object({ ...common, kind: Type.Literal("session"), info: SessionInfoType2 }),
|
|
239
238
|
Type.Object({ ...common, kind: Type.Literal("activation"), activation: ActivationType2 }),
|
|
240
|
-
Type.Object({ ...common, kind: Type.Literal("catalog"),
|
|
239
|
+
Type.Object({ ...common, kind: Type.Literal("catalog"), id: idSchema2() })
|
|
241
240
|
]);
|
|
242
241
|
}
|
|
243
|
-
var DurableEventType2 = durableEvent({
|
|
242
|
+
var DurableEventType2 = durableEvent({
|
|
243
|
+
head: nullable2(idSchema2()),
|
|
244
|
+
at: Type.Optional(Type.Number())
|
|
245
|
+
});
|
|
244
246
|
var SessionEventType2 = durableEvent({
|
|
245
247
|
seq: SeqType2,
|
|
246
248
|
at: Type.Number(),
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import {
|
|
2
|
+
idSchema2
|
|
3
|
+
} from "./browser-kevgsmcz.js";
|
|
4
|
+
import {
|
|
5
|
+
SdkErrorWireType2
|
|
6
|
+
} from "./browser-sj6zjph8.js";
|
|
7
|
+
import {
|
|
8
|
+
JsonType2
|
|
9
|
+
} from "./browser-1syehtzx.js";
|
|
10
|
+
import {
|
|
11
|
+
ToolProgressType2
|
|
12
|
+
} from "./browser-40hrvphv.js";
|
|
13
|
+
|
|
14
|
+
// src/socket.ts
|
|
15
|
+
import { Type } from "typebox";
|
|
16
|
+
var SOCKET_PATH2 = "/.nyte/ws";
|
|
17
|
+
var TICKET_PATH2 = "/.nyte/ws/ticket";
|
|
18
|
+
var HELLO_MAX_BYTES2 = 4096;
|
|
19
|
+
var SOCKET_LIMITS2 = { backlogBytes: 8388608, maxFrameBytes: 1048576 };
|
|
20
|
+
var ClientKindType2 = Type.Enum(["app", "tui", "cli", "agent", "other"]);
|
|
21
|
+
var ActionDeclarationType2 = Type.Object({
|
|
22
|
+
name: Type.String({ minLength: 1 }),
|
|
23
|
+
summary: Type.String(),
|
|
24
|
+
input: JsonType2
|
|
25
|
+
});
|
|
26
|
+
var ClientInfoType2 = Type.Object({
|
|
27
|
+
kind: ClientKindType2,
|
|
28
|
+
name: Type.String(),
|
|
29
|
+
version: Type.String(),
|
|
30
|
+
actions: Type.Array(ActionDeclarationType2)
|
|
31
|
+
});
|
|
32
|
+
var ClientRowType2 = Type.Object({
|
|
33
|
+
id: idSchema2(),
|
|
34
|
+
principal: idSchema2(),
|
|
35
|
+
kind: ClientKindType2,
|
|
36
|
+
name: Type.String(),
|
|
37
|
+
version: Type.String(),
|
|
38
|
+
actions: Type.Array(ActionDeclarationType2),
|
|
39
|
+
since: Type.Number()
|
|
40
|
+
});
|
|
41
|
+
var HelloFrameType2 = Type.Object({
|
|
42
|
+
c: Type.Literal("e"),
|
|
43
|
+
type: Type.Literal("hello"),
|
|
44
|
+
api_min_revision: Type.Integer({ minimum: 1 }),
|
|
45
|
+
api_revision: Type.Optional(Type.Integer({ minimum: 1 })),
|
|
46
|
+
client: ClientInfoType2
|
|
47
|
+
});
|
|
48
|
+
var WelcomeFrameType2 = Type.Object({
|
|
49
|
+
c: Type.Literal("e"),
|
|
50
|
+
type: Type.Literal("welcome"),
|
|
51
|
+
api_revision: Type.Integer(),
|
|
52
|
+
api_min_revision: Type.Integer(),
|
|
53
|
+
api_server_revision: Type.Integer(),
|
|
54
|
+
host_id: idSchema2(),
|
|
55
|
+
client_id: idSchema2(),
|
|
56
|
+
limits: Type.Object({ backlogBytes: Type.Integer(), maxFrameBytes: Type.Integer() })
|
|
57
|
+
});
|
|
58
|
+
var CallFrameType2 = Type.Object({
|
|
59
|
+
c: Type.Literal("e"),
|
|
60
|
+
type: Type.Literal("call"),
|
|
61
|
+
id: Type.String({ minLength: 1 }),
|
|
62
|
+
op: Type.String(),
|
|
63
|
+
input: Type.Optional(JsonType2)
|
|
64
|
+
});
|
|
65
|
+
var ResultFrameType2 = Type.Object({
|
|
66
|
+
c: Type.Literal("e"),
|
|
67
|
+
type: Type.Literal("result"),
|
|
68
|
+
id: Type.String(),
|
|
69
|
+
output: JsonType2
|
|
70
|
+
});
|
|
71
|
+
var ErrorFrameType2 = Type.Object({
|
|
72
|
+
c: Type.Literal("e"),
|
|
73
|
+
type: Type.Literal("error"),
|
|
74
|
+
id: Type.String(),
|
|
75
|
+
error: SdkErrorWireType2
|
|
76
|
+
});
|
|
77
|
+
var EventFrameType2 = Type.Object({
|
|
78
|
+
c: Type.Literal("e"),
|
|
79
|
+
type: Type.Literal("event"),
|
|
80
|
+
scope: Type.String(),
|
|
81
|
+
seq: Type.Union([Type.Integer({ minimum: 0 }), Type.Null()]),
|
|
82
|
+
kind: Type.String()
|
|
83
|
+
});
|
|
84
|
+
var PerformEventType2 = Type.Object({
|
|
85
|
+
scope: Type.String(),
|
|
86
|
+
seq: Type.Integer({ minimum: 1 }),
|
|
87
|
+
kind: Type.Literal("perform"),
|
|
88
|
+
call: Type.String(),
|
|
89
|
+
requester: Type.Object({ client: idSchema2(), principal: idSchema2() }),
|
|
90
|
+
action: Type.String(),
|
|
91
|
+
input: JsonType2
|
|
92
|
+
});
|
|
93
|
+
var TextFrameType2 = Type.Union([
|
|
94
|
+
Type.Object({
|
|
95
|
+
c: Type.Literal("t"),
|
|
96
|
+
part: idSchema2(),
|
|
97
|
+
run: Type.Union([idSchema2(), Type.Null()]),
|
|
98
|
+
version: Type.Number(),
|
|
99
|
+
text: Type.String()
|
|
100
|
+
}),
|
|
101
|
+
Type.Object({
|
|
102
|
+
c: Type.Literal("t"),
|
|
103
|
+
part: idSchema2(),
|
|
104
|
+
run: Type.Union([idSchema2(), Type.Null()]),
|
|
105
|
+
version: Type.Number(),
|
|
106
|
+
append: Type.String()
|
|
107
|
+
}),
|
|
108
|
+
Type.Object({
|
|
109
|
+
c: Type.Literal("t"),
|
|
110
|
+
part: idSchema2(),
|
|
111
|
+
run: Type.Union([idSchema2(), Type.Null()]),
|
|
112
|
+
progress: ToolProgressType2
|
|
113
|
+
}),
|
|
114
|
+
Type.Object({ c: Type.Literal("t"), type: Type.Literal("closed") })
|
|
115
|
+
]);
|
|
116
|
+
var HostFrameType2 = Type.Union([
|
|
117
|
+
WelcomeFrameType2,
|
|
118
|
+
ResultFrameType2,
|
|
119
|
+
ErrorFrameType2,
|
|
120
|
+
EventFrameType2,
|
|
121
|
+
TextFrameType2
|
|
122
|
+
]);
|
|
123
|
+
|
|
124
|
+
export { SOCKET_PATH2, TICKET_PATH2, HELLO_MAX_BYTES2, SOCKET_LIMITS2, ClientKindType2, ActionDeclarationType2, ClientInfoType2, ClientRowType2, HelloFrameType2, WelcomeFrameType2, CallFrameType2, ResultFrameType2, ErrorFrameType2, EventFrameType2, PerformEventType2, TextFrameType2, HostFrameType2 };
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./browser-4et7qtz3.js";
|
|
10
10
|
import {
|
|
11
11
|
FailureType2
|
|
12
|
-
} from "./browser-
|
|
12
|
+
} from "./browser-sj6zjph8.js";
|
|
13
13
|
import {
|
|
14
14
|
JobEndType2
|
|
15
15
|
} from "./browser-snb9f77r.js";
|
|
@@ -31,7 +31,10 @@ var RunViewType2 = Type.Object({
|
|
|
31
31
|
attempt: Type.Number(),
|
|
32
32
|
origin: Type.Union([
|
|
33
33
|
Type.Object({ kind: Type.Literal("input"), message: idSchema2() }),
|
|
34
|
-
Type.Object({
|
|
34
|
+
Type.Object({
|
|
35
|
+
kind: Type.Literal("continuation"),
|
|
36
|
+
from: Type.Enum(["child", "job", "answer", "wake"])
|
|
37
|
+
})
|
|
35
38
|
])
|
|
36
39
|
});
|
|
37
40
|
var RunEndType2 = Type.Union([
|