polygram 0.7.7 → 0.7.8

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://anthropic.com/claude-code/plugin.schema.json",
3
3
  "name": "polygram",
4
- "version": "0.7.7",
4
+ "version": "0.7.8",
5
5
  "description": "Telegram integration for Claude Code that preserves the OpenClaw per-chat session model. Migration target for OpenClaw users. Multi-bot, multi-chat, per-topic isolation; SQLite transcripts; inline-keyboard approvals. Bundles /polygram:status|logs|pair-code|approvals admin commands and a history skill.",
6
6
  "keywords": [
7
7
  "telegram",
package/lib/db.js CHANGED
@@ -8,7 +8,13 @@ const fs = require('fs');
8
8
  const path = require('path');
9
9
  const Database = require('better-sqlite3');
10
10
 
11
- const SCHEMA_VERSION = 8;
11
+ // 0.7.8: bumped from 8 → 9. 0.7.6 added migration 009-turn-metrics.sql
12
+ // but failed to bump SCHEMA_VERSION; the early-return on line ~36
13
+ // skipped the migration loop on any DB already at user_version=8 (any
14
+ // upgraded install) → turn_metrics table never created → INSERT prepare
15
+ // at startup crashed polygram. Both 0.7.6 and 0.7.7 shipped with the
16
+ // bug. Fixed by bumping the constant.
17
+ const SCHEMA_VERSION = 9;
12
18
 
13
19
  // Sentinel `error` value for outbound rows whose API call may or may not
14
20
  // have reached Telegram. markStalePending writes it; hasOutboundReplyTo
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "polygram",
3
- "version": "0.7.7",
3
+ "version": "0.7.8",
4
4
  "description": "Telegram daemon for Claude Code that preserves the OpenClaw per-chat session model. Migration path for OpenClaw users moving to Claude Code.",
5
5
  "main": "lib/ipc-client.js",
6
6
  "bin": {