github-router 0.3.379 → 0.3.380

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 (165) hide show
  1. package/README.md +62 -0
  2. package/dist/ado-tools-CsfbnY8x.js +1 -0
  3. package/dist/{aic-ledger-CeSXqTEE.js → aic-ledger-6GKI28nY.js} +3 -3
  4. package/dist/{aic-ledger-CeSXqTEE.js.map → aic-ledger-6GKI28nY.js.map} +1 -1
  5. package/dist/{aic-statusline-settings-BKveu679.js → aic-statusline-settings-wLL1l_Z6.js} +2 -2
  6. package/dist/{aic-statusline-settings-BKveu679.js.map → aic-statusline-settings-wLL1l_Z6.js.map} +1 -1
  7. package/dist/atomic-file-Dif1kLKM.js +198 -0
  8. package/dist/atomic-file-Dif1kLKM.js.map +1 -0
  9. package/dist/{attribution-settings-BWYL2b8N.js → attribution-settings-BJ1fjX7V.js} +10 -10
  10. package/dist/{attribution-settings-BWYL2b8N.js.map → attribution-settings-BJ1fjX7V.js.map} +1 -1
  11. package/dist/{auth-BZHpTtfF.js → auth-5TKcQbbH.js} +3 -3
  12. package/dist/{auth-BZHpTtfF.js.map → auth-5TKcQbbH.js.map} +1 -1
  13. package/dist/bin.js +1479 -0
  14. package/dist/bin.js.map +1 -0
  15. package/dist/browser-ext/manifest.json +1 -1
  16. package/dist/{check-usage-BlIWDuV2.js → check-usage-DM39fdel.js} +4 -4
  17. package/dist/{check-usage-BlIWDuV2.js.map → check-usage-DM39fdel.js.map} +1 -1
  18. package/dist/{claude-CSuIdaLV.js → claude-BWwkOMi3.js} +26 -25
  19. package/dist/{claude-CSuIdaLV.js.map → claude-BWwkOMi3.js.map} +1 -1
  20. package/dist/{claude-md-injection-Biq_Xhve.js → claude-md-injection-DNMDcw1W.js} +15 -24
  21. package/dist/claude-md-injection-DNMDcw1W.js.map +1 -0
  22. package/dist/{codex-BG0pfud9.js → codex-C6ix3BaY.js} +8 -7
  23. package/dist/{codex-BG0pfud9.js.map → codex-C6ix3BaY.js.map} +1 -1
  24. package/dist/{copilot-discount-UXC6NQbN.js → copilot-discount-DM98PuAF.js} +2 -2
  25. package/dist/{copilot-discount-UXC6NQbN.js.map → copilot-discount-DM98PuAF.js.map} +1 -1
  26. package/dist/{debug-1HUHCWFl.js → debug-Df0Kuzi3.js} +2 -2
  27. package/dist/{debug-1HUHCWFl.js.map → debug-Df0Kuzi3.js.map} +1 -1
  28. package/dist/diagnostics-cXjCT_JQ.js +12 -0
  29. package/dist/diagnostics-cXjCT_JQ.js.map +1 -0
  30. package/dist/engine-B6la_uIW.js +1 -0
  31. package/dist/{gate-discovery-DjH9YXoN.js → gate-discovery-2ILpM2fi.js} +5 -5
  32. package/dist/{gate-discovery-DjH9YXoN.js.map → gate-discovery-2ILpM2fi.js.map} +1 -1
  33. package/dist/{get-copilot-usage-CKg42gSH.js → get-copilot-usage-BZ6t2hFZ.js} +2 -2
  34. package/dist/{get-copilot-usage-CKg42gSH.js.map → get-copilot-usage-BZ6t2hFZ.js.map} +1 -1
  35. package/dist/hooks.mjs +13 -0
  36. package/dist/hooks.sha256 +1 -1
  37. package/dist/{index-cmd-sKwchRJz.js → index-cmd-DsK6VFs8.js} +4 -4
  38. package/dist/{index-cmd-sKwchRJz.js.map → index-cmd-DsK6VFs8.js.map} +1 -1
  39. package/dist/{internal-aic-status-B_hEeM37.js → internal-aic-status-CUZ7-trf.js} +3 -3
  40. package/dist/{internal-aic-status-B_hEeM37.js.map → internal-aic-status-CUZ7-trf.js.map} +1 -1
  41. package/dist/{internal-artifact-open-DbHjipxU.js → internal-artifact-open-DRBg1PpV.js} +2 -2
  42. package/dist/{internal-artifact-open-DbHjipxU.js.map → internal-artifact-open-DRBg1PpV.js.map} +1 -1
  43. package/dist/{internal-fast-dispatch-guard-DMzqs-r8.js → internal-fast-dispatch-guard-D6-Ees_6.js} +1 -1
  44. package/dist/{internal-fast-dispatch-guard-PDdlkPU3.js → internal-fast-dispatch-guard-ZeS9u0A3.js} +2 -2
  45. package/dist/{internal-fast-dispatch-guard-PDdlkPU3.js.map → internal-fast-dispatch-guard-ZeS9u0A3.js.map} +1 -1
  46. package/dist/{internal-first-mate-guard-BxPDUsV3.js → internal-first-mate-guard-BijeVpi9.js} +1 -1
  47. package/dist/{internal-first-mate-guard-4Yro9xNM.js → internal-first-mate-guard-DsEEsLKJ.js} +3 -3
  48. package/dist/{internal-first-mate-guard-4Yro9xNM.js.map → internal-first-mate-guard-DsEEsLKJ.js.map} +1 -1
  49. package/dist/{internal-max-dispatch-guard-0teaxIc1.js → internal-max-dispatch-guard-4RLca1i5.js} +2 -2
  50. package/dist/{internal-max-dispatch-guard-0teaxIc1.js.map → internal-max-dispatch-guard-4RLca1i5.js.map} +1 -1
  51. package/dist/{internal-max-dispatch-guard-5LSaHN_y.js → internal-max-dispatch-guard-DeEfWqfP.js} +1 -1
  52. package/dist/{internal-plan-review-BfHLeszV.js → internal-plan-review-bzqGNdtw.js} +3 -3
  53. package/dist/{internal-plan-review-BfHLeszV.js.map → internal-plan-review-bzqGNdtw.js.map} +1 -1
  54. package/dist/{internal-prompt-submit-BixNLmM3.js → internal-prompt-submit-BZ2-CExM.js} +4 -4
  55. package/dist/{internal-prompt-submit-BixNLmM3.js.map → internal-prompt-submit-BZ2-CExM.js.map} +1 -1
  56. package/dist/{internal-prompt-submit-Ou8xtRXj.js → internal-prompt-submit-ZBhH-SQ1.js} +2 -2
  57. package/dist/{internal-rebrief-BBGM0PMv.js → internal-rebrief-BIWbN7Sr.js} +4 -4
  58. package/dist/{internal-rebrief-BBGM0PMv.js.map → internal-rebrief-BIWbN7Sr.js.map} +1 -1
  59. package/dist/{internal-session-bind-pN1V11Mn.js → internal-session-bind-BL6hFRLO.js} +2 -2
  60. package/dist/{internal-session-bind-pN1V11Mn.js.map → internal-session-bind-BL6hFRLO.js.map} +1 -1
  61. package/dist/{internal-stop-hook-DO9Iiaes.js → internal-stop-hook-cDF1MuJZ.js} +5 -5
  62. package/dist/{internal-stop-hook-DO9Iiaes.js.map → internal-stop-hook-cDF1MuJZ.js.map} +1 -1
  63. package/dist/{internal-stop-review-BWp-4XWW.js → internal-stop-review-y8zjpK_3.js} +2 -2
  64. package/dist/{internal-stop-review-BWp-4XWW.js.map → internal-stop-review-y8zjpK_3.js.map} +1 -1
  65. package/dist/{internal-worker-guard-C9OZPgzu.js → internal-worker-guard-DdyYBZR0.js} +2 -2
  66. package/dist/{internal-worker-guard-C9OZPgzu.js.map → internal-worker-guard-DdyYBZR0.js.map} +1 -1
  67. package/dist/{internal-workspace-header-B4TXFBLU.js → internal-workspace-header-BMKbO8yX.js} +2 -2
  68. package/dist/{internal-workspace-header-B4TXFBLU.js.map → internal-workspace-header-BMKbO8yX.js.map} +1 -1
  69. package/dist/lib/tree-sitter-pool/worker.js +268 -21
  70. package/dist/lifecycle-BOjgq9_l.js +1 -0
  71. package/dist/{lifecycle-vjHAFCaY.js → lifecycle-BlC_kzNt.js} +2 -2
  72. package/dist/{lifecycle-vjHAFCaY.js.map → lifecycle-BlC_kzNt.js.map} +1 -1
  73. package/dist/{lifecycle-Dh9y8OF1.js → lifecycle-COZhARmE.js} +2 -2
  74. package/dist/{lifecycle-Dh9y8OF1.js.map → lifecycle-COZhARmE.js.map} +1 -1
  75. package/dist/lifecycle-NQvr4flt.js +1 -0
  76. package/dist/main.js +39 -24
  77. package/dist/main.js.map +1 -1
  78. package/dist/{mcp-workspace-header-C5-dOWNa.js → mcp-workspace-header-Bpa4BId8.js} +2 -2
  79. package/dist/{mcp-workspace-header-C5-dOWNa.js.map → mcp-workspace-header-Bpa4BId8.js.map} +1 -1
  80. package/dist/{models-B6nH1sS6.js → models-BDV-YLf2.js} +3 -3
  81. package/dist/{models-B6nH1sS6.js.map → models-BDV-YLf2.js.map} +1 -1
  82. package/dist/npm-env-H60tX76c.js +130 -0
  83. package/dist/npm-env-H60tX76c.js.map +1 -0
  84. package/dist/optional-DGAeyguL.js +586 -0
  85. package/dist/optional-DGAeyguL.js.map +1 -0
  86. package/dist/{orchestration-B93jxrWI.js → orchestration-Bto5Nc1Y.js} +2 -2
  87. package/dist/{orchestration-B93jxrWI.js.map → orchestration-Bto5Nc1Y.js.map} +1 -1
  88. package/dist/origin-BXtpcKP9.js +382 -0
  89. package/dist/origin-BXtpcKP9.js.map +1 -0
  90. package/dist/origin-DbFUCiGp.js +1 -0
  91. package/dist/paths-CquOjytP.js +1 -0
  92. package/dist/paths-DK_b2ihK.js +176 -0
  93. package/dist/paths-DK_b2ihK.js.map +1 -0
  94. package/dist/{paths-CVEO8jEH.js → paths-DeFmYJhO.js} +16 -3
  95. package/dist/paths-DeFmYJhO.js.map +1 -0
  96. package/dist/{peer-mcp-personas-OWsSm6To.js → peer-mcp-personas-Dny0r5Am.js} +14 -14
  97. package/dist/{peer-mcp-personas-OWsSm6To.js.map → peer-mcp-personas-Dny0r5Am.js.map} +1 -1
  98. package/dist/{pi-DmeBxzIo.js → pi-YhoA26wi.js} +383 -88
  99. package/dist/pi-YhoA26wi.js.map +1 -0
  100. package/dist/{pi-foreign-artifacts-DZ4tioyO.js → pi-foreign-artifacts-CNt6wQ1P.js} +2 -2
  101. package/dist/{pi-foreign-artifacts-DZ4tioyO.js.map → pi-foreign-artifacts-CNt6wQ1P.js.map} +1 -1
  102. package/dist/pi-memory-bridge-BxmCIIbk.js +618 -0
  103. package/dist/pi-memory-bridge-BxmCIIbk.js.map +1 -0
  104. package/dist/pi-memory-bridge-D5A0h_Kf.js +1 -0
  105. package/dist/pi-version-check-BeBB0Ny9.js +551 -0
  106. package/dist/pi-version-check-BeBB0Ny9.js.map +1 -0
  107. package/dist/pi-version-check-D5RvdLsG.js +1 -0
  108. package/dist/{plan-review-hook-MhjK92wq.js → plan-review-hook-D_yyjOgO.js} +3 -3
  109. package/dist/{plan-review-hook-MhjK92wq.js.map → plan-review-hook-D_yyjOgO.js.map} +1 -1
  110. package/dist/{provision-DPL8aGe2.js → provision-BWtuDq_v.js} +30 -36
  111. package/dist/provision-BWtuDq_v.js.map +1 -0
  112. package/dist/rerank-cross-encoder-BhjImuwG.js +192 -0
  113. package/dist/rerank-cross-encoder-BhjImuwG.js.map +1 -0
  114. package/dist/{self-invocation-DMUnXVGT.js → self-invocation-Dnq4iVD6.js} +4 -31
  115. package/dist/{self-invocation-DMUnXVGT.js.map → self-invocation-Dnq4iVD6.js.map} +1 -1
  116. package/dist/{serve-zbQKfx1E.js → serve-DrHAX2Bh.js} +15 -14
  117. package/dist/{serve-zbQKfx1E.js.map → serve-DrHAX2Bh.js.map} +1 -1
  118. package/dist/{server-setup-ClZdV33Q.js → server-setup-DLwejgVA.js} +12 -638
  119. package/dist/server-setup-DLwejgVA.js.map +1 -0
  120. package/dist/{service-backend-Cdgz6WPx.js → service-backend-BdhWVRSz.js} +17 -62
  121. package/dist/service-backend-BdhWVRSz.js.map +1 -0
  122. package/dist/{start-mnedD5cH.js → start-DvV3Lbwy.js} +5 -4
  123. package/dist/{start-mnedD5cH.js.map → start-DvV3Lbwy.js.map} +1 -1
  124. package/dist/{static-context-pack-CtnBwHSd.js → static-context-pack-BKFelEbM.js} +3 -3
  125. package/dist/{static-context-pack-CtnBwHSd.js.map → static-context-pack-BKFelEbM.js.map} +1 -1
  126. package/dist/{stop-gate-hook-CBVLD8iB.js → stop-gate-hook-DBOj0TqL.js} +3 -3
  127. package/dist/{stop-gate-hook-CBVLD8iB.js.map → stop-gate-hook-DBOj0TqL.js.map} +1 -1
  128. package/dist/{stop-gate-policy-BehNiNix.js → stop-gate-policy-Bp2wGh_W.js} +2 -2
  129. package/dist/{stop-gate-policy-BehNiNix.js.map → stop-gate-policy-Bp2wGh_W.js.map} +1 -1
  130. package/dist/{token-CPzYxU4Y.js → token-CKPOBdO0.js} +23 -88
  131. package/dist/{token-CPzYxU4Y.js.map → token-CKPOBdO0.js.map} +1 -1
  132. package/dist/{token-DHEkiO4g.js → token-Ygd7D32L.js} +3 -3
  133. package/dist/{token-DHEkiO4g.js.map → token-Ygd7D32L.js.map} +1 -1
  134. package/dist/update-CB21YRKz.js +1 -0
  135. package/dist/update-T1L7yFon.js +1548 -0
  136. package/dist/update-T1L7yFon.js.map +1 -0
  137. package/dist/update-fEgWTrIx.js +214 -0
  138. package/dist/update-fEgWTrIx.js.map +1 -0
  139. package/dist/update-lock-BeS_WmC8.js +1 -0
  140. package/dist/update-lock-BmXx6QaR.js +171 -0
  141. package/dist/update-lock-BmXx6QaR.js.map +1 -0
  142. package/dist/volatile-root-DQNNvQ7Z.js +50 -0
  143. package/dist/volatile-root-DQNNvQ7Z.js.map +1 -0
  144. package/dist/{worker-dispatch-C7RtNOXv.js → worker-dispatch-DBWKTMda.js} +2 -2
  145. package/dist/{worker-dispatch-C7RtNOXv.js.map → worker-dispatch-DBWKTMda.js.map} +1 -1
  146. package/dist/{workiq-CQauEAMc.js → workiq-D5b7xlbr.js} +2 -2
  147. package/dist/{workiq-CQauEAMc.js.map → workiq-D5b7xlbr.js.map} +1 -1
  148. package/dist/{workiq-tools-DL6rC4bP.js → workiq-tools-DdiQ2DOW.js} +1 -1
  149. package/package.json +16 -4
  150. package/dist/ado-tools-CRkyU51J.js +0 -1
  151. package/dist/claude-md-injection-Biq_Xhve.js.map +0 -1
  152. package/dist/engine-V46un8Xl.js +0 -1
  153. package/dist/lifecycle-BENRuuX6.js +0 -1
  154. package/dist/lifecycle-Dli9vGI2.js +0 -1
  155. package/dist/paths-Be9_ujQ3.js +0 -1
  156. package/dist/paths-CVEO8jEH.js.map +0 -1
  157. package/dist/pi-DmeBxzIo.js.map +0 -1
  158. package/dist/pi-memory-bridge-Bp9AnYw9.js +0 -1
  159. package/dist/pi-memory-bridge-CICIdDVP.js +0 -413
  160. package/dist/pi-memory-bridge-CICIdDVP.js.map +0 -1
  161. package/dist/provision-DPL8aGe2.js.map +0 -1
  162. package/dist/rerank-cross-encoder-B87lZgvc.js +0 -110
  163. package/dist/rerank-cross-encoder-B87lZgvc.js.map +0 -1
  164. package/dist/server-setup-ClZdV33Q.js.map +0 -1
  165. package/dist/service-backend-Cdgz6WPx.js.map +0 -1
@@ -1,9 +1,10 @@
1
- import { t as PATHS } from "./paths-CVEO8jEH.js";
1
+ import { i as writeFileAtomic, n as readFileWithRetry } from "./atomic-file-Dif1kLKM.js";
2
+ import { t as PATHS } from "./paths-DeFmYJhO.js";
2
3
  import { i as sanitizeTransportText, r as fetchWithTransientRetry, t as TransportExhaustionError } from "./upstream-retry-VNR-bCuT.js";
3
4
  import { t as state } from "./state-CCGDJ43X.js";
4
5
  import consola from "consola";
5
6
  import path from "node:path";
6
- import { createHash, randomBytes, randomUUID } from "node:crypto";
7
+ import { createHash, randomUUID } from "node:crypto";
7
8
  import fs from "node:fs/promises";
8
9
  import process$1 from "node:process";
9
10
  // src/lib/api-config.ts
@@ -913,100 +914,34 @@ async function pollAccessToken(deviceCode, clientId = GITHUB_CLIENT_ID) {
913
914
  // src/lib/token.ts
914
915
  const readGithubToken = () => fs.readFile(PATHS.GITHUB_TOKEN_PATH, "utf8");
915
916
  /**
916
- * Transient filesystem errors from a read that raced the temp+rename write.
917
- *
918
- * On Windows a read landing in that window fails with one of these even
919
- * though a perfectly good file exists microseconds later. Treating one as
920
- * fatal at startup would cost a launch for no reason.
921
- */
922
- const TRANSIENT_READ_CODES = /* @__PURE__ */ new Set([
923
- "EPERM",
924
- "EBUSY",
925
- "EACCES",
926
- "ENOENT"
927
- ]);
928
- function isTransientReadError(err) {
929
- const code = err?.code;
930
- return typeof code === "string" && TRANSIENT_READ_CODES.has(code);
931
- }
932
- /**
933
917
  * Read the credential file, retrying briefly through a racing rename.
934
918
  *
935
- * Same delays and the same reasoning as {@link RENAME_RETRY_DELAYS_MS} on the
936
- * write side: the contending handle closes almost immediately, so a short
937
- * bounded retry converts a spurious launch failure into a non-event. A
938
- * persistent failure still propagates — the caller must not believe a
939
- * credential was read when it was not.
919
+ * A read landing in the window between `writeTokenFileAtomic`'s `rename` and the
920
+ * OS finishing the directory update fails with `ENOENT`/`EBUSY`/`EPERM` even
921
+ * though a perfectly good file exists microseconds later. Treating one as fatal
922
+ * at startup would cost a launch for no reason; a persistent failure still
923
+ * propagates, because the caller must not believe a credential was read when it
924
+ * was not. The retry policy now lives in `~/lib/atomic-file` so the managed
925
+ * installer shares it.
940
926
  */
941
927
  async function readGithubTokenWithRetry() {
942
- let lastErr;
943
- for (let attempt = 0; attempt <= RENAME_RETRY_DELAYS_MS.length; attempt++) try {
944
- return await readGithubToken();
945
- } catch (err) {
946
- lastErr = err;
947
- if (!isTransientReadError(err)) throw err;
948
- if (attempt < RENAME_RETRY_DELAYS_MS.length) await new Promise((resolve) => setTimeout(resolve, RENAME_RETRY_DELAYS_MS[attempt]));
949
- }
950
- throw lastErr;
928
+ return readFileWithRetry(PATHS.GITHUB_TOKEN_PATH);
951
929
  }
952
930
  /**
953
- * Backoff for a transient Windows rename failure. On Windows `fs.rename` over
954
- * an existing destination transiently fails with EPERM / EBUSY / EACCES when
955
- * anything else holds the target open for a moment (antivirus, the search
956
- * indexer, a backup agent). Nothing is wrong and the handle closes microseconds
957
- * later — but without a retry, a scan landing on the wrong millisecond throws
958
- * out of a credential write and costs the user a re-auth. Same delays as
959
- * `renameWithRetry` in `~/lib/claude-md-injection`, which documents the
960
- * underlying behavior at length.
961
- */
962
- const RENAME_RETRY_DELAYS_MS = [
963
- 50,
964
- 200,
965
- 500
966
- ];
967
- /**
968
- * Replace a credential file atomically: temp + rename, with bounded retry.
969
- *
970
- * A plain `fs.writeFile` truncates the destination before it writes, so a
971
- * crash, a full disk, or a kill mid-write leaves a truncated token on disk and
972
- * forces the user through a re-auth. `rename` within the same directory is
973
- * atomic on both NTFS and POSIX, so a reader sees either the old token or the
974
- * new one, never a partial.
975
- *
976
- * The temp name uses `randomBytes`, not `Math.random()`: this names a file that
977
- * briefly holds a credential, and a predictable name in a shared directory
978
- * invites a pre-creation race. Combined with `flag: "wx"` (fail if it exists)
979
- * the write refuses to follow anything an attacker pre-placed, rather than
980
- * silently writing the token through a planted symlink.
931
+ * Replace a credential file atomically: temp + fsync + rename, with bounded
932
+ * retry through a transient Windows lock.
981
933
  *
982
- * Permissions: the temp file is created 0o600, and `rename` carries that mode
983
- * with it on POSIX — so the destination's mode is preserved, not weakened.
984
- * (On Windows `chmod` is a no-op anyway; see `chmodIfPossible` in `~/lib/paths`.
985
- * Both token files live under `CLAUDE_RUNTIME_DIR`, which is chmod'd 0o700, so
986
- * directory ACLs are what actually protect them there.)
934
+ * Behaviour is unchanged since this was moved to `~/lib/atomic-file`: a plain
935
+ * `fs.writeFile` truncates the destination before writing, so a crash, full
936
+ * disk or kill mid-write left a truncated token and forced a re-auth. The temp
937
+ * file is created with `flag: "wx"` in the destination's own directory, so a
938
+ * pre-placed symlink at a predictable name gets `EEXIST` rather than a write
939
+ * through the attacker's link, and the rename stays same-directory and atomic.
940
+ * Mode 0o600 rides the rename on POSIX; on Windows it is a no-op and the
941
+ * enclosing `CLAUDE_RUNTIME_DIR` (0o700) ACLs are what protect the file.
987
942
  */
988
943
  async function writeTokenFileAtomic(filePath, token) {
989
- const tmp = `${filePath}.${process.pid}.${randomBytes(8).toString("hex")}.tmp`;
990
- try {
991
- await fs.writeFile(tmp, token, {
992
- mode: 384,
993
- flag: "wx"
994
- });
995
- let lastErr;
996
- let renamed = false;
997
- for (let attempt = 0; attempt <= RENAME_RETRY_DELAYS_MS.length; attempt++) try {
998
- await fs.rename(tmp, filePath);
999
- renamed = true;
1000
- break;
1001
- } catch (err) {
1002
- lastErr = err;
1003
- if (attempt < RENAME_RETRY_DELAYS_MS.length) await new Promise((resolve) => setTimeout(resolve, RENAME_RETRY_DELAYS_MS[attempt]));
1004
- }
1005
- if (!renamed) throw lastErr;
1006
- } catch (err) {
1007
- await fs.unlink(tmp).catch(() => {});
1008
- throw err;
1009
- }
944
+ await writeFileAtomic(filePath, token, { mode: 384 });
1010
945
  }
1011
946
  const writeGithubToken = (token) => writeTokenFileAtomic(PATHS.GITHUB_TOKEN_PATH, token);
1012
947
  const readGithubAgentToken = () => fs.readFile(PATHS.GITHUB_AGENT_TOKEN_PATH, "utf8");
@@ -1373,4 +1308,4 @@ async function warnIfAgentScopesInsufficient() {
1373
1308
  }
1374
1309
  export { copilotHeaders as C, githubHeaders as D, githubAgentHeaders as E, copilotBaseUrl as S, githubAgentGraphQLHeaders as T, isAllowedCopilotHost as _, writeTokenFileAtomic as a, GITHUB_API_BASE_URL as b, cacheVSCodeVersion as c, resolveCodexModel as d, resolveModel as f, credentialFingerprint as g, getGitHubUser as h, tryRefreshAndRetry as i, filterBetaHeader as l, getModels as m, setupGitHubAgentToken as n, cacheCopilotVersion as o, sleep as p, setupGitHubToken as r, cacheModels as s, setupCopilotToken as t, isNullish as u, HTTPError as v, copilotVersion as w, GITHUB_GRAPHQL_URL as x, forwardError as y };
1375
1310
 
1376
- //# sourceMappingURL=token-CPzYxU4Y.js.map
1311
+ //# sourceMappingURL=token-CKPOBdO0.js.map