@tritard/waterbrother 0.16.101 → 0.16.102
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/package.json +1 -1
- package/src/gateway.js +11 -1
package/package.json
CHANGED
package/src/gateway.js
CHANGED
|
@@ -2038,7 +2038,17 @@ class TelegramGateway {
|
|
|
2038
2038
|
}
|
|
2039
2039
|
const actor = this.describeTelegramUser(message?.from || {});
|
|
2040
2040
|
const normalizedTarget = String(intent.target || "").trim().toLowerCase();
|
|
2041
|
-
let targetAgent =
|
|
2041
|
+
let targetAgent = null;
|
|
2042
|
+
if (/^(?:the |selected )?(?:executor|executor terminal|executor bot|active executor)$/.test(normalizedTarget)) {
|
|
2043
|
+
targetAgent = chooseExecutorAgent(project);
|
|
2044
|
+
} else if (/^(?:the |selected )?(?:reviewer|reviewer terminal|reviewer bot)$/.test(normalizedTarget)) {
|
|
2045
|
+
targetAgent = chooseReviewerAgent(project);
|
|
2046
|
+
} else if (/^(?:the |selected )?(?:verifier|verifier terminal|verifier bot)$/.test(normalizedTarget)) {
|
|
2047
|
+
targetAgent = chooseVerifierAgent(project);
|
|
2048
|
+
}
|
|
2049
|
+
if (!targetAgent) {
|
|
2050
|
+
targetAgent = resolveProjectAgent(project, intent.target);
|
|
2051
|
+
}
|
|
2042
2052
|
if (!targetAgent && /^(?:this|my)(?:\s+(?:bot|terminal))?$/.test(normalizedTarget)) {
|
|
2043
2053
|
const host = await this.getLiveBridgeHost();
|
|
2044
2054
|
if (host) {
|