Skip to content

Commit 68cf1ff

Browse files
quickbeardclaude
andcommitted
refactor(core): base64-encode the ripgrep mirror host
Same convention as codev-gateway's const.ts: keeps the host out of casual greps, not a secret. The test's plain-text URL assertion now doubles as proof the encoded value decodes to the right mirror. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 44f5aff commit 68cf1ff

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎packages/core/src/ripgrep/binary.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ export namespace RipgrepBinary {
1616
// mirrors the official executables for this VERSION (raw, not archived) at
1717
// rg-<version>-<platform>-<arch>[.exe]. Bumping VERSION requires hosting the
1818
// new binaries there first; codevhub pins the same version in lib/ripgrep.ts.
19-
const MIRROR = "https://netmind.viettel.vn/codev/docs/code/downloads"
19+
// Base64 (like codev-gateway's const.ts) to keep the host out of casual
20+
// greps, not as a secret.
21+
const MIRROR = atob("aHR0cHM6Ly9uZXRtaW5kLnZpZXR0ZWwudm4vY29kZXYvZG9jcy9jb2RlL2Rvd25sb2Fkcw==")
2022
const PLATFORM = {
2123
"arm64-darwin": { platform: "aarch64-apple-darwin", extension: "tar.gz" },
2224
"arm64-linux": { platform: "aarch64-unknown-linux-gnu", extension: "tar.gz" },

0 commit comments

Comments
 (0)