chenbhao Claude Big Pickle commited on
Commit
b926515
·
1 Parent(s): 0c23f4c

chore: migrate all GitHub links to Hugging Face

Browse files

Replace GitHub URLs with HF equivalents across source code
and install script. Release notes now fetch from CHANGELOG.md
on HF instead of GitHub Releases API.

Co-Authored-By: Claude Big Pickle <noreply@anthropic.com>

install.sh CHANGED
@@ -12,7 +12,7 @@ BOLD='\033[1m'
12
  DIM='\033[2m'
13
  RESET='\033[0m'
14
 
15
- REPO="https://github.com/chenbhao/Codev.git"
16
  INSTALL_DIR="$HOME/codev"
17
  BUN_MIN_VERSION="1.3.11"
18
 
 
12
  DIM='\033[2m'
13
  RESET='\033[0m'
14
 
15
+ REPO="https://huggingface.co/chenbhao/codev"
16
  INSTALL_DIR="$HOME/codev"
17
  BUN_MIN_VERSION="1.3.11"
18
 
src/components/AutoModeOptInDialog.tsx CHANGED
@@ -70,7 +70,7 @@ export function AutoModeOptInDialog(t0) {
70
  const onChange = t2;
71
  let t3;
72
  if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
73
- t3 = <Box flexDirection="column" gap={1}><Text>{AUTO_MODE_DESCRIPTION}</Text><Link url="https://github.com/chenbhao/Codev" /></Box>;
74
  $[4] = t3;
75
  } else {
76
  t3 = $[4];
 
70
  const onChange = t2;
71
  let t3;
72
  if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
73
+ t3 = <Box flexDirection="column" gap={1}><Text>{AUTO_MODE_DESCRIPTION}</Text><Link url="https://huggingface.co/chenbhao/codev" /></Box>;
74
  $[4] = t3;
75
  } else {
76
  t3 = $[4];
src/components/HelpV2/HelpV2.tsx CHANGED
@@ -146,7 +146,7 @@ export function HelpV2(t0) {
146
  }
147
  let t7;
148
  if ($[33] === Symbol.for("react.memo_cache_sentinel")) {
149
- t7 = <Box marginTop={1}><Text>For more help:{" "}<Link url="https://github.com/chenbhao/Codev" /></Text></Box>;
150
  $[33] = t7;
151
  } else {
152
  t7 = $[33];
 
146
  }
147
  let t7;
148
  if ($[33] === Symbol.for("react.memo_cache_sentinel")) {
149
+ t7 = <Box marginTop={1}><Text>For more help:{" "}<Link url="https://huggingface.co/chenbhao/codev" /></Text></Box>;
150
  $[33] = t7;
151
  } else {
152
  t7 = $[33];
src/components/Onboarding.tsx CHANGED
@@ -87,7 +87,7 @@ export function Onboarding({
87
  <Text dimColor wrap="wrap">
88
  For more details see:
89
  <Newline />
90
- <Link url="https://github.com/chenbhao/Codev" />
91
  </Text>
92
  </OrderedList.Item>
93
  </OrderedList>
 
87
  <Text dimColor wrap="wrap">
88
  For more details see:
89
  <Newline />
90
+ <Link url="https://huggingface.co/chenbhao/codev" />
91
  </Text>
92
  </OrderedList.Item>
93
  </OrderedList>
src/utils/releaseNotes.ts CHANGED
@@ -26,9 +26,9 @@ const MAX_RELEASE_NOTES_SHOWN = 5
26
  * 3. Next time the user starts Claude, the cached changelog is available immediately
27
  */
28
  export const CHANGELOG_URL =
29
- 'https://github.com/chenbhao/Codev/releases'
30
  const RAW_CHANGELOG_URL =
31
- 'https://api.github.com/repos/chenbhao/Codev/releases'
32
 
33
  /**
34
  * Get the path for the cached changelog file.
@@ -76,7 +76,7 @@ export async function migrateChangelogFromConfig(): Promise<void> {
76
  }
77
 
78
  /**
79
- * Fetch the changelog from GitHub and store it in cache file
80
  * This runs in the background and doesn't block the UI
81
  */
82
  export async function fetchAndStoreChangelog(): Promise<void> {
@@ -94,25 +94,7 @@ export async function fetchAndStoreChangelog(): Promise<void> {
94
  headers: { 'User-Agent': 'Codev' },
95
  })
96
  if (response.status === 200) {
97
- const releases = response.data as Array<{
98
- tag_name: string
99
- name: string
100
- }>
101
-
102
- // Transform releases into markdown format that parseChangelog expects:
103
- // ## version
104
- // - description
105
- const changelogContent = releases
106
- .map(release => {
107
- const version = release.tag_name.replace(/^v/, '')
108
- const lines = [`## ${version}`]
109
- if (release.name) {
110
- lines.push(`- ${release.name}`)
111
- }
112
- return lines.length > 1 ? lines.join('\n') : ''
113
- })
114
- .filter(Boolean)
115
- .join('\n\n')
116
 
117
  // Skip write if content unchanged — writing Date.now() defeats the
118
  // dirty-check in saveGlobalConfig since the timestamp always differs.
 
26
  * 3. Next time the user starts Claude, the cached changelog is available immediately
27
  */
28
  export const CHANGELOG_URL =
29
+ 'https://huggingface.co/chenbhao/codev/commits/main'
30
  const RAW_CHANGELOG_URL =
31
+ 'https://huggingface.co/chenbhao/codev/raw/main/CHANGELOG.md'
32
 
33
  /**
34
  * Get the path for the cached changelog file.
 
76
  }
77
 
78
  /**
79
+ * Fetch the changelog from HF and store it in cache file
80
  * This runs in the background and doesn't block the UI
81
  */
82
  export async function fetchAndStoreChangelog(): Promise<void> {
 
94
  headers: { 'User-Agent': 'Codev' },
95
  })
96
  if (response.status === 200) {
97
+ const changelogContent = response.data
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
98
 
99
  // Skip write if content unchanged — writing Date.now() defeats the
100
  // dirty-check in saveGlobalConfig since the timestamp always differs.