| 66 | if ($[10] !== tool) { |
| 67 | t5 = () => { |
| 68 | const loadDescription = async function loadDescription() { |
| 69 | try { |
| 70 | const desc = await tool.description({}, { |
| 71 | isNonInteractiveSession: false, |
| 72 | toolPermissionContext: { |
| 73 | mode: "default" as const, |
| 74 | additionalWorkingDirectories: new Map(), |
| 75 | alwaysAllowRules: {}, |
| 76 | alwaysDenyRules: {}, |
| 77 | alwaysAskRules: {}, |
| 78 | isBypassPermissionsModeAvailable: false |
| 79 | }, |
| 80 | tools: [] |
| 81 | }); |
| 82 | setToolDescription(desc); |
| 83 | } catch { |
| 84 | setToolDescription("Failed to load description"); |
| 85 | } |
| 86 | }; |
| 87 | loadDescription(); |
| 88 | }; |
| 89 | t6 = [tool]; |