

86d1456552
Postbox -> TelegramEngine waves 107-137 (squashed)
31 waves of consumer-side migration from `import Postbox` to TelegramEngine
typealiases. Net: 173 import drops + 39 BUILD-dep drops + 1 new typealias
(`EngineStoryId = StoryId`, wave 113).
Wave shapes used:
- Orphan-import sweeps (107, 108, 128): drop `import Postbox` from files
whose only Postbox-symbol reference was the import line itself, then
resolve build failures. Methodology requires token-level (`grep -oE`)
filtering, not line-level, to avoid masking real Postbox usage on lines
that also contain `Namespaces.X` references.
- Identifier-swap mini-waves (109-127, 129-134, 136-137): rename
Postbox-typealiased identifiers to engine equivalents
(PeerId -> EnginePeer.Id, MessageId -> EngineMessage.Id,
MediaId -> EngineMedia.Id, MessageIndex -> EngineMessage.Index,
StoryId -> EngineStoryId, ItemCollectionId -> EngineItemCollectionId,
PreferencesEntry -> EnginePreferencesEntry,
FetchResourceSourceType/Error -> EngineFetchResourceSourceType/Error,
MemoryBuffer -> EngineMemoryBuffer, MessageTags -> EngineMessage.Tags,
MessageAttribute -> EngineMessage.Attribute,
TempBox -> EngineTempBox).
- Asset-string FP-only orphans (124).
- Typealias addition + drain (113): added `EngineStoryId` typealias to
TelegramCore, then drained 3+11 consumer sites.
Hard blockers identified during these waves (must restore `import Postbox`
when present): MediaResource[A-Za-z]* (any suffix -- the literal
`MediaResource` matches don't catch MediaResourceData/MediaResourceId/etc.),
Postbox/MediaBox/MediaResource raw types, PostboxCoding/PostboxEncoder/
PostboxDecoder, TempBoxFile, ValueBoxKey, PostboxView, combinedView,
HashFunctions, postboxLog, openPostbox, declareEncodable, PeerView,
MessageHistoryView, MessageHistoryThreadData, CachedPeerData, RenderedPeer,
SelectivePrivacyPeer, SimpleDictionary, ItemCollectionInfosView,
ItemCollectionItem, ItemCollectionItemIndex, ItemCollectionViewEntryIndex,
ChatListIndex, ChatListEntrySummaryComponents, CodableEntry,
MessageHistoryThread, MessageHistoryAnchorIndex,
MessageHistoryEntryLocation, PeerStoryStats, PeerNameIndex,
PeerSummaryCounterTags, ChatListTotalUnreadStateCategory/Stats,
arePeersEqual. Protocol-shape blockers: bare `Peer`/`Message`/`Media`
in function signatures, generic args, enum-case payloads, or dict value
types (e.g., `[PeerId: Peer]`, `case messages([Message])`,
`Signal<(Peer?, ...), NoError>`).
`replace_all PeerId -> EnginePeer.Id` is dangerous: mangles compound
names like `failedPeerId`, `ContactListPeerId`, `nextRemoteMediaId`,
`replyToMessageId`. Pre-flight grep `\b[a-z][a-zA-Z]*PeerId\b` and only
replace_all if 0 matches.
Also removes unneeded design/plan docs from a separate (link-highlighting)
feature branch:
- docs/superpowers/plans/2026-05-02-link-highlighting-modern-path-fixes.md
- docs/superpowers/specs/2026-05-02-link-highlighting-modern-path-fixes-design.md
Squashed commits: 6d82c2980d..e6de5d53a3 (59 commits, including
per-wave content commits and per-wave CLAUDE.md bumps).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-03 10:28:50 +02:00
..
2026-04-28 23:53:26 +02:00
2026-05-03 10:28:50 +02:00
2026-04-20 20:26:58 +02:00
2026-04-28 23:53:26 +02:00
2025-12-26 20:29:30 +08:00
2026-04-07 11:31:22 +02:00
2026-04-14 15:33:19 +02:00
2026-04-25 20:48:15 +04:00
2026-04-20 20:26:58 +02:00
2026-02-02 15:54:43 +04:00
2026-04-28 16:58:04 +04:00
2026-04-20 20:26:58 +02:00
2025-11-26 23:05:30 +08:00
2026-04-24 11:24:13 +04:00
2026-04-22 23:03:51 +02:00
2026-04-29 16:55:37 +04:00
2026-05-03 10:28:50 +02:00
2026-05-03 10:28:50 +02:00
2026-05-02 00:36:34 +02:00
2026-05-03 10:28:50 +02:00
2026-04-20 20:26:58 +02:00
2026-04-25 20:48:15 +04:00
2026-02-03 20:17:44 +08:00
2026-01-25 22:17:49 +04:00
2026-04-24 03:16:14 +02:00
2026-04-28 23:53:26 +02:00
2026-04-20 20:26:58 +02:00
2026-02-06 17:14:35 +04:00
2026-05-03 10:28:50 +02:00
2026-04-27 04:40:29 +02:00
2026-05-03 10:28:50 +02:00
2026-03-11 18:51:44 +01:00
2026-04-20 20:26:58 +02:00
2026-05-03 10:28:50 +02:00
2026-04-28 19:16:08 +02:00
2026-05-03 10:28:50 +02:00
2026-04-20 20:26:58 +02:00
2026-04-28 23:53:26 +02:00
2026-03-24 22:51:44 +08:00
2026-03-28 00:52:16 +08:00
2026-04-07 11:31:22 +02:00
2026-04-07 11:31:22 +02:00
2026-01-25 22:17:49 +04:00
2026-02-03 20:17:44 +08:00
2026-04-20 20:26:58 +02:00
2026-05-03 10:28:50 +02:00
2026-04-20 20:26:58 +02:00
2026-04-07 11:31:22 +02:00
2026-05-03 10:28:50 +02:00
2026-05-03 10:28:50 +02:00
2026-04-25 20:48:15 +04:00
2026-04-10 14:30:23 +02:00
2026-05-03 10:28:50 +02:00
2026-05-03 10:28:50 +02:00
2026-04-15 23:12:53 +02:00
2026-03-13 11:04:33 +01:00
2026-03-27 16:48:23 +01:00
2026-04-24 11:24:13 +04:00
2026-05-03 10:28:50 +02:00
2026-04-19 23:46:13 +02:00
2026-03-18 00:27:13 +01:00
2026-03-18 00:27:13 +01:00
2026-05-02 00:36:34 +02:00
2026-03-12 13:51:27 +01:00
2026-04-24 23:19:43 +04:00
2026-04-24 03:16:14 +02:00
2025-12-01 22:13:33 +08:00
2026-05-03 10:28:50 +02:00
2026-05-03 10:28:50 +02:00
2026-03-07 15:33:36 +01:00
2026-03-22 05:17:29 +03:00
2026-04-22 23:03:51 +02:00
2026-04-27 03:07:38 +02:00
2025-12-02 17:20:43 +08:00
2026-04-19 23:45:18 +02:00
2025-12-02 17:20:43 +08:00
2026-02-27 14:34:18 +04:00
2026-05-03 10:28:50 +02:00
2026-01-25 22:17:49 +04:00
2026-05-03 10:28:50 +02:00
2026-05-03 10:28:50 +02:00
2026-03-24 06:54:30 +01:00
2026-05-03 10:28:50 +02:00
2026-03-10 19:33:45 +01:00
2026-04-20 20:26:58 +02:00
2026-01-25 00:31:18 +08:00
2026-04-24 11:24:13 +04:00
2026-05-03 10:28:50 +02:00
2026-04-15 23:12:53 +02:00
2025-12-06 01:28:06 +08:00
2026-04-07 11:31:22 +02:00
2026-05-03 10:28:50 +02:00
2026-04-28 16:58:04 +04:00
2026-01-25 22:17:49 +04:00
2026-05-03 10:28:50 +02:00
2026-04-24 03:16:14 +02:00
2026-04-19 18:32:40 +02:00
2026-05-03 10:28:50 +02:00
2026-04-25 20:48:15 +04:00
2026-04-24 04:55:22 +02:00
2026-05-03 10:28:50 +02:00
2026-03-30 02:55:35 +02:00
2026-04-16 01:18:22 +02:00
2026-04-25 20:48:15 +04:00
2026-04-20 20:26:58 +02:00
2026-04-20 20:26:58 +02:00
2026-04-20 20:26:58 +02:00
2026-02-25 04:38:32 +04:00
2026-02-20 13:28:58 +04:00
2026-04-20 20:26:58 +02:00
2026-01-25 00:31:18 +08:00
2026-01-16 21:23:32 +08:00
2025-12-05 18:41:50 +04:00
2026-04-20 20:26:58 +02:00
2026-05-03 10:28:50 +02:00
2026-04-25 20:48:15 +04:00
2026-05-03 10:28:50 +02:00
2026-01-16 21:23:32 +08:00
2026-02-13 12:23:53 +04:00
2026-05-03 10:28:50 +02:00
2026-04-28 16:56:02 +04:00
2026-04-24 23:19:43 +04:00
2026-05-03 10:28:50 +02:00
2026-04-07 12:35:54 +02:00
2026-04-07 12:35:54 +02:00
2025-12-22 00:48:28 +04:00
2026-03-22 05:17:29 +03:00
2025-12-16 20:05:44 +04:00
2025-12-28 22:39:34 +08:00
2026-03-22 13:44:04 +01:00
2025-12-16 20:05:44 +04:00
2026-04-29 21:23:36 +04:00
2026-03-22 05:17:29 +03:00
2025-12-26 20:29:30 +08:00
2026-03-22 05:17:29 +03:00
2026-05-03 10:28:50 +02:00
2026-04-20 20:26:58 +02:00
2026-04-14 15:33:19 +02:00
2026-04-02 20:37:35 +02:00
2026-05-03 10:28:50 +02:00
2026-02-13 17:08:48 +04:00
2026-03-03 20:26:45 +04:00
2025-12-02 14:28:47 +04:00