@trebired/git-host 0.1.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.
Files changed (212) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/LICENSE +21 -0
  3. package/README.md +451 -0
  4. package/dist/api/handler/action.d.ts +5 -0
  5. package/dist/api/handler/action.d.ts.map +1 -0
  6. package/dist/api/handler/action.js +47 -0
  7. package/dist/api/handler/action.js.map +1 -0
  8. package/dist/api/handler/response.d.ts +34 -0
  9. package/dist/api/handler/response.d.ts.map +1 -0
  10. package/dist/api/handler/response.js +87 -0
  11. package/dist/api/handler/response.js.map +1 -0
  12. package/dist/api/handler/route.d.ts +15 -0
  13. package/dist/api/handler/route.d.ts.map +1 -0
  14. package/dist/api/handler/route.js +51 -0
  15. package/dist/api/handler/route.js.map +1 -0
  16. package/dist/api/handler.d.ts +6 -0
  17. package/dist/api/handler.d.ts.map +1 -0
  18. package/dist/api/handler.js +117 -0
  19. package/dist/api/handler.js.map +1 -0
  20. package/dist/constants.d.ts +8 -0
  21. package/dist/constants.d.ts.map +1 -0
  22. package/dist/constants.js +16 -0
  23. package/dist/constants.js.map +1 -0
  24. package/dist/core/create_git_host/branch_methods.d.ts +5 -0
  25. package/dist/core/create_git_host/branch_methods.d.ts.map +1 -0
  26. package/dist/core/create_git_host/branch_methods.js +137 -0
  27. package/dist/core/create_git_host/branch_methods.js.map +1 -0
  28. package/dist/core/create_git_host/content_methods.d.ts +5 -0
  29. package/dist/core/create_git_host/content_methods.d.ts.map +1 -0
  30. package/dist/core/create_git_host/content_methods.js +24 -0
  31. package/dist/core/create_git_host/content_methods.js.map +1 -0
  32. package/dist/core/create_git_host/remote_methods.d.ts +5 -0
  33. package/dist/core/create_git_host/remote_methods.d.ts.map +1 -0
  34. package/dist/core/create_git_host/remote_methods.js +48 -0
  35. package/dist/core/create_git_host/remote_methods.js.map +1 -0
  36. package/dist/core/create_git_host/shared.d.ts +21 -0
  37. package/dist/core/create_git_host/shared.d.ts.map +1 -0
  38. package/dist/core/create_git_host/shared.js +17 -0
  39. package/dist/core/create_git_host/shared.js.map +1 -0
  40. package/dist/core/create_git_host/working_tree_methods.d.ts +5 -0
  41. package/dist/core/create_git_host/working_tree_methods.d.ts.map +1 -0
  42. package/dist/core/create_git_host/working_tree_methods.js +63 -0
  43. package/dist/core/create_git_host/working_tree_methods.js.map +1 -0
  44. package/dist/core/create_git_host.d.ts +4 -0
  45. package/dist/core/create_git_host.d.ts.map +1 -0
  46. package/dist/core/create_git_host.js +167 -0
  47. package/dist/core/create_git_host.js.map +1 -0
  48. package/dist/core/inspect/helpers.d.ts +27 -0
  49. package/dist/core/inspect/helpers.d.ts.map +1 -0
  50. package/dist/core/inspect/helpers.js +86 -0
  51. package/dist/core/inspect/helpers.js.map +1 -0
  52. package/dist/core/inspect.d.ts +17 -0
  53. package/dist/core/inspect.d.ts.map +1 -0
  54. package/dist/core/inspect.js +174 -0
  55. package/dist/core/inspect.js.map +1 -0
  56. package/dist/core/locks.d.ts +5 -0
  57. package/dist/core/locks.d.ts.map +1 -0
  58. package/dist/core/locks.js +27 -0
  59. package/dist/core/locks.js.map +1 -0
  60. package/dist/core/operation_state.d.ts +4 -0
  61. package/dist/core/operation_state.d.ts.map +1 -0
  62. package/dist/core/operation_state.js +51 -0
  63. package/dist/core/operation_state.js.map +1 -0
  64. package/dist/core/remote.d.ts +13 -0
  65. package/dist/core/remote.d.ts.map +1 -0
  66. package/dist/core/remote.js +187 -0
  67. package/dist/core/remote.js.map +1 -0
  68. package/dist/core/repository/parsers.d.ts +12 -0
  69. package/dist/core/repository/parsers.d.ts.map +1 -0
  70. package/dist/core/repository/parsers.js +181 -0
  71. package/dist/core/repository/parsers.js.map +1 -0
  72. package/dist/core/repository.d.ts +11 -0
  73. package/dist/core/repository.d.ts.map +1 -0
  74. package/dist/core/repository.js +81 -0
  75. package/dist/core/repository.js.map +1 -0
  76. package/dist/core/run_git/env.d.ts +7 -0
  77. package/dist/core/run_git/env.d.ts.map +1 -0
  78. package/dist/core/run_git/env.js +18 -0
  79. package/dist/core/run_git/env.js.map +1 -0
  80. package/dist/core/run_git/process.d.ts +13 -0
  81. package/dist/core/run_git/process.d.ts.map +1 -0
  82. package/dist/core/run_git/process.js +96 -0
  83. package/dist/core/run_git/process.js.map +1 -0
  84. package/dist/core/run_git/repository_setup.d.ts +20 -0
  85. package/dist/core/run_git/repository_setup.d.ts.map +1 -0
  86. package/dist/core/run_git/repository_setup.js +116 -0
  87. package/dist/core/run_git/repository_setup.js.map +1 -0
  88. package/dist/core/run_git.d.ts +6 -0
  89. package/dist/core/run_git.d.ts.map +1 -0
  90. package/dist/core/run_git.js +6 -0
  91. package/dist/core/run_git.js.map +1 -0
  92. package/dist/core/working_tree/mutate.d.ts +9 -0
  93. package/dist/core/working_tree/mutate.d.ts.map +1 -0
  94. package/dist/core/working_tree/mutate.js +159 -0
  95. package/dist/core/working_tree/mutate.js.map +1 -0
  96. package/dist/core/working_tree/read.d.ts +6 -0
  97. package/dist/core/working_tree/read.d.ts.map +1 -0
  98. package/dist/core/working_tree/read.js +108 -0
  99. package/dist/core/working_tree/read.js.map +1 -0
  100. package/dist/core/working_tree/shared.d.ts +20 -0
  101. package/dist/core/working_tree/shared.d.ts.map +1 -0
  102. package/dist/core/working_tree/shared.js +87 -0
  103. package/dist/core/working_tree/shared.js.map +1 -0
  104. package/dist/core/working_tree.d.ts +3 -0
  105. package/dist/core/working_tree.d.ts.map +1 -0
  106. package/dist/core/working_tree.js +3 -0
  107. package/dist/core/working_tree.js.map +1 -0
  108. package/dist/errors.d.ts +10 -0
  109. package/dist/errors.d.ts.map +1 -0
  110. package/dist/errors.js +13 -0
  111. package/dist/errors.js.map +1 -0
  112. package/dist/http/handler/helpers.d.ts +35 -0
  113. package/dist/http/handler/helpers.d.ts.map +1 -0
  114. package/dist/http/handler/helpers.js +146 -0
  115. package/dist/http/handler/helpers.js.map +1 -0
  116. package/dist/http/handler.d.ts +6 -0
  117. package/dist/http/handler.d.ts.map +1 -0
  118. package/dist/http/handler.js +208 -0
  119. package/dist/http/handler.js.map +1 -0
  120. package/dist/index.d.ts +18 -0
  121. package/dist/index.d.ts.map +1 -0
  122. package/dist/index.js +15 -0
  123. package/dist/index.js.map +1 -0
  124. package/dist/logging.d.ts +4 -0
  125. package/dist/logging.d.ts.map +1 -0
  126. package/dist/logging.js +134 -0
  127. package/dist/logging.js.map +1 -0
  128. package/dist/react/client/error.d.ts +14 -0
  129. package/dist/react/client/error.d.ts.map +1 -0
  130. package/dist/react/client/error.js +32 -0
  131. package/dist/react/client/error.js.map +1 -0
  132. package/dist/react/client/helpers.d.ts +12 -0
  133. package/dist/react/client/helpers.d.ts.map +1 -0
  134. package/dist/react/client/helpers.js +45 -0
  135. package/dist/react/client/helpers.js.map +1 -0
  136. package/dist/react/client/types.d.ts +61 -0
  137. package/dist/react/client/types.d.ts.map +1 -0
  138. package/dist/react/client/types.js +2 -0
  139. package/dist/react/client/types.js.map +1 -0
  140. package/dist/react/client.d.ts +6 -0
  141. package/dist/react/client.d.ts.map +1 -0
  142. package/dist/react/client.js +115 -0
  143. package/dist/react/client.js.map +1 -0
  144. package/dist/react/hooks/query.d.ts +10 -0
  145. package/dist/react/hooks/query.d.ts.map +1 -0
  146. package/dist/react/hooks/query.js +74 -0
  147. package/dist/react/hooks/query.js.map +1 -0
  148. package/dist/react/hooks/resources.d.ts +11 -0
  149. package/dist/react/hooks/resources.d.ts.map +1 -0
  150. package/dist/react/hooks/resources.js +113 -0
  151. package/dist/react/hooks/resources.js.map +1 -0
  152. package/dist/react/hooks/types.d.ts +40 -0
  153. package/dist/react/hooks/types.d.ts.map +1 -0
  154. package/dist/react/hooks/types.js +2 -0
  155. package/dist/react/hooks/types.js.map +1 -0
  156. package/dist/react/hooks.d.ts +4 -0
  157. package/dist/react/hooks.d.ts.map +1 -0
  158. package/dist/react/hooks.js +3 -0
  159. package/dist/react/hooks.js.map +1 -0
  160. package/dist/react/index.d.ts +5 -0
  161. package/dist/react/index.d.ts.map +1 -0
  162. package/dist/react/index.js +3 -0
  163. package/dist/react/index.js.map +1 -0
  164. package/dist/ssh/keys.d.ts +18 -0
  165. package/dist/ssh/keys.d.ts.map +1 -0
  166. package/dist/ssh/keys.js +41 -0
  167. package/dist/ssh/keys.js.map +1 -0
  168. package/dist/ssh/server/audit.d.ts +5 -0
  169. package/dist/ssh/server/audit.d.ts.map +1 -0
  170. package/dist/ssh/server/audit.js +21 -0
  171. package/dist/ssh/server/audit.js.map +1 -0
  172. package/dist/ssh/server/shared.d.ts +30 -0
  173. package/dist/ssh/server/shared.d.ts.map +1 -0
  174. package/dist/ssh/server/shared.js +93 -0
  175. package/dist/ssh/server/shared.js.map +1 -0
  176. package/dist/ssh/server.d.ts +5 -0
  177. package/dist/ssh/server.d.ts.map +1 -0
  178. package/dist/ssh/server.js +265 -0
  179. package/dist/ssh/server.js.map +1 -0
  180. package/dist/types/common.d.ts +32 -0
  181. package/dist/types/common.d.ts.map +1 -0
  182. package/dist/types/common.js +2 -0
  183. package/dist/types/common.js.map +1 -0
  184. package/dist/types/host.d.ts +142 -0
  185. package/dist/types/host.d.ts.map +1 -0
  186. package/dist/types/host.js +2 -0
  187. package/dist/types/host.js.map +1 -0
  188. package/dist/types/index.d.ts +5 -0
  189. package/dist/types/index.d.ts.map +1 -0
  190. package/dist/types/index.js +2 -0
  191. package/dist/types/index.js.map +1 -0
  192. package/dist/types/repository.d.ts +163 -0
  193. package/dist/types/repository.d.ts.map +1 -0
  194. package/dist/types/repository.js +2 -0
  195. package/dist/types/repository.js.map +1 -0
  196. package/dist/types/transports.d.ts +156 -0
  197. package/dist/types/transports.d.ts.map +1 -0
  198. package/dist/types/transports.js +2 -0
  199. package/dist/types/transports.js.map +1 -0
  200. package/dist/types.d.ts +2 -0
  201. package/dist/types.d.ts.map +1 -0
  202. package/dist/types.js +2 -0
  203. package/dist/types.js.map +1 -0
  204. package/dist/utils/paths.d.ts +10 -0
  205. package/dist/utils/paths.d.ts.map +1 -0
  206. package/dist/utils/paths.js +51 -0
  207. package/dist/utils/paths.js.map +1 -0
  208. package/dist/utils/text.d.ts +4 -0
  209. package/dist/utils/text.d.ts.map +1 -0
  210. package/dist/utils/text.js +10 -0
  211. package/dist/utils/text.js.map +1 -0
  212. package/package.json +81 -0
@@ -0,0 +1,265 @@
1
+ import { spawn } from "node:child_process";
2
+ import { Server as GitSshServerTransport, utils as sshUtils } from "ssh2";
3
+ import { resolveLogger } from "../logging.js";
4
+ import { text } from "../utils/text.js";
5
+ import { reportSshAuditEvent } from "./server/audit.js";
6
+ import { normalizeAuthenticationResult, normalizeAuthorizationResult, parseGitSshCommand, resolveRepositoryResult, writeGitSshFailure, } from "./server/shared.js";
7
+ function createGitSshServer(options) {
8
+ if (!options || typeof options.authenticate !== "function") {
9
+ throw new TypeError("createGitSshServer() requires an authenticate() function.");
10
+ }
11
+ if (!options || typeof options.resolveRepository !== "function") {
12
+ throw new TypeError("createGitSshServer() requires a resolveRepository() function.");
13
+ }
14
+ if (!Array.isArray(options.hostKeys) || !options.hostKeys.length) {
15
+ throw new TypeError("createGitSshServer() requires at least one host key.");
16
+ }
17
+ const logger = resolveLogger(options.logger);
18
+ const verbose = options.verbose === true;
19
+ const sshServer = new GitSshServerTransport({
20
+ hostKeys: options.hostKeys,
21
+ });
22
+ sshServer.on("connection", (connection) => {
23
+ connection.on("authentication", async (ctx) => {
24
+ const remoteAddress = text(connection && connection._sock && connection._sock.remoteAddress);
25
+ const username = text(ctx.username);
26
+ if (ctx.method !== "publickey" || !ctx.key || !Buffer.isBuffer(ctx.key.data)) {
27
+ reportSshAuditEvent(options, logger, verbose, {
28
+ message: "Only public key authentication is supported.",
29
+ outcome: "auth_rejected",
30
+ remoteAddress,
31
+ username,
32
+ });
33
+ ctx.reject();
34
+ return;
35
+ }
36
+ const offeredPublicKey = `${text(ctx.key.algo)} ${ctx.key.data.toString("base64")}`;
37
+ const auth = normalizeAuthenticationResult(await options.authenticate({
38
+ keyType: text(ctx.key.algo),
39
+ publicKey: offeredPublicKey,
40
+ publicKeyData: Buffer.from(ctx.key.data),
41
+ remoteAddress,
42
+ username,
43
+ }));
44
+ if (!auth) {
45
+ reportSshAuditEvent(options, logger, verbose, {
46
+ message: "SSH public key authentication failed.",
47
+ outcome: "auth_rejected",
48
+ remoteAddress,
49
+ username,
50
+ });
51
+ ctx.reject();
52
+ return;
53
+ }
54
+ const parsedKey = sshUtils.parseKey(auth.publicKey);
55
+ const usableKey = Array.isArray(parsedKey) ? parsedKey[0] : parsedKey;
56
+ if (!usableKey || usableKey instanceof Error) {
57
+ reportSshAuditEvent(options, logger, verbose, {
58
+ identity: auth.identity,
59
+ message: "SSH public key could not be parsed.",
60
+ outcome: "auth_rejected",
61
+ remoteAddress,
62
+ remoteUser: auth.remoteUser,
63
+ username,
64
+ });
65
+ ctx.reject();
66
+ return;
67
+ }
68
+ if (text(usableKey.type) !== text(ctx.key.algo)) {
69
+ reportSshAuditEvent(options, logger, verbose, {
70
+ identity: auth.identity,
71
+ message: "SSH public key type mismatch.",
72
+ outcome: "auth_rejected",
73
+ remoteAddress,
74
+ remoteUser: auth.remoteUser,
75
+ username,
76
+ });
77
+ ctx.reject();
78
+ return;
79
+ }
80
+ if (ctx.signature && usableKey.verify(ctx.blob, ctx.signature, ctx.hashAlgo) !== true) {
81
+ reportSshAuditEvent(options, logger, verbose, {
82
+ identity: auth.identity,
83
+ message: "SSH signature verification failed.",
84
+ outcome: "auth_rejected",
85
+ remoteAddress,
86
+ remoteUser: auth.remoteUser,
87
+ username,
88
+ });
89
+ ctx.reject();
90
+ return;
91
+ }
92
+ connection.__git_ssh_auth = {
93
+ identity: auth.identity,
94
+ remoteAddress,
95
+ remoteUser: auth.remoteUser,
96
+ username: text(ctx.username),
97
+ };
98
+ ctx.accept();
99
+ });
100
+ connection.on("ready", () => {
101
+ const auth = connection.__git_ssh_auth;
102
+ if (!auth) {
103
+ connection.end();
104
+ return;
105
+ }
106
+ connection.on("session", (acceptSession) => {
107
+ const session = acceptSession();
108
+ session.on("shell", (_accept, reject) => reject());
109
+ session.on("pty", (_accept, reject) => reject());
110
+ session.on("subsystem", (_accept, reject) => reject());
111
+ session.on("sftp", (_accept, reject) => reject());
112
+ session.on("exec", async (acceptExec, rejectExec, info) => {
113
+ const requested = parseGitSshCommand(info && info.command, options.basePath);
114
+ if (!requested) {
115
+ reportSshAuditEvent(options, logger, verbose, {
116
+ command: text(info && info.command),
117
+ identity: auth.identity,
118
+ message: "Only Git SSH commands are supported.",
119
+ outcome: "command_rejected",
120
+ remoteAddress: auth.remoteAddress,
121
+ remoteUser: auth.remoteUser,
122
+ username: auth.username,
123
+ });
124
+ rejectExec();
125
+ return;
126
+ }
127
+ const resolved = await resolveRepositoryResult(options, requested.repositoryKey, {
128
+ command: requested.command,
129
+ remoteAddress: auth.remoteAddress,
130
+ service: requested.service,
131
+ username: auth.username,
132
+ wantsWrite: requested.wantsWrite,
133
+ });
134
+ const channel = acceptExec();
135
+ if (!resolved) {
136
+ reportSshAuditEvent(options, logger, verbose, {
137
+ command: requested.command,
138
+ identity: auth.identity,
139
+ message: "Repository not found.",
140
+ outcome: "repository_not_found",
141
+ remoteAddress: auth.remoteAddress,
142
+ remoteUser: auth.remoteUser,
143
+ repositoryKey: requested.repositoryKey,
144
+ service: requested.service,
145
+ username: auth.username,
146
+ wantsWrite: requested.wantsWrite,
147
+ });
148
+ writeGitSshFailure(channel, "Repository not found.");
149
+ return;
150
+ }
151
+ const authz = normalizeAuthorizationResult(options.authorize
152
+ ? await options.authorize({
153
+ command: requested.command,
154
+ identity: auth.identity,
155
+ remoteAddress: auth.remoteAddress,
156
+ remoteUser: auth.remoteUser,
157
+ repository: resolved.repository,
158
+ repositoryKey: text(resolved.repositoryKey, requested.repositoryKey),
159
+ service: requested.service,
160
+ username: auth.username,
161
+ wantsWrite: requested.wantsWrite,
162
+ })
163
+ : undefined);
164
+ if (!authz.allowed) {
165
+ reportSshAuditEvent(options, logger, verbose, {
166
+ command: requested.command,
167
+ identity: auth.identity,
168
+ message: authz.message || "Permission denied.",
169
+ outcome: "denied",
170
+ remoteAddress: auth.remoteAddress,
171
+ remoteUser: authz.remoteUser || auth.remoteUser,
172
+ repository: resolved.repository,
173
+ repositoryKey: text(resolved.repositoryKey, requested.repositoryKey),
174
+ service: requested.service,
175
+ username: auth.username,
176
+ wantsWrite: requested.wantsWrite,
177
+ });
178
+ writeGitSshFailure(channel, authz.message || "Permission denied.");
179
+ return;
180
+ }
181
+ const child = spawn(requested.service, [resolved.repository.path], {
182
+ env: {
183
+ ...process.env,
184
+ REMOTE_ADDR: auth.remoteAddress,
185
+ REMOTE_USER: authz.remoteUser || auth.remoteUser,
186
+ },
187
+ stdio: ["pipe", "pipe", "pipe"],
188
+ });
189
+ child.stdout.on("data", (chunk) => {
190
+ try {
191
+ channel.write(chunk);
192
+ }
193
+ catch { }
194
+ });
195
+ child.stderr.on("data", (chunk) => {
196
+ try {
197
+ channel.stderr.write(chunk);
198
+ }
199
+ catch { }
200
+ });
201
+ child.on("close", (code) => {
202
+ reportSshAuditEvent(options, logger, verbose, {
203
+ command: requested.command,
204
+ exitCode: Number(code) || 0,
205
+ identity: auth.identity,
206
+ outcome: Number(code) === 0 ? "completed" : "failed",
207
+ remoteAddress: auth.remoteAddress,
208
+ remoteUser: authz.remoteUser || auth.remoteUser,
209
+ repository: resolved.repository,
210
+ repositoryKey: text(resolved.repositoryKey, requested.repositoryKey),
211
+ service: requested.service,
212
+ username: auth.username,
213
+ wantsWrite: requested.wantsWrite,
214
+ });
215
+ try {
216
+ channel.exit(Number(code) || 0);
217
+ }
218
+ catch { }
219
+ try {
220
+ channel.close();
221
+ }
222
+ catch { }
223
+ });
224
+ child.on("error", (error) => {
225
+ reportSshAuditEvent(options, logger, verbose, {
226
+ command: requested.command,
227
+ identity: auth.identity,
228
+ message: error && error.message ? String(error.message) : "Git process failed.",
229
+ outcome: "failed",
230
+ remoteAddress: auth.remoteAddress,
231
+ remoteUser: authz.remoteUser || auth.remoteUser,
232
+ repository: resolved.repository,
233
+ repositoryKey: text(resolved.repositoryKey, requested.repositoryKey),
234
+ service: requested.service,
235
+ username: auth.username,
236
+ wantsWrite: requested.wantsWrite,
237
+ });
238
+ writeGitSshFailure(channel, error && error.message ? error.message : "Git process failed.");
239
+ });
240
+ channel.on("data", (chunk) => {
241
+ try {
242
+ child.stdin.write(chunk);
243
+ }
244
+ catch { }
245
+ });
246
+ channel.on("close", () => {
247
+ try {
248
+ child.stdin.end();
249
+ }
250
+ catch { }
251
+ if (!child.killed) {
252
+ try {
253
+ child.kill();
254
+ }
255
+ catch { }
256
+ }
257
+ });
258
+ });
259
+ });
260
+ });
261
+ });
262
+ return sshServer;
263
+ }
264
+ export { createGitSshServer, parseGitSshCommand };
265
+ //# sourceMappingURL=server.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"server.js","sourceRoot":"","sources":["../../src/ssh/server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAE3C,OAAO,EAAE,MAAM,IAAI,qBAAqB,EAAE,KAAK,IAAI,QAAQ,EAAE,MAAM,MAAM,CAAC;AAE1E,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EACL,6BAA6B,EAC7B,4BAA4B,EAC5B,kBAAkB,EAClB,uBAAuB,EACvB,kBAAkB,GACnB,MAAM,oBAAoB,CAAC;AAE5B,SAAS,kBAAkB,CAAC,OAAkC;IAC5D,IAAI,CAAC,OAAO,IAAI,OAAO,OAAO,CAAC,YAAY,KAAK,UAAU,EAAE,CAAC;QAC3D,MAAM,IAAI,SAAS,CAAC,2DAA2D,CAAC,CAAC;IACnF,CAAC;IACD,IAAI,CAAC,OAAO,IAAI,OAAO,OAAO,CAAC,iBAAiB,KAAK,UAAU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EAAE,EAAE;wBACnC,IAAI,CAAC;4BAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;wBAAC,CAAC;wBAAC,MAAM,CAAC,CAAA,CAAC;oBAC5C,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,EAAE;wBACvB,IAAI,CAAC;4BAAC,KAAK,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC;wBAAC,CAAC;wBAAC,MAAM,CAAC,CAAA,CAAC;wBACnC,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;4BAClB,IAAI,CAAC;gCAAC,KAAK,CAAC,IAAI,EAAE,CAAC;4BAAC,CAAC;4BAAC,MAAM,CAAC,CAAA,CAAC;wBAChC,CAAC;oBACH,CAAC,CAAC,CAAC;gBACL,CAAC,CAAC,CAAC;YACL,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,CAAC"}
@@ -0,0 +1,32 @@
1
+ type MaybePromise<T> = T | Promise<T>;
2
+ type GitActor = {
3
+ email?: string;
4
+ id?: string;
5
+ name?: string;
6
+ };
7
+ type GitHostLogMethod = (group: string, message: string, metadata?: unknown) => unknown;
8
+ type GitHostLogEvent = {
9
+ group: string;
10
+ level: "error" | "fail" | "info" | "warn";
11
+ message: string;
12
+ metadata?: unknown;
13
+ };
14
+ type GitHostGenericLogMethod = (...args: unknown[]) => unknown;
15
+ type GitHostLogger = ((event: GitHostLogEvent) => unknown) | {
16
+ [key: string]: unknown;
17
+ error?: GitHostLogMethod | GitHostGenericLogMethod;
18
+ fail?: GitHostLogMethod | GitHostGenericLogMethod;
19
+ fatal?: GitHostGenericLogMethod;
20
+ info?: GitHostLogMethod | GitHostGenericLogMethod;
21
+ log?: GitHostGenericLogMethod;
22
+ warn?: GitHostLogMethod | GitHostGenericLogMethod;
23
+ write?: GitHostGenericLogMethod;
24
+ };
25
+ type NormalizedGitHostLogger = {
26
+ error: GitHostLogMethod;
27
+ fail: GitHostLogMethod;
28
+ info: GitHostLogMethod;
29
+ warn: GitHostLogMethod;
30
+ };
31
+ export type { GitActor, GitHostGenericLogMethod, GitHostLogEvent, GitHostLogger, GitHostLogMethod, MaybePromise, NormalizedGitHostLogger, };
32
+ //# sourceMappingURL=common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/types/common.ts"],"names":[],"mappings":"AAAA,KAAK,YAAY,CAAC,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;AAEtC,KAAK,QAAQ,GAAG;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,KAAK,gBAAgB,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC;AAExF,KAAK,eAAe,GAAG;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IAC1C,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,KAAK,uBAAuB,GAAG,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,CAAC;AAE/D,KAAK,aAAa,GAAG,CAAC,CACpB,KAAK,EAAE,eAAe,KACnB,OAAO,CAAC,GAAG;IACd,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,KAAK,CAAC,EAAE,gBAAgB,GAAG,uBAAuB,CAAC;IACnD,IAAI,CAAC,EAAE,gBAAgB,GAAG,uBAAuB,CAAC;IAClD,KAAK,CAAC,EAAE,uBAAuB,CAAC;IAChC,IAAI,CAAC,EAAE,gBAAgB,GAAG,uBAAuB,CAAC;IAClD,GAAG,CAAC,EAAE,uBAAuB,CAAC;IAC9B,IAAI,CAAC,EAAE,gBAAgB,GAAG,uBAAuB,CAAC;IAClD,KAAK,CAAC,EAAE,uBAAuB,CAAC;CACjC,CAAC;AAEF,KAAK,uBAAuB,GAAG;IAC7B,KAAK,EAAE,gBAAgB,CAAC;IACxB,IAAI,EAAE,gBAAgB,CAAC;IACvB,IAAI,EAAE,gBAAgB,CAAC;IACvB,IAAI,EAAE,gBAAgB,CAAC;CACxB,CAAC;AAEF,YAAY,EACV,QAAQ,EACR,uBAAuB,EACvB,eAAe,EACf,aAAa,EACb,gBAAgB,EAChB,YAAY,EACZ,uBAAuB,GACxB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=common.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.js","sourceRoot":"","sources":["../../src/types/common.ts"],"names":[],"mappings":""}
@@ -0,0 +1,142 @@
1
+ import type { GitActor, GitHostLogger, MaybePromise } from "./common.js";
2
+ import type { GitBlob, GitBranchSummary, GitCommitDetail, GitCommitSummary, GitCompareSummary, GitFileContent, GitRepositoryHandle, GitRepositorySummary, GitTreeEntry, GitWorkingTree } from "./repository.js";
3
+ type BuildGitEnvOptions = {
4
+ actor?: GitActor | null;
5
+ extraEnv?: Record<string, string>;
6
+ };
7
+ type GitRemoteCredentials = {
8
+ password?: string;
9
+ username?: string;
10
+ };
11
+ type GitRemoteTransportOptions = {
12
+ env?: Record<string, string>;
13
+ httpHeaders?: Record<string, string>;
14
+ remoteCredentials?: GitRemoteCredentials;
15
+ sshCommand?: string;
16
+ };
17
+ type CreateGitHostOptions = {
18
+ defaultActor?: GitActor;
19
+ logger?: GitHostLogger;
20
+ managedExcludeHeader?: string;
21
+ managedExcludePatterns?: string[];
22
+ resolveRepository: (repositoryId: string) => MaybePromise<GitRepositoryHandle | null>;
23
+ verbose?: boolean;
24
+ };
25
+ type EnsureRepositoryOptions = GitRemoteTransportOptions & {
26
+ actor?: GitActor;
27
+ cloneUrl?: string;
28
+ commitLimit?: number;
29
+ includeManagedExclude?: boolean;
30
+ initialBranch?: string;
31
+ initialCommitMessage?: string;
32
+ remoteUrl?: string;
33
+ };
34
+ type ReadSummaryOptions = {
35
+ commitLimit?: number;
36
+ };
37
+ type ListCommitsOptions = {
38
+ limit?: number;
39
+ };
40
+ type CreateBranchInput = {
41
+ checkout?: boolean;
42
+ name?: string;
43
+ startPoint?: string;
44
+ };
45
+ type CheckoutRefInput = {
46
+ detach?: boolean;
47
+ ref?: string;
48
+ };
49
+ type CheckoutBranchInput = {
50
+ name?: string;
51
+ };
52
+ type DeleteBranchInput = {
53
+ force?: boolean;
54
+ name?: string;
55
+ };
56
+ type StagePathsInput = {
57
+ paths?: string | string[];
58
+ };
59
+ type UnstagePathsInput = {
60
+ paths?: string | string[];
61
+ };
62
+ type DiscardPathsInput = {
63
+ paths?: string | string[];
64
+ removeUntracked?: boolean;
65
+ };
66
+ type CommitInput = {
67
+ actor?: GitActor;
68
+ message?: string;
69
+ };
70
+ type ContinueOperationInput = {
71
+ actor?: GitActor;
72
+ };
73
+ type ListTreeOptions = {
74
+ path?: string;
75
+ recursive?: boolean;
76
+ ref?: string;
77
+ };
78
+ type ReadBlobOptions = {
79
+ path?: string;
80
+ ref?: string;
81
+ };
82
+ type ReadWorkingTreeFileOptions = {
83
+ path?: string;
84
+ };
85
+ type DiffOptions = {
86
+ baseRef?: string;
87
+ headRef?: string;
88
+ };
89
+ type FetchOptions = GitRemoteTransportOptions & {
90
+ prune?: boolean;
91
+ remote?: string;
92
+ remoteUrl?: string;
93
+ tags?: boolean;
94
+ };
95
+ type PullOptions = GitRemoteTransportOptions & {
96
+ actor?: GitActor;
97
+ branch?: string;
98
+ ffOnly?: boolean;
99
+ rebase?: boolean;
100
+ remote?: string;
101
+ remoteUrl?: string;
102
+ };
103
+ type PushOptions = GitRemoteTransportOptions & {
104
+ actor?: GitActor;
105
+ branch?: string;
106
+ remote?: string;
107
+ remoteUrl?: string;
108
+ setUpstream?: boolean;
109
+ };
110
+ type GitHost = {
111
+ abortOperation(repositoryId: string): Promise<GitRepositorySummary>;
112
+ checkoutBranch(repositoryId: string, input: CheckoutBranchInput): Promise<GitRepositorySummary>;
113
+ checkoutRef(repositoryId: string, input: CheckoutRefInput): Promise<GitRepositorySummary>;
114
+ commit(repositoryId: string, input: CommitInput): Promise<GitRepositorySummary>;
115
+ continueOperation(repositoryId: string, input?: ContinueOperationInput): Promise<GitRepositorySummary>;
116
+ createBranch(repositoryId: string, input: CreateBranchInput): Promise<GitRepositorySummary>;
117
+ deleteBranch(repositoryId: string, input: DeleteBranchInput): Promise<GitRepositorySummary>;
118
+ discardPaths(repositoryId: string, input?: DiscardPathsInput): Promise<GitRepositorySummary>;
119
+ diff(repositoryId: string, options: DiffOptions): Promise<GitCompareSummary>;
120
+ ensureRepository(repositoryId: string, options?: EnsureRepositoryOptions): Promise<GitRepositorySummary>;
121
+ fetch(repositoryId: string, options?: FetchOptions): Promise<GitRepositorySummary>;
122
+ listBranches(repositoryId: string): Promise<GitBranchSummary[]>;
123
+ listCommits(repositoryId: string, options?: ListCommitsOptions): Promise<GitCommitSummary[]>;
124
+ listTree(repositoryId: string, options?: ListTreeOptions): Promise<GitTreeEntry[]>;
125
+ pull(repositoryId: string, options?: PullOptions): Promise<GitRepositorySummary>;
126
+ push(repositoryId: string, options?: PushOptions): Promise<GitRepositorySummary>;
127
+ readBlob(repositoryId: string, options: ReadBlobOptions): Promise<GitBlob>;
128
+ readCommit(repositoryId: string, commitRef: string): Promise<GitCommitDetail>;
129
+ readStagedFile(repositoryId: string, options: ReadWorkingTreeFileOptions): Promise<GitFileContent>;
130
+ readSummary(repositoryId: string, options?: ReadSummaryOptions): Promise<GitRepositorySummary>;
131
+ readUnstagedFile(repositoryId: string, options: ReadWorkingTreeFileOptions): Promise<GitFileContent>;
132
+ readWorkingTree(repositoryId: string): Promise<GitWorkingTree>;
133
+ stagePaths(repositoryId: string, input?: StagePathsInput): Promise<GitRepositorySummary>;
134
+ unstagePaths(repositoryId: string, input?: UnstagePathsInput): Promise<GitRepositorySummary>;
135
+ withRepositoryLock<T>(repositoryId: string, operation: () => Promise<T>): Promise<T>;
136
+ };
137
+ type ResolveRepositoryPathOptions = {
138
+ repositoryPath: string;
139
+ rootDir: string;
140
+ };
141
+ export type { BuildGitEnvOptions, CheckoutBranchInput, CheckoutRefInput, CommitInput, ContinueOperationInput, CreateBranchInput, CreateGitHostOptions, DeleteBranchInput, DiffOptions, DiscardPathsInput, EnsureRepositoryOptions, FetchOptions, GitHost, GitRemoteCredentials, GitRemoteTransportOptions, ListCommitsOptions, ListTreeOptions, PullOptions, PushOptions, ReadBlobOptions, ReadSummaryOptions, ReadWorkingTreeFileOptions, ResolveRepositoryPathOptions, StagePathsInput, UnstagePathsInput, };
142
+ //# sourceMappingURL=host.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"host.d.ts","sourceRoot":"","sources":["../../src/types/host.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AACzE,OAAO,KAAK,EACV,OAAO,EACP,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,cAAc,EACd,mBAAmB,EACnB,oBAAoB,EACpB,YAAY,EACZ,cAAc,EACf,MAAM,iBAAiB,CAAC;AAEzB,KAAK,kBAAkB,GAAG;IACxB,KAAK,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACnC,CAAC;AAEF,KAAK,oBAAoB,GAAG;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,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
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=host.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"host.js","sourceRoot":"","sources":["../../src/types/host.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export type { GitActor, GitHostGenericLogMethod, GitHostLogEvent, GitHostLogger, GitHostLogMethod, MaybePromise, NormalizedGitHostLogger, } from "./common.js";
2
+ export type { GitBlob, GitBlobEncoding, GitBranchSummary, GitCommandBufferResult, GitCommandResult, GitCommitDetail, GitCommitSummary, GitCompareSummary, GitDiffFile, GitFileContent, GitFileContentSource, GitOperationKind, GitOperationState, GitRemoteSummary, GitRepositoryHandle, GitRepositoryStatus, GitRepositorySummary, GitStatusEntry, GitTreeEntry, GitWorkingTree, GitWorkingTreeEntry, } from "./repository.js";
3
+ export type { BuildGitEnvOptions, CheckoutBranchInput, CheckoutRefInput, CommitInput, ContinueOperationInput, CreateBranchInput, CreateGitHostOptions, DeleteBranchInput, DiffOptions, DiscardPathsInput, EnsureRepositoryOptions, FetchOptions, GitHost, GitRemoteCredentials, GitRemoteTransportOptions, ListCommitsOptions, ListTreeOptions, PullOptions, PushOptions, ReadBlobOptions, ReadSummaryOptions, ReadWorkingTreeFileOptions, ResolveRepositoryPathOptions, StagePathsInput, UnstagePathsInput, } from "./host.js";
4
+ export type { CreateGitApiHandlerOptions, CreateGitHttpHandlerOptions, CreateGitSshServerOptions, GitApiAuthorizationResult, GitApiResource, GitHttpAuthenticationResult, GitHttpAuditEvent, GitHttpAuditOutcome, GitHttpAuthorizationResult, GitHttpResolvedRepository, GitHttpService, GitSshAuthenticationResult, GitSshAuditEvent, GitSshAuditOutcome, GitSshAuthorizationResult, GitSshResolvedRepository, GitSshService, } from "./transports.js";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,QAAQ,EACR,uBAAuB,EACvB,eAAe,EACf,aAAa,EACb,gBAAgB,EAChB,YAAY,EACZ,uBAAuB,GACxB,MAAM,aAAa,CAAC;AACrB,YAAY,EACV,OAAO,EACP,eAAe,EACf,gBAAgB,EAChB,sBAAsB,EACtB,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,WAAW,EACX,cAAc,EACd,oBAAoB,EACpB,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EAChB,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,EACpB,cAAc,EACd,YAAY,EACZ,cAAc,EACd,mBAAmB,GACpB,MAAM,iBAAiB,CAAC;AACzB,YAAY,EACV,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,WAAW,EACX,sBAAsB,EACtB,iBAAiB,EACjB,oBAAoB,EACpB,iBAAiB,EACjB,WAAW,EACX,iBAAiB,EACjB,uBAAuB,EACvB,YAAY,EACZ,OAAO,EACP,oBAAoB,EACpB,yBAAyB,EACzB,kBAAkB,EAClB,eAAe,EACf,WAAW,EACX,WAAW,EACX,eAAe,EACf,kBAAkB,EAClB,0BAA0B,EAC1B,4BAA4B,EAC5B,eAAe,EACf,iBAAiB,GAClB,MAAM,WAAW,CAAC;AACnB,YAAY,EACV,0BAA0B,EAC1B,2BAA2B,EAC3B,yBAAyB,EACzB,yBAAyB,EACzB,cAAc,EACd,2BAA2B,EAC3B,iBAAiB,EACjB,mBAAmB,EACnB,0BAA0B,EAC1B,yBAAyB,EACzB,cAAc,EACd,0BAA0B,EAC1B,gBAAgB,EAChB,kBAAkB,EAClB,yBAAyB,EACzB,wBAAwB,EACxB,aAAa,GACd,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":""}