@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,36 @@
1
+ import {
2
+ CommitBodyType2,
3
+ DurableEventType2,
4
+ SessionEventType2,
5
+ PatchEventType2,
6
+ CommitBodySchema2,
7
+ DurableEventSchema2,
8
+ SessionEventSchema2,
9
+ PatchEventSchema2
10
+ } from "../chunks/browser-r00v3vwv.js";
11
+ import"../chunks/browser-ad9yebg7.js";
12
+ import"../chunks/browser-h86zs54a.js";
13
+ import"../chunks/browser-7gjnxy9m.js";
14
+ import"../chunks/browser-bg1esaw0.js";
15
+ import"../chunks/browser-s7907azt.js";
16
+ import"../chunks/browser-hq5q56sf.js";
17
+ import"../chunks/browser-40enyw9r.js";
18
+ import"../chunks/browser-m0wzr0g8.js";
19
+ import"../chunks/browser-vapnjwp3.js";
20
+ import"../chunks/browser-8t9anqfc.js";
21
+ import"../chunks/browser-sgwxbek9.js";
22
+ import"../chunks/browser-1sfp0bcx.js";
23
+ import"../chunks/browser-ebr6k189.js";
24
+ import"../chunks/browser-4et7qtz3.js";
25
+ import"../chunks/browser-ypez6s7v.js";
26
+ import"../chunks/browser-vzc3r2r3.js";
27
+ export {
28
+ CommitBodySchema2 as CommitBodySchema,
29
+ CommitBodyType2 as CommitBodyType,
30
+ DurableEventSchema2 as DurableEventSchema,
31
+ DurableEventType2 as DurableEventType,
32
+ PatchEventSchema2 as PatchEventSchema,
33
+ PatchEventType2 as PatchEventType,
34
+ SessionEventSchema2 as SessionEventSchema,
35
+ SessionEventType2 as SessionEventType
36
+ };
@@ -0,0 +1,130 @@
1
+ import { Type } from "typebox";
2
+ import type { Decoded, Schema } from "./schema.ts";
3
+ export declare const FileStatusType: Type.TEnum<["added", "modified", "deleted", "renamed", "untracked", "conflicted"]>;
4
+ export type FileStatus = Decoded<typeof FileStatusType>;
5
+ export declare const FileChangeType: Type.TObject<{
6
+ path: Type.TString;
7
+ status: Type.TEnum<["added", "modified", "deleted", "renamed", "untracked", "conflicted"]>;
8
+ added: Type.TNumber;
9
+ removed: Type.TNumber;
10
+ from: Type.TOptional<Type.TString>;
11
+ }>;
12
+ export type FileChange = Decoded<typeof FileChangeType>;
13
+ export declare const FileEntryViewType: Type.TObject<{
14
+ path: Type.TString;
15
+ kind: Type.TEnum<["file", "directory", "symlink"]>;
16
+ size: Type.TUnion<[Type.TNumber, Type.TNull]>;
17
+ version: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"file-version">>, Type.TNull]>;
18
+ }>;
19
+ export type FileEntryView = Decoded<typeof FileEntryViewType>;
20
+ export declare const FileEventType: Type.TObject<{
21
+ path: Type.TString;
22
+ version: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"file-version">>, Type.TNull]>;
23
+ kind: Type.TEnum<["created", "modified", "removed"]>;
24
+ }>;
25
+ export type FileEvent = Decoded<typeof FileEventType>;
26
+ export declare const ScanFrameType: Type.TUnion<[Type.TObject<{
27
+ kind: Type.TLiteral<"entries">;
28
+ entries: Type.TArray<Type.TObject<{
29
+ path: Type.TString;
30
+ kind: Type.TEnum<["file", "directory", "symlink"]>;
31
+ size: Type.TUnion<[Type.TNumber, Type.TNull]>;
32
+ version: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"file-version">>, Type.TNull]>;
33
+ }>>;
34
+ }>, Type.TObject<{
35
+ kind: Type.TLiteral<"complete">;
36
+ }>, Type.TObject<{
37
+ kind: Type.TLiteral<"incomplete">;
38
+ reason: Type.TEnum<["limit", "changed", "permission"]>;
39
+ }>]>;
40
+ export type ScanFrame = Decoded<typeof ScanFrameType>;
41
+ export declare const SearchInputType: Type.TObject<{
42
+ query: Type.TString;
43
+ limit: Type.TOptional<Type.TNumber>;
44
+ caseSensitive: Type.TOptional<Type.TBoolean>;
45
+ wholeWord: Type.TOptional<Type.TBoolean>;
46
+ regex: Type.TOptional<Type.TBoolean>;
47
+ include: Type.TOptional<Type.TArray<Type.TString>>;
48
+ exclude: Type.TOptional<Type.TArray<Type.TString>>;
49
+ drafts: Type.TOptional<Type.TArray<Type.TObject<{
50
+ path: Type.TString;
51
+ contents: Type.TString;
52
+ }>>>;
53
+ }>;
54
+ export type SearchInput = Decoded<typeof SearchInputType>;
55
+ export declare const SearchFrameType: Type.TUnion<[Type.TObject<{
56
+ kind: Type.TLiteral<"match">;
57
+ path: Type.TString;
58
+ line: Type.TNumber;
59
+ column: Type.TNumber;
60
+ length: Type.TNumber;
61
+ text: Type.TString;
62
+ }>, Type.TObject<{
63
+ kind: Type.TLiteral<"complete">;
64
+ }>, Type.TObject<{
65
+ kind: Type.TLiteral<"truncated">;
66
+ limit: Type.TNumber;
67
+ }>]>;
68
+ export type SearchFrame = Decoded<typeof SearchFrameType>;
69
+ export declare const FormatOutcomeType: Type.TUnion<[Type.TObject<{
70
+ kind: Type.TLiteral<"formatted">;
71
+ contents: Type.TString;
72
+ }>, Type.TObject<{
73
+ kind: Type.TLiteral<"unchanged">;
74
+ }>, Type.TObject<{
75
+ kind: Type.TLiteral<"unavailable">;
76
+ reason: Type.TString;
77
+ }>]>;
78
+ export type FormatOutcome = Decoded<typeof FormatOutcomeType>;
79
+ export declare const WriteOutcomeType: Type.TUnion<[Type.TObject<{
80
+ kind: Type.TLiteral<"saved">;
81
+ version: Type.TUnsafe<import("./ids.ts").Id<"file-version">>;
82
+ }>, Type.TObject<{
83
+ kind: Type.TLiteral<"stale">;
84
+ current: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"file-version">>, Type.TNull]>;
85
+ }>, Type.TObject<{
86
+ kind: Type.TLiteral<"missing-parent">;
87
+ }>]>;
88
+ export type WriteOutcome = Decoded<typeof WriteOutcomeType>;
89
+ export declare const BatchOutcomeType: Type.TUnion<[Type.TObject<{
90
+ kind: Type.TLiteral<"applied">;
91
+ snapshot: Type.TUnsafe<import("./ids.ts").Id<"snapshot">>;
92
+ paths: Type.TArray<Type.TString>;
93
+ }>, Type.TObject<{
94
+ kind: Type.TLiteral<"stale">;
95
+ paths: Type.TArray<Type.TString>;
96
+ }>, Type.TObject<{
97
+ kind: Type.TLiteral<"partial">;
98
+ applied: Type.TArray<Type.TString>;
99
+ remaining: Type.TArray<Type.TString>;
100
+ reason: Type.TString;
101
+ }>, Type.TObject<{
102
+ kind: Type.TLiteral<"stopped">;
103
+ applied: Type.TArray<Type.TString>;
104
+ }>]>;
105
+ export type BatchOutcome = Decoded<typeof BatchOutcomeType>;
106
+ export declare const FileDocumentType: Type.TUnion<[Type.TObject<{
107
+ kind: Type.TLiteral<"text">;
108
+ path: Type.TString;
109
+ contents: Type.TString;
110
+ version: Type.TUnsafe<import("./ids.ts").Id<"file-version">>;
111
+ }>, Type.TObject<{
112
+ kind: Type.TEnum<["binary", "large"]>;
113
+ path: Type.TString;
114
+ size: Type.TNumber;
115
+ version: Type.TUnsafe<import("./ids.ts").Id<"file-version">>;
116
+ }>, Type.TObject<{
117
+ kind: Type.TLiteral<"missing">;
118
+ path: Type.TString;
119
+ }>]>;
120
+ export type FileDocument = Decoded<typeof FileDocumentType>;
121
+ export declare const FileStatusSchema: Schema<FileStatus>;
122
+ export declare const FileChangeSchema: Schema<FileChange>;
123
+ export declare const FileEntryViewSchema: Schema<FileEntryView>;
124
+ export declare const FileEventSchema: Schema<FileEvent>;
125
+ export declare const ScanFrameSchema: Schema<ScanFrame>;
126
+ export declare const SearchFrameSchema: Schema<SearchFrame>;
127
+ export declare const FormatOutcomeSchema: Schema<FormatOutcome>;
128
+ export declare const WriteOutcomeSchema: Schema<WriteOutcome>;
129
+ export declare const BatchOutcomeSchema: Schema<BatchOutcome>;
130
+ export declare const FileDocumentSchema: Schema<FileDocument>;
@@ -0,0 +1,49 @@
1
+ import {
2
+ FileStatusType2,
3
+ FileChangeType2,
4
+ FileEntryViewType2,
5
+ FileEventType2,
6
+ ScanFrameType2,
7
+ SearchInputType2,
8
+ SearchFrameType2,
9
+ FormatOutcomeType2,
10
+ WriteOutcomeType2,
11
+ BatchOutcomeType2,
12
+ FileDocumentType2,
13
+ FileStatusSchema2,
14
+ FileChangeSchema2,
15
+ FileEntryViewSchema2,
16
+ FileEventSchema2,
17
+ ScanFrameSchema2,
18
+ SearchFrameSchema2,
19
+ FormatOutcomeSchema2,
20
+ WriteOutcomeSchema2,
21
+ BatchOutcomeSchema2,
22
+ FileDocumentSchema2
23
+ } from "../chunks/browser-ebr6k189.js";
24
+ import"../chunks/browser-4et7qtz3.js";
25
+ import"../chunks/browser-ypez6s7v.js";
26
+ import"../chunks/browser-vzc3r2r3.js";
27
+ export {
28
+ BatchOutcomeSchema2 as BatchOutcomeSchema,
29
+ BatchOutcomeType2 as BatchOutcomeType,
30
+ FileChangeSchema2 as FileChangeSchema,
31
+ FileChangeType2 as FileChangeType,
32
+ FileDocumentSchema2 as FileDocumentSchema,
33
+ FileDocumentType2 as FileDocumentType,
34
+ FileEntryViewSchema2 as FileEntryViewSchema,
35
+ FileEntryViewType2 as FileEntryViewType,
36
+ FileEventSchema2 as FileEventSchema,
37
+ FileEventType2 as FileEventType,
38
+ FileStatusSchema2 as FileStatusSchema,
39
+ FileStatusType2 as FileStatusType,
40
+ FormatOutcomeSchema2 as FormatOutcomeSchema,
41
+ FormatOutcomeType2 as FormatOutcomeType,
42
+ ScanFrameSchema2 as ScanFrameSchema,
43
+ ScanFrameType2 as ScanFrameType,
44
+ SearchFrameSchema2 as SearchFrameSchema,
45
+ SearchFrameType2 as SearchFrameType,
46
+ SearchInputType2 as SearchInputType,
47
+ WriteOutcomeSchema2 as WriteOutcomeSchema,
48
+ WriteOutcomeType2 as WriteOutcomeType
49
+ };
@@ -0,0 +1,271 @@
1
+ import { Type } from "typebox";
2
+ import type { Decoded, Schema } from "./schema.ts";
3
+ export declare const GitStatusType: Type.TUnion<[Type.TObject<{
4
+ kind: Type.TLiteral<"none">;
5
+ }>, Type.TObject<{
6
+ kind: Type.TLiteral<"repository">;
7
+ root: Type.TString;
8
+ head: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"git-commit">>, Type.TNull]>;
9
+ branch: Type.TUnion<[Type.TString, Type.TNull]>;
10
+ upstream: Type.TUnion<[Type.TObject<{
11
+ name: Type.TString;
12
+ ahead: Type.TNumber;
13
+ behind: Type.TNumber;
14
+ }>, Type.TNull]>;
15
+ revision: Type.TUnsafe<import("./ids.ts").Id<"git-revision">>;
16
+ staged: Type.TArray<Type.TObject<{
17
+ path: Type.TString;
18
+ status: Type.TEnum<["added", "modified", "deleted", "renamed", "untracked", "conflicted"]>;
19
+ added: Type.TNumber;
20
+ removed: Type.TNumber;
21
+ from: Type.TOptional<Type.TString>;
22
+ }>>;
23
+ unstaged: Type.TArray<Type.TObject<{
24
+ path: Type.TString;
25
+ status: Type.TEnum<["added", "modified", "deleted", "renamed", "untracked", "conflicted"]>;
26
+ added: Type.TNumber;
27
+ removed: Type.TNumber;
28
+ from: Type.TOptional<Type.TString>;
29
+ }>>;
30
+ untracked: Type.TArray<Type.TString>;
31
+ conflicts: Type.TArray<Type.TString>;
32
+ }>]>;
33
+ export type GitStatus = Decoded<typeof GitStatusType>;
34
+ export declare const GitCommitViewType: Type.TObject<{
35
+ id: Type.TUnsafe<import("./ids.ts").Id<"git-commit">>;
36
+ subject: Type.TString;
37
+ author: Type.TString;
38
+ committedAt: Type.TNumber;
39
+ parents: Type.TArray<Type.TUnsafe<import("./ids.ts").Id<"git-commit">>>;
40
+ }>;
41
+ export type GitCommitView = Decoded<typeof GitCommitViewType>;
42
+ export declare const GitRefsViewType: Type.TObject<{
43
+ current: Type.TUnion<[Type.TString, Type.TNull]>;
44
+ branches: Type.TArray<Type.TObject<{
45
+ name: Type.TString;
46
+ commit: Type.TUnsafe<import("./ids.ts").Id<"git-commit">>;
47
+ upstream: Type.TUnion<[Type.TString, Type.TNull]>;
48
+ }>>;
49
+ remotes: Type.TArray<Type.TString>;
50
+ }>;
51
+ export type GitRefsView = Decoded<typeof GitRefsViewType>;
52
+ export declare const GitFileSideType: Type.TUnion<[Type.TObject<{
53
+ kind: Type.TLiteral<"absent">;
54
+ }>, Type.TObject<{
55
+ kind: Type.TLiteral<"text">;
56
+ text: Type.TString;
57
+ }>, Type.TObject<{
58
+ kind: Type.TLiteral<"truncated">;
59
+ head: Type.TString;
60
+ }>, Type.TObject<{
61
+ kind: Type.TLiteral<"binary">;
62
+ }>]>;
63
+ export type GitFileSide = Decoded<typeof GitFileSideType>;
64
+ export declare const GitFileSidesType: Type.TObject<{
65
+ path: Type.TString;
66
+ old: Type.TUnion<[Type.TObject<{
67
+ kind: Type.TLiteral<"absent">;
68
+ }>, Type.TObject<{
69
+ kind: Type.TLiteral<"text">;
70
+ text: Type.TString;
71
+ }>, Type.TObject<{
72
+ kind: Type.TLiteral<"truncated">;
73
+ head: Type.TString;
74
+ }>, Type.TObject<{
75
+ kind: Type.TLiteral<"binary">;
76
+ }>]>;
77
+ new: Type.TUnion<[Type.TObject<{
78
+ kind: Type.TLiteral<"absent">;
79
+ }>, Type.TObject<{
80
+ kind: Type.TLiteral<"text">;
81
+ text: Type.TString;
82
+ }>, Type.TObject<{
83
+ kind: Type.TLiteral<"truncated">;
84
+ head: Type.TString;
85
+ }>, Type.TObject<{
86
+ kind: Type.TLiteral<"binary">;
87
+ }>]>;
88
+ }>;
89
+ export type GitFileSides = Decoded<typeof GitFileSidesType>;
90
+ export declare const BlameViewType: Type.TObject<{
91
+ path: Type.TString;
92
+ lines: Type.TArray<Type.TObject<{
93
+ line: Type.TNumber;
94
+ commit: Type.TUnsafe<import("./ids.ts").Id<"git-commit">>;
95
+ author: Type.TString;
96
+ at: Type.TNumber;
97
+ }>>;
98
+ }>;
99
+ export type BlameView = Decoded<typeof BlameViewType>;
100
+ export declare const GitScopeType: Type.TUnion<[Type.TObject<{
101
+ kind: Type.TLiteral<"worktree">;
102
+ }>, Type.TObject<{
103
+ kind: Type.TLiteral<"staged">;
104
+ }>, Type.TObject<{
105
+ kind: Type.TLiteral<"unstaged">;
106
+ }>, Type.TObject<{
107
+ kind: Type.TLiteral<"commit">;
108
+ commit: Type.TUnsafe<import("./ids.ts").Id<"git-commit">>;
109
+ }>, Type.TObject<{
110
+ kind: Type.TLiteral<"branch">;
111
+ base: Type.TString;
112
+ }>]>;
113
+ export type GitScope = Decoded<typeof GitScopeType>;
114
+ export declare const DiffOptionsType: Type.TObject<{
115
+ ignoreWhitespace: Type.TOptional<Type.TBoolean>;
116
+ }>;
117
+ export type DiffOptions = Decoded<typeof DiffOptionsType>;
118
+ export declare const LineStatType: Type.TUnion<[Type.TObject<{
119
+ kind: Type.TLiteral<"text">;
120
+ added: Type.TNumber;
121
+ removed: Type.TNumber;
122
+ }>, Type.TObject<{
123
+ kind: Type.TLiteral<"binary">;
124
+ }>, Type.TObject<{
125
+ kind: Type.TLiteral<"unknown">;
126
+ }>]>;
127
+ export type LineStat = Decoded<typeof LineStatType>;
128
+ export declare const ChangeSetType: Type.TObject<{
129
+ revision: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"git-revision">>, Type.TUnsafe<import("./ids.ts").Id<"snapshot">>]>;
130
+ files: Type.TArray<Type.TObject<{
131
+ path: Type.TString;
132
+ status: Type.TEnum<["added", "modified", "deleted", "renamed", "untracked", "conflicted"]>;
133
+ stat: Type.TUnion<[Type.TObject<{
134
+ kind: Type.TLiteral<"text">;
135
+ added: Type.TNumber;
136
+ removed: Type.TNumber;
137
+ }>, Type.TObject<{
138
+ kind: Type.TLiteral<"binary">;
139
+ }>, Type.TObject<{
140
+ kind: Type.TLiteral<"unknown">;
141
+ }>]>;
142
+ from: Type.TOptional<Type.TString>;
143
+ }>>;
144
+ }>;
145
+ export type ChangeSet = Decoded<typeof ChangeSetType>;
146
+ export declare const PatchEntryType: Type.TUnion<[Type.TObject<{
147
+ path: Type.TString;
148
+ status: Type.TEnum<["added", "modified", "deleted", "renamed", "untracked", "conflicted"]>;
149
+ digest: Type.TString;
150
+ } & {
151
+ kind: Type.TLiteral<"text">;
152
+ added: Type.TNumber;
153
+ removed: Type.TNumber;
154
+ patch: Type.TString;
155
+ }>, Type.TObject<{
156
+ path: Type.TString;
157
+ status: Type.TEnum<["added", "modified", "deleted", "renamed", "untracked", "conflicted"]>;
158
+ digest: Type.TString;
159
+ } & {
160
+ kind: Type.TLiteral<"binary">;
161
+ }>, Type.TObject<{
162
+ path: Type.TString;
163
+ status: Type.TEnum<["added", "modified", "deleted", "renamed", "untracked", "conflicted"]>;
164
+ digest: Type.TString;
165
+ } & {
166
+ kind: Type.TLiteral<"empty">;
167
+ }>, Type.TObject<{
168
+ path: Type.TString;
169
+ status: Type.TEnum<["added", "modified", "deleted", "renamed", "untracked", "conflicted"]>;
170
+ digest: Type.TString;
171
+ } & {
172
+ kind: Type.TLiteral<"too-large">;
173
+ limit: Type.TNumber;
174
+ }>, Type.TObject<{
175
+ path: Type.TString;
176
+ status: Type.TEnum<["added", "modified", "deleted", "renamed", "untracked", "conflicted"]>;
177
+ digest: Type.TString;
178
+ } & {
179
+ kind: Type.TLiteral<"failed">;
180
+ reason: Type.TString;
181
+ }>]>;
182
+ /** One file's patch. A `text` one carries `patch`, the file's unified diff: its `diff --git` header and hunks as `git diff` prints them, read with `readHunks`. */
183
+ export type PatchEntry = Decoded<typeof PatchEntryType>;
184
+ export declare const PatchSetWireType: Type.TObject<{
185
+ revision: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"git-revision">>, Type.TUnsafe<import("./ids.ts").Id<"snapshot">>]>;
186
+ entries: Type.TRecord<"^.*$", Type.TUnion<[Type.TObject<{
187
+ path: Type.TString;
188
+ status: Type.TEnum<["added", "modified", "deleted", "renamed", "untracked", "conflicted"]>;
189
+ digest: Type.TString;
190
+ } & {
191
+ fresh: Type.TBoolean;
192
+ } & {
193
+ kind: Type.TLiteral<"text">;
194
+ added: Type.TNumber;
195
+ removed: Type.TNumber;
196
+ patch: Type.TString;
197
+ }>, Type.TObject<{
198
+ path: Type.TString;
199
+ status: Type.TEnum<["added", "modified", "deleted", "renamed", "untracked", "conflicted"]>;
200
+ digest: Type.TString;
201
+ } & {
202
+ fresh: Type.TBoolean;
203
+ } & {
204
+ kind: Type.TLiteral<"binary">;
205
+ }>, Type.TObject<{
206
+ path: Type.TString;
207
+ status: Type.TEnum<["added", "modified", "deleted", "renamed", "untracked", "conflicted"]>;
208
+ digest: Type.TString;
209
+ } & {
210
+ fresh: Type.TBoolean;
211
+ } & {
212
+ kind: Type.TLiteral<"empty">;
213
+ }>, Type.TObject<{
214
+ path: Type.TString;
215
+ status: Type.TEnum<["added", "modified", "deleted", "renamed", "untracked", "conflicted"]>;
216
+ digest: Type.TString;
217
+ } & {
218
+ fresh: Type.TBoolean;
219
+ } & {
220
+ kind: Type.TLiteral<"too-large">;
221
+ limit: Type.TNumber;
222
+ }>, Type.TObject<{
223
+ path: Type.TString;
224
+ status: Type.TEnum<["added", "modified", "deleted", "renamed", "untracked", "conflicted"]>;
225
+ digest: Type.TString;
226
+ } & {
227
+ fresh: Type.TBoolean;
228
+ } & {
229
+ kind: Type.TLiteral<"failed">;
230
+ reason: Type.TString;
231
+ }>]>>;
232
+ }>;
233
+ export type PatchSetWire = Decoded<typeof PatchSetWireType>;
234
+ export declare const GitWriteType: Type.TObject<{
235
+ expect: Type.TOptional<Type.TUnsafe<import("./ids.ts").Id<"git-revision">>>;
236
+ }>;
237
+ export type GitWrite = Decoded<typeof GitWriteType>;
238
+ export declare const GitOutcomeType: Type.TUnion<[Type.TObject<{
239
+ kind: Type.TLiteral<"applied">;
240
+ revision: Type.TUnsafe<import("./ids.ts").Id<"git-revision">>;
241
+ }>, Type.TObject<{
242
+ kind: Type.TLiteral<"unchanged">;
243
+ }>, Type.TObject<{
244
+ kind: Type.TLiteral<"stale">;
245
+ revision: Type.TUnsafe<import("./ids.ts").Id<"git-revision">>;
246
+ }>, Type.TObject<{
247
+ kind: Type.TLiteral<"busy">;
248
+ runs: Type.TArray<Type.TUnsafe<import("./ids.ts").Id<"run">>>;
249
+ }>, Type.TObject<{
250
+ kind: Type.TLiteral<"rejected">;
251
+ reason: Type.TString;
252
+ }>]>;
253
+ export type GitOutcome = Decoded<typeof GitOutcomeType>;
254
+ export declare const GitStatusSchema: Schema<GitStatus>;
255
+ export declare const GitCommitViewSchema: Schema<GitCommitView>;
256
+ export declare const GitRefsViewSchema: Schema<GitRefsView>;
257
+ export declare const GitFileSideSchema: Schema<GitFileSide>;
258
+ export declare const GitFileSidesSchema: Schema<GitFileSides>;
259
+ export declare const BlameViewSchema: Schema<BlameView>;
260
+ export declare const GitScopeSchema: Schema<GitScope>;
261
+ export declare const DiffOptionsSchema: Schema<DiffOptions>;
262
+ export declare const LineStatSchema: Schema<LineStat>;
263
+ export declare const ChangeSetSchema: Schema<ChangeSet>;
264
+ export declare const PatchEntrySchema: Schema<PatchEntry>;
265
+ export declare const PatchSetWireSchema: Schema<PatchSetWire>;
266
+ export declare const GitWriteSchema: Schema<GitWrite>;
267
+ export declare const GitOutcomeSchema: Schema<GitOutcome>;
268
+ /** A patch set as the client holds it: the wire entries keyed in a map. */
269
+ export type PatchSet = Omit<PatchSetWire, "entries"> & {
270
+ readonly entries: ReadonlyMap<string, PatchSetWire["entries"][string]>;
271
+ };
@@ -0,0 +1,64 @@
1
+ import {
2
+ GitStatusType2,
3
+ GitCommitViewType2,
4
+ GitRefsViewType2,
5
+ GitFileSideType2,
6
+ GitFileSidesType2,
7
+ BlameViewType2,
8
+ GitScopeType2,
9
+ DiffOptionsType2,
10
+ LineStatType2,
11
+ ChangeSetType2,
12
+ PatchEntryType2,
13
+ PatchSetWireType2,
14
+ GitWriteType2,
15
+ GitOutcomeType2,
16
+ GitStatusSchema2,
17
+ GitCommitViewSchema2,
18
+ GitRefsViewSchema2,
19
+ GitFileSideSchema2,
20
+ GitFileSidesSchema2,
21
+ BlameViewSchema2,
22
+ GitScopeSchema2,
23
+ DiffOptionsSchema2,
24
+ LineStatSchema2,
25
+ ChangeSetSchema2,
26
+ PatchEntrySchema2,
27
+ PatchSetWireSchema2,
28
+ GitWriteSchema2,
29
+ GitOutcomeSchema2
30
+ } from "../chunks/browser-gchr2880.js";
31
+ import"../chunks/browser-ebr6k189.js";
32
+ import"../chunks/browser-4et7qtz3.js";
33
+ import"../chunks/browser-ypez6s7v.js";
34
+ import"../chunks/browser-vzc3r2r3.js";
35
+ export {
36
+ BlameViewSchema2 as BlameViewSchema,
37
+ BlameViewType2 as BlameViewType,
38
+ ChangeSetSchema2 as ChangeSetSchema,
39
+ ChangeSetType2 as ChangeSetType,
40
+ DiffOptionsSchema2 as DiffOptionsSchema,
41
+ DiffOptionsType2 as DiffOptionsType,
42
+ GitCommitViewSchema2 as GitCommitViewSchema,
43
+ GitCommitViewType2 as GitCommitViewType,
44
+ GitFileSideSchema2 as GitFileSideSchema,
45
+ GitFileSideType2 as GitFileSideType,
46
+ GitFileSidesSchema2 as GitFileSidesSchema,
47
+ GitFileSidesType2 as GitFileSidesType,
48
+ GitOutcomeSchema2 as GitOutcomeSchema,
49
+ GitOutcomeType2 as GitOutcomeType,
50
+ GitRefsViewSchema2 as GitRefsViewSchema,
51
+ GitRefsViewType2 as GitRefsViewType,
52
+ GitScopeSchema2 as GitScopeSchema,
53
+ GitScopeType2 as GitScopeType,
54
+ GitStatusSchema2 as GitStatusSchema,
55
+ GitStatusType2 as GitStatusType,
56
+ GitWriteSchema2 as GitWriteSchema,
57
+ GitWriteType2 as GitWriteType,
58
+ LineStatSchema2 as LineStatSchema,
59
+ LineStatType2 as LineStatType,
60
+ PatchEntrySchema2 as PatchEntrySchema,
61
+ PatchEntryType2 as PatchEntryType,
62
+ PatchSetWireSchema2 as PatchSetWireSchema,
63
+ PatchSetWireType2 as PatchSetWireType
64
+ };