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 +36 -21
- package/dist/daemon-entry.js +36 -21
- package/package.json +1 -1
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.
|
|
120006
|
-
|
|
120007
|
-
|
|
120008
|
-
|
|
120009
|
-
|
|
120010
|
-
|
|
120011
|
-
|
|
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.
|
|
120017
|
-
|
|
120018
|
-
|
|
120019
|
-
|
|
120020
|
-
|
|
120021
|
-
|
|
120022
|
-
|
|
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.
|
|
120028
|
-
|
|
120029
|
-
|
|
120030
|
-
|
|
120031
|
-
|
|
120032
|
-
|
|
120033
|
-
|
|
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
|
}
|
package/dist/daemon-entry.js
CHANGED
|
@@ -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.
|
|
116439
|
-
|
|
116440
|
-
|
|
116441
|
-
|
|
116442
|
-
|
|
116443
|
-
|
|
116444
|
-
|
|
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.
|
|
116450
|
-
|
|
116451
|
-
|
|
116452
|
-
|
|
116453
|
-
|
|
116454
|
-
|
|
116455
|
-
|
|
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.
|
|
116461
|
-
|
|
116462
|
-
|
|
116463
|
-
|
|
116464
|
-
|
|
116465
|
-
|
|
116466
|
-
|
|
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
|
}
|