@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/CHANGELOG.md +14 -0
- package/dist/lib/bindings.d.ts +3 -1
- package/dist/lib/bindings.js +2 -1
- package/dist/lib/extension.js +8 -0
- package/dist/lib/routing.d.ts +8 -1
- package/dist/lib/routing.js +338 -63
- package/dist/lib/threads.d.ts +2 -0
- package/dist/lib/threads.js +4 -2
- package/dist/package.json +1 -1
- package/docs/architecture.md +5 -5
- package/docs/multi-instance-bus.md +2 -2
- package/docs/ui-style.md +6 -4
- package/lib/bindings.ts +4 -0
- package/lib/extension.ts +8 -0
- package/lib/routing.ts +434 -78
- package/lib/threads.ts +10 -2
- package/package.json +1 -1
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
|
-
|
|
9297
|
+
const binding = deps
|
|
9294
9298
|
.listWorkspaceBindings?.()
|
|
9295
|
-
.find((
|
|
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,
|