@llblab/pi-telegram 0.37.0 → 0.37.1

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 CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  > Each release keeps at most 8 outcome records of at most 512 characters.
4
4
 
5
+ ## 0.37.1: Settings Manager Compatibility Hotfix
6
+
7
+ - `Menu Compatibility`: Keeps `/start`, model, and queue menu rendering compatible with Pi settings-manager implementations that do not expose `reload()`. Hosts with reload retain explicit refresh behavior; other hosts use the freshly constructed settings snapshot instead of failing with `settingsManager.reload is not a function`.
8
+
5
9
  ## 0.37.0: Journal-Owned Telegram Admission
6
10
 
7
11
  - `Configuration-Only State`: Moves the per-profile polling cursor out of `telegram.json` into atomic durable journal revisions, including cursor-only initial sync, compaction, reconstruction, and recovery. A journal-first one-shot cutover removes legacy config state idempotently, exact bot/profile fences remain enforced, status reads journal authority, and unsafe downgrade now fails closed.
package/lib/menu-model.ts CHANGED
@@ -103,7 +103,7 @@ export interface TelegramModelMenuRuntimeOptions<
103
103
  }
104
104
 
105
105
  export interface MenuSettingsManager {
106
- reload: () => Promise<void>;
106
+ reload?: () => Promise<void>;
107
107
  flush?: () => Promise<void>;
108
108
  getEnabledModels: () => string[] | undefined;
109
109
  setEnabledModels?: (patterns: string[] | undefined) => void;
@@ -498,7 +498,9 @@ export function createTelegramModelMenuStateBuilder<
498
498
  threadId,
499
499
  activeModel: deps.getActiveModel(ctx),
500
500
  ctx,
501
- reloadSettings: () => settingsManager.reload(),
501
+ reloadSettings: async () => {
502
+ await settingsManager.reload?.();
503
+ },
502
504
  getConfiguredScopedModelPatterns: () =>
503
505
  settingsManager.getEnabledModels(),
504
506
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@llblab/pi-telegram",
3
- "version": "0.37.0",
3
+ "version": "0.37.1",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"