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.
Summary
This release adds stable target-aware Telegram Delivery and normalized Activity APIs for companion extensions, with public package membranes, lifecycle-safe dispatch, logical message handles, and leader/follower transport support.
It also hardens cross-thread authorization, session replacement, shutdown fencing, partial chunk recovery, compaction identity, Pi 0.80.6 compatibility, and private Guest Mode attribution while keeping
index.tscomposition-only.Why
Companion extensions previously had to reach into bridge internals or own Telegram transport to show lifecycle-adjacent UI. The new platform provides narrow supported contracts while preserving pi-telegram's routing, authorization, ordering, and process-ownership boundaries.
User-visible behavior
guestanchored to the remote conversation peer when replying to a bot response.Changed areas
api/activity.ts,lib/activity.ts: stable registration, normalization, dispatcher isolation, generation fencing, and Delivery-backed contexts.api/delivery.ts,lib/delivery.ts: target policy, rendering/transport adaptation, ordering, logical handles, lifecycle fencing, and partial recovery.lib/bus*.ts: explicit authenticated aggregate-delivery marker authorization and stripping.lib/lifecycle.ts,lib/bindings.ts,lib/pi.ts: typed Pi 0.80.6 lifecycle mapping and session replacement.0.21.0.Risk Notes
0.80.6or newer is required for the publicagent_settledboundary.Validation
npm run validate— 1,138 tests; 1,137 passed, 1 platform skip; typecheck passed; audit clean; npm pack dry-run producedllblab-pi-telegram-0.21.0.tgz.