chat-heimerdinger 0.1.15 → 0.1.16

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/dist/cli.js CHANGED
@@ -119837,6 +119837,9 @@ class SlackAdapter {
119837
119837
  socketMode: config.socketMode,
119838
119838
  appToken: config.appToken
119839
119839
  });
119840
+ this.app.error(async (error) => {
119841
+ consola.error("Slack Bolt error:", error);
119842
+ });
119840
119843
  this.setupEventHandlers();
119841
119844
  }
119842
119845
  async init() {}
@@ -120002,35 +120005,47 @@ class SlackAdapter {
120002
120005
  });
120003
120006
  this.app.command("/project", async ({ command, ack }) => {
120004
120007
  await ack();
120005
- consola.debug(`Slash command /project from channel: ${command.channel_id}`);
120006
- const context = {
120007
- channelId: command.channel_id,
120008
- userId: command.user_id
120009
- };
120010
- for (const handler of this.interactionHandlers) {
120011
- await handler("show_project_selector", "", context);
120008
+ consola.info(`Slash command /project from channel: ${command.channel_id}`);
120009
+ try {
120010
+ const context = {
120011
+ channelId: command.channel_id,
120012
+ userId: command.user_id
120013
+ };
120014
+ for (const handler of this.interactionHandlers) {
120015
+ await handler("show_project_selector", "", context);
120016
+ }
120017
+ } catch (error) {
120018
+ consola.error("Error handling /project command:", error);
120012
120019
  }
120013
120020
  });
120014
120021
  this.app.command("/stop", async ({ command, ack }) => {
120015
120022
  await ack();
120016
- consola.debug(`Slash command /stop from channel: ${command.channel_id}`);
120017
- const context = {
120018
- channelId: command.channel_id,
120019
- userId: command.user_id
120020
- };
120021
- for (const handler of this.interactionHandlers) {
120022
- await handler("stop_execution", "", context);
120023
+ consola.info(`Slash command /stop from channel: ${command.channel_id}`);
120024
+ try {
120025
+ const context = {
120026
+ channelId: command.channel_id,
120027
+ userId: command.user_id
120028
+ };
120029
+ for (const handler of this.interactionHandlers) {
120030
+ await handler("stop_execution", "", context);
120031
+ }
120032
+ } catch (error) {
120033
+ consola.error("Error handling /stop command:", error);
120023
120034
  }
120024
120035
  });
120025
120036
  this.app.command("/clear", async ({ command, ack }) => {
120026
120037
  await ack();
120027
- consola.debug(`Slash command /clear from channel: ${command.channel_id}`);
120028
- const context = {
120029
- channelId: command.channel_id,
120030
- userId: command.user_id
120031
- };
120032
- for (const handler of this.interactionHandlers) {
120033
- await handler("clear_session", "", context);
120038
+ consola.info(`Slash command /clear from channel: ${command.channel_id}`);
120039
+ try {
120040
+ const context = {
120041
+ channelId: command.channel_id,
120042
+ userId: command.user_id
120043
+ };
120044
+ for (const handler of this.interactionHandlers) {
120045
+ await handler("clear_session", "", context);
120046
+ }
120047
+ } catch (error) {
120048
+ consola.error("Error handling /clear command:", error);
120034
120049
  }
120035
120050
  });
120036
120051
  }
@@ -116270,6 +116270,9 @@ class SlackAdapter {
116270
116270
  socketMode: config.socketMode,
116271
116271
  appToken: config.appToken
116272
116272
  });
116273
+ this.app.error(async (error) => {
116274
+ consola.error("Slack Bolt error:", error);
116275
+ });
116273
116276
  this.setupEventHandlers();
116274
116277
  }
116275
116278
  async init() {}
@@ -116435,35 +116438,47 @@ class SlackAdapter {
116435
116438
  });
116436
116439
  this.app.command("/project", async ({ command, ack }) => {
116437
116440
  await ack();
116438
- consola.debug(`Slash command /project from channel: ${command.channel_id}`);
116439
- const context = {
116440
- channelId: command.channel_id,
116441
- userId: command.user_id
116442
- };
116443
- for (const handler of this.interactionHandlers) {
116444
- await handler("show_project_selector", "", context);
116441
+ consola.info(`Slash command /project from channel: ${command.channel_id}`);
116442
+ try {
116443
+ const context = {
116444
+ channelId: command.channel_id,
116445
+ userId: command.user_id
116446
+ };
116447
+ for (const handler of this.interactionHandlers) {
116448
+ await handler("show_project_selector", "", context);
116449
+ }
116450
+ } catch (error) {
116451
+ consola.error("Error handling /project command:", error);
116445
116452
  }
116446
116453
  });
116447
116454
  this.app.command("/stop", async ({ command, ack }) => {
116448
116455
  await ack();
116449
- consola.debug(`Slash command /stop from channel: ${command.channel_id}`);
116450
- const context = {
116451
- channelId: command.channel_id,
116452
- userId: command.user_id
116453
- };
116454
- for (const handler of this.interactionHandlers) {
116455
- await handler("stop_execution", "", context);
116456
+ consola.info(`Slash command /stop from channel: ${command.channel_id}`);
116457
+ try {
116458
+ const context = {
116459
+ channelId: command.channel_id,
116460
+ userId: command.user_id
116461
+ };
116462
+ for (const handler of this.interactionHandlers) {
116463
+ await handler("stop_execution", "", context);
116464
+ }
116465
+ } catch (error) {
116466
+ consola.error("Error handling /stop command:", error);
116456
116467
  }
116457
116468
  });
116458
116469
  this.app.command("/clear", async ({ command, ack }) => {
116459
116470
  await ack();
116460
- consola.debug(`Slash command /clear from channel: ${command.channel_id}`);
116461
- const context = {
116462
- channelId: command.channel_id,
116463
- userId: command.user_id
116464
- };
116465
- for (const handler of this.interactionHandlers) {
116466
- await handler("clear_session", "", context);
116471
+ consola.info(`Slash command /clear from channel: ${command.channel_id}`);
116472
+ try {
116473
+ const context = {
116474
+ channelId: command.channel_id,
116475
+ userId: command.user_id
116476
+ };
116477
+ for (const handler of this.interactionHandlers) {
116478
+ await handler("clear_session", "", context);
116479
+ }
116480
+ } catch (error) {
116481
+ consola.error("Error handling /clear command:", error);
116467
116482
  }
116468
116483
  });
116469
116484
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chat-heimerdinger",
3
- "version": "0.1.15",
3
+ "version": "0.1.16",
4
4
  "description": "Bridge IM tools (Slack/Lark) with Claude Code for vibe coding",
5
5
  "type": "module",
6
6
  "bin": {