@llblab/pi-telegram 0.54.2 → 0.54.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/threads.ts CHANGED
@@ -9229,6 +9229,10 @@ export interface TelegramCurrentThreadAssemblyDeps {
9229
9229
  instanceId: string;
9230
9230
  listRecords: TelegramCurrentInstanceThreadRuntimeDeps["listRecords"];
9231
9231
  listWorkspaceBindings?: () => readonly TelegramWorkspaceThreadBinding[];
9232
+ /** Display-mode title for a binding whose tab has no acknowledged title yet (fresh, moved or reclaimed). */
9233
+ resolveAutomaticDisplayTitle?: (
9234
+ binding: TelegramWorkspaceThreadBinding,
9235
+ ) => string | undefined;
9232
9236
  getFollowerDisplayTitle?: () => string | undefined;
9233
9237
  getActiveTurnTarget(): TelegramTarget | undefined;
9234
9238
  getFollowerTarget(): TelegramTarget | undefined;
@@ -9290,9 +9294,13 @@ export function createTelegramCurrentThreadAssembly(
9290
9294
  ) {
9291
9295
  return deps.getFollowerDisplayTitle?.();
9292
9296
  }
9293
- return deps
9297
+ const binding = deps
9294
9298
  .listWorkspaceBindings?.()
9295
- .find((binding) => targetMatches(binding.target, target))?.displayTitle;
9299
+ .find((value) => targetMatches(value.target, target));
9300
+ return (
9301
+ binding?.displayTitle ??
9302
+ (binding ? deps.resolveAutomaticDisplayTitle?.(binding) : undefined)
9303
+ );
9296
9304
  };
9297
9305
  const displayIdentity = (
9298
9306
  identity: TelegramInstanceThreadIdentityCandidate,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@llblab/pi-telegram",
3
- "version": "0.54.2",
3
+ "version": "0.54.4",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"