(toolPath: string)
| 116 | }; |
| 117 | |
| 118 | const buildToolAccessExpression = (toolPath: string): string => { |
| 119 | const segments = toToolPathSegments([toolPath]); |
| 120 | if (segments.length === 0) { |
| 121 | throw new Error("Tool path must include at least one segment"); |
| 122 | } |
| 123 | return segments.map((segment) => `[${JSON.stringify(segment)}]`).join(""); |
| 124 | }; |
| 125 | |
| 126 | export const parseJsonObjectInput = ( |
| 127 | raw: string | undefined, |
no test coverage detected