| 1 | export const inject=['tools','commands','prompt'] |
| 2 | export function apply(ctx,config){ |
| 3 | ctx.tools.register({name:'mixed_echo',description:'mixed graph',parameters:{type:'object'},execute:()=>config.tag}) |
| 4 | ctx.commands.register({name:'mixed-echo',description:'mixed graph',handler:()=>config.tag}) |
| 5 | ctx.prompt.registerSection({id:'mixed',text:'Selected '+config.tag}) |
| 6 | ctx.on('tools/pre-execute',()=>({kind:'annotate',text:config.tag})) |
| 7 | } |
| 8 |