@bunny-agent/daemon 0.9.30 → 0.9.31

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.
@@ -0,0 +1,792 @@
1
+ /**
2
+ * Shared git API types for the bunny-agent daemon.
3
+ *
4
+ * These types define the HTTP API contract for `/api/git/*` endpoints.
5
+ * Consumers (e.g. kapps/apps/buda) can import them via
6
+ * `@bunny-agent/daemon/shared/git-types`.
7
+ */
8
+ import type { ApiEnvelope } from "../utils.js";
9
+ export type { ApiEnvelope } from "../utils.js";
10
+ export interface GitStatusRequest {
11
+ volume?: string;
12
+ repo: string;
13
+ }
14
+ export interface GitCommandResult {
15
+ stdout: string;
16
+ stderr: string;
17
+ code: number;
18
+ }
19
+ export type GitStatusResponse = ApiEnvelope<GitCommandResult>;
20
+ export interface GitExecRequest {
21
+ volume?: string;
22
+ repo: string;
23
+ args: string[];
24
+ }
25
+ export type GitExecResponse = ApiEnvelope<GitCommandResult>;
26
+ export interface GitCloneRequest {
27
+ volume?: string;
28
+ repo_parent: string;
29
+ url: string;
30
+ branch?: string;
31
+ depth?: number;
32
+ target_dir?: string;
33
+ list_files_limit?: number;
34
+ }
35
+ export interface GitCloneResult {
36
+ repo_path: string;
37
+ tracked_files_count: number;
38
+ tracked_files: string[];
39
+ tracked_files_truncated: boolean;
40
+ command: GitCommandResult;
41
+ }
42
+ export type GitCloneResponse = ApiEnvelope<GitCloneResult>;
43
+ export interface GitInitRequest {
44
+ volume?: string;
45
+ repo: string;
46
+ initial_branch?: string;
47
+ }
48
+ export type GitInitResponse = ApiEnvelope<GitCommandResult>;
49
+ import type * as git from "isomorphic-git";
50
+ export type GitCommands = typeof git;
51
+ export type FunctionKeys<T> = {
52
+ [K in keyof T]: T[K] extends (...args: infer _Args) => unknown ? K : never;
53
+ }[keyof T];
54
+ export type GitCommandKeys = Exclude<FunctionKeys<GitCommands>, "STAGE" | "TREE" | "WORKDIR">;
55
+ export type OmittedOptions = "fs" | "http" | "dir" | "core";
56
+ export type GitRpcOptions<K extends GitCommandKeys> = Parameters<GitCommands[K]>[0] extends undefined ? undefined : Omit<Parameters<GitCommands[K]>[0], OmittedOptions>;
57
+ export interface GitRpcRequest<K extends GitCommandKeys> {
58
+ volume?: string;
59
+ repo: string;
60
+ command: K;
61
+ options?: GitRpcOptions<K>;
62
+ }
63
+ export type GitRpcResponse<K extends GitCommandKeys> = ApiEnvelope<Awaited<ReturnType<GitCommands[K]>>>;
64
+ /**
65
+ * Creates a typesafe proxy client for isomorphic-git that sends commands
66
+ * over HTTP to the daemon's `/api/git/rpc` endpoint.
67
+ */
68
+ export declare function createGitProxy(endpoint: string, fetchFn: typeof fetch, defaultPayload: {
69
+ volume?: string;
70
+ repo: string;
71
+ }): {
72
+ push: (options: Omit<{
73
+ fs: git.FsClient;
74
+ http: git.HttpClient;
75
+ onProgress?: git.ProgressCallback | undefined;
76
+ onMessage?: git.MessageCallback | undefined;
77
+ onAuth?: git.AuthCallback | undefined;
78
+ onAuthFailure?: git.AuthFailureCallback | undefined;
79
+ onAuthSuccess?: git.AuthSuccessCallback | undefined;
80
+ onPrePush?: git.PrePushCallback | undefined;
81
+ dir?: string | undefined;
82
+ gitdir?: string | undefined;
83
+ ref?: string | undefined;
84
+ url?: string | undefined;
85
+ remote?: string | undefined;
86
+ remoteRef?: string | undefined;
87
+ force?: boolean | undefined;
88
+ delete?: boolean | undefined;
89
+ corsProxy?: string | undefined;
90
+ headers?: {
91
+ [x: string]: string;
92
+ } | undefined;
93
+ cache?: object;
94
+ }, OmittedOptions>) => Promise<git.PushResult>;
95
+ abortMerge: (options: Omit<{
96
+ fs: git.FsClient;
97
+ dir: string;
98
+ gitdir?: string | undefined;
99
+ commit?: string | undefined;
100
+ cache?: object;
101
+ }, OmittedOptions>) => Promise<void>;
102
+ add: (options: Omit<{
103
+ fs: git.FsClient;
104
+ dir: string;
105
+ gitdir?: string | undefined;
106
+ filepath: string | string[];
107
+ cache?: object;
108
+ force?: boolean | undefined;
109
+ parallel?: boolean | undefined;
110
+ }, OmittedOptions>) => Promise<void>;
111
+ addNote: (options: Omit<{
112
+ fs: git.FsClient;
113
+ onSign?: git.SignCallback | undefined;
114
+ dir?: string | undefined;
115
+ gitdir?: string | undefined;
116
+ ref?: string | undefined;
117
+ oid: string;
118
+ note: string | Uint8Array;
119
+ force?: boolean | undefined;
120
+ author?: {
121
+ name?: string | undefined;
122
+ email?: string | undefined;
123
+ timestamp?: number | undefined;
124
+ timezoneOffset?: number | undefined;
125
+ } | undefined;
126
+ committer?: {
127
+ name?: string | undefined;
128
+ email?: string | undefined;
129
+ timestamp?: number | undefined;
130
+ timezoneOffset?: number | undefined;
131
+ } | undefined;
132
+ signingKey?: string | undefined;
133
+ cache?: object;
134
+ }, OmittedOptions>) => Promise<string>;
135
+ addRemote: (options: Omit<{
136
+ fs: git.FsClient;
137
+ dir?: string | undefined;
138
+ gitdir?: string | undefined;
139
+ remote: string;
140
+ url: string;
141
+ force?: boolean | undefined;
142
+ }, OmittedOptions>) => Promise<void>;
143
+ annotatedTag: (options: Omit<{
144
+ fs: git.FsClient;
145
+ onSign?: git.SignCallback | undefined;
146
+ dir?: string | undefined;
147
+ gitdir?: string | undefined;
148
+ ref: string;
149
+ message?: string | undefined;
150
+ object?: string | undefined;
151
+ tagger?: {
152
+ name?: string | undefined;
153
+ email?: string | undefined;
154
+ timestamp?: number | undefined;
155
+ timezoneOffset?: number | undefined;
156
+ } | undefined;
157
+ gpgsig?: string | undefined;
158
+ signingKey?: string | undefined;
159
+ force?: boolean | undefined;
160
+ cache?: object;
161
+ }, OmittedOptions>) => Promise<void>;
162
+ branch: (options: Omit<{
163
+ fs: git.FsClient;
164
+ dir?: string | undefined;
165
+ gitdir?: string | undefined;
166
+ ref: string;
167
+ object?: string | undefined;
168
+ checkout?: boolean | undefined;
169
+ force?: boolean | undefined;
170
+ }, OmittedOptions>) => Promise<void>;
171
+ checkout: (options: Omit<{
172
+ fs: git.FsClient;
173
+ onProgress?: git.ProgressCallback | undefined;
174
+ onPostCheckout?: git.PostCheckoutCallback | undefined;
175
+ dir: string;
176
+ gitdir?: string | undefined;
177
+ ref?: string | undefined;
178
+ filepaths?: string[] | undefined;
179
+ remote?: string | undefined;
180
+ noCheckout?: boolean | undefined;
181
+ noUpdateHead?: boolean | undefined;
182
+ dryRun?: boolean | undefined;
183
+ force?: boolean | undefined;
184
+ track?: boolean | undefined;
185
+ cache?: object;
186
+ nonBlocking?: boolean | undefined;
187
+ batchSize?: number | undefined;
188
+ }, OmittedOptions>) => Promise<void>;
189
+ cherryPick: (options: Omit<{
190
+ fs: git.FsClient;
191
+ dir?: string | undefined;
192
+ gitdir?: string | undefined;
193
+ oid: string;
194
+ cache?: object;
195
+ committer?: {
196
+ name?: string | undefined;
197
+ email?: string | undefined;
198
+ timestamp?: number | undefined;
199
+ timezoneOffset?: number | undefined;
200
+ } | undefined;
201
+ dryRun?: boolean | undefined;
202
+ noUpdateBranch?: boolean | undefined;
203
+ abortOnConflict?: boolean | undefined;
204
+ mergeDriver?: git.MergeDriverCallback | undefined;
205
+ }, OmittedOptions>) => Promise<string>;
206
+ clone: (options: Omit<{
207
+ fs: git.FsClient;
208
+ http: git.HttpClient;
209
+ onProgress?: git.ProgressCallback | undefined;
210
+ onMessage?: git.MessageCallback | undefined;
211
+ onAuth?: git.AuthCallback | undefined;
212
+ onAuthFailure?: git.AuthFailureCallback | undefined;
213
+ onAuthSuccess?: git.AuthSuccessCallback | undefined;
214
+ onPostCheckout?: git.PostCheckoutCallback | undefined;
215
+ dir: string;
216
+ gitdir?: string | undefined;
217
+ url: string;
218
+ corsProxy?: string | undefined;
219
+ ref?: string | undefined;
220
+ singleBranch?: boolean | undefined;
221
+ noCheckout?: boolean | undefined;
222
+ noTags?: boolean | undefined;
223
+ remote?: string | undefined;
224
+ depth?: number | undefined;
225
+ since?: Date | undefined;
226
+ exclude?: string[] | undefined;
227
+ relative?: boolean | undefined;
228
+ headers?: {
229
+ [x: string]: string;
230
+ } | undefined;
231
+ cache?: object;
232
+ nonBlocking?: boolean | undefined;
233
+ batchSize?: number | undefined;
234
+ }, OmittedOptions>) => Promise<void>;
235
+ commit: (options: Omit<{
236
+ fs: git.FsClient;
237
+ onSign?: git.SignCallback | undefined;
238
+ dir?: string | undefined;
239
+ gitdir?: string | undefined;
240
+ message?: string | undefined;
241
+ author?: {
242
+ name?: string | undefined;
243
+ email?: string | undefined;
244
+ timestamp?: number | undefined;
245
+ timezoneOffset?: number | undefined;
246
+ } | undefined;
247
+ committer?: {
248
+ name?: string | undefined;
249
+ email?: string | undefined;
250
+ timestamp?: number | undefined;
251
+ timezoneOffset?: number | undefined;
252
+ } | undefined;
253
+ signingKey?: string | undefined;
254
+ amend?: boolean | undefined;
255
+ dryRun?: boolean | undefined;
256
+ noUpdateBranch?: boolean | undefined;
257
+ ref?: string | undefined;
258
+ parent?: string[] | undefined;
259
+ tree?: string | undefined;
260
+ cache?: object;
261
+ }, OmittedOptions>) => Promise<string>;
262
+ currentBranch: (options: Omit<{
263
+ fs: git.FsClient;
264
+ dir?: string | undefined;
265
+ gitdir?: string | undefined;
266
+ fullname?: boolean | undefined;
267
+ test?: boolean | undefined;
268
+ }, OmittedOptions>) => Promise<string | void>;
269
+ deleteBranch: (options: Omit<{
270
+ fs: git.FsClient;
271
+ dir?: string | undefined;
272
+ gitdir?: string | undefined;
273
+ ref: string;
274
+ }, OmittedOptions>) => Promise<void>;
275
+ deleteRef: (options: Omit<{
276
+ fs: git.FsClient;
277
+ dir?: string | undefined;
278
+ gitdir?: string | undefined;
279
+ ref: string;
280
+ }, OmittedOptions>) => Promise<void>;
281
+ deleteRemote: (options: Omit<{
282
+ fs: git.FsClient;
283
+ dir?: string | undefined;
284
+ gitdir?: string | undefined;
285
+ remote: string;
286
+ }, OmittedOptions>) => Promise<void>;
287
+ deleteTag: (options: Omit<{
288
+ fs: git.FsClient;
289
+ dir?: string | undefined;
290
+ gitdir?: string | undefined;
291
+ ref: string;
292
+ }, OmittedOptions>) => Promise<void>;
293
+ expandOid: (options: Omit<{
294
+ fs: git.FsClient;
295
+ dir?: string | undefined;
296
+ gitdir?: string | undefined;
297
+ oid: string;
298
+ cache?: object;
299
+ }, OmittedOptions>) => Promise<string>;
300
+ expandRef: (options: Omit<{
301
+ fs: git.FsClient;
302
+ dir?: string | undefined;
303
+ gitdir?: string | undefined;
304
+ ref: string;
305
+ }, OmittedOptions>) => Promise<string>;
306
+ fastForward: (options: Omit<{
307
+ fs: git.FsClient;
308
+ http: git.HttpClient;
309
+ onProgress?: git.ProgressCallback | undefined;
310
+ onMessage?: git.MessageCallback | undefined;
311
+ onAuth?: git.AuthCallback | undefined;
312
+ onAuthFailure?: git.AuthFailureCallback | undefined;
313
+ onAuthSuccess?: git.AuthSuccessCallback | undefined;
314
+ dir: string;
315
+ gitdir?: string | undefined;
316
+ ref?: string | undefined;
317
+ url?: string | undefined;
318
+ remote?: string | undefined;
319
+ remoteRef?: string | undefined;
320
+ corsProxy?: string | undefined;
321
+ singleBranch?: boolean | undefined;
322
+ headers?: {
323
+ [x: string]: string;
324
+ } | undefined;
325
+ cache?: object;
326
+ }, OmittedOptions>) => Promise<void>;
327
+ fetch: (options: Omit<{
328
+ fs: git.FsClient;
329
+ http: git.HttpClient;
330
+ onProgress?: git.ProgressCallback | undefined;
331
+ onMessage?: git.MessageCallback | undefined;
332
+ onAuth?: git.AuthCallback | undefined;
333
+ onAuthFailure?: git.AuthFailureCallback | undefined;
334
+ onAuthSuccess?: git.AuthSuccessCallback | undefined;
335
+ dir?: string | undefined;
336
+ gitdir?: string | undefined;
337
+ url?: string | undefined;
338
+ remote?: string | undefined;
339
+ singleBranch?: boolean | undefined;
340
+ ref?: string | undefined;
341
+ remoteRef?: string | undefined;
342
+ tags?: boolean | undefined;
343
+ depth?: number | undefined;
344
+ relative?: boolean | undefined;
345
+ since?: Date | undefined;
346
+ exclude?: string[] | undefined;
347
+ prune?: boolean | undefined;
348
+ pruneTags?: boolean | undefined;
349
+ corsProxy?: string | undefined;
350
+ headers?: {
351
+ [x: string]: string;
352
+ } | undefined;
353
+ cache?: object;
354
+ }, OmittedOptions>) => Promise<git.FetchResult>;
355
+ findMergeBase: (options: Omit<{
356
+ fs: git.FsClient;
357
+ dir?: string | undefined;
358
+ gitdir?: string | undefined;
359
+ oids: string[];
360
+ cache?: object;
361
+ }, OmittedOptions>) => Promise<any[]>;
362
+ findRoot: (options: Omit<{
363
+ fs: git.FsClient;
364
+ filepath: string;
365
+ }, OmittedOptions>) => Promise<string>;
366
+ getConfig: (options: Omit<{
367
+ fs: git.FsClient;
368
+ dir?: string | undefined;
369
+ gitdir?: string | undefined;
370
+ path: string;
371
+ }, OmittedOptions>) => Promise<any>;
372
+ getConfigAll: (options: Omit<{
373
+ fs: git.FsClient;
374
+ dir?: string | undefined;
375
+ gitdir?: string | undefined;
376
+ path: string;
377
+ }, OmittedOptions>) => Promise<any[]>;
378
+ getRemoteInfo: (options: Omit<{
379
+ http: git.HttpClient;
380
+ onAuth?: git.AuthCallback | undefined;
381
+ onAuthFailure?: git.AuthFailureCallback | undefined;
382
+ onAuthSuccess?: git.AuthSuccessCallback | undefined;
383
+ url: string;
384
+ corsProxy?: string | undefined;
385
+ forPush?: boolean | undefined;
386
+ headers?: {
387
+ [x: string]: string;
388
+ } | undefined;
389
+ }, OmittedOptions>) => Promise<git.GetRemoteInfoResult>;
390
+ getRemoteInfo2: (options: Omit<{
391
+ http: git.HttpClient;
392
+ onAuth?: git.AuthCallback | undefined;
393
+ onAuthFailure?: git.AuthFailureCallback | undefined;
394
+ onAuthSuccess?: git.AuthSuccessCallback | undefined;
395
+ url: string;
396
+ corsProxy?: string | undefined;
397
+ forPush?: boolean | undefined;
398
+ headers?: {
399
+ [x: string]: string;
400
+ } | undefined;
401
+ protocolVersion?: 2 | 1 | undefined;
402
+ }, OmittedOptions>) => Promise<git.GetRemoteInfo2Result>;
403
+ hashBlob: (options: Omit<{
404
+ object: Uint8Array | string;
405
+ }, OmittedOptions>) => Promise<git.HashBlobResult>;
406
+ indexPack: (options: Omit<{
407
+ fs: git.FsClient;
408
+ onProgress?: git.ProgressCallback | undefined;
409
+ dir: string;
410
+ gitdir?: string | undefined;
411
+ filepath: string;
412
+ cache?: object;
413
+ }, OmittedOptions>) => Promise<{
414
+ oids: string[];
415
+ }>;
416
+ init: (options: Omit<{
417
+ fs: git.FsClient;
418
+ dir?: string | undefined;
419
+ gitdir?: string | undefined;
420
+ bare?: boolean | undefined;
421
+ defaultBranch?: string | undefined;
422
+ }, OmittedOptions>) => Promise<void>;
423
+ isDescendent: (options: Omit<{
424
+ fs: git.FsClient;
425
+ dir?: string | undefined;
426
+ gitdir?: string | undefined;
427
+ oid: string;
428
+ ancestor: string;
429
+ depth?: number | undefined;
430
+ cache?: object;
431
+ }, OmittedOptions>) => Promise<boolean>;
432
+ isIgnored: (options: Omit<{
433
+ fs: git.FsClient;
434
+ dir: string;
435
+ gitdir?: string | undefined;
436
+ filepath: string;
437
+ }, OmittedOptions>) => Promise<boolean>;
438
+ listBranches: (options: Omit<{
439
+ fs: git.FsClient;
440
+ dir?: string | undefined;
441
+ gitdir?: string | undefined;
442
+ remote?: string | undefined;
443
+ }, OmittedOptions>) => Promise<string[]>;
444
+ listFiles: (options: Omit<{
445
+ fs: git.FsClient;
446
+ dir?: string | undefined;
447
+ gitdir?: string | undefined;
448
+ ref?: string | undefined;
449
+ cache?: object;
450
+ }, OmittedOptions>) => Promise<string[]>;
451
+ listNotes: (options: Omit<{
452
+ fs: git.FsClient;
453
+ dir?: string | undefined;
454
+ gitdir?: string | undefined;
455
+ ref?: string | undefined;
456
+ cache?: object;
457
+ }, OmittedOptions>) => Promise<{
458
+ target: string;
459
+ note: string;
460
+ }[]>;
461
+ listRefs: (options: Omit<{
462
+ fs: git.FsClient;
463
+ dir?: string | undefined;
464
+ gitdir?: string | undefined;
465
+ filepath?: string | undefined;
466
+ }, OmittedOptions>) => Promise<string[]>;
467
+ listRemotes: (options: Omit<{
468
+ fs: git.FsClient;
469
+ dir?: string | undefined;
470
+ gitdir?: string | undefined;
471
+ }, OmittedOptions>) => Promise<{
472
+ remote: string;
473
+ url: string;
474
+ }[]>;
475
+ listServerRefs: (options: Omit<{
476
+ http: git.HttpClient;
477
+ onAuth?: git.AuthCallback | undefined;
478
+ onAuthFailure?: git.AuthFailureCallback | undefined;
479
+ onAuthSuccess?: git.AuthSuccessCallback | undefined;
480
+ url: string;
481
+ corsProxy?: string | undefined;
482
+ forPush?: boolean | undefined;
483
+ headers?: {
484
+ [x: string]: string;
485
+ } | undefined;
486
+ protocolVersion?: 2 | 1 | undefined;
487
+ prefix?: string | undefined;
488
+ symrefs?: boolean | undefined;
489
+ peelTags?: boolean | undefined;
490
+ }, OmittedOptions>) => Promise<git.ServerRef[]>;
491
+ listTags: (options: Omit<{
492
+ fs: git.FsClient;
493
+ dir?: string | undefined;
494
+ gitdir?: string | undefined;
495
+ }, OmittedOptions>) => Promise<string[]>;
496
+ log: (options: Omit<{
497
+ fs: git.FsClient;
498
+ dir?: string | undefined;
499
+ gitdir?: string | undefined;
500
+ filepath?: string | undefined;
501
+ ref?: string | undefined;
502
+ depth?: number | undefined;
503
+ since?: Date | undefined;
504
+ force?: boolean | undefined;
505
+ follow?: boolean | undefined;
506
+ cache?: object;
507
+ }, OmittedOptions>) => Promise<git.ReadCommitResult[]>;
508
+ merge: (options: Omit<{
509
+ fs: git.FsClient;
510
+ onSign?: git.SignCallback | undefined;
511
+ dir?: string | undefined;
512
+ gitdir?: string | undefined;
513
+ ours?: string | undefined;
514
+ theirs: string;
515
+ fastForward?: boolean | undefined;
516
+ fastForwardOnly?: boolean | undefined;
517
+ dryRun?: boolean | undefined;
518
+ noUpdateBranch?: boolean | undefined;
519
+ abortOnConflict?: boolean | undefined;
520
+ message?: string | undefined;
521
+ author?: {
522
+ name?: string | undefined;
523
+ email?: string | undefined;
524
+ timestamp?: number | undefined;
525
+ timezoneOffset?: number | undefined;
526
+ } | undefined;
527
+ committer?: {
528
+ name?: string | undefined;
529
+ email?: string | undefined;
530
+ timestamp?: number | undefined;
531
+ timezoneOffset?: number | undefined;
532
+ } | undefined;
533
+ signingKey?: string | undefined;
534
+ cache?: object;
535
+ mergeDriver?: git.MergeDriverCallback | undefined;
536
+ allowUnrelatedHistories?: boolean | undefined;
537
+ }, OmittedOptions>) => Promise<git.MergeResult>;
538
+ packObjects: (options: Omit<{
539
+ fs: git.FsClient;
540
+ dir?: string | undefined;
541
+ gitdir?: string | undefined;
542
+ oids: string[];
543
+ write?: boolean | undefined;
544
+ cache?: object;
545
+ }, OmittedOptions>) => Promise<git.PackObjectsResult>;
546
+ pull: (options: Omit<{
547
+ fs: git.FsClient;
548
+ http: git.HttpClient;
549
+ onProgress?: git.ProgressCallback | undefined;
550
+ onMessage?: git.MessageCallback | undefined;
551
+ onAuth?: git.AuthCallback | undefined;
552
+ onAuthFailure?: git.AuthFailureCallback | undefined;
553
+ onAuthSuccess?: git.AuthSuccessCallback | undefined;
554
+ dir: string;
555
+ gitdir?: string | undefined;
556
+ ref?: string | undefined;
557
+ url?: string | undefined;
558
+ remote?: string | undefined;
559
+ remoteRef?: string | undefined;
560
+ prune?: boolean | undefined;
561
+ pruneTags?: boolean | undefined;
562
+ corsProxy?: string | undefined;
563
+ singleBranch?: boolean | undefined;
564
+ fastForward?: boolean | undefined;
565
+ fastForwardOnly?: boolean | undefined;
566
+ headers?: {
567
+ [x: string]: string;
568
+ } | undefined;
569
+ author?: {
570
+ name?: string | undefined;
571
+ email?: string | undefined;
572
+ timestamp?: number | undefined;
573
+ timezoneOffset?: number | undefined;
574
+ } | undefined;
575
+ committer?: {
576
+ name?: string | undefined;
577
+ email?: string | undefined;
578
+ timestamp?: number | undefined;
579
+ timezoneOffset?: number | undefined;
580
+ } | undefined;
581
+ signingKey?: string | undefined;
582
+ cache?: object;
583
+ }, OmittedOptions>) => Promise<void>;
584
+ readBlob: (options: Omit<{
585
+ fs: git.FsClient;
586
+ dir?: string | undefined;
587
+ gitdir?: string | undefined;
588
+ oid: string;
589
+ filepath?: string | undefined;
590
+ cache?: object;
591
+ }, OmittedOptions>) => Promise<git.ReadBlobResult>;
592
+ readCommit: (options: Omit<{
593
+ fs: git.FsClient;
594
+ dir?: string | undefined;
595
+ gitdir?: string | undefined;
596
+ oid: string;
597
+ cache?: object;
598
+ }, OmittedOptions>) => Promise<git.ReadCommitResult>;
599
+ readNote: (options: Omit<{
600
+ fs: git.FsClient;
601
+ dir?: string | undefined;
602
+ gitdir?: string | undefined;
603
+ ref?: string | undefined;
604
+ oid: string;
605
+ cache?: object;
606
+ }, OmittedOptions>) => Promise<Uint8Array<ArrayBufferLike>>;
607
+ readObject: (options: Omit<{
608
+ fs: git.FsClient;
609
+ dir?: string | undefined;
610
+ gitdir?: string | undefined;
611
+ oid: string;
612
+ format?: "content" | "parsed" | "deflated" | "wrapped" | undefined;
613
+ filepath?: string | undefined;
614
+ encoding?: string | undefined;
615
+ cache?: object;
616
+ }, OmittedOptions>) => Promise<git.ReadObjectResult>;
617
+ readTag: (options: Omit<{
618
+ fs: git.FsClient;
619
+ dir?: string | undefined;
620
+ gitdir?: string | undefined;
621
+ oid: string;
622
+ cache?: object;
623
+ }, OmittedOptions>) => Promise<git.ReadTagResult>;
624
+ readTree: (options: Omit<{
625
+ fs: git.FsClient;
626
+ dir?: string | undefined;
627
+ gitdir?: string | undefined;
628
+ oid: string;
629
+ filepath?: string | undefined;
630
+ cache?: object;
631
+ }, OmittedOptions>) => Promise<git.ReadTreeResult>;
632
+ remove: (options: Omit<{
633
+ fs: git.FsClient;
634
+ dir?: string | undefined;
635
+ gitdir?: string | undefined;
636
+ filepath: string;
637
+ cache?: object;
638
+ }, OmittedOptions>) => Promise<void>;
639
+ removeNote: (options: Omit<{
640
+ fs: git.FsClient;
641
+ onSign?: git.SignCallback | undefined;
642
+ dir?: string | undefined;
643
+ gitdir?: string | undefined;
644
+ ref?: string | undefined;
645
+ oid: string;
646
+ author?: {
647
+ name?: string | undefined;
648
+ email?: string | undefined;
649
+ timestamp?: number | undefined;
650
+ timezoneOffset?: number | undefined;
651
+ } | undefined;
652
+ committer?: {
653
+ name?: string | undefined;
654
+ email?: string | undefined;
655
+ timestamp?: number | undefined;
656
+ timezoneOffset?: number | undefined;
657
+ } | undefined;
658
+ signingKey?: string | undefined;
659
+ cache?: object;
660
+ }, OmittedOptions>) => Promise<string>;
661
+ renameBranch: (options: Omit<{
662
+ fs: git.FsClient;
663
+ dir?: string | undefined;
664
+ gitdir?: string | undefined;
665
+ ref: string;
666
+ oldref: string;
667
+ checkout?: boolean | undefined;
668
+ }, OmittedOptions>) => Promise<void>;
669
+ resetIndex: (options: Omit<{
670
+ fs: git.FsClient;
671
+ dir?: string | undefined;
672
+ gitdir?: string | undefined;
673
+ filepath: string;
674
+ ref?: string | undefined;
675
+ cache?: object;
676
+ }, OmittedOptions>) => Promise<void>;
677
+ resolveRef: (options: Omit<{
678
+ fs: git.FsClient;
679
+ dir?: string | undefined;
680
+ gitdir?: string | undefined;
681
+ ref: string;
682
+ depth?: number | undefined;
683
+ }, OmittedOptions>) => Promise<string>;
684
+ setConfig: (options: Omit<{
685
+ fs: git.FsClient;
686
+ dir?: string | undefined;
687
+ gitdir?: string | undefined;
688
+ path: string;
689
+ value: string | boolean | number | void;
690
+ append?: boolean | undefined;
691
+ }, OmittedOptions>) => Promise<void>;
692
+ stash: (options: Omit<{
693
+ fs: git.FsClient;
694
+ dir?: string | undefined;
695
+ gitdir?: string | undefined;
696
+ op?: "pop" | "push" | "clear" | "drop" | "apply" | "list" | "create" | undefined;
697
+ message?: string | undefined;
698
+ refIdx?: number | undefined;
699
+ }, OmittedOptions>) => Promise<string | void>;
700
+ status: (options: Omit<{
701
+ fs: git.FsClient;
702
+ dir: string;
703
+ gitdir?: string | undefined;
704
+ filepath: string;
705
+ cache?: object;
706
+ }, OmittedOptions>) => Promise<"ignored" | "unmodified" | "*modified" | "*deleted" | "*added" | "absent" | "modified" | "deleted" | "added" | "*unmodified" | "*absent" | "*undeleted" | "*undeletemodified">;
707
+ statusMatrix: (options: Omit<{
708
+ fs: git.FsClient;
709
+ dir: string;
710
+ gitdir?: string | undefined;
711
+ ref?: string | undefined;
712
+ filepaths?: string[] | undefined;
713
+ filter?: ((arg0: string) => boolean) | undefined;
714
+ cache?: object;
715
+ ignored?: boolean | undefined;
716
+ }, OmittedOptions>) => Promise<git.StatusRow[]>;
717
+ tag: (options: Omit<{
718
+ fs: git.FsClient;
719
+ dir?: string | undefined;
720
+ gitdir?: string | undefined;
721
+ ref: string;
722
+ object?: string | undefined;
723
+ force?: boolean | undefined;
724
+ }, OmittedOptions>) => Promise<void>;
725
+ version: () => Promise<string>;
726
+ walk: (options: Omit<{
727
+ fs: git.FsClient;
728
+ dir?: string | undefined;
729
+ gitdir?: string | undefined;
730
+ trees: git.Walker[];
731
+ map?: git.WalkerMap | undefined;
732
+ reduce?: git.WalkerReduce | undefined;
733
+ iterate?: git.WalkerIterate | undefined;
734
+ cache?: object;
735
+ }, OmittedOptions>) => Promise<any>;
736
+ writeBlob: (options: Omit<{
737
+ fs: git.FsClient;
738
+ dir?: string | undefined;
739
+ gitdir?: string | undefined;
740
+ blob: Uint8Array;
741
+ }, OmittedOptions>) => Promise<string>;
742
+ writeCommit: (options: Omit<{
743
+ fs: git.FsClient;
744
+ dir?: string | undefined;
745
+ gitdir?: string | undefined;
746
+ commit: git.CommitObject;
747
+ }, OmittedOptions>) => Promise<string>;
748
+ writeObject: (options: Omit<{
749
+ fs: git.FsClient;
750
+ dir?: string | undefined;
751
+ gitdir?: string | undefined;
752
+ object: string | Uint8Array | git.CommitObject | git.TreeObject | git.TagObject;
753
+ type?: "blob" | "commit" | "tree" | "tag" | undefined;
754
+ format?: "content" | "parsed" | "deflated" | "wrapped" | undefined;
755
+ oid?: string | undefined;
756
+ encoding?: string | undefined;
757
+ }, OmittedOptions>) => Promise<string>;
758
+ writeRef: (options: Omit<{
759
+ fs: git.FsClient;
760
+ dir?: string | undefined;
761
+ gitdir?: string | undefined;
762
+ ref: string;
763
+ value: string;
764
+ force?: boolean | undefined;
765
+ symbolic?: boolean | undefined;
766
+ }, OmittedOptions>) => Promise<void>;
767
+ writeTag: (options: Omit<{
768
+ fs: git.FsClient;
769
+ dir?: string | undefined;
770
+ gitdir?: string | undefined;
771
+ tag: git.TagObject;
772
+ }, OmittedOptions>) => Promise<string>;
773
+ writeTree: (options: Omit<{
774
+ fs: git.FsClient;
775
+ dir?: string | undefined;
776
+ gitdir?: string | undefined;
777
+ tree: git.TreeObject;
778
+ }, OmittedOptions>) => Promise<string>;
779
+ updateIndex: (options: Omit<{
780
+ fs: git.FsClient;
781
+ dir: string;
782
+ gitdir?: string | undefined;
783
+ filepath: string;
784
+ oid?: string | undefined;
785
+ mode?: number | undefined;
786
+ add?: boolean | undefined;
787
+ remove?: boolean | undefined;
788
+ force?: boolean | undefined;
789
+ cache?: object;
790
+ }, OmittedOptions>) => Promise<string | void>;
791
+ };
792
+ //# sourceMappingURL=git-types.d.ts.map