feat: fix leaked source to be locally runnable

- Restore full Ink TUI startup chain (cli.tsx entry point)
- Create stub .md files for verify skill (Bun text loader hang fix)
- Create stub types for filePersistence and SDK modules
- Fix Enter key not working (modifiers-napi missing, added try-catch)
- Remove overly conservative LOCAL_RECOVERY early return
- Add README with setup instructions
- Add .env.example template
- Add bin/claude-haha entry script and preload.ts

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
程序员阿江(Relakkes)
2026-04-01 01:30:48 +08:00
parent 5a774a2b62
commit 124912c71d
33 changed files with 5572 additions and 280 deletions
+4
View File
@@ -165,6 +165,10 @@ function computeChecksum(
* getSettings() to avoid circular dependencies during settings loading.
*/
export function isPolicyLimitsEligible(): boolean {
if (process.env.CLAUDE_CODE_LOCAL_SKIP_REMOTE_PREFETCH === '1') {
return false
}
// 3p provider users should not hit the policy limits endpoint
if (getAPIProvider() !== 'firstParty') {
return false
@@ -49,6 +49,10 @@ export function resetSyncCache(): void {
export function isRemoteManagedSettingsEligible(): boolean {
if (cached !== undefined) return cached
if (process.env.CLAUDE_CODE_LOCAL_SKIP_REMOTE_PREFETCH === '1') {
return (cached = setEligibility(false))
}
// 3p provider users should not hit the settings endpoint
if (getAPIProvider() !== 'firstParty') {
return (cached = setEligibility(false))