@kendoo.agentdesk/agentdesk 0.6.1 → 0.6.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.
- package/cli/team.mjs +2 -1
- package/package.json +1 -1
package/cli/team.mjs
CHANGED
|
@@ -276,7 +276,8 @@ export async function runTeam(taskId, opts = {}) {
|
|
|
276
276
|
const PHASE_NAMES = ["INTAKE", "BRAINSTORM", "PLANNING", "EXECUTION", "REVIEW"];
|
|
277
277
|
|
|
278
278
|
// Build agent name regex dynamically from resolved team
|
|
279
|
-
const
|
|
279
|
+
const escapeRegex = (s) => s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
280
|
+
const agentNames = teamSections.names.map(escapeRegex).join("|");
|
|
280
281
|
const agentRegex = new RegExp(`^(${agentNames})\\s*[●◆▲■◈☾✦*]*\\s*:?\\s*`, "i");
|
|
281
282
|
|
|
282
283
|
function detectAgent(text) {
|