rflib-plugin 0.23.0 → 0.23.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/oclif.manifest.json +211 -211
  2. package/package.json +2 -2
@@ -321,6 +321,108 @@
321
321
  "get:logarchives:debug:rflib"
322
322
  ]
323
323
  },
324
+ "rflib:debug:recordaccess:get": {
325
+ "aliases": [],
326
+ "args": {},
327
+ "description": "Answers questions such as \"Why can't this user see this record?\". For each record, the command returns the user's access from UserRecordAccess (read, edit, delete, transfer, and full access), which includes sharing: the org-wide default, the role hierarchy, sharing rules, teams, and manual shares.\n\nThe result also contains the user's object permissions on each record's object, and notes that tell apart missing object permissions from missing sharing. Use userpermissions check to find out which profile or permission set grants an object permission.\n\nYou can check up to 200 records at a time.\n\nThe command only reads standard objects, so the RFLIB package doesn't need to be installed.",
328
+ "examples": [
329
+ "Check a user's access to a record:\n$ sf rflib debug recordaccess get --target-org myOrg --user jane@example.com --record-id 001XXXXXXXXXXXXXXX",
330
+ "Check several records at once:\n$ sf rflib debug recordaccess get --target-org myOrg --user 0057000000XXXXXX --record-id 001XXXXXXXXXXXXXXX --record-id 006XXXXXXXXXXXXXXX"
331
+ ],
332
+ "flags": {
333
+ "json": {
334
+ "description": "Format output as json.",
335
+ "helpGroup": "GLOBAL",
336
+ "name": "json",
337
+ "allowNo": false,
338
+ "type": "boolean"
339
+ },
340
+ "flags-dir": {
341
+ "helpGroup": "GLOBAL",
342
+ "name": "flags-dir",
343
+ "summary": "Import flag values from a directory.",
344
+ "hasDynamicHelp": false,
345
+ "multiple": false,
346
+ "type": "option"
347
+ },
348
+ "target-org": {
349
+ "char": "o",
350
+ "description": "The username or alias of the Salesforce org that contains the records.",
351
+ "name": "target-org",
352
+ "noCacheDefault": true,
353
+ "required": true,
354
+ "summary": "Username or alias of the target org.",
355
+ "hasDynamicHelp": true,
356
+ "multiple": false,
357
+ "type": "option"
358
+ },
359
+ "user": {
360
+ "char": "u",
361
+ "description": "The Salesforce User ID (15 or 18 characters) or the username of the user whose record access should be checked.",
362
+ "name": "user",
363
+ "required": true,
364
+ "summary": "User ID (15 or 18 characters) or username of the user to check.",
365
+ "hasDynamicHelp": false,
366
+ "multiple": false,
367
+ "type": "option"
368
+ },
369
+ "record-id": {
370
+ "char": "r",
371
+ "description": "The 15 or 18 character ID of a record to check. Specify --record-id up to 200 times.",
372
+ "name": "record-id",
373
+ "required": true,
374
+ "summary": "ID of a record to check. Specify the flag multiple times to check several records.",
375
+ "hasDynamicHelp": false,
376
+ "multiple": true,
377
+ "type": "option"
378
+ }
379
+ },
380
+ "hasDynamicHelp": true,
381
+ "hiddenAliases": [],
382
+ "id": "rflib:debug:recordaccess:get",
383
+ "pluginAlias": "rflib-plugin",
384
+ "pluginName": "rflib-plugin",
385
+ "pluginType": "core",
386
+ "strict": true,
387
+ "summary": "Check a user's access to specific records, including sharing.",
388
+ "enableJsonFlag": true,
389
+ "isESM": true,
390
+ "relativePath": [
391
+ "lib",
392
+ "commands",
393
+ "rflib",
394
+ "debug",
395
+ "recordaccess",
396
+ "get.js"
397
+ ],
398
+ "aliasPermutations": [],
399
+ "permutations": [
400
+ "rflib:debug:recordaccess:get",
401
+ "debug:rflib:recordaccess:get",
402
+ "debug:recordaccess:rflib:get",
403
+ "debug:recordaccess:get:rflib",
404
+ "rflib:recordaccess:debug:get",
405
+ "recordaccess:rflib:debug:get",
406
+ "recordaccess:debug:rflib:get",
407
+ "recordaccess:debug:get:rflib",
408
+ "rflib:recordaccess:get:debug",
409
+ "recordaccess:rflib:get:debug",
410
+ "recordaccess:get:rflib:debug",
411
+ "recordaccess:get:debug:rflib",
412
+ "rflib:debug:get:recordaccess",
413
+ "debug:rflib:get:recordaccess",
414
+ "debug:get:rflib:recordaccess",
415
+ "debug:get:recordaccess:rflib",
416
+ "rflib:get:debug:recordaccess",
417
+ "get:rflib:debug:recordaccess",
418
+ "get:debug:rflib:recordaccess",
419
+ "get:debug:recordaccess:rflib",
420
+ "rflib:get:recordaccess:debug",
421
+ "get:rflib:recordaccess:debug",
422
+ "get:recordaccess:rflib:debug",
423
+ "get:recordaccess:debug:rflib"
424
+ ]
425
+ },
324
426
  "rflib:debug:loggersettings:get": {
325
427
  "aliases": [],
326
428
  "args": {},
@@ -522,108 +624,6 @@
522
624
  "update:loggersettings:debug:rflib"
523
625
  ]
524
626
  },
525
- "rflib:debug:recordaccess:get": {
526
- "aliases": [],
527
- "args": {},
528
- "description": "Answers questions such as \"Why can't this user see this record?\". For each record, the command returns the user's access from UserRecordAccess (read, edit, delete, transfer, and full access), which includes sharing: the org-wide default, the role hierarchy, sharing rules, teams, and manual shares.\n\nThe result also contains the user's object permissions on each record's object, and notes that tell apart missing object permissions from missing sharing. Use userpermissions check to find out which profile or permission set grants an object permission.\n\nYou can check up to 200 records at a time.\n\nThe command only reads standard objects, so the RFLIB package doesn't need to be installed.",
529
- "examples": [
530
- "Check a user's access to a record:\n$ sf rflib debug recordaccess get --target-org myOrg --user jane@example.com --record-id 001XXXXXXXXXXXXXXX",
531
- "Check several records at once:\n$ sf rflib debug recordaccess get --target-org myOrg --user 0057000000XXXXXX --record-id 001XXXXXXXXXXXXXXX --record-id 006XXXXXXXXXXXXXXX"
532
- ],
533
- "flags": {
534
- "json": {
535
- "description": "Format output as json.",
536
- "helpGroup": "GLOBAL",
537
- "name": "json",
538
- "allowNo": false,
539
- "type": "boolean"
540
- },
541
- "flags-dir": {
542
- "helpGroup": "GLOBAL",
543
- "name": "flags-dir",
544
- "summary": "Import flag values from a directory.",
545
- "hasDynamicHelp": false,
546
- "multiple": false,
547
- "type": "option"
548
- },
549
- "target-org": {
550
- "char": "o",
551
- "description": "The username or alias of the Salesforce org that contains the records.",
552
- "name": "target-org",
553
- "noCacheDefault": true,
554
- "required": true,
555
- "summary": "Username or alias of the target org.",
556
- "hasDynamicHelp": true,
557
- "multiple": false,
558
- "type": "option"
559
- },
560
- "user": {
561
- "char": "u",
562
- "description": "The Salesforce User ID (15 or 18 characters) or the username of the user whose record access should be checked.",
563
- "name": "user",
564
- "required": true,
565
- "summary": "User ID (15 or 18 characters) or username of the user to check.",
566
- "hasDynamicHelp": false,
567
- "multiple": false,
568
- "type": "option"
569
- },
570
- "record-id": {
571
- "char": "r",
572
- "description": "The 15 or 18 character ID of a record to check. Specify --record-id up to 200 times.",
573
- "name": "record-id",
574
- "required": true,
575
- "summary": "ID of a record to check. Specify the flag multiple times to check several records.",
576
- "hasDynamicHelp": false,
577
- "multiple": true,
578
- "type": "option"
579
- }
580
- },
581
- "hasDynamicHelp": true,
582
- "hiddenAliases": [],
583
- "id": "rflib:debug:recordaccess:get",
584
- "pluginAlias": "rflib-plugin",
585
- "pluginName": "rflib-plugin",
586
- "pluginType": "core",
587
- "strict": true,
588
- "summary": "Check a user's access to specific records, including sharing.",
589
- "enableJsonFlag": true,
590
- "isESM": true,
591
- "relativePath": [
592
- "lib",
593
- "commands",
594
- "rflib",
595
- "debug",
596
- "recordaccess",
597
- "get.js"
598
- ],
599
- "aliasPermutations": [],
600
- "permutations": [
601
- "rflib:debug:recordaccess:get",
602
- "debug:rflib:recordaccess:get",
603
- "debug:recordaccess:rflib:get",
604
- "debug:recordaccess:get:rflib",
605
- "rflib:recordaccess:debug:get",
606
- "recordaccess:rflib:debug:get",
607
- "recordaccess:debug:rflib:get",
608
- "recordaccess:debug:get:rflib",
609
- "rflib:recordaccess:get:debug",
610
- "recordaccess:rflib:get:debug",
611
- "recordaccess:get:rflib:debug",
612
- "recordaccess:get:debug:rflib",
613
- "rflib:debug:get:recordaccess",
614
- "debug:rflib:get:recordaccess",
615
- "debug:get:rflib:recordaccess",
616
- "debug:get:recordaccess:rflib",
617
- "rflib:get:debug:recordaccess",
618
- "get:rflib:debug:recordaccess",
619
- "get:debug:rflib:recordaccess",
620
- "get:debug:recordaccess:rflib",
621
- "rflib:get:recordaccess:debug",
622
- "get:rflib:recordaccess:debug",
623
- "get:recordaccess:rflib:debug",
624
- "get:recordaccess:debug:rflib"
625
- ]
626
- },
627
627
  "rflib:debug:userpermissions:check": {
628
628
  "aliases": [],
629
629
  "args": {},
@@ -1353,15 +1353,12 @@
1353
1353
  "instrument:apex:logging:rflib"
1354
1354
  ]
1355
1355
  },
1356
- "rflib:logging:flow:instrument": {
1356
+ "rflib:logging:aura:instrument": {
1357
1357
  "aliases": [],
1358
1358
  "args": {},
1359
- "description": "Automatically adds RFLIB logging statements to Salesforce Flows to provide enhanced tracking and debugging capabilities. Works with both standard Flows and Auto-Launched Flows. Instruments flow invocations and decision paths with logging actions, and logs an error on the fault path of every element that can fail. Existing fault paths continue after the error is logged. Elements without a fault path get one that logs the error and then terminates the transaction, so the Flow still fails as before; this requires the Terminate Transaction option of the RFLIB Log Message action, which was added in RFLIB 11.4.0. The command checks the RFLIB version in the target org, using the installed RFLIB package or, if RFLIB was deployed as source, its RFLIB_Version custom label, and skips the fault paths if the org runs an older version, RFLIB is not found, or the version cannot be determined. Also sets the CanvasMode to AUTO_LAYOUT_CANVAS for better flow visualization while preserving the original processType.",
1359
+ "description": "Analyzes Aura Component files and adds RFLIB logging statements for:\n- Method entry logging with parameter values in Controller, Helper, and Renderer files\n- Error logging in try-catch blocks\n- Error logging in Promise catch handlers\n- Adds rflibLoggerCmp component if not present\n- Replaces console.log and similar method invocations\n- Formats modified files using Prettier (optional)\n\nThe command processes:\n- Component (.cmp) files to add the logger component\n- Controller (.js) files for method instrumentation\n- Helper (.js) files for method instrumentation\n- Renderer (.js) files for method instrumentation",
1360
1360
  "examples": [
1361
- "<%= config.bin %> <%= command.id %> --target-org myOrg --sourcepath force-app",
1362
- "<%= config.bin %> <%= command.id %> --target-org myOrg --sourcepath force-app --dryrun",
1363
- "<%= config.bin %> <%= command.id %> --target-org myOrg --sourcepath force-app --skip-instrumented",
1364
- "<%= config.bin %> <%= command.id %> --target-org myOrg --sourcepath force-app --skip-fault-paths"
1361
+ "- Add logging to all aura files:\n$ sf rflib logging aura instrument --sourcepath force-app\n\n- Preview changes:\n$ sf rflib logging aura instrument --sourcepath force-app --dryrun\n\n- Add logging and format code:\n$ sf rflib logging aura instrument --sourcepath force-app --prettier\n\n- Process specific component:\n$ sf rflib logging aura instrument --sourcepath force-app/main/default/aura/myComponent"
1365
1362
  ],
1366
1363
  "flags": {
1367
1364
  "json": {
@@ -1379,46 +1376,43 @@
1379
1376
  "multiple": false,
1380
1377
  "type": "option"
1381
1378
  },
1382
- "target-org": {
1383
- "char": "o",
1384
- "description": "The Salesforce org the instrumented Flows will be deployed to. The fault paths this command creates use the Terminate Transaction option of the RFLIB Log Message action, which was added in RFLIB 11.4.0, so Flows that use it fail to deploy to an org running an older RFLIB version. Before changing any files, the command runs a read-only Tooling API query for the packages installed in this org. If RFLIB is not installed as a package, for example because it was deployed as source, a second query reads the RFLIB_Version custom label instead. If the org runs RFLIB 11.4.0 or later, fault paths are instrumented; if it runs an older version, RFLIB is not found, or a query fails, they are skipped with a warning. Nothing in the org is changed. The flag is required even with --skip-fault-paths, although the org is not queried in that case.",
1385
- "name": "target-org",
1386
- "noCacheDefault": true,
1387
- "required": true,
1388
- "summary": "Username or alias of the target org.",
1389
- "hasDynamicHelp": true,
1390
- "multiple": false,
1391
- "type": "option"
1392
- },
1393
1379
  "sourcepath": {
1394
1380
  "char": "s",
1395
- "description": "Path to the source directory containing Flow files that should be instrumented with RFLIB logging statements. Processes .flow-meta.xml files with processType=\"Flow\" or \"AutoLaunchedFlow\".",
1381
+ "description": "Path to the source directory containing Aura components that should be instrumented with RFLIB logging statements. The command will:\n- Scan for 'aura' directories recursively\n- Process all Aura components found\n- Add <c:rflibLoggerCmp> to component files\n- Add logging statements to JavaScript files\n- Initialize logger in methods using component.find()",
1396
1382
  "name": "sourcepath",
1397
1383
  "required": true,
1398
- "summary": "Directory containing Flow files to instrument with logging.",
1384
+ "summary": "Directory containing Aura components to instrument with logging.",
1399
1385
  "hasDynamicHelp": false,
1400
1386
  "multiple": false,
1401
1387
  "type": "option"
1402
1388
  },
1403
1389
  "dryrun": {
1404
1390
  "char": "d",
1405
- "description": "When enabled, shows which files would be modified without making actual changes. Useful for reviewing the impact before applying changes.",
1391
+ "description": "When enabled, shows which files would be modified without making actual changes. Useful for reviewing the impact before applying changes. Shows:\n- Files that would be modified\n- Number of processed files\n- Number of modified files\n- Number of formatted files",
1406
1392
  "name": "dryrun",
1407
1393
  "summary": "Preview changes without modifying files.",
1408
1394
  "allowNo": false,
1409
1395
  "type": "boolean"
1410
1396
  },
1411
- "skip-instrumented": {
1412
- "description": "When provided, the command will not add log statements to any Flows that already contain RFLIB logging actions.",
1413
- "name": "skip-instrumented",
1414
- "summary": "Skips any files where a logger is already present.",
1397
+ "prettier": {
1398
+ "char": "p",
1399
+ "description": "When enabled, formats the modified JavaScript files using Prettier after adding logging statements. Maintains consistent code style with:\n- 120 character line width\n- 4 space indentation\n- Single quotes for strings\n- No tabs\n- No trailing commas",
1400
+ "name": "prettier",
1401
+ "summary": "Format modified files using Prettier.",
1415
1402
  "allowNo": false,
1416
1403
  "type": "boolean"
1417
1404
  },
1418
- "skip-fault-paths": {
1419
- "description": "When provided, the command will not add error logging to fault paths and will not create fault paths for elements that have none, regardless of the RFLIB version installed in the target org.",
1420
- "name": "skip-fault-paths",
1421
- "summary": "Skips logging errors on fault paths.",
1405
+ "no-if": {
1406
+ "description": "When provided, the command will not add log statements inside of `if` and `else` blocks.",
1407
+ "name": "no-if",
1408
+ "summary": "Exclude the instrumentation of if-else statements.",
1409
+ "allowNo": false,
1410
+ "type": "boolean"
1411
+ },
1412
+ "skip-instrumented": {
1413
+ "description": "When provided, the command will not add log statements to any Aura component that contains the `` component.",
1414
+ "name": "skip-instrumented",
1415
+ "summary": "Skips any files where a logger is already present.",
1422
1416
  "allowNo": false,
1423
1417
  "type": "boolean"
1424
1418
  },
@@ -1432,7 +1426,7 @@
1432
1426
  },
1433
1427
  "exclude": {
1434
1428
  "char": "e",
1435
- "description": "Exclude specific files or directories that match the provided glob pattern. For example, use --exclude \"**/Test_*.flow-meta.xml\" to skip certain flows.",
1429
+ "description": "Exclude specific files or directories that match the provided glob pattern. For example, use --exclude \"**/Generated_*.cmp\" to skip auto-generated components.",
1436
1430
  "name": "exclude",
1437
1431
  "summary": "Exclude files or directories from instrumentation based on a glob pattern.",
1438
1432
  "hasDynamicHelp": false,
@@ -1450,14 +1444,14 @@
1450
1444
  "type": "option"
1451
1445
  }
1452
1446
  },
1453
- "hasDynamicHelp": true,
1447
+ "hasDynamicHelp": false,
1454
1448
  "hiddenAliases": [],
1455
- "id": "rflib:logging:flow:instrument",
1449
+ "id": "rflib:logging:aura:instrument",
1456
1450
  "pluginAlias": "rflib-plugin",
1457
1451
  "pluginName": "rflib-plugin",
1458
1452
  "pluginType": "core",
1459
1453
  "strict": true,
1460
- "summary": "Adds RFLIB logging statements to Salesforce Flows.",
1454
+ "summary": "Instrument Aura Components with RFLIB logging statements automatically.",
1461
1455
  "enableJsonFlag": true,
1462
1456
  "isESM": true,
1463
1457
  "relativePath": [
@@ -1465,43 +1459,46 @@
1465
1459
  "commands",
1466
1460
  "rflib",
1467
1461
  "logging",
1468
- "flow",
1462
+ "aura",
1469
1463
  "instrument.js"
1470
1464
  ],
1471
1465
  "aliasPermutations": [],
1472
1466
  "permutations": [
1473
- "rflib:logging:flow:instrument",
1474
- "logging:rflib:flow:instrument",
1475
- "logging:flow:rflib:instrument",
1476
- "logging:flow:instrument:rflib",
1477
- "rflib:flow:logging:instrument",
1478
- "flow:rflib:logging:instrument",
1479
- "flow:logging:rflib:instrument",
1480
- "flow:logging:instrument:rflib",
1481
- "rflib:flow:instrument:logging",
1482
- "flow:rflib:instrument:logging",
1483
- "flow:instrument:rflib:logging",
1484
- "flow:instrument:logging:rflib",
1485
- "rflib:logging:instrument:flow",
1486
- "logging:rflib:instrument:flow",
1487
- "logging:instrument:rflib:flow",
1488
- "logging:instrument:flow:rflib",
1489
- "rflib:instrument:logging:flow",
1490
- "instrument:rflib:logging:flow",
1491
- "instrument:logging:rflib:flow",
1492
- "instrument:logging:flow:rflib",
1493
- "rflib:instrument:flow:logging",
1494
- "instrument:rflib:flow:logging",
1495
- "instrument:flow:rflib:logging",
1496
- "instrument:flow:logging:rflib"
1467
+ "rflib:logging:aura:instrument",
1468
+ "logging:rflib:aura:instrument",
1469
+ "logging:aura:rflib:instrument",
1470
+ "logging:aura:instrument:rflib",
1471
+ "rflib:aura:logging:instrument",
1472
+ "aura:rflib:logging:instrument",
1473
+ "aura:logging:rflib:instrument",
1474
+ "aura:logging:instrument:rflib",
1475
+ "rflib:aura:instrument:logging",
1476
+ "aura:rflib:instrument:logging",
1477
+ "aura:instrument:rflib:logging",
1478
+ "aura:instrument:logging:rflib",
1479
+ "rflib:logging:instrument:aura",
1480
+ "logging:rflib:instrument:aura",
1481
+ "logging:instrument:rflib:aura",
1482
+ "logging:instrument:aura:rflib",
1483
+ "rflib:instrument:logging:aura",
1484
+ "instrument:rflib:logging:aura",
1485
+ "instrument:logging:rflib:aura",
1486
+ "instrument:logging:aura:rflib",
1487
+ "rflib:instrument:aura:logging",
1488
+ "instrument:rflib:aura:logging",
1489
+ "instrument:aura:rflib:logging",
1490
+ "instrument:aura:logging:rflib"
1497
1491
  ]
1498
1492
  },
1499
- "rflib:logging:aura:instrument": {
1493
+ "rflib:logging:flow:instrument": {
1500
1494
  "aliases": [],
1501
1495
  "args": {},
1502
- "description": "Analyzes Aura Component files and adds RFLIB logging statements for:\n- Method entry logging with parameter values in Controller, Helper, and Renderer files\n- Error logging in try-catch blocks\n- Error logging in Promise catch handlers\n- Adds rflibLoggerCmp component if not present\n- Replaces console.log and similar method invocations\n- Formats modified files using Prettier (optional)\n\nThe command processes:\n- Component (.cmp) files to add the logger component\n- Controller (.js) files for method instrumentation\n- Helper (.js) files for method instrumentation\n- Renderer (.js) files for method instrumentation",
1496
+ "description": "Automatically adds RFLIB logging statements to Salesforce Flows to provide enhanced tracking and debugging capabilities. Works with both standard Flows and Auto-Launched Flows. Instruments flow invocations and decision paths with logging actions, and logs an error on the fault path of every element that can fail. Existing fault paths continue after the error is logged. Elements without a fault path get one that logs the error and then terminates the transaction, so the Flow still fails as before; this requires the Terminate Transaction option of the RFLIB Log Message action, which was added in RFLIB 11.4.0. The command checks the RFLIB version in the target org, using the installed RFLIB package or, if RFLIB was deployed as source, its RFLIB_Version custom label, and skips the fault paths if the org runs an older version, RFLIB is not found, or the version cannot be determined. Also sets the CanvasMode to AUTO_LAYOUT_CANVAS for better flow visualization while preserving the original processType.",
1503
1497
  "examples": [
1504
- "- Add logging to all aura files:\n$ sf rflib logging aura instrument --sourcepath force-app\n\n- Preview changes:\n$ sf rflib logging aura instrument --sourcepath force-app --dryrun\n\n- Add logging and format code:\n$ sf rflib logging aura instrument --sourcepath force-app --prettier\n\n- Process specific component:\n$ sf rflib logging aura instrument --sourcepath force-app/main/default/aura/myComponent"
1498
+ "<%= config.bin %> <%= command.id %> --target-org myOrg --sourcepath force-app",
1499
+ "<%= config.bin %> <%= command.id %> --target-org myOrg --sourcepath force-app --dryrun",
1500
+ "<%= config.bin %> <%= command.id %> --target-org myOrg --sourcepath force-app --skip-instrumented",
1501
+ "<%= config.bin %> <%= command.id %> --target-org myOrg --sourcepath force-app --skip-fault-paths"
1505
1502
  ],
1506
1503
  "flags": {
1507
1504
  "json": {
@@ -1519,46 +1516,49 @@
1519
1516
  "multiple": false,
1520
1517
  "type": "option"
1521
1518
  },
1519
+ "target-org": {
1520
+ "char": "o",
1521
+ "description": "The Salesforce org the instrumented Flows will be deployed to. The fault paths this command creates use the Terminate Transaction option of the RFLIB Log Message action, which was added in RFLIB 11.4.0, so Flows that use it fail to deploy to an org running an older RFLIB version. Before changing any files, the command runs a read-only Tooling API query for the packages installed in this org. If RFLIB is not installed as a package, for example because it was deployed as source, a second query reads the RFLIB_Version custom label instead. If the org runs RFLIB 11.4.0 or later, fault paths are instrumented; if it runs an older version, RFLIB is not found, or a query fails, they are skipped with a warning. Nothing in the org is changed. The flag is required even with --skip-fault-paths, although the org is not queried in that case.",
1522
+ "name": "target-org",
1523
+ "noCacheDefault": true,
1524
+ "required": true,
1525
+ "summary": "Username or alias of the target org.",
1526
+ "hasDynamicHelp": true,
1527
+ "multiple": false,
1528
+ "type": "option"
1529
+ },
1522
1530
  "sourcepath": {
1523
1531
  "char": "s",
1524
- "description": "Path to the source directory containing Aura components that should be instrumented with RFLIB logging statements. The command will:\n- Scan for 'aura' directories recursively\n- Process all Aura components found\n- Add <c:rflibLoggerCmp> to component files\n- Add logging statements to JavaScript files\n- Initialize logger in methods using component.find()",
1532
+ "description": "Path to the source directory containing Flow files that should be instrumented with RFLIB logging statements. Processes .flow-meta.xml files with processType=\"Flow\" or \"AutoLaunchedFlow\".",
1525
1533
  "name": "sourcepath",
1526
1534
  "required": true,
1527
- "summary": "Directory containing Aura components to instrument with logging.",
1535
+ "summary": "Directory containing Flow files to instrument with logging.",
1528
1536
  "hasDynamicHelp": false,
1529
1537
  "multiple": false,
1530
1538
  "type": "option"
1531
1539
  },
1532
1540
  "dryrun": {
1533
1541
  "char": "d",
1534
- "description": "When enabled, shows which files would be modified without making actual changes. Useful for reviewing the impact before applying changes. Shows:\n- Files that would be modified\n- Number of processed files\n- Number of modified files\n- Number of formatted files",
1542
+ "description": "When enabled, shows which files would be modified without making actual changes. Useful for reviewing the impact before applying changes.",
1535
1543
  "name": "dryrun",
1536
1544
  "summary": "Preview changes without modifying files.",
1537
1545
  "allowNo": false,
1538
1546
  "type": "boolean"
1539
1547
  },
1540
- "prettier": {
1541
- "char": "p",
1542
- "description": "When enabled, formats the modified JavaScript files using Prettier after adding logging statements. Maintains consistent code style with:\n- 120 character line width\n- 4 space indentation\n- Single quotes for strings\n- No tabs\n- No trailing commas",
1543
- "name": "prettier",
1544
- "summary": "Format modified files using Prettier.",
1545
- "allowNo": false,
1546
- "type": "boolean"
1547
- },
1548
- "no-if": {
1549
- "description": "When provided, the command will not add log statements inside of `if` and `else` blocks.",
1550
- "name": "no-if",
1551
- "summary": "Exclude the instrumentation of if-else statements.",
1552
- "allowNo": false,
1553
- "type": "boolean"
1554
- },
1555
1548
  "skip-instrumented": {
1556
- "description": "When provided, the command will not add log statements to any Aura component that contains the `` component.",
1549
+ "description": "When provided, the command will not add log statements to any Flows that already contain RFLIB logging actions.",
1557
1550
  "name": "skip-instrumented",
1558
1551
  "summary": "Skips any files where a logger is already present.",
1559
1552
  "allowNo": false,
1560
1553
  "type": "boolean"
1561
1554
  },
1555
+ "skip-fault-paths": {
1556
+ "description": "When provided, the command will not add error logging to fault paths and will not create fault paths for elements that have none, regardless of the RFLIB version installed in the target org.",
1557
+ "name": "skip-fault-paths",
1558
+ "summary": "Skips logging errors on fault paths.",
1559
+ "allowNo": false,
1560
+ "type": "boolean"
1561
+ },
1562
1562
  "verbose": {
1563
1563
  "char": "v",
1564
1564
  "description": "When provided with --dryrun, prints the paths of the files that would be modified.",
@@ -1569,7 +1569,7 @@
1569
1569
  },
1570
1570
  "exclude": {
1571
1571
  "char": "e",
1572
- "description": "Exclude specific files or directories that match the provided glob pattern. For example, use --exclude \"**/Generated_*.cmp\" to skip auto-generated components.",
1572
+ "description": "Exclude specific files or directories that match the provided glob pattern. For example, use --exclude \"**/Test_*.flow-meta.xml\" to skip certain flows.",
1573
1573
  "name": "exclude",
1574
1574
  "summary": "Exclude files or directories from instrumentation based on a glob pattern.",
1575
1575
  "hasDynamicHelp": false,
@@ -1587,14 +1587,14 @@
1587
1587
  "type": "option"
1588
1588
  }
1589
1589
  },
1590
- "hasDynamicHelp": false,
1590
+ "hasDynamicHelp": true,
1591
1591
  "hiddenAliases": [],
1592
- "id": "rflib:logging:aura:instrument",
1592
+ "id": "rflib:logging:flow:instrument",
1593
1593
  "pluginAlias": "rflib-plugin",
1594
1594
  "pluginName": "rflib-plugin",
1595
1595
  "pluginType": "core",
1596
1596
  "strict": true,
1597
- "summary": "Instrument Aura Components with RFLIB logging statements automatically.",
1597
+ "summary": "Adds RFLIB logging statements to Salesforce Flows.",
1598
1598
  "enableJsonFlag": true,
1599
1599
  "isESM": true,
1600
1600
  "relativePath": [
@@ -1602,35 +1602,35 @@
1602
1602
  "commands",
1603
1603
  "rflib",
1604
1604
  "logging",
1605
- "aura",
1605
+ "flow",
1606
1606
  "instrument.js"
1607
1607
  ],
1608
1608
  "aliasPermutations": [],
1609
1609
  "permutations": [
1610
- "rflib:logging:aura:instrument",
1611
- "logging:rflib:aura:instrument",
1612
- "logging:aura:rflib:instrument",
1613
- "logging:aura:instrument:rflib",
1614
- "rflib:aura:logging:instrument",
1615
- "aura:rflib:logging:instrument",
1616
- "aura:logging:rflib:instrument",
1617
- "aura:logging:instrument:rflib",
1618
- "rflib:aura:instrument:logging",
1619
- "aura:rflib:instrument:logging",
1620
- "aura:instrument:rflib:logging",
1621
- "aura:instrument:logging:rflib",
1622
- "rflib:logging:instrument:aura",
1623
- "logging:rflib:instrument:aura",
1624
- "logging:instrument:rflib:aura",
1625
- "logging:instrument:aura:rflib",
1626
- "rflib:instrument:logging:aura",
1627
- "instrument:rflib:logging:aura",
1628
- "instrument:logging:rflib:aura",
1629
- "instrument:logging:aura:rflib",
1630
- "rflib:instrument:aura:logging",
1631
- "instrument:rflib:aura:logging",
1632
- "instrument:aura:rflib:logging",
1633
- "instrument:aura:logging:rflib"
1610
+ "rflib:logging:flow:instrument",
1611
+ "logging:rflib:flow:instrument",
1612
+ "logging:flow:rflib:instrument",
1613
+ "logging:flow:instrument:rflib",
1614
+ "rflib:flow:logging:instrument",
1615
+ "flow:rflib:logging:instrument",
1616
+ "flow:logging:rflib:instrument",
1617
+ "flow:logging:instrument:rflib",
1618
+ "rflib:flow:instrument:logging",
1619
+ "flow:rflib:instrument:logging",
1620
+ "flow:instrument:rflib:logging",
1621
+ "flow:instrument:logging:rflib",
1622
+ "rflib:logging:instrument:flow",
1623
+ "logging:rflib:instrument:flow",
1624
+ "logging:instrument:rflib:flow",
1625
+ "logging:instrument:flow:rflib",
1626
+ "rflib:instrument:logging:flow",
1627
+ "instrument:rflib:logging:flow",
1628
+ "instrument:logging:rflib:flow",
1629
+ "instrument:logging:flow:rflib",
1630
+ "rflib:instrument:flow:logging",
1631
+ "instrument:rflib:flow:logging",
1632
+ "instrument:flow:rflib:logging",
1633
+ "instrument:flow:logging:rflib"
1634
1634
  ]
1635
1635
  },
1636
1636
  "rflib:logging:lwc:instrument": {
@@ -1771,5 +1771,5 @@
1771
1771
  ]
1772
1772
  }
1773
1773
  },
1774
- "version": "0.23.0"
1774
+ "version": "0.23.1"
1775
1775
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "rflib-plugin",
3
3
  "description": "Utility commands to help with the adoption of the RFLIB open-source library for Salesforce.",
4
- "version": "0.23.0",
4
+ "version": "0.23.1",
5
5
  "dependencies": {
6
6
  "@oclif/core": "^4.14.0",
7
7
  "@salesforce/core": "^8.32.6",
@@ -18,7 +18,7 @@
18
18
  "@eslint/js": "^10.0.0",
19
19
  "@istanbuljs/nyc-config-typescript": "^1.0.2",
20
20
  "@oclif/plugin-command-snapshot": "^5.4.0",
21
- "@salesforce/cli-plugins-testkit": "^5.3.66",
21
+ "@salesforce/cli-plugins-testkit": "^5.3.81",
22
22
  "@salesforce/dev-scripts": "^15.0.0",
23
23
  "@types/minimatch": "^5.1.2",
24
24
  "c8": "^10.1.3",