@gitterm/discord-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.
Files changed (2) hide show
  1. package/README.md +5 -2
  2. package/package.json +8 -3
package/README.md CHANGED
@@ -182,7 +182,10 @@ const bot = createDiscordBot({
182
182
  });
183
183
 
184
184
  await bot.start();
185
- process.once("SIGTERM", () => void bot.stop());
185
+ // Stopping releases the bot's claim, so the next start doesn't wait for it to expire.
186
+ const shutdown = () => void bot.stop().finally(() => process.exit(0));
187
+ process.once("SIGINT", shutdown);
188
+ process.once("SIGTERM", shutdown);
186
189
  ```
187
190
 
188
191
  ### Add it to a bot you already run
@@ -254,7 +257,7 @@ Run one bot process per Discord application. Two processes with the same token w
254
257
 
255
258
  ## Limits
256
259
 
257
- - The agent is OpenCode. T3 Code workspaces have no run API for bots to drive.
260
+ - GitTerm's bot run adapter currently supports OpenCode only. T3 Code has a separate native orchestration API, not an OpenCode-compatible run API.
258
261
  - A question left unanswered past the workspace's idle timeout lets the sandbox pause, which
259
262
  cancels the run.
260
263
  - Direct messages are not supported; talk to the bot in server channels.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitterm/discord-bot",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "Discord 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/discord-bot"
19
+ },
15
20
  "bin": {
16
21
  "gitterm-discord-bot": "dist/cli.js"
17
22
  },
@@ -38,8 +43,8 @@
38
43
  "start:local": "bun --watch src/cli.ts"
39
44
  },
40
45
  "dependencies": {
41
- "@gitterm/bot": "^0.2.0",
42
- "@gitterm/sdk": "^0.11.0",
46
+ "@gitterm/bot": "^0.2.2",
47
+ "@gitterm/sdk": "^0.12.0",
43
48
  "discord.js": "^14.27.0"
44
49
  },
45
50
  "devDependencies": {