polygram 0.8.0-rc.26 → 0.8.0-rc.27

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.8.0-rc.26",
4
+ "version": "0.8.0-rc.27",
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "polygram",
3
- "version": "0.8.0-rc.26",
3
+ "version": "0.8.0-rc.27",
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": {
package/scripts/doctor.js CHANGED
@@ -238,8 +238,13 @@ function checkPendingOutbound(db) {
238
238
  function checkApprovals(db) {
239
239
  if (!db) return;
240
240
  try {
241
+ // Table is `pending_approvals` (migrations/004-approvals.sql).
242
+ // Pre-rc.27 this query was `FROM approvals` — a typo that caused
243
+ // every doctor run to silently land in the catch and emit
244
+ // "skipped: no such table: approvals" warnings instead of real
245
+ // pending counts.
241
246
  const row = db.prepare(`
242
- SELECT COUNT(*) AS n FROM approvals
247
+ SELECT COUNT(*) AS n FROM pending_approvals
243
248
  WHERE status = 'pending' AND bot_name = ?
244
249
  `).get(botName);
245
250
  if (row.n > 0) {