@nyte-ai/schema 0.0.0-stage → 0.0.18

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.
Files changed (148) hide show
  1. package/LICENSE +21 -0
  2. package/THIRD-PARTY-NOTICES.md +800 -0
  3. package/dist/chunks/browser-0byq2fja.js +50 -0
  4. package/dist/chunks/browser-0ebnhqs2.js +36 -0
  5. package/dist/chunks/browser-0g0z3617.js +47 -0
  6. package/dist/chunks/browser-0khex2b1.js +33 -0
  7. package/dist/chunks/browser-1sfp0bcx.js +73 -0
  8. package/dist/chunks/browser-40enyw9r.js +75 -0
  9. package/dist/chunks/browser-48g24pes.js +106 -0
  10. package/dist/chunks/browser-4et7qtz3.js +7 -0
  11. package/dist/chunks/browser-5n1dh580.js +66 -0
  12. package/dist/chunks/browser-5pvw8svn.js +243 -0
  13. package/dist/chunks/browser-6e1madxa.js +83 -0
  14. package/dist/chunks/browser-6yby604e.js +96 -0
  15. package/dist/chunks/browser-7195qf3t.js +14 -0
  16. package/dist/chunks/browser-7gjnxy9m.js +172 -0
  17. package/dist/chunks/browser-8t9anqfc.js +113 -0
  18. package/dist/chunks/browser-9ystjh78.js +0 -0
  19. package/dist/chunks/browser-ad9yebg7.js +101 -0
  20. package/dist/chunks/browser-b519jtez.js +102 -0
  21. package/dist/chunks/browser-bg1esaw0.js +82 -0
  22. package/dist/chunks/browser-bxz3z1v6.js +181 -0
  23. package/dist/chunks/browser-e5xgzd28.js +82 -0
  24. package/dist/chunks/browser-ebr6k189.js +120 -0
  25. package/dist/chunks/browser-ekbecx9r.js +73 -0
  26. package/dist/chunks/browser-fd3accdr.js +159 -0
  27. package/dist/chunks/browser-fth801bw.js +50 -0
  28. package/dist/chunks/browser-g5khdcap.js +170 -0
  29. package/dist/chunks/browser-gchr2880.js +135 -0
  30. package/dist/chunks/browser-h86zs54a.js +65 -0
  31. package/dist/chunks/browser-hq5q56sf.js +79 -0
  32. package/dist/chunks/browser-j629a6wa.js +17 -0
  33. package/dist/chunks/browser-k20f6cvv.js +0 -0
  34. package/dist/chunks/browser-m0wzr0g8.js +5 -0
  35. package/dist/chunks/browser-mnejgne0.js +125 -0
  36. package/dist/chunks/browser-mzfc0v5j.js +58 -0
  37. package/dist/chunks/browser-pdv675va.js +135 -0
  38. package/dist/chunks/browser-pdx38ng3.js +301 -0
  39. package/dist/chunks/browser-qkxe0fwp.js +6 -0
  40. package/dist/chunks/browser-r00v3vwv.js +238 -0
  41. package/dist/chunks/browser-r87w64mz.js +32 -0
  42. package/dist/chunks/browser-s7907azt.js +118 -0
  43. package/dist/chunks/browser-sgwxbek9.js +37 -0
  44. package/dist/chunks/browser-v70eq512.js +215 -0
  45. package/dist/chunks/browser-vapnjwp3.js +35 -0
  46. package/dist/chunks/browser-vkh2tpmf.js +283 -0
  47. package/dist/chunks/browser-vzc3r2r3.js +64 -0
  48. package/dist/chunks/browser-ypez6s7v.js +52 -0
  49. package/dist/src/browser.d.ts +64 -0
  50. package/dist/src/browser.js +26 -0
  51. package/dist/src/configuration.d.ts +26 -0
  52. package/dist/src/configuration.js +17 -0
  53. package/dist/src/connection.d.ts +189 -0
  54. package/dist/src/connection.js +35 -0
  55. package/dist/src/declaration.d.ts +12 -0
  56. package/dist/src/declaration.js +1 -0
  57. package/dist/src/errors.d.ts +56 -0
  58. package/dist/src/errors.js +23 -0
  59. package/dist/src/events.d.ts +1750 -0
  60. package/dist/src/events.js +36 -0
  61. package/dist/src/files.d.ts +130 -0
  62. package/dist/src/files.js +49 -0
  63. package/dist/src/git.d.ts +271 -0
  64. package/dist/src/git.js +64 -0
  65. package/dist/src/github.d.ts +174 -0
  66. package/dist/src/github.js +31 -0
  67. package/dist/src/heads.d.ts +255 -0
  68. package/dist/src/heads.js +48 -0
  69. package/dist/src/hooks.d.ts +201 -0
  70. package/dist/src/hooks.js +28 -0
  71. package/dist/src/host.d.ts +137 -0
  72. package/dist/src/host.js +49 -0
  73. package/dist/src/ids.d.ts +66 -0
  74. package/dist/src/ids.js +67 -0
  75. package/dist/src/index.d.ts +30 -0
  76. package/dist/src/index.js +779 -0
  77. package/dist/src/jobs.d.ts +152 -0
  78. package/dist/src/jobs.js +34 -0
  79. package/dist/src/json.d.ts +24 -0
  80. package/dist/src/json.js +21 -0
  81. package/dist/src/mcp.d.ts +212 -0
  82. package/dist/src/mcp.js +34 -0
  83. package/dist/src/messages.d.ts +114 -0
  84. package/dist/src/messages.js +28 -0
  85. package/dist/src/model/index.d.ts +6 -0
  86. package/dist/src/model/index.js +61 -0
  87. package/dist/src/model/message.d.ts +178 -0
  88. package/dist/src/model/message.js +7 -0
  89. package/dist/src/model/model.d.ts +154 -0
  90. package/dist/src/model/model.js +11 -0
  91. package/dist/src/model/text.d.ts +6 -0
  92. package/dist/src/model/text.js +10 -0
  93. package/dist/src/model/tool.d.ts +36 -0
  94. package/dist/src/model/tool.js +1 -0
  95. package/dist/src/model/transcript.d.ts +34 -0
  96. package/dist/src/model/transcript.js +37 -0
  97. package/dist/src/model/typed.d.ts +6 -0
  98. package/dist/src/model/typed.js +8 -0
  99. package/dist/src/models.d.ts +195 -0
  100. package/dist/src/models.js +45 -0
  101. package/dist/src/parts.d.ts +364 -0
  102. package/dist/src/parts.js +35 -0
  103. package/dist/src/patch.d.ts +21 -0
  104. package/dist/src/patch.js +11 -0
  105. package/dist/src/plugins.d.ts +36 -0
  106. package/dist/src/plugins.js +9 -0
  107. package/dist/src/primitives.d.ts +83 -0
  108. package/dist/src/primitives.js +26 -0
  109. package/dist/src/runs.d.ts +433 -0
  110. package/dist/src/runs.js +39 -0
  111. package/dist/src/schema.d.ts +14 -0
  112. package/dist/src/schema.js +8 -0
  113. package/dist/src/serial.d.ts +18 -0
  114. package/dist/src/serial.js +39 -0
  115. package/dist/src/sessions.d.ts +578 -0
  116. package/dist/src/sessions.js +74 -0
  117. package/dist/src/store.d.ts +831 -0
  118. package/dist/src/store.js +33 -0
  119. package/dist/src/tools.d.ts +76 -0
  120. package/dist/src/tools.js +24 -0
  121. package/dist/src/views.d.ts +2737 -0
  122. package/dist/src/views.js +50 -0
  123. package/dist/src/wire/base64.d.ts +2 -0
  124. package/dist/src/wire/base64.js +6 -0
  125. package/dist/src/wire/nullable.d.ts +2 -0
  126. package/dist/src/wire/nullable.js +6 -0
  127. package/dist/src/wire/operations/browser.d.ts +535 -0
  128. package/dist/src/wire/operations/browser.js +12 -0
  129. package/dist/src/wire/operations/fields.d.ts +54 -0
  130. package/dist/src/wire/operations/fields.js +30 -0
  131. package/dist/src/wire/operations/files.d.ts +244 -0
  132. package/dist/src/wire/operations/files.js +13 -0
  133. package/dist/src/wire/operations/git.d.ts +513 -0
  134. package/dist/src/wire/operations/git.js +15 -0
  135. package/dist/src/wire/operations/github.d.ts +172 -0
  136. package/dist/src/wire/operations/github.js +12 -0
  137. package/dist/src/wire/operations/host.d.ts +1011 -0
  138. package/dist/src/wire/operations/host.js +27 -0
  139. package/dist/src/wire/operations/index.d.ts +6703 -0
  140. package/dist/src/wire/operations/index.js +40 -0
  141. package/dist/src/wire/operations/session.d.ts +3411 -0
  142. package/dist/src/wire/operations/session.js +25 -0
  143. package/dist/src/wire/operations/workspace.d.ts +830 -0
  144. package/dist/src/wire/operations/workspace.js +24 -0
  145. package/dist/src/workspaces.d.ts +119 -0
  146. package/dist/src/workspaces.js +38 -0
  147. package/package.json +51 -3
  148. package/README.md +0 -3
@@ -0,0 +1,201 @@
1
+ import { Type } from "typebox";
2
+ import type { Message as ModelMessage } from "./model/message.ts";
3
+ import type { ModelRef, Usage } from "./models.ts";
4
+ import type { Json } from "./json.ts";
5
+ import type { Decoded, Schema } from "./schema.ts";
6
+ import type { ToolInfo } from "./sessions.ts";
7
+ export declare const SubmissionType: Type.TObject<{
8
+ content: Type.TUnion<[Type.TString, Type.TArray<Type.TUnion<[Type.TObject<{
9
+ kind: Type.TLiteral<"text">;
10
+ text: Type.TString;
11
+ }>, Type.TObject<{
12
+ kind: Type.TLiteral<"file">;
13
+ blob: Type.TUnsafe<import("./ids.ts").Id<"blob">>;
14
+ mime: Type.TString;
15
+ name: Type.TString;
16
+ }>, Type.TObject<{
17
+ kind: Type.TLiteral<"reference">;
18
+ path: Type.TString;
19
+ blob: Type.TOptional<Type.TUnsafe<import("./ids.ts").Id<"blob">>>;
20
+ }>, Type.TObject<{
21
+ kind: Type.TLiteral<"skill">;
22
+ name: Type.TString;
23
+ location: Type.TString;
24
+ }>, Type.TObject<{
25
+ kind: Type.TLiteral<"excerpt">;
26
+ source: Type.TUnion<[Type.TObject<{
27
+ kind: Type.TLiteral<"diff">;
28
+ path: Type.TString;
29
+ side: Type.TEnum<["old", "new"]>;
30
+ start: Type.TNumber;
31
+ end: Type.TNumber;
32
+ }>, Type.TObject<{
33
+ kind: Type.TLiteral<"terminal">;
34
+ command: Type.TOptional<Type.TString>;
35
+ }>, Type.TObject<{
36
+ kind: Type.TLiteral<"browser">;
37
+ url: Type.TString;
38
+ selector: Type.TString;
39
+ }>]>;
40
+ text: Type.TString;
41
+ }>]>>]>;
42
+ source: Type.TUnion<[Type.TObject<{
43
+ kind: Type.TLiteral<"user">;
44
+ }>, Type.TObject<{
45
+ kind: Type.TLiteral<"child">;
46
+ session: Type.TUnsafe<import("./ids.ts").Id<"session">>;
47
+ end: Type.TEnum<["completed", "stopped", "failed"]>;
48
+ }>, Type.TObject<{
49
+ kind: Type.TLiteral<"job">;
50
+ job: Type.TUnsafe<import("./ids.ts").Id<"job">>;
51
+ }>, Type.TObject<{
52
+ kind: Type.TLiteral<"shell">;
53
+ }>, Type.TObject<{
54
+ kind: Type.TLiteral<"action">;
55
+ label: Type.TString;
56
+ command: Type.TOptional<Type.TString>;
57
+ }>]>;
58
+ delivery: Type.TEnum<["steer", "queue", "attach"]>;
59
+ configuration: Type.TUnion<[Type.TUnion<[Type.TObject<{
60
+ kind: Type.TLiteral<"exact">;
61
+ model: Type.TObject<{
62
+ provider: Type.TString;
63
+ id: Type.TString;
64
+ }>;
65
+ thinking: Type.TEnum<["off", "minimal", "low", "medium", "high", "xhigh", "max"]>;
66
+ agent: Type.TUnion<[Type.TString, Type.TNull]>;
67
+ settings: Type.TRecord<"^.*$", Type.TUnsafe<Json>>;
68
+ settingsVersion: Type.TString;
69
+ }>, Type.TObject<{
70
+ model: Type.TOptional<Type.TObject<{
71
+ provider: Type.TString;
72
+ id: Type.TString;
73
+ }>>;
74
+ thinking: Type.TOptional<Type.TUnion<[Type.TEnum<["off", "minimal", "low", "medium", "high", "xhigh", "max"]>, Type.TNull]>>;
75
+ agent: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
76
+ settings: Type.TOptional<Type.TRecord<"^.*$", Type.TUnsafe<Json>>>;
77
+ }>]>, Type.TNull]>;
78
+ replace: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"message">>, Type.TNull]>;
79
+ }>;
80
+ export type Submission = Decoded<typeof SubmissionType>;
81
+ export declare const ModelRequestType: Type.TObject<{
82
+ model: Type.TObject<{
83
+ provider: Type.TString;
84
+ id: Type.TString;
85
+ }>;
86
+ thinking: Type.TEnum<["off", "minimal", "low", "medium", "high", "xhigh", "max"]>;
87
+ step: Type.TEnum<["assistant", "compaction", "summary"]>;
88
+ attempt: Type.TNumber;
89
+ options: Type.TObject<{
90
+ sampling: Type.TRecord<"^.*$", Type.TUnsafe<Json>>;
91
+ headers: Type.TRecord<"^.*$", Type.TString>;
92
+ }>;
93
+ }>;
94
+ export type ModelRequest = Decoded<typeof ModelRequestType>;
95
+ export declare const ToolCallType: Type.TObject<{
96
+ call: Type.TUnsafe<import("./ids.ts").Id<"call">>;
97
+ name: Type.TString;
98
+ args: Type.TUnsafe<Json>;
99
+ class: Type.TUnion<[Type.TObject<{
100
+ kind: Type.TLiteral<"read">;
101
+ path: Type.TString;
102
+ }>, Type.TObject<{
103
+ kind: Type.TLiteral<"list">;
104
+ path: Type.TString;
105
+ }>, Type.TObject<{
106
+ kind: Type.TLiteral<"edit">;
107
+ path: Type.TString;
108
+ }>, Type.TObject<{
109
+ kind: Type.TLiteral<"shell">;
110
+ command: Type.TString;
111
+ description: Type.TOptional<Type.TString>;
112
+ }>, Type.TObject<{
113
+ kind: Type.TLiteral<"delegate">;
114
+ child: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"session">>, Type.TNull]>;
115
+ role: Type.TEnum<["task", "create", "send", "await", "read", "stop"]>;
116
+ title: Type.TUnion<[Type.TString, Type.TNull]>;
117
+ }>, Type.TObject<{
118
+ kind: Type.TLiteral<"custom">;
119
+ label: Type.TString;
120
+ }>]>;
121
+ }>;
122
+ export type ToolCall = Decoded<typeof ToolCallType>;
123
+ export declare const SubmitDraftType: Type.TObject<{
124
+ content: Type.TUnion<[Type.TString, Type.TArray<Type.TUnion<[Type.TObject<{
125
+ kind: Type.TLiteral<"text">;
126
+ text: Type.TString;
127
+ }>, Type.TObject<{
128
+ kind: Type.TLiteral<"file">;
129
+ blob: Type.TUnsafe<import("./ids.ts").Id<"blob">>;
130
+ mime: Type.TString;
131
+ name: Type.TString;
132
+ }>, Type.TObject<{
133
+ kind: Type.TLiteral<"reference">;
134
+ path: Type.TString;
135
+ blob: Type.TOptional<Type.TUnsafe<import("./ids.ts").Id<"blob">>>;
136
+ }>, Type.TObject<{
137
+ kind: Type.TLiteral<"skill">;
138
+ name: Type.TString;
139
+ location: Type.TString;
140
+ }>, Type.TObject<{
141
+ kind: Type.TLiteral<"excerpt">;
142
+ source: Type.TUnion<[Type.TObject<{
143
+ kind: Type.TLiteral<"diff">;
144
+ path: Type.TString;
145
+ side: Type.TEnum<["old", "new"]>;
146
+ start: Type.TNumber;
147
+ end: Type.TNumber;
148
+ }>, Type.TObject<{
149
+ kind: Type.TLiteral<"terminal">;
150
+ command: Type.TOptional<Type.TString>;
151
+ }>, Type.TObject<{
152
+ kind: Type.TLiteral<"browser">;
153
+ url: Type.TString;
154
+ selector: Type.TString;
155
+ }>]>;
156
+ text: Type.TString;
157
+ }>]>>]>;
158
+ delivery: Type.TEnum<["steer", "queue", "attach"]>;
159
+ session: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"session">>, Type.TNull]>;
160
+ }>;
161
+ /** A client's draft before it is sent; `session` is null for a draft that starts a chat. */
162
+ export type SubmitDraft = Decoded<typeof SubmitDraftType>;
163
+ export declare const SubmissionSchema: Schema<Submission>;
164
+ export declare const ModelRequestSchema: Schema<ModelRequest>;
165
+ export declare const ToolCallSchema: Schema<ToolCall>;
166
+ export declare const SubmitDraftSchema: Schema<SubmitDraft>;
167
+ export type Transcript = {
168
+ readonly messages: readonly ModelMessage[];
169
+ readonly tools: readonly ToolInfo[];
170
+ };
171
+ export type CompactionPlan = {
172
+ readonly model: ModelRef;
173
+ readonly reason: "manual" | "threshold" | "overflow";
174
+ readonly instructions: string | null;
175
+ readonly tokensBefore: number;
176
+ readonly summarise: readonly ModelMessage[];
177
+ readonly keep: readonly ModelMessage[];
178
+ readonly result: {
179
+ readonly kind: "summary";
180
+ readonly text: string;
181
+ } | {
182
+ readonly kind: "material";
183
+ readonly provider: string;
184
+ readonly api: string;
185
+ readonly model: string;
186
+ readonly data: Json;
187
+ readonly usage: Usage | null;
188
+ } | null;
189
+ };
190
+ export type Decision<Value> = {
191
+ readonly action: "continue";
192
+ } | {
193
+ readonly action: "modify";
194
+ readonly value: Value;
195
+ } | {
196
+ readonly action: "reject";
197
+ readonly reason: string;
198
+ } | {
199
+ readonly action: "error";
200
+ readonly message: string;
201
+ };
@@ -0,0 +1,28 @@
1
+ import {
2
+ SubmissionType2,
3
+ ModelRequestType2,
4
+ ToolCallType2,
5
+ SubmitDraftType2,
6
+ SubmissionSchema2,
7
+ ModelRequestSchema2,
8
+ ToolCallSchema2,
9
+ SubmitDraftSchema2
10
+ } from "../chunks/browser-5n1dh580.js";
11
+ import"../chunks/browser-h86zs54a.js";
12
+ import"../chunks/browser-hq5q56sf.js";
13
+ import"../chunks/browser-vapnjwp3.js";
14
+ import"../chunks/browser-8t9anqfc.js";
15
+ import"../chunks/browser-sgwxbek9.js";
16
+ import"../chunks/browser-4et7qtz3.js";
17
+ import"../chunks/browser-ypez6s7v.js";
18
+ import"../chunks/browser-vzc3r2r3.js";
19
+ export {
20
+ ModelRequestSchema2 as ModelRequestSchema,
21
+ ModelRequestType2 as ModelRequestType,
22
+ SubmissionSchema2 as SubmissionSchema,
23
+ SubmissionType2 as SubmissionType,
24
+ SubmitDraftSchema2 as SubmitDraftSchema,
25
+ SubmitDraftType2 as SubmitDraftType,
26
+ ToolCallSchema2 as ToolCallSchema,
27
+ ToolCallType2 as ToolCallType
28
+ };
@@ -0,0 +1,137 @@
1
+ import { Type } from "typebox";
2
+ import type { Decoded, Schema } from "./schema.ts";
3
+ export declare const AuthorityType: Type.TEnum<["participant", "owner", "maintenance"]>;
4
+ export type Authority = Decoded<typeof AuthorityType>;
5
+ export declare const ExecutionCoverageType: Type.TUnion<[Type.TObject<{
6
+ kind: Type.TLiteral<"all">;
7
+ }>, Type.TObject<{
8
+ kind: Type.TLiteral<"workspace">;
9
+ workspace: Type.TUnsafe<import("./ids.ts").Id<"workspace">>;
10
+ }>, Type.TObject<{
11
+ kind: Type.TLiteral<"sessions">;
12
+ sessions: Type.TArray<Type.TUnsafe<import("./ids.ts").Id<"session">>>;
13
+ }>]>;
14
+ export type ExecutionCoverage = Decoded<typeof ExecutionCoverageType>;
15
+ export declare const AdvanceReportType: Type.TUnion<[Type.TObject<{
16
+ kind: Type.TLiteral<"continue">;
17
+ }>, Type.TObject<{
18
+ kind: Type.TLiteral<"idle">;
19
+ }>, Type.TObject<{
20
+ kind: Type.TLiteral<"waiting">;
21
+ until: Type.TUnion<[Type.TNumber, Type.TNull]>;
22
+ }>, Type.TObject<{
23
+ kind: Type.TLiteral<"retry">;
24
+ until: Type.TNumber;
25
+ }>, Type.TObject<{
26
+ kind: Type.TLiteral<"busy">;
27
+ until: Type.TNumber;
28
+ }>, Type.TObject<{
29
+ kind: Type.TLiteral<"fenced">;
30
+ }>]>;
31
+ export type AdvanceReport = Decoded<typeof AdvanceReportType>;
32
+ export declare const RepairPageType: Type.TObject<{
33
+ runnable: Type.TArray<Type.TObject<{
34
+ session: Type.TUnsafe<import("./ids.ts").Id<"session">>;
35
+ head: Type.TUnsafe<import("./ids.ts").Id<"head">>;
36
+ }>>;
37
+ next: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"cursor">>, Type.TNull]>;
38
+ }>;
39
+ export type RepairPage = Decoded<typeof RepairPageType>;
40
+ export declare const PrincipalViewWireType: Type.TObject<{
41
+ id: Type.TUnsafe<import("./ids.ts").Id<"principal">>;
42
+ label: Type.TString;
43
+ authority: Type.TArray<Type.TEnum<["participant", "owner", "maintenance"]>>;
44
+ pairedAt: Type.TNumber;
45
+ }>;
46
+ export type PrincipalViewWire = Decoded<typeof PrincipalViewWireType>;
47
+ export declare const PluginLoadOutcomeType: Type.TObject<{
48
+ kind: Type.TEnum<["activated", "rejected", "kept-previous"]>;
49
+ id: Type.TString;
50
+ issues: Type.TArray<Type.TObject<{
51
+ severity: Type.TEnum<["error", "warning"]>;
52
+ path: Type.TArray<Type.TUnion<[Type.TString, Type.TNumber]>>;
53
+ message: Type.TString;
54
+ source: Type.TOptional<Type.TObject<{
55
+ plugin: Type.TString;
56
+ file: Type.TOptional<Type.TString>;
57
+ line: Type.TOptional<Type.TNumber>;
58
+ }>>;
59
+ }>>;
60
+ }>;
61
+ export type PluginLoadOutcome = Decoded<typeof PluginLoadOutcomeType>;
62
+ export declare const PluginCheckReportType: Type.TObject<{
63
+ plugins: Type.TArray<Type.TObject<{
64
+ kind: Type.TEnum<["activated", "rejected", "kept-previous"]>;
65
+ id: Type.TString;
66
+ issues: Type.TArray<Type.TObject<{
67
+ severity: Type.TEnum<["error", "warning"]>;
68
+ path: Type.TArray<Type.TUnion<[Type.TString, Type.TNumber]>>;
69
+ message: Type.TString;
70
+ source: Type.TOptional<Type.TObject<{
71
+ plugin: Type.TString;
72
+ file: Type.TOptional<Type.TString>;
73
+ line: Type.TOptional<Type.TNumber>;
74
+ }>>;
75
+ }>>;
76
+ }>>;
77
+ collisions: Type.TArray<Type.TObject<{
78
+ severity: Type.TEnum<["error", "warning"]>;
79
+ path: Type.TArray<Type.TUnion<[Type.TString, Type.TNumber]>>;
80
+ message: Type.TString;
81
+ source: Type.TOptional<Type.TObject<{
82
+ plugin: Type.TString;
83
+ file: Type.TOptional<Type.TString>;
84
+ line: Type.TOptional<Type.TNumber>;
85
+ }>>;
86
+ }>>;
87
+ }>;
88
+ export type PluginCheckReport = Decoded<typeof PluginCheckReportType>;
89
+ export declare const PluginReplacementReportType: Type.TObject<{
90
+ generation: Type.TUnsafe<import("./ids.ts").Id<"catalog-generation">>;
91
+ plugins: Type.TArray<Type.TObject<{
92
+ kind: Type.TEnum<["activated", "rejected", "kept-previous"]>;
93
+ id: Type.TString;
94
+ issues: Type.TArray<Type.TObject<{
95
+ severity: Type.TEnum<["error", "warning"]>;
96
+ path: Type.TArray<Type.TUnion<[Type.TString, Type.TNumber]>>;
97
+ message: Type.TString;
98
+ source: Type.TOptional<Type.TObject<{
99
+ plugin: Type.TString;
100
+ file: Type.TOptional<Type.TString>;
101
+ line: Type.TOptional<Type.TNumber>;
102
+ }>>;
103
+ }>>;
104
+ }>>;
105
+ }>;
106
+ export type PluginReplacementReport = Decoded<typeof PluginReplacementReportType>;
107
+ export declare const DecodedObjectViewType: Type.TObject<{
108
+ id: Type.TUnsafe<import("./ids.ts").Id<"object">>;
109
+ kind: Type.TString;
110
+ parent: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"commit">>, Type.TNull]>;
111
+ body: Type.TUnsafe<import("./json.ts").Json>;
112
+ at: Type.TNumber;
113
+ }>;
114
+ export type DecodedObjectView = Decoded<typeof DecodedObjectViewType>;
115
+ export declare const IntegrityReportType: Type.TObject<{
116
+ ok: Type.TBoolean;
117
+ issues: Type.TArray<Type.TObject<{
118
+ ref: Type.TUnion<[Type.TString, Type.TNull]>;
119
+ object: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"commit">>, Type.TNull]>;
120
+ message: Type.TString;
121
+ }>>;
122
+ }>;
123
+ export type IntegrityReport = Decoded<typeof IntegrityReportType>;
124
+ export declare const AuthoritySchema: Schema<Authority>;
125
+ export declare const ExecutionCoverageSchema: Schema<ExecutionCoverage>;
126
+ export declare const AdvanceReportSchema: Schema<AdvanceReport>;
127
+ export declare const RepairPageSchema: Schema<RepairPage>;
128
+ export declare const PrincipalViewWireSchema: Schema<PrincipalViewWire>;
129
+ export declare const PluginLoadOutcomeSchema: Schema<PluginLoadOutcome>;
130
+ export declare const PluginCheckReportSchema: Schema<PluginCheckReport>;
131
+ export declare const PluginReplacementReportSchema: Schema<PluginReplacementReport>;
132
+ export declare const DecodedObjectViewSchema: Schema<DecodedObjectView>;
133
+ export declare const IntegrityReportSchema: Schema<IntegrityReport>;
134
+ /** A paired principal as the client holds it: the wire view with its authority as a set. */
135
+ export type PrincipalView = Omit<PrincipalViewWire, "authority"> & {
136
+ readonly authority: ReadonlySet<Authority>;
137
+ };
@@ -0,0 +1,49 @@
1
+ import {
2
+ AuthorityType2,
3
+ ExecutionCoverageType2,
4
+ AdvanceReportType2,
5
+ RepairPageType2,
6
+ PrincipalViewWireType2,
7
+ PluginLoadOutcomeType2,
8
+ PluginCheckReportType2,
9
+ PluginReplacementReportType2,
10
+ DecodedObjectViewType2,
11
+ IntegrityReportType2,
12
+ AuthoritySchema2,
13
+ ExecutionCoverageSchema2,
14
+ AdvanceReportSchema2,
15
+ RepairPageSchema2,
16
+ PrincipalViewWireSchema2,
17
+ PluginLoadOutcomeSchema2,
18
+ PluginCheckReportSchema2,
19
+ PluginReplacementReportSchema2,
20
+ DecodedObjectViewSchema2,
21
+ IntegrityReportSchema2
22
+ } from "../chunks/browser-6e1madxa.js";
23
+ import"../chunks/browser-sgwxbek9.js";
24
+ import"../chunks/browser-1sfp0bcx.js";
25
+ import"../chunks/browser-4et7qtz3.js";
26
+ import"../chunks/browser-ypez6s7v.js";
27
+ import"../chunks/browser-vzc3r2r3.js";
28
+ export {
29
+ AdvanceReportSchema2 as AdvanceReportSchema,
30
+ AdvanceReportType2 as AdvanceReportType,
31
+ AuthoritySchema2 as AuthoritySchema,
32
+ AuthorityType2 as AuthorityType,
33
+ DecodedObjectViewSchema2 as DecodedObjectViewSchema,
34
+ DecodedObjectViewType2 as DecodedObjectViewType,
35
+ ExecutionCoverageSchema2 as ExecutionCoverageSchema,
36
+ ExecutionCoverageType2 as ExecutionCoverageType,
37
+ IntegrityReportSchema2 as IntegrityReportSchema,
38
+ IntegrityReportType2 as IntegrityReportType,
39
+ PluginCheckReportSchema2 as PluginCheckReportSchema,
40
+ PluginCheckReportType2 as PluginCheckReportType,
41
+ PluginLoadOutcomeSchema2 as PluginLoadOutcomeSchema,
42
+ PluginLoadOutcomeType2 as PluginLoadOutcomeType,
43
+ PluginReplacementReportSchema2 as PluginReplacementReportSchema,
44
+ PluginReplacementReportType2 as PluginReplacementReportType,
45
+ PrincipalViewWireSchema2 as PrincipalViewWireSchema,
46
+ PrincipalViewWireType2 as PrincipalViewWireType,
47
+ RepairPageSchema2 as RepairPageSchema,
48
+ RepairPageType2 as RepairPageType
49
+ };
@@ -0,0 +1,66 @@
1
+ import { Type } from "typebox";
2
+ import type { TUnsafe } from "typebox";
3
+ import type { Schema } from "./schema.ts";
4
+ export type Id<Name extends string> = string & {
5
+ readonly __brand: Name;
6
+ };
7
+ export type SessionId = Id<"session">;
8
+ export type HeadName = Id<"head">;
9
+ export type RunId = Id<"run">;
10
+ export type CallId = Id<"call">;
11
+ export type MessageId = Id<"message">;
12
+ export type TurnId = Id<"turn">;
13
+ export type CommitId = Id<"commit">;
14
+ export type ObjectId = Id<"object">;
15
+ export type BlobId = Id<"blob">;
16
+ export type PartId = Id<"part">;
17
+ export type ReceiptId = Id<"receipt">;
18
+ export type JobId = Id<"job">;
19
+ export type JobKey = Id<"job-key">;
20
+ export type WorkspaceId = Id<"workspace">;
21
+ export type PageId = Id<"page">;
22
+ export type HostId = Id<"host">;
23
+ export type PrincipalId = Id<"principal">;
24
+ export type SnapshotId = Id<"snapshot">;
25
+ export type GitCommitId = Id<"git-commit">;
26
+ export type GitRevision = Id<"git-revision">;
27
+ export type FileVersion = Id<"file-version">;
28
+ export type DocumentRevision = Id<"document-revision">;
29
+ export type Revision = Id<"revision">;
30
+ export type CatalogGeneration = Id<"catalog-generation">;
31
+ export type Cursor = Id<"cursor">;
32
+ export type Seq = number & {
33
+ readonly __brand: "seq";
34
+ };
35
+ export type EnvironmentIdentity = Id<"environment-identity">;
36
+ export declare function asId<Name extends string>(value: string): Id<Name>;
37
+ export declare function asSeq(value: number): Seq;
38
+ export declare function idSchema<Name extends string>(): TUnsafe<Id<Name>>;
39
+ export declare const SeqType: Type.TUnsafe<Seq>;
40
+ export declare const SessionIdSchema: Schema<SessionId>;
41
+ export declare const HeadNameSchema: Schema<HeadName>;
42
+ export declare const RunIdSchema: Schema<RunId>;
43
+ export declare const CallIdSchema: Schema<CallId>;
44
+ export declare const MessageIdSchema: Schema<MessageId>;
45
+ export declare const TurnIdSchema: Schema<TurnId>;
46
+ export declare const CommitIdSchema: Schema<CommitId>;
47
+ export declare const ObjectIdSchema: Schema<ObjectId>;
48
+ export declare const BlobIdSchema: Schema<BlobId>;
49
+ export declare const PartIdSchema: Schema<PartId>;
50
+ export declare const ReceiptIdSchema: Schema<ReceiptId>;
51
+ export declare const JobIdSchema: Schema<JobId>;
52
+ export declare const JobKeySchema: Schema<JobKey>;
53
+ export declare const WorkspaceIdSchema: Schema<WorkspaceId>;
54
+ export declare const PageIdSchema: Schema<PageId>;
55
+ export declare const HostIdSchema: Schema<HostId>;
56
+ export declare const PrincipalIdSchema: Schema<PrincipalId>;
57
+ export declare const SnapshotIdSchema: Schema<SnapshotId>;
58
+ export declare const GitCommitIdSchema: Schema<GitCommitId>;
59
+ export declare const GitRevisionSchema: Schema<GitRevision>;
60
+ export declare const FileVersionSchema: Schema<FileVersion>;
61
+ export declare const DocumentRevisionSchema: Schema<DocumentRevision>;
62
+ export declare const RevisionSchema: Schema<Revision>;
63
+ export declare const CatalogGenerationSchema: Schema<CatalogGeneration>;
64
+ export declare const CursorSchema: Schema<Cursor>;
65
+ export declare const SeqSchema: Schema<Seq>;
66
+ export declare const EnvironmentIdentitySchema: Schema<EnvironmentIdentity>;
@@ -0,0 +1,67 @@
1
+ import {
2
+ asId2,
3
+ asSeq2,
4
+ idSchema2,
5
+ SeqType2,
6
+ SessionIdSchema2,
7
+ HeadNameSchema2,
8
+ RunIdSchema2,
9
+ CallIdSchema2,
10
+ MessageIdSchema2,
11
+ TurnIdSchema2,
12
+ CommitIdSchema2,
13
+ ObjectIdSchema2,
14
+ BlobIdSchema2,
15
+ PartIdSchema2,
16
+ ReceiptIdSchema2,
17
+ JobIdSchema2,
18
+ JobKeySchema2,
19
+ WorkspaceIdSchema2,
20
+ PageIdSchema2,
21
+ HostIdSchema2,
22
+ PrincipalIdSchema2,
23
+ SnapshotIdSchema2,
24
+ GitCommitIdSchema2,
25
+ GitRevisionSchema2,
26
+ FileVersionSchema2,
27
+ DocumentRevisionSchema2,
28
+ RevisionSchema2,
29
+ CatalogGenerationSchema2,
30
+ CursorSchema2,
31
+ SeqSchema2,
32
+ EnvironmentIdentitySchema2
33
+ } from "../chunks/browser-ypez6s7v.js";
34
+ import"../chunks/browser-vzc3r2r3.js";
35
+ export {
36
+ BlobIdSchema2 as BlobIdSchema,
37
+ CallIdSchema2 as CallIdSchema,
38
+ CatalogGenerationSchema2 as CatalogGenerationSchema,
39
+ CommitIdSchema2 as CommitIdSchema,
40
+ CursorSchema2 as CursorSchema,
41
+ DocumentRevisionSchema2 as DocumentRevisionSchema,
42
+ EnvironmentIdentitySchema2 as EnvironmentIdentitySchema,
43
+ FileVersionSchema2 as FileVersionSchema,
44
+ GitCommitIdSchema2 as GitCommitIdSchema,
45
+ GitRevisionSchema2 as GitRevisionSchema,
46
+ HeadNameSchema2 as HeadNameSchema,
47
+ HostIdSchema2 as HostIdSchema,
48
+ JobIdSchema2 as JobIdSchema,
49
+ JobKeySchema2 as JobKeySchema,
50
+ MessageIdSchema2 as MessageIdSchema,
51
+ ObjectIdSchema2 as ObjectIdSchema,
52
+ PageIdSchema2 as PageIdSchema,
53
+ PartIdSchema2 as PartIdSchema,
54
+ PrincipalIdSchema2 as PrincipalIdSchema,
55
+ ReceiptIdSchema2 as ReceiptIdSchema,
56
+ RevisionSchema2 as RevisionSchema,
57
+ RunIdSchema2 as RunIdSchema,
58
+ SeqSchema2 as SeqSchema,
59
+ SeqType2 as SeqType,
60
+ SessionIdSchema2 as SessionIdSchema,
61
+ SnapshotIdSchema2 as SnapshotIdSchema,
62
+ TurnIdSchema2 as TurnIdSchema,
63
+ WorkspaceIdSchema2 as WorkspaceIdSchema,
64
+ asId2 as asId,
65
+ asSeq2 as asSeq,
66
+ idSchema2 as idSchema
67
+ };
@@ -0,0 +1,30 @@
1
+ export * from "./browser.ts";
2
+ export * from "./configuration.ts";
3
+ export * from "./connection.ts";
4
+ export * from "./declaration.ts";
5
+ export * from "./errors.ts";
6
+ export * from "./events.ts";
7
+ export * from "./files.ts";
8
+ export * from "./git.ts";
9
+ export * from "./github.ts";
10
+ export * from "./heads.ts";
11
+ export * from "./hooks.ts";
12
+ export * from "./host.ts";
13
+ export * from "./ids.ts";
14
+ export * from "./json.ts";
15
+ export * from "./jobs.ts";
16
+ export * from "./mcp.ts";
17
+ export * from "./messages.ts";
18
+ export * from "./models.ts";
19
+ export * from "./parts.ts";
20
+ export * from "./patch.ts";
21
+ export * from "./plugins.ts";
22
+ export * from "./primitives.ts";
23
+ export * from "./runs.ts";
24
+ export * from "./schema.ts";
25
+ export * from "./sessions.ts";
26
+ export * from "./store.ts";
27
+ export * from "./tools.ts";
28
+ export * from "./views.ts";
29
+ export * from "./workspaces.ts";
30
+ export * from "./wire/operations/index.ts";