|
from pathlib import Path
|
|
|
|
from devplacepy.config import INTERNAL_GATEWAY_URL, INTERNAL_MODEL
|
|
|
|
BASE_URL_DEFAULT = "https://pravda.education"
|
|
API_URL_DEFAULT = INTERNAL_GATEWAY_URL
|
|
NEWS_API_DEFAULT = "https://news.app.molodetz.nl/api"
|
|
MODEL_DEFAULT = INTERNAL_MODEL
|
|
INPUT_COST_PER_1M_DEFAULT = 0.27
|
|
OUTPUT_COST_PER_1M_DEFAULT = 1.10
|
|
|
|
STATE_DIR = Path.home() / ".devplace_bots"
|
|
ARTICLE_REGISTRY_PATH = Path.home() / ".dpbot_article_registry.json"
|
|
|
|
PROJECT_STATUSES = ["In Development", "Released"]
|
|
|
|
PERSONAS = [
|
|
"enthusiastic_junior",
|
|
"grumpy_senior",
|
|
"hobbyist_maker",
|
|
"academic_type",
|
|
"minimalist",
|
|
"storyteller",
|
|
"rebel",
|
|
"mentor",
|
|
]
|
|
|
|
CATEGORIES = ["devlog", "showcase", "question", "rant", "fun", "random"]
|
|
|
|
GIST_LANGUAGES = [
|
|
"python", "javascript", "typescript", "bash", "go", "rust",
|
|
"sql", "html", "css", "java", "c", "cpp", "ruby", "php", "lua",
|
|
]
|
|
|
|
FEED_TOPICS = ["devlog", "showcase", "question", "rant", "fun"]
|
|
PROJECT_TYPES = ["game", "game_asset", "software", "mobile_app", "website"]
|
|
|
|
SEARCH_TERMS = {
|
|
"enthusiastic_junior": ["vibe coding", "first app", "react", "python", "ai tools"],
|
|
"grumpy_senior": ["rust", "perl", "legacy", "tech debt", "kubernetes"],
|
|
"hobbyist_maker": ["arduino", "raspberry pi", "side project", "3d printing", "game"],
|
|
"academic_type": ["algorithms", "type theory", "distributed systems", "compilers"],
|
|
"minimalist": ["cli", "vim", "golang", "suckless"],
|
|
"storyteller": ["postmortem", "war story", "migration", "outage"],
|
|
"rebel": ["hot take", "overrated", "monorepo", "microservices"],
|
|
"mentor": ["best practices", "code review", "testing", "career"],
|
|
}
|
|
|
|
MIN_COMMENT_LEN = 40
|
|
MIN_POST_LEN = 120
|
|
RESTATEMENT_OVERLAP_THRESHOLD = 0.6
|
|
|
|
GENERIC_COMMENT_PHRASES = [
|
|
"great point", "good point", "i agree", "totally agree", "well said",
|
|
"nice post", "great post", "thanks for sharing", "interesting read",
|
|
"this is interesting", "so true", "couldn't agree more", "spot on",
|
|
"great article", "love this", "this is great", "good read",
|
|
]
|