Commit History
-
docs: align with the I-Lang canon (2026-09-13)
adsorgcn +1: Claude Opus 5- persona.ilang: the bot's personality and behavior (not intelligence) come from the I-Lang Prompt Spec - README and the five translations: "Learn I-Lang Prompt Spec" link now points to https://ilang.ai/spec/ - site/index.html: "Learn I-Lang Spec" link now points to https://ilang.ai/spec/ - install.sh: "I-Lang Spec" banner URL now https://ilang.ai/spec/, padding adjusted so the box border stays aligned Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>7af1651
-
site: custom 404 page so unknown paths return real 404 instead of SPA fallback
ilang-ai +1: Claude Fable 5Cloudflare Pages serves index.html with 200 for any unknown path when no 404.html exists in the build output. Adding one switches unmatched paths (e.g. /bot.py, /config.py) to a proper 404 status. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>d53099b
-
i18n: match against full navigator.languages preference list
ilang-aiFirst-visit auto-detect now walks the visitor's entire ordered language preference list and picks the first supported one, instead of only checking the single primary language. E.g. a user with [de, ru, en] now gets Russian instead of falling straight to English. Falls back to English if none match. Unit-tested 10/10 cases; page script passes node --check.af323f2 -
i18n: internationalize landing page + READMEs (EN·中文·RU·ES·AR·FA)
ilang-aiLanding page (site/index.html) — client-side i18n, still one self-contained CF-Pages-safe file: - data-i18n keys on every string + a language selector in the nav - inline JS dictionary for zh/ru/es/ar/fa; English stays as the in-HTML default - remembers choice (localStorage), auto-picks from navigator.language on first visit - RTL: sets dir=rtl + Vazirmatn webfont + flipped borders/tag for Arabic & Persian Verified in-browser: all 6 languages swap text, <code>/<br>/<a> render as real elements (not escaped), RTL flips correctly, no horizontal overflow, no console errors. READMEs: - add a 🌐 language nav bar to every README - new full translations README_RU/ES/AR/FA.md (front-matter omitted; code, commands, env-var names, config-table defaults, URLs and badges preserved verbatim) Produced + QA'd via a parallel translate→review workflow.fee842c -
Phase 3 clean-up: purge grey-market persona + fix broken setup docs
ilang-aiPurity (flagship must be a clean anti-spam product): - persona.ilang: replace the grey-market fixer persona (never-refuse-illegal / underground-markets / grey-area-hustles) with a clean helpful-assistant persona that answers legal/sensitive topics factually and declines genuinely harmful/ illegal requests via ::IMMUNE{HARMFUL_OR_ILLEGAL, DECLINE_CLEAN} - vision.ilang: drop the proxy-client device-onboarding flow (recommend_client / want_nodes / ios|android|windows|mac enum); keep clean image understanding - README / README_CN / site: remove 'never refuse illegal' & '三步法/老江湖' advertising and 'no topic off-limits / street-smart / lectures never' copy Docs (fork must actually run): - Every setup path used GEMINI_API_KEY, which the code never reads -> fixed to AI_API_KEY across install.sh, README, README_CN (bot booted green but every AI call failed with 'AI_API_KEY not set') - add .env.example (12 vars, exact parity with config.py) - swap Gemini badge for OpenAI-compatible;…fa6f6d3 -
Phase 3: 落地页隔离进 site/ 子目录(CF Pages 输出目录锁定 site,不暴露 bot 源码)
ilang-ai根目录是 bot 源码,若 CF Pages 关联仓库且输出目录为根,会把 bot.py/config.py/modules 全发布到营销域名下。 移入 site/ 后:关联仓库 → 输出目录设为 site;直传 → 只传 site/。两种方式都不会暴露 bot 代码。02b8e5c