315cd35958
- Added renderCall and renderResult methods to MCPTool and DeferredMCPTool classes for TUI rendering of tool calls and results. - Created new mcp/render.ts module providing JSON tree rendering functionality with configurable depth and line limits for terminal display. - Updated renderResult signature in custom tool and extension types to accept optional args parameter for accessing original tool arguments during result rendering. - Fixed method binding in extension and hook tool wrappers by applying .bind(tool) to renderCall and renderResult methods to preserve correct 'this' context. - Added filter to skip .git directories in fuzzy_find_sync function to improve search performance.
52 lines
1.1 KiB
JSON
52 lines
1.1 KiB
JSON
{
|
|
"$schema": "https://biomejs.dev/schemas/2.3.14/schema.json",
|
|
"linter": {
|
|
"enabled": true,
|
|
"rules": {
|
|
"recommended": true,
|
|
"style": {
|
|
"noNonNullAssertion": "off",
|
|
"useConst": "error",
|
|
"useNodejsImportProtocol": "off"
|
|
},
|
|
"suspicious": {
|
|
"noExplicitAny": "off",
|
|
"noControlCharactersInRegex": "off",
|
|
"noEmptyInterface": "off",
|
|
"noConstEnum": "off"
|
|
}
|
|
}
|
|
},
|
|
"formatter": {
|
|
"enabled": true,
|
|
"indentStyle": "tab",
|
|
"indentWidth": 3,
|
|
"lineWidth": 120,
|
|
"lineEnding": "lf"
|
|
},
|
|
"javascript": {
|
|
"formatter": {
|
|
"semicolons": "always",
|
|
"quoteStyle": "double",
|
|
"trailingCommas": "all",
|
|
"bracketSpacing": true,
|
|
"arrowParentheses": "asNeeded"
|
|
}
|
|
},
|
|
"files": {
|
|
"includes": [
|
|
"packages/*/src/**/*.ts",
|
|
"packages/*/src/**/*.tsx",
|
|
"packages/*/test/**/*.ts",
|
|
"packages/*/examples/**/*.ts",
|
|
"!**/vendor/**/*",
|
|
"!**/node_modules/**/*",
|
|
"!**/test-sessions.ts",
|
|
"!**/models.generated.ts",
|
|
"!**/template.generated.ts",
|
|
"!**/gen/agent_pb.ts"
|
|
]
|
|
},
|
|
"assist": { "actions": { "source": { "organizeImports": "on" } } }
|
|
}
|