#!/usr/bin/env node
import {a}from'./chunk-TYWB5IQJ.js';import {e}from'./chunk-AO7ZSRME.js';import'./chunk-XHJ27CER.js';import o from'chalk';async function y(s,g){let r=process.cwd(),t=e(r);t||(g.json?console.log(JSON.stringify({error:"No agents.yaml found"})):console.log(o.red("\nNo agents.yaml found. Run `paradigm team init` first.\n")),process.exit(1));let e$1=a(s,t.agents);if(g.json){console.log(JSON.stringify({task:s,suggestions:e$1},null,2));return}if(console.log(o.cyan(`
Suggested agents for this task:
`)),console.log(o.gray(`  Task: "${s}"
`)),e$1.length===0){console.log(o.yellow(`  No agents matched. Consider using architect \u2192 builder flow.
`)),console.log(o.gray(`  Tip: Add keyword or symbol triggers to agents.yaml
`));return}for(let n of e$1){let i=n.confidence==="high"?o.green("\u2605"):n.confidence==="medium"?o.yellow("\u25C6"):o.gray("\u25CB");console.log(`  ${i} ${o.white.bold(n.name)} ${o.gray(`(${n.confidence})`)}`),console.log(o.gray(`    ${n.reason}`)),console.log(o.gray(`    Matched: ${n.triggers_matched.join(", ")}
`));}if(e$1.length>0){console.log(o.cyan("  Suggested workflow:"));let n=e$1.map(a=>a.name),i=d(n);console.log(o.gray(`    ${i.join(" \u2192 ")}
`)),console.log(o.gray("  Or use MCP orchestration:")),console.log(o.gray(`    paradigm_orchestrate_inline({ task: "${s.slice(0,30)}${s.length>30?"...":""}", mode: "plan" })
`));}}function d(s){let g=["architect","security","builder","reviewer","tester"],r=[],t=new Set(s);for(let e of g)t.has(e)&&(r.push(e),t.delete(e));for(let e of t)r.push(e);return r}export{y as agentsSuggestCommand};