github-router 0.3.379 → 0.3.381
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/README.md +62 -0
- package/dist/ado-tools-CsfbnY8x.js +1 -0
- package/dist/{aic-ledger-CeSXqTEE.js → aic-ledger-6GKI28nY.js} +3 -3
- package/dist/{aic-ledger-CeSXqTEE.js.map → aic-ledger-6GKI28nY.js.map} +1 -1
- package/dist/{aic-statusline-settings-BKveu679.js → aic-statusline-settings-wLL1l_Z6.js} +2 -2
- package/dist/{aic-statusline-settings-BKveu679.js.map → aic-statusline-settings-wLL1l_Z6.js.map} +1 -1
- package/dist/atomic-file-Dif1kLKM.js +198 -0
- package/dist/atomic-file-Dif1kLKM.js.map +1 -0
- package/dist/{attribution-settings-BWYL2b8N.js → attribution-settings-BEwSkdhK.js} +10 -10
- package/dist/{attribution-settings-BWYL2b8N.js.map → attribution-settings-BEwSkdhK.js.map} +1 -1
- package/dist/{auth-BZHpTtfF.js → auth-5TKcQbbH.js} +3 -3
- package/dist/{auth-BZHpTtfF.js.map → auth-5TKcQbbH.js.map} +1 -1
- package/dist/bin.js +1479 -0
- package/dist/bin.js.map +1 -0
- package/dist/browser-ext/manifest.json +1 -1
- package/dist/{check-usage-BlIWDuV2.js → check-usage-DM39fdel.js} +4 -4
- package/dist/{check-usage-BlIWDuV2.js.map → check-usage-DM39fdel.js.map} +1 -1
- package/dist/{claude-CSuIdaLV.js → claude-CkrhHkPQ.js} +26 -25
- package/dist/{claude-CSuIdaLV.js.map → claude-CkrhHkPQ.js.map} +1 -1
- package/dist/{claude-md-injection-Biq_Xhve.js → claude-md-injection-DNMDcw1W.js} +15 -24
- package/dist/claude-md-injection-DNMDcw1W.js.map +1 -0
- package/dist/{codex-BG0pfud9.js → codex-50GzveCD.js} +8 -7
- package/dist/{codex-BG0pfud9.js.map → codex-50GzveCD.js.map} +1 -1
- package/dist/{copilot-discount-UXC6NQbN.js → copilot-discount-DM98PuAF.js} +2 -2
- package/dist/{copilot-discount-UXC6NQbN.js.map → copilot-discount-DM98PuAF.js.map} +1 -1
- package/dist/{debug-1HUHCWFl.js → debug-Df0Kuzi3.js} +2 -2
- package/dist/{debug-1HUHCWFl.js.map → debug-Df0Kuzi3.js.map} +1 -1
- package/dist/diagnostics-cXjCT_JQ.js +12 -0
- package/dist/diagnostics-cXjCT_JQ.js.map +1 -0
- package/dist/engine-B6la_uIW.js +1 -0
- package/dist/{gate-discovery-DjH9YXoN.js → gate-discovery-2ILpM2fi.js} +5 -5
- package/dist/{gate-discovery-DjH9YXoN.js.map → gate-discovery-2ILpM2fi.js.map} +1 -1
- package/dist/{get-copilot-usage-CKg42gSH.js → get-copilot-usage-BZ6t2hFZ.js} +2 -2
- package/dist/{get-copilot-usage-CKg42gSH.js.map → get-copilot-usage-BZ6t2hFZ.js.map} +1 -1
- package/dist/hooks.mjs +13 -0
- package/dist/hooks.sha256 +1 -1
- package/dist/{index-cmd-sKwchRJz.js → index-cmd-DsK6VFs8.js} +4 -4
- package/dist/{index-cmd-sKwchRJz.js.map → index-cmd-DsK6VFs8.js.map} +1 -1
- package/dist/{internal-aic-status-B_hEeM37.js → internal-aic-status-CUZ7-trf.js} +3 -3
- package/dist/{internal-aic-status-B_hEeM37.js.map → internal-aic-status-CUZ7-trf.js.map} +1 -1
- package/dist/{internal-artifact-open-DbHjipxU.js → internal-artifact-open-DRBg1PpV.js} +2 -2
- package/dist/{internal-artifact-open-DbHjipxU.js.map → internal-artifact-open-DRBg1PpV.js.map} +1 -1
- package/dist/{internal-fast-dispatch-guard-DMzqs-r8.js → internal-fast-dispatch-guard-D6-Ees_6.js} +1 -1
- package/dist/{internal-fast-dispatch-guard-PDdlkPU3.js → internal-fast-dispatch-guard-ZeS9u0A3.js} +2 -2
- package/dist/{internal-fast-dispatch-guard-PDdlkPU3.js.map → internal-fast-dispatch-guard-ZeS9u0A3.js.map} +1 -1
- package/dist/{internal-first-mate-guard-BxPDUsV3.js → internal-first-mate-guard-BijeVpi9.js} +1 -1
- package/dist/{internal-first-mate-guard-4Yro9xNM.js → internal-first-mate-guard-DsEEsLKJ.js} +3 -3
- package/dist/{internal-first-mate-guard-4Yro9xNM.js.map → internal-first-mate-guard-DsEEsLKJ.js.map} +1 -1
- package/dist/{internal-max-dispatch-guard-0teaxIc1.js → internal-max-dispatch-guard-4RLca1i5.js} +2 -2
- package/dist/{internal-max-dispatch-guard-0teaxIc1.js.map → internal-max-dispatch-guard-4RLca1i5.js.map} +1 -1
- package/dist/{internal-max-dispatch-guard-5LSaHN_y.js → internal-max-dispatch-guard-DeEfWqfP.js} +1 -1
- package/dist/{internal-plan-review-BfHLeszV.js → internal-plan-review-bzqGNdtw.js} +3 -3
- package/dist/{internal-plan-review-BfHLeszV.js.map → internal-plan-review-bzqGNdtw.js.map} +1 -1
- package/dist/{internal-prompt-submit-BixNLmM3.js → internal-prompt-submit-BZ2-CExM.js} +4 -4
- package/dist/{internal-prompt-submit-BixNLmM3.js.map → internal-prompt-submit-BZ2-CExM.js.map} +1 -1
- package/dist/{internal-prompt-submit-Ou8xtRXj.js → internal-prompt-submit-ZBhH-SQ1.js} +2 -2
- package/dist/{internal-rebrief-BBGM0PMv.js → internal-rebrief-BIWbN7Sr.js} +4 -4
- package/dist/{internal-rebrief-BBGM0PMv.js.map → internal-rebrief-BIWbN7Sr.js.map} +1 -1
- package/dist/{internal-session-bind-pN1V11Mn.js → internal-session-bind-BL6hFRLO.js} +2 -2
- package/dist/{internal-session-bind-pN1V11Mn.js.map → internal-session-bind-BL6hFRLO.js.map} +1 -1
- package/dist/{internal-stop-hook-DO9Iiaes.js → internal-stop-hook-cDF1MuJZ.js} +5 -5
- package/dist/{internal-stop-hook-DO9Iiaes.js.map → internal-stop-hook-cDF1MuJZ.js.map} +1 -1
- package/dist/{internal-stop-review-BWp-4XWW.js → internal-stop-review-y8zjpK_3.js} +2 -2
- package/dist/{internal-stop-review-BWp-4XWW.js.map → internal-stop-review-y8zjpK_3.js.map} +1 -1
- package/dist/{internal-worker-guard-C9OZPgzu.js → internal-worker-guard-DdyYBZR0.js} +2 -2
- package/dist/{internal-worker-guard-C9OZPgzu.js.map → internal-worker-guard-DdyYBZR0.js.map} +1 -1
- package/dist/{internal-workspace-header-B4TXFBLU.js → internal-workspace-header-BMKbO8yX.js} +2 -2
- package/dist/{internal-workspace-header-B4TXFBLU.js.map → internal-workspace-header-BMKbO8yX.js.map} +1 -1
- package/dist/lib/tree-sitter-pool/worker.js +268 -21
- package/dist/lifecycle-BOjgq9_l.js +1 -0
- package/dist/{lifecycle-vjHAFCaY.js → lifecycle-BlC_kzNt.js} +2 -2
- package/dist/{lifecycle-vjHAFCaY.js.map → lifecycle-BlC_kzNt.js.map} +1 -1
- package/dist/{lifecycle-Dh9y8OF1.js → lifecycle-COZhARmE.js} +2 -2
- package/dist/{lifecycle-Dh9y8OF1.js.map → lifecycle-COZhARmE.js.map} +1 -1
- package/dist/lifecycle-NQvr4flt.js +1 -0
- package/dist/main.js +39 -24
- package/dist/main.js.map +1 -1
- package/dist/{mcp-workspace-header-C5-dOWNa.js → mcp-workspace-header-Bpa4BId8.js} +2 -2
- package/dist/{mcp-workspace-header-C5-dOWNa.js.map → mcp-workspace-header-Bpa4BId8.js.map} +1 -1
- package/dist/{models-B6nH1sS6.js → models-BDV-YLf2.js} +3 -3
- package/dist/{models-B6nH1sS6.js.map → models-BDV-YLf2.js.map} +1 -1
- package/dist/npm-env-H60tX76c.js +130 -0
- package/dist/npm-env-H60tX76c.js.map +1 -0
- package/dist/optional-DGAeyguL.js +586 -0
- package/dist/optional-DGAeyguL.js.map +1 -0
- package/dist/{orchestration-B93jxrWI.js → orchestration-Bto5Nc1Y.js} +2 -2
- package/dist/{orchestration-B93jxrWI.js.map → orchestration-Bto5Nc1Y.js.map} +1 -1
- package/dist/origin-BXtpcKP9.js +382 -0
- package/dist/origin-BXtpcKP9.js.map +1 -0
- package/dist/origin-DbFUCiGp.js +1 -0
- package/dist/paths-CquOjytP.js +1 -0
- package/dist/paths-DK_b2ihK.js +176 -0
- package/dist/paths-DK_b2ihK.js.map +1 -0
- package/dist/{paths-CVEO8jEH.js → paths-DeFmYJhO.js} +16 -3
- package/dist/paths-DeFmYJhO.js.map +1 -0
- package/dist/{peer-mcp-personas-OWsSm6To.js → peer-mcp-personas-Dny0r5Am.js} +14 -14
- package/dist/{peer-mcp-personas-OWsSm6To.js.map → peer-mcp-personas-Dny0r5Am.js.map} +1 -1
- package/dist/{pi-DmeBxzIo.js → pi-DVud9eQn.js} +386 -243
- package/dist/pi-DVud9eQn.js.map +1 -0
- package/dist/{pi-foreign-artifacts-DZ4tioyO.js → pi-foreign-artifacts-CNt6wQ1P.js} +2 -2
- package/dist/{pi-foreign-artifacts-DZ4tioyO.js.map → pi-foreign-artifacts-CNt6wQ1P.js.map} +1 -1
- package/dist/pi-memory-bridge-BxmCIIbk.js +618 -0
- package/dist/pi-memory-bridge-BxmCIIbk.js.map +1 -0
- package/dist/pi-memory-bridge-D5A0h_Kf.js +1 -0
- package/dist/pi-version-check-BeBB0Ny9.js +551 -0
- package/dist/pi-version-check-BeBB0Ny9.js.map +1 -0
- package/dist/pi-version-check-D5RvdLsG.js +1 -0
- package/dist/{plan-review-hook-MhjK92wq.js → plan-review-hook-D_yyjOgO.js} +3 -3
- package/dist/{plan-review-hook-MhjK92wq.js.map → plan-review-hook-D_yyjOgO.js.map} +1 -1
- package/dist/{provision-DPL8aGe2.js → provision-BWtuDq_v.js} +30 -36
- package/dist/provision-BWtuDq_v.js.map +1 -0
- package/dist/rerank-cross-encoder-BhjImuwG.js +192 -0
- package/dist/rerank-cross-encoder-BhjImuwG.js.map +1 -0
- package/dist/{self-invocation-DMUnXVGT.js → self-invocation-Dnq4iVD6.js} +4 -31
- package/dist/{self-invocation-DMUnXVGT.js.map → self-invocation-Dnq4iVD6.js.map} +1 -1
- package/dist/{serve-zbQKfx1E.js → serve-B8Igr9Q0.js} +15 -14
- package/dist/{serve-zbQKfx1E.js.map → serve-B8Igr9Q0.js.map} +1 -1
- package/dist/{server-setup-ClZdV33Q.js → server-setup-byIhjgOb.js} +708 -640
- package/dist/server-setup-byIhjgOb.js.map +1 -0
- package/dist/{service-backend-Cdgz6WPx.js → service-backend-BdhWVRSz.js} +17 -62
- package/dist/service-backend-BdhWVRSz.js.map +1 -0
- package/dist/{start-mnedD5cH.js → start-7CiQIl0r.js} +5 -4
- package/dist/{start-mnedD5cH.js.map → start-7CiQIl0r.js.map} +1 -1
- package/dist/{static-context-pack-CtnBwHSd.js → static-context-pack-BKFelEbM.js} +3 -3
- package/dist/{static-context-pack-CtnBwHSd.js.map → static-context-pack-BKFelEbM.js.map} +1 -1
- package/dist/{stop-gate-hook-CBVLD8iB.js → stop-gate-hook-DBOj0TqL.js} +3 -3
- package/dist/{stop-gate-hook-CBVLD8iB.js.map → stop-gate-hook-DBOj0TqL.js.map} +1 -1
- package/dist/{stop-gate-policy-BehNiNix.js → stop-gate-policy-Bp2wGh_W.js} +2 -2
- package/dist/{stop-gate-policy-BehNiNix.js.map → stop-gate-policy-Bp2wGh_W.js.map} +1 -1
- package/dist/{token-CPzYxU4Y.js → token-CKPOBdO0.js} +23 -88
- package/dist/{token-CPzYxU4Y.js.map → token-CKPOBdO0.js.map} +1 -1
- package/dist/{token-DHEkiO4g.js → token-Ygd7D32L.js} +3 -3
- package/dist/{token-DHEkiO4g.js.map → token-Ygd7D32L.js.map} +1 -1
- package/dist/update-CB21YRKz.js +1 -0
- package/dist/update-T1L7yFon.js +1548 -0
- package/dist/update-T1L7yFon.js.map +1 -0
- package/dist/update-fEgWTrIx.js +214 -0
- package/dist/update-fEgWTrIx.js.map +1 -0
- package/dist/update-lock-BeS_WmC8.js +1 -0
- package/dist/update-lock-BmXx6QaR.js +171 -0
- package/dist/update-lock-BmXx6QaR.js.map +1 -0
- package/dist/volatile-root-DQNNvQ7Z.js +50 -0
- package/dist/volatile-root-DQNNvQ7Z.js.map +1 -0
- package/dist/{worker-dispatch-C7RtNOXv.js → worker-dispatch-DBWKTMda.js} +2 -2
- package/dist/{worker-dispatch-C7RtNOXv.js.map → worker-dispatch-DBWKTMda.js.map} +1 -1
- package/dist/{workiq-CQauEAMc.js → workiq-D5b7xlbr.js} +2 -2
- package/dist/{workiq-CQauEAMc.js.map → workiq-D5b7xlbr.js.map} +1 -1
- package/dist/{workiq-tools-DL6rC4bP.js → workiq-tools-DdiQ2DOW.js} +1 -1
- package/package.json +16 -4
- package/dist/ado-tools-CRkyU51J.js +0 -1
- package/dist/claude-md-injection-Biq_Xhve.js.map +0 -1
- package/dist/engine-V46un8Xl.js +0 -1
- package/dist/lifecycle-BENRuuX6.js +0 -1
- package/dist/lifecycle-Dli9vGI2.js +0 -1
- package/dist/paths-Be9_ujQ3.js +0 -1
- package/dist/paths-CVEO8jEH.js.map +0 -1
- package/dist/pi-DmeBxzIo.js.map +0 -1
- package/dist/pi-memory-bridge-Bp9AnYw9.js +0 -1
- package/dist/pi-memory-bridge-CICIdDVP.js +0 -413
- package/dist/pi-memory-bridge-CICIdDVP.js.map +0 -1
- package/dist/provision-DPL8aGe2.js.map +0 -1
- package/dist/rerank-cross-encoder-B87lZgvc.js +0 -110
- package/dist/rerank-cross-encoder-B87lZgvc.js.map +0 -1
- package/dist/server-setup-ClZdV33Q.js.map +0 -1
- package/dist/service-backend-Cdgz6WPx.js.map +0 -1
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
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,
|
|
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
|
-
*
|
|
936
|
-
*
|
|
937
|
-
*
|
|
938
|
-
*
|
|
939
|
-
* credential was read when it
|
|
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
|
-
|
|
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
|
-
*
|
|
954
|
-
*
|
|
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
|
-
*
|
|
983
|
-
*
|
|
984
|
-
*
|
|
985
|
-
*
|
|
986
|
-
*
|
|
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
|
-
|
|
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-
|
|
1311
|
+
//# sourceMappingURL=token-CKPOBdO0.js.map
|