@@ -8,7 +8,7 @@ const { execSync } = require('child_process');
88 * Script to apply MCP annotations to Pipedream action files from CSV data
99 *
1010 * Usage:
11- * node apply-annotations.js --csv annotations.csv [--dry-run] [-- verbose] [--limit N] [--offset N]
11+ * node apply-annotations.js --csv annotations.csv [--verbose] [--limit N] [--offset N]
1212 */
1313
1414class AnnotationApplier {
@@ -73,16 +73,17 @@ class AnnotationApplier {
7373 }
7474
7575 parseBoolean ( value ) {
76- const normalizedValue = value ?. toUpperCase ( ) ;
77- if ( normalizedValue === 'TRUE ' ) return true ;
78- if ( normalizedValue === 'FALSE ' ) return false ;
76+ const normalizedValue = value ?. toLowerCase ( ) ;
77+ if ( normalizedValue === 'true ' ) return true ;
78+ if ( normalizedValue === 'false ' ) return false ;
7979 throw new Error ( `Invalid boolean value: ${ value } ` ) ;
8080 }
8181
8282 validateCSVHeaders ( headers ) {
8383 const headerMap = {
8484 'KEY' : 'key' ,
8585 'key' : 'key' ,
86+ 'component_key' : 'key' ,
8687 'destructiveHint' : 'destructiveHint' ,
8788 'openWorldHint' : 'openWorldHint' ,
8889 'readOnlyHint' : 'readOnlyHint'
@@ -185,7 +186,7 @@ class AnnotationApplier {
185186 }
186187
187188 isActionFile ( fileName , fullPath ) {
188- return fileName . endsWith ( '.mjs' ) &&
189+ return ( fileName . endsWith ( '.mjs' ) || fileName . endsWith ( '.ts' ) ) &&
189190 fullPath . includes ( '/actions/' ) &&
190191 ! fullPath . includes ( '/common/' ) ;
191192 }
0 commit comments