47 Commits
Author SHA1 Message Date
Ilya Laktyushin 622f9d970a Various fixes 2026-05-31 17:35:32 +02:00
Ilya Laktyushin 91eb779ae2 Merge commit 'c64653ed37ce9fe2bc74e260e9e960fcf3ab5dc1' 2026-05-14 12:45:26 +02:00
isaacandClaude Opus 4.7 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
Isaac 3486393f99 Glass 2025-12-20 03:02:08 +08:00
Ilya Laktyushin b04eee8289 Update API [skip ci] 2025-11-27 19:55:24 +04:00
Ilya Laktyushin 7463fb9eda Various fixes 2025-11-18 20:44:26 +04:00
Ilya Laktyushin ea8dc07b23 Update API 2025-11-10 18:58:38 +04:00
Isaac e44bd4d858 Story updates 2025-10-21 18:28:45 +04:00
Ilya Laktyushin 85092482f3 Various improvements 2025-10-17 17:01:25 +04:00
Ilya Laktyushin 141e7c1f49 Gift original details removal 2025-09-07 06:49:28 +05:00
Ilya Laktyushin 76e8d79f9f Update API 2025-09-06 13:35:19 +05:00
Ilya Laktyushin ea2c1e24af Various fixes 2025-08-25 03:43:22 +04:00
Ilya Laktyushin a60a437206 Various improvements 2025-08-22 21:46:07 +04:00
Ilya Laktyushin 72c58813a8 Various improvements 2025-08-01 23:25:24 +02:00
Ilya Laktyushin fe2cc49a55 Various fixes 2025-05-02 18:31:42 +04:00
Ilya Laktyushin 874fac0c63 Various fixes 2025-05-01 20:38:45 +04:00
Ilya Laktyushin eabf0985ef Various fixes 2025-03-12 21:24:42 +04:00
Ilya Laktyushin 8d7f9bf372 Various improvements 2025-02-22 19:17:36 +04:00
Ilya Laktyushin 6e850130fd Update API [skip ci] 2024-12-26 07:27:14 +04:00
Isaac be83150aba [WIP] Star refs 2024-11-28 16:13:06 +04:00
Ilya Laktyushin 89e3ae02a2 Various improvements 2024-10-09 00:05:41 +04:00
Ilya Laktyushin 2c56786809 Gifts improvements 2024-09-23 22:44:29 +04:00
Ilya Laktyushin f7e6755a39 Update API 2024-09-19 03:24:24 +04:00
Ilya Laktyushin e27bb3a220 Various improvements 2024-09-01 16:03:17 +04:00
Ilya Laktyushin 5941becc33 Stars giveaways [skip ci] 2024-08-23 18:44:16 +04:00
Isaac 2ce2151b12 Various improvements 2024-08-18 23:33:25 +08:00
Ilya Laktyushin 75d884350a Various improvements 2024-08-11 22:21:30 +02:00
Ilya Laktyushin 2de3528852 Various improvements 2024-08-11 21:48:30 +02:00
Ilya Laktyushin 2bf11a6279 Various improvements 2024-08-09 17:43:47 +02:00
Ilya Laktyushin 28728b2ece Various fixes 2024-08-02 16:27:56 +02:00
Ilya Laktyushin 9ba0743553 Various improvements 2024-07-24 09:25:48 +04:00
Ilya Laktyushin 4216ee3933 Various improvements 2024-07-13 18:13:58 +04:00
Ilya Laktyushin 641d5d7c8b Update IAP 2024-07-09 18:11:10 +04:00
Ilya Laktyushin 3f1bc2b21b Update IAP 2024-07-08 18:00:41 +04:00
Ilya Laktyushin 2b1d09fb5a Web app minimization 2024-06-25 22:26:55 +04:00
Isaac 9a075fa39e Refactoring 2024-06-12 23:04:04 +04:00
Ilya Laktyushin c30fd83ee3 Various improvements 2024-05-28 17:43:47 +04:00
Ilya Laktyushin 51b262afac Various improvements 2024-05-28 13:06:02 +04:00
Ilya Laktyushin f0fa9461cd Various improvements 2024-05-27 15:51:33 +04:00
Ilya Laktyushin b1be15e4a1 Stars fixes 2024-05-25 18:06:37 +04:00
Ilya Laktyushin 4d6810c5c0 Various improvements 2024-05-25 16:09:51 +04:00
Ilya Laktyushin bb5789234c Various improvements 2024-05-25 03:45:32 +04:00
Ilya Laktyushin 097eacdc34 Various improvements 2024-05-25 02:29:19 +04:00
Ilya Laktyushin 0bb02041e8 Update API 2024-05-24 16:29:44 +04:00
Ilya Laktyushin 2007f15998 Various improvements 2024-05-24 02:43:22 +04:00
Ilya Laktyushin f3e75ca2e3 Various fixes 2024-05-21 18:15:14 +04:00
Ilya Laktyushin c099ec3641 Stars 2024-05-17 23:40:10 +04:00