P0: Rust engine, wire daemon and audio-reactive descent surface
This commit is contained in:
Executable
+23
@@ -0,0 +1,23 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
if [ -z "${DEEPSEEK_API_KEY:-}" ]; then
|
||||
DEEPSEEK_API_KEY="$(python3 - <<'PY'
|
||||
import os
|
||||
try:
|
||||
import yaml
|
||||
d = yaml.safe_load(open(os.path.expanduser('~/.dsh/.credentials.yaml')))
|
||||
print((d.get('refs') or {}).get('DEEPSEEK_API_KEY', ''))
|
||||
except Exception:
|
||||
print('')
|
||||
PY
|
||||
)"
|
||||
export DEEPSEEK_API_KEY
|
||||
fi
|
||||
|
||||
if [ -z "${DEEPSEEK_API_KEY}" ]; then
|
||||
echo "no DEEPSEEK_API_KEY — the choir will run in local mode"
|
||||
fi
|
||||
|
||||
exec node server.js
|
||||
Reference in New Issue
Block a user