@simonyea/holysheep-cli 1.7.62 → 1.7.63
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/package.json +1 -1
- package/src/webui/index.html +15 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@simonyea/holysheep-cli",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.63",
|
|
4
4
|
"description": "Claude Code/Cursor/Cline API relay for China — ¥1=$1, WeChat/Alipay payment, no credit card, no VPN. One command setup for all AI coding tools.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"openai-china",
|
package/src/webui/index.html
CHANGED
|
@@ -237,6 +237,21 @@ async function init() {
|
|
|
237
237
|
loadTools()
|
|
238
238
|
loadEnv()
|
|
239
239
|
renderFooter()
|
|
240
|
+
startUpdateChecker()
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
// ── 定时检查新版本(每 5 分钟)──────────────────────────────────────────────
|
|
244
|
+
let _updateTimer = null
|
|
245
|
+
function startUpdateChecker() {
|
|
246
|
+
if (_updateTimer) return
|
|
247
|
+
_updateTimer = setInterval(async () => {
|
|
248
|
+
try {
|
|
249
|
+
const s = await api('status')
|
|
250
|
+
if (s.updateAvailable) {
|
|
251
|
+
document.getElementById('version').innerHTML = `v${s.version} <span style="color:var(--primary);cursor:pointer;font-weight:600" onclick="doUpgradeTool('holysheep','HolySheep CLI')" title="${t('updateNow')}"> → v${s.updateAvailable} ${t('updateNow')}</span>`
|
|
252
|
+
}
|
|
253
|
+
} catch {}
|
|
254
|
+
}, 5 * 60 * 1000)
|
|
240
255
|
}
|
|
241
256
|
|
|
242
257
|
// ── API helper ───────────────────────────────────────────────────────────────
|