@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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/gateway.js +11 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tritard/waterbrother",
3
- "version": "0.16.101",
3
+ "version": "0.16.102",
4
4
  "description": "Waterbrother: bring-your-own-model coding CLI with local tools, sessions, operator modes, and approval controls",
5
5
  "type": "module",
6
6
  "bin": {
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 = resolveProjectAgent(project, intent.target);
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) {