(ctx: SensorContext)
| 20 | } |
| 21 | |
| 22 | function buildImageArg(ctx: SensorContext): string | null { |
| 23 | const vars: string[] = []; |
| 24 | if (ctx.hasScreen) vars.push('screen'); |
| 25 | if (ctx.hasCamera) vars.push('camera'); |
| 26 | if (vars.length === 0) return null; |
| 27 | return vars.length === 1 ? vars[0] : `[${vars.join(', ')}]`; |
| 28 | } |
| 29 | |
| 30 | const TOOL_CODE_SNIPPETS: Record<SimpleTool, (data: ToolData, ctx: SensorContext) => string> = { |
| 31 | notification: () => ` |
no test coverage detected