type-git 0.8.2 → 0.8.3
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 -0
- package/dist/adapters/bun/index.cjs +8 -8
- package/dist/adapters/bun/index.d.cts +2 -2
- package/dist/adapters/bun/index.d.ts +2 -2
- package/dist/adapters/bun/index.js +2 -2
- package/dist/adapters/deno/index.cjs +8 -8
- package/dist/adapters/deno/index.d.cts +2 -2
- package/dist/adapters/deno/index.d.ts +2 -2
- package/dist/adapters/deno/index.js +2 -2
- package/dist/adapters/node/index.cjs +4 -4
- package/dist/adapters/node/index.d.cts +2 -2
- package/dist/adapters/node/index.d.ts +2 -2
- package/dist/adapters/node/index.js +3 -3
- package/dist/{chunk-RR5Q2UP2.js → chunk-HCQGGKTC.js} +43 -12
- package/dist/{chunk-4K65HJ37.cjs → chunk-I77B22ZE.cjs} +7 -7
- package/dist/{chunk-YCSKHC3M.js → chunk-MS6E5USB.js} +1 -1
- package/dist/{chunk-RWKMVYO5.cjs → chunk-QHIS7LHW.cjs} +53 -3
- package/dist/{chunk-SKN5H7RX.cjs → chunk-SNC324NL.cjs} +965 -934
- package/dist/{chunk-SXHFNCJZ.js → chunk-V4ZRQG3O.js} +53 -3
- package/dist/{client.d-C8wHgA_S.d.ts → client.d-ClMefrEh.d.ts} +2 -2
- package/dist/{client.d-DVs3pi2e.d.cts → client.d-Jwli7Qfw.d.cts} +2 -2
- package/dist/{git.d-CJUJ4264.d.cts → git.d-BTNkPofF.d.cts} +53 -3
- package/dist/index.cjs +4 -4
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/dist/strict/index.cjs +99 -99
- package/dist/strict/index.d.cts +1 -1
- package/dist/strict/index.js +1 -1
- package/docs/adapters.md +40 -18
- package/package.json +1 -1
|
@@ -5312,6 +5312,52 @@ import process2 from "process";
|
|
|
5312
5312
|
var FATAL_ERROR_PATTERN = /fatal:\s*(.+)/i;
|
|
5313
5313
|
var ERROR_PATTERN = /error:\s*(.+)/i;
|
|
5314
5314
|
var LINE_SEPARATOR_PATTERN = /\r|\n/;
|
|
5315
|
+
var WINDOWS_ROOTED_PATH_PATTERN = /^(?:[\\/]|[A-Za-z]:[\\/])/;
|
|
5316
|
+
function isRootedPath(path, platform = process2.platform) {
|
|
5317
|
+
return platform === "win32" ? WINDOWS_ROOTED_PATH_PATTERN.test(path) : path.startsWith("/");
|
|
5318
|
+
}
|
|
5319
|
+
function spawnCwd(context, companion) {
|
|
5320
|
+
const directory = context.type === "worktree" ? context.workdir : context.type === "bare" ? context.gitDir : void 0;
|
|
5321
|
+
if (directory === void 0) {
|
|
5322
|
+
return void 0;
|
|
5323
|
+
}
|
|
5324
|
+
return companion || isRootedPath(directory) ? directory : void 0;
|
|
5325
|
+
}
|
|
5326
|
+
var WINDOWS_SEPARATOR_PATTERN = /[\\/]/;
|
|
5327
|
+
var WINDOWS_DRIVE_PATTERN = /^[A-Za-z]:/;
|
|
5328
|
+
function anchorToCaller(path) {
|
|
5329
|
+
const windows = process2.platform === "win32";
|
|
5330
|
+
if (path === "") {
|
|
5331
|
+
return process2.cwd();
|
|
5332
|
+
}
|
|
5333
|
+
if (isRootedPath(path) || windows && WINDOWS_DRIVE_PATTERN.test(path)) {
|
|
5334
|
+
return path;
|
|
5335
|
+
}
|
|
5336
|
+
return `${process2.cwd()}${windows ? "\\" : "/"}${path}`;
|
|
5337
|
+
}
|
|
5338
|
+
var WINDOWS_QUOTED_PATTERN = /^".*"$/;
|
|
5339
|
+
function pathKeyOf(env) {
|
|
5340
|
+
return process2.platform === "win32" ? Object.keys(env).find((key) => key.toLowerCase() === "path") ?? "PATH" : "PATH";
|
|
5341
|
+
}
|
|
5342
|
+
function anchorSearchPath(env) {
|
|
5343
|
+
const windows = process2.platform === "win32";
|
|
5344
|
+
const delimiter = windows ? ";" : ":";
|
|
5345
|
+
const keys = windows ? Object.keys(env).filter((key) => key.toLowerCase() === "path") : ["PATH"];
|
|
5346
|
+
for (const key of keys) {
|
|
5347
|
+
const value = env[key];
|
|
5348
|
+
if (value === void 0) {
|
|
5349
|
+
continue;
|
|
5350
|
+
}
|
|
5351
|
+
env[key] = value.split(delimiter).map(
|
|
5352
|
+
(entry) => windows && WINDOWS_QUOTED_PATTERN.test(entry) ? entry : anchorToCaller(entry)
|
|
5353
|
+
).join(delimiter);
|
|
5354
|
+
}
|
|
5355
|
+
}
|
|
5356
|
+
function callerRelativeProgram(program, cwd) {
|
|
5357
|
+
const windows = process2.platform === "win32";
|
|
5358
|
+
const hasSeparator = windows ? WINDOWS_SEPARATOR_PATTERN.test(program) : program.includes("/");
|
|
5359
|
+
return cwd === void 0 || !hasSeparator ? program : anchorToCaller(program);
|
|
5360
|
+
}
|
|
5315
5361
|
var GIT_TRACE_PATTERN = /^\d{2}:\d{2}:\d{2}\.\d+\s+(?:trace:|[A-Za-z0-9_.-]+\.c:)/;
|
|
5316
5362
|
var TRACE_ENV_PATTERN = /^(?:GIT_TRACE\w*|GIT_CURL_VERBOSE)$/i;
|
|
5317
5363
|
function stripTraceEnv(env) {
|
|
@@ -5497,7 +5543,7 @@ var CliRunner = class _CliRunner {
|
|
|
5497
5543
|
* Build command argv based on execution context
|
|
5498
5544
|
*/
|
|
5499
5545
|
buildArgv(context, args) {
|
|
5500
|
-
const argv = [this.gitBinary];
|
|
5546
|
+
const argv = [callerRelativeProgram(this.gitBinary, spawnCwd(context, false))];
|
|
5501
5547
|
for (const parameter of this.configParameters()) {
|
|
5502
5548
|
argv.push("-c", parameter);
|
|
5503
5549
|
}
|
|
@@ -5546,7 +5592,7 @@ var CliRunner = class _CliRunner {
|
|
|
5546
5592
|
if (allPathPrefixes.length > 0) {
|
|
5547
5593
|
const isWindows = process2.platform === "win32";
|
|
5548
5594
|
const separator = isWindows ? ";" : ":";
|
|
5549
|
-
const pathKey =
|
|
5595
|
+
const pathKey = pathKeyOf(env);
|
|
5550
5596
|
const currentPath = env[pathKey] ?? "";
|
|
5551
5597
|
env[pathKey] = [...allPathPrefixes, currentPath].join(separator);
|
|
5552
5598
|
}
|
|
@@ -5822,6 +5868,10 @@ var CliRunner = class _CliRunner {
|
|
|
5822
5868
|
if (envOverride) {
|
|
5823
5869
|
applyEnvOverride(env, envOverride);
|
|
5824
5870
|
}
|
|
5871
|
+
const cwd = spawnCwd(context, executable !== void 0);
|
|
5872
|
+
if (cwd !== void 0) {
|
|
5873
|
+
anchorSearchPath(env);
|
|
5874
|
+
}
|
|
5825
5875
|
if (internal) {
|
|
5826
5876
|
stripTraceEnv(env);
|
|
5827
5877
|
}
|
|
@@ -5864,7 +5914,7 @@ var CliRunner = class _CliRunner {
|
|
|
5864
5914
|
// The env above is already fully resolved (including any inherited variables),
|
|
5865
5915
|
// so the adapter must not merge the parent environment on top of it.
|
|
5866
5916
|
inheritEnv: false,
|
|
5867
|
-
cwd
|
|
5917
|
+
cwd,
|
|
5868
5918
|
signal
|
|
5869
5919
|
},
|
|
5870
5920
|
needsStderrStreaming ? {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as Capabilities, a as CompanionExecutable, E as EnvInheritance, A as AuditConfig, b as ExecutionContext, c as ExecOpts, R as RawResult, d as GitError, G as Git, e as GitOpenOptions, W as WorktreeRepo, B as BareRepo, f as CloneOpts, I as InitOpts, L as LsRemoteOpts, g as LsRemoteResult, h as
|
|
1
|
+
import { C as Capabilities, a as CompanionExecutable, E as EnvInheritance, A as AuditConfig, b as ExecutionContext, c as ExecOpts, R as RawResult, d as GitError, G as Git, e as GitOpenOptions, W as WorktreeRepo, B as BareRepo, f as CloneOpts, I as InitOpts, L as LsRemoteOpts, g as LsRemoteResult, h as RawExecOpts, i as GlobalConfigOperations, j as GlobalLfsOperations } from './git.d-BTNkPofF.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Runtime adapter interfaces for cross-platform support (Node/Deno/Bun)
|
|
@@ -552,7 +552,7 @@ declare class GitClient implements Git {
|
|
|
552
552
|
*/
|
|
553
553
|
get version(): (opts?: ExecOpts) => Promise<string>;
|
|
554
554
|
/** Execute a raw Git command without typed argument validation. */
|
|
555
|
-
get raw(): (argv: string[], opts?:
|
|
555
|
+
get raw(): (argv: string[], opts?: RawExecOpts) => Promise<RawResult>;
|
|
556
556
|
/**
|
|
557
557
|
* Global config operations
|
|
558
558
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as Capabilities, a as CompanionExecutable, E as EnvInheritance, A as AuditConfig, b as ExecutionContext, c as ExecOpts, R as RawResult, d as GitError, G as Git, e as GitOpenOptions, W as WorktreeRepo, B as BareRepo, f as CloneOpts, I as InitOpts, L as LsRemoteOpts, g as LsRemoteResult, h as
|
|
1
|
+
import { C as Capabilities, a as CompanionExecutable, E as EnvInheritance, A as AuditConfig, b as ExecutionContext, c as ExecOpts, R as RawResult, d as GitError, G as Git, e as GitOpenOptions, W as WorktreeRepo, B as BareRepo, f as CloneOpts, I as InitOpts, L as LsRemoteOpts, g as LsRemoteResult, h as RawExecOpts, i as GlobalConfigOperations, j as GlobalLfsOperations } from './git.d-BTNkPofF.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Runtime adapter interfaces for cross-platform support (Node/Deno/Bun)
|
|
@@ -552,7 +552,7 @@ declare class GitClient implements Git {
|
|
|
552
552
|
*/
|
|
553
553
|
get version(): (opts?: ExecOpts) => Promise<string>;
|
|
554
554
|
/** Execute a raw Git command without typed argument validation. */
|
|
555
|
-
get raw(): (argv: string[], opts?:
|
|
555
|
+
get raw(): (argv: string[], opts?: RawExecOpts) => Promise<RawResult>;
|
|
556
556
|
/**
|
|
557
557
|
* Global config operations
|
|
558
558
|
*
|
|
@@ -251,6 +251,28 @@ type CommandExecOpts = ExecOpts & {
|
|
|
251
251
|
*/
|
|
252
252
|
env?: Record<string, string>;
|
|
253
253
|
};
|
|
254
|
+
/**
|
|
255
|
+
* Options for `raw()`: {@link CommandExecOpts} plus the choice to throw on failure.
|
|
256
|
+
*/
|
|
257
|
+
type RawExecOpts = CommandExecOpts & {
|
|
258
|
+
/**
|
|
259
|
+
* Throw a {@link GitError} when Git exits non-zero (or the call is aborted or killed by a
|
|
260
|
+
* signal) instead of returning the result. The error is built the same way as for typed
|
|
261
|
+
* operations: `kind` and `category` come from stderr, and `context` holds `argv`, `exitCode`,
|
|
262
|
+
* `signal`, `stdout`, `stderr`, and `workdir` / `gitDir`. Default `false`: `raw()` returns
|
|
263
|
+
* every result and leaves `exitCode` to the caller. Only a boolean is accepted.
|
|
264
|
+
*
|
|
265
|
+
* Some commands exit with 1 as an answer rather than a failure, such as `diff --exit-code`
|
|
266
|
+
* when there are differences or `config --get` for a missing key. With this option those
|
|
267
|
+
* throw too (kind `NonZeroExit`, often with empty stderr), so leave it off for such commands.
|
|
268
|
+
*
|
|
269
|
+
* @example
|
|
270
|
+
* ```ts
|
|
271
|
+
* const { stdout } = await repo.raw(['rev-parse', 'HEAD'], { throwOnNonZero: true });
|
|
272
|
+
* ```
|
|
273
|
+
*/
|
|
274
|
+
throwOnNonZero?: boolean;
|
|
275
|
+
};
|
|
254
276
|
/**
|
|
255
277
|
* Result from raw Git command execution
|
|
256
278
|
*/
|
|
@@ -310,6 +332,14 @@ type GitErrorCategory =
|
|
|
310
332
|
| 'corruption'
|
|
311
333
|
/** Unclassifiable */
|
|
312
334
|
| 'unknown';
|
|
335
|
+
/** One internal Git probe recorded on a {@link GitError}. */
|
|
336
|
+
type GitProbeResult = {
|
|
337
|
+
/** Git arguments after the binary and any `-c` overrides. */
|
|
338
|
+
argv: string[];
|
|
339
|
+
exitCode: number;
|
|
340
|
+
signal?: string;
|
|
341
|
+
stderr: string;
|
|
342
|
+
};
|
|
313
343
|
/**
|
|
314
344
|
* Git error with detailed context
|
|
315
345
|
*/
|
|
@@ -324,6 +354,13 @@ declare class GitError extends Error {
|
|
|
324
354
|
signal?: string;
|
|
325
355
|
stdout?: string;
|
|
326
356
|
stderr?: string;
|
|
357
|
+
/**
|
|
358
|
+
* Set when `open` / `openRaw` / `openBare` fail: the result of the first probe
|
|
359
|
+
* (`git -C <path> rev-parse ...`), whose stderr usually names the cause, such as
|
|
360
|
+
* `detected dubious ownership`. The top-level `exitCode` and `stderr` are the
|
|
361
|
+
* second probe's (`git --git-dir <path> rev-parse ...`).
|
|
362
|
+
*/
|
|
363
|
+
firstProbe?: GitProbeResult;
|
|
327
364
|
};
|
|
328
365
|
readonly category: GitErrorCategory;
|
|
329
366
|
constructor(kind: GitErrorKind, message: string, context?: {
|
|
@@ -335,6 +372,13 @@ declare class GitError extends Error {
|
|
|
335
372
|
signal?: string;
|
|
336
373
|
stdout?: string;
|
|
337
374
|
stderr?: string;
|
|
375
|
+
/**
|
|
376
|
+
* Set when `open` / `openRaw` / `openBare` fail: the result of the first probe
|
|
377
|
+
* (`git -C <path> rev-parse ...`), whose stderr usually names the cause, such as
|
|
378
|
+
* `detected dubious ownership`. The top-level `exitCode` and `stderr` are the
|
|
379
|
+
* second probe's (`git --git-dir <path> rev-parse ...`).
|
|
380
|
+
*/
|
|
381
|
+
firstProbe?: GitProbeResult;
|
|
338
382
|
}, category?: GitErrorCategory);
|
|
339
383
|
/**
|
|
340
384
|
* Check if the error is retryable (§13.2)
|
|
@@ -6686,8 +6730,11 @@ interface RepoBase {
|
|
|
6686
6730
|
* which refuse operands that Git would parse as options. `stdin` is only safe for commands that
|
|
6687
6731
|
* read it as data (such as `hash-object --stdin`); commands that read it as instructions (such
|
|
6688
6732
|
* as `fast-import` or `update-ref --stdin`) must not receive untrusted input.
|
|
6733
|
+
*
|
|
6734
|
+
* A non-zero exit is returned in `exitCode`, not thrown, unless `opts.throwOnNonZero` is
|
|
6735
|
+
* `true`; then it throws the same {@link GitError} a typed operation would.
|
|
6689
6736
|
*/
|
|
6690
|
-
raw(argv: string[], opts?:
|
|
6737
|
+
raw(argv: string[], opts?: RawExecOpts): Promise<RawResult>;
|
|
6691
6738
|
/**
|
|
6692
6739
|
* Check if this repository is a worktree repository (has working directory)
|
|
6693
6740
|
*
|
|
@@ -10513,8 +10560,11 @@ interface Git {
|
|
|
10513
10560
|
* which refuse operands that Git would parse as options. `stdin` is only safe for commands that
|
|
10514
10561
|
* read it as data (such as `hash-object --stdin`); commands that read it as instructions (such
|
|
10515
10562
|
* as `fast-import` or `update-ref --stdin`) must not receive untrusted input.
|
|
10563
|
+
*
|
|
10564
|
+
* A non-zero exit is returned in `exitCode`, not thrown, unless `opts.throwOnNonZero` is
|
|
10565
|
+
* `true`; then it throws the same {@link GitError} a typed operation would.
|
|
10516
10566
|
*/
|
|
10517
|
-
raw(argv: string[], opts?:
|
|
10567
|
+
raw(argv: string[], opts?: RawExecOpts): Promise<RawResult>;
|
|
10518
10568
|
/**
|
|
10519
10569
|
* Global config operations
|
|
10520
10570
|
*
|
|
@@ -10535,4 +10585,4 @@ interface Git {
|
|
|
10535
10585
|
lfs: GlobalLfsOperations;
|
|
10536
10586
|
}
|
|
10537
10587
|
|
|
10538
|
-
export { type ConstraintRequirement as $, type AuditConfig as A, type BareRepo as B, type Capabilities as C, type Digit$4 as D, type EnvInheritance as E, type FastImportUnsignedParser as F, type Git as G, type GitNumericLiteral as H, type InitOpts as I, type GitBooleanCallback as J, type GitBooleanCallbackLiteral as K, type LsRemoteOpts as L, type AsciiUpper as M, type NumberLiteralOrder as N, type ObjectFilterLiteral as O, type Predicate as P, type StringCallbackParser as Q, type RawResult as R, type SafeIntegerAtLeast as S, type Trim$2 as T, type UrlBytes as U, type StringCallbackLiteral as V, type WorktreeRepo as W, type AsciiLower as X, type GitNumericValue as Y, type GitBooleanCallbackValue as Z, type StringCallbackValue as _, type CompanionExecutable as a, type
|
|
10588
|
+
export { type ConstraintRequirement as $, type AuditConfig as A, type BareRepo as B, type Capabilities as C, type Digit$4 as D, type EnvInheritance as E, type FastImportUnsignedParser as F, type Git as G, type GitNumericLiteral as H, type InitOpts as I, type GitBooleanCallback as J, type GitBooleanCallbackLiteral as K, type LsRemoteOpts as L, type AsciiUpper as M, type NumberLiteralOrder as N, type ObjectFilterLiteral as O, type Predicate as P, type StringCallbackParser as Q, type RawResult as R, type SafeIntegerAtLeast as S, type Trim$2 as T, type UrlBytes as U, type StringCallbackLiteral as V, type WorktreeRepo as W, type AsciiLower as X, type GitNumericValue as Y, type GitBooleanCallbackValue as Z, type StringCallbackValue as _, type CompanionExecutable as a, type DiffOpts as a$, type GitTimestampParser as a0, type GitDecimalCallback as a1, type LegacyGitDecimal as a2, type GitIntegerParser as a3, type GitOutputMode as a4, type CommandExecOpts as a5, detectErrorCategory as a6, GIT_LOG_FORMAT as a7, type GitProgressInfo as a8, type LfsProgressInfo as a9, resolveInheritedEnv as aA, type GlobalLfsInstallOpts as aB, type GlobalLfsUninstallOpts as aC, type GlobalConfigListOpts as aD, type RepoBase as aE, type RepoLsRemoteOpts as aF, type RepoLsRemoteResult as aG, type LsTreeEntry as aH, type LsTreeOpts as aI, type StatusEntry as aJ, type StatusPorcelain as aK, type StatusOpts as aL, type Commit as aM, type LogOpts as aN, type FetchOpts as aO, type ForceWithLeaseOpts as aP, type PushOpts as aQ, type AddOpts as aR, type BranchInfo as aS, type BranchOpts as aT, type BranchCreateOpts as aU, type BranchDeleteOpts as aV, type CheckoutBranchOpts as aW, type CheckoutPathOpts as aX, type CheckoutOpts as aY, type CommitOpts as aZ, type CommitResult as a_, type LsRemoteRef as aa, type LsTreeObjectType$1 as ab, type ParsedCommit as ac, type ParsedLsTreeEntry as ad, type ParsedWorktree as ae, type PorcelainV2Entry as af, parseGitLog as ag, parseGitProgress as ah, parseJson as ai, parseKeyValue as aj, parseLfsProgress as ak, parseLines as al, parseLsRemote as am, parseLsTree as an, parsePorcelainV2 as ao, parseRecords as ap, parseWorktreeList as aq, type CloneConfigSchema as ar, type CloneHttpVariable as as, type CloneConfigKey as at, type CloneConfig as au, isCloneConfigKey as av, cloneConfigArgs as aw, type EnvAllowlistAdjustment as ax, type EnvInheritancePredicate as ay, DEFAULT_ENV_ALLOWLIST as az, type ExecutionContext as b, type LfsPreUploadResult as b$, type DiffEntry as b0, type DiffResult as b1, type MergeOpts as b2, type MergeResult as b3, type PullOpts as b4, type ResetOpts as b5, type RmOpts as b6, type StashEntry as b7, type StashPushOpts as b8, type StashApplyOpts as b9, type SubmoduleSummaryOpts as bA, type SubmoduleForeachOpts as bB, type SubmoduleSyncOpts as bC, type SubmoduleSetBranchOpts as bD, type SubmoduleInfo as bE, type LfsStatus as bF, type LfsPullOpts as bG, type LfsPushOpts as bH, type LfsStatusOpts as bI, type LfsPruneOpts as bJ, type LfsFetchOpts as bK, type RepoLfsInstallOpts as bL, type RepoLfsUninstallOpts as bM, type LfsFileEntry as bN, type LfsLsFilesOpts as bO, type LfsTrackEntry as bP, type LfsTrackOpts as bQ, type LfsLockEntry as bR, type LfsLockOpts as bS, type LfsUnlockOpts as bT, type LfsLocksOpts as bU, type LfsCheckoutOpts as bV, type LfsMigrateInfoOpts as bW, type LfsMigrateImportOpts as bX, type LfsMigrateExportOpts as bY, type LfsEnvInfo as bZ, type LfsPreUploadOpts as b_, type SwitchOpts as ba, type TagInfo as bb, type TagListOpts as bc, type TagCreateOpts as bd, type CherryPickOpts as be, type CleanOpts as bf, type MvOpts as bg, type RebaseOpts as bh, type RestoreOpts as bi, type RevertOpts as bj, type ShowOpts as bk, type RevParsePathQuery as bl, type RevParseBooleanQuery as bm, type RevParseListOpts as bn, type RevParseListQuery as bo, type RevParseRefBaseOpts as bp, type RevParseRefOpts as bq, type RevParseQuietRefOpts as br, type RevParseAnyRefOpts as bs, type RevParseOtherQuery as bt, type RevParsePathFormat as bu, type RevParsePathOpts as bv, type SubmoduleOpts as bw, type SubmoduleAddOpts as bx, type SubmoduleDeinitOpts as by, type SubmoduleStatusOpts as bz, type ExecOpts as c, type LfsPreDownloadOpts as c0, type LfsPreDownloadResult as c1, type Worktree as c2, type WorktreeAddOpts as c3, type WorktreeRemoveOpts as c4, type WorktreePruneOpts as c5, type WorktreeMoveOpts as c6, type WorktreeRepairOpts as c7, type WorktreeLockOpts as c8, type WorktreeOperations as c9, type GitProgress as cA, type LfsProgress as cB, type GitOutput as cC, type GitErrorKind as cD, type GitErrorCategory as cE, type GitProbeResult as cF, GitArgumentError as cG, type Runtime as cH, type LfsMode as cI, type OutputContract as cJ, type CommandSpec as cK, type CredentialRequest as cL, type Credential as cM, type CredentialConfig as cN, type AuditEventStart as cO, type AuditEventEnd as cP, type AuditEvent as cQ, type TraceEvent as cR, type LfsOperations as ca, type LfsExtraOperations as cb, type BranchOperations as cc, type StashOperations as cd, type TagOperations as ce, type RemoteInfo as cf, type RemoteAddOpts as cg, type RemoteSetHeadOpts as ch, type RemoteShowOpts as ci, type RemotePruneOpts as cj, type RemoteUpdateOpts as ck, type RemoteSetBranchesOpts as cl, type RemoteUrlOpts as cm, type RemoteOperations as cn, type ConfigEntry as co, type ConfigGetOpts as cp, type ConfigSetOpts as cq, type ConfigListOpts as cr, type ConfigSchema as cs, type ConfigKey as ct, type ConfigOperations as cu, type SubmoduleOperations as cv, type NonEmptyString as cw, type NonEmptyOperand as cx, nonEmpty as cy, isNonEmpty as cz, GitError as d, type GitOpenOptions as e, type CloneOpts as f, type LsRemoteResult as g, type RawExecOpts as h, type GlobalConfigOperations as i, type GlobalLfsOperations as j, type CompoundDecimalParser as k, COMPOUND_DECIMALS as l, type GitDecimalParser as m, type GitDecimalLiteral as n, type GitDecimalValue as o, type AtMost$1 as p, type AddDigit as q, type GitIntegerValue as r, type GitScalarParser as s, type Evidence as t, type Constraint as u, type GitBooleanSource as v, type GitDecimalCallbacks as w, type GitIntegerProfile as x, type GitNumericParser as y, type Constrained as z };
|
package/dist/index.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkI77B22ZEcjs = require('./chunk-I77B22ZE.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -11,7 +11,7 @@ var _chunk4K65HJ37cjs = require('./chunk-4K65HJ37.cjs');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkSNC324NLcjs = require('./chunk-SNC324NL.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -33,7 +33,7 @@ var _chunkSKN5H7RXcjs = require('./chunk-SKN5H7RX.cjs');
|
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
36
|
-
var
|
|
36
|
+
var _chunkQHIS7LHWcjs = require('./chunk-QHIS7LHW.cjs');
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
|
|
@@ -65,4 +65,4 @@ var _chunkRWKMVYO5cjs = require('./chunk-RWKMVYO5.cjs');
|
|
|
65
65
|
|
|
66
66
|
|
|
67
67
|
|
|
68
|
-
exports.CliRunner =
|
|
68
|
+
exports.CliRunner = _chunkQHIS7LHWcjs.CliRunner; exports.DEFAULT_ENV_ALLOWLIST = _chunkQHIS7LHWcjs.DEFAULT_ENV_ALLOWLIST; exports.GIT_LOG_FORMAT = _chunkQHIS7LHWcjs.GIT_LOG_FORMAT; exports.GitArgumentError = _chunkQHIS7LHWcjs.GitArgumentError; exports.GitError = _chunkQHIS7LHWcjs.GitError; exports.LEGACY_GIT_VERSION = _chunkSNC324NLcjs.LEGACY_GIT_VERSION; exports.MIN_GIT_VERSION = _chunkSNC324NLcjs.MIN_GIT_VERSION; exports.NodeExecAdapter = _chunkI77B22ZEcjs.NodeExecAdapter; exports.NodeFsAdapter = _chunkI77B22ZEcjs.NodeFsAdapter; exports.TypeGit = _chunkI77B22ZEcjs.TypeGit; exports.cloneConfigArgs = _chunkSNC324NLcjs.cloneConfigArgs; exports.createGit = _chunkSNC324NLcjs.createGit; exports.createGitSync = _chunkSNC324NLcjs.createGitSync; exports.createNodeAdapters = _chunkI77B22ZEcjs.createNodeAdapters; exports.detectErrorCategory = _chunkQHIS7LHWcjs.detectErrorCategory; exports.isCloneConfigKey = _chunkSNC324NLcjs.isCloneConfigKey; exports.isNonEmpty = _chunkQHIS7LHWcjs.isNonEmpty; exports.nonEmpty = _chunkQHIS7LHWcjs.nonEmpty; exports.parseGitLog = _chunkQHIS7LHWcjs.parseGitLog; exports.parseGitProgress = _chunkQHIS7LHWcjs.parseGitProgress; exports.parseJson = _chunkQHIS7LHWcjs.parseJson; exports.parseKeyValue = _chunkQHIS7LHWcjs.parseKeyValue; exports.parseLfsProgress = _chunkQHIS7LHWcjs.parseLfsProgress; exports.parseLines = _chunkQHIS7LHWcjs.parseLines; exports.parseLsRemote = _chunkQHIS7LHWcjs.parseLsRemote; exports.parseLsTree = _chunkQHIS7LHWcjs.parseLsTree; exports.parsePorcelainV2 = _chunkQHIS7LHWcjs.parsePorcelainV2; exports.parseRecords = _chunkQHIS7LHWcjs.parseRecords; exports.parseWorktreeList = _chunkQHIS7LHWcjs.parseWorktreeList; exports.resolveInheritedEnv = _chunkQHIS7LHWcjs.resolveInheritedEnv;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { NodeAdaptersOptions, NodeExecAdapter, NodeExecAdapterOptions, NodeFsAdapter, TypeGit, TypeGitOptions, createNodeAdapters } from './adapters/node/index.cjs';
|
|
2
|
-
export { A as AdapterFactory, g as CliRunner, h as CliRunnerOptions, C as CreateGitOptions, E as ExecAdapter, F as FsAdapter, L as LEGACY_GIT_VERSION, M as MIN_GIT_VERSION, R as RuntimeAdapters, c as SpawnHandle, S as SpawnOptions, b as SpawnResult, a as StreamHandler, d as TailHandle, T as TailOptions, e as createGit, f as createGitSync } from './client.d-
|
|
3
|
-
export {
|
|
2
|
+
export { A as AdapterFactory, g as CliRunner, h as CliRunnerOptions, C as CreateGitOptions, E as ExecAdapter, F as FsAdapter, L as LEGACY_GIT_VERSION, M as MIN_GIT_VERSION, R as RuntimeAdapters, c as SpawnHandle, S as SpawnOptions, b as SpawnResult, a as StreamHandler, d as TailHandle, T as TailOptions, e as createGit, f as createGitSync } from './client.d-Jwli7Qfw.cjs';
|
|
3
|
+
export { aR as AddOpts, A as AuditConfig, cQ as AuditEvent, cP as AuditEventEnd, cO as AuditEventStart, B as BareRepo, aU as BranchCreateOpts, aV as BranchDeleteOpts, aS as BranchInfo, cc as BranchOperations, aT as BranchOpts, C as Capabilities, aW as CheckoutBranchOpts, aY as CheckoutOpts, aX as CheckoutPathOpts, be as CherryPickOpts, bf as CleanOpts, au as CloneConfig, at as CloneConfigKey, ar as CloneConfigSchema, as as CloneHttpVariable, f as CloneOpts, a5 as CommandExecOpts, cK as CommandSpec, aM as Commit, aZ as CommitOpts, a_ as CommitResult, a as CompanionExecutable, co as ConfigEntry, cp as ConfigGetOpts, ct as ConfigKey, cr as ConfigListOpts, cu as ConfigOperations, cs as ConfigSchema, cq as ConfigSetOpts, cM as Credential, cN as CredentialConfig, cL as CredentialRequest, az as DEFAULT_ENV_ALLOWLIST, b0 as DiffEntry, a$ as DiffOpts, b1 as DiffResult, ax as EnvAllowlistAdjustment, E as EnvInheritance, ay as EnvInheritancePredicate, c as ExecOpts, b as ExecutionContext, aO as FetchOpts, aP as ForceWithLeaseOpts, a7 as GIT_LOG_FORMAT, G as Git, cG as GitArgumentError, d as GitError, cE as GitErrorCategory, cD as GitErrorKind, e as GitOpenOptions, cC as GitOutput, a4 as GitOutputMode, cF as GitProbeResult, cA as GitProgress, a8 as GitProgressInfo, aD as GlobalConfigListOpts, i as GlobalConfigOperations, aB as GlobalLfsInstallOpts, j as GlobalLfsOperations, aC as GlobalLfsUninstallOpts, I as InitOpts, bV as LfsCheckoutOpts, bZ as LfsEnvInfo, cb as LfsExtraOperations, bK as LfsFetchOpts, bN as LfsFileEntry, bR as LfsLockEntry, bS as LfsLockOpts, bU as LfsLocksOpts, bO as LfsLsFilesOpts, bY as LfsMigrateExportOpts, bX as LfsMigrateImportOpts, bW as LfsMigrateInfoOpts, cI as LfsMode, ca as LfsOperations, c0 as LfsPreDownloadOpts, c1 as LfsPreDownloadResult, b_ as LfsPreUploadOpts, b$ as LfsPreUploadResult, cB as LfsProgress, a9 as LfsProgressInfo, bJ as LfsPruneOpts, bG as LfsPullOpts, bH as LfsPushOpts, bF as LfsStatus, bI as LfsStatusOpts, bP as LfsTrackEntry, bQ as LfsTrackOpts, bT as LfsUnlockOpts, aN as LogOpts, L as LsRemoteOpts, aa as LsRemoteRef, g as LsRemoteResult, aH as LsTreeEntry, ab as LsTreeObjectType, aI as LsTreeOpts, b2 as MergeOpts, b3 as MergeResult, bg as MvOpts, cx as NonEmptyOperand, cw as NonEmptyString, cJ as OutputContract, ac as ParsedCommit, ad as ParsedLsTreeEntry, ae as ParsedWorktree, af as PorcelainV2Entry, b4 as PullOpts, aQ as PushOpts, h as RawExecOpts, R as RawResult, bh as RebaseOpts, cg as RemoteAddOpts, cf as RemoteInfo, cn as RemoteOperations, cj as RemotePruneOpts, cl as RemoteSetBranchesOpts, ch as RemoteSetHeadOpts, ci as RemoteShowOpts, ck as RemoteUpdateOpts, cm as RemoteUrlOpts, aE as RepoBase, bL as RepoLfsInstallOpts, bM as RepoLfsUninstallOpts, aF as RepoLsRemoteOpts, aG as RepoLsRemoteResult, b5 as ResetOpts, bi as RestoreOpts, bs as RevParseAnyRefOpts, bm as RevParseBooleanQuery, bn as RevParseListOpts, bo as RevParseListQuery, bt as RevParseOtherQuery, bu as RevParsePathFormat, bv as RevParsePathOpts, bl as RevParsePathQuery, br as RevParseQuietRefOpts, bp as RevParseRefBaseOpts, bq as RevParseRefOpts, bj as RevertOpts, b6 as RmOpts, cH as Runtime, bk as ShowOpts, b9 as StashApplyOpts, b7 as StashEntry, cd as StashOperations, b8 as StashPushOpts, aJ as StatusEntry, aL as StatusOpts, aK as StatusPorcelain, bx as SubmoduleAddOpts, by as SubmoduleDeinitOpts, bB as SubmoduleForeachOpts, bE as SubmoduleInfo, cv as SubmoduleOperations, bw as SubmoduleOpts, bD as SubmoduleSetBranchOpts, bz as SubmoduleStatusOpts, bA as SubmoduleSummaryOpts, bC as SubmoduleSyncOpts, ba as SwitchOpts, bd as TagCreateOpts, bb as TagInfo, bc as TagListOpts, ce as TagOperations, cR as TraceEvent, c2 as Worktree, c3 as WorktreeAddOpts, c8 as WorktreeLockOpts, c6 as WorktreeMoveOpts, c9 as WorktreeOperations, c5 as WorktreePruneOpts, c4 as WorktreeRemoveOpts, c7 as WorktreeRepairOpts, W as WorktreeRepo, aw as cloneConfigArgs, a6 as detectErrorCategory, av as isCloneConfigKey, cz as isNonEmpty, cy as nonEmpty, ag as parseGitLog, ah as parseGitProgress, ai as parseJson, aj as parseKeyValue, ak as parseLfsProgress, al as parseLines, am as parseLsRemote, an as parseLsTree, ao as parsePorcelainV2, ap as parseRecords, aq as parseWorktreeList, aA as resolveInheritedEnv } from './git.d-BTNkPofF.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { NodeAdaptersOptions, NodeExecAdapter, NodeExecAdapterOptions, NodeFsAdapter, TypeGit, TypeGitOptions, createNodeAdapters } from './adapters/node/index.js';
|
|
2
|
-
export { A as AdapterFactory, g as CliRunner, h as CliRunnerOptions, C as CreateGitOptions, E as ExecAdapter, F as FsAdapter, L as LEGACY_GIT_VERSION, M as MIN_GIT_VERSION, R as RuntimeAdapters, c as SpawnHandle, S as SpawnOptions, b as SpawnResult, a as StreamHandler, d as TailHandle, T as TailOptions, e as createGit, f as createGitSync } from './client.d-
|
|
3
|
-
export {
|
|
2
|
+
export { A as AdapterFactory, g as CliRunner, h as CliRunnerOptions, C as CreateGitOptions, E as ExecAdapter, F as FsAdapter, L as LEGACY_GIT_VERSION, M as MIN_GIT_VERSION, R as RuntimeAdapters, c as SpawnHandle, S as SpawnOptions, b as SpawnResult, a as StreamHandler, d as TailHandle, T as TailOptions, e as createGit, f as createGitSync } from './client.d-ClMefrEh.js';
|
|
3
|
+
export { aR as AddOpts, A as AuditConfig, cQ as AuditEvent, cP as AuditEventEnd, cO as AuditEventStart, B as BareRepo, aU as BranchCreateOpts, aV as BranchDeleteOpts, aS as BranchInfo, cc as BranchOperations, aT as BranchOpts, C as Capabilities, aW as CheckoutBranchOpts, aY as CheckoutOpts, aX as CheckoutPathOpts, be as CherryPickOpts, bf as CleanOpts, au as CloneConfig, at as CloneConfigKey, ar as CloneConfigSchema, as as CloneHttpVariable, f as CloneOpts, a5 as CommandExecOpts, cK as CommandSpec, aM as Commit, aZ as CommitOpts, a_ as CommitResult, a as CompanionExecutable, co as ConfigEntry, cp as ConfigGetOpts, ct as ConfigKey, cr as ConfigListOpts, cu as ConfigOperations, cs as ConfigSchema, cq as ConfigSetOpts, cM as Credential, cN as CredentialConfig, cL as CredentialRequest, az as DEFAULT_ENV_ALLOWLIST, b0 as DiffEntry, a$ as DiffOpts, b1 as DiffResult, ax as EnvAllowlistAdjustment, E as EnvInheritance, ay as EnvInheritancePredicate, c as ExecOpts, b as ExecutionContext, aO as FetchOpts, aP as ForceWithLeaseOpts, a7 as GIT_LOG_FORMAT, G as Git, cG as GitArgumentError, d as GitError, cE as GitErrorCategory, cD as GitErrorKind, e as GitOpenOptions, cC as GitOutput, a4 as GitOutputMode, cF as GitProbeResult, cA as GitProgress, a8 as GitProgressInfo, aD as GlobalConfigListOpts, i as GlobalConfigOperations, aB as GlobalLfsInstallOpts, j as GlobalLfsOperations, aC as GlobalLfsUninstallOpts, I as InitOpts, bV as LfsCheckoutOpts, bZ as LfsEnvInfo, cb as LfsExtraOperations, bK as LfsFetchOpts, bN as LfsFileEntry, bR as LfsLockEntry, bS as LfsLockOpts, bU as LfsLocksOpts, bO as LfsLsFilesOpts, bY as LfsMigrateExportOpts, bX as LfsMigrateImportOpts, bW as LfsMigrateInfoOpts, cI as LfsMode, ca as LfsOperations, c0 as LfsPreDownloadOpts, c1 as LfsPreDownloadResult, b_ as LfsPreUploadOpts, b$ as LfsPreUploadResult, cB as LfsProgress, a9 as LfsProgressInfo, bJ as LfsPruneOpts, bG as LfsPullOpts, bH as LfsPushOpts, bF as LfsStatus, bI as LfsStatusOpts, bP as LfsTrackEntry, bQ as LfsTrackOpts, bT as LfsUnlockOpts, aN as LogOpts, L as LsRemoteOpts, aa as LsRemoteRef, g as LsRemoteResult, aH as LsTreeEntry, ab as LsTreeObjectType, aI as LsTreeOpts, b2 as MergeOpts, b3 as MergeResult, bg as MvOpts, cx as NonEmptyOperand, cw as NonEmptyString, cJ as OutputContract, ac as ParsedCommit, ad as ParsedLsTreeEntry, ae as ParsedWorktree, af as PorcelainV2Entry, b4 as PullOpts, aQ as PushOpts, h as RawExecOpts, R as RawResult, bh as RebaseOpts, cg as RemoteAddOpts, cf as RemoteInfo, cn as RemoteOperations, cj as RemotePruneOpts, cl as RemoteSetBranchesOpts, ch as RemoteSetHeadOpts, ci as RemoteShowOpts, ck as RemoteUpdateOpts, cm as RemoteUrlOpts, aE as RepoBase, bL as RepoLfsInstallOpts, bM as RepoLfsUninstallOpts, aF as RepoLsRemoteOpts, aG as RepoLsRemoteResult, b5 as ResetOpts, bi as RestoreOpts, bs as RevParseAnyRefOpts, bm as RevParseBooleanQuery, bn as RevParseListOpts, bo as RevParseListQuery, bt as RevParseOtherQuery, bu as RevParsePathFormat, bv as RevParsePathOpts, bl as RevParsePathQuery, br as RevParseQuietRefOpts, bp as RevParseRefBaseOpts, bq as RevParseRefOpts, bj as RevertOpts, b6 as RmOpts, cH as Runtime, bk as ShowOpts, b9 as StashApplyOpts, b7 as StashEntry, cd as StashOperations, b8 as StashPushOpts, aJ as StatusEntry, aL as StatusOpts, aK as StatusPorcelain, bx as SubmoduleAddOpts, by as SubmoduleDeinitOpts, bB as SubmoduleForeachOpts, bE as SubmoduleInfo, cv as SubmoduleOperations, bw as SubmoduleOpts, bD as SubmoduleSetBranchOpts, bz as SubmoduleStatusOpts, bA as SubmoduleSummaryOpts, bC as SubmoduleSyncOpts, ba as SwitchOpts, bd as TagCreateOpts, bb as TagInfo, bc as TagListOpts, ce as TagOperations, cR as TraceEvent, c2 as Worktree, c3 as WorktreeAddOpts, c8 as WorktreeLockOpts, c6 as WorktreeMoveOpts, c9 as WorktreeOperations, c5 as WorktreePruneOpts, c4 as WorktreeRemoveOpts, c7 as WorktreeRepairOpts, W as WorktreeRepo, aw as cloneConfigArgs, a6 as detectErrorCategory, av as isCloneConfigKey, cz as isNonEmpty, cy as nonEmpty, ag as parseGitLog, ah as parseGitProgress, ai as parseJson, aj as parseKeyValue, ak as parseLfsProgress, al as parseLines, am as parseLsRemote, an as parseLsTree, ao as parsePorcelainV2, ap as parseRecords, aq as parseWorktreeList, aA as resolveInheritedEnv } from './git.d-BTNkPofF.cjs';
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
NodeFsAdapter,
|
|
4
4
|
TypeGit,
|
|
5
5
|
createNodeAdapters
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MS6E5USB.js";
|
|
7
7
|
import {
|
|
8
8
|
LEGACY_GIT_VERSION,
|
|
9
9
|
MIN_GIT_VERSION,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
createGit,
|
|
12
12
|
createGitSync,
|
|
13
13
|
isCloneConfigKey
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-HCQGGKTC.js";
|
|
15
15
|
import {
|
|
16
16
|
CliRunner,
|
|
17
17
|
DEFAULT_ENV_ALLOWLIST,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
parseRecords,
|
|
34
34
|
parseWorktreeList,
|
|
35
35
|
resolveInheritedEnv
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-V4ZRQG3O.js";
|
|
37
37
|
export {
|
|
38
38
|
CliRunner,
|
|
39
39
|
DEFAULT_ENV_ALLOWLIST,
|