@gonzih/cc-tg 0.9.31 → 0.9.32

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.
Files changed (2) hide show
  1. package/dist/bot.js +1 -9
  2. package/package.json +1 -1
package/dist/bot.js CHANGED
@@ -1100,16 +1100,8 @@ export class CcTgBot {
1100
1100
  await this.replyToChat(chatId, `${clearNote}${pidNote} Next call picks up latest npm version.`, threadId);
1101
1101
  }
1102
1102
  async handleRestart(chatId, threadId) {
1103
- await this.replyToChat(chatId, "Clearing cache and restarting... brb.", threadId);
1103
+ await this.replyToChat(chatId, "Restarting... brb.", threadId);
1104
1104
  await new Promise(resolve => setTimeout(resolve, 300));
1105
- // Clear npm caches before restart so launchd brings up fresh version
1106
- const home = process.env.HOME ?? "/tmp";
1107
- for (const dir of [`${home}/.npm/_npx`, `${home}/.npm/cache`]) {
1108
- try {
1109
- execSync(`rm -rf "${dir}"`, { shell: "/bin/sh" });
1110
- }
1111
- catch { }
1112
- }
1113
1105
  // Kill all active Claude sessions cleanly
1114
1106
  for (const session of this.sessions.values()) {
1115
1107
  this.stopTyping(session);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gonzih/cc-tg",
3
- "version": "0.9.31",
3
+ "version": "0.9.32",
4
4
  "description": "Claude Code Telegram bot — chat with Claude Code via Telegram",
5
5
  "type": "module",
6
6
  "bin": {