Add Telegram-sourced pipeline service with config, store, bot endpoints, and tests - #2
Open
yl124915300-dot wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
mockandlivemodes so the pipeline can run without Telegram/OpenAI credentials and degrade gracefully when config is missing.Description
src/config.jswith typed helpers and auto mode detection, and updatepackage.json(versionbump,testscript, andoptionalDependenciesfortelegram).src/server.jswith pipeline orchestration (runPipeline), simple LLM integration fallback (generateDraft), review state machine, bot command handling, HTTP API endpoints (/health,/pipeline/run,/pending,/approve,/reject,/publish,/bot/webhook, etc.), and periodic auto-run timer.src/store.js(JsonStore) with safe flush/backup and upsert helpers, and Telegram client integration insrc/telegram.jswith a mock fallback andsendBotMessageutility.README.md, add detailedai-hot-comments-render-oneclick-v2/README-RENDER.md, add.gitignoreentries, and add tests underai-hot-comments-render-oneclick-v2/test/(smoke.test.js,store.test.js).Testing
test/smoke.test.jsandtest/store.test.jsto validateconfig.modeandJsonStore.upsertMessagesbehavior.npm test(which executesnode --test test/*.test.js) and the tests passed.Codex Task