@gitkraken/core-gitlens 0.62.0 → 0.64.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 (97) hide show
  1. package/CHANGELOG.md +22 -1
  2. package/dist/git/cache.d.ts +1 -0
  3. package/dist/git/cache.js +11 -0
  4. package/dist/git/cache.js.map +1 -1
  5. package/dist/git/errors.d.ts +15 -0
  6. package/dist/git/errors.js +9 -1
  7. package/dist/git/errors.js.map +1 -1
  8. package/dist/git/models/pullRequest.d.ts +3 -0
  9. package/dist/git/models/pullRequest.js.map +1 -1
  10. package/dist/git/providers/operations.d.ts +4 -3
  11. package/dist/git/providers/staging.d.ts +16 -8
  12. package/dist/git/run.types.d.ts +6 -0
  13. package/dist/git/utils/hiddenRefs.utils.d.ts +15 -0
  14. package/dist/git/utils/hiddenRefs.utils.js +68 -2
  15. package/dist/git/utils/hiddenRefs.utils.js.map +1 -1
  16. package/dist/git/utils/pullRequest.utils.d.ts +3 -6
  17. package/dist/git/utils/pullRequest.utils.js +6 -7
  18. package/dist/git/utils/pullRequest.utils.js.map +1 -1
  19. package/dist/git/watching/gitIgnoreFilter.d.ts +12 -5
  20. package/dist/git/watching/gitIgnoreFilter.js +26 -32
  21. package/dist/git/watching/gitIgnoreFilter.js.map +1 -1
  22. package/dist/git/watching/provider.d.ts +18 -3
  23. package/dist/git/watching/watchGroup.d.ts +7 -2
  24. package/dist/git/watching/watchGroup.js +51 -3
  25. package/dist/git/watching/watchGroup.js.map +1 -1
  26. package/dist/git/watching/watchService.d.ts +6 -3
  27. package/dist/git/watching/watchService.js +94 -64
  28. package/dist/git/watching/watchService.js.map +1 -1
  29. package/dist/git-cli/cliGitProvider.d.ts +2 -0
  30. package/dist/git-cli/cliGitProvider.js +85 -24
  31. package/dist/git-cli/cliGitProvider.js.map +1 -1
  32. package/dist/git-cli/exec/git.js +4 -4
  33. package/dist/git-cli/exec/git.js.map +1 -1
  34. package/dist/git-cli/exec/indexLock.d.ts +7 -5
  35. package/dist/git-cli/exec/indexLock.js +19 -15
  36. package/dist/git-cli/exec/indexLock.js.map +1 -1
  37. package/dist/git-cli/providers/config.d.ts +1 -0
  38. package/dist/git-cli/providers/config.js +13 -3
  39. package/dist/git-cli/providers/config.js.map +1 -1
  40. package/dist/git-cli/providers/staging.d.ts +8 -8
  41. package/dist/git-cli/providers/staging.js +119 -24
  42. package/dist/git-cli/providers/staging.js.map +1 -1
  43. package/dist/plus/git-github/api/config.d.ts +5 -0
  44. package/dist/plus/git-github/api/config.js.map +1 -1
  45. package/dist/plus/git-github/api/github.js +24 -4
  46. package/dist/plus/git-github/api/github.js.map +1 -1
  47. package/dist/plus/git-github/models.d.ts +12 -0
  48. package/dist/plus/git-github/models.js +8 -3
  49. package/dist/plus/git-github/models.js.map +1 -1
  50. package/dist/plus/integrations/context.d.ts +5 -0
  51. package/dist/plus/integrations/extensionManager.d.ts +6 -0
  52. package/dist/plus/integrations/extensionManager.js +10 -0
  53. package/dist/plus/integrations/extensionManager.js.map +1 -0
  54. package/dist/plus/integrations/index.d.ts +5 -63
  55. package/dist/plus/integrations/index.js +4 -53
  56. package/dist/plus/integrations/index.js.map +1 -1
  57. package/dist/plus/integrations/integrationService.d.ts +14 -2
  58. package/dist/plus/integrations/integrationService.js +48 -12
  59. package/dist/plus/integrations/integrationService.js.map +1 -1
  60. package/dist/plus/integrations/manager.d.ts +10 -0
  61. package/dist/plus/integrations/managerContext.d.ts +69 -0
  62. package/dist/plus/integrations/managerContext.js +59 -0
  63. package/dist/plus/integrations/managerContext.js.map +1 -0
  64. package/dist/plus/integrations/models/gitlabMergeRequestWrites.d.ts +167 -0
  65. package/dist/plus/integrations/models/gitlabMergeRequestWrites.js +0 -0
  66. package/dist/plus/integrations/providers/github.js +6 -2
  67. package/dist/plus/integrations/providers/github.js.map +1 -1
  68. package/dist/plus/integrations/providers/gitlab/gitlab.d.ts +2 -2
  69. package/dist/plus/integrations/providers/gitlab/gitlab.js +3 -3
  70. package/dist/plus/integrations/providers/gitlab/gitlab.js.map +1 -1
  71. package/dist/plus/integrations/providers/gitlab/issueWrites.d.ts +4 -13
  72. package/dist/plus/integrations/providers/gitlab/issueWrites.js +33 -136
  73. package/dist/plus/integrations/providers/gitlab/issueWrites.js.map +1 -1
  74. package/dist/plus/integrations/providers/gitlab/mergeRequestWrites.d.ts +30 -0
  75. package/dist/plus/integrations/providers/gitlab/mergeRequestWrites.js +569 -0
  76. package/dist/plus/integrations/providers/gitlab/mergeRequestWrites.js.map +1 -0
  77. package/dist/plus/integrations/providers/gitlab/writeErrors.d.ts +12 -0
  78. package/dist/plus/integrations/providers/gitlab/writeErrors.js +101 -0
  79. package/dist/plus/integrations/providers/gitlab/writeErrors.js.map +1 -0
  80. package/dist/plus/integrations/providers/gitlab/writeTransport.d.ts +47 -0
  81. package/dist/plus/integrations/providers/gitlab/writeTransport.js +135 -0
  82. package/dist/plus/integrations/providers/gitlab/writeTransport.js.map +1 -0
  83. package/dist/plus/integrations/providers/gitlab.d.ts +6 -1
  84. package/dist/plus/integrations/providers/gitlab.js +9 -1
  85. package/dist/plus/integrations/providers/gitlab.js.map +1 -1
  86. package/dist/plus/integrations/reads/etag.d.ts +5 -0
  87. package/dist/plus/integrations/reads/etag.js +2 -0
  88. package/dist/plus/integrations/reads/etag.js.map +1 -1
  89. package/dist/plus/integrations/reads/sweeps.js +1 -1
  90. package/dist/utils/env/node/exec.d.ts +2 -0
  91. package/dist/utils/env/node/exec.js +2 -0
  92. package/dist/utils/env/node/exec.js.map +1 -1
  93. package/docs/integrations.md +86 -9
  94. package/package.json +1 -1
  95. package/dist/plus/integrations/providers/gitlab/issueWriteErrors.d.ts +0 -11
  96. package/dist/plus/integrations/providers/gitlab/issueWriteErrors.js +0 -73
  97. package/dist/plus/integrations/providers/gitlab/issueWriteErrors.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -6,6 +6,25 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.64.0] - 2026-12-03
10
+
11
+ ### Added
12
+
13
+ - Adds GitLab.com merge request write discovery, creation between exact projects and branches, title and description editing, close, reopen, merge, and permanent deletion to `IntegrationManager`. The API uses the selected account and verifies the project and merge request identities before writing. It revalidates the target branch tip, uses GitLab's source SHA guard, and follows the project policy for direct merges and merge trains (plus/integrations) ([#6262](https://github.com/gitkraken/vscode-gitlens/issues/6262))
14
+
15
+ ## [0.63.0] - 2026-12-03
16
+
17
+ ### Added
18
+
19
+ - Allows a native filesystem watcher to prune ignored files while preserving tracked edits. Providers opt in with `supportsTrackedGitIgnorePaths` and receive checkout-relative `protectedPaths` alongside `protectedDirectories`. Providers observe `configWatchPaths` for changes to system and global Git configuration, including creation of a config file. Providers also report newly discovered nested `.gitignore` files or signal overflow. Core requires live checkout and common metadata watches, verifies delivered ignore matches against the checkout index when a checker is available, delivers potential tracked edits when no checker is available, and rescans when protection changes ([#6454](https://github.com/gitkraken/vscode-gitlens/issues/6454)).
20
+
21
+ - Adds `PullRequestStackInfo.mergedLayers` — how many of a stack's layers have already merged, since GitHub keeps merged layers in the stack's `size` at their positions. `getStackedMergeCount` now subtracts it, so a layer whose lower layers merged counts only what its merge still lands. The repository stacks read always sets it; GitHub.com GraphQL reads set it only for a host that opts in with `getPullRequestReadOptions()` answering `stackMergedLayers: true` (one more connection per pull request read, a rate-limit point per 100 rows), and with it the pull request etag includes the merged layers, so a held row whose lower layers merge reads as changed; otherwise it is `undefined` and counts are as before (git, plus/git-github, plus/integrations)
22
+ - Adds `indexLockWait: 'extended'` to `GitRunOptions` and `GitOperationRunOptions`, which keeps retrying a write that finds `index.lock` held by another process for about 3s instead of 0.7s, for a write the user started and is waiting on. The staging writes (`stageFile`, `stageFiles`, `stageDirectory`, `unstageFile`, `unstageFiles`, `unstageDirectory`, `stageAll`, `unstageAll`) now take run options (git, git-cli) ([#6352](https://github.com/gitkraken/vscode-gitlens/issues/6352))
23
+
24
+ ### Changed
25
+
26
+ - **Breaking (git, git-cli)** — The staging writes (`stageFile`, `stageFiles`, `stageDirectory`, `unstageFile`, `unstageFiles`, `unstageDirectory`, `stageAll`, `unstageAll`) reject with a `StageError` (reason `'indexLocked'`, with `action` saying stage or unstage) when another process still held `index.lock` after the wait, where they rejected with git-cli's `GitError`; git's error stays on `.original`. Every other failure rejects as before, and a cancellation or a rejecting `beforeIndexLockRetry` still rejects as thrown ([#6352](https://github.com/gitkraken/vscode-gitlens/issues/6352))
27
+
9
28
  ## [0.62.0] - 2026-12-03
10
29
 
11
30
  ### Fixed
@@ -1567,7 +1586,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
1567
1586
 
1568
1587
  - Initial release. Bundles `@gitlens/utils`, `@gitlens/git`, `@gitlens/git-cli`, `@gitlens/ai`, and `@gitlens/git-github` into a single core npm package with subpath exports.
1569
1588
 
1570
- [unreleased]: https://github.com/gitkraken/vscode-gitlens/compare/releases/core/v0.62.0...core
1589
+ [unreleased]: https://github.com/gitkraken/vscode-gitlens/compare/releases/core/v0.64.0...core
1590
+ [0.64.0]: https://github.com/gitkraken/vscode-gitlens/compare/releases/core/v0.63.0..releases/core/v0.64.0
1591
+ [0.63.0]: https://github.com/gitkraken/vscode-gitlens/compare/releases/core/v0.62.0..releases/core/v0.63.0
1571
1592
  [0.62.0]: https://github.com/gitkraken/vscode-gitlens/compare/releases/core/v0.61.1..releases/core/v0.62.0
1572
1593
  [0.61.1]: https://github.com/gitkraken/vscode-gitlens/compare/releases/core/v0.61.0..releases/core/v0.61.1
1573
1594
  [0.61.0]: https://github.com/gitkraken/vscode-gitlens/compare/releases/core/v0.60.1..releases/core/v0.61.0
@@ -605,6 +605,7 @@ export declare class Cache implements Disposable {
605
605
  getConfig(repoPath: string | undefined, key: string, factory: () => PromiseOrValue<string | undefined>): Promise<string | undefined>;
606
606
  /** Keyed by `repoPath` itself, as {@link getConfig} is */
607
607
  getConfigRegex(repoPath: string | undefined, pattern: string, factory: () => PromiseOrValue<Map<string, string>>): Promise<Map<string, string>>;
608
+ deleteIgnoreConfig(repoPath?: string): void;
608
609
  deleteConfig(repoPath: string | undefined, key: string): void;
609
610
  /**
610
611
  * The whole `.git/gk/config` is read once and cached as a single map per commonPath; per-key and
package/dist/git/cache.js CHANGED
@@ -1541,6 +1541,17 @@ var Cache = class Cache {
1541
1541
  this.configPatterns.set(cacheKey, pattern, factoryPromise);
1542
1542
  return factoryPromise;
1543
1543
  }
1544
+ deleteIgnoreConfig(repoPath) {
1545
+ if (repoPath == null) {
1546
+ this._caches.ignoreConfigListing?.clear();
1547
+ this._caches.configKeys?.clear();
1548
+ this._caches.configPatterns?.clear();
1549
+ return;
1550
+ }
1551
+ this._caches.ignoreConfigListing?.delete(this.getCommonPath(repoPath));
1552
+ this.deleteConfig(repoPath, "core.excludesFile");
1553
+ this.deleteConfig(repoPath, "core.ignorecase");
1554
+ }
1544
1555
  deleteConfig(repoPath, key) {
1545
1556
  if (repoPath == null) {
1546
1557
  this._caches.configKeys?.delete(Cache.globalConfigKey, key);