import{t as e}from"./chunk-IPJHKYVM-CUKythEA.mjs";var t=new Map([[`File operations`,[`ls`,`cat`,`head`,`tail`,`wc`,`touch`,`mkdir`,`rm`,`cp`,`mv`,`ln`,`chmod`,`stat`,`readlink`]],[`Text processing`,[`grep`,`sed`,`awk`,`sort`,`uniq`,`cut`,`tr`,`tee`,`diff`]],[`Search`,[`find`]],[`Navigation & paths`,[`pwd`,`basename`,`dirname`,`tree`,`du`]],[`Environment & shell`,[`echo`,`printf`,`env`,`printenv`,`export`,`alias`,`unalias`,`history`,`clear`,`true`,`false`,`bash`,`sh`]],[`Data processing`,[`xargs`,`jq`,`base64`,`date`]],[`Network`,[`curl`,`html-to-markdown`]]]);function n(e){let n=[],r=new Set(e);n.push(`Available commands:
`);let i=[];for(let[e,i]of t){let t=i.filter(e=>r.has(e));if(t.length>0){n.push(`  ${e}:`),n.push(`    ${t.join(`, `)}
`);for(let e of t)r.delete(e)}}for(let e of r)i.push(e);return i.length>0&&(n.push(`  Other:`),n.push(`    ${i.sort().join(`, `)}
`)),n.push(`Use '<command> --help' for details on a specific command.`),`${n.join(`
`)}
`}var r={name:`help`,async execute(t,r){if(t.includes(`--help`)||t.includes(`-h`))return{stdout:`help - display available commands

Usage: help [command]

Options:
  -h, --help    Show this help message

If a command name is provided, shows help for that command.
Otherwise, lists all available commands.
`,stderr:``,exitCode:0};if(t.length>0&&r.exec){let n=t[0];return r.exec(e([n]),{cwd:r.cwd,signal:r.signal,args:[`--help`]})}return{stdout:n(r.getRegisteredCommands?.()??[]),stderr:``,exitCode:0}}},i={name:`help`,flags:[]};export{i as n,r as t};
//# sourceMappingURL=chunk-MLXIYONF-CV7WHBm-.mjs.map