polygram 0.45.0 → 0.45.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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://anthropic.com/claude-code/plugin.schema.json",
3
3
  "name": "polygram",
4
- "version": "0.45.0",
4
+ "version": "0.45.1",
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 plus history (transcript queries) and polygram-send (out-of-turn IPC sends with file-upload validation) skills.",
6
6
  "keywords": [
7
7
  "telegram",
package/lib/config.js CHANGED
@@ -53,8 +53,11 @@ function saveConfig({ configPath, botName, config }) {
53
53
  // Top-level non-bot-scoped fields (defaults, maxWarmProcesses,
54
54
  // etc.) are ops-wide policy — leave them as-is on disk.
55
55
 
56
+ // The file holds every bot token, so it is written owner-only whatever the
57
+ // process umask: chmod after the write, because `mode` is masked by umask.
56
58
  const tmp = `${configPath}.tmp.${process.pid}`;
57
- fs.writeFileSync(tmp, JSON.stringify(onDisk, null, 2));
59
+ fs.writeFileSync(tmp, JSON.stringify(onDisk, null, 2), { mode: 0o600 });
60
+ fs.chmodSync(tmp, 0o600);
58
61
  fs.renameSync(tmp, configPath);
59
62
  }
60
63
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "polygram",
3
- "version": "0.45.0",
3
+ "version": "0.45.1",
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": {