29 Commits
Author SHA1 Message Date
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 bc7858ad2b AI editing 2026-03-20 18:23:45 +01:00
Ilya Laktyushin dca6b5f145 Various improvements 2026-03-12 13:51:27 +01:00
Ilya Laktyushin d9d1210c1d Various improvements 2026-02-19 21:53:26 +04:00
Ilya Laktyushin 6240a14697 Crafting improvements 2026-02-12 14:04:46 +04:00
Ilya Laktyushin 4b9b95cbc5 Fix 2026-02-08 23:27:38 +04:00
Ilya Laktyushin 8babb95d7e Fix 2026-02-08 16:10:33 +04:00
Ilya Laktyushin b47660b22c Various fixes 2026-02-06 19:35:09 +04:00
Ilya Laktyushin c5a0ad267c Various improvements 2026-02-04 16:36:09 +04:00
Ilya Laktyushin b3aef93435 Various improvements 2026-02-03 21:58:41 +04:00
Ilya Laktyushin ef5a5d22ab Various improvements 2026-02-03 19:23:16 +04:00
Ilya Laktyushin ceca805df7 Various improvements 2026-02-03 19:07:30 +04:00
Ilya Laktyushin 14be0239af Various improvements 2026-02-03 17:33:31 +04:00
Ilya Laktyushin 2ba1f6183e Various fixes 2026-02-03 15:27:06 +04:00
Ilya Laktyushin bbad57434f Various fixes 2026-02-02 15:54:43 +04:00
Ilya Laktyushin cbe98a3fc6 Various improvements 2026-01-31 07:08:06 +04:00
Ilya Laktyushin f58bf2e724 Various improvements 2026-01-30 20:46:03 +04:00
Ilya Laktyushin b91e78fbea Various improvements 2026-01-30 20:21:24 +04:00
Ilya Laktyushin 75627b036a Various improvements 2026-01-30 18:55:05 +04:00
Ilya Laktyushin f0c0f806e6 Various improvements 2026-01-30 01:45:59 +04:00
Ilya Laktyushin d07d38df25 Various improvements 2026-01-30 00:11:52 +04:00
Ilya Laktyushin 422e3e4e24 Various improvements 2026-01-29 21:37:06 +04:00
Ilya Laktyushin b459de93b6 Various fixes 2026-01-29 13:27:18 +04:00
Ilya Laktyushin 4d64ba28a5 Various improvements 2026-01-29 02:48:56 +04:00
Ilya Laktyushin 1d59f24bd8 Update API 2026-01-28 23:50:31 +04:00
Ilya Laktyushin 809958df3b Update localization 2026-01-28 22:11:45 +04:00
Ilya Laktyushin a1aa4d9094 Various fixes 2026-01-28 19:05:47 +04:00
Ilya Laktyushin 142d59cf8f Various improvements 2026-01-27 22:24:31 +04:00
Ilya Laktyushin 0d12dd29ad Various improvements 2026-01-25 22:17:49 +04:00