papayu/start-with-openai.sh
Yuriy e76236dc55 Initial commit: papa-yu v2.4.4
- Schema version (x_schema_version, schema_hash) в prompt/trace
- Кеш read/search/logs/env (ContextCache) в plan-цикле
- Контекст-диета: MAX_FILES=8, MAX_FILE_CHARS=20k, MAX_TOTAL_CHARS=120k
- Plan→Apply двухфазность, NO_CHANGES, path sanitization
- Protected paths, content validation, EOL normalization
- Trace (PAPAYU_TRACE), redaction (PAPAYU_TRACE_RAW)
- Preview diff, undo/redo, transactional apply

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-01-31 11:33:19 +03:00

23 lines
821 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
# Запуск PAPA-YU с подключением к OpenAI.
# Ключ API храните только в .env.openai на своём компьютере (не передавайте в чат и не коммитьте).
cd "$(dirname "$0")"
if [ ! -f .env.openai ]; then
echo "Файл .env.openai не найден."
echo ""
echo "1. Скопируйте шаблон:"
echo " cp env.openai.example .env.openai"
echo ""
echo "2. Откройте .env.openai и замените your-openai-key-here на ваш ключ OpenAI (sk-...)."
echo ""
exit 1
fi
# Загружаем переменные, убирая \r (Windows-переносы), чтобы не было "command not found"
export $(grep -v '^#' .env.openai | grep -v '^$' | sed 's/\r$//' | xargs)
npm run tauri dev