type-git 0.8.1 → 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.
@@ -3932,7 +3932,8 @@ var COMMAND_CONSTRAINTS = {
3932
3932
  reason: "Commit --all cannot use a pathspec file.",
3933
3933
  source: git("builtin/commit.c")
3934
3934
  },
3935
- // repo.commit emits no path operands and skips an empty pathspecFromFile or fixup.
3935
+ // repo.commit emits no path operands and refuses an empty fixup. It forwards an empty
3936
+ // pathspecFromFile, which Git 2.43 cannot open and newer Git ignores, so it supplies no paths.
3936
3937
  {
3937
3938
  id: "commit.include-paths",
3938
3939
  kind: "requires",
@@ -4132,7 +4133,8 @@ var COMMAND_CONSTRAINTS = {
4132
4133
  {
4133
4134
  id: "pull.branch-remote",
4134
4135
  kind: "requires",
4135
- when: { key: "branch", test: "nonempty" },
4136
+ // repo.pull emits an empty branch too (Git takes it as the remote's HEAD).
4137
+ when: active("branch"),
4136
4138
  required: [{ key: "remote", test: "nonempty" }],
4137
4139
  origin: "git",
4138
4140
  reason: "Git reads the first positional word as the repository, so a branch needs an explicit remote.",
@@ -4298,7 +4300,7 @@ var COMMAND_CONSTRAINTS = {
4298
4300
  when: { key: "startPoint", test: "nonempty" },
4299
4301
  choices: [active("create"), active("forceCreate")],
4300
4302
  origin: "git",
4301
- reason: "A start point is a second operand, which Git accepts only with -c or -C; --orphan takes no start point. An empty startPoint is not emitted.",
4303
+ reason: "A start point is a second operand, which Git accepts only with -c or -C; --orphan takes no start point. An empty startPoint is refused at runtime, as Git rejects it.",
4302
4304
  source: git("builtin/checkout.c")
4303
4305
  }
4304
4306
  ],
@@ -4936,7 +4938,8 @@ var INPUT_CONSTRAINTS = {
4936
4938
  kind: "forbid",
4937
4939
  when: [
4938
4940
  { key: "fixup", test: "startsWith", value: "amend:" },
4939
- { key: "message", test: "nonempty" }
4941
+ // repo.commit forwards an empty message as -m '', which Git refuses here too.
4942
+ { key: "message", test: "active" }
4940
4943
  ],
4941
4944
  origin: "git",
4942
4945
  reason: "An amend: fixup takes its message from the amended commit, not from a message.",
@@ -4947,7 +4950,8 @@ var INPUT_CONSTRAINTS = {
4947
4950
  kind: "forbid",
4948
4951
  when: [
4949
4952
  { key: "fixup", test: "startsWith", value: "reword:" },
4950
- { key: "message", test: "nonempty" }
4953
+ // repo.commit forwards an empty message as -m '', which Git refuses here too.
4954
+ { key: "message", test: "active" }
4951
4955
  ],
4952
4956
  origin: "git",
4953
4957
  reason: "A reword: fixup takes its message from the amended commit, not from a message.",
@@ -4958,7 +4962,8 @@ var INPUT_CONSTRAINTS = {
4958
4962
  kind: "scalar",
4959
4963
  key: "author",
4960
4964
  parser: "commit-author",
4961
- // repo.commit skips an empty author; dry runs return before determine_author_info.
4965
+ // An empty author is forwarded and Git matches it against existing authors, so the ident
4966
+ // parser skips it; dry runs return before determine_author_info.
4962
4967
  guard: [
4963
4968
  { key: "author", test: "nonempty" },
4964
4969
  { key: "dryRun", test: "inactive" }
@@ -4972,7 +4977,7 @@ var INPUT_CONSTRAINTS = {
4972
4977
  kind: "scalar",
4973
4978
  key: "date",
4974
4979
  parser: "commit-date",
4975
- // repo.commit skips an empty date and converts a Date, which still needs a valid time.
4980
+ // repo.commit refuses an empty date and converts a Date, which still needs a valid time.
4976
4981
  guard: [
4977
4982
  { key: "date", test: "present" },
4978
4983
  { key: "date", test: "notEquals", value: "" },
@@ -4988,7 +4993,8 @@ var INPUT_CONSTRAINTS = {
4988
4993
  id: "restore.paths",
4989
4994
  kind: "requiresAny",
4990
4995
  when: { key: "paths", test: "lengthEquals", value: 0 },
4991
- // An empty pathspecFromFile is not emitted, so it does not count.
4996
+ // An empty pathspecFromFile is forwarded but supplies no paths (Git 2.43 cannot open it and
4997
+ // newer Git ignores it), so it does not count.
4992
4998
  choices: [{ key: "pathspecFromFile", test: "nonempty" }],
4993
4999
  origin: "git",
4994
5000
  reason: "Restore without patch mode needs paths or a pathspec file.",
@@ -5010,7 +5016,8 @@ var INPUT_CONSTRAINTS = {
5010
5016
  key: "paths",
5011
5017
  min: 0,
5012
5018
  max: 0,
5013
- // The convenience APIs emit --pathspec-from-file only for a non-empty value.
5019
+ // An empty pathspecFromFile is forwarded but names no file (Git 2.43 cannot open it and newer
5020
+ // Git ignores it), so it does not count.
5014
5021
  when: { key: "pathspecFromFile", test: "nonempty" },
5015
5022
  origin: "git",
5016
5023
  reason: "Pathspec files cannot be combined with command-line pathspecs.",
@@ -5305,6 +5312,52 @@ import process2 from "process";
5305
5312
  var FATAL_ERROR_PATTERN = /fatal:\s*(.+)/i;
5306
5313
  var ERROR_PATTERN = /error:\s*(.+)/i;
5307
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
+ }
5308
5361
  var GIT_TRACE_PATTERN = /^\d{2}:\d{2}:\d{2}\.\d+\s+(?:trace:|[A-Za-z0-9_.-]+\.c:)/;
5309
5362
  var TRACE_ENV_PATTERN = /^(?:GIT_TRACE\w*|GIT_CURL_VERBOSE)$/i;
5310
5363
  function stripTraceEnv(env) {
@@ -5490,7 +5543,7 @@ var CliRunner = class _CliRunner {
5490
5543
  * Build command argv based on execution context
5491
5544
  */
5492
5545
  buildArgv(context, args) {
5493
- const argv = [this.gitBinary];
5546
+ const argv = [callerRelativeProgram(this.gitBinary, spawnCwd(context, false))];
5494
5547
  for (const parameter of this.configParameters()) {
5495
5548
  argv.push("-c", parameter);
5496
5549
  }
@@ -5539,7 +5592,7 @@ var CliRunner = class _CliRunner {
5539
5592
  if (allPathPrefixes.length > 0) {
5540
5593
  const isWindows = process2.platform === "win32";
5541
5594
  const separator = isWindows ? ";" : ":";
5542
- const pathKey = isWindows ? Object.keys(env).find((key) => key.toLowerCase() === "path") ?? "PATH" : "PATH";
5595
+ const pathKey = pathKeyOf(env);
5543
5596
  const currentPath = env[pathKey] ?? "";
5544
5597
  env[pathKey] = [...allPathPrefixes, currentPath].join(separator);
5545
5598
  }
@@ -5815,6 +5868,10 @@ var CliRunner = class _CliRunner {
5815
5868
  if (envOverride) {
5816
5869
  applyEnvOverride(env, envOverride);
5817
5870
  }
5871
+ const cwd = spawnCwd(context, executable !== void 0);
5872
+ if (cwd !== void 0) {
5873
+ anchorSearchPath(env);
5874
+ }
5818
5875
  if (internal) {
5819
5876
  stripTraceEnv(env);
5820
5877
  }
@@ -5857,7 +5914,7 @@ var CliRunner = class _CliRunner {
5857
5914
  // The env above is already fully resolved (including any inherited variables),
5858
5915
  // so the adapter must not merge the parent environment on top of it.
5859
5916
  inheritEnv: false,
5860
- cwd: context.type === "worktree" ? context.workdir : executable && context.type === "bare" ? context.gitDir : void 0,
5917
+ cwd,
5861
5918
  signal
5862
5919
  },
5863
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-DqAvRXEf.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-DqAvRXEf.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
  *
@@ -122,6 +122,24 @@ declare const NonEmptyBrand: unique symbol;
122
122
  type NonEmptyString = string & {
123
123
  readonly [NonEmptyBrand]: never;
124
124
  };
125
+ /**
126
+ * A string operand type that refuses the literal `''` at compile time.
127
+ *
128
+ * Git never resolves an empty word as a revision (`git reset ''` and `git diff ''` exit 128), and
129
+ * omitting the word runs a different command, so APIs that take an optional revision use this
130
+ * type to reject `''` written in the source. A value typed as plain `string` still compiles and is
131
+ * refused at runtime with `GitArgumentError`; to leave the revision out, pass `undefined`.
132
+ * A caller generic over the operand (`<S extends string>(s: S)`) cannot be proven nonempty, so it
133
+ * passes the type argument explicitly, as in `repo.reset<string>(s)`.
134
+ *
135
+ * @example
136
+ * ```typescript
137
+ * await repo.reset('HEAD~1'); // OK
138
+ * await repo.reset(); // OK: same as `git reset`
139
+ * await repo.reset(''); // type error
140
+ * ```
141
+ */
142
+ type NonEmptyOperand<T extends string> = T extends '' ? never : T;
125
143
  /**
126
144
  * Validates and converts a string to NonEmptyString.
127
145
  *
@@ -233,6 +251,28 @@ type CommandExecOpts = ExecOpts & {
233
251
  */
234
252
  env?: Record<string, string>;
235
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
+ };
236
276
  /**
237
277
  * Result from raw Git command execution
238
278
  */
@@ -292,6 +332,14 @@ type GitErrorCategory =
292
332
  | 'corruption'
293
333
  /** Unclassifiable */
294
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
+ };
295
343
  /**
296
344
  * Git error with detailed context
297
345
  */
@@ -306,6 +354,13 @@ declare class GitError extends Error {
306
354
  signal?: string;
307
355
  stdout?: string;
308
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;
309
364
  };
310
365
  readonly category: GitErrorCategory;
311
366
  constructor(kind: GitErrorKind, message: string, context?: {
@@ -317,6 +372,13 @@ declare class GitError extends Error {
317
372
  signal?: string;
318
373
  stdout?: string;
319
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;
320
382
  }, category?: GitErrorCategory);
321
383
  /**
322
384
  * Check if the error is retryable (§13.2)
@@ -2237,7 +2299,7 @@ declare const COMMAND_CONSTRAINTS: {
2237
2299
  readonly kind: "requires";
2238
2300
  readonly when: {
2239
2301
  readonly key: "branch";
2240
- readonly test: "nonempty";
2302
+ readonly test: "active";
2241
2303
  };
2242
2304
  readonly required: readonly [{
2243
2305
  readonly key: "remote";
@@ -2417,7 +2479,7 @@ declare const COMMAND_CONSTRAINTS: {
2417
2479
  readonly test: "active";
2418
2480
  }];
2419
2481
  readonly origin: "git";
2420
- readonly reason: "A start point is a second operand, which Git accepts only with -c or -C; --orphan takes no start point. An empty startPoint is not emitted.";
2482
+ readonly reason: "A start point is a second operand, which Git accepts only with -c or -C; --orphan takes no start point. An empty startPoint is refused at runtime, as Git rejects it.";
2421
2483
  readonly source: string;
2422
2484
  }];
2423
2485
  readonly cherryPick: readonly [{
@@ -6668,8 +6730,11 @@ interface RepoBase {
6668
6730
  * which refuse operands that Git would parse as options. `stdin` is only safe for commands that
6669
6731
  * read it as data (such as `hash-object --stdin`); commands that read it as instructions (such
6670
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.
6671
6736
  */
6672
- raw(argv: string[], opts?: CommandExecOpts): Promise<RawResult>;
6737
+ raw(argv: string[], opts?: RawExecOpts): Promise<RawResult>;
6673
6738
  /**
6674
6739
  * Check if this repository is a worktree repository (has working directory)
6675
6740
  *
@@ -9726,16 +9791,16 @@ interface WorktreeRepo extends RepoBase {
9726
9791
  * @example
9727
9792
  * ```typescript
9728
9793
  * const diff = await repo.diff('HEAD~1');
9729
- * const staged = await repo.diff({ staged: true });
9794
+ * const staged = await repo.diff(undefined, { staged: true });
9730
9795
  * ```
9731
9796
  */
9732
- diff(target: string | undefined, opts: DiffOpts & {
9797
+ diff<T extends string>(target: NonEmptyOperand<T> | undefined, opts: DiffOpts & {
9733
9798
  nameOnly: true;
9734
9799
  } & ExecOpts): Promise<string[]>;
9735
- diff(target?: string, opts?: DiffOpts & {
9800
+ diff<T extends string>(target?: NonEmptyOperand<T>, opts?: DiffOpts & {
9736
9801
  nameOnly?: false;
9737
9802
  } & ExecOpts): Promise<DiffResult>;
9738
- diff(target?: string, opts?: DiffOpts & ExecOpts): Promise<DiffResult | string[]>;
9803
+ diff<T extends string>(target?: NonEmptyOperand<T>, opts?: DiffOpts & ExecOpts): Promise<DiffResult | string[]>;
9739
9804
  /**
9740
9805
  * Merge branches
9741
9806
  *
@@ -9768,8 +9833,13 @@ interface WorktreeRepo extends RepoBase {
9768
9833
  * await repo.reset('HEAD~1', { mode: 'hard' });
9769
9834
  * await repo.reset(undefined, { mode: 'soft' });
9770
9835
  * ```
9836
+ *
9837
+ * Leaving `target` out runs `git reset` (HEAD). An empty `target` is refused, as Git refuses
9838
+ * `git reset ''`: the literal `''` is a type error and an empty string value throws
9839
+ * `GitArgumentError` before Git runs. A caller generic over the target type (`<S extends
9840
+ * string>`) passes it as `repo.reset<string>(target)`.
9771
9841
  */
9772
- reset(target?: string, opts?: ResetOpts & ExecOpts): Promise<void>;
9842
+ reset<T extends string>(target?: NonEmptyOperand<T>, opts?: ResetOpts & ExecOpts): Promise<void>;
9773
9843
  /**
9774
9844
  * Remove files from the working tree and from the index
9775
9845
  *
@@ -10490,8 +10560,11 @@ interface Git {
10490
10560
  * which refuse operands that Git would parse as options. `stdin` is only safe for commands that
10491
10561
  * read it as data (such as `hash-object --stdin`); commands that read it as instructions (such
10492
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.
10493
10566
  */
10494
- raw(argv: string[], opts?: CommandExecOpts): Promise<RawResult>;
10567
+ raw(argv: string[], opts?: RawExecOpts): Promise<RawResult>;
10495
10568
  /**
10496
10569
  * Global config operations
10497
10570
  *
@@ -10512,4 +10585,4 @@ interface Git {
10512
10585
  lfs: GlobalLfsOperations;
10513
10586
  }
10514
10587
 
10515
- 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 GitOutput as cA, type GitErrorKind as cB, type GitErrorCategory as cC, GitArgumentError as cD, type Runtime as cE, type LfsMode as cF, type OutputContract as cG, type CommandSpec as cH, type CredentialRequest as cI, type Credential as cJ, type CredentialConfig as cK, type AuditEventStart as cL, type AuditEventEnd as cM, type AuditEvent as cN, type TraceEvent as cO, 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, nonEmpty as cw, isNonEmpty as cx, type GitProgress as cy, type LfsProgress 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 _chunkJDCCYWIXcjs = require('./chunk-JDCCYWIX.cjs');
6
+ var _chunkI77B22ZEcjs = require('./chunk-I77B22ZE.cjs');
7
7
 
8
8
 
9
9
 
@@ -11,7 +11,7 @@ var _chunkJDCCYWIXcjs = require('./chunk-JDCCYWIX.cjs');
11
11
 
12
12
 
13
13
 
14
- var _chunkUHZWPYTFcjs = require('./chunk-UHZWPYTF.cjs');
14
+ var _chunkSNC324NLcjs = require('./chunk-SNC324NL.cjs');
15
15
 
16
16
 
17
17
 
@@ -33,7 +33,7 @@ var _chunkUHZWPYTFcjs = require('./chunk-UHZWPYTF.cjs');
33
33
 
34
34
 
35
35
 
36
- var _chunk6HDMSFY7cjs = require('./chunk-6HDMSFY7.cjs');
36
+ var _chunkQHIS7LHWcjs = require('./chunk-QHIS7LHW.cjs');
37
37
 
38
38
 
39
39
 
@@ -65,4 +65,4 @@ var _chunk6HDMSFY7cjs = require('./chunk-6HDMSFY7.cjs');
65
65
 
66
66
 
67
67
 
68
- exports.CliRunner = _chunk6HDMSFY7cjs.CliRunner; exports.DEFAULT_ENV_ALLOWLIST = _chunk6HDMSFY7cjs.DEFAULT_ENV_ALLOWLIST; exports.GIT_LOG_FORMAT = _chunk6HDMSFY7cjs.GIT_LOG_FORMAT; exports.GitArgumentError = _chunk6HDMSFY7cjs.GitArgumentError; exports.GitError = _chunk6HDMSFY7cjs.GitError; exports.LEGACY_GIT_VERSION = _chunkUHZWPYTFcjs.LEGACY_GIT_VERSION; exports.MIN_GIT_VERSION = _chunkUHZWPYTFcjs.MIN_GIT_VERSION; exports.NodeExecAdapter = _chunkJDCCYWIXcjs.NodeExecAdapter; exports.NodeFsAdapter = _chunkJDCCYWIXcjs.NodeFsAdapter; exports.TypeGit = _chunkJDCCYWIXcjs.TypeGit; exports.cloneConfigArgs = _chunkUHZWPYTFcjs.cloneConfigArgs; exports.createGit = _chunkUHZWPYTFcjs.createGit; exports.createGitSync = _chunkUHZWPYTFcjs.createGitSync; exports.createNodeAdapters = _chunkJDCCYWIXcjs.createNodeAdapters; exports.detectErrorCategory = _chunk6HDMSFY7cjs.detectErrorCategory; exports.isCloneConfigKey = _chunkUHZWPYTFcjs.isCloneConfigKey; exports.isNonEmpty = _chunk6HDMSFY7cjs.isNonEmpty; exports.nonEmpty = _chunk6HDMSFY7cjs.nonEmpty; exports.parseGitLog = _chunk6HDMSFY7cjs.parseGitLog; exports.parseGitProgress = _chunk6HDMSFY7cjs.parseGitProgress; exports.parseJson = _chunk6HDMSFY7cjs.parseJson; exports.parseKeyValue = _chunk6HDMSFY7cjs.parseKeyValue; exports.parseLfsProgress = _chunk6HDMSFY7cjs.parseLfsProgress; exports.parseLines = _chunk6HDMSFY7cjs.parseLines; exports.parseLsRemote = _chunk6HDMSFY7cjs.parseLsRemote; exports.parseLsTree = _chunk6HDMSFY7cjs.parseLsTree; exports.parsePorcelainV2 = _chunk6HDMSFY7cjs.parsePorcelainV2; exports.parseRecords = _chunk6HDMSFY7cjs.parseRecords; exports.parseWorktreeList = _chunk6HDMSFY7cjs.parseWorktreeList; exports.resolveInheritedEnv = _chunk6HDMSFY7cjs.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-Cg5wWJnY.cjs';
3
- export { aQ as AddOpts, A as AuditConfig, cN as AuditEvent, cM as AuditEventEnd, cL 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, cH 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, cJ as Credential, cK as CredentialConfig, cI 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, cD as GitArgumentError, d as GitError, cC as GitErrorCategory, cB as GitErrorKind, e as GitOpenOptions, cA as GitOutput, a4 as GitOutputMode, cy 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, cF as LfsMode, c9 as LfsOperations, b$ as LfsPreDownloadOpts, c0 as LfsPreDownloadResult, bZ as LfsPreUploadOpts, b_ as LfsPreUploadResult, cz 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, cv as NonEmptyString, cG 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, cE 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, cO 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, cx as isNonEmpty, cw 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-DqAvRXEf.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-DCiFA_CK.js';
3
- export { aQ as AddOpts, A as AuditConfig, cN as AuditEvent, cM as AuditEventEnd, cL 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, cH 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, cJ as Credential, cK as CredentialConfig, cI 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, cD as GitArgumentError, d as GitError, cC as GitErrorCategory, cB as GitErrorKind, e as GitOpenOptions, cA as GitOutput, a4 as GitOutputMode, cy 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, cF as LfsMode, c9 as LfsOperations, b$ as LfsPreDownloadOpts, c0 as LfsPreDownloadResult, bZ as LfsPreUploadOpts, b_ as LfsPreUploadResult, cz 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, cv as NonEmptyString, cG 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, cE 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, cO 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, cx as isNonEmpty, cw 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-DqAvRXEf.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-S3EFBFVP.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-ADC26634.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-UAKOSACD.js";
36
+ } from "./chunk-V4ZRQG3O.js";
37
37
  export {
38
38
  CliRunner,
39
39
  DEFAULT_ENV_ALLOWLIST,