type-git 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -6
- package/dist/adapters/node/index.d.ts +67 -5
- package/dist/adapters/node/index.d.ts.map +1 -1
- package/dist/adapters/node/index.js +54 -7
- package/dist/adapters/node/index.js.map +1 -1
- package/dist/core/git.d.ts +280 -14
- package/dist/core/git.d.ts.map +1 -1
- package/dist/core/repo.d.ts +1738 -48
- package/dist/core/repo.d.ts.map +1 -1
- package/dist/core/types.d.ts +5 -1
- package/dist/core/types.d.ts.map +1 -1
- package/dist/core/types.js.map +1 -1
- package/dist/impl/bare-repo-impl.d.ts +19 -0
- package/dist/impl/bare-repo-impl.d.ts.map +1 -1
- package/dist/impl/bare-repo-impl.js +123 -5
- package/dist/impl/bare-repo-impl.js.map +1 -1
- package/dist/impl/git-impl.d.ts +38 -5
- package/dist/impl/git-impl.d.ts.map +1 -1
- package/dist/impl/git-impl.js +221 -17
- package/dist/impl/git-impl.js.map +1 -1
- package/dist/impl/worktree-repo-impl.d.ts +48 -2
- package/dist/impl/worktree-repo-impl.d.ts.map +1 -1
- package/dist/impl/worktree-repo-impl.js +1984 -28
- package/dist/impl/worktree-repo-impl.js.map +1 -1
- package/package.json +7 -2
package/README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Type-safe Git wrapper library with LFS support, progress tracking, and abort control for Node.js/Deno/Bun.
|
|
4
4
|
|
|
5
|
+
(To be honest, I wrote the entire code with Claude Code. But it works appropriately.)
|
|
6
|
+
|
|
5
7
|
**[Documentation](https://ash-r1.github.io/type-git/)** | **[API Reference](https://ash-r1.github.io/type-git/api/readme/)**
|
|
6
8
|
|
|
7
9
|
## Features
|
|
@@ -117,12 +119,7 @@ src/
|
|
|
117
119
|
|
|
118
120
|
## Development Status
|
|
119
121
|
|
|
120
|
-
This library is currently in early development (v0.1
|
|
121
|
-
|
|
122
|
-
- Core adapter interfaces (ExecAdapter, FsAdapter)
|
|
123
|
-
- Basic Git operations (clone, init, status, log, fetch, push)
|
|
124
|
-
- LFS support with progress tracking
|
|
125
|
-
- AbortSignal integration
|
|
122
|
+
This library is currently in early development (v0.0.1). It's not tested well. Especially, on Bun/Deno.
|
|
126
123
|
|
|
127
124
|
## License
|
|
128
125
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Node.js adapter exports
|
|
3
3
|
*/
|
|
4
4
|
import type { RuntimeAdapters } from '../../core/adapters.js';
|
|
5
|
-
import type { CloneOpts, InitOpts, LsRemoteOpts, LsRemoteResult } from '../../core/git.js';
|
|
5
|
+
import type { CloneOpts, GlobalConfigOperations, GlobalLfsOperations, InitOpts, LsRemoteOpts, LsRemoteResult } from '../../core/git.js';
|
|
6
6
|
import type { BareRepo, WorktreeRepo } from '../../core/repo.js';
|
|
7
7
|
import type { ExecOpts, GitOpenOptions, RawResult } from '../../core/types.js';
|
|
8
8
|
import { type CreateGitOptions } from '../../impl/git-impl.js';
|
|
@@ -34,17 +34,53 @@ export declare class TypeGit {
|
|
|
34
34
|
private readonly git;
|
|
35
35
|
constructor(options?: TypeGitOptions);
|
|
36
36
|
/**
|
|
37
|
-
* Open an existing repository
|
|
37
|
+
* Open an existing worktree repository
|
|
38
|
+
*
|
|
39
|
+
* This is the most common use case. Throws GitError if the repository is bare.
|
|
40
|
+
*
|
|
41
|
+
* @throws GitError with kind 'NotWorktreeRepo' if the repository is bare
|
|
38
42
|
*/
|
|
39
|
-
get open(): (path: string, opts?: GitOpenOptions) => Promise<WorktreeRepo
|
|
43
|
+
get open(): (path: string, opts?: GitOpenOptions) => Promise<WorktreeRepo>;
|
|
44
|
+
/**
|
|
45
|
+
* Open an existing bare repository
|
|
46
|
+
*
|
|
47
|
+
* Throws GitError if the repository is not bare.
|
|
48
|
+
*
|
|
49
|
+
* @throws GitError with kind 'NotBareRepo' if the repository is not bare
|
|
50
|
+
*/
|
|
51
|
+
get openBare(): (path: string, opts?: GitOpenOptions) => Promise<BareRepo>;
|
|
52
|
+
/**
|
|
53
|
+
* Open an existing repository without type guarantee
|
|
54
|
+
*
|
|
55
|
+
* Returns either WorktreeRepo or BareRepo depending on the repository type.
|
|
56
|
+
* Use this when you don't know the repository type at compile time.
|
|
57
|
+
*/
|
|
58
|
+
get openRaw(): (path: string, opts?: GitOpenOptions) => Promise<WorktreeRepo | BareRepo>;
|
|
40
59
|
/**
|
|
41
60
|
* Clone a repository
|
|
61
|
+
*
|
|
62
|
+
* The return type depends on the `bare` or `mirror` option:
|
|
63
|
+
* - `{ bare: true }` or `{ mirror: true }` → `BareRepo`
|
|
64
|
+
* - Otherwise → `WorktreeRepo`
|
|
42
65
|
*/
|
|
43
|
-
|
|
66
|
+
clone(url: string, path: string, opts: CloneOpts & {
|
|
67
|
+
bare: true;
|
|
68
|
+
} & ExecOpts): Promise<BareRepo>;
|
|
69
|
+
clone(url: string, path: string, opts: CloneOpts & {
|
|
70
|
+
mirror: true;
|
|
71
|
+
} & ExecOpts): Promise<BareRepo>;
|
|
72
|
+
clone(url: string, path: string, opts?: CloneOpts & ExecOpts): Promise<WorktreeRepo>;
|
|
44
73
|
/**
|
|
45
74
|
* Initialize a new repository
|
|
75
|
+
*
|
|
76
|
+
* The return type depends on the `bare` option:
|
|
77
|
+
* - `{ bare: true }` → `BareRepo`
|
|
78
|
+
* - Otherwise → `WorktreeRepo`
|
|
46
79
|
*/
|
|
47
|
-
|
|
80
|
+
init(path: string, opts: InitOpts & {
|
|
81
|
+
bare: true;
|
|
82
|
+
} & ExecOpts): Promise<BareRepo>;
|
|
83
|
+
init(path: string, opts?: InitOpts & ExecOpts): Promise<WorktreeRepo>;
|
|
48
84
|
/**
|
|
49
85
|
* List references in a remote repository
|
|
50
86
|
*/
|
|
@@ -57,5 +93,31 @@ export declare class TypeGit {
|
|
|
57
93
|
* Execute a raw git command (repository-agnostic)
|
|
58
94
|
*/
|
|
59
95
|
get raw(): (argv: Array<string>, opts?: ExecOpts) => Promise<RawResult>;
|
|
96
|
+
/**
|
|
97
|
+
* Global config operations
|
|
98
|
+
*
|
|
99
|
+
* Operates on ~/.gitconfig (user-level configuration).
|
|
100
|
+
* For repository-level config, use repo.config instead.
|
|
101
|
+
*/
|
|
102
|
+
get config(): GlobalConfigOperations;
|
|
103
|
+
/**
|
|
104
|
+
* Global LFS operations
|
|
105
|
+
*
|
|
106
|
+
* Operates on ~/.gitconfig (user-level) or /etc/gitconfig (system-level).
|
|
107
|
+
* For repository-level LFS operations, use repo.lfs instead.
|
|
108
|
+
*
|
|
109
|
+
* @example
|
|
110
|
+
* ```typescript
|
|
111
|
+
* // Install LFS globally
|
|
112
|
+
* await git.lfs.install();
|
|
113
|
+
*
|
|
114
|
+
* // Install system-wide
|
|
115
|
+
* await git.lfs.install({ system: true });
|
|
116
|
+
*
|
|
117
|
+
* // Get LFS version
|
|
118
|
+
* const version = await git.lfs.version();
|
|
119
|
+
* ```
|
|
120
|
+
*/
|
|
121
|
+
get lfs(): GlobalLfsOperations;
|
|
60
122
|
}
|
|
61
123
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/adapters/node/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/adapters/node/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,EACV,SAAS,EAET,sBAAsB,EACtB,mBAAmB,EACnB,QAAQ,EACR,YAAY,EACZ,cAAc,EACf,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACjE,O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OAAO,CAAC,QAAQ,CAAC;IACb,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC,YAAY,CAAC;IAS3F;;;;;;OAMG;IACI,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,GAAG;QAAE,IAAI,EAAE,IAAI,CAAA;KAAE,GAAG,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC;IACjF,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC,YAAY,CAAC;IAK5E;;OAEG;IACH,IAAW,QAAQ,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,YAAY,GAAG,QAAQ,KAAK,OAAO,CAAC,cAAc,CAAC,CAE9F;IAED;;OAEG;IACH,IAAW,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,QAAQ,KAAK,OAAO,CAAC,MAAM,CAAC,CAEzD;IAED;;OAEG;IACH,IAAW,GAAG,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC,EAAE,QAAQ,KAAK,OAAO,CAAC,SAAS,CAAC,CAE7E;IAED;;;;;OAKG;IACH,IAAW,MAAM,IAAI,sBAAsB,CAE1C;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,IAAW,GAAG,IAAI,mBAAmB,CAEpC;CACF"}
|
|
@@ -37,22 +37,39 @@ export class TypeGit {
|
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
39
|
/**
|
|
40
|
-
* Open an existing repository
|
|
40
|
+
* Open an existing worktree repository
|
|
41
|
+
*
|
|
42
|
+
* This is the most common use case. Throws GitError if the repository is bare.
|
|
43
|
+
*
|
|
44
|
+
* @throws GitError with kind 'NotWorktreeRepo' if the repository is bare
|
|
41
45
|
*/
|
|
42
46
|
get open() {
|
|
43
47
|
return this.git.open.bind(this.git);
|
|
44
48
|
}
|
|
45
49
|
/**
|
|
46
|
-
*
|
|
50
|
+
* Open an existing bare repository
|
|
51
|
+
*
|
|
52
|
+
* Throws GitError if the repository is not bare.
|
|
53
|
+
*
|
|
54
|
+
* @throws GitError with kind 'NotBareRepo' if the repository is not bare
|
|
47
55
|
*/
|
|
48
|
-
get
|
|
49
|
-
return this.git.
|
|
56
|
+
get openBare() {
|
|
57
|
+
return this.git.openBare.bind(this.git);
|
|
50
58
|
}
|
|
51
59
|
/**
|
|
52
|
-
*
|
|
60
|
+
* Open an existing repository without type guarantee
|
|
61
|
+
*
|
|
62
|
+
* Returns either WorktreeRepo or BareRepo depending on the repository type.
|
|
63
|
+
* Use this when you don't know the repository type at compile time.
|
|
53
64
|
*/
|
|
54
|
-
get
|
|
55
|
-
return this.git.
|
|
65
|
+
get openRaw() {
|
|
66
|
+
return this.git.openRaw.bind(this.git);
|
|
67
|
+
}
|
|
68
|
+
clone(url, path, opts) {
|
|
69
|
+
return this.git.clone(url, path, opts);
|
|
70
|
+
}
|
|
71
|
+
init(path, opts) {
|
|
72
|
+
return this.git.init(path, opts);
|
|
56
73
|
}
|
|
57
74
|
/**
|
|
58
75
|
* List references in a remote repository
|
|
@@ -72,5 +89,35 @@ export class TypeGit {
|
|
|
72
89
|
get raw() {
|
|
73
90
|
return this.git.raw.bind(this.git);
|
|
74
91
|
}
|
|
92
|
+
/**
|
|
93
|
+
* Global config operations
|
|
94
|
+
*
|
|
95
|
+
* Operates on ~/.gitconfig (user-level configuration).
|
|
96
|
+
* For repository-level config, use repo.config instead.
|
|
97
|
+
*/
|
|
98
|
+
get config() {
|
|
99
|
+
return this.git.config;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Global LFS operations
|
|
103
|
+
*
|
|
104
|
+
* Operates on ~/.gitconfig (user-level) or /etc/gitconfig (system-level).
|
|
105
|
+
* For repository-level LFS operations, use repo.lfs instead.
|
|
106
|
+
*
|
|
107
|
+
* @example
|
|
108
|
+
* ```typescript
|
|
109
|
+
* // Install LFS globally
|
|
110
|
+
* await git.lfs.install();
|
|
111
|
+
*
|
|
112
|
+
* // Install system-wide
|
|
113
|
+
* await git.lfs.install({ system: true });
|
|
114
|
+
*
|
|
115
|
+
* // Get LFS version
|
|
116
|
+
* const version = await git.lfs.version();
|
|
117
|
+
* ```
|
|
118
|
+
*/
|
|
119
|
+
get lfs() {
|
|
120
|
+
return this.git.lfs;
|
|
121
|
+
}
|
|
75
122
|
}
|
|
76
123
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/adapters/node/index.ts"],"names":[],"mappings":"AAAA;;GAEG;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/adapters/node/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAcH,OAAO,EAAyB,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExC,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExC;;GAEG;AACH,MAAM,UAAU,kBAAkB;IAChC,OAAO;QACL,IAAI,EAAE,IAAI,eAAe,EAAE;QAC3B,EAAE,EAAE,IAAI,aAAa,EAAE;KACxB,CAAC;AACJ,CAAC;AAQD;;;;;;;;;;;;GAYG;AACH,MAAM,OAAO,OAAO;IACD,GAAG,CAAM;IAE1B,YAAmB,OAAwB;QACzC,IAAI,CAAC,GAAG,GAAG,SAAS,CAAC;YACnB,GAAG,OAAO;YACV,QAAQ,EAAE,kBAAkB,EAAE;SAC/B,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACH,IAAW,IAAI;QACb,OAAO,IAAI,CA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CACF"}
|
package/dist/core/git.d.ts
CHANGED
|
@@ -21,6 +21,52 @@ export type CloneOpts = {
|
|
|
21
21
|
* @default true
|
|
22
22
|
*/
|
|
23
23
|
cleanupOnAbort?: boolean;
|
|
24
|
+
/** Be more verbose */
|
|
25
|
+
verbose?: boolean;
|
|
26
|
+
/** Operate quietly (suppress progress reporting) */
|
|
27
|
+
quiet?: boolean;
|
|
28
|
+
/** Reject cloning a shallow repository */
|
|
29
|
+
rejectShallow?: boolean;
|
|
30
|
+
/** Clone from a local repository (use hard links) */
|
|
31
|
+
local?: boolean;
|
|
32
|
+
/** Don't use hard links for local clone */
|
|
33
|
+
noHardlinks?: boolean;
|
|
34
|
+
/** Share objects with a reference repository */
|
|
35
|
+
shared?: boolean;
|
|
36
|
+
/** Number of submodules to clone in parallel */
|
|
37
|
+
jobs?: number;
|
|
38
|
+
/** Directory with templates for the new repository */
|
|
39
|
+
template?: string;
|
|
40
|
+
/** Reference repository for object sharing */
|
|
41
|
+
reference?: string;
|
|
42
|
+
/** Reference repository if available (no error if not) */
|
|
43
|
+
referenceIfAble?: string;
|
|
44
|
+
/** Disconnect from reference repository after clone */
|
|
45
|
+
dissociate?: boolean;
|
|
46
|
+
/** Name of the remote (default: origin) */
|
|
47
|
+
origin?: string;
|
|
48
|
+
/** Create a shallow clone with commits since the specified date */
|
|
49
|
+
shallowSince?: string | Date;
|
|
50
|
+
/** Create a shallow clone excluding commits reachable from specified revision */
|
|
51
|
+
shallowExclude?: string | Array<string>;
|
|
52
|
+
/** Don't clone any tags, and make later fetches not follow them */
|
|
53
|
+
noTags?: boolean;
|
|
54
|
+
/** Also clone submodules shallowly */
|
|
55
|
+
shallowSubmodules?: boolean;
|
|
56
|
+
/** Set config options for the new repository */
|
|
57
|
+
config?: Record<string, string>;
|
|
58
|
+
/** Use IPv4 addresses only */
|
|
59
|
+
ipv4?: boolean;
|
|
60
|
+
/** Use IPv6 addresses only */
|
|
61
|
+
ipv6?: boolean;
|
|
62
|
+
/** A partial clone filter specification (e.g., 'blob:none') */
|
|
63
|
+
filter?: string;
|
|
64
|
+
/** Also apply the partial clone filter to submodules */
|
|
65
|
+
alsoFilterSubmodules?: boolean;
|
|
66
|
+
/** Clone submodules from their remote tracking branch */
|
|
67
|
+
remoteSubmodules?: boolean;
|
|
68
|
+
/** Initialize sparse-checkout (clone only root files initially) */
|
|
69
|
+
sparse?: boolean;
|
|
24
70
|
};
|
|
25
71
|
/**
|
|
26
72
|
* Options for git init
|
|
@@ -35,14 +81,36 @@ export type InitOpts = {
|
|
|
35
81
|
* @default true
|
|
36
82
|
*/
|
|
37
83
|
cleanupOnAbort?: boolean;
|
|
84
|
+
/** Directory with templates for the new repository */
|
|
85
|
+
template?: string;
|
|
86
|
+
/**
|
|
87
|
+
* Set repository sharing level
|
|
88
|
+
* - 'group': Group writable
|
|
89
|
+
* - 'all'/'world'/'everybody': World readable
|
|
90
|
+
* - number: Octal permissions
|
|
91
|
+
*/
|
|
92
|
+
shared?: boolean | 'group' | 'all' | 'world' | 'everybody' | number;
|
|
93
|
+
/** Operate quietly (suppress output) */
|
|
94
|
+
quiet?: boolean;
|
|
95
|
+
/** Specify the hash algorithm to use (sha1 or sha256) */
|
|
96
|
+
objectFormat?: 'sha1' | 'sha256';
|
|
38
97
|
};
|
|
39
98
|
/**
|
|
40
99
|
* Options for git ls-remote
|
|
41
100
|
*/
|
|
42
101
|
export type LsRemoteOpts = {
|
|
102
|
+
/** Limit to refs/heads (branches) */
|
|
43
103
|
heads?: boolean;
|
|
104
|
+
/** Limit to refs/tags */
|
|
44
105
|
tags?: boolean;
|
|
106
|
+
/** Show only actual refs (not peeled tags) */
|
|
45
107
|
refs?: boolean;
|
|
108
|
+
/** Show remote URL instead of listing refs */
|
|
109
|
+
getUrl?: boolean;
|
|
110
|
+
/** Sort refs by the given key (e.g., 'version:refname') */
|
|
111
|
+
sort?: string;
|
|
112
|
+
/** Show symbolic refs in addition to object refs */
|
|
113
|
+
symref?: boolean;
|
|
46
114
|
};
|
|
47
115
|
/**
|
|
48
116
|
* Result from git ls-remote
|
|
@@ -53,6 +121,112 @@ export type LsRemoteResult = {
|
|
|
53
121
|
name: string;
|
|
54
122
|
}>;
|
|
55
123
|
};
|
|
124
|
+
/**
|
|
125
|
+
* Options for global LFS install
|
|
126
|
+
*
|
|
127
|
+
* Used with `git.lfs.install()` for user-level (~/.gitconfig) or
|
|
128
|
+
* system-level (/etc/gitconfig) LFS configuration.
|
|
129
|
+
*
|
|
130
|
+
* @remarks
|
|
131
|
+
* Internally runs `git lfs install` without `--local` flag.
|
|
132
|
+
* For repository-level installation, use `repo.lfs.install()` instead.
|
|
133
|
+
*/
|
|
134
|
+
export type GlobalLfsInstallOpts = {
|
|
135
|
+
/** Overwrite existing hooks */
|
|
136
|
+
force?: boolean;
|
|
137
|
+
/**
|
|
138
|
+
* Install for all users (system-wide)
|
|
139
|
+
*
|
|
140
|
+
* @remarks
|
|
141
|
+
* Internally adds `--system` flag to install to /etc/gitconfig
|
|
142
|
+
* instead of ~/.gitconfig. Requires appropriate permissions.
|
|
143
|
+
*/
|
|
144
|
+
system?: boolean;
|
|
145
|
+
/** Skip smudge filter (don't download during checkout) */
|
|
146
|
+
skipSmudge?: boolean;
|
|
147
|
+
/** Skip repository setup (only install filters) */
|
|
148
|
+
skipRepo?: boolean;
|
|
149
|
+
/** Print commands instead of executing */
|
|
150
|
+
manual?: boolean;
|
|
151
|
+
};
|
|
152
|
+
/**
|
|
153
|
+
* Options for global LFS uninstall
|
|
154
|
+
*
|
|
155
|
+
* Used with `git.lfs.uninstall()` for user-level or system-level
|
|
156
|
+
* LFS configuration removal.
|
|
157
|
+
*
|
|
158
|
+
* @remarks
|
|
159
|
+
* Internally runs `git lfs uninstall` without `--local` flag.
|
|
160
|
+
* For repository-level uninstallation, use `repo.lfs.uninstall()` instead.
|
|
161
|
+
*/
|
|
162
|
+
export type GlobalLfsUninstallOpts = {
|
|
163
|
+
/**
|
|
164
|
+
* Uninstall for all users (system-wide)
|
|
165
|
+
*
|
|
166
|
+
* @remarks
|
|
167
|
+
* Internally adds `--system` flag to modify /etc/gitconfig
|
|
168
|
+
* instead of ~/.gitconfig. Requires appropriate permissions.
|
|
169
|
+
*/
|
|
170
|
+
system?: boolean;
|
|
171
|
+
/** Skip repository cleanup */
|
|
172
|
+
skipRepo?: boolean;
|
|
173
|
+
};
|
|
174
|
+
/**
|
|
175
|
+
* Global LFS operations
|
|
176
|
+
*
|
|
177
|
+
* Wraps: `git lfs` subcommands for user-level configuration
|
|
178
|
+
*
|
|
179
|
+
* Operates on ~/.gitconfig (user-level) or /etc/gitconfig (system-level).
|
|
180
|
+
* For repository-level LFS operations, use repo.lfs instead.
|
|
181
|
+
*/
|
|
182
|
+
export interface GlobalLfsOperations {
|
|
183
|
+
/**
|
|
184
|
+
* Install Git LFS hooks globally
|
|
185
|
+
*
|
|
186
|
+
* Wraps: `git lfs install`
|
|
187
|
+
*
|
|
188
|
+
* Sets up the clean and smudge filters under the name "lfs" in the
|
|
189
|
+
* global Git config (~/.gitconfig) or system config (/etc/gitconfig).
|
|
190
|
+
*
|
|
191
|
+
* @example
|
|
192
|
+
* ```typescript
|
|
193
|
+
* // Install globally (to ~/.gitconfig)
|
|
194
|
+
* await git.lfs.install();
|
|
195
|
+
*
|
|
196
|
+
* // Install system-wide (to /etc/gitconfig)
|
|
197
|
+
* await git.lfs.install({ system: true });
|
|
198
|
+
*
|
|
199
|
+
* // Install with skip-smudge (manual LFS pull required)
|
|
200
|
+
* await git.lfs.install({ skipSmudge: true });
|
|
201
|
+
* ```
|
|
202
|
+
*/
|
|
203
|
+
install(opts?: GlobalLfsInstallOpts & ExecOpts): Promise<void>;
|
|
204
|
+
/**
|
|
205
|
+
* Uninstall Git LFS hooks globally
|
|
206
|
+
*
|
|
207
|
+
* Wraps: `git lfs uninstall`
|
|
208
|
+
*
|
|
209
|
+
* Removes the clean and smudge filters from global or system config.
|
|
210
|
+
*
|
|
211
|
+
* @example
|
|
212
|
+
* ```typescript
|
|
213
|
+
* // Uninstall from global config
|
|
214
|
+
* await git.lfs.uninstall();
|
|
215
|
+
*
|
|
216
|
+
* // Uninstall from system config
|
|
217
|
+
* await git.lfs.uninstall({ system: true });
|
|
218
|
+
* ```
|
|
219
|
+
*/
|
|
220
|
+
uninstall(opts?: GlobalLfsUninstallOpts & ExecOpts): Promise<void>;
|
|
221
|
+
/**
|
|
222
|
+
* Get Git LFS version
|
|
223
|
+
*
|
|
224
|
+
* Wraps: `git lfs version`
|
|
225
|
+
*
|
|
226
|
+
* @returns LFS version string (e.g., "git-lfs/3.4.0")
|
|
227
|
+
*/
|
|
228
|
+
version(opts?: ExecOpts): Promise<string>;
|
|
229
|
+
}
|
|
56
230
|
/**
|
|
57
231
|
* Options for global config list
|
|
58
232
|
*/
|
|
@@ -63,7 +237,9 @@ export type GlobalConfigListOpts = {
|
|
|
63
237
|
showScope?: boolean;
|
|
64
238
|
};
|
|
65
239
|
/**
|
|
66
|
-
* Global config operations
|
|
240
|
+
* Global config operations
|
|
241
|
+
*
|
|
242
|
+
* Wraps: `git config --global` subcommands
|
|
67
243
|
*
|
|
68
244
|
* Operates on ~/.gitconfig (user-level configuration).
|
|
69
245
|
* Uses the same typed ConfigSchema as repository-level config.
|
|
@@ -71,90 +247,180 @@ export type GlobalConfigListOpts = {
|
|
|
71
247
|
export interface GlobalConfigOperations {
|
|
72
248
|
/**
|
|
73
249
|
* Get a typed global config value
|
|
74
|
-
*
|
|
250
|
+
*
|
|
251
|
+
* Wraps: `git config --global --get <key>`
|
|
252
|
+
*
|
|
253
|
+
* @returns Config value or undefined if not set
|
|
75
254
|
*/
|
|
76
255
|
get<K extends ConfigKey>(key: K, opts?: ExecOpts): Promise<ConfigSchema[K] | undefined>;
|
|
77
256
|
/**
|
|
78
257
|
* Get all values for a typed multi-valued global config key
|
|
258
|
+
*
|
|
259
|
+
* Wraps: `git config --global --get-all <key>`
|
|
79
260
|
*/
|
|
80
261
|
getAll<K extends ConfigKey>(key: K, opts?: ExecOpts): Promise<Array<ConfigSchema[K]>>;
|
|
81
262
|
/**
|
|
82
263
|
* Set a typed global config value
|
|
264
|
+
*
|
|
265
|
+
* Wraps: `git config --global <key> <value>`
|
|
83
266
|
*/
|
|
84
267
|
set<K extends ConfigKey>(key: K, value: ConfigSchema[K], opts?: ExecOpts): Promise<void>;
|
|
85
268
|
/**
|
|
86
269
|
* Add a value to a typed multi-valued global config key
|
|
270
|
+
*
|
|
271
|
+
* Wraps: `git config --global --add <key> <value>`
|
|
87
272
|
*/
|
|
88
273
|
add<K extends ConfigKey>(key: K, value: ConfigSchema[K], opts?: ExecOpts): Promise<void>;
|
|
89
274
|
/**
|
|
90
275
|
* Unset a typed global config value
|
|
276
|
+
*
|
|
277
|
+
* Wraps: `git config --global --unset <key>`
|
|
91
278
|
*/
|
|
92
279
|
unset<K extends ConfigKey>(key: K, opts?: ExecOpts): Promise<void>;
|
|
93
280
|
/**
|
|
94
281
|
* Get a raw global config value (for arbitrary keys)
|
|
95
|
-
*
|
|
282
|
+
*
|
|
283
|
+
* Wraps: `git config --global --get <key>`
|
|
284
|
+
*
|
|
285
|
+
* @returns Config value or undefined if not set
|
|
96
286
|
*/
|
|
97
287
|
getRaw(key: string, opts?: ConfigGetOpts & ExecOpts): Promise<string | Array<string> | undefined>;
|
|
98
288
|
/**
|
|
99
289
|
* Set a raw global config value (for arbitrary keys)
|
|
290
|
+
*
|
|
291
|
+
* Wraps: `git config --global <key> <value>`
|
|
100
292
|
*/
|
|
101
293
|
setRaw(key: string, value: string, opts?: ConfigSetOpts & ExecOpts): Promise<void>;
|
|
102
294
|
/**
|
|
103
295
|
* Unset a raw global config value (for arbitrary keys)
|
|
296
|
+
*
|
|
297
|
+
* Wraps: `git config --global --unset <key>`
|
|
104
298
|
*/
|
|
105
299
|
unsetRaw(key: string, opts?: ExecOpts): Promise<void>;
|
|
106
300
|
/**
|
|
107
301
|
* List all global config values
|
|
302
|
+
*
|
|
303
|
+
* Wraps: `git config --global --list`
|
|
108
304
|
*/
|
|
109
305
|
list(opts?: GlobalConfigListOpts & ExecOpts): Promise<Array<ConfigEntry>>;
|
|
110
306
|
}
|
|
111
307
|
/**
|
|
112
308
|
* Main Git interface for repository-agnostic operations
|
|
113
309
|
*
|
|
114
|
-
*
|
|
115
|
-
*
|
|
116
|
-
* - §6.3: open() with environment isolation options
|
|
310
|
+
* Provides type-safe wrappers for Git commands that don't require a repository context.
|
|
311
|
+
* Each method corresponds to a specific Git CLI command.
|
|
117
312
|
*/
|
|
118
313
|
export interface Git {
|
|
119
314
|
/**
|
|
120
|
-
* Open an existing repository
|
|
315
|
+
* Open an existing worktree repository
|
|
316
|
+
*
|
|
317
|
+
* This is the most common use case. Throws GitError if the repository is bare.
|
|
318
|
+
*
|
|
319
|
+
* @param path - Path to the repository working directory
|
|
320
|
+
* @param opts - Environment isolation and credential options
|
|
321
|
+
* @returns WorktreeRepo
|
|
322
|
+
* @throws GitError with kind 'NotWorktreeRepo' if the repository is bare
|
|
323
|
+
*/
|
|
324
|
+
open(path: string, opts?: GitOpenOptions): Promise<WorktreeRepo>;
|
|
325
|
+
/**
|
|
326
|
+
* Open an existing bare repository
|
|
327
|
+
*
|
|
328
|
+
* Throws GitError if the repository is not bare.
|
|
329
|
+
*
|
|
330
|
+
* @param path - Path to the bare repository (git-dir)
|
|
331
|
+
* @param opts - Environment isolation and credential options
|
|
332
|
+
* @returns BareRepo
|
|
333
|
+
* @throws GitError with kind 'NotBareRepo' if the repository is not bare
|
|
334
|
+
*/
|
|
335
|
+
openBare(path: string, opts?: GitOpenOptions): Promise<BareRepo>;
|
|
336
|
+
/**
|
|
337
|
+
* Open an existing repository without type guarantee
|
|
338
|
+
*
|
|
339
|
+
* Returns either WorktreeRepo or BareRepo depending on the repository type.
|
|
340
|
+
* Use this when you don't know the repository type at compile time.
|
|
341
|
+
* You can use `isWorktree()` or `isBare()` methods for runtime type checking.
|
|
121
342
|
*
|
|
122
343
|
* @param path - Path to the repository (workdir or git-dir)
|
|
123
344
|
* @param opts - Environment isolation and credential options
|
|
124
345
|
* @returns WorktreeRepo or BareRepo depending on repository type
|
|
346
|
+
*
|
|
347
|
+
* @example
|
|
348
|
+
* ```typescript
|
|
349
|
+
* const repo = await git.openRaw('/path/to/repo');
|
|
350
|
+
* if (await repo.isWorktree()) {
|
|
351
|
+
* // repo is WorktreeRepo at runtime
|
|
352
|
+
* const status = await (repo as WorktreeRepo).status();
|
|
353
|
+
* } else if (await repo.isBare()) {
|
|
354
|
+
* // repo is BareRepo at runtime
|
|
355
|
+
* await (repo as BareRepo).fetch({ remote: 'origin' });
|
|
356
|
+
* }
|
|
357
|
+
* ```
|
|
125
358
|
*/
|
|
126
|
-
|
|
359
|
+
openRaw(path: string, opts?: GitOpenOptions): Promise<WorktreeRepo | BareRepo>;
|
|
127
360
|
/**
|
|
128
361
|
* Clone a repository
|
|
129
362
|
*
|
|
130
|
-
*
|
|
131
|
-
*
|
|
363
|
+
* Wraps: `git clone <url> <path>`
|
|
364
|
+
*
|
|
365
|
+
* The return type depends on the `bare` or `mirror` option:
|
|
366
|
+
* - `{ bare: true }` or `{ mirror: true }` → `BareRepo`
|
|
367
|
+
* - Otherwise → `WorktreeRepo`
|
|
132
368
|
*/
|
|
133
|
-
clone(url: string, path: string, opts
|
|
369
|
+
clone(url: string, path: string, opts: CloneOpts & {
|
|
370
|
+
bare: true;
|
|
371
|
+
} & ExecOpts): Promise<BareRepo>;
|
|
372
|
+
clone(url: string, path: string, opts: CloneOpts & {
|
|
373
|
+
mirror: true;
|
|
374
|
+
} & ExecOpts): Promise<BareRepo>;
|
|
375
|
+
clone(url: string, path: string, opts?: CloneOpts & ExecOpts): Promise<WorktreeRepo>;
|
|
134
376
|
/**
|
|
135
377
|
* Initialize a new repository
|
|
136
378
|
*
|
|
137
|
-
*
|
|
379
|
+
* Wraps: `git init <path>`
|
|
380
|
+
*
|
|
381
|
+
* The return type depends on the `bare` option:
|
|
382
|
+
* - `{ bare: true }` → `BareRepo`
|
|
383
|
+
* - Otherwise → `WorktreeRepo`
|
|
138
384
|
*/
|
|
139
|
-
init(path: string, opts
|
|
385
|
+
init(path: string, opts: InitOpts & {
|
|
386
|
+
bare: true;
|
|
387
|
+
} & ExecOpts): Promise<BareRepo>;
|
|
388
|
+
init(path: string, opts?: InitOpts & ExecOpts): Promise<WorktreeRepo>;
|
|
140
389
|
/**
|
|
141
390
|
* List references in a remote repository
|
|
391
|
+
*
|
|
392
|
+
* Wraps: `git ls-remote <url>`
|
|
142
393
|
*/
|
|
143
394
|
lsRemote(url: string, opts?: LsRemoteOpts & ExecOpts): Promise<LsRemoteResult>;
|
|
144
395
|
/**
|
|
145
396
|
* Get git version
|
|
397
|
+
*
|
|
398
|
+
* Wraps: `git --version`
|
|
146
399
|
*/
|
|
147
400
|
version(opts?: ExecOpts): Promise<string>;
|
|
148
401
|
/**
|
|
149
402
|
* Execute a raw git command (repository-agnostic)
|
|
403
|
+
*
|
|
404
|
+
* Wraps: `git <argv...>`
|
|
150
405
|
*/
|
|
151
406
|
raw(argv: Array<string>, opts?: ExecOpts): Promise<RawResult>;
|
|
152
407
|
/**
|
|
153
|
-
* Global config operations
|
|
408
|
+
* Global config operations
|
|
409
|
+
*
|
|
410
|
+
* Wraps: `git config --global` subcommands
|
|
154
411
|
*
|
|
155
412
|
* Operates on ~/.gitconfig (user-level configuration).
|
|
156
413
|
* For repository-level config, use repo.config instead.
|
|
157
414
|
*/
|
|
158
415
|
config: GlobalConfigOperations;
|
|
416
|
+
/**
|
|
417
|
+
* Global LFS operations
|
|
418
|
+
*
|
|
419
|
+
* Wraps: `git lfs` subcommands for user-level configuration
|
|
420
|
+
*
|
|
421
|
+
* Operates on ~/.gitconfig (user-level) or /etc/gitconfig (system-level).
|
|
422
|
+
* For repository-level LFS operations, use repo.lfs instead.
|
|
423
|
+
*/
|
|
424
|
+
lfs: GlobalLfsOperations;
|
|
159
425
|
}
|
|
160
426
|
//# sourceMappingURL=git.d.ts.map
|
package/dist/core/git.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git.d.ts","sourceRoot":"","sources":["../../src/core/git.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EACV,QAAQ,EACR,WAAW,EACX,aAAa,EACb,SAAS,EACT,YAAY,EACZ,aAAa,EACb,YAAY,EACb,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEtE;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG;
|
|
1
|
+
{"version":3,"file":"git.d.ts","sourceRoot":"","sources":["../../src/core/git.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EACV,QAAQ,EACR,WAAW,EACX,aAAa,EACb,SAAS,EACT,YAAY,EACZ,aAAa,EACb,YAAY,EACb,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEtE;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG;IAEtB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,8EAA8E;IAC9E,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAGzB,sBAAsB;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,oDAAoD;IACpD,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,0CAA0C;IAC1C,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,qDAAqD;IACrD,KAAK,CAAC,EAAE,O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