@gitkraken/core-gitlens 0.58.0 → 0.60.0

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.
Files changed (101) hide show
  1. package/CHANGELOG.md +20 -1
  2. package/dist/git/context.d.ts +1 -0
  3. package/dist/git/context.js.map +1 -1
  4. package/dist/git/features.d.ts +1 -1
  5. package/dist/git/features.js +1 -0
  6. package/dist/git/features.js.map +1 -1
  7. package/dist/git/models/graph.d.ts +2 -1
  8. package/dist/git/models/graph.js.map +1 -1
  9. package/dist/git/models/graphSession.d.ts +8 -0
  10. package/dist/git/models/graphSession.js.map +1 -1
  11. package/dist/git/parsers/diffParser.js +1 -1
  12. package/dist/git/utils/hiddenRefs.utils.d.ts +26 -0
  13. package/dist/git/utils/hiddenRefs.utils.js +89 -0
  14. package/dist/git/utils/hiddenRefs.utils.js.map +1 -0
  15. package/dist/git/utils/search.utils.d.ts +3 -1
  16. package/dist/git/utils/search.utils.js +3 -1
  17. package/dist/git/utils/search.utils.js.map +1 -1
  18. package/dist/git-cli/exec/git.js +2 -1
  19. package/dist/git-cli/exec/git.js.map +1 -1
  20. package/dist/git-cli/exec/locator.d.ts +2 -1
  21. package/dist/git-cli/exec/locator.js +11 -3
  22. package/dist/git-cli/exec/locator.js.map +1 -1
  23. package/dist/git-cli/parsers/blameParser.js +1 -1
  24. package/dist/git-cli/parsers/indexParser.js +1 -1
  25. package/dist/git-cli/parsers/statusParser.js +1 -1
  26. package/dist/git-cli/providers/branches.js +1 -1
  27. package/dist/git-cli/providers/commits.js +3 -2
  28. package/dist/git-cli/providers/commits.js.map +1 -1
  29. package/dist/git-cli/providers/config.js +2 -2
  30. package/dist/git-cli/providers/graph.d.ts +11 -1
  31. package/dist/git-cli/providers/graph.js +156 -38
  32. package/dist/git-cli/providers/graph.js.map +1 -1
  33. package/dist/git-cli/providers/pausedOperations.js +2 -2
  34. package/dist/git-cli/providers/pausedOperations.js.map +1 -1
  35. package/dist/git-cli/providers/refs.js +1 -1
  36. package/dist/git-cli/providers/staging.js +1 -1
  37. package/dist/git-cli/providers/tags.js +1 -1
  38. package/dist/git-cli/service.js +1 -1
  39. package/dist/ipc/discovery.js +1 -1
  40. package/dist/plus/agents/providers/claudeCodeTranscript.js +6 -6
  41. package/dist/plus/agents/providers/claudeCodeTranscript.js.map +1 -1
  42. package/dist/plus/ai/providers/openAICompatibleProviderBase.js +1 -1
  43. package/dist/plus/integrations/index.d.ts +2 -1
  44. package/dist/plus/integrations/index.js.map +1 -1
  45. package/dist/plus/integrations/integrationService.d.ts +7 -0
  46. package/dist/plus/integrations/integrationService.js +71 -8
  47. package/dist/plus/integrations/integrationService.js.map +1 -1
  48. package/dist/plus/integrations/manager.d.ts +6 -0
  49. package/dist/plus/integrations/models/azurePullRequestWrites.d.ts +3 -1
  50. package/dist/plus/integrations/models/gitlabIssueWrites.d.ts +86 -0
  51. package/dist/plus/integrations/models/gitlabIssueWrites.js +9 -0
  52. package/dist/plus/integrations/models/gitlabIssueWrites.js.map +1 -0
  53. package/dist/plus/integrations/models/integration.d.ts +1 -1
  54. package/dist/plus/integrations/models/integration.js +1 -1
  55. package/dist/plus/integrations/models/integration.js.map +1 -1
  56. package/dist/plus/integrations/models/issueTrackerWrites.d.ts +12 -3
  57. package/dist/plus/integrations/models/publicIntegration.d.ts +1 -0
  58. package/dist/plus/integrations/providers/azure/azure.js +1 -1
  59. package/dist/plus/integrations/providers/azure/models.d.ts +1 -1
  60. package/dist/plus/integrations/providers/azure/models.js.map +1 -1
  61. package/dist/plus/integrations/providers/azurePullRequestWriteErrors.d.ts +6 -2
  62. package/dist/plus/integrations/providers/azurePullRequestWriteErrors.js +44 -10
  63. package/dist/plus/integrations/providers/azurePullRequestWriteErrors.js.map +1 -1
  64. package/dist/plus/integrations/providers/azurePullRequestWrites.d.ts +1 -0
  65. package/dist/plus/integrations/providers/azurePullRequestWrites.js +28 -13
  66. package/dist/plus/integrations/providers/azurePullRequestWrites.js.map +1 -1
  67. package/dist/plus/integrations/providers/github.js +1 -1
  68. package/dist/plus/integrations/providers/gitlab/gitlab.d.ts +4 -1
  69. package/dist/plus/integrations/providers/gitlab/gitlab.js +4 -0
  70. package/dist/plus/integrations/providers/gitlab/gitlab.js.map +1 -1
  71. package/dist/plus/integrations/providers/gitlab/issueWriteErrors.d.ts +11 -0
  72. package/dist/plus/integrations/providers/gitlab/issueWriteErrors.js +73 -0
  73. package/dist/plus/integrations/providers/gitlab/issueWriteErrors.js.map +1 -0
  74. package/dist/plus/integrations/providers/gitlab/issueWrites.d.ts +33 -0
  75. package/dist/plus/integrations/providers/gitlab/issueWrites.js +325 -0
  76. package/dist/plus/integrations/providers/gitlab/issueWrites.js.map +1 -0
  77. package/dist/plus/integrations/providers/gitlab.d.ts +7 -1
  78. package/dist/plus/integrations/providers/gitlab.js +24 -0
  79. package/dist/plus/integrations/providers/gitlab.js.map +1 -1
  80. package/dist/plus/integrations/providers/issueSorts.d.ts +1 -0
  81. package/dist/plus/integrations/providers/jira-server.d.ts +10 -0
  82. package/dist/plus/integrations/providers/jira-server.js +16 -1
  83. package/dist/plus/integrations/providers/jira-server.js.map +1 -1
  84. package/dist/plus/integrations/providers/jiraIssueWrites.d.ts +6 -0
  85. package/dist/plus/integrations/providers/jiraIssueWrites.js +60 -11
  86. package/dist/plus/integrations/providers/jiraIssueWrites.js.map +1 -1
  87. package/dist/plus/integrations/providers/providerApiClient.js +6 -2
  88. package/dist/plus/integrations/providers/providerApiClient.js.map +1 -1
  89. package/dist/plus/integrations/providers/providersApi.d.ts +3 -0
  90. package/dist/plus/integrations/providers/providersApi.js +13 -0
  91. package/dist/plus/integrations/providers/providersApi.js.map +1 -1
  92. package/dist/plus/integrations/reads/currentAccount.d.ts +1 -1
  93. package/dist/plus/integrations/reads/currentAccount.js +1 -1
  94. package/dist/plus/integrations/reads/currentAccount.js.map +1 -1
  95. package/dist/plus/integrations/reads/drains.d.ts +1 -0
  96. package/dist/plus/integrations/reads/issueTracker.js +4 -1
  97. package/dist/plus/integrations/reads/issueTracker.js.map +1 -1
  98. package/dist/utils/env/node/exec.js +2 -2
  99. package/docs/integrations.md +65 -5
  100. package/docs/kepler-read-api-parity.md +2 -1
  101. package/package.json +1 -1
@@ -1,7 +1,8 @@
1
1
  //#region ../git-cli/src/exec/locator.d.ts
2
2
  export declare class UnableToFindGitError extends Error {
3
3
  readonly original?: Error | undefined;
4
- constructor(original?: Error | undefined);
4
+ readonly reason?: 'xcodeLicense' | undefined;
5
+ constructor(original?: Error | undefined, reason?: 'xcodeLicense' | undefined);
5
6
  }
6
7
  export declare class InvalidGitConfigError extends Error {
7
8
  readonly original: Error;
@@ -7,9 +7,11 @@ import * as process from "process";
7
7
  //#region ../git-cli/src/exec/locator.ts
8
8
  var UnableToFindGitError = class extends Error {
9
9
  original;
10
- constructor(original) {
10
+ reason;
11
+ constructor(original, reason) {
11
12
  super(l10n.t("Unable to find git"));
12
13
  this.original = original;
14
+ this.reason = reason;
13
15
  Error.captureStackTrace?.(this, new.target);
14
16
  }
15
17
  };
@@ -21,6 +23,12 @@ var InvalidGitConfigError = class extends Error {
21
23
  Error.captureStackTrace?.(this, new.target);
22
24
  }
23
25
  };
26
+ const xcodeLicenseRegex = /xcodebuild -license|Xcode(?:\/iOS)? license/i;
27
+ function toLocatorError(ex) {
28
+ const text = `${ex?.stderr ?? ""}\n${ex?.message ?? ""}`;
29
+ if (xcodeLicenseRegex.test(text)) return new UnableToFindGitError(ex, "xcodeLicense");
30
+ return ex;
31
+ }
24
32
  async function findSpecificGit(path) {
25
33
  const sw = maybeStopWatch(`findSpecificGit(path=${path})`, {
26
34
  log: {
@@ -35,7 +43,7 @@ async function findSpecificGit(path) {
35
43
  } catch (ex) {
36
44
  sw?.stop({ message: `\u2022 Unable to find git: ${ex}` });
37
45
  if (/bad config/i.test(ex.message)) throw new InvalidGitConfigError(ex);
38
- throw ex;
46
+ throw toLocatorError(ex);
39
47
  }
40
48
  if (!path || path === "git") {
41
49
  const foundPath = (await findExecutable(path, ["--version"])).cmd;
@@ -44,7 +52,7 @@ async function findSpecificGit(path) {
44
52
  } catch (ex) {
45
53
  sw?.stop({ message: `\u2022 Unable to find git: ${ex}` });
46
54
  if (/bad config/i.test(ex.message)) throw new InvalidGitConfigError(ex);
47
- throw ex;
55
+ throw toLocatorError(ex);
48
56
  }
49
57
  path = foundPath;
50
58
  }
@@ -1 +1 @@
1
- {"version":3,"file":"locator.js","names":["joinPaths"],"sources":["../../../../git-cli/src/exec/locator.ts"],"sourcesContent":["import { join as joinPaths } from 'path';\nimport * as process from 'process';\nimport * as l10n from '@vscode/l10n';\nimport { any } from '@gitlens/utils/promise.js';\nimport { maybeStopWatch } from '@gitlens/utils/stopwatch.js';\nimport { findExecutable, run } from './exec.js';\n\nexport class UnableToFindGitError extends Error {\n\tconstructor(public readonly original?: Error) {\n\t\tsuper(l10n.t('Unable to find git'));\n\n\t\tError.captureStackTrace?.(this, new.target);\n\t}\n}\n\nexport class InvalidGitConfigError extends Error {\n\tconstructor(public readonly original: Error) {\n\t\tsuper(l10n.t('Invalid Git configuration'));\n\n\t\tError.captureStackTrace?.(this, new.target);\n\t}\n}\n\nexport interface GitLocation {\n\tpath: string;\n\tversion: string;\n}\n\nasync function findSpecificGit(path: string): Promise<GitLocation> {\n\tconst sw = maybeStopWatch(`findSpecificGit(path=${path})`, {\n\t\tlog: { level: 'debug', onlyExit: true },\n\t\tscopeLabel: 'GIT',\n\t});\n\n\tlet version;\n\ttry {\n\t\tversion = await run(path, ['--version'], 'utf8');\n\t} catch (ex) {\n\t\tsw?.stop({ message: `\\u2022 Unable to find git: ${ex}` });\n\n\t\tif (/bad config/i.test(ex.message)) throw new InvalidGitConfigError(ex);\n\t\tthrow ex;\n\t}\n\n\t// If needed, let's update our path to avoid the search on every command\n\tif (!path || path === 'git') {\n\t\tconst foundPath = (await findExecutable(path, ['--version'])).cmd;\n\n\t\t// Ensure that the path we found works\n\t\ttry {\n\t\t\tversion = await run(foundPath, ['--version'], 'utf8');\n\t\t} catch (ex) {\n\t\t\tsw?.stop({ message: `\\u2022 Unable to find git: ${ex}` });\n\n\t\t\tif (/bad config/i.test(ex.message)) throw new InvalidGitConfigError(ex);\n\t\t\tthrow ex;\n\t\t}\n\n\t\tpath = foundPath;\n\t}\n\n\tconst parsed = version\n\t\t.trim()\n\t\t.replace(/^git version /, '')\n\t\t.trim();\n\n\tsw?.stop({ message: `\\u2022 Found git v${parsed} in ${path}` });\n\n\treturn {\n\t\tpath: path,\n\t\tversion: parsed,\n\t};\n}\n\nasync function findGitDarwin(): Promise<GitLocation> {\n\ttry {\n\t\tconst path = (await run('which', ['git'], 'utf8')).trim();\n\t\tif (path !== '/usr/bin/git') return await findSpecificGit(path);\n\n\t\ttry {\n\t\t\tawait run('xcode-select', ['-p'], 'utf8');\n\t\t\treturn await findSpecificGit(path);\n\t\t} catch (ex) {\n\t\t\tif (ex.code === 2) {\n\t\t\t\treturn await Promise.reject(new UnableToFindGitError(ex));\n\t\t\t}\n\t\t\treturn await findSpecificGit(path);\n\t\t}\n\t} catch (ex) {\n\t\treturn Promise.reject(\n\t\t\tex instanceof InvalidGitConfigError || ex instanceof UnableToFindGitError\n\t\t\t\t? ex\n\t\t\t\t: new UnableToFindGitError(ex),\n\t\t);\n\t}\n}\n\nfunction findSystemGitWin32(basePath: string | null | undefined): Promise<GitLocation> {\n\tif (basePath == null || basePath.length === 0) return Promise.reject(new UnableToFindGitError());\n\treturn findSpecificGit(joinPaths(basePath, 'Git', 'cmd', 'git.exe'));\n}\n\nfunction findGitWin32(): Promise<GitLocation> {\n\treturn findSystemGitWin32(process.env['ProgramW6432'])\n\t\t.then(null, () => findSystemGitWin32(process.env['ProgramFiles(x86)']))\n\t\t.then(null, () => findSystemGitWin32(process.env['ProgramFiles']))\n\t\t.then(null, () => findSpecificGit('git'));\n}\n\nfunction findGitLinux(): Promise<GitLocation> {\n\treturn findSpecificGit('/usr/bin/git').then(null, () =>\n\t\tfindSpecificGit('/usr/local/bin/git').then(null, () =>\n\t\t\tfindSpecificGit('git').then(null, () => Promise.reject(new UnableToFindGitError())),\n\t\t),\n\t);\n}\n\nexport async function findGitPath(\n\tpaths: string | string[] | null | undefined,\n\tsearch: boolean = true,\n): Promise<GitLocation> {\n\ttry {\n\t\tif (paths == null || typeof paths === 'string') {\n\t\t\treturn await findSpecificGit(paths ?? 'git');\n\t\t}\n\n\t\ttry {\n\t\t\treturn await any(...paths.map(p => findSpecificGit(p)));\n\t\t} catch (ex) {\n\t\t\tthrow new UnableToFindGitError(ex);\n\t\t}\n\t} catch (ex) {\n\t\tif (!search) {\n\t\t\treturn Promise.reject(\n\t\t\t\tex instanceof InvalidGitConfigError || ex instanceof UnableToFindGitError\n\t\t\t\t\t? ex\n\t\t\t\t\t: new UnableToFindGitError(ex),\n\t\t\t);\n\t\t}\n\n\t\ttry {\n\t\t\tswitch (process.platform) {\n\t\t\t\tcase 'darwin':\n\t\t\t\t\treturn await findGitDarwin();\n\t\t\t\tcase 'win32':\n\t\t\t\t\treturn await findGitWin32();\n\t\t\t\tdefault:\n\t\t\t\t\treturn await findGitLinux();\n\t\t\t}\n\t\t} catch (ex) {\n\t\t\treturn Promise.reject(\n\t\t\t\tex instanceof InvalidGitConfigError || ex instanceof UnableToFindGitError\n\t\t\t\t\t? ex\n\t\t\t\t\t: new UnableToFindGitError(ex),\n\t\t\t);\n\t\t}\n\t}\n}\n"],"mappings":";;;;;;;AAOA,IAAa,uBAAb,cAA0C,MAAM;CACnB;CAA5B,YAAY,UAAkC;EAC7C,MAAM,KAAK,EAAE,oBAAoB,CAAC;EADP,KAAA,WAAA;EAG3B,MAAM,oBAAoB,MAAM,UAAU;CAC3C;AACD;AAEA,IAAa,wBAAb,cAA2C,MAAM;CACpB;CAA5B,YAAY,UAAiC;EAC5C,MAAM,KAAK,EAAE,2BAA2B,CAAC;EADd,KAAA,WAAA;EAG3B,MAAM,oBAAoB,MAAM,UAAU;CAC3C;AACD;AAOA,eAAe,gBAAgB,MAAoC;CAClE,MA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M,aAAa;IAC3B,SACC,OAAO,MAAM,aAAa;GAC5B;EACD,SAAS,IAAI;GACZ,OAAO,QAAQ,OACd,cAAc,yBAAyB,cAAc,uBAClD,KACA,IAAI,qBAAqB,EAAE,CAC/B;EACD;CACD;AACD"}
1
+ {"version":3,"file":"locator.js","names":["joinPaths"],"sources":["../../../../git-cli/src/exec/locator.ts"],"sourcesContent":["import { join as joinPaths } from 'path';\nimport * as process from 'process';\nimport * as l10n from '@vscode/l10n';\nimport { any } from '@gitlens/utils/promise.js';\nimport { maybeStopWatch } from '@gitlens/utils/stopwatch.js';\nimport { findExecutable, run } from './exec.js';\n\nexport class UnableToFindGitError extends Error {\n\tconstructor(\n\t\tpublic readonly original?: Error,\n\t\tpublic readonly reason?: 'xcodeLicense',\n\t) {\n\t\tsuper(l10n.t('Unable to find git'));\n\n\t\tError.captureStackTrace?.(this, new.target);\n\t}\n}\n\nexport class InvalidGitConfigError extends Error {\n\tconstructor(public readonly original: Error) {\n\t\tsuper(l10n.t('Invalid Git configuration'));\n\n\t\tError.captureStackTrace?.(this, new.target);\n\t}\n}\n\nexport interface GitLocation {\n\tpath: string;\n\tversion: string;\n}\n\nconst xcodeLicenseRegex = /xcodebuild -license|Xcode(?:\\/iOS)? license/i;\n\nfunction toLocatorError(ex: unknown): unknown {\n\t// oxlint-disable-next-line @gitlens/no-raw-error-message -- classification only\n\tconst text = `${(ex as { stderr?: string } | undefined)?.stderr ?? ''}\\n${(ex as Error | undefined)?.message ?? ''}`;\n\t// SEE: /usr/bin/git exits 69 with this until the Xcode license is accepted (forums.developer.nvidia.com/t/350075)\n\tif (xcodeLicenseRegex.test(text)) return new UnableToFindGitError(ex as Error, 'xcodeLicense');\n\treturn ex;\n}\n\nasync function findSpecificGit(path: string): Promise<GitLocation> {\n\tconst sw = maybeStopWatch(`findSpecificGit(path=${path})`, {\n\t\tlog: { level: 'debug', onlyExit: true },\n\t\tscopeLabel: 'GIT',\n\t});\n\n\tlet version;\n\ttry {\n\t\tversion = await run(path, ['--version'], 'utf8');\n\t} catch (ex) {\n\t\tsw?.stop({ message: `\\u2022 Unable to find git: ${ex}` });\n\n\t\tif (/bad config/i.test(ex.message)) throw new InvalidGitConfigError(ex);\n\t\tthrow toLocatorError(ex);\n\t}\n\n\t// If needed, let's update our path to avoid the search on every command\n\tif (!path || path === 'git') {\n\t\tconst foundPath = (await findExecutable(path, ['--version'])).cmd;\n\n\t\t// Ensure that the path we found works\n\t\ttry {\n\t\t\tversion = await run(foundPath, ['--version'], 'utf8');\n\t\t} catch (ex) {\n\t\t\tsw?.stop({ message: `\\u2022 Unable to find git: ${ex}` });\n\n\t\t\tif (/bad config/i.test(ex.message)) throw new InvalidGitConfigError(ex);\n\t\t\tthrow toLocatorError(ex);\n\t\t}\n\n\t\tpath = foundPath;\n\t}\n\n\tconst parsed = version\n\t\t.trim()\n\t\t.replace(/^git version /, '')\n\t\t.trim();\n\n\tsw?.stop({ message: `\\u2022 Found git v${parsed} in ${path}` });\n\n\treturn {\n\t\tpath: path,\n\t\tversion: parsed,\n\t};\n}\n\nasync function findGitDarwin(): Promise<GitLocation> {\n\ttry {\n\t\tconst path = (await run('which', ['git'], 'utf8')).trim();\n\t\tif (path !== '/usr/bin/git') return await findSpecificGit(path);\n\n\t\ttry {\n\t\t\tawait run('xcode-select', ['-p'], 'utf8');\n\t\t\treturn await findSpecificGit(path);\n\t\t} catch (ex) {\n\t\t\tif (ex.code === 2) {\n\t\t\t\treturn await Promise.reject(new UnableToFindGitError(ex));\n\t\t\t}\n\t\t\treturn await findSpecificGit(path);\n\t\t}\n\t} catch (ex) {\n\t\treturn Promise.reject(\n\t\t\tex instanceof InvalidGitConfigError || ex instanceof UnableToFindGitError\n\t\t\t\t? ex\n\t\t\t\t: new UnableToFindGitError(ex),\n\t\t);\n\t}\n}\n\nfunction findSystemGitWin32(basePath: string | null | undefined): Promise<GitLocation> {\n\tif (basePath == null || basePath.length === 0) return Promise.reject(new UnableToFindGitError());\n\treturn findSpecificGit(joinPaths(basePath, 'Git', 'cmd', 'git.exe'));\n}\n\nfunction findGitWin32(): Promise<GitLocation> {\n\treturn findSystemGitWin32(process.env['ProgramW6432'])\n\t\t.then(null, () => findSystemGitWin32(process.env['ProgramFiles(x86)']))\n\t\t.then(null, () => findSystemGitWin32(process.env['ProgramFiles']))\n\t\t.then(null, () => findSpecificGit('git'));\n}\n\nfunction findGitLinux(): Promise<GitLocation> {\n\treturn findSpecificGit('/usr/bin/git').then(null, () =>\n\t\tfindSpecificGit('/usr/local/bin/git').then(null, () =>\n\t\t\tfindSpecificGit('git').then(null, () => Promise.reject(new UnableToFindGitError())),\n\t\t),\n\t);\n}\n\nexport async function findGitPath(\n\tpaths: string | string[] | null | undefined,\n\tsearch: boolean = true,\n): Promise<GitLocation> {\n\ttry {\n\t\tif (paths == null || typeof paths === 'string') {\n\t\t\treturn await findSpecificGit(paths ?? 'git');\n\t\t}\n\n\t\ttry {\n\t\t\treturn await any(...paths.map(p => findSpecificGit(p)));\n\t\t} catch (ex) {\n\t\t\tthrow new UnableToFindGitError(ex);\n\t\t}\n\t} catch (ex) {\n\t\tif (!search) {\n\t\t\treturn Promise.reject(\n\t\t\t\tex instanceof InvalidGitConfigError || ex instanceof UnableToFindGitError\n\t\t\t\t\t? ex\n\t\t\t\t\t: new UnableToFindGitError(ex),\n\t\t\t);\n\t\t}\n\n\t\ttry {\n\t\t\tswitch (process.platform) {\n\t\t\t\tcase 'darwin':\n\t\t\t\t\treturn await findGitDarwin();\n\t\t\t\tcase 'win32':\n\t\t\t\t\treturn await findGitWin32();\n\t\t\t\tdefault:\n\t\t\t\t\treturn await findGitLinux();\n\t\t\t}\n\t\t} catch (ex) {\n\t\t\treturn Promise.reject(\n\t\t\t\tex instanceof InvalidGitConfigError || ex instanceof UnableToFindGitError\n\t\t\t\t\t? ex\n\t\t\t\t\t: new UnableToFindGitError(ex),\n\t\t\t);\n\t\t}\n\t}\n}\n"],"mappings":";;;;;;;AAOA,IAAa,uBAAb,cAA0C,M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,gBAAgB,KAAK,CAAC,CAAC,KAAK,YAAY,QAAQ,OAAO,IAAI,qBAAqB,CAAC,CAAC,CACnF,CACD;AACD;AAEA,eAAsB,YACrB,OACA,SAAkB,MACK;CACvB,IAAI;EACH,IAAI,SAAS,QAAQ,OAAO,UAAU,UACrC,OAAO,MAAM,gBAAgB,SAAS,KAAK;EAG5C,IAAI;GACH,OAAO,MAAM,IAAI,GAAG,MAAM,KAAI,MAAK,gBAAgB,CAAC,CAAC,CAAC;EACvD,SAAS,IAAI;GACZ,MAAM,IAAI,qBAAqB,EAAE;EAClC;CACD,SAAS,IAAI;EACZ,IAAI,CAAC,QACJ,OAAO,QAAQ,OACd,cAAc,yBAAyB,cAAc,uBAClD,KACA,IAAI,qBAAqB,EAAE,CAC/B;EAGD,IAAI;GACH,QAAQ,QAAQ,UAAhB;IACC,KAAK,UACJ,OAAO,MAAM,cAAc;IAC5B,KAAK,SACJ,OAAO,MAAM,aAAa;IAC3B,SACC,OAAO,MAAM,aAAa;GAC5B;EACD,SAAS,IAAI;GACZ,OAAO,QAAQ,OACd,cAAc,yBAAyB,cAAc,uBAClD,KACA,IAAI,qBAAqB,EAAE,CAC/B;EACD;CACD;AACD"}
@@ -2,8 +2,8 @@ import { iterateAsyncByDelimiter, iterateByDelimiter, unquoteCString } from "../
2
2
  import { fileUri, joinUriPath } from "../../utils/uri.js";
3
3
  import { normalizePath } from "../../utils/path.js";
4
4
  import { uncommitted } from "../../git/models/revision.js";
5
- import { GitFileIndexStatus } from "../../git/models/fileStatus.js";
6
5
  import { maybeStopWatch } from "../../utils/stopwatch.js";
6
+ import { GitFileIndexStatus } from "../../git/models/fileStatus.js";
7
7
  import _usingCtx from "../../_virtual/@oxc-project+runtime/helpers/esm/usingCtx.js";
8
8
  import { GitFileChange } from "../../git/models/fileChange.js";
9
9
  import { GitCommit, GitCommitIdentity } from "../../git/models/commit.js";
@@ -1,6 +1,6 @@
1
1
  import { iterateByDelimiter } from "../../utils/string.js";
2
- import { GitFileConflictStatus } from "../../git/models/fileStatus.js";
3
2
  import { maybeStopWatch } from "../../utils/stopwatch.js";
3
+ import { GitFileConflictStatus } from "../../git/models/fileStatus.js";
4
4
  import _usingCtx from "../../_virtual/@oxc-project+runtime/helpers/esm/usingCtx.js";
5
5
  //#region ../git-cli/src/parsers/indexParser.ts
6
6
  function parseGitLsFilesStaged(data, singleEntry) {
@@ -1,7 +1,7 @@
1
1
  import { normalizePath } from "../../utils/path.js";
2
+ import { maybeStopWatch } from "../../utils/stopwatch.js";
2
3
  import { GitStatus } from "../../git/models/status.js";
3
4
  import { GitStatusFile } from "../../git/models/statusFile.js";
4
- import { maybeStopWatch } from "../../utils/stopwatch.js";
5
5
  import _usingCtx from "../../_virtual/@oxc-project+runtime/helpers/esm/usingCtx.js";
6
6
  //#region ../git-cli/src/parsers/statusParser.ts
7
7
  const aheadStatusV1Regex = /(?:ahead ([0-9]+))/;
@@ -17,8 +17,8 @@ import { LruMap } from "../../utils/lruMap.js";
17
17
  import { mayWriteTracking } from "../exec/commandClassifier.js";
18
18
  import { readHeadState } from "../exec/headState.js";
19
19
  import { KeyedSequencer } from "../exec/indexLock.js";
20
- import { GitError, GitErrors, getGitCommandError, gitConfigsBranch, gitConfigsLog } from "../exec/git.js";
21
20
  import { maybeStopWatch } from "../../utils/stopwatch.js";
21
+ import { GitError, GitErrors, getGitCommandError, gitConfigsBranch, gitConfigsLog } from "../exec/git.js";
22
22
  import _usingCtx from "../../_virtual/@oxc-project+runtime/helpers/esm/usingCtx.js";
23
23
  import { GitBranch } from "../../git/models/branch.js";
24
24
  import { createConflictDetectionError } from "../../git/utils/mergeConflicts.utils.js";
@@ -10,8 +10,8 @@ import { isFolderGlob, normalizePath, splitPath, stripFolderGlob } from "../../u
10
10
  import { isRevisionRange, isSha, isUncommitted, isUncommittedStaged } from "../../git/utils/revision.utils.js";
11
11
  import __decorate from "../../_virtual/@oxc-project+runtime/helpers/esm/decorate.js";
12
12
  import { SigningError } from "../../git/errors.js";
13
- import { GitErrors, classifySigningError, gitConfigsLog, gitConfigsLogWithFiles } from "../exec/git.js";
14
13
  import { maybeStopWatch } from "../../utils/stopwatch.js";
14
+ import { GitErrors, classifySigningError, gitConfigsLog, gitConfigsLogWithFiles } from "../exec/git.js";
15
15
  import _usingCtx from "../../_virtual/@oxc-project+runtime/helpers/esm/usingCtx.js";
16
16
  import { GitFileChange } from "../../git/models/fileChange.js";
17
17
  import { createUncommittedChangesCommit } from "../../git/utils/commit.utils.js";
@@ -19,6 +19,7 @@ import { GitCommit, GitCommitIdentity } from "../../git/models/commit.js";
19
19
  import { isUserMatch } from "../../git/utils/user.utils.js";
20
20
  import { compareReachableRefs } from "../../git/utils/sorting.js";
21
21
  import { HoldOffMap } from "../../utils/holdOffMap.js";
22
+ import { getHiddenRefExcludeArgs, normalizeHiddenRefPatterns } from "../../git/utils/hiddenRefs.utils.js";
22
23
  import { parseSearchQueryGitCommand } from "../../git/utils/search.utils.js";
23
24
  import { getCommitsLogParser, getShaAndDatesLogParser, getShaAndFilesAndStatsLogParser, getShaLogParser } from "../parsers/logParser.js";
24
25
  import { getReflogParser, parseGitRefLog } from "../parsers/reflogParser.js";
@@ -1099,7 +1100,7 @@ var CommitsGitSubProvider = class {
1099
1100
  `-M${similarityThreshold == null ? "" : `${similarityThreshold}%`}`,
1100
1101
  "--use-mailmap"
1101
1102
  ];
1102
- const { args: searchArgs, files, shas, filters } = parseSearchQueryGitCommand(search, currentUser);
1103
+ const { args: searchArgs, files, shas, filters } = parseSearchQueryGitCommand(search, currentUser, { hiddenRefExcludes: getHiddenRefExcludeArgs(normalizeHiddenRefPatterns(cfg?.hiddenRefPatterns).patterns) });
1103
1104
  const mergesOnly = searchArgs.includes("--merges");
1104
1105
  let stashes;
1105
1106
  let stdin;