@skydiveai/git-cache 0.1.252-beta.0 → 0.1.252-beta.10

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.
package/dist/cli.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { f as startServer } from "./server-DjJs3KcN.mjs";
2
+ import { f as startServer } from "./server-DVcqSwOQ.mjs";
3
3
  //#region src/cli.ts
4
4
  /**
5
5
  * `git-cache` CLI — the published binary for @skydiveai/git-cache.
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { a as isProtocolV2Request, c as parseAdvertisement, d as shouldBackfillAfterPassthrough, f as startServer, i as explainRejection, l as parseUpstream, n as classifyUploadRequest, o as metricsSnapshot, r as copyRequestHeaders, s as mirrorHasObjects, t as SidebandPackExtractor, u as recordColdBuildOutcome } from "./server-DjJs3KcN.mjs";
1
+ import { a as isProtocolV2Request, c as parseAdvertisement, d as shouldBackfillAfterPassthrough, f as startServer, i as explainRejection, l as parseUpstream, n as classifyUploadRequest, o as metricsSnapshot, r as copyRequestHeaders, s as mirrorHasObjects, t as SidebandPackExtractor, u as recordColdBuildOutcome } from "./server-DVcqSwOQ.mjs";
2
2
  export { SidebandPackExtractor, classifyUploadRequest, copyRequestHeaders, explainRejection, isProtocolV2Request, metricsSnapshot, mirrorHasObjects, parseAdvertisement, parseUpstream, recordColdBuildOutcome, shouldBackfillAfterPassthrough, startServer };
@@ -466,7 +466,8 @@ function parseUpstream(rawPathname, rawSearch = "") {
466
466
  if (config.hostAllowlist.length && !config.hostAllowlist.includes(host)) return null;
467
467
  if (repoPath.includes("..") || repoPath.startsWith("/") || repoPath.endsWith("/") || repoPath.split("/").some((seg) => seg === "" || seg === "." || seg === "..")) return null;
468
468
  if (!/^[A-Za-z0-9._~+@/-]+$/.test(repoPath)) return null;
469
- const repo = `${host}/${repoPath}`;
469
+ const keyPath = host === "github.com" ? repoPath.toLowerCase() : repoPath;
470
+ const repo = `${host}/${keyPath}`;
470
471
  const suffix = hadDotGit ? ".git" : "";
471
472
  return {
472
473
  repo,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skydiveai/git-cache",
3
- "version": "0.1.252-beta.0",
3
+ "version": "0.1.252-beta.10",
4
4
  "description": "Sandbox-local Git smart-HTTP clone/fetch cache: a loopback daemon that transparently mirrors HTTPS git reads so repeated clone/fetch/ls-remote skip the origin round-trip. Runs inside an agent sandbox; pushes stay direct.",
5
5
  "homepage": "https://skydive.com",
6
6
  "license": "MIT",
@@ -35,11 +35,11 @@
35
35
  "devDependencies": {
36
36
  "@types/node": "^24.0.0",
37
37
  "@typescript/native-preview": "^7.0.0-dev.20260113.1",
38
- "@vitest/coverage-v8": "^2.1.8",
38
+ "@vitest/coverage-v8": "^3.2.4",
39
39
  "shellcheck": "^4.1.0",
40
40
  "tsdown": "^0.21.10",
41
- "typescript": "^5.9.3",
42
- "vitest": "^2.1.8"
41
+ "typescript": "^6.0.3",
42
+ "vitest": "^3.2.7"
43
43
  },
44
44
  "engines": {
45
45
  "node": "24.x"