@gitterm/slack-bot 0.2.0 → 0.2.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/README.md CHANGED
@@ -192,7 +192,10 @@ const bot = createSlackBot({
192
192
  });
193
193
 
194
194
  await bot.start();
195
- process.once("SIGTERM", () => void bot.stop());
195
+ // Stopping releases the bot's claim, so the next start doesn't wait for it to expire.
196
+ const shutdown = () => void bot.stop().finally(() => process.exit(0));
197
+ process.once("SIGINT", shutdown);
198
+ process.once("SIGTERM", shutdown);
196
199
  ```
197
200
 
198
201
  ### Add it to a bot you already run
package/dist/cli.js CHANGED
@@ -509,6 +509,8 @@ function createSlackAdapter(options = {}) {
509
509
  }
510
510
  },
511
511
  async mark(message, state) {
512
+ if (message.inThread)
513
+ return;
512
514
  await client.reactions.add({
513
515
  channel: message.thread.channel,
514
516
  timestamp: message.id,
package/dist/index.js CHANGED
@@ -504,6 +504,8 @@ function createSlackAdapter(options = {}) {
504
504
  }
505
505
  },
506
506
  async mark(message, state) {
507
+ if (message.inThread)
508
+ return;
507
509
  await client.reactions.add({
508
510
  channel: message.thread.channel,
509
511
  timestamp: message.id,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitterm/slack-bot",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Slack bot that runs a coding agent on your repository in a GitTerm sandbox",
5
5
  "keywords": [
6
6
  "agent",
@@ -42,7 +42,7 @@
42
42
  "start:local": "bun --watch src/cli.ts"
43
43
  },
44
44
  "dependencies": {
45
- "@gitterm/bot": "^0.2.0",
45
+ "@gitterm/bot": "^0.2.1",
46
46
  "@gitterm/sdk": "^0.11.0",
47
47
  "@slack/bolt": "^5.1.0"
48
48
  },