feat(ts): kernel events/commands, thread API, transports, handle/poll - #187
Draft
Rushant-123 wants to merge 2 commits into
Draft
feat(ts): kernel events/commands, thread API, transports, handle/poll#187Rushant-123 wants to merge 2 commits into
Rushant-123 wants to merge 2 commits into
Conversation
Port the Python rewrite adapter set onto the TypeScript kernel without growing Event/Command. Each pack parses inbound, plans Post/Edit/React/ Typing (or AdapterError), and owns thread ids and overlap keys. Co-authored-by: Rushant Ashtputre <Rushant-123@users.noreply.github.com>
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Close the Python-parity gaps the TS A-core kept small: Receipt/MemberJoin/ Edited/Deleted events, outbound Commands, AdapterPort verify/acknowledge/ capabilities/format, shared Http/Multiplex/SMTP/TwiML transports, and cx.handle / cx.poll as one composition root. Co-authored-by: Rushant Ashtputre <Rushant-123@users.noreply.github.com>
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.
What & why
Close the Python-parity gaps the TypeScript A-core had kept small. Python grew Events, Commands, AdapterPort methods, Thread verbs, and a single
handle/pollcomposition root; TS now matches that kernel and B surface without putting I/O incore/.Kernel
Receipt,MemberJoin,MemberLeave,Edited,Deletedattachments,blocks,reply_to,topic_id,message_id(plus Actioninteraction_id/message_id)Reply,SendBlocks,SendMedia,Delete,Pin,Unpin,Forward,MarkRead,Initiate,ScheduleSend,OpenModal,UpdateModal,ListHistoryAdapterPort:verify/acknowledge/capabilities/format, optionalpollThread
reply,sendBlocks/send_blocks,sendMedia/send_media,delete,pin/unpin,forward,markRead,initiate,schedule,history,subscribe,thread.stream()(buffers to onePostwhen there is no live sink)Composition root
cx.handle(channel, body, headers)— verify → parse → step → execute → transportcx.poll(channel)— TelegramgetUpdateslong-poll into the samehandleRawpipelineinterpreters/registry.tsTransports
HttpTransport+MultiplexTransport(http_json/http_form/http_multipart/noop)SmtpTransport(injectable sender; no live SMTP by default)VoiceResponder(lifts TwiML; no outbound HTTP)Adapters
ReceiptChecklist
cd packages/typescript && bun run ci(202 pass)src/adapters(facade-no-adapters)uv run pytest/ruff— Python not in this PR