(directory, client, sessionID)
| 1522 | if (!text || ["active", "current", "goal"].includes(text.toLowerCase())) |
| 1523 | return goals.find((job) => job.goalStatus === "active" && job.enabled !== false) || goals[0]; |
| 1524 | return goals.find((job, index) => matchJob(job, text, index)); |
| 1525 | } |
| 1526 | function parseGoalToolText(args, fields) { |
| 1527 | const result = {}; |
| 1528 | for (const field of fields) |
| 1529 | result[field] = String(args?.[field] || "").trim(); |
| 1530 | return result; |
| 1531 | } |
no test coverage detected