rflib-plugin 0.22.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 (37) hide show
  1. package/README.md +104 -0
  2. package/lib/commands/rflib/debug/recordaccess/get.d.ts +14 -0
  3. package/lib/commands/rflib/debug/recordaccess/get.js +58 -0
  4. package/lib/commands/rflib/debug/recordaccess/get.js.map +1 -0
  5. package/lib/commands/rflib/debug/userpermissions/compare.d.ts +17 -0
  6. package/lib/commands/rflib/debug/userpermissions/compare.js +115 -0
  7. package/lib/commands/rflib/debug/userpermissions/compare.js.map +1 -0
  8. package/lib/commands/rflib/debug/userpermissions/get.d.ts +1 -0
  9. package/lib/commands/rflib/debug/userpermissions/get.js +19 -6
  10. package/lib/commands/rflib/debug/userpermissions/get.js.map +1 -1
  11. package/lib/commands/rflib/debug/userpermissions/whohas.d.ts +22 -0
  12. package/lib/commands/rflib/debug/userpermissions/whohas.js +138 -0
  13. package/lib/commands/rflib/debug/userpermissions/whohas.js.map +1 -0
  14. package/lib/shared/orgClient.d.ts +6 -0
  15. package/lib/shared/orgClient.js +3 -0
  16. package/lib/shared/orgClient.js.map +1 -1
  17. package/lib/shared/permissionAggregator.d.ts +6 -0
  18. package/lib/shared/permissionAggregator.js +18 -1
  19. package/lib/shared/permissionAggregator.js.map +1 -1
  20. package/lib/shared/permissionCheck.d.ts +130 -12
  21. package/lib/shared/permissionCheck.js +60 -38
  22. package/lib/shared/permissionCheck.js.map +1 -1
  23. package/lib/shared/permissionEffective.d.ts +72 -0
  24. package/lib/shared/permissionEffective.js +218 -0
  25. package/lib/shared/permissionEffective.js.map +1 -0
  26. package/lib/shared/permissionWhoHas.d.ts +40 -0
  27. package/lib/shared/permissionWhoHas.js +232 -0
  28. package/lib/shared/permissionWhoHas.js.map +1 -0
  29. package/lib/shared/recordAccess.d.ts +41 -0
  30. package/lib/shared/recordAccess.js +117 -0
  31. package/lib/shared/recordAccess.js.map +1 -0
  32. package/messages/rflib.debug.recordaccess.get.md +59 -0
  33. package/messages/rflib.debug.userpermissions.compare.md +115 -0
  34. package/messages/rflib.debug.userpermissions.get.md +14 -0
  35. package/messages/rflib.debug.userpermissions.whohas.md +132 -0
  36. package/oclif.manifest.json +1076 -670
  37. package/package.json +5 -2
@@ -93,12 +93,14 @@
93
93
  "upgrade:packages:rflib"
94
94
  ]
95
95
  },
96
- "rflib:logging:apex:instrument": {
96
+ "rflib:debug:applicationevents:get": {
97
97
  "aliases": [],
98
98
  "args": {},
99
- "description": "Analyzes Apex classes and adds RFLIB logging statements for method entry and error handling. Adds class-level logger initialization if not already present. \nFor Apex Test classes, the `@TestSetup` method will be updated to include `rflib_TestUtil.prepareLoggerForUnitTests();` to avoid test failures caused by the logging framework.",
99
+ "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",
100
100
  "examples": [
101
- "- Add logging statements to all Apex classes in a directory:\n\n$ sf rflib logging apex instrument --sourcepath force-app/main/default/classes\n\n- Preview changes without modifying files:\n\n$ sf rflib logging apex instrument --sourcepath force-app/main/default/classes --dryrun\n\n- Add logging statements and format code:\n\n$ sf rflib logging apex instrument --sourcepath force-app/main/default/classes --prettier"
101
+ "Get all application events from the default org:\n$ sf rflib debug applicationevents get --target-org myOrg",
102
+ "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",
103
+ "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"
102
104
  ],
103
105
  "flags": {
104
106
  "json": {
@@ -116,133 +118,116 @@
116
118
  "multiple": false,
117
119
  "type": "option"
118
120
  },
119
- "sourcepath": {
120
- "char": "s",
121
- "description": "Path to the source directory containing Apex classes that should be instrumented with RFLIB logging statements. Test classes (ending with 'Test.cls') are automatically excluded.",
122
- "name": "sourcepath",
121
+ "target-org": {
122
+ "char": "o",
123
+ "description": "The username or alias of the Salesforce org containing the RFLIB base package.",
124
+ "name": "target-org",
125
+ "noCacheDefault": true,
123
126
  "required": true,
124
- "summary": "Directory containing Apex classes to instrument with logging.",
125
- "hasDynamicHelp": false,
127
+ "summary": "Username or alias of the target org.",
128
+ "hasDynamicHelp": true,
126
129
  "multiple": false,
127
130
  "type": "option"
128
131
  },
129
- "dryrun": {
130
- "char": "d",
131
- "description": "When enabled, shows which files would be modified without making actual changes. Useful for reviewing the impact before applying changes.",
132
- "name": "dryrun",
133
- "summary": "Preview changes without modifying files.",
134
- "allowNo": false,
135
- "type": "boolean"
136
- },
137
- "prettier": {
138
- "char": "p",
139
- "description": "When enabled, formats the modified Apex files using prettier-plugin-apex after adding logging statements. Maintains consistent code style with:\n\n- 120 character line width\n- 4 space indentation\n- Single quotes for strings\n- No tabs",
140
- "name": "prettier",
141
- "summary": "Format modified files using Prettier.",
142
- "allowNo": false,
143
- "type": "boolean"
144
- },
145
- "no-if": {
146
- "description": "When provided, the command will not add log statements inside of `if` and `else` blocks.",
147
- "name": "no-if",
148
- "summary": "Exclude the instrumentation of if-else statements.",
149
- "allowNo": false,
150
- "type": "boolean"
151
- },
152
- "no-catch": {
153
- "description": "When provided, the command will not add error log statements inside of `catch` blocks.",
154
- "name": "no-catch",
155
- "summary": "Exclude the instrumentation of catch blocks.",
156
- "allowNo": false,
157
- "type": "boolean"
132
+ "event-name": {
133
+ "char": "e",
134
+ "description": "Filter Application Events by their Event_Name__c field. Use the % character as a wildcard for partial matches, for example \"order-%\".",
135
+ "name": "event-name",
136
+ "summary": "Filter by event name. Use % as a wildcard.",
137
+ "hasDynamicHelp": false,
138
+ "multiple": false,
139
+ "type": "option"
158
140
  },
159
- "skip-instrumented": {
160
- "description": "When provided, the command will not add log statements to any Apex class that contains the `rflib_Logger` reference.",
161
- "name": "skip-instrumented",
162
- "summary": "Skips any files where a logger is already present.",
163
- "allowNo": false,
164
- "type": "boolean"
141
+ "start-date": {
142
+ "char": "s",
143
+ "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.",
144
+ "name": "start-date",
145
+ "summary": "Filter events on or after this ISO 8601 date.",
146
+ "hasDynamicHelp": false,
147
+ "multiple": false,
148
+ "type": "option"
165
149
  },
166
- "verbose": {
167
- "char": "v",
168
- "description": "When provided with --dryrun, prints the paths of the files that would be modified.",
169
- "name": "verbose",
170
- "summary": "Enable verbose output.",
171
- "allowNo": false,
172
- "type": "boolean"
150
+ "end-date": {
151
+ "char": "d",
152
+ "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.",
153
+ "name": "end-date",
154
+ "summary": "Filter events on or before this ISO 8601 date.",
155
+ "hasDynamicHelp": false,
156
+ "multiple": false,
157
+ "type": "option"
173
158
  },
174
- "exclude": {
175
- "char": "e",
176
- "description": "Exclude specific files or directories that match the provided glob pattern. For example, use --exclude \"**/Generated_*.cls\" to skip auto-generated classes.",
177
- "name": "exclude",
178
- "summary": "Exclude files or directories from instrumentation based on a glob pattern.",
159
+ "related-record-id": {
160
+ "char": "r",
161
+ "description": "Only return events associated with this specific record ID.",
162
+ "name": "related-record-id",
163
+ "summary": "Filter by Related_Record_ID__c (exact match).",
179
164
  "hasDynamicHelp": false,
180
165
  "multiple": false,
181
166
  "type": "option"
182
167
  },
183
- "concurrency": {
184
- "char": "c",
185
- "description": "Controls the maximum number of files to process at the same time. This is useful in very large codebases to prevent excessive memory usage or file descriptor exhaustion. Defaults to 10.",
186
- "name": "concurrency",
187
- "summary": "Limits the number of files processed concurrently.",
188
- "default": 10,
168
+ "record-limit": {
169
+ "char": "l",
170
+ "description": "Controls how many Application Event records are returned. Defaults to 200. Maximum allowed value is 2000.",
171
+ "name": "record-limit",
172
+ "summary": "Maximum number of records to return (default 200, max 2000).",
189
173
  "hasDynamicHelp": false,
190
174
  "multiple": false,
191
175
  "type": "option"
192
176
  }
193
177
  },
194
- "hasDynamicHelp": false,
178
+ "hasDynamicHelp": true,
195
179
  "hiddenAliases": [],
196
- "id": "rflib:logging:apex:instrument",
180
+ "id": "rflib:debug:applicationevents:get",
197
181
  "pluginAlias": "rflib-plugin",
198
182
  "pluginName": "rflib-plugin",
199
183
  "pluginType": "core",
200
184
  "strict": true,
201
- "summary": "Instrument Apex classes with RFLIB logging statements automatically.",
185
+ "summary": "Query RFLIB Application Events from a Salesforce org.",
202
186
  "enableJsonFlag": true,
203
187
  "isESM": true,
204
188
  "relativePath": [
205
189
  "lib",
206
190
  "commands",
207
191
  "rflib",
208
- "logging",
209
- "apex",
210
- "instrument.js"
192
+ "debug",
193
+ "applicationevents",
194
+ "get.js"
211
195
  ],
212
196
  "aliasPermutations": [],
213
197
  "permutations": [
214
- "rflib:logging:apex:instrument",
215
- "logging:rflib:apex:instrument",
216
- "logging:apex:rflib:instrument",
217
- "logging:apex:instrument:rflib",
218
- "rflib:apex:logging:instrument",
219
- "apex:rflib:logging:instrument",
220
- "apex:logging:rflib:instrument",
221
- "apex:logging:instrument:rflib",
222
- "rflib:apex:instrument:logging",
223
- "apex:rflib:instrument:logging",
224
- "apex:instrument:rflib:logging",
225
- "apex:instrument:logging:rflib",
226
- "rflib:logging:instrument:apex",
227
- "logging:rflib:instrument:apex",
228
- "logging:instrument:rflib:apex",
229
- "logging:instrument:apex:rflib",
230
- "rflib:instrument:logging:apex",
231
- "instrument:rflib:logging:apex",
232
- "instrument:logging:rflib:apex",
233
- "instrument:logging:apex:rflib",
234
- "rflib:instrument:apex:logging",
235
- "instrument:rflib:apex:logging",
236
- "instrument:apex:rflib:logging",
237
- "instrument:apex:logging:rflib"
198
+ "rflib:debug:applicationevents:get",
199
+ "debug:rflib:applicationevents:get",
200
+ "debug:applicationevents:rflib:get",
201
+ "debug:applicationevents:get:rflib",
202
+ "rflib:applicationevents:debug:get",
203
+ "applicationevents:rflib:debug:get",
204
+ "applicationevents:debug:rflib:get",
205
+ "applicationevents:debug:get:rflib",
206
+ "rflib:applicationevents:get:debug",
207
+ "applicationevents:rflib:get:debug",
208
+ "applicationevents:get:rflib:debug",
209
+ "applicationevents:get:debug:rflib",
210
+ "rflib:debug:get:applicationevents",
211
+ "debug:rflib:get:applicationevents",
212
+ "debug:get:rflib:applicationevents",
213
+ "debug:get:applicationevents:rflib",
214
+ "rflib:get:debug:applicationevents",
215
+ "get:rflib:debug:applicationevents",
216
+ "get:debug:rflib:applicationevents",
217
+ "get:debug:applicationevents:rflib",
218
+ "rflib:get:applicationevents:debug",
219
+ "get:rflib:applicationevents:debug",
220
+ "get:applicationevents:rflib:debug",
221
+ "get:applicationevents:debug:rflib"
238
222
  ]
239
223
  },
240
- "rflib:logging:aura:instrument": {
224
+ "rflib:debug:logarchives:get": {
241
225
  "aliases": [],
242
226
  "args": {},
243
- "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",
227
+ "description": "Retrieves rflib_Logs_Archive__b records from the target org's big object store via the Salesforce REST API.\nEach log record contains log level, context, request ID, and full log messages in the format: [timestamp]|[LEVEL]|[TRACE_ID]|[CONTEXT]|[MESSAGE].\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_Logs_Archive__b).\nFor installation instructions, visit: https://github.com/j-fischer/rflib",
244
228
  "examples": [
245
- "- 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"
229
+ "Get log archives from the last 24 hours:\n$ sf rflib debug logarchives get --target-org myOrg",
230
+ "Get log archives for a specific date range:\n$ sf rflib debug logarchives get --target-org myOrg --start-date 2024-01-01T00:00:00Z --end-date 2024-01-02T00:00:00Z"
246
231
  ],
247
232
  "flags": {
248
233
  "json": {
@@ -260,129 +245,89 @@
260
245
  "multiple": false,
261
246
  "type": "option"
262
247
  },
263
- "sourcepath": {
264
- "char": "s",
265
- "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()",
266
- "name": "sourcepath",
248
+ "target-org": {
249
+ "char": "o",
250
+ "description": "The username or alias of the Salesforce org containing the RFLIB base package.",
251
+ "name": "target-org",
252
+ "noCacheDefault": true,
267
253
  "required": true,
268
- "summary": "Directory containing Aura components to instrument with logging.",
269
- "hasDynamicHelp": false,
254
+ "summary": "Username or alias of the target org.",
255
+ "hasDynamicHelp": true,
270
256
  "multiple": false,
271
257
  "type": "option"
272
258
  },
273
- "dryrun": {
274
- "char": "d",
275
- "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",
276
- "name": "dryrun",
277
- "summary": "Preview changes without modifying files.",
278
- "allowNo": false,
279
- "type": "boolean"
280
- },
281
- "prettier": {
282
- "char": "p",
283
- "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",
284
- "name": "prettier",
285
- "summary": "Format modified files using Prettier.",
286
- "allowNo": false,
287
- "type": "boolean"
288
- },
289
- "no-if": {
290
- "description": "When provided, the command will not add log statements inside of `if` and `else` blocks.",
291
- "name": "no-if",
292
- "summary": "Exclude the instrumentation of if-else statements.",
293
- "allowNo": false,
294
- "type": "boolean"
295
- },
296
- "skip-instrumented": {
297
- "description": "When provided, the command will not add log statements to any Aura component that contains the `` component.",
298
- "name": "skip-instrumented",
299
- "summary": "Skips any files where a logger is already present.",
300
- "allowNo": false,
301
- "type": "boolean"
302
- },
303
- "verbose": {
304
- "char": "v",
305
- "description": "When provided with --dryrun, prints the paths of the files that would be modified.",
306
- "name": "verbose",
307
- "summary": "Enable verbose output.",
308
- "allowNo": false,
309
- "type": "boolean"
310
- },
311
- "exclude": {
312
- "char": "e",
313
- "description": "Exclude specific files or directories that match the provided glob pattern. For example, use --exclude \"**/Generated_*.cmp\" to skip auto-generated components.",
314
- "name": "exclude",
315
- "summary": "Exclude files or directories from instrumentation based on a glob pattern.",
259
+ "start-date": {
260
+ "char": "s",
261
+ "description": "Only return log archives created on or after this date. Must be in ISO 8601 format, e.g. 2024-01-01T00:00:00Z. Defaults to 24 hours ago if omitted.",
262
+ "name": "start-date",
263
+ "summary": "Start of the date range in ISO 8601 format. Defaults to 24 hours ago.",
316
264
  "hasDynamicHelp": false,
317
265
  "multiple": false,
318
266
  "type": "option"
319
267
  },
320
- "concurrency": {
321
- "char": "c",
322
- "description": "Controls the maximum number of files to process at the same time. This is useful in very large codebases to prevent excessive memory usage or file descriptor exhaustion. Defaults to 10.",
323
- "name": "concurrency",
324
- "summary": "Limits the number of files processed concurrently.",
325
- "default": 10,
268
+ "end-date": {
269
+ "char": "d",
270
+ "description": "Only return log archives created on or before this date. Must be in ISO 8601 format, e.g. 2024-12-31T23:59:59Z. Defaults to the current time if omitted.",
271
+ "name": "end-date",
272
+ "summary": "End of the date range in ISO 8601 format. Defaults to now.",
326
273
  "hasDynamicHelp": false,
327
274
  "multiple": false,
328
275
  "type": "option"
329
276
  }
330
277
  },
331
- "hasDynamicHelp": false,
278
+ "hasDynamicHelp": true,
332
279
  "hiddenAliases": [],
333
- "id": "rflib:logging:aura:instrument",
280
+ "id": "rflib:debug:logarchives:get",
334
281
  "pluginAlias": "rflib-plugin",
335
282
  "pluginName": "rflib-plugin",
336
283
  "pluginType": "core",
337
284
  "strict": true,
338
- "summary": "Instrument Aura Components with RFLIB logging statements automatically.",
285
+ "summary": "Query RFLIB log archives from a Salesforce org.",
339
286
  "enableJsonFlag": true,
340
287
  "isESM": true,
341
288
  "relativePath": [
342
289
  "lib",
343
290
  "commands",
344
291
  "rflib",
345
- "logging",
346
- "aura",
347
- "instrument.js"
292
+ "debug",
293
+ "logarchives",
294
+ "get.js"
348
295
  ],
349
296
  "aliasPermutations": [],
350
297
  "permutations": [
351
- "rflib:logging:aura:instrument",
352
- "logging:rflib:aura:instrument",
353
- "logging:aura:rflib:instrument",
354
- "logging:aura:instrument:rflib",
355
- "rflib:aura:logging:instrument",
356
- "aura:rflib:logging:instrument",
357
- "aura:logging:rflib:instrument",
358
- "aura:logging:instrument:rflib",
359
- "rflib:aura:instrument:logging",
360
- "aura:rflib:instrument:logging",
361
- "aura:instrument:rflib:logging",
362
- "aura:instrument:logging:rflib",
363
- "rflib:logging:instrument:aura",
364
- "logging:rflib:instrument:aura",
365
- "logging:instrument:rflib:aura",
366
- "logging:instrument:aura:rflib",
367
- "rflib:instrument:logging:aura",
368
- "instrument:rflib:logging:aura",
369
- "instrument:logging:rflib:aura",
370
- "instrument:logging:aura:rflib",
371
- "rflib:instrument:aura:logging",
372
- "instrument:rflib:aura:logging",
373
- "instrument:aura:rflib:logging",
374
- "instrument:aura:logging:rflib"
298
+ "rflib:debug:logarchives:get",
299
+ "debug:rflib:logarchives:get",
300
+ "debug:logarchives:rflib:get",
301
+ "debug:logarchives:get:rflib",
302
+ "rflib:logarchives:debug:get",
303
+ "logarchives:rflib:debug:get",
304
+ "logarchives:debug:rflib:get",
305
+ "logarchives:debug:get:rflib",
306
+ "rflib:logarchives:get:debug",
307
+ "logarchives:rflib:get:debug",
308
+ "logarchives:get:rflib:debug",
309
+ "logarchives:get:debug:rflib",
310
+ "rflib:debug:get:logarchives",
311
+ "debug:rflib:get:logarchives",
312
+ "debug:get:rflib:logarchives",
313
+ "debug:get:logarchives:rflib",
314
+ "rflib:get:debug:logarchives",
315
+ "get:rflib:debug:logarchives",
316
+ "get:debug:rflib:logarchives",
317
+ "get:debug:logarchives:rflib",
318
+ "rflib:get:logarchives:debug",
319
+ "get:rflib:logarchives:debug",
320
+ "get:logarchives:rflib:debug",
321
+ "get:logarchives:debug:rflib"
375
322
  ]
376
323
  },
377
- "rflib:logging:flow:instrument": {
324
+ "rflib:debug:recordaccess:get": {
378
325
  "aliases": [],
379
326
  "args": {},
380
- "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.",
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.",
381
328
  "examples": [
382
- "<%= config.bin %> <%= command.id %> --target-org myOrg --sourcepath force-app",
383
- "<%= config.bin %> <%= command.id %> --target-org myOrg --sourcepath force-app --dryrun",
384
- "<%= config.bin %> <%= command.id %> --target-org myOrg --sourcepath force-app --skip-instrumented",
385
- "<%= config.bin %> <%= command.id %> --target-org myOrg --sourcepath force-app --skip-fault-paths"
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"
386
331
  ],
387
332
  "flags": {
388
333
  "json": {
@@ -402,7 +347,7 @@
402
347
  },
403
348
  "target-org": {
404
349
  "char": "o",
405
- "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.",
350
+ "description": "The username or alias of the Salesforce org that contains the records.",
406
351
  "name": "target-org",
407
352
  "noCacheDefault": true,
408
353
  "required": true,
@@ -411,118 +356,79 @@
411
356
  "multiple": false,
412
357
  "type": "option"
413
358
  },
414
- "sourcepath": {
415
- "char": "s",
416
- "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\".",
417
- "name": "sourcepath",
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",
418
363
  "required": true,
419
- "summary": "Directory containing Flow files to instrument with logging.",
420
- "hasDynamicHelp": false,
421
- "multiple": false,
422
- "type": "option"
423
- },
424
- "dryrun": {
425
- "char": "d",
426
- "description": "When enabled, shows which files would be modified without making actual changes. Useful for reviewing the impact before applying changes.",
427
- "name": "dryrun",
428
- "summary": "Preview changes without modifying files.",
429
- "allowNo": false,
430
- "type": "boolean"
431
- },
432
- "skip-instrumented": {
433
- "description": "When provided, the command will not add log statements to any Flows that already contain RFLIB logging actions.",
434
- "name": "skip-instrumented",
435
- "summary": "Skips any files where a logger is already present.",
436
- "allowNo": false,
437
- "type": "boolean"
438
- },
439
- "skip-fault-paths": {
440
- "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.",
441
- "name": "skip-fault-paths",
442
- "summary": "Skips logging errors on fault paths.",
443
- "allowNo": false,
444
- "type": "boolean"
445
- },
446
- "verbose": {
447
- "char": "v",
448
- "description": "When provided with --dryrun, prints the paths of the files that would be modified.",
449
- "name": "verbose",
450
- "summary": "Enable verbose output.",
451
- "allowNo": false,
452
- "type": "boolean"
453
- },
454
- "exclude": {
455
- "char": "e",
456
- "description": "Exclude specific files or directories that match the provided glob pattern. For example, use --exclude \"**/Test_*.flow-meta.xml\" to skip certain flows.",
457
- "name": "exclude",
458
- "summary": "Exclude files or directories from instrumentation based on a glob pattern.",
364
+ "summary": "User ID (15 or 18 characters) or username of the user to check.",
459
365
  "hasDynamicHelp": false,
460
366
  "multiple": false,
461
367
  "type": "option"
462
368
  },
463
- "concurrency": {
464
- "char": "c",
465
- "description": "Controls the maximum number of files to process at the same time. This is useful in very large codebases to prevent excessive memory usage or file descriptor exhaustion. Defaults to 10.",
466
- "name": "concurrency",
467
- "summary": "Limits the number of files processed concurrently.",
468
- "default": 10,
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.",
469
375
  "hasDynamicHelp": false,
470
- "multiple": false,
376
+ "multiple": true,
471
377
  "type": "option"
472
378
  }
473
379
  },
474
380
  "hasDynamicHelp": true,
475
381
  "hiddenAliases": [],
476
- "id": "rflib:logging:flow:instrument",
382
+ "id": "rflib:debug:recordaccess:get",
477
383
  "pluginAlias": "rflib-plugin",
478
384
  "pluginName": "rflib-plugin",
479
385
  "pluginType": "core",
480
386
  "strict": true,
481
- "summary": "Adds RFLIB logging statements to Salesforce Flows.",
387
+ "summary": "Check a user's access to specific records, including sharing.",
482
388
  "enableJsonFlag": true,
483
389
  "isESM": true,
484
390
  "relativePath": [
485
391
  "lib",
486
392
  "commands",
487
393
  "rflib",
488
- "logging",
489
- "flow",
490
- "instrument.js"
394
+ "debug",
395
+ "recordaccess",
396
+ "get.js"
491
397
  ],
492
398
  "aliasPermutations": [],
493
399
  "permutations": [
494
- "rflib:logging:flow:instrument",
495
- "logging:rflib:flow:instrument",
496
- "logging:flow:rflib:instrument",
497
- "logging:flow:instrument:rflib",
498
- "rflib:flow:logging:instrument",
499
- "flow:rflib:logging:instrument",
500
- "flow:logging:rflib:instrument",
501
- "flow:logging:instrument:rflib",
502
- "rflib:flow:instrument:logging",
503
- "flow:rflib:instrument:logging",
504
- "flow:instrument:rflib:logging",
505
- "flow:instrument:logging:rflib",
506
- "rflib:logging:instrument:flow",
507
- "logging:rflib:instrument:flow",
508
- "logging:instrument:rflib:flow",
509
- "logging:instrument:flow:rflib",
510
- "rflib:instrument:logging:flow",
511
- "instrument:rflib:logging:flow",
512
- "instrument:logging:rflib:flow",
513
- "instrument:logging:flow:rflib",
514
- "rflib:instrument:flow:logging",
515
- "instrument:rflib:flow:logging",
516
- "instrument:flow:rflib:logging",
517
- "instrument:flow:logging:rflib"
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"
518
424
  ]
519
425
  },
520
- "rflib:logging:lwc:instrument": {
426
+ "rflib:debug:loggersettings:get": {
521
427
  "aliases": [],
522
428
  "args": {},
523
- "description": "Analyzes Lightning Web Component JavaScript files and adds RFLIB logging statements for:\n- Method entry logging with parameter values\n- Error logging in try-catch blocks\n- Error logging in Promise catch handlers\n- Condition logging in if/else blocks\n- Adds logger import if not present\n- Adds logger initialization if not present\n- Replaces console.log and similar method invocations\n- Formats modified files using Prettier (optional)",
429
+ "description": "Retrieves all rflib_Logger_Settings__c hierarchy custom setting records from the target org via the Salesforce REST API.\nReturns settings across org-wide defaults, profile overrides, and user overrides, along with embedded best-practice recommendations.\n\nUse \"sf rflib debug loggersettings update\" to apply changes.\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_Logger_Settings__c).\nFor installation instructions, visit: https://github.com/j-fischer/rflib",
524
430
  "examples": [
525
- "- Add logging to all LWC files:\n$ sf rflib logging lwc instrument --sourcepath force-app/main/default/lwc\n\n- Preview changes:\n$ sf rflib logging lwc instrument --sourcepath force-app/main/default/lwc --dryrun\n\n- Add logging and format code:\n$ sf rflib logging lwc instrument --sourcepath force-app/main/default/lwc --prettier\n\n- Process specific component:\n$ sf rflib logging lwc instrument --sourcepath force-app/main/default/lwc/myComponent"
431
+ "Read all logger settings from the target org:\n$ sf rflib debug loggersettings get --target-org myOrg"
526
432
  ],
527
433
  "flags": {
528
434
  "json": {
@@ -540,128 +446,71 @@
540
446
  "multiple": false,
541
447
  "type": "option"
542
448
  },
543
- "sourcepath": {
544
- "char": "s",
545
- "description": "Path to the source directory containing Lightning Web Component JavaScript files that should be instrumented with RFLIB logging statements. Aura component files are automatically excluded. The command will:\n- Process all .js files in the directory and subdirectories\n- Skip files in 'aura' directories\n- Add import statement: import { createLogger } from 'c/rflibLogger'\n- Add logger initialization: const logger = createLogger('ComponentName')",
546
- "name": "sourcepath",
449
+ "target-org": {
450
+ "char": "o",
451
+ "description": "The username or alias of the Salesforce org containing the RFLIB base package.",
452
+ "name": "target-org",
453
+ "noCacheDefault": true,
547
454
  "required": true,
548
- "summary": "Directory containing LWC JavaScript files to instrument with logging.",
549
- "hasDynamicHelp": false,
550
- "multiple": false,
551
- "type": "option"
552
- },
553
- "dryrun": {
554
- "char": "d",
555
- "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",
556
- "name": "dryrun",
557
- "summary": "Preview changes without modifying files.",
558
- "allowNo": false,
559
- "type": "boolean"
560
- },
561
- "prettier": {
562
- "char": "p",
563
- "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",
564
- "name": "prettier",
565
- "summary": "Format modified files using Prettier.",
566
- "allowNo": false,
567
- "type": "boolean"
568
- },
569
- "no-if": {
570
- "description": "When provided, the command will not add log statements inside of `if` and `else` blocks.",
571
- "name": "no-if",
572
- "summary": "Exclude the instrumentation of if-else statements.",
573
- "allowNo": false,
574
- "type": "boolean"
575
- },
576
- "skip-instrumented": {
577
- "description": "When provided, the command will not add log statements to any Apex class that contains the `rflib` import statement.",
578
- "name": "skip-instrumented",
579
- "summary": "Skips any files where a logger is already present.",
580
- "allowNo": false,
581
- "type": "boolean"
582
- },
583
- "verbose": {
584
- "char": "v",
585
- "description": "When provided with --dryrun, prints the paths of the files that would be modified.",
586
- "name": "verbose",
587
- "summary": "Enable verbose output.",
588
- "allowNo": false,
589
- "type": "boolean"
590
- },
591
- "exclude": {
592
- "char": "e",
593
- "description": "Exclude specific files or directories that match the provided glob pattern. For example, use --exclude \"**/Generated_*.js\" to skip auto-generated components.",
594
- "name": "exclude",
595
- "summary": "Exclude files or directories from instrumentation based on a glob pattern.",
596
- "hasDynamicHelp": false,
597
- "multiple": false,
598
- "type": "option"
599
- },
600
- "concurrency": {
601
- "char": "c",
602
- "description": "Controls the maximum number of files to process at the same time. This is useful in very large codebases to prevent excessive memory usage or file descriptor exhaustion. Defaults to 10.",
603
- "name": "concurrency",
604
- "summary": "Limits the number of files processed concurrently.",
605
- "default": 10,
606
- "hasDynamicHelp": false,
455
+ "summary": "Username or alias of the target org.",
456
+ "hasDynamicHelp": true,
607
457
  "multiple": false,
608
458
  "type": "option"
609
459
  }
610
460
  },
611
- "hasDynamicHelp": false,
461
+ "hasDynamicHelp": true,
612
462
  "hiddenAliases": [],
613
- "id": "rflib:logging:lwc:instrument",
463
+ "id": "rflib:debug:loggersettings:get",
614
464
  "pluginAlias": "rflib-plugin",
615
465
  "pluginName": "rflib-plugin",
616
466
  "pluginType": "core",
617
467
  "strict": true,
618
- "summary": "Instrument Lightning Web Components with RFLIB logging statements automatically.",
468
+ "summary": "Read all RFLIB Logger Settings from a Salesforce org.",
619
469
  "enableJsonFlag": true,
620
470
  "isESM": true,
621
471
  "relativePath": [
622
472
  "lib",
623
473
  "commands",
624
474
  "rflib",
625
- "logging",
626
- "lwc",
627
- "instrument.js"
475
+ "debug",
476
+ "loggersettings",
477
+ "get.js"
628
478
  ],
629
479
  "aliasPermutations": [],
630
480
  "permutations": [
631
- "rflib:logging:lwc:instrument",
632
- "logging:rflib:lwc:instrument",
633
- "logging:lwc:rflib:instrument",
634
- "logging:lwc:instrument:rflib",
635
- "rflib:lwc:logging:instrument",
636
- "lwc:rflib:logging:instrument",
637
- "lwc:logging:rflib:instrument",
638
- "lwc:logging:instrument:rflib",
639
- "rflib:lwc:instrument:logging",
640
- "lwc:rflib:instrument:logging",
641
- "lwc:instrument:rflib:logging",
642
- "lwc:instrument:logging:rflib",
643
- "rflib:logging:instrument:lwc",
644
- "logging:rflib:instrument:lwc",
645
- "logging:instrument:rflib:lwc",
646
- "logging:instrument:lwc:rflib",
647
- "rflib:instrument:logging:lwc",
648
- "instrument:rflib:logging:lwc",
649
- "instrument:logging:rflib:lwc",
650
- "instrument:logging:lwc:rflib",
651
- "rflib:instrument:lwc:logging",
652
- "instrument:rflib:lwc:logging",
653
- "instrument:lwc:rflib:logging",
654
- "instrument:lwc:logging:rflib"
481
+ "rflib:debug:loggersettings:get",
482
+ "debug:rflib:loggersettings:get",
483
+ "debug:loggersettings:rflib:get",
484
+ "debug:loggersettings:get:rflib",
485
+ "rflib:loggersettings:debug:get",
486
+ "loggersettings:rflib:debug:get",
487
+ "loggersettings:debug:rflib:get",
488
+ "loggersettings:debug:get:rflib",
489
+ "rflib:loggersettings:get:debug",
490
+ "loggersettings:rflib:get:debug",
491
+ "loggersettings:get:rflib:debug",
492
+ "loggersettings:get:debug:rflib",
493
+ "rflib:debug:get:loggersettings",
494
+ "debug:rflib:get:loggersettings",
495
+ "debug:get:rflib:loggersettings",
496
+ "debug:get:loggersettings:rflib",
497
+ "rflib:get:debug:loggersettings",
498
+ "get:rflib:debug:loggersettings",
499
+ "get:debug:rflib:loggersettings",
500
+ "get:debug:loggersettings:rflib",
501
+ "rflib:get:loggersettings:debug",
502
+ "get:rflib:loggersettings:debug",
503
+ "get:loggersettings:rflib:debug",
504
+ "get:loggersettings:debug:rflib"
655
505
  ]
656
506
  },
657
- "rflib:debug:applicationevents:get": {
507
+ "rflib:debug:loggersettings:update": {
658
508
  "aliases": [],
659
509
  "args": {},
660
- "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",
510
+ "description": "Creates or updates a single field on an rflib_Logger_Settings__c record in the target org via the Salesforce REST API.\nValidates field values and warns about best-practice violations.\n\nTo update an existing record, provide --record-id. To create a new record, provide --setup-owner-id with an org ID (00D...), profile ID (00E...), or user ID.\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 update access to rflib_Logger_Settings__c).\nFor installation instructions, visit: https://github.com/j-fischer/rflib",
661
511
  "examples": [
662
- "Get all application events from the default org:\n$ sf rflib debug applicationevents get --target-org myOrg",
663
- "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",
664
- "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"
512
+ "Update the Log_Event_Reporting_Level__c field on an existing record:\n$ sf rflib debug loggersettings update --target-org myOrg --record-id a0A000000001234 --field-name Log_Event_Reporting_Level__c --field-value WARN",
513
+ "Create a new org-wide Logger Setting:\n$ sf rflib debug loggersettings update --target-org myOrg --setup-owner-id 00D000000000001 --field-name Log_Event_Reporting_Level__c --field-value WARN"
665
514
  ],
666
515
  "flags": {
667
516
  "json": {
@@ -690,47 +539,40 @@
690
539
  "multiple": false,
691
540
  "type": "option"
692
541
  },
693
- "event-name": {
694
- "char": "e",
695
- "description": "Filter Application Events by their Event_Name__c field. Use the % character as a wildcard for partial matches, for example \"order-%\".",
696
- "name": "event-name",
697
- "summary": "Filter by event name. Use % as a wildcard.",
698
- "hasDynamicHelp": false,
699
- "multiple": false,
700
- "type": "option"
701
- },
702
- "start-date": {
703
- "char": "s",
704
- "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.",
705
- "name": "start-date",
706
- "summary": "Filter events on or after this ISO 8601 date.",
542
+ "field-name": {
543
+ "char": "f",
544
+ "description": "The API name of the field to create or update, e.g. Log_Event_Reporting_Level__c. For log level fields, valid values are: TRACE, DEBUG, INFO, WARN, ERROR, FATAL, NONE.",
545
+ "name": "field-name",
546
+ "required": true,
547
+ "summary": "API name of the rflib_Logger_Settings__c field to update.",
707
548
  "hasDynamicHelp": false,
708
549
  "multiple": false,
709
550
  "type": "option"
710
551
  },
711
- "end-date": {
712
- "char": "d",
713
- "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.",
714
- "name": "end-date",
715
- "summary": "Filter events on or before this ISO 8601 date.",
552
+ "field-value": {
553
+ "char": "v",
554
+ "description": "The new value to set on the specified field. For log level fields, valid values are: TRACE, DEBUG, INFO, WARN, ERROR, FATAL, NONE.",
555
+ "name": "field-value",
556
+ "required": true,
557
+ "summary": "New value for the specified field.",
716
558
  "hasDynamicHelp": false,
717
559
  "multiple": false,
718
560
  "type": "option"
719
561
  },
720
- "related-record-id": {
562
+ "record-id": {
721
563
  "char": "r",
722
- "description": "Only return events associated with this specific record ID.",
723
- "name": "related-record-id",
724
- "summary": "Filter by Related_Record_ID__c (exact match).",
564
+ "description": "The Salesforce record ID of an existing rflib_Logger_Settings__c record to update. Omit this flag to create a new record (requires --setup-owner-id).",
565
+ "name": "record-id",
566
+ "summary": "ID of an existing rflib_Logger_Settings__c record to update.",
725
567
  "hasDynamicHelp": false,
726
568
  "multiple": false,
727
569
  "type": "option"
728
570
  },
729
- "record-limit": {
730
- "char": "l",
731
- "description": "Controls how many Application Event records are returned. Defaults to 200. Maximum allowed value is 2000.",
732
- "name": "record-limit",
733
- "summary": "Maximum number of records to return (default 200, max 2000).",
571
+ "setup-owner-id": {
572
+ "char": "s",
573
+ "description": "Required when creating a new Logger Setting record. Accepts an org ID (00D...), profile ID (00E...), or user ID. Read existing record IDs using \"sf rflib debug loggersettings get\".",
574
+ "name": "setup-owner-id",
575
+ "summary": "Setup owner ID for creating a new Logger Setting record.",
734
576
  "hasDynamicHelp": false,
735
577
  "multiple": false,
736
578
  "type": "option"
@@ -738,12 +580,12 @@
738
580
  },
739
581
  "hasDynamicHelp": true,
740
582
  "hiddenAliases": [],
741
- "id": "rflib:debug:applicationevents:get",
583
+ "id": "rflib:debug:loggersettings:update",
742
584
  "pluginAlias": "rflib-plugin",
743
585
  "pluginName": "rflib-plugin",
744
586
  "pluginType": "core",
745
587
  "strict": true,
746
- "summary": "Query RFLIB Application Events from a Salesforce org.",
588
+ "summary": "Create or update an RFLIB Logger Setting in a Salesforce org.",
747
589
  "enableJsonFlag": true,
748
590
  "isESM": true,
749
591
  "relativePath": [
@@ -751,44 +593,47 @@
751
593
  "commands",
752
594
  "rflib",
753
595
  "debug",
754
- "applicationevents",
755
- "get.js"
596
+ "loggersettings",
597
+ "update.js"
756
598
  ],
757
599
  "aliasPermutations": [],
758
600
  "permutations": [
759
- "rflib:debug:applicationevents:get",
760
- "debug:rflib:applicationevents:get",
761
- "debug:applicationevents:rflib:get",
762
- "debug:applicationevents:get:rflib",
763
- "rflib:applicationevents:debug:get",
764
- "applicationevents:rflib:debug:get",
765
- "applicationevents:debug:rflib:get",
766
- "applicationevents:debug:get:rflib",
767
- "rflib:applicationevents:get:debug",
768
- "applicationevents:rflib:get:debug",
769
- "applicationevents:get:rflib:debug",
770
- "applicationevents:get:debug:rflib",
771
- "rflib:debug:get:applicationevents",
772
- "debug:rflib:get:applicationevents",
773
- "debug:get:rflib:applicationevents",
774
- "debug:get:applicationevents:rflib",
775
- "rflib:get:debug:applicationevents",
776
- "get:rflib:debug:applicationevents",
777
- "get:debug:rflib:applicationevents",
778
- "get:debug:applicationevents:rflib",
779
- "rflib:get:applicationevents:debug",
780
- "get:rflib:applicationevents:debug",
781
- "get:applicationevents:rflib:debug",
782
- "get:applicationevents:debug:rflib"
601
+ "rflib:debug:loggersettings:update",
602
+ "debug:rflib:loggersettings:update",
603
+ "debug:loggersettings:rflib:update",
604
+ "debug:loggersettings:update:rflib",
605
+ "rflib:loggersettings:debug:update",
606
+ "loggersettings:rflib:debug:update",
607
+ "loggersettings:debug:rflib:update",
608
+ "loggersettings:debug:update:rflib",
609
+ "rflib:loggersettings:update:debug",
610
+ "loggersettings:rflib:update:debug",
611
+ "loggersettings:update:rflib:debug",
612
+ "loggersettings:update:debug:rflib",
613
+ "rflib:debug:update:loggersettings",
614
+ "debug:rflib:update:loggersettings",
615
+ "debug:update:rflib:loggersettings",
616
+ "debug:update:loggersettings:rflib",
617
+ "rflib:update:debug:loggersettings",
618
+ "update:rflib:debug:loggersettings",
619
+ "update:debug:rflib:loggersettings",
620
+ "update:debug:loggersettings:rflib",
621
+ "rflib:update:loggersettings:debug",
622
+ "update:rflib:loggersettings:debug",
623
+ "update:loggersettings:rflib:debug",
624
+ "update:loggersettings:debug:rflib"
783
625
  ]
784
626
  },
785
- "rflib:debug:logarchives:get": {
627
+ "rflib:debug:userpermissions:check": {
786
628
  "aliases": [],
787
629
  "args": {},
788
- "description": "Retrieves rflib_Logs_Archive__b records from the target org's big object store via the Salesforce REST API.\nEach log record contains log level, context, request ID, and full log messages in the format: [timestamp]|[LEVEL]|[TRACE_ID]|[CONTEXT]|[MESSAGE].\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_Logs_Archive__b).\nFor installation instructions, visit: https://github.com/j-fischer/rflib",
630
+ "description": "Answers questions such as \"Can this user edit Account.AnnualRevenue?\" or \"Does this user have Modify All Data?\". The command checks the user's profile, permission sets, and permission set groups, and returns whether the permission is granted and which of them grant it.\n\nCheck exactly one of the following:\n - An object permission (--object, with --access read, create, edit, delete, viewall, modifyall, or viewallfields)\n - A field permission (--field, with --access read or edit)\n - Access to an Apex class (--apex-class) or a Visualforce page (--apex-page)\n - A custom permission (--custom-permission)\n - A system permission (--system-permission), e.g. ModifyAllData or ViewSetup\n\nField checks take the object permissions into account: a field is only accessible when the user also has Read (or Edit) on the object. View All Fields on the object grants Read on all of its fields. Apex class and Visualforce page checks include access granted by the Author Apex and Customize Application system permissions.\n\nSharing and record-level access aren't checked.\n\nThe command only reads standard setup objects, so the RFLIB package doesn't need to be installed. The running user needs the View Setup and Configuration permission.",
789
631
  "examples": [
790
- "Get log archives from the last 24 hours:\n$ sf rflib debug logarchives get --target-org myOrg",
791
- "Get log archives for a specific date range:\n$ sf rflib debug logarchives get --target-org myOrg --start-date 2024-01-01T00:00:00Z --end-date 2024-01-02T00:00:00Z"
632
+ "Check whether a user can edit a field:\n$ sf rflib debug userpermissions check --target-org myOrg --user jane@example.com --field Account.AnnualRevenue --access edit",
633
+ "Check whether a user can delete Opportunity records:\n$ sf rflib debug userpermissions check --target-org myOrg --user 0057000000XXXXXX --object Opportunity --access delete",
634
+ "Check access to an Apex class:\n$ sf rflib debug userpermissions check --target-org myOrg --user jane@example.com --apex-class OrderController",
635
+ "Check a custom permission:\n$ sf rflib debug userpermissions check --target-org myOrg --user jane@example.com --custom-permission Approve_Discounts",
636
+ "Check a system permission:\n$ sf rflib debug userpermissions check --target-org myOrg --user jane@example.com --system-permission ModifyAllData"
792
637
  ],
793
638
  "flags": {
794
639
  "json": {
@@ -808,7 +653,7 @@
808
653
  },
809
654
  "target-org": {
810
655
  "char": "o",
811
- "description": "The username or alias of the Salesforce org containing the RFLIB base package.",
656
+ "description": "The username or alias of the Salesforce org to check the permission in.",
812
657
  "name": "target-org",
813
658
  "noCacheDefault": true,
814
659
  "required": true,
@@ -817,20 +662,80 @@
817
662
  "multiple": false,
818
663
  "type": "option"
819
664
  },
820
- "start-date": {
821
- "char": "s",
822
- "description": "Only return log archives created on or after this date. Must be in ISO 8601 format, e.g. 2024-01-01T00:00:00Z. Defaults to 24 hours ago if omitted.",
823
- "name": "start-date",
824
- "summary": "Start of the date range in ISO 8601 format. Defaults to 24 hours ago.",
665
+ "user": {
666
+ "char": "u",
667
+ "description": "The Salesforce User ID (15 or 18 characters) or the username of the user whose permission should be checked.",
668
+ "name": "user",
669
+ "required": true,
670
+ "summary": "User ID (15 or 18 characters) or username of the user to check.",
825
671
  "hasDynamicHelp": false,
826
672
  "multiple": false,
827
673
  "type": "option"
828
674
  },
829
- "end-date": {
830
- "char": "d",
831
- "description": "Only return log archives created on or before this date. Must be in ISO 8601 format, e.g. 2024-12-31T23:59:59Z. Defaults to the current time if omitted.",
832
- "name": "end-date",
833
- "summary": "End of the date range in ISO 8601 format. Defaults to now.",
675
+ "object": {
676
+ "char": "b",
677
+ "description": "Checks an object permission. Use --access to choose which one; the default is read.",
678
+ "name": "object",
679
+ "summary": "API name of the object to check object permissions for, e.g. Account.",
680
+ "hasDynamicHelp": false,
681
+ "multiple": false,
682
+ "type": "option"
683
+ },
684
+ "field": {
685
+ "char": "f",
686
+ "description": "Checks field-level security for a field. Use --access read (default) or --access edit.",
687
+ "name": "field",
688
+ "summary": "Field to check field-level security for, in the form Object.Field, e.g. Account.AnnualRevenue.",
689
+ "hasDynamicHelp": false,
690
+ "multiple": false,
691
+ "type": "option"
692
+ },
693
+ "access": {
694
+ "char": "a",
695
+ "description": "The access level to check:\n - read, edit: for objects and fields\n - create, delete, viewall (View All Records), modifyall (Modify All Records), viewallfields (View All Fields): for objects only",
696
+ "name": "access",
697
+ "summary": "Access level to check for --object or --field. Default: read.",
698
+ "hasDynamicHelp": false,
699
+ "multiple": false,
700
+ "options": [
701
+ "read",
702
+ "create",
703
+ "edit",
704
+ "delete",
705
+ "viewall",
706
+ "modifyall",
707
+ "viewallfields"
708
+ ],
709
+ "type": "option"
710
+ },
711
+ "apex-class": {
712
+ "description": "Checks whether the user can access an Apex class. Use namespace__Name or namespace.Name for a class in a managed package.",
713
+ "name": "apex-class",
714
+ "summary": "Name of the Apex class to check access for.",
715
+ "hasDynamicHelp": false,
716
+ "multiple": false,
717
+ "type": "option"
718
+ },
719
+ "apex-page": {
720
+ "description": "Checks whether the user can access a Visualforce page. Use namespace__Name for a page in a managed package.",
721
+ "name": "apex-page",
722
+ "summary": "Name of the Visualforce page to check access for.",
723
+ "hasDynamicHelp": false,
724
+ "multiple": false,
725
+ "type": "option"
726
+ },
727
+ "custom-permission": {
728
+ "description": "Checks whether the user has a custom permission. Use namespace__Name for a custom permission in a managed package.",
729
+ "name": "custom-permission",
730
+ "summary": "API name of the custom permission to check.",
731
+ "hasDynamicHelp": false,
732
+ "multiple": false,
733
+ "type": "option"
734
+ },
735
+ "system-permission": {
736
+ "description": "Checks a system (user) permission. Use the name of the permission field on the PermissionSet object, with or without the \"Permissions\" prefix, e.g. ModifyAllData, ViewAllData, ApiEnabled, or PermissionsAuthorApex.",
737
+ "name": "system-permission",
738
+ "summary": "API name of the system permission to check, e.g. ModifyAllData or ViewSetup.",
834
739
  "hasDynamicHelp": false,
835
740
  "multiple": false,
836
741
  "type": "option"
@@ -838,12 +743,12 @@
838
743
  },
839
744
  "hasDynamicHelp": true,
840
745
  "hiddenAliases": [],
841
- "id": "rflib:debug:logarchives:get",
746
+ "id": "rflib:debug:userpermissions:check",
842
747
  "pluginAlias": "rflib-plugin",
843
748
  "pluginName": "rflib-plugin",
844
749
  "pluginType": "core",
845
750
  "strict": true,
846
- "summary": "Query RFLIB log archives from a Salesforce org.",
751
+ "summary": "Check whether a user has a specific permission, and where it comes from.",
847
752
  "enableJsonFlag": true,
848
753
  "isESM": true,
849
754
  "relativePath": [
@@ -851,43 +756,44 @@
851
756
  "commands",
852
757
  "rflib",
853
758
  "debug",
854
- "logarchives",
855
- "get.js"
759
+ "userpermissions",
760
+ "check.js"
856
761
  ],
857
762
  "aliasPermutations": [],
858
763
  "permutations": [
859
- "rflib:debug:logarchives:get",
860
- "debug:rflib:logarchives:get",
861
- "debug:logarchives:rflib:get",
862
- "debug:logarchives:get:rflib",
863
- "rflib:logarchives:debug:get",
864
- "logarchives:rflib:debug:get",
865
- "logarchives:debug:rflib:get",
866
- "logarchives:debug:get:rflib",
867
- "rflib:logarchives:get:debug",
868
- "logarchives:rflib:get:debug",
869
- "logarchives:get:rflib:debug",
870
- "logarchives:get:debug:rflib",
871
- "rflib:debug:get:logarchives",
872
- "debug:rflib:get:logarchives",
873
- "debug:get:rflib:logarchives",
874
- "debug:get:logarchives:rflib",
875
- "rflib:get:debug:logarchives",
876
- "get:rflib:debug:logarchives",
877
- "get:debug:rflib:logarchives",
878
- "get:debug:logarchives:rflib",
879
- "rflib:get:logarchives:debug",
880
- "get:rflib:logarchives:debug",
881
- "get:logarchives:rflib:debug",
882
- "get:logarchives:debug:rflib"
764
+ "rflib:debug:userpermissions:check",
765
+ "debug:rflib:userpermissions:check",
766
+ "debug:userpermissions:rflib:check",
767
+ "debug:userpermissions:check:rflib",
768
+ "rflib:userpermissions:debug:check",
769
+ "userpermissions:rflib:debug:check",
770
+ "userpermissions:debug:rflib:check",
771
+ "userpermissions:debug:check:rflib",
772
+ "rflib:userpermissions:check:debug",
773
+ "userpermissions:rflib:check:debug",
774
+ "userpermissions:check:rflib:debug",
775
+ "userpermissions:check:debug:rflib",
776
+ "rflib:debug:check:userpermissions",
777
+ "debug:rflib:check:userpermissions",
778
+ "debug:check:rflib:userpermissions",
779
+ "debug:check:userpermissions:rflib",
780
+ "rflib:check:debug:userpermissions",
781
+ "check:rflib:debug:userpermissions",
782
+ "check:debug:rflib:userpermissions",
783
+ "check:debug:userpermissions:rflib",
784
+ "rflib:check:userpermissions:debug",
785
+ "check:rflib:userpermissions:debug",
786
+ "check:userpermissions:rflib:debug",
787
+ "check:userpermissions:debug:rflib"
883
788
  ]
884
789
  },
885
- "rflib:debug:loggersettings:get": {
790
+ "rflib:debug:userpermissions:compare": {
886
791
  "aliases": [],
887
792
  "args": {},
888
- "description": "Retrieves all rflib_Logger_Settings__c hierarchy custom setting records from the target org via the Salesforce REST API.\nReturns settings across org-wide defaults, profile overrides, and user overrides, along with embedded best-practice recommendations.\n\nUse \"sf rflib debug loggersettings update\" to apply changes.\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_Logger_Settings__c).\nFor installation instructions, visit: https://github.com/j-fischer/rflib",
793
+ "description": "Finds out why something works for one user but not for another. The command combines each user's permissions across their profile, permission sets, and permission set groups, and returns only the permissions that one of the users has and the other doesn't.\n\nUse --permission-type to choose what to compare (default: ALL) and --sobject-type to limit the object and field comparison to one object. ALL compares object and field access, Apex classes, Visualforce pages, custom permissions, and system permissions.\n\nField access only counts where the user also has the matching access on the object. Sharing and record-level access aren't compared.\n\nThe command only reads standard setup objects, so the RFLIB package doesn't need to be installed. The running user needs the View Setup and Configuration permission.",
889
794
  "examples": [
890
- "Read all logger settings from the target org:\n$ sf rflib debug loggersettings get --target-org myOrg"
795
+ "Compare all permissions of two users:\n$ sf rflib debug userpermissions compare --target-org myOrg --user jane@example.com --other-user bob@example.com",
796
+ "Compare object and field access on Account:\n$ sf rflib debug userpermissions compare --target-org myOrg --user jane@example.com --other-user bob@example.com --permission-type FLS --sobject-type Account"
891
797
  ],
892
798
  "flags": {
893
799
  "json": {
@@ -907,7 +813,7 @@
907
813
  },
908
814
  "target-org": {
909
815
  "char": "o",
910
- "description": "The username or alias of the Salesforce org containing the RFLIB base package.",
816
+ "description": "The username or alias of the Salesforce org to compare the users in.",
911
817
  "name": "target-org",
912
818
  "noCacheDefault": true,
913
819
  "required": true,
@@ -915,16 +821,61 @@
915
821
  "hasDynamicHelp": true,
916
822
  "multiple": false,
917
823
  "type": "option"
824
+ },
825
+ "user": {
826
+ "char": "u",
827
+ "description": "The first user to compare, typically the user for whom something doesn't work.",
828
+ "name": "user",
829
+ "required": true,
830
+ "summary": "User ID (15 or 18 characters) or username of the first user.",
831
+ "hasDynamicHelp": false,
832
+ "multiple": false,
833
+ "type": "option"
834
+ },
835
+ "other-user": {
836
+ "char": "w",
837
+ "description": "The second user to compare, typically the user for whom it works.",
838
+ "name": "other-user",
839
+ "required": true,
840
+ "summary": "User ID (15 or 18 characters) or username of the second user.",
841
+ "hasDynamicHelp": false,
842
+ "multiple": false,
843
+ "type": "option"
844
+ },
845
+ "permission-type": {
846
+ "char": "t",
847
+ "description": "Controls which permissions are compared:\n - FLS: Field access\n - OLS: Object access\n - APEX: Apex class and Visualforce page access\n - ALL: All of the above, plus custom permissions and system permissions",
848
+ "name": "permission-type",
849
+ "summary": "Permissions to compare: FLS, OLS, APEX, or ALL. Default: ALL.",
850
+ "default": "ALL",
851
+ "hasDynamicHelp": false,
852
+ "multiple": false,
853
+ "options": [
854
+ "FLS",
855
+ "OLS",
856
+ "APEX",
857
+ "ALL"
858
+ ],
859
+ "type": "option"
860
+ },
861
+ "sobject-type": {
862
+ "char": "b",
863
+ "description": "Limits the object and field comparison to one SObject type, e.g. Account. Recommended in large orgs, where the full field comparison can reach the query row limit.",
864
+ "name": "sobject-type",
865
+ "summary": "Optional SObject API name to limit the object and field comparison to.",
866
+ "hasDynamicHelp": false,
867
+ "multiple": false,
868
+ "type": "option"
918
869
  }
919
870
  },
920
871
  "hasDynamicHelp": true,
921
872
  "hiddenAliases": [],
922
- "id": "rflib:debug:loggersettings:get",
873
+ "id": "rflib:debug:userpermissions:compare",
923
874
  "pluginAlias": "rflib-plugin",
924
875
  "pluginName": "rflib-plugin",
925
876
  "pluginType": "core",
926
877
  "strict": true,
927
- "summary": "Read all RFLIB Logger Settings from a Salesforce org.",
878
+ "summary": "Compare the permissions of two users and show only the differences.",
928
879
  "enableJsonFlag": true,
929
880
  "isESM": true,
930
881
  "relativePath": [
@@ -932,44 +883,46 @@
932
883
  "commands",
933
884
  "rflib",
934
885
  "debug",
935
- "loggersettings",
936
- "get.js"
886
+ "userpermissions",
887
+ "compare.js"
937
888
  ],
938
889
  "aliasPermutations": [],
939
890
  "permutations": [
940
- "rflib:debug:loggersettings:get",
941
- "debug:rflib:loggersettings:get",
942
- "debug:loggersettings:rflib:get",
943
- "debug:loggersettings:get:rflib",
944
- "rflib:loggersettings:debug:get",
945
- "loggersettings:rflib:debug:get",
946
- "loggersettings:debug:rflib:get",
947
- "loggersettings:debug:get:rflib",
948
- "rflib:loggersettings:get:debug",
949
- "loggersettings:rflib:get:debug",
950
- "loggersettings:get:rflib:debug",
951
- "loggersettings:get:debug:rflib",
952
- "rflib:debug:get:loggersettings",
953
- "debug:rflib:get:loggersettings",
954
- "debug:get:rflib:loggersettings",
955
- "debug:get:loggersettings:rflib",
956
- "rflib:get:debug:loggersettings",
957
- "get:rflib:debug:loggersettings",
958
- "get:debug:rflib:loggersettings",
959
- "get:debug:loggersettings:rflib",
960
- "rflib:get:loggersettings:debug",
961
- "get:rflib:loggersettings:debug",
962
- "get:loggersettings:rflib:debug",
963
- "get:loggersettings:debug:rflib"
891
+ "rflib:debug:userpermissions:compare",
892
+ "debug:rflib:userpermissions:compare",
893
+ "debug:userpermissions:rflib:compare",
894
+ "debug:userpermissions:compare:rflib",
895
+ "rflib:userpermissions:debug:compare",
896
+ "userpermissions:rflib:debug:compare",
897
+ "userpermissions:debug:rflib:compare",
898
+ "userpermissions:debug:compare:rflib",
899
+ "rflib:userpermissions:compare:debug",
900
+ "userpermissions:rflib:compare:debug",
901
+ "userpermissions:compare:rflib:debug",
902
+ "userpermissions:compare:debug:rflib",
903
+ "rflib:debug:compare:userpermissions",
904
+ "debug:rflib:compare:userpermissions",
905
+ "debug:compare:rflib:userpermissions",
906
+ "debug:compare:userpermissions:rflib",
907
+ "rflib:compare:debug:userpermissions",
908
+ "compare:rflib:debug:userpermissions",
909
+ "compare:debug:rflib:userpermissions",
910
+ "compare:debug:userpermissions:rflib",
911
+ "rflib:compare:userpermissions:debug",
912
+ "compare:rflib:userpermissions:debug",
913
+ "compare:userpermissions:rflib:debug",
914
+ "compare:userpermissions:debug:rflib"
964
915
  ]
965
916
  },
966
- "rflib:debug:loggersettings:update": {
917
+ "rflib:debug:userpermissions:get": {
967
918
  "aliases": [],
968
919
  "args": {},
969
- "description": "Creates or updates a single field on an rflib_Logger_Settings__c record in the target org via the Salesforce REST API.\nValidates field values and warns about best-practice violations.\n\nTo update an existing record, provide --record-id. To create a new record, provide --setup-owner-id with an org ID (00D...), profile ID (00E...), or user ID.\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 update access to rflib_Logger_Settings__c).\nFor installation instructions, visit: https://github.com/j-fischer/rflib",
920
+ "description": "Retrieves FLS (Field-Level Security), OLS (Object-Level Security), and Apex class/page permissions for a specific user\nvia the Salesforce REST API. Permissions are aggregated across the user's profile, permission sets, and permission set groups.\n\nUse --sobject-type to narrow FLS or OLS results to a specific SObject.\n\nUse --effective to get the user's combined permissions instead of the raw permission records: one entry per object with its access levels, one entry per field with read and edit (only where the user also has that access on the object), and the names of the accessible Apex classes and Visualforce pages. With --permission-type ALL, the result also lists the user's custom permissions and system permissions.\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 the relevant permission objects).\nFor installation instructions, visit: https://github.com/j-fischer/rflib",
970
921
  "examples": [
971
- "Update the Log_Event_Reporting_Level__c field on an existing record:\n$ sf rflib debug loggersettings update --target-org myOrg --record-id a0A000000001234 --field-name Log_Event_Reporting_Level__c --field-value WARN",
972
- "Create a new org-wide Logger Setting:\n$ sf rflib debug loggersettings update --target-org myOrg --setup-owner-id 00D000000000001 --field-name Log_Event_Reporting_Level__c --field-value WARN"
922
+ "Check all permissions for a user:\n$ sf rflib debug userpermissions get --target-org myOrg --user-id 0057000000XXXXXX --permission-type ALL",
923
+ "Check FLS for a specific object:\n$ sf rflib debug userpermissions get --target-org myOrg --user-id 0057000000XXXXXX --permission-type FLS --sobject-type Account",
924
+ "Check Apex access:\n$ sf rflib debug userpermissions get --target-org myOrg --user-id 0057000000XXXXXX --permission-type APEX",
925
+ "Get the combined permissions of a user, including custom and system permissions:\n$ sf rflib debug userpermissions get --target-org myOrg --user-id 0057000000XXXXXX --permission-type ALL --effective"
973
926
  ],
974
927
  "flags": {
975
928
  "json": {
@@ -998,53 +951,58 @@
998
951
  "multiple": false,
999
952
  "type": "option"
1000
953
  },
1001
- "field-name": {
1002
- "char": "f",
1003
- "description": "The API name of the field to create or update, e.g. Log_Event_Reporting_Level__c. For log level fields, valid values are: TRACE, DEBUG, INFO, WARN, ERROR, FATAL, NONE.",
1004
- "name": "field-name",
954
+ "user-id": {
955
+ "char": "u",
956
+ "description": "The Salesforce User ID (15 or 18 characters) of the user whose permissions should be retrieved.",
957
+ "name": "user-id",
1005
958
  "required": true,
1006
- "summary": "API name of the rflib_Logger_Settings__c field to update.",
959
+ "summary": "Salesforce User ID (15 or 18 character) to check permissions for.",
1007
960
  "hasDynamicHelp": false,
1008
961
  "multiple": false,
1009
962
  "type": "option"
1010
963
  },
1011
- "field-value": {
1012
- "char": "v",
1013
- "description": "The new value to set on the specified field. For log level fields, valid values are: TRACE, DEBUG, INFO, WARN, ERROR, FATAL, NONE.",
1014
- "name": "field-value",
964
+ "permission-type": {
965
+ "char": "t",
966
+ "description": "Controls which permission types are returned:\n - FLS: Field-Level Security only\n - OLS: Object-Level Security only\n - APEX: Apex class and page access only\n - ALL: All three permission types",
967
+ "name": "permission-type",
1015
968
  "required": true,
1016
- "summary": "New value for the specified field.",
969
+ "summary": "Type of permissions to retrieve: FLS, OLS, APEX, or ALL.",
1017
970
  "hasDynamicHelp": false,
1018
971
  "multiple": false,
972
+ "options": [
973
+ "FLS",
974
+ "OLS",
975
+ "APEX",
976
+ "ALL"
977
+ ],
1019
978
  "type": "option"
1020
979
  },
1021
- "record-id": {
1022
- "char": "r",
1023
- "description": "The Salesforce record ID of an existing rflib_Logger_Settings__c record to update. Omit this flag to create a new record (requires --setup-owner-id).",
1024
- "name": "record-id",
1025
- "summary": "ID of an existing rflib_Logger_Settings__c record to update.",
980
+ "sobject-type": {
981
+ "char": "b",
982
+ "description": "Filters Field-Level Security or Object-Level Security results to a specific SObject type, e.g. Account, Contact, Opportunity.",
983
+ "name": "sobject-type",
984
+ "summary": "Optional SObject API name to filter FLS or OLS results.",
1026
985
  "hasDynamicHelp": false,
1027
986
  "multiple": false,
1028
987
  "type": "option"
1029
988
  },
1030
- "setup-owner-id": {
1031
- "char": "s",
1032
- "description": "Required when creating a new Logger Setting record. Accepts an org ID (00D...), profile ID (00E...), or user ID. Read existing record IDs using \"sf rflib debug loggersettings get\".",
1033
- "name": "setup-owner-id",
1034
- "summary": "Setup owner ID for creating a new Logger Setting record.",
1035
- "hasDynamicHelp": false,
1036
- "multiple": false,
1037
- "type": "option"
989
+ "effective": {
990
+ "char": "e",
991
+ "description": "Merges the permissions from the profile, permission sets, and permission set groups. Objects list their access levels (read, create, edit, delete, viewall, modifyall, viewallfields), fields list read and edit, and Apex classes, Visualforce pages, and custom permissions are listed by name. System permissions are included for --permission-type ALL. With --effective, --user-id also accepts a username.",
992
+ "name": "effective",
993
+ "summary": "Return the user's combined permissions instead of the raw permission records.",
994
+ "allowNo": false,
995
+ "type": "boolean"
1038
996
  }
1039
997
  },
1040
998
  "hasDynamicHelp": true,
1041
999
  "hiddenAliases": [],
1042
- "id": "rflib:debug:loggersettings:update",
1000
+ "id": "rflib:debug:userpermissions:get",
1043
1001
  "pluginAlias": "rflib-plugin",
1044
1002
  "pluginName": "rflib-plugin",
1045
1003
  "pluginType": "core",
1046
1004
  "strict": true,
1047
- "summary": "Create or update an RFLIB Logger Setting in a Salesforce org.",
1005
+ "summary": "Check Salesforce permissions for a user in the target org.",
1048
1006
  "enableJsonFlag": true,
1049
1007
  "isESM": true,
1050
1008
  "relativePath": [
@@ -1052,47 +1010,45 @@
1052
1010
  "commands",
1053
1011
  "rflib",
1054
1012
  "debug",
1055
- "loggersettings",
1056
- "update.js"
1013
+ "userpermissions",
1014
+ "get.js"
1057
1015
  ],
1058
1016
  "aliasPermutations": [],
1059
1017
  "permutations": [
1060
- "rflib:debug:loggersettings:update",
1061
- "debug:rflib:loggersettings:update",
1062
- "debug:loggersettings:rflib:update",
1063
- "debug:loggersettings:update:rflib",
1064
- "rflib:loggersettings:debug:update",
1065
- "loggersettings:rflib:debug:update",
1066
- "loggersettings:debug:rflib:update",
1067
- "loggersettings:debug:update:rflib",
1068
- "rflib:loggersettings:update:debug",
1069
- "loggersettings:rflib:update:debug",
1070
- "loggersettings:update:rflib:debug",
1071
- "loggersettings:update:debug:rflib",
1072
- "rflib:debug:update:loggersettings",
1073
- "debug:rflib:update:loggersettings",
1074
- "debug:update:rflib:loggersettings",
1075
- "debug:update:loggersettings:rflib",
1076
- "rflib:update:debug:loggersettings",
1077
- "update:rflib:debug:loggersettings",
1078
- "update:debug:rflib:loggersettings",
1079
- "update:debug:loggersettings:rflib",
1080
- "rflib:update:loggersettings:debug",
1081
- "update:rflib:loggersettings:debug",
1082
- "update:loggersettings:rflib:debug",
1083
- "update:loggersettings:debug:rflib"
1018
+ "rflib:debug:userpermissions:get",
1019
+ "debug:rflib:userpermissions:get",
1020
+ "debug:userpermissions:rflib:get",
1021
+ "debug:userpermissions:get:rflib",
1022
+ "rflib:userpermissions:debug:get",
1023
+ "userpermissions:rflib:debug:get",
1024
+ "userpermissions:debug:rflib:get",
1025
+ "userpermissions:debug:get:rflib",
1026
+ "rflib:userpermissions:get:debug",
1027
+ "userpermissions:rflib:get:debug",
1028
+ "userpermissions:get:rflib:debug",
1029
+ "userpermissions:get:debug:rflib",
1030
+ "rflib:debug:get:userpermissions",
1031
+ "debug:rflib:get:userpermissions",
1032
+ "debug:get:rflib:userpermissions",
1033
+ "debug:get:userpermissions:rflib",
1034
+ "rflib:get:debug:userpermissions",
1035
+ "get:rflib:debug:userpermissions",
1036
+ "get:debug:rflib:userpermissions",
1037
+ "get:debug:userpermissions:rflib",
1038
+ "rflib:get:userpermissions:debug",
1039
+ "get:rflib:userpermissions:debug",
1040
+ "get:userpermissions:rflib:debug",
1041
+ "get:userpermissions:debug:rflib"
1084
1042
  ]
1085
1043
  },
1086
- "rflib:debug:userpermissions:check": {
1044
+ "rflib:debug:userpermissions:whohas": {
1087
1045
  "aliases": [],
1088
1046
  "args": {},
1089
- "description": "Answers questions such as \"Can this user edit Account.AnnualRevenue?\" or \"Does this user have Modify All Data?\". The command checks the user's profile, permission sets, and permission set groups, and returns whether the permission is granted and which of them grant it.\n\nCheck exactly one of the following:\n - An object permission (--object, with --access read, create, edit, delete, viewall, modifyall, or viewallfields)\n - A field permission (--field, with --access read or edit)\n - Access to an Apex class (--apex-class) or a Visualforce page (--apex-page)\n - A custom permission (--custom-permission)\n - A system permission (--system-permission), e.g. ModifyAllData or ViewSetup\n\nField checks take the object permissions into account: a field is only accessible when the user also has Read (or Edit) on the object. View All Fields on the object grants Read on all of its fields. Apex class and Visualforce page checks include access granted by the Author Apex and Customize Application system permissions.\n\nSharing and record-level access aren't checked.\n\nThe command only reads standard setup objects, so the RFLIB package doesn't need to be installed. The running user needs the View Setup and Configuration permission.",
1047
+ "description": "The reverse of userpermissions check. Answers questions such as \"Who can edit Account.AnnualRevenue?\" or \"Who has Modify All Data?\". The command finds every profile, permission set, and permission set group that grants the permission, and the users who are assigned to them.\n\nCheck exactly one of the following:\n - An object permission (--object, with --access read, create, edit, delete, viewall, modifyall, or viewallfields)\n - A field permission (--field, with --access read or edit)\n - Access to an Apex class (--apex-class) or a Visualforce page (--apex-page)\n - A custom permission (--custom-permission)\n - A system permission (--system-permission), e.g. ModifyAllData or ViewSetup\n\nThe same permission rules as userpermissions check apply: for field checks, only users who also have the matching access on the object are included, and View All Fields grants Read on all fields. Apex class and Visualforce page checks include access granted by the Author Apex and Customize Application system permissions.\n\nInactive users are excluded unless you specify --include-inactive. The result lists up to --user-limit users; the total count is always returned.\n\nThe command only reads standard setup objects, so the RFLIB package doesn't need to be installed. The running user needs the View Setup and Configuration permission.",
1090
1048
  "examples": [
1091
- "Check whether a user can edit a field:\n$ sf rflib debug userpermissions check --target-org myOrg --user jane@example.com --field Account.AnnualRevenue --access edit",
1092
- "Check whether a user can delete Opportunity records:\n$ sf rflib debug userpermissions check --target-org myOrg --user 0057000000XXXXXX --object Opportunity --access delete",
1093
- "Check access to an Apex class:\n$ sf rflib debug userpermissions check --target-org myOrg --user jane@example.com --apex-class OrderController",
1094
- "Check a custom permission:\n$ sf rflib debug userpermissions check --target-org myOrg --user jane@example.com --custom-permission Approve_Discounts",
1095
- "Check a system permission:\n$ sf rflib debug userpermissions check --target-org myOrg --user jane@example.com --system-permission ModifyAllData"
1049
+ "Find the users who can edit a field:\n$ sf rflib debug userpermissions whohas --target-org myOrg --field Account.AnnualRevenue --access edit",
1050
+ "Find the users who have Modify All Data:\n$ sf rflib debug userpermissions whohas --target-org myOrg --system-permission ModifyAllData",
1051
+ "Find the users who can access an Apex class, including inactive users:\n$ sf rflib debug userpermissions whohas --target-org myOrg --apex-class OrderController --include-inactive"
1096
1052
  ],
1097
1053
  "flags": {
1098
1054
  "json": {
@@ -1112,7 +1068,7 @@
1112
1068
  },
1113
1069
  "target-org": {
1114
1070
  "char": "o",
1115
- "description": "The username or alias of the Salesforce org to check the permission in.",
1071
+ "description": "The username or alias of the Salesforce org to search.",
1116
1072
  "name": "target-org",
1117
1073
  "noCacheDefault": true,
1118
1074
  "required": true,
@@ -1121,19 +1077,9 @@
1121
1077
  "multiple": false,
1122
1078
  "type": "option"
1123
1079
  },
1124
- "user": {
1125
- "char": "u",
1126
- "description": "The Salesforce User ID (15 or 18 characters) or the username of the user whose permission should be checked.",
1127
- "name": "user",
1128
- "required": true,
1129
- "summary": "User ID (15 or 18 characters) or username of the user to check.",
1130
- "hasDynamicHelp": false,
1131
- "multiple": false,
1132
- "type": "option"
1133
- },
1134
1080
  "object": {
1135
1081
  "char": "b",
1136
- "description": "Checks an object permission. Use --access to choose which one; the default is read.",
1082
+ "description": "Finds users with an object permission. Use --access to choose which one; the default is read.",
1137
1083
  "name": "object",
1138
1084
  "summary": "API name of the object to check object permissions for, e.g. Account.",
1139
1085
  "hasDynamicHelp": false,
@@ -1142,7 +1088,7 @@
1142
1088
  },
1143
1089
  "field": {
1144
1090
  "char": "f",
1145
- "description": "Checks field-level security for a field. Use --access read (default) or --access edit.",
1091
+ "description": "Finds users with access to a field. Use --access read (default) or --access edit.",
1146
1092
  "name": "field",
1147
1093
  "summary": "Field to check field-level security for, in the form Object.Field, e.g. Account.AnnualRevenue.",
1148
1094
  "hasDynamicHelp": false,
@@ -1168,7 +1114,7 @@
1168
1114
  "type": "option"
1169
1115
  },
1170
1116
  "apex-class": {
1171
- "description": "Checks whether the user can access an Apex class. Use namespace__Name or namespace.Name for a class in a managed package.",
1117
+ "description": "Finds users who can access an Apex class. Use namespace__Name or namespace.Name for a class in a managed package.",
1172
1118
  "name": "apex-class",
1173
1119
  "summary": "Name of the Apex class to check access for.",
1174
1120
  "hasDynamicHelp": false,
@@ -1176,7 +1122,7 @@
1176
1122
  "type": "option"
1177
1123
  },
1178
1124
  "apex-page": {
1179
- "description": "Checks whether the user can access a Visualforce page. Use namespace__Name for a page in a managed package.",
1125
+ "description": "Finds users who can access a Visualforce page. Use namespace__Name for a page in a managed package.",
1180
1126
  "name": "apex-page",
1181
1127
  "summary": "Name of the Visualforce page to check access for.",
1182
1128
  "hasDynamicHelp": false,
@@ -1184,7 +1130,7 @@
1184
1130
  "type": "option"
1185
1131
  },
1186
1132
  "custom-permission": {
1187
- "description": "Checks whether the user has a custom permission. Use namespace__Name for a custom permission in a managed package.",
1133
+ "description": "Finds users who have a custom permission. Use namespace__Name for a custom permission in a managed package.",
1188
1134
  "name": "custom-permission",
1189
1135
  "summary": "API name of the custom permission to check.",
1190
1136
  "hasDynamicHelp": false,
@@ -1192,22 +1138,39 @@
1192
1138
  "type": "option"
1193
1139
  },
1194
1140
  "system-permission": {
1195
- "description": "Checks a system (user) permission. Use the name of the permission field on the PermissionSet object, with or without the \"Permissions\" prefix, e.g. ModifyAllData, ViewAllData, ApiEnabled, or PermissionsAuthorApex.",
1141
+ "description": "Finds users who have a system (user) permission. Use the name of the permission field on the PermissionSet object, with or without the \"Permissions\" prefix.",
1196
1142
  "name": "system-permission",
1197
1143
  "summary": "API name of the system permission to check, e.g. ModifyAllData or ViewSetup.",
1198
1144
  "hasDynamicHelp": false,
1199
1145
  "multiple": false,
1200
1146
  "type": "option"
1147
+ },
1148
+ "include-inactive": {
1149
+ "description": "By default, only active users are returned. Specify this flag to include inactive users as well.",
1150
+ "name": "include-inactive",
1151
+ "summary": "Include inactive users.",
1152
+ "allowNo": false,
1153
+ "type": "boolean"
1154
+ },
1155
+ "user-limit": {
1156
+ "char": "l",
1157
+ "description": "Limits the number of users in the result. The total number of matching users is always returned in userCount.",
1158
+ "name": "user-limit",
1159
+ "summary": "Maximum number of users to return. Default: 200, maximum: 2000.",
1160
+ "default": 200,
1161
+ "hasDynamicHelp": false,
1162
+ "multiple": false,
1163
+ "type": "option"
1201
1164
  }
1202
1165
  },
1203
1166
  "hasDynamicHelp": true,
1204
1167
  "hiddenAliases": [],
1205
- "id": "rflib:debug:userpermissions:check",
1168
+ "id": "rflib:debug:userpermissions:whohas",
1206
1169
  "pluginAlias": "rflib-plugin",
1207
1170
  "pluginName": "rflib-plugin",
1208
1171
  "pluginType": "core",
1209
1172
  "strict": true,
1210
- "summary": "Check whether a user has a specific permission, and where it comes from.",
1173
+ "summary": "Find the users who have a specific permission, and what grants it.",
1211
1174
  "enableJsonFlag": true,
1212
1175
  "isESM": true,
1213
1176
  "relativePath": [
@@ -1216,44 +1179,42 @@
1216
1179
  "rflib",
1217
1180
  "debug",
1218
1181
  "userpermissions",
1219
- "check.js"
1182
+ "whohas.js"
1220
1183
  ],
1221
1184
  "aliasPermutations": [],
1222
1185
  "permutations": [
1223
- "rflib:debug:userpermissions:check",
1224
- "debug:rflib:userpermissions:check",
1225
- "debug:userpermissions:rflib:check",
1226
- "debug:userpermissions:check:rflib",
1227
- "rflib:userpermissions:debug:check",
1228
- "userpermissions:rflib:debug:check",
1229
- "userpermissions:debug:rflib:check",
1230
- "userpermissions:debug:check:rflib",
1231
- "rflib:userpermissions:check:debug",
1232
- "userpermissions:rflib:check:debug",
1233
- "userpermissions:check:rflib:debug",
1234
- "userpermissions:check:debug:rflib",
1235
- "rflib:debug:check:userpermissions",
1236
- "debug:rflib:check:userpermissions",
1237
- "debug:check:rflib:userpermissions",
1238
- "debug:check:userpermissions:rflib",
1239
- "rflib:check:debug:userpermissions",
1240
- "check:rflib:debug:userpermissions",
1241
- "check:debug:rflib:userpermissions",
1242
- "check:debug:userpermissions:rflib",
1243
- "rflib:check:userpermissions:debug",
1244
- "check:rflib:userpermissions:debug",
1245
- "check:userpermissions:rflib:debug",
1246
- "check:userpermissions:debug:rflib"
1186
+ "rflib:debug:userpermissions:whohas",
1187
+ "debug:rflib:userpermissions:whohas",
1188
+ "debug:userpermissions:rflib:whohas",
1189
+ "debug:userpermissions:whohas:rflib",
1190
+ "rflib:userpermissions:debug:whohas",
1191
+ "userpermissions:rflib:debug:whohas",
1192
+ "userpermissions:debug:rflib:whohas",
1193
+ "userpermissions:debug:whohas:rflib",
1194
+ "rflib:userpermissions:whohas:debug",
1195
+ "userpermissions:rflib:whohas:debug",
1196
+ "userpermissions:whohas:rflib:debug",
1197
+ "userpermissions:whohas:debug:rflib",
1198
+ "rflib:debug:whohas:userpermissions",
1199
+ "debug:rflib:whohas:userpermissions",
1200
+ "debug:whohas:rflib:userpermissions",
1201
+ "debug:whohas:userpermissions:rflib",
1202
+ "rflib:whohas:debug:userpermissions",
1203
+ "whohas:rflib:debug:userpermissions",
1204
+ "whohas:debug:rflib:userpermissions",
1205
+ "whohas:debug:userpermissions:rflib",
1206
+ "rflib:whohas:userpermissions:debug",
1207
+ "whohas:rflib:userpermissions:debug",
1208
+ "whohas:userpermissions:rflib:debug",
1209
+ "whohas:userpermissions:debug:rflib"
1247
1210
  ]
1248
1211
  },
1249
- "rflib:debug:userpermissions:get": {
1212
+ "rflib:logging:apex:instrument": {
1250
1213
  "aliases": [],
1251
1214
  "args": {},
1252
- "description": "Retrieves FLS (Field-Level Security), OLS (Object-Level Security), and Apex class/page permissions for a specific user\nvia the Salesforce REST API. Permissions are aggregated across the user's profile, permission sets, and permission set groups.\n\nUse --sobject-type to narrow FLS or OLS results to a specific SObject.\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 the relevant permission objects).\nFor installation instructions, visit: https://github.com/j-fischer/rflib",
1215
+ "description": "Analyzes Apex classes and adds RFLIB logging statements for method entry and error handling. Adds class-level logger initialization if not already present. \nFor Apex Test classes, the `@TestSetup` method will be updated to include `rflib_TestUtil.prepareLoggerForUnitTests();` to avoid test failures caused by the logging framework.",
1253
1216
  "examples": [
1254
- "Check all permissions for a user:\n$ sf rflib debug userpermissions get --target-org myOrg --user-id 0057000000XXXXXX --permission-type ALL",
1255
- "Check FLS for a specific object:\n$ sf rflib debug userpermissions get --target-org myOrg --user-id 0057000000XXXXXX --permission-type FLS --sobject-type Account",
1256
- "Check Apex access:\n$ sf rflib debug userpermissions get --target-org myOrg --user-id 0057000000XXXXXX --permission-type APEX"
1217
+ "- Add logging statements to all Apex classes in a directory:\n\n$ sf rflib logging apex instrument --sourcepath force-app/main/default/classes\n\n- Preview changes without modifying files:\n\n$ sf rflib logging apex instrument --sourcepath force-app/main/default/classes --dryrun\n\n- Add logging statements and format code:\n\n$ sf rflib logging apex instrument --sourcepath force-app/main/default/classes --prettier"
1257
1218
  ],
1258
1219
  "flags": {
1259
1220
  "json": {
@@ -1271,99 +1232,544 @@
1271
1232
  "multiple": false,
1272
1233
  "type": "option"
1273
1234
  },
1274
- "target-org": {
1275
- "char": "o",
1276
- "description": "The username or alias of the Salesforce org containing the RFLIB base package.",
1277
- "name": "target-org",
1278
- "noCacheDefault": true,
1235
+ "sourcepath": {
1236
+ "char": "s",
1237
+ "description": "Path to the source directory containing Apex classes that should be instrumented with RFLIB logging statements. Test classes (ending with 'Test.cls') are automatically excluded.",
1238
+ "name": "sourcepath",
1279
1239
  "required": true,
1280
- "summary": "Username or alias of the target org.",
1281
- "hasDynamicHelp": true,
1240
+ "summary": "Directory containing Apex classes to instrument with logging.",
1241
+ "hasDynamicHelp": false,
1282
1242
  "multiple": false,
1283
1243
  "type": "option"
1284
1244
  },
1285
- "user-id": {
1286
- "char": "u",
1287
- "description": "The Salesforce User ID (15 or 18 characters) of the user whose permissions should be retrieved.",
1288
- "name": "user-id",
1289
- "required": true,
1290
- "summary": "Salesforce User ID (15 or 18 character) to check permissions for.",
1245
+ "dryrun": {
1246
+ "char": "d",
1247
+ "description": "When enabled, shows which files would be modified without making actual changes. Useful for reviewing the impact before applying changes.",
1248
+ "name": "dryrun",
1249
+ "summary": "Preview changes without modifying files.",
1250
+ "allowNo": false,
1251
+ "type": "boolean"
1252
+ },
1253
+ "prettier": {
1254
+ "char": "p",
1255
+ "description": "When enabled, formats the modified Apex files using prettier-plugin-apex after adding logging statements. Maintains consistent code style with:\n\n- 120 character line width\n- 4 space indentation\n- Single quotes for strings\n- No tabs",
1256
+ "name": "prettier",
1257
+ "summary": "Format modified files using Prettier.",
1258
+ "allowNo": false,
1259
+ "type": "boolean"
1260
+ },
1261
+ "no-if": {
1262
+ "description": "When provided, the command will not add log statements inside of `if` and `else` blocks.",
1263
+ "name": "no-if",
1264
+ "summary": "Exclude the instrumentation of if-else statements.",
1265
+ "allowNo": false,
1266
+ "type": "boolean"
1267
+ },
1268
+ "no-catch": {
1269
+ "description": "When provided, the command will not add error log statements inside of `catch` blocks.",
1270
+ "name": "no-catch",
1271
+ "summary": "Exclude the instrumentation of catch blocks.",
1272
+ "allowNo": false,
1273
+ "type": "boolean"
1274
+ },
1275
+ "skip-instrumented": {
1276
+ "description": "When provided, the command will not add log statements to any Apex class that contains the `rflib_Logger` reference.",
1277
+ "name": "skip-instrumented",
1278
+ "summary": "Skips any files where a logger is already present.",
1279
+ "allowNo": false,
1280
+ "type": "boolean"
1281
+ },
1282
+ "verbose": {
1283
+ "char": "v",
1284
+ "description": "When provided with --dryrun, prints the paths of the files that would be modified.",
1285
+ "name": "verbose",
1286
+ "summary": "Enable verbose output.",
1287
+ "allowNo": false,
1288
+ "type": "boolean"
1289
+ },
1290
+ "exclude": {
1291
+ "char": "e",
1292
+ "description": "Exclude specific files or directories that match the provided glob pattern. For example, use --exclude \"**/Generated_*.cls\" to skip auto-generated classes.",
1293
+ "name": "exclude",
1294
+ "summary": "Exclude files or directories from instrumentation based on a glob pattern.",
1291
1295
  "hasDynamicHelp": false,
1292
1296
  "multiple": false,
1293
1297
  "type": "option"
1294
1298
  },
1295
- "permission-type": {
1296
- "char": "t",
1297
- "description": "Controls which permission types are returned:\n - FLS: Field-Level Security only\n - OLS: Object-Level Security only\n - APEX: Apex class and page access only\n - ALL: All three permission types",
1298
- "name": "permission-type",
1299
+ "concurrency": {
1300
+ "char": "c",
1301
+ "description": "Controls the maximum number of files to process at the same time. This is useful in very large codebases to prevent excessive memory usage or file descriptor exhaustion. Defaults to 10.",
1302
+ "name": "concurrency",
1303
+ "summary": "Limits the number of files processed concurrently.",
1304
+ "default": 10,
1305
+ "hasDynamicHelp": false,
1306
+ "multiple": false,
1307
+ "type": "option"
1308
+ }
1309
+ },
1310
+ "hasDynamicHelp": false,
1311
+ "hiddenAliases": [],
1312
+ "id": "rflib:logging:apex:instrument",
1313
+ "pluginAlias": "rflib-plugin",
1314
+ "pluginName": "rflib-plugin",
1315
+ "pluginType": "core",
1316
+ "strict": true,
1317
+ "summary": "Instrument Apex classes with RFLIB logging statements automatically.",
1318
+ "enableJsonFlag": true,
1319
+ "isESM": true,
1320
+ "relativePath": [
1321
+ "lib",
1322
+ "commands",
1323
+ "rflib",
1324
+ "logging",
1325
+ "apex",
1326
+ "instrument.js"
1327
+ ],
1328
+ "aliasPermutations": [],
1329
+ "permutations": [
1330
+ "rflib:logging:apex:instrument",
1331
+ "logging:rflib:apex:instrument",
1332
+ "logging:apex:rflib:instrument",
1333
+ "logging:apex:instrument:rflib",
1334
+ "rflib:apex:logging:instrument",
1335
+ "apex:rflib:logging:instrument",
1336
+ "apex:logging:rflib:instrument",
1337
+ "apex:logging:instrument:rflib",
1338
+ "rflib:apex:instrument:logging",
1339
+ "apex:rflib:instrument:logging",
1340
+ "apex:instrument:rflib:logging",
1341
+ "apex:instrument:logging:rflib",
1342
+ "rflib:logging:instrument:apex",
1343
+ "logging:rflib:instrument:apex",
1344
+ "logging:instrument:rflib:apex",
1345
+ "logging:instrument:apex:rflib",
1346
+ "rflib:instrument:logging:apex",
1347
+ "instrument:rflib:logging:apex",
1348
+ "instrument:logging:rflib:apex",
1349
+ "instrument:logging:apex:rflib",
1350
+ "rflib:instrument:apex:logging",
1351
+ "instrument:rflib:apex:logging",
1352
+ "instrument:apex:rflib:logging",
1353
+ "instrument:apex:logging:rflib"
1354
+ ]
1355
+ },
1356
+ "rflib:logging:aura:instrument": {
1357
+ "aliases": [],
1358
+ "args": {},
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
+ "examples": [
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"
1362
+ ],
1363
+ "flags": {
1364
+ "json": {
1365
+ "description": "Format output as json.",
1366
+ "helpGroup": "GLOBAL",
1367
+ "name": "json",
1368
+ "allowNo": false,
1369
+ "type": "boolean"
1370
+ },
1371
+ "flags-dir": {
1372
+ "helpGroup": "GLOBAL",
1373
+ "name": "flags-dir",
1374
+ "summary": "Import flag values from a directory.",
1375
+ "hasDynamicHelp": false,
1376
+ "multiple": false,
1377
+ "type": "option"
1378
+ },
1379
+ "sourcepath": {
1380
+ "char": "s",
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()",
1382
+ "name": "sourcepath",
1299
1383
  "required": true,
1300
- "summary": "Type of permissions to retrieve: FLS, OLS, APEX, or ALL.",
1384
+ "summary": "Directory containing Aura components to instrument with logging.",
1301
1385
  "hasDynamicHelp": false,
1302
1386
  "multiple": false,
1303
- "options": [
1304
- "FLS",
1305
- "OLS",
1306
- "APEX",
1307
- "ALL"
1308
- ],
1309
1387
  "type": "option"
1310
1388
  },
1311
- "sobject-type": {
1312
- "char": "b",
1313
- "description": "Filters Field-Level Security or Object-Level Security results to a specific SObject type, e.g. Account, Contact, Opportunity.",
1314
- "name": "sobject-type",
1315
- "summary": "Optional SObject API name to filter FLS or OLS results.",
1389
+ "dryrun": {
1390
+ "char": "d",
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",
1392
+ "name": "dryrun",
1393
+ "summary": "Preview changes without modifying files.",
1394
+ "allowNo": false,
1395
+ "type": "boolean"
1396
+ },
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.",
1402
+ "allowNo": false,
1403
+ "type": "boolean"
1404
+ },
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.",
1416
+ "allowNo": false,
1417
+ "type": "boolean"
1418
+ },
1419
+ "verbose": {
1420
+ "char": "v",
1421
+ "description": "When provided with --dryrun, prints the paths of the files that would be modified.",
1422
+ "name": "verbose",
1423
+ "summary": "Enable verbose output.",
1424
+ "allowNo": false,
1425
+ "type": "boolean"
1426
+ },
1427
+ "exclude": {
1428
+ "char": "e",
1429
+ "description": "Exclude specific files or directories that match the provided glob pattern. For example, use --exclude \"**/Generated_*.cmp\" to skip auto-generated components.",
1430
+ "name": "exclude",
1431
+ "summary": "Exclude files or directories from instrumentation based on a glob pattern.",
1432
+ "hasDynamicHelp": false,
1433
+ "multiple": false,
1434
+ "type": "option"
1435
+ },
1436
+ "concurrency": {
1437
+ "char": "c",
1438
+ "description": "Controls the maximum number of files to process at the same time. This is useful in very large codebases to prevent excessive memory usage or file descriptor exhaustion. Defaults to 10.",
1439
+ "name": "concurrency",
1440
+ "summary": "Limits the number of files processed concurrently.",
1441
+ "default": 10,
1316
1442
  "hasDynamicHelp": false,
1317
1443
  "multiple": false,
1318
1444
  "type": "option"
1319
1445
  }
1320
1446
  },
1321
- "hasDynamicHelp": true,
1447
+ "hasDynamicHelp": false,
1322
1448
  "hiddenAliases": [],
1323
- "id": "rflib:debug:userpermissions:get",
1449
+ "id": "rflib:logging:aura:instrument",
1324
1450
  "pluginAlias": "rflib-plugin",
1325
1451
  "pluginName": "rflib-plugin",
1326
1452
  "pluginType": "core",
1327
1453
  "strict": true,
1328
- "summary": "Check Salesforce permissions for a user in the target org.",
1454
+ "summary": "Instrument Aura Components with RFLIB logging statements automatically.",
1329
1455
  "enableJsonFlag": true,
1330
1456
  "isESM": true,
1331
1457
  "relativePath": [
1332
1458
  "lib",
1333
1459
  "commands",
1334
1460
  "rflib",
1335
- "debug",
1336
- "userpermissions",
1337
- "get.js"
1461
+ "logging",
1462
+ "aura",
1463
+ "instrument.js"
1338
1464
  ],
1339
1465
  "aliasPermutations": [],
1340
1466
  "permutations": [
1341
- "rflib:debug:userpermissions:get",
1342
- "debug:rflib:userpermissions:get",
1343
- "debug:userpermissions:rflib:get",
1344
- "debug:userpermissions:get:rflib",
1345
- "rflib:userpermissions:debug:get",
1346
- "userpermissions:rflib:debug:get",
1347
- "userpermissions:debug:rflib:get",
1348
- "userpermissions:debug:get:rflib",
1349
- "rflib:userpermissions:get:debug",
1350
- "userpermissions:rflib:get:debug",
1351
- "userpermissions:get:rflib:debug",
1352
- "userpermissions:get:debug:rflib",
1353
- "rflib:debug:get:userpermissions",
1354
- "debug:rflib:get:userpermissions",
1355
- "debug:get:rflib:userpermissions",
1356
- "debug:get:userpermissions:rflib",
1357
- "rflib:get:debug:userpermissions",
1358
- "get:rflib:debug:userpermissions",
1359
- "get:debug:rflib:userpermissions",
1360
- "get:debug:userpermissions:rflib",
1361
- "rflib:get:userpermissions:debug",
1362
- "get:rflib:userpermissions:debug",
1363
- "get:userpermissions:rflib:debug",
1364
- "get:userpermissions:debug: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"
1491
+ ]
1492
+ },
1493
+ "rflib:logging:flow:instrument": {
1494
+ "aliases": [],
1495
+ "args": {},
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.",
1497
+ "examples": [
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"
1502
+ ],
1503
+ "flags": {
1504
+ "json": {
1505
+ "description": "Format output as json.",
1506
+ "helpGroup": "GLOBAL",
1507
+ "name": "json",
1508
+ "allowNo": false,
1509
+ "type": "boolean"
1510
+ },
1511
+ "flags-dir": {
1512
+ "helpGroup": "GLOBAL",
1513
+ "name": "flags-dir",
1514
+ "summary": "Import flag values from a directory.",
1515
+ "hasDynamicHelp": false,
1516
+ "multiple": false,
1517
+ "type": "option"
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
+ },
1530
+ "sourcepath": {
1531
+ "char": "s",
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\".",
1533
+ "name": "sourcepath",
1534
+ "required": true,
1535
+ "summary": "Directory containing Flow files to instrument with logging.",
1536
+ "hasDynamicHelp": false,
1537
+ "multiple": false,
1538
+ "type": "option"
1539
+ },
1540
+ "dryrun": {
1541
+ "char": "d",
1542
+ "description": "When enabled, shows which files would be modified without making actual changes. Useful for reviewing the impact before applying changes.",
1543
+ "name": "dryrun",
1544
+ "summary": "Preview changes without modifying files.",
1545
+ "allowNo": false,
1546
+ "type": "boolean"
1547
+ },
1548
+ "skip-instrumented": {
1549
+ "description": "When provided, the command will not add log statements to any Flows that already contain RFLIB logging actions.",
1550
+ "name": "skip-instrumented",
1551
+ "summary": "Skips any files where a logger is already present.",
1552
+ "allowNo": false,
1553
+ "type": "boolean"
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
+ "verbose": {
1563
+ "char": "v",
1564
+ "description": "When provided with --dryrun, prints the paths of the files that would be modified.",
1565
+ "name": "verbose",
1566
+ "summary": "Enable verbose output.",
1567
+ "allowNo": false,
1568
+ "type": "boolean"
1569
+ },
1570
+ "exclude": {
1571
+ "char": "e",
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
+ "name": "exclude",
1574
+ "summary": "Exclude files or directories from instrumentation based on a glob pattern.",
1575
+ "hasDynamicHelp": false,
1576
+ "multiple": false,
1577
+ "type": "option"
1578
+ },
1579
+ "concurrency": {
1580
+ "char": "c",
1581
+ "description": "Controls the maximum number of files to process at the same time. This is useful in very large codebases to prevent excessive memory usage or file descriptor exhaustion. Defaults to 10.",
1582
+ "name": "concurrency",
1583
+ "summary": "Limits the number of files processed concurrently.",
1584
+ "default": 10,
1585
+ "hasDynamicHelp": false,
1586
+ "multiple": false,
1587
+ "type": "option"
1588
+ }
1589
+ },
1590
+ "hasDynamicHelp": true,
1591
+ "hiddenAliases": [],
1592
+ "id": "rflib:logging:flow:instrument",
1593
+ "pluginAlias": "rflib-plugin",
1594
+ "pluginName": "rflib-plugin",
1595
+ "pluginType": "core",
1596
+ "strict": true,
1597
+ "summary": "Adds RFLIB logging statements to Salesforce Flows.",
1598
+ "enableJsonFlag": true,
1599
+ "isESM": true,
1600
+ "relativePath": [
1601
+ "lib",
1602
+ "commands",
1603
+ "rflib",
1604
+ "logging",
1605
+ "flow",
1606
+ "instrument.js"
1607
+ ],
1608
+ "aliasPermutations": [],
1609
+ "permutations": [
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
+ ]
1635
+ },
1636
+ "rflib:logging:lwc:instrument": {
1637
+ "aliases": [],
1638
+ "args": {},
1639
+ "description": "Analyzes Lightning Web Component JavaScript files and adds RFLIB logging statements for:\n- Method entry logging with parameter values\n- Error logging in try-catch blocks\n- Error logging in Promise catch handlers\n- Condition logging in if/else blocks\n- Adds logger import if not present\n- Adds logger initialization if not present\n- Replaces console.log and similar method invocations\n- Formats modified files using Prettier (optional)",
1640
+ "examples": [
1641
+ "- Add logging to all LWC files:\n$ sf rflib logging lwc instrument --sourcepath force-app/main/default/lwc\n\n- Preview changes:\n$ sf rflib logging lwc instrument --sourcepath force-app/main/default/lwc --dryrun\n\n- Add logging and format code:\n$ sf rflib logging lwc instrument --sourcepath force-app/main/default/lwc --prettier\n\n- Process specific component:\n$ sf rflib logging lwc instrument --sourcepath force-app/main/default/lwc/myComponent"
1642
+ ],
1643
+ "flags": {
1644
+ "json": {
1645
+ "description": "Format output as json.",
1646
+ "helpGroup": "GLOBAL",
1647
+ "name": "json",
1648
+ "allowNo": false,
1649
+ "type": "boolean"
1650
+ },
1651
+ "flags-dir": {
1652
+ "helpGroup": "GLOBAL",
1653
+ "name": "flags-dir",
1654
+ "summary": "Import flag values from a directory.",
1655
+ "hasDynamicHelp": false,
1656
+ "multiple": false,
1657
+ "type": "option"
1658
+ },
1659
+ "sourcepath": {
1660
+ "char": "s",
1661
+ "description": "Path to the source directory containing Lightning Web Component JavaScript files that should be instrumented with RFLIB logging statements. Aura component files are automatically excluded. The command will:\n- Process all .js files in the directory and subdirectories\n- Skip files in 'aura' directories\n- Add import statement: import { createLogger } from 'c/rflibLogger'\n- Add logger initialization: const logger = createLogger('ComponentName')",
1662
+ "name": "sourcepath",
1663
+ "required": true,
1664
+ "summary": "Directory containing LWC JavaScript files to instrument with logging.",
1665
+ "hasDynamicHelp": false,
1666
+ "multiple": false,
1667
+ "type": "option"
1668
+ },
1669
+ "dryrun": {
1670
+ "char": "d",
1671
+ "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",
1672
+ "name": "dryrun",
1673
+ "summary": "Preview changes without modifying files.",
1674
+ "allowNo": false,
1675
+ "type": "boolean"
1676
+ },
1677
+ "prettier": {
1678
+ "char": "p",
1679
+ "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",
1680
+ "name": "prettier",
1681
+ "summary": "Format modified files using Prettier.",
1682
+ "allowNo": false,
1683
+ "type": "boolean"
1684
+ },
1685
+ "no-if": {
1686
+ "description": "When provided, the command will not add log statements inside of `if` and `else` blocks.",
1687
+ "name": "no-if",
1688
+ "summary": "Exclude the instrumentation of if-else statements.",
1689
+ "allowNo": false,
1690
+ "type": "boolean"
1691
+ },
1692
+ "skip-instrumented": {
1693
+ "description": "When provided, the command will not add log statements to any Apex class that contains the `rflib` import statement.",
1694
+ "name": "skip-instrumented",
1695
+ "summary": "Skips any files where a logger is already present.",
1696
+ "allowNo": false,
1697
+ "type": "boolean"
1698
+ },
1699
+ "verbose": {
1700
+ "char": "v",
1701
+ "description": "When provided with --dryrun, prints the paths of the files that would be modified.",
1702
+ "name": "verbose",
1703
+ "summary": "Enable verbose output.",
1704
+ "allowNo": false,
1705
+ "type": "boolean"
1706
+ },
1707
+ "exclude": {
1708
+ "char": "e",
1709
+ "description": "Exclude specific files or directories that match the provided glob pattern. For example, use --exclude \"**/Generated_*.js\" to skip auto-generated components.",
1710
+ "name": "exclude",
1711
+ "summary": "Exclude files or directories from instrumentation based on a glob pattern.",
1712
+ "hasDynamicHelp": false,
1713
+ "multiple": false,
1714
+ "type": "option"
1715
+ },
1716
+ "concurrency": {
1717
+ "char": "c",
1718
+ "description": "Controls the maximum number of files to process at the same time. This is useful in very large codebases to prevent excessive memory usage or file descriptor exhaustion. Defaults to 10.",
1719
+ "name": "concurrency",
1720
+ "summary": "Limits the number of files processed concurrently.",
1721
+ "default": 10,
1722
+ "hasDynamicHelp": false,
1723
+ "multiple": false,
1724
+ "type": "option"
1725
+ }
1726
+ },
1727
+ "hasDynamicHelp": false,
1728
+ "hiddenAliases": [],
1729
+ "id": "rflib:logging:lwc:instrument",
1730
+ "pluginAlias": "rflib-plugin",
1731
+ "pluginName": "rflib-plugin",
1732
+ "pluginType": "core",
1733
+ "strict": true,
1734
+ "summary": "Instrument Lightning Web Components with RFLIB logging statements automatically.",
1735
+ "enableJsonFlag": true,
1736
+ "isESM": true,
1737
+ "relativePath": [
1738
+ "lib",
1739
+ "commands",
1740
+ "rflib",
1741
+ "logging",
1742
+ "lwc",
1743
+ "instrument.js"
1744
+ ],
1745
+ "aliasPermutations": [],
1746
+ "permutations": [
1747
+ "rflib:logging:lwc:instrument",
1748
+ "logging:rflib:lwc:instrument",
1749
+ "logging:lwc:rflib:instrument",
1750
+ "logging:lwc:instrument:rflib",
1751
+ "rflib:lwc:logging:instrument",
1752
+ "lwc:rflib:logging:instrument",
1753
+ "lwc:logging:rflib:instrument",
1754
+ "lwc:logging:instrument:rflib",
1755
+ "rflib:lwc:instrument:logging",
1756
+ "lwc:rflib:instrument:logging",
1757
+ "lwc:instrument:rflib:logging",
1758
+ "lwc:instrument:logging:rflib",
1759
+ "rflib:logging:instrument:lwc",
1760
+ "logging:rflib:instrument:lwc",
1761
+ "logging:instrument:rflib:lwc",
1762
+ "logging:instrument:lwc:rflib",
1763
+ "rflib:instrument:logging:lwc",
1764
+ "instrument:rflib:logging:lwc",
1765
+ "instrument:logging:rflib:lwc",
1766
+ "instrument:logging:lwc:rflib",
1767
+ "rflib:instrument:lwc:logging",
1768
+ "instrument:rflib:lwc:logging",
1769
+ "instrument:lwc:rflib:logging",
1770
+ "instrument:lwc:logging:rflib"
1365
1771
  ]
1366
1772
  }
1367
1773
  },
1368
- "version": "0.22.0"
1774
+ "version": "0.23.1"
1369
1775
  }