caveat-cli 0.19.0 → 0.19.2

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.
@@ -9648,6 +9648,26 @@ function withSourceSavepoint(db, fn) {
9648
9648
  }
9649
9649
  }
9650
9650
 
9651
+ // ../../packages/core/dist/platform.js
9652
+ function isWindows(platform = process.platform) {
9653
+ return platform === "win32";
9654
+ }
9655
+ function isWindowsEnv(env, platform = process.platform) {
9656
+ return env.OS === "Windows_NT" || isWindows(platform);
9657
+ }
9658
+ function isPrivateOwnerStat(stat, uid, platform = process.platform) {
9659
+ return isWindows(platform) || (stat.mode & 63) === 0 && (uid === void 0 || stat.uid === uid);
9660
+ }
9661
+ function powershellCallPrefix(platform = process.platform) {
9662
+ return isWindows(platform) ? "& " : "";
9663
+ }
9664
+ function nodeExecutableNames(platform = process.platform) {
9665
+ return isWindows(platform) ? ["node.exe", "node.cmd", "node.bat", "node"] : ["node"];
9666
+ }
9667
+ function normalizePathCase(normalizedPath, platform = process.platform) {
9668
+ return isWindows(platform) ? normalizedPath.toLowerCase() : normalizedPath;
9669
+ }
9670
+
9651
9671
  // ../../packages/core/dist/community.js
9652
9672
  import { existsSync as existsSync5, readdirSync as readdirSync5, rmSync, statSync as statSync4 } from "node:fs";
9653
9673
  import { join as join5 } from "node:path";
@@ -14638,6 +14658,8 @@ function createGit(baseDir, opts) {
14638
14658
  // Git unwind its own helper first; it is not a general process-tree or
14639
14659
  // total elapsed-time guarantee.
14640
14660
  config: [
14661
+ // Windowsの長いentryパスを扱う。ユーザーのGit設定は変更しない。
14662
+ ...isWindows() ? ["core.longpaths=true"] : [],
14641
14663
  "http.lowSpeedLimit=1",
14642
14664
  `http.lowSpeedTime=${lowSpeedTimeSeconds}`
14643
14665
  ],
@@ -15233,26 +15255,6 @@ function createKeyserverKeyProvider(opts) {
15233
15255
  };
15234
15256
  }
15235
15257
 
15236
- // ../../packages/core/dist/platform.js
15237
- function isWindows(platform = process.platform) {
15238
- return platform === "win32";
15239
- }
15240
- function isWindowsEnv(env, platform = process.platform) {
15241
- return env.OS === "Windows_NT" || isWindows(platform);
15242
- }
15243
- function isPrivateOwnerStat(stat, uid, platform = process.platform) {
15244
- return isWindows(platform) || (stat.mode & 63) === 0 && (uid === void 0 || stat.uid === uid);
15245
- }
15246
- function powershellCallPrefix(platform = process.platform) {
15247
- return isWindows(platform) ? "& " : "";
15248
- }
15249
- function nodeExecutableNames(platform = process.platform) {
15250
- return isWindows(platform) ? ["node.exe", "node.cmd", "node.bat", "node"] : ["node"];
15251
- }
15252
- function normalizePathCase(normalizedPath, platform = process.platform) {
15253
- return isWindows(platform) ? normalizedPath.toLowerCase() : normalizedPath;
15254
- }
15255
-
15256
15258
  // ../../packages/core/dist/sync.js
15257
15259
  import { existsSync as existsSync8, mkdirSync as mkdirSync5, readFileSync as readFileSync7, readdirSync as readdirSync7, realpathSync, rmSync as rmSync4, writeFileSync as writeFileSync4 } from "node:fs";
15258
15260
  import { dirname as dirname4, join as join8, resolve } from "node:path";
@@ -17904,6 +17906,10 @@ export {
17904
17906
  acquireReindexLock,
17905
17907
  releaseReindexLock,
17906
17908
  reindexAllSources,
17909
+ isWindows,
17910
+ isPrivateOwnerStat,
17911
+ powershellCallPrefix,
17912
+ nodeExecutableNames,
17907
17913
  communityAdd,
17908
17914
  communityPull,
17909
17915
  communityList,
@@ -17914,10 +17920,6 @@ export {
17914
17920
  maybeSweepPendingDirs,
17915
17921
  drainPendingRemindersDetailed,
17916
17922
  createKeyserverKeyProvider,
17917
- isWindows,
17918
- isPrivateOwnerStat,
17919
- powershellCallPrefix,
17920
- nodeExecutableNames,
17921
17923
  syncOwn,
17922
17924
  KNOWLEDGE_GITIGNORE,
17923
17925
  initOwnSync,
@@ -17986,4 +17988,4 @@ strip-bom-string/index.js:
17986
17988
  js-yaml/dist/js-yaml.mjs:
17987
17989
  (*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT *)
17988
17990
  */
17989
- //# sourceMappingURL=chunk-ULK7SZG6.js.map
17991
+ //# sourceMappingURL=chunk-NZD3FHU6.js.map