feat: Korean Chrome locale, agents/llm.md voice instructions, drop emoji rule
Some checks failed
Release / semantic-release (push) Successful in 26s
tests / Unit tests (Linux, Python 3.11) (push) Failing after 5m17s
Release / build-linux (push) Failing after 7m7s
Release / build-windows (push) Has been cancelled
Release / build-macos (arm64, macos-latest) (push) Has been cancelled
Release / build-macos (x64, macos-15-intel) (push) Has been cancelled
Release / release-main (push) Has been cancelled
Release / release-develop (push) Has been cancelled
Some checks failed
Release / semantic-release (push) Successful in 26s
tests / Unit tests (Linux, Python 3.11) (push) Failing after 5m17s
Release / build-linux (push) Failing after 7m7s
Release / build-windows (push) Has been cancelled
Release / build-macos (arm64, macos-latest) (push) Has been cancelled
Release / build-macos (x64, macos-15-intel) (push) Has been cancelled
Release / release-main (push) Has been cancelled
Release / release-develop (push) Has been cancelled
- run-chrome.sh: render web content (YouTube/Google/Naver) in Korean. --lang only sets Chrome's UI; the Accept-Language sent to sites comes from the profile's intl.accept_languages, which a persisted user-data-dir kept at en-US. Seed the profile to ko-KR and add --accept-lang=ko-KR,ko. - agents/llm.md: runtime instructions for the reply LLM (loaded by the agents feature) — name "자비스", concise 1-2 sentence TTS replies (no emojis/markdown), nuance-based intent, and YouTube voice controls (open/search/play Nth/pause/ back) via the on-screen browser tool. - CLAUDE.md: drop the "use emojis in CLI output" rule — this assistant replies by Discord voice, not CLI, so output should be plain. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -18,6 +18,27 @@ cat > /etc/opt/chrome/policies/managed/jarvis.json <<'JSON'
|
||||
{ "CommandLineFlagSecurityWarningsEnabled": false }
|
||||
JSON
|
||||
|
||||
# Seed the profile's web-content language to Korean so sites (YouTube, Google,
|
||||
# Naver) render in Korean. --lang sets Chrome's own UI, but the Accept-Language
|
||||
# sent to sites comes from the profile's intl.accept_languages, which a persisted
|
||||
# user-data-dir would otherwise keep at en-US regardless of --accept-lang.
|
||||
PREFS_DIR="${CHROME_PROFILE_DIR:-/root/chrome-profile}/Default"
|
||||
PREFS="${PREFS_DIR}/Preferences"
|
||||
mkdir -p "$PREFS_DIR"
|
||||
if [ -f "$PREFS" ]; then
|
||||
python3 - "$PREFS" <<'PY' 2>/dev/null || true
|
||||
import json, sys
|
||||
p = sys.argv[1]
|
||||
d = json.load(open(p))
|
||||
d.setdefault("intl", {})
|
||||
d["intl"]["accept_languages"] = "ko-KR,ko"
|
||||
d["intl"]["selected_languages"] = "ko-KR,ko"
|
||||
json.dump(d, open(p, "w"), ensure_ascii=False)
|
||||
PY
|
||||
else
|
||||
printf '%s' '{"intl":{"accept_languages":"ko-KR,ko","selected_languages":"ko-KR,ko"}}' > "$PREFS"
|
||||
fi
|
||||
|
||||
# Minimal, non-automation flags. --remote-debugging exposes CDP so the brain can
|
||||
# drive this on-screen Chrome (Google/YouTube/Naver), --disable-features=Translate
|
||||
# hides the translate popup. NO --test-type / --disable-blink-features.
|
||||
@@ -26,6 +47,7 @@ exec google-chrome \
|
||||
--no-default-browser-check \
|
||||
--disable-features=Translate,TranslateUI \
|
||||
--lang=ko-KR \
|
||||
--accept-lang=ko-KR,ko \
|
||||
--remote-debugging-port="${CDP_PORT:-9222}" \
|
||||
--remote-debugging-address="${CDP_BIND:-127.0.0.1}" \
|
||||
--user-data-dir="${CHROME_PROFILE_DIR:-/root/chrome-profile}" \
|
||||
|
||||
Reference in New Issue
Block a user