@salesforce/cli 2.142.4 → 2.142.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,101 @@
1
1
  {
2
2
  "commands": {
3
+ "code-analyzer:ast-dump": {
4
+ "aliases": [],
5
+ "args": {},
6
+ "description": "Generate and display the AST that PMD produces when parsing a source file. This is useful for understanding how PMD interprets your code and for developing custom PMD rules. The command supports Apex, Visualforce, HTML, XML, and JavaScript files.",
7
+ "examples": [
8
+ "Dump the AST for an Apex class file in JSON format (default):\n<%= config.bin %> <%= command.id %> --file ./force-app/main/default/classes/MyClass.cls",
9
+ "Dump the AST in XML format:\n<%= config.bin %> <%= command.id %> --file ./force-app/main/default/classes/MyClass.cls --format xml",
10
+ "Dump the AST and write the output to a file:\n<%= config.bin %> <%= command.id %> --file ./force-app/main/default/classes/MyClass.cls --output-file ast-output.json",
11
+ "Explicitly specify the language when the file extension is ambiguous:\n<%= config.bin %> <%= command.id %> --file ./src/myfile.html --language html"
12
+ ],
13
+ "flags": {
14
+ "json": {
15
+ "description": "Format output as json.",
16
+ "helpGroup": "GLOBAL",
17
+ "name": "json",
18
+ "allowNo": false,
19
+ "type": "boolean"
20
+ },
21
+ "flags-dir": {
22
+ "helpGroup": "GLOBAL",
23
+ "name": "flags-dir",
24
+ "summary": "Import flag values from a directory.",
25
+ "hasDynamicHelp": false,
26
+ "multiple": false,
27
+ "type": "option"
28
+ },
29
+ "file": {
30
+ "description": "The file whose AST you want to generate. The file must exist and be a regular file (not a directory). If you don't specify the `--language` flag, the language is auto-detected from the file extension.",
31
+ "name": "file",
32
+ "required": true,
33
+ "summary": "Path to the source file to parse.",
34
+ "hasDynamicHelp": false,
35
+ "multiple": false,
36
+ "type": "option"
37
+ },
38
+ "language": {
39
+ "char": "l",
40
+ "description": "Explicitly specify the language of the source file. Defaults to `apex`. Supported languages are: apex, visualforce, html, xml, and javascript.",
41
+ "name": "language",
42
+ "summary": "Language of the source file.",
43
+ "default": "apex",
44
+ "hasDynamicHelp": false,
45
+ "multiple": false,
46
+ "options": [
47
+ "apex",
48
+ "visualforce",
49
+ "html",
50
+ "xml",
51
+ "javascript"
52
+ ],
53
+ "type": "option"
54
+ },
55
+ "format": {
56
+ "description": "Choose between `xml` (default) or `json`. The XML format outputs the raw PMD AST XML, preserving the full tree structure. The JSON format provides a flat array of nodes with names, attributes, parent, and ancestor information.",
57
+ "name": "format",
58
+ "summary": "Output format for the AST.",
59
+ "default": "xml",
60
+ "hasDynamicHelp": false,
61
+ "multiple": false,
62
+ "options": [
63
+ "json",
64
+ "xml"
65
+ ],
66
+ "type": "option"
67
+ },
68
+ "output-file": {
69
+ "description": "If specified, the AST output is written to this file instead of being displayed in the terminal. The content format depends on the `--format` flag.",
70
+ "name": "output-file",
71
+ "summary": "Path to the file where the AST output is written.",
72
+ "hasDynamicHelp": false,
73
+ "multiple": false,
74
+ "type": "option"
75
+ }
76
+ },
77
+ "hasDynamicHelp": false,
78
+ "hiddenAliases": [],
79
+ "id": "code-analyzer:ast-dump",
80
+ "pluginAlias": "@salesforce/plugin-code-analyzer",
81
+ "pluginName": "@salesforce/plugin-code-analyzer",
82
+ "pluginType": "jit",
83
+ "strict": true,
84
+ "summary": "Dump the Abstract Syntax Tree (AST) for a given source file.",
85
+ "enableJsonFlag": true,
86
+ "isESM": true,
87
+ "relativePath": [
88
+ "lib",
89
+ "commands",
90
+ "code-analyzer",
91
+ "ast-dump.js"
92
+ ],
93
+ "aliasPermutations": [],
94
+ "permutations": [
95
+ "code-analyzer:ast-dump",
96
+ "ast-dump:code-analyzer"
97
+ ]
98
+ },
3
99
  "code-analyzer:config": {
4
100
  "aliases": [],
5
101
  "args": {},
@@ -5406,5 +5502,5 @@
5406
5502
  "requiresProject": true
5407
5503
  }
5408
5504
  },
5409
- "version": "2.142.4"
5505
+ "version": "2.142.6"
5410
5506
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@salesforce/cli",
3
3
  "description": "The Salesforce CLI",
4
- "version": "2.142.4",
4
+ "version": "2.142.6",
5
5
  "author": "Salesforce",
6
6
  "bin": {
7
7
  "sf": "./bin/run.js",
@@ -76,7 +76,7 @@
76
76
  "@salesforce/plugin-user"
77
77
  ],
78
78
  "jitPlugins": {
79
- "@salesforce/plugin-code-analyzer": "5.13.0",
79
+ "@salesforce/plugin-code-analyzer": "5.14.0",
80
80
  "@salesforce/plugin-community": "3.3.70",
81
81
  "@salesforce/plugin-custom-metadata": "3.3.109",
82
82
  "@salesforce/plugin-dev": "2.5.2",
@@ -153,7 +153,7 @@
153
153
  "@oclif/plugin-not-found": "3.2.88",
154
154
  "@oclif/plugin-plugins": "5.4.80",
155
155
  "@oclif/plugin-search": "1.2.52",
156
- "@oclif/plugin-update": "4.7.53",
156
+ "@oclif/plugin-update": "4.7.54",
157
157
  "@oclif/plugin-version": "2.2.50",
158
158
  "@oclif/plugin-warn-if-update-available": "3.1.68",
159
159
  "@oclif/plugin-which": "3.2.58",
@@ -169,12 +169,12 @@
169
169
  "@salesforce/plugin-limits": "3.3.96",
170
170
  "@salesforce/plugin-marketplace": "1.3.35",
171
171
  "@salesforce/plugin-org": "5.11.12",
172
- "@salesforce/plugin-packaging": "2.29.6",
172
+ "@salesforce/plugin-packaging": "2.30.1",
173
173
  "@salesforce/plugin-schema": "3.3.122",
174
174
  "@salesforce/plugin-settings": "2.4.89",
175
175
  "@salesforce/plugin-sobject": "1.4.117",
176
176
  "@salesforce/plugin-telemetry": "3.8.27",
177
- "@salesforce/plugin-templates": "56.18.9",
177
+ "@salesforce/plugin-templates": "56.18.12",
178
178
  "@salesforce/plugin-trust": "3.8.26",
179
179
  "@salesforce/plugin-user": "3.10.4",
180
180
  "@salesforce/sf-plugins-core": "12.2.25",
@@ -264,7 +264,7 @@
264
264
  "@salesforce/ts-sinon": "^1.4.36",
265
265
  "@salesforce/ts-types": "^2.0.11",
266
266
  "aws-sdk": "^2.1693.0",
267
- "oclif": "^4.23.18",
267
+ "oclif": "^4.23.24",
268
268
  "ts-node": "^10.9.2",
269
269
  "typescript": "^5.9.3"
270
270
  },