@gitterm/slack-bot 0.2.0 → 0.2.2

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
@@ -266,7 +269,7 @@ Run one bot process per Slack app. Two processes with the same tokens would both
266
269
 
267
270
  ## Limits
268
271
 
269
- - The agent is OpenCode. T3 Code workspaces have no run API for bots to drive.
272
+ - GitTerm's bot run adapter currently supports OpenCode only. T3 Code has a separate native orchestration API, not an OpenCode-compatible run API.
270
273
  - A question left unanswered past the workspace's idle timeout lets the sandbox pause, which
271
274
  cancels the run.
272
275
  - Direct messages are not supported; talk to the bot in channels.
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.2",
4
4
  "description": "Slack bot that runs a coding agent on your repository in a GitTerm sandbox",
5
5
  "keywords": [
6
6
  "agent",
@@ -12,6 +12,11 @@
12
12
  "homepage": "https://gitterm.dev",
13
13
  "license": "MIT",
14
14
  "author": "Opeyemi Oginni",
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "git+https://github.com/OpeOginni/gitterm.git",
18
+ "directory": "packages/slack-bot"
19
+ },
15
20
  "bin": {
16
21
  "gitterm-slack-bot": "dist/cli.js"
17
22
  },
@@ -42,8 +47,8 @@
42
47
  "start:local": "bun --watch src/cli.ts"
43
48
  },
44
49
  "dependencies": {
45
- "@gitterm/bot": "^0.2.0",
46
- "@gitterm/sdk": "^0.11.0",
50
+ "@gitterm/bot": "^0.2.2",
51
+ "@gitterm/sdk": "^0.12.0",
47
52
  "@slack/bolt": "^5.1.0"
48
53
  },
49
54
  "devDependencies": {