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.
@@ -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 = isWindows ? Object.keys(env).find((key) => key.toLowerCase() === "path") ?? "PATH" : "PATH";
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: context.type === "worktree" ? context.workdir : executable && context.type === "bare" ? context.gitDir : void 0,
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 CommandExecOpts, i as GlobalConfigOperations, j as GlobalLfsOperations } from './git.d-CJUJ4264.cjs';
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?: CommandExecOpts) => Promise<RawResult>;
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 CommandExecOpts, i as GlobalConfigOperations, j as GlobalLfsOperations } from './git.d-CJUJ4264.cjs';
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?: CommandExecOpts) => Promise<RawResult>;
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?: CommandExecOpts): Promise<RawResult>;
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?: CommandExecOpts): Promise<RawResult>;
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 DiffEntry as a$, type GitTimestampParser as a0, type GitDecimalCallback as a1, type LegacyGitDecimal as a2, type GitIntegerParser as a3, type GitOutputMode as a4, detectErrorCategory as a5, GIT_LOG_FORMAT as a6, type GitProgressInfo as a7, type LfsProgressInfo as a8, type LsRemoteRef as a9, type GlobalLfsInstallOpts as aA, type GlobalLfsUninstallOpts as aB, type GlobalConfigListOpts as aC, type RepoBase as aD, type RepoLsRemoteOpts as aE, type RepoLsRemoteResult as aF, type LsTreeEntry as aG, type LsTreeOpts as aH, type StatusEntry as aI, type StatusPorcelain as aJ, type StatusOpts as aK, type Commit as aL, type LogOpts as aM, type FetchOpts as aN, type ForceWithLeaseOpts as aO, type PushOpts as aP, type AddOpts as aQ, type BranchInfo as aR, type BranchOpts as aS, type BranchCreateOpts as aT, type BranchDeleteOpts as aU, type CheckoutBranchOpts as aV, type CheckoutPathOpts as aW, type CheckoutOpts as aX, type CommitOpts as aY, type CommitResult as aZ, type DiffOpts as a_, type LsTreeObjectType$1 as aa, type ParsedCommit as ab, type ParsedLsTreeEntry as ac, type ParsedWorktree as ad, type PorcelainV2Entry as ae, parseGitLog as af, parseGitProgress as ag, parseJson as ah, parseKeyValue as ai, parseLfsProgress as aj, parseLines as ak, parseLsRemote as al, parseLsTree as am, parsePorcelainV2 as an, parseRecords as ao, parseWorktreeList as ap, type CloneConfigSchema as aq, type CloneHttpVariable as ar, type CloneConfigKey as as, type CloneConfig as at, isCloneConfigKey as au, cloneConfigArgs as av, type EnvAllowlistAdjustment as aw, type EnvInheritancePredicate as ax, DEFAULT_ENV_ALLOWLIST as ay, resolveInheritedEnv as az, type ExecutionContext as b, type LfsPreDownloadOpts as b$, type DiffResult as b0, type MergeOpts as b1, type MergeResult as b2, type PullOpts as b3, type ResetOpts as b4, type RmOpts as b5, type StashEntry as b6, type StashPushOpts as b7, type StashApplyOpts as b8, type SwitchOpts as b9, type SubmoduleForeachOpts as bA, type SubmoduleSyncOpts as bB, type SubmoduleSetBranchOpts as bC, type SubmoduleInfo as bD, type LfsStatus as bE, type LfsPullOpts as bF, type LfsPushOpts as bG, type LfsStatusOpts as bH, type LfsPruneOpts as bI, type LfsFetchOpts as bJ, type RepoLfsInstallOpts as bK, type RepoLfsUninstallOpts as bL, type LfsFileEntry as bM, type LfsLsFilesOpts as bN, type LfsTrackEntry as bO, type LfsTrackOpts as bP, type LfsLockEntry as bQ, type LfsLockOpts as bR, type LfsUnlockOpts as bS, type LfsLocksOpts as bT, type LfsCheckoutOpts as bU, type LfsMigrateInfoOpts as bV, type LfsMigrateImportOpts as bW, type LfsMigrateExportOpts as bX, type LfsEnvInfo as bY, type LfsPreUploadOpts as bZ, type LfsPreUploadResult as b_, type TagInfo as ba, type TagListOpts as bb, type TagCreateOpts as bc, type CherryPickOpts as bd, type CleanOpts as be, type MvOpts as bf, type RebaseOpts as bg, type RestoreOpts as bh, type RevertOpts as bi, type ShowOpts as bj, type RevParsePathQuery as bk, type RevParseBooleanQuery as bl, type RevParseListOpts as bm, type RevParseListQuery as bn, type RevParseRefBaseOpts as bo, type RevParseRefOpts as bp, type RevParseQuietRefOpts as bq, type RevParseAnyRefOpts as br, type RevParseOtherQuery as bs, type RevParsePathFormat as bt, type RevParsePathOpts as bu, type SubmoduleOpts as bv, type SubmoduleAddOpts as bw, type SubmoduleDeinitOpts as bx, type SubmoduleStatusOpts as by, type SubmoduleSummaryOpts as bz, type ExecOpts as c, type LfsPreDownloadResult as c0, type Worktree as c1, type WorktreeAddOpts as c2, type WorktreeRemoveOpts as c3, type WorktreePruneOpts as c4, type WorktreeMoveOpts as c5, type WorktreeRepairOpts as c6, type WorktreeLockOpts as c7, type WorktreeOperations as c8, type LfsOperations as c9, type LfsProgress as cA, type GitOutput as cB, type GitErrorKind as cC, type GitErrorCategory as cD, GitArgumentError as cE, type Runtime as cF, type LfsMode as cG, type OutputContract as cH, type CommandSpec as cI, type CredentialRequest as cJ, type Credential as cK, type CredentialConfig as cL, type AuditEventStart as cM, type AuditEventEnd as cN, type AuditEvent as cO, type TraceEvent as cP, type LfsExtraOperations as ca, type BranchOperations as cb, type StashOperations as cc, type TagOperations as cd, type RemoteInfo as ce, type RemoteAddOpts as cf, type RemoteSetHeadOpts as cg, type RemoteShowOpts as ch, type RemotePruneOpts as ci, type RemoteUpdateOpts as cj, type RemoteSetBranchesOpts as ck, type RemoteUrlOpts as cl, type RemoteOperations as cm, type ConfigEntry as cn, type ConfigGetOpts as co, type ConfigSetOpts as cp, type ConfigListOpts as cq, type ConfigSchema as cr, type ConfigKey as cs, type ConfigOperations as ct, type SubmoduleOperations as cu, type NonEmptyString as cv, type NonEmptyOperand as cw, nonEmpty as cx, isNonEmpty as cy, type GitProgress as cz, GitError as d, type GitOpenOptions as e, type CloneOpts as f, type LsRemoteResult as g, type CommandExecOpts 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 };
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 _chunk4K65HJ37cjs = require('./chunk-4K65HJ37.cjs');
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 _chunkSKN5H7RXcjs = require('./chunk-SKN5H7RX.cjs');
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 _chunkRWKMVYO5cjs = require('./chunk-RWKMVYO5.cjs');
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 = _chunkRWKMVYO5cjs.CliRunner; exports.DEFAULT_ENV_ALLOWLIST = _chunkRWKMVYO5cjs.DEFAULT_ENV_ALLOWLIST; exports.GIT_LOG_FORMAT = _chunkRWKMVYO5cjs.GIT_LOG_FORMAT; exports.GitArgumentError = _chunkRWKMVYO5cjs.GitArgumentError; exports.GitError = _chunkRWKMVYO5cjs.GitError; exports.LEGACY_GIT_VERSION = _chunkSKN5H7RXcjs.LEGACY_GIT_VERSION; exports.MIN_GIT_VERSION = _chunkSKN5H7RXcjs.MIN_GIT_VERSION; exports.NodeExecAdapter = _chunk4K65HJ37cjs.NodeExecAdapter; exports.NodeFsAdapter = _chunk4K65HJ37cjs.NodeFsAdapter; exports.TypeGit = _chunk4K65HJ37cjs.TypeGit; exports.cloneConfigArgs = _chunkSKN5H7RXcjs.cloneConfigArgs; exports.createGit = _chunkSKN5H7RXcjs.createGit; exports.createGitSync = _chunkSKN5H7RXcjs.createGitSync; exports.createNodeAdapters = _chunk4K65HJ37cjs.createNodeAdapters; exports.detectErrorCategory = _chunkRWKMVYO5cjs.detectErrorCategory; exports.isCloneConfigKey = _chunkSKN5H7RXcjs.isCloneConfigKey; exports.isNonEmpty = _chunkRWKMVYO5cjs.isNonEmpty; exports.nonEmpty = _chunkRWKMVYO5cjs.nonEmpty; exports.parseGitLog = _chunkRWKMVYO5cjs.parseGitLog; exports.parseGitProgress = _chunkRWKMVYO5cjs.parseGitProgress; exports.parseJson = _chunkRWKMVYO5cjs.parseJson; exports.parseKeyValue = _chunkRWKMVYO5cjs.parseKeyValue; exports.parseLfsProgress = _chunkRWKMVYO5cjs.parseLfsProgress; exports.parseLines = _chunkRWKMVYO5cjs.parseLines; exports.parseLsRemote = _chunkRWKMVYO5cjs.parseLsRemote; exports.parseLsTree = _chunkRWKMVYO5cjs.parseLsTree; exports.parsePorcelainV2 = _chunkRWKMVYO5cjs.parsePorcelainV2; exports.parseRecords = _chunkRWKMVYO5cjs.parseRecords; exports.parseWorktreeList = _chunkRWKMVYO5cjs.parseWorktreeList; exports.resolveInheritedEnv = _chunkRWKMVYO5cjs.resolveInheritedEnv;
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-DVs3pi2e.cjs';
3
- export { aQ as AddOpts, A as AuditConfig, cO as AuditEvent, cN as AuditEventEnd, cM as AuditEventStart, B as BareRepo, aT as BranchCreateOpts, aU as BranchDeleteOpts, aR as BranchInfo, cb as BranchOperations, aS as BranchOpts, C as Capabilities, aV as CheckoutBranchOpts, aX as CheckoutOpts, aW as CheckoutPathOpts, bd as CherryPickOpts, be as CleanOpts, at as CloneConfig, as as CloneConfigKey, aq as CloneConfigSchema, ar as CloneHttpVariable, f as CloneOpts, h as CommandExecOpts, cI as CommandSpec, aL as Commit, aY as CommitOpts, aZ as CommitResult, a as CompanionExecutable, cn as ConfigEntry, co as ConfigGetOpts, cs as ConfigKey, cq as ConfigListOpts, ct as ConfigOperations, cr as ConfigSchema, cp as ConfigSetOpts, cK as Credential, cL as CredentialConfig, cJ as CredentialRequest, ay as DEFAULT_ENV_ALLOWLIST, a$ as DiffEntry, a_ as DiffOpts, b0 as DiffResult, aw as EnvAllowlistAdjustment, E as EnvInheritance, ax as EnvInheritancePredicate, c as ExecOpts, b as ExecutionContext, aN as FetchOpts, aO as ForceWithLeaseOpts, a6 as GIT_LOG_FORMAT, G as Git, cE as GitArgumentError, d as GitError, cD as GitErrorCategory, cC as GitErrorKind, e as GitOpenOptions, cB as GitOutput, a4 as GitOutputMode, cz as GitProgress, a7 as GitProgressInfo, aC as GlobalConfigListOpts, i as GlobalConfigOperations, aA as GlobalLfsInstallOpts, j as GlobalLfsOperations, aB as GlobalLfsUninstallOpts, I as InitOpts, bU as LfsCheckoutOpts, bY as LfsEnvInfo, ca as LfsExtraOperations, bJ as LfsFetchOpts, bM as LfsFileEntry, bQ as LfsLockEntry, bR as LfsLockOpts, bT as LfsLocksOpts, bN as LfsLsFilesOpts, bX as LfsMigrateExportOpts, bW as LfsMigrateImportOpts, bV as LfsMigrateInfoOpts, cG as LfsMode, c9 as LfsOperations, b$ as LfsPreDownloadOpts, c0 as LfsPreDownloadResult, bZ as LfsPreUploadOpts, b_ as LfsPreUploadResult, cA as LfsProgress, a8 as LfsProgressInfo, bI as LfsPruneOpts, bF as LfsPullOpts, bG as LfsPushOpts, bE as LfsStatus, bH as LfsStatusOpts, bO as LfsTrackEntry, bP as LfsTrackOpts, bS as LfsUnlockOpts, aM as LogOpts, L as LsRemoteOpts, a9 as LsRemoteRef, g as LsRemoteResult, aG as LsTreeEntry, aa as LsTreeObjectType, aH as LsTreeOpts, b1 as MergeOpts, b2 as MergeResult, bf as MvOpts, cw as NonEmptyOperand, cv as NonEmptyString, cH as OutputContract, ab as ParsedCommit, ac as ParsedLsTreeEntry, ad as ParsedWorktree, ae as PorcelainV2Entry, b3 as PullOpts, aP as PushOpts, R as RawResult, bg as RebaseOpts, cf as RemoteAddOpts, ce as RemoteInfo, cm as RemoteOperations, ci as RemotePruneOpts, ck as RemoteSetBranchesOpts, cg as RemoteSetHeadOpts, ch as RemoteShowOpts, cj as RemoteUpdateOpts, cl as RemoteUrlOpts, aD as RepoBase, bK as RepoLfsInstallOpts, bL as RepoLfsUninstallOpts, aE as RepoLsRemoteOpts, aF as RepoLsRemoteResult, b4 as ResetOpts, bh as RestoreOpts, br as RevParseAnyRefOpts, bl as RevParseBooleanQuery, bm as RevParseListOpts, bn as RevParseListQuery, bs as RevParseOtherQuery, bt as RevParsePathFormat, bu as RevParsePathOpts, bk as RevParsePathQuery, bq as RevParseQuietRefOpts, bo as RevParseRefBaseOpts, bp as RevParseRefOpts, bi as RevertOpts, b5 as RmOpts, cF as Runtime, bj as ShowOpts, b8 as StashApplyOpts, b6 as StashEntry, cc as StashOperations, b7 as StashPushOpts, aI as StatusEntry, aK as StatusOpts, aJ as StatusPorcelain, bw as SubmoduleAddOpts, bx as SubmoduleDeinitOpts, bA as SubmoduleForeachOpts, bD as SubmoduleInfo, cu as SubmoduleOperations, bv as SubmoduleOpts, bC as SubmoduleSetBranchOpts, by as SubmoduleStatusOpts, bz as SubmoduleSummaryOpts, bB as SubmoduleSyncOpts, b9 as SwitchOpts, bc as TagCreateOpts, ba as TagInfo, bb as TagListOpts, cd as TagOperations, cP as TraceEvent, c1 as Worktree, c2 as WorktreeAddOpts, c7 as WorktreeLockOpts, c5 as WorktreeMoveOpts, c8 as WorktreeOperations, c4 as WorktreePruneOpts, c3 as WorktreeRemoveOpts, c6 as WorktreeRepairOpts, W as WorktreeRepo, av as cloneConfigArgs, a5 as detectErrorCategory, au as isCloneConfigKey, cy as isNonEmpty, cx as nonEmpty, af as parseGitLog, ag as parseGitProgress, ah as parseJson, ai as parseKeyValue, aj as parseLfsProgress, ak as parseLines, al as parseLsRemote, am as parseLsTree, an as parsePorcelainV2, ao as parseRecords, ap as parseWorktreeList, az as resolveInheritedEnv } from './git.d-CJUJ4264.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-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-C8wHgA_S.js';
3
- export { aQ as AddOpts, A as AuditConfig, cO as AuditEvent, cN as AuditEventEnd, cM as AuditEventStart, B as BareRepo, aT as BranchCreateOpts, aU as BranchDeleteOpts, aR as BranchInfo, cb as BranchOperations, aS as BranchOpts, C as Capabilities, aV as CheckoutBranchOpts, aX as CheckoutOpts, aW as CheckoutPathOpts, bd as CherryPickOpts, be as CleanOpts, at as CloneConfig, as as CloneConfigKey, aq as CloneConfigSchema, ar as CloneHttpVariable, f as CloneOpts, h as CommandExecOpts, cI as CommandSpec, aL as Commit, aY as CommitOpts, aZ as CommitResult, a as CompanionExecutable, cn as ConfigEntry, co as ConfigGetOpts, cs as ConfigKey, cq as ConfigListOpts, ct as ConfigOperations, cr as ConfigSchema, cp as ConfigSetOpts, cK as Credential, cL as CredentialConfig, cJ as CredentialRequest, ay as DEFAULT_ENV_ALLOWLIST, a$ as DiffEntry, a_ as DiffOpts, b0 as DiffResult, aw as EnvAllowlistAdjustment, E as EnvInheritance, ax as EnvInheritancePredicate, c as ExecOpts, b as ExecutionContext, aN as FetchOpts, aO as ForceWithLeaseOpts, a6 as GIT_LOG_FORMAT, G as Git, cE as GitArgumentError, d as GitError, cD as GitErrorCategory, cC as GitErrorKind, e as GitOpenOptions, cB as GitOutput, a4 as GitOutputMode, cz as GitProgress, a7 as GitProgressInfo, aC as GlobalConfigListOpts, i as GlobalConfigOperations, aA as GlobalLfsInstallOpts, j as GlobalLfsOperations, aB as GlobalLfsUninstallOpts, I as InitOpts, bU as LfsCheckoutOpts, bY as LfsEnvInfo, ca as LfsExtraOperations, bJ as LfsFetchOpts, bM as LfsFileEntry, bQ as LfsLockEntry, bR as LfsLockOpts, bT as LfsLocksOpts, bN as LfsLsFilesOpts, bX as LfsMigrateExportOpts, bW as LfsMigrateImportOpts, bV as LfsMigrateInfoOpts, cG as LfsMode, c9 as LfsOperations, b$ as LfsPreDownloadOpts, c0 as LfsPreDownloadResult, bZ as LfsPreUploadOpts, b_ as LfsPreUploadResult, cA as LfsProgress, a8 as LfsProgressInfo, bI as LfsPruneOpts, bF as LfsPullOpts, bG as LfsPushOpts, bE as LfsStatus, bH as LfsStatusOpts, bO as LfsTrackEntry, bP as LfsTrackOpts, bS as LfsUnlockOpts, aM as LogOpts, L as LsRemoteOpts, a9 as LsRemoteRef, g as LsRemoteResult, aG as LsTreeEntry, aa as LsTreeObjectType, aH as LsTreeOpts, b1 as MergeOpts, b2 as MergeResult, bf as MvOpts, cw as NonEmptyOperand, cv as NonEmptyString, cH as OutputContract, ab as ParsedCommit, ac as ParsedLsTreeEntry, ad as ParsedWorktree, ae as PorcelainV2Entry, b3 as PullOpts, aP as PushOpts, R as RawResult, bg as RebaseOpts, cf as RemoteAddOpts, ce as RemoteInfo, cm as RemoteOperations, ci as RemotePruneOpts, ck as RemoteSetBranchesOpts, cg as RemoteSetHeadOpts, ch as RemoteShowOpts, cj as RemoteUpdateOpts, cl as RemoteUrlOpts, aD as RepoBase, bK as RepoLfsInstallOpts, bL as RepoLfsUninstallOpts, aE as RepoLsRemoteOpts, aF as RepoLsRemoteResult, b4 as ResetOpts, bh as RestoreOpts, br as RevParseAnyRefOpts, bl as RevParseBooleanQuery, bm as RevParseListOpts, bn as RevParseListQuery, bs as RevParseOtherQuery, bt as RevParsePathFormat, bu as RevParsePathOpts, bk as RevParsePathQuery, bq as RevParseQuietRefOpts, bo as RevParseRefBaseOpts, bp as RevParseRefOpts, bi as RevertOpts, b5 as RmOpts, cF as Runtime, bj as ShowOpts, b8 as StashApplyOpts, b6 as StashEntry, cc as StashOperations, b7 as StashPushOpts, aI as StatusEntry, aK as StatusOpts, aJ as StatusPorcelain, bw as SubmoduleAddOpts, bx as SubmoduleDeinitOpts, bA as SubmoduleForeachOpts, bD as SubmoduleInfo, cu as SubmoduleOperations, bv as SubmoduleOpts, bC as SubmoduleSetBranchOpts, by as SubmoduleStatusOpts, bz as SubmoduleSummaryOpts, bB as SubmoduleSyncOpts, b9 as SwitchOpts, bc as TagCreateOpts, ba as TagInfo, bb as TagListOpts, cd as TagOperations, cP as TraceEvent, c1 as Worktree, c2 as WorktreeAddOpts, c7 as WorktreeLockOpts, c5 as WorktreeMoveOpts, c8 as WorktreeOperations, c4 as WorktreePruneOpts, c3 as WorktreeRemoveOpts, c6 as WorktreeRepairOpts, W as WorktreeRepo, av as cloneConfigArgs, a5 as detectErrorCategory, au as isCloneConfigKey, cy as isNonEmpty, cx as nonEmpty, af as parseGitLog, ag as parseGitProgress, ah as parseJson, ai as parseKeyValue, aj as parseLfsProgress, ak as parseLines, al as parseLsRemote, am as parseLsTree, an as parsePorcelainV2, ao as parseRecords, ap as parseWorktreeList, az as resolveInheritedEnv } from './git.d-CJUJ4264.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-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-YCSKHC3M.js";
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-RR5Q2UP2.js";
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-SXHFNCJZ.js";
36
+ } from "./chunk-V4ZRQG3O.js";
37
37
  export {
38
38
  CliRunner,
39
39
  DEFAULT_ENV_ALLOWLIST,