{"endpoint":"/api/dev/diff-impact","method":"POST","service_trust":"https://defi-shield-hazel.vercel.app/api/trust-signal","free_check":{"endpoint":"https://defi-shield-hazel.vercel.app/api/free/token-check","method":"POST","price":"FREE","note":"Try before you buy — free basic token safety check with risk math."},"also_available_on":{"virtuals_acp":{"agent":"Authensor","agent_id":18805,"offerings":["pre_trade_safety","token_deep_scan","wallet_report","batch_seal"],"marketplace":"https://app.virtuals.io/acp/scan/agents","note":"Same service, accessible to 18,000+ autonomous agents on Virtuals Protocol."},"mcp_server":{"package":"devsecure-mcp","install":"npx devsecure-mcp","tools":67,"note":"Install as MCP server in Claude, Cursor, or any MCP-compatible client for direct tool access."},"bazaar":"https://defi-shield-hazel.vercel.app/.well-known/x402","agent_card":"https://defi-shield-hazel.vercel.app/.well-known/agent-card.json"},"powered_by":"DeFi Shield by Authensor","price":"$0.05","description":"Analyze code changes for breaking impact. Provide old and new code — returns line-by-line diff, detects removed exports, changed function signatures, removed parameters, removed types/interfaces, import changes, and named export removals. Flags breaking changes with severity levels.","llm_usage_prompt":"Call this endpoint when reviewing code changes before merging or deploying. Provide 'old_code' (before), 'new_code' (after), and optionally 'language' (default: typescript). Returns total_lines_changed, additions, deletions, breaking_changes with severity, risk_level, diff_lines, and a summary with recommendation. Costs $0.05.","params":{"old_code":"string (required) - The original code before changes","new_code":"string (required) - The modified code after changes","language":"string (optional, default: 'typescript') - Language for type-aware analysis (typescript, javascript, etc.)"},"exampleRequest":{"old_code":"export function validateToken(token: string): boolean {\n  return token.length > 0;\n}\n\nexport const API_VERSION = 2;","new_code":"function validateToken(token: string, secret: string): boolean {\n  return token.length > 0;\n}\n\nexport const API_VERSION = 3;","language":"typescript"},"exampleResponse":{"total_lines_changed":4,"additions":2,"deletions":2,"breaking_changes":[{"type":"removed_export","description":"Exported function \"validateToken\" was removed — any consumer importing it will break","severity":"critical"},{"type":"changed_signature","description":"Function \"validateToken\" signature changed: (token: string) → (token: string, secret: string)","severity":"high"}],"backwards_compatible":false,"risk_level":"high","summary":"2 additions, 2 deletions. 2 breaking change(s) found. CRITICAL: Exported function \"validateToken\" was removed. DO NOT merge without addressing breaking changes.","response_time_ms":5}}