rflib-plugin 0.20.0 → 0.21.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.
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "commands": {
3
- "rflib:debug:applicationevents:get": {
3
+ "rflib:packages:upgrade": {
4
4
  "aliases": [],
5
5
  "args": {},
6
- "description": "Retrieves rflib_Application_Event__c records from the target org via the Salesforce REST API.\nApplication Events are business-level events used to track feature adoption, user actions, and domain-specific milestones.\nResults are ordered by Occurred_On__c descending (most recent first).\n\nRequires the RFLIB base package to be installed in the target org and the running user to be assigned the rflib_Ops_Center_Access permission set (or have equivalent read access to rflib_Application_Event__c).\nFor installation instructions, visit: https://github.com/j-fischer/rflib",
6
+ "description": "Compares the RFLIB packages (RFLIB, RFLIB-FS, RFLIB-TF, RFLIB-PHAROS) installed in the target org with the latest package versions published in the RFLIB GitHub repository (https://github.com/j-fischer/rflib).\n\nFor every installed package with a newer version available, the command asks whether to install the upgrade and, if confirmed, starts the installation in the target org. Upgrades are installed one at a time in dependency order (RFLIB first), and the remaining upgrades are skipped if an installation does not complete successfully.\n\nPackages that are not installed in the target org are only reported; this command never installs a package that isn't already present.\n\nUse --dryrun to only report the available upgrades, or --no-prompt to install all available upgrades without asking for confirmation. When --json is specified without --no-prompt, no upgrades are installed.",
7
7
  "examples": [
8
- "Get all application events from the default org:\n$ sf rflib debug applicationevents get --target-org myOrg",
9
- "Get events filtered by name and date range:\n$ sf rflib debug applicationevents get --target-org myOrg --event-name \"order-%\" --start-date 2024-01-01T00:00:00Z",
10
- "Get events related to a specific record with a custom limit:\n$ sf rflib debug applicationevents get --target-org myOrg --related-record-id 0017000000XXXXXX --record-limit 50"
8
+ "Check the RFLIB packages installed in an org and choose which upgrades to install:\n$ sf rflib packages upgrade --target-org myOrg",
9
+ "Report the available upgrades without installing anything:\n$ sf rflib packages upgrade --target-org myOrg --dryrun",
10
+ "Install all available upgrades without prompting, waiting up to 60 minutes for each installation:\n$ sf rflib packages upgrade --target-org myOrg --no-prompt --wait 60"
11
11
  ],
12
12
  "flags": {
13
13
  "json": {
@@ -27,7 +27,7 @@
27
27
  },
28
28
  "target-org": {
29
29
  "char": "o",
30
- "description": "The username or alias of the Salesforce org containing the RFLIB base package.",
30
+ "description": "The username or alias of the Salesforce org whose installed RFLIB packages should be checked and upgraded.",
31
31
  "name": "target-org",
32
32
  "noCacheDefault": true,
33
33
  "required": true,
@@ -36,47 +36,31 @@
36
36
  "multiple": false,
37
37
  "type": "option"
38
38
  },
39
- "event-name": {
40
- "char": "e",
41
- "description": "Filter Application Events by their Event_Name__c field. Use the % character as a wildcard for partial matches, for example \"order-%\".",
42
- "name": "event-name",
43
- "summary": "Filter by event name. Use % as a wildcard.",
44
- "hasDynamicHelp": false,
45
- "multiple": false,
46
- "type": "option"
47
- },
48
- "start-date": {
49
- "char": "s",
50
- "description": "Only return events where Occurred_On__c is on or after this date. Must be in ISO 8601 format, e.g. 2024-01-01T00:00:00Z.",
51
- "name": "start-date",
52
- "summary": "Filter events on or after this ISO 8601 date.",
53
- "hasDynamicHelp": false,
54
- "multiple": false,
55
- "type": "option"
56
- },
57
- "end-date": {
39
+ "dryrun": {
58
40
  "char": "d",
59
- "description": "Only return events where Occurred_On__c is on or before this date. Must be in ISO 8601 format, e.g. 2024-12-31T23:59:59Z.",
60
- "name": "end-date",
61
- "summary": "Filter events on or before this ISO 8601 date.",
62
- "hasDynamicHelp": false,
63
- "multiple": false,
64
- "type": "option"
41
+ "description": "Compare the installed packages with the latest versions and print the results, without prompting or installing any upgrades.",
42
+ "exclusive": [
43
+ "no-prompt"
44
+ ],
45
+ "name": "dryrun",
46
+ "summary": "Report the available upgrades without installing them.",
47
+ "allowNo": false,
48
+ "type": "boolean"
65
49
  },
66
- "related-record-id": {
50
+ "no-prompt": {
67
51
  "char": "r",
68
- "description": "Only return events associated with this specific record ID.",
69
- "name": "related-record-id",
70
- "summary": "Filter by Related_Record_ID__c (exact match).",
71
- "hasDynamicHelp": false,
72
- "multiple": false,
73
- "type": "option"
52
+ "description": "Skip the confirmation prompt for each upgrade and install every available upgrade. Use this flag in scripts and CI jobs, or together with --json.",
53
+ "name": "no-prompt",
54
+ "summary": "Install all available upgrades without asking for confirmation.",
55
+ "allowNo": false,
56
+ "type": "boolean"
74
57
  },
75
- "record-limit": {
76
- "char": "l",
77
- "description": "Controls how many Application Event records are returned. Defaults to 200. Maximum allowed value is 2000.",
78
- "name": "record-limit",
79
- "summary": "Maximum number of records to return (default 200, max 2000).",
58
+ "wait": {
59
+ "char": "w",
60
+ "description": "The number of minutes to wait for each package installation to complete before moving on. If the wait time elapses, the installation continues in the org and the remaining upgrades are skipped. Use \"sf package install report\" with the reported request ID to check its progress. Specify 0 to submit the first installation request without waiting.",
61
+ "name": "wait",
62
+ "summary": "Number of minutes to wait for each package installation to complete.",
63
+ "default": 30,
80
64
  "hasDynamicHelp": false,
81
65
  "multiple": false,
82
66
  "type": "option"
@@ -84,48 +68,29 @@
84
68
  },
85
69
  "hasDynamicHelp": true,
86
70
  "hiddenAliases": [],
87
- "id": "rflib:debug:applicationevents:get",
71
+ "id": "rflib:packages:upgrade",
88
72
  "pluginAlias": "rflib-plugin",
89
73
  "pluginName": "rflib-plugin",
90
74
  "pluginType": "core",
91
75
  "strict": true,
92
- "summary": "Query RFLIB Application Events from a Salesforce org.",
76
+ "summary": "Check the RFLIB packages installed in a Salesforce org and upgrade them to the latest released versions.",
93
77
  "enableJsonFlag": true,
94
78
  "isESM": true,
95
79
  "relativePath": [
96
80
  "lib",
97
81
  "commands",
98
82
  "rflib",
99
- "debug",
100
- "applicationevents",
101
- "get.js"
83
+ "packages",
84
+ "upgrade.js"
102
85
  ],
103
86
  "aliasPermutations": [],
104
87
  "permutations": [
105
- "rflib:debug:applicationevents:get",
106
- "debug:rflib:applicationevents:get",
107
- "debug:applicationevents:rflib:get",
108
- "debug:applicationevents:get:rflib",
109
- "rflib:applicationevents:debug:get",
110
- "applicationevents:rflib:debug:get",
111
- "applicationevents:debug:rflib:get",
112
- "applicationevents:debug:get:rflib",
113
- "rflib:applicationevents:get:debug",
114
- "applicationevents:rflib:get:debug",
115
- "applicationevents:get:rflib:debug",
116
- "applicationevents:get:debug:rflib",
117
- "rflib:debug:get:applicationevents",
118
- "debug:rflib:get:applicationevents",
119
- "debug:get:rflib:applicationevents",
120
- "debug:get:applicationevents:rflib",
121
- "rflib:get:debug:applicationevents",
122
- "get:rflib:debug:applicationevents",
123
- "get:debug:rflib:applicationevents",
124
- "get:debug:applicationevents:rflib",
125
- "rflib:get:applicationevents:debug",
126
- "get:rflib:applicationevents:debug",
127
- "get:applicationevents:rflib:debug",
128
- "get:applicationevents:debug:rflib"
88
+ "rflib:packages:upgrade",
89
+ "packages:rflib:upgrade",
90
+ "packages:upgrade:rflib",
91
+ "rflib:upgrade:packages",
92
+ "upgrade:rflib:packages",
93
+ "upgrade:packages:rflib"
129
94
  ]
130
95
  },
131
96
  "rflib:debug:logarchives:get": {
@@ -429,99 +394,6 @@
429
394
  "update:loggersettings:debug:rflib"
430
395
  ]
431
396
  },
432
- "rflib:packages:upgrade": {
433
- "aliases": [],
434
- "args": {},
435
- "description": "Compares the RFLIB packages (RFLIB, RFLIB-FS, RFLIB-TF, RFLIB-PHAROS) installed in the target org with the latest package versions published in the RFLIB GitHub repository (https://github.com/j-fischer/rflib).\n\nFor every installed package with a newer version available, the command asks whether to install the upgrade and, if confirmed, starts the installation in the target org. Upgrades are installed one at a time in dependency order (RFLIB first), and the remaining upgrades are skipped if an installation does not complete successfully.\n\nPackages that are not installed in the target org are only reported; this command never installs a package that isn't already present.\n\nUse --dryrun to only report the available upgrades, or --no-prompt to install all available upgrades without asking for confirmation. When --json is specified without --no-prompt, no upgrades are installed.",
436
- "examples": [
437
- "Check the RFLIB packages installed in an org and choose which upgrades to install:\n$ sf rflib packages upgrade --target-org myOrg",
438
- "Report the available upgrades without installing anything:\n$ sf rflib packages upgrade --target-org myOrg --dryrun",
439
- "Install all available upgrades without prompting, waiting up to 60 minutes for each installation:\n$ sf rflib packages upgrade --target-org myOrg --no-prompt --wait 60"
440
- ],
441
- "flags": {
442
- "json": {
443
- "description": "Format output as json.",
444
- "helpGroup": "GLOBAL",
445
- "name": "json",
446
- "allowNo": false,
447
- "type": "boolean"
448
- },
449
- "flags-dir": {
450
- "helpGroup": "GLOBAL",
451
- "name": "flags-dir",
452
- "summary": "Import flag values from a directory.",
453
- "hasDynamicHelp": false,
454
- "multiple": false,
455
- "type": "option"
456
- },
457
- "target-org": {
458
- "char": "o",
459
- "description": "The username or alias of the Salesforce org whose installed RFLIB packages should be checked and upgraded.",
460
- "name": "target-org",
461
- "noCacheDefault": true,
462
- "required": true,
463
- "summary": "Username or alias of the target org.",
464
- "hasDynamicHelp": true,
465
- "multiple": false,
466
- "type": "option"
467
- },
468
- "dryrun": {
469
- "char": "d",
470
- "description": "Compare the installed packages with the latest versions and print the results, without prompting or installing any upgrades.",
471
- "exclusive": [
472
- "no-prompt"
473
- ],
474
- "name": "dryrun",
475
- "summary": "Report the available upgrades without installing them.",
476
- "allowNo": false,
477
- "type": "boolean"
478
- },
479
- "no-prompt": {
480
- "char": "r",
481
- "description": "Skip the confirmation prompt for each upgrade and install every available upgrade. Use this flag in scripts and CI jobs, or together with --json.",
482
- "name": "no-prompt",
483
- "summary": "Install all available upgrades without asking for confirmation.",
484
- "allowNo": false,
485
- "type": "boolean"
486
- },
487
- "wait": {
488
- "char": "w",
489
- "description": "The number of minutes to wait for each package installation to complete before moving on. If the wait time elapses, the installation continues in the org and the remaining upgrades are skipped. Use \"sf package install report\" with the reported request ID to check its progress. Specify 0 to submit the first installation request without waiting.",
490
- "name": "wait",
491
- "summary": "Number of minutes to wait for each package installation to complete.",
492
- "default": 30,
493
- "hasDynamicHelp": false,
494
- "multiple": false,
495
- "type": "option"
496
- }
497
- },
498
- "hasDynamicHelp": true,
499
- "hiddenAliases": [],
500
- "id": "rflib:packages:upgrade",
501
- "pluginAlias": "rflib-plugin",
502
- "pluginName": "rflib-plugin",
503
- "pluginType": "core",
504
- "strict": true,
505
- "summary": "Check the RFLIB packages installed in a Salesforce org and upgrade them to the latest released versions.",
506
- "enableJsonFlag": true,
507
- "isESM": true,
508
- "relativePath": [
509
- "lib",
510
- "commands",
511
- "rflib",
512
- "packages",
513
- "upgrade.js"
514
- ],
515
- "aliasPermutations": [],
516
- "permutations": [
517
- "rflib:packages:upgrade",
518
- "packages:rflib:upgrade",
519
- "packages:upgrade:rflib",
520
- "rflib:upgrade:packages",
521
- "upgrade:rflib:packages",
522
- "upgrade:packages:rflib"
523
- ]
524
- },
525
397
  "rflib:debug:userpermissions:get": {
526
398
  "aliases": [],
527
399
  "args": {},
@@ -640,6 +512,134 @@
640
512
  "get:userpermissions:debug:rflib"
641
513
  ]
642
514
  },
515
+ "rflib:debug:applicationevents:get": {
516
+ "aliases": [],
517
+ "args": {},
518
+ "description": "Retrieves rflib_Application_Event__c records from the target org via the Salesforce REST API.\nApplication Events are business-level events used to track feature adoption, user actions, and domain-specific milestones.\nResults are ordered by Occurred_On__c descending (most recent first).\n\nRequires the RFLIB base package to be installed in the target org and the running user to be assigned the rflib_Ops_Center_Access permission set (or have equivalent read access to rflib_Application_Event__c).\nFor installation instructions, visit: https://github.com/j-fischer/rflib",
519
+ "examples": [
520
+ "Get all application events from the default org:\n$ sf rflib debug applicationevents get --target-org myOrg",
521
+ "Get events filtered by name and date range:\n$ sf rflib debug applicationevents get --target-org myOrg --event-name \"order-%\" --start-date 2024-01-01T00:00:00Z",
522
+ "Get events related to a specific record with a custom limit:\n$ sf rflib debug applicationevents get --target-org myOrg --related-record-id 0017000000XXXXXX --record-limit 50"
523
+ ],
524
+ "flags": {
525
+ "json": {
526
+ "description": "Format output as json.",
527
+ "helpGroup": "GLOBAL",
528
+ "name": "json",
529
+ "allowNo": false,
530
+ "type": "boolean"
531
+ },
532
+ "flags-dir": {
533
+ "helpGroup": "GLOBAL",
534
+ "name": "flags-dir",
535
+ "summary": "Import flag values from a directory.",
536
+ "hasDynamicHelp": false,
537
+ "multiple": false,
538
+ "type": "option"
539
+ },
540
+ "target-org": {
541
+ "char": "o",
542
+ "description": "The username or alias of the Salesforce org containing the RFLIB base package.",
543
+ "name": "target-org",
544
+ "noCacheDefault": true,
545
+ "required": true,
546
+ "summary": "Username or alias of the target org.",
547
+ "hasDynamicHelp": true,
548
+ "multiple": false,
549
+ "type": "option"
550
+ },
551
+ "event-name": {
552
+ "char": "e",
553
+ "description": "Filter Application Events by their Event_Name__c field. Use the % character as a wildcard for partial matches, for example \"order-%\".",
554
+ "name": "event-name",
555
+ "summary": "Filter by event name. Use % as a wildcard.",
556
+ "hasDynamicHelp": false,
557
+ "multiple": false,
558
+ "type": "option"
559
+ },
560
+ "start-date": {
561
+ "char": "s",
562
+ "description": "Only return events where Occurred_On__c is on or after this date. Must be in ISO 8601 format, e.g. 2024-01-01T00:00:00Z.",
563
+ "name": "start-date",
564
+ "summary": "Filter events on or after this ISO 8601 date.",
565
+ "hasDynamicHelp": false,
566
+ "multiple": false,
567
+ "type": "option"
568
+ },
569
+ "end-date": {
570
+ "char": "d",
571
+ "description": "Only return events where Occurred_On__c is on or before this date. Must be in ISO 8601 format, e.g. 2024-12-31T23:59:59Z.",
572
+ "name": "end-date",
573
+ "summary": "Filter events on or before this ISO 8601 date.",
574
+ "hasDynamicHelp": false,
575
+ "multiple": false,
576
+ "type": "option"
577
+ },
578
+ "related-record-id": {
579
+ "char": "r",
580
+ "description": "Only return events associated with this specific record ID.",
581
+ "name": "related-record-id",
582
+ "summary": "Filter by Related_Record_ID__c (exact match).",
583
+ "hasDynamicHelp": false,
584
+ "multiple": false,
585
+ "type": "option"
586
+ },
587
+ "record-limit": {
588
+ "char": "l",
589
+ "description": "Controls how many Application Event records are returned. Defaults to 200. Maximum allowed value is 2000.",
590
+ "name": "record-limit",
591
+ "summary": "Maximum number of records to return (default 200, max 2000).",
592
+ "hasDynamicHelp": false,
593
+ "multiple": false,
594
+ "type": "option"
595
+ }
596
+ },
597
+ "hasDynamicHelp": true,
598
+ "hiddenAliases": [],
599
+ "id": "rflib:debug:applicationevents:get",
600
+ "pluginAlias": "rflib-plugin",
601
+ "pluginName": "rflib-plugin",
602
+ "pluginType": "core",
603
+ "strict": true,
604
+ "summary": "Query RFLIB Application Events from a Salesforce org.",
605
+ "enableJsonFlag": true,
606
+ "isESM": true,
607
+ "relativePath": [
608
+ "lib",
609
+ "commands",
610
+ "rflib",
611
+ "debug",
612
+ "applicationevents",
613
+ "get.js"
614
+ ],
615
+ "aliasPermutations": [],
616
+ "permutations": [
617
+ "rflib:debug:applicationevents:get",
618
+ "debug:rflib:applicationevents:get",
619
+ "debug:applicationevents:rflib:get",
620
+ "debug:applicationevents:get:rflib",
621
+ "rflib:applicationevents:debug:get",
622
+ "applicationevents:rflib:debug:get",
623
+ "applicationevents:debug:rflib:get",
624
+ "applicationevents:debug:get:rflib",
625
+ "rflib:applicationevents:get:debug",
626
+ "applicationevents:rflib:get:debug",
627
+ "applicationevents:get:rflib:debug",
628
+ "applicationevents:get:debug:rflib",
629
+ "rflib:debug:get:applicationevents",
630
+ "debug:rflib:get:applicationevents",
631
+ "debug:get:rflib:applicationevents",
632
+ "debug:get:applicationevents:rflib",
633
+ "rflib:get:debug:applicationevents",
634
+ "get:rflib:debug:applicationevents",
635
+ "get:debug:rflib:applicationevents",
636
+ "get:debug:applicationevents:rflib",
637
+ "rflib:get:applicationevents:debug",
638
+ "get:rflib:applicationevents:debug",
639
+ "get:applicationevents:rflib:debug",
640
+ "get:applicationevents:debug:rflib"
641
+ ]
642
+ },
643
643
  "rflib:logging:apex:instrument": {
644
644
  "aliases": [],
645
645
  "args": {},
@@ -924,11 +924,12 @@
924
924
  "rflib:logging:flow:instrument": {
925
925
  "aliases": [],
926
926
  "args": {},
927
- "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. Also sets the CanvasMode to AUTO_LAYOUT_CANVAS for better flow visualization while preserving the original processType.",
927
+ "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 installed in the target org and skips the fault paths if the org runs an older version or RFLIB is not installed as a package. Also sets the CanvasMode to AUTO_LAYOUT_CANVAS for better flow visualization while preserving the original processType.",
928
928
  "examples": [
929
- "<%= config.bin %> <%= command.id %> --sourcepath force-app",
930
- "<%= config.bin %> <%= command.id %> --sourcepath force-app --dryrun",
931
- "<%= config.bin %> <%= command.id %> --sourcepath force-app --skip-instrumented"
929
+ "<%= config.bin %> <%= command.id %> --target-org myOrg --sourcepath force-app",
930
+ "<%= config.bin %> <%= command.id %> --target-org myOrg --sourcepath force-app --dryrun",
931
+ "<%= config.bin %> <%= command.id %> --target-org myOrg --sourcepath force-app --skip-instrumented",
932
+ "<%= config.bin %> <%= command.id %> --target-org myOrg --sourcepath force-app --skip-fault-paths"
932
933
  ],
933
934
  "flags": {
934
935
  "json": {
@@ -946,6 +947,17 @@
946
947
  "multiple": false,
947
948
  "type": "option"
948
949
  },
950
+ "target-org": {
951
+ "char": "o",
952
+ "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 single read-only Tooling API query for the packages installed in this org. If RFLIB 11.4.0 or later is installed, fault paths are instrumented; if an older version is installed, or RFLIB is not installed as a package, 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.",
953
+ "name": "target-org",
954
+ "noCacheDefault": true,
955
+ "required": true,
956
+ "summary": "Username or alias of the target org.",
957
+ "hasDynamicHelp": true,
958
+ "multiple": false,
959
+ "type": "option"
960
+ },
949
961
  "sourcepath": {
950
962
  "char": "s",
951
963
  "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\".",
@@ -971,6 +983,13 @@
971
983
  "allowNo": false,
972
984
  "type": "boolean"
973
985
  },
986
+ "skip-fault-paths": {
987
+ "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.",
988
+ "name": "skip-fault-paths",
989
+ "summary": "Skips logging errors on fault paths.",
990
+ "allowNo": false,
991
+ "type": "boolean"
992
+ },
974
993
  "verbose": {
975
994
  "char": "v",
976
995
  "description": "When provided with --dryrun, prints the paths of the files that would be modified.",
@@ -999,7 +1018,7 @@
999
1018
  "type": "option"
1000
1019
  }
1001
1020
  },
1002
- "hasDynamicHelp": false,
1021
+ "hasDynamicHelp": true,
1003
1022
  "hiddenAliases": [],
1004
1023
  "id": "rflib:logging:flow:instrument",
1005
1024
  "pluginAlias": "rflib-plugin",
@@ -1183,5 +1202,5 @@
1183
1202
  ]
1184
1203
  }
1185
1204
  },
1186
- "version": "0.20.0"
1205
+ "version": "0.21.1"
1187
1206
  }
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.20.0",
4
+ "version": "0.21.1",
5
5
  "dependencies": {
6
6
  "@oclif/core": "^4.14.0",
7
7
  "@salesforce/core": "^8.32.6",