sfdx-hardis 5.15.4 ā 5.16.0
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.
- package/CHANGELOG.md +23 -0
- package/defaults/ci/.github/workflows/check-deploy.yml +1 -0
- package/defaults/ci/.gitlab-ci.yml +1 -0
- package/defaults/ci/Jenkinsfile +1 -0
- package/defaults/ci/azure-pipelines-checks.yml +1 -0
- package/defaults/ci/bitbucket-pipelines.yml +1 -0
- package/lib/commands/hardis/doc/extract/permsetgroups.js +2 -1
- package/lib/commands/hardis/doc/extract/permsetgroups.js.map +1 -1
- package/lib/commands/hardis/doc/project2markdown.d.ts +11 -0
- package/lib/commands/hardis/doc/project2markdown.js +175 -16
- package/lib/commands/hardis/doc/project2markdown.js.map +1 -1
- package/lib/commands/hardis/lint/access.js +7 -6
- package/lib/commands/hardis/lint/access.js.map +1 -1
- package/lib/commands/hardis/package/mergexml.js +2 -1
- package/lib/commands/hardis/package/mergexml.js.map +1 -1
- package/lib/commands/hardis/project/audit/callincallout.js +2 -1
- package/lib/commands/hardis/project/audit/callincallout.js.map +1 -1
- package/lib/commands/hardis/project/audit/remotesites.js +2 -1
- package/lib/commands/hardis/project/audit/remotesites.js.map +1 -1
- package/lib/commands/hardis/project/clean/emptyitems.js +2 -1
- package/lib/commands/hardis/project/clean/emptyitems.js.map +1 -1
- package/lib/commands/hardis/project/clean/flowpositions.js +2 -1
- package/lib/commands/hardis/project/clean/flowpositions.js.map +1 -1
- package/lib/commands/hardis/project/clean/hiddenitems.js +2 -1
- package/lib/commands/hardis/project/clean/hiddenitems.js.map +1 -1
- package/lib/commands/hardis/project/clean/listviews.js +2 -1
- package/lib/commands/hardis/project/clean/listviews.js.map +1 -1
- package/lib/commands/hardis/project/clean/manageditems.js +3 -2
- package/lib/commands/hardis/project/clean/manageditems.js.map +1 -1
- package/lib/commands/hardis/project/clean/minimizeprofiles.js +2 -1
- package/lib/commands/hardis/project/clean/minimizeprofiles.js.map +1 -1
- package/lib/commands/hardis/project/clean/orgmissingitems.js +2 -0
- package/lib/commands/hardis/project/clean/orgmissingitems.js.map +1 -1
- package/lib/commands/hardis/project/clean/references.js +7 -4
- package/lib/commands/hardis/project/clean/references.js.map +1 -1
- package/lib/commands/hardis/project/clean/sensitive-metadatas.js +2 -1
- package/lib/commands/hardis/project/clean/sensitive-metadatas.js.map +1 -1
- package/lib/commands/hardis/project/clean/standarditems.js +3 -2
- package/lib/commands/hardis/project/clean/standarditems.js.map +1 -1
- package/lib/commands/hardis/project/clean/systemdebug.js +2 -1
- package/lib/commands/hardis/project/clean/systemdebug.js.map +1 -1
- package/lib/commands/hardis/project/clean/xml.js +2 -1
- package/lib/commands/hardis/project/clean/xml.js.map +1 -1
- package/lib/commands/hardis/project/deploy/notify.js +59 -6
- package/lib/commands/hardis/project/deploy/notify.js.map +1 -1
- package/lib/commands/hardis/project/fix/profiletabs.js +2 -1
- package/lib/commands/hardis/project/fix/profiletabs.js.map +1 -1
- package/lib/commands/hardis/project/fix/v53flexipages.js +2 -1
- package/lib/commands/hardis/project/fix/v53flexipages.js.map +1 -1
- package/lib/commands/hardis/project/generate/flow-git-diff.js +1 -1
- package/lib/commands/hardis/project/metadata/findduplicates.js +2 -1
- package/lib/commands/hardis/project/metadata/findduplicates.js.map +1 -1
- package/lib/common/aiProvider/agentforceProvider.d.ts +10 -0
- package/lib/common/aiProvider/agentforceProvider.js +66 -0
- package/lib/common/aiProvider/agentforceProvider.js.map +1 -0
- package/lib/common/aiProvider/index.d.ts +1 -1
- package/lib/common/aiProvider/index.js +17 -1
- package/lib/common/aiProvider/index.js.map +1 -1
- package/lib/common/aiProvider/promptTemplates.d.ts +13 -5
- package/lib/common/aiProvider/promptTemplates.js +86 -44
- package/lib/common/aiProvider/promptTemplates.js.map +1 -1
- package/lib/common/aiProvider/utils.d.ts +11 -0
- package/lib/common/aiProvider/utils.js +50 -0
- package/lib/common/aiProvider/utils.js.map +1 -1
- package/lib/common/gitProvider/utilsMarkdown.d.ts +1 -0
- package/lib/common/gitProvider/utilsMarkdown.js +6 -0
- package/lib/common/gitProvider/utilsMarkdown.js.map +1 -1
- package/lib/common/metadata-utils/index.js +3 -2
- package/lib/common/metadata-utils/index.js.map +1 -1
- package/lib/common/utils/branchStrategyMermaidBuilder.d.ts +4 -0
- package/lib/common/utils/branchStrategyMermaidBuilder.js +84 -70
- package/lib/common/utils/branchStrategyMermaidBuilder.js.map +1 -1
- package/lib/common/utils/deployTipJson.js +1 -1
- package/lib/common/utils/deployTipJson.js.map +1 -1
- package/lib/common/utils/deployTips.js +1 -1
- package/lib/common/utils/deployTips.js.map +1 -1
- package/lib/common/utils/deployUtils.js +3 -2
- package/lib/common/utils/deployUtils.js.map +1 -1
- package/lib/common/utils/docUtils.d.ts +3 -0
- package/lib/common/utils/docUtils.js +76 -0
- package/lib/common/utils/docUtils.js.map +1 -1
- package/lib/common/utils/mermaidUtils.js +71 -75
- package/lib/common/utils/mermaidUtils.js.map +1 -1
- package/lib/common/utils/orgConfigUtils.js +2 -1
- package/lib/common/utils/orgConfigUtils.js.map +1 -1
- package/lib/common/utils/projectUtils.js +1 -1
- package/lib/common/utils/projectUtils.js.map +1 -1
- package/lib/common/utils/workaroundUtils.js +2 -1
- package/lib/common/utils/workaroundUtils.js.map +1 -1
- package/oclif.lock +103 -72
- package/oclif.manifest.json +51 -51
- package/package.json +5 -5
package/oclif.manifest.json
CHANGED
|
@@ -57,12 +57,12 @@
|
|
|
57
57
|
"world:hello"
|
|
58
58
|
]
|
|
59
59
|
},
|
|
60
|
-
"hardis:
|
|
60
|
+
"hardis:cache:clear": {
|
|
61
61
|
"aliases": [],
|
|
62
62
|
"args": {},
|
|
63
|
-
"description": "
|
|
63
|
+
"description": "Clear cache generated by sfdx-hardis",
|
|
64
64
|
"examples": [
|
|
65
|
-
"$ sf hardis:
|
|
65
|
+
"$ sf hardis:cache:clear"
|
|
66
66
|
],
|
|
67
67
|
"flags": {
|
|
68
68
|
"json": {
|
|
@@ -80,28 +80,6 @@
|
|
|
80
80
|
"multiple": false,
|
|
81
81
|
"type": "option"
|
|
82
82
|
},
|
|
83
|
-
"instanceurl": {
|
|
84
|
-
"char": "r",
|
|
85
|
-
"description": "URL of org instance",
|
|
86
|
-
"name": "instanceurl",
|
|
87
|
-
"hasDynamicHelp": false,
|
|
88
|
-
"multiple": false,
|
|
89
|
-
"type": "option"
|
|
90
|
-
},
|
|
91
|
-
"devhub": {
|
|
92
|
-
"char": "h",
|
|
93
|
-
"description": "Also connect associated DevHub",
|
|
94
|
-
"name": "devhub",
|
|
95
|
-
"allowNo": false,
|
|
96
|
-
"type": "boolean"
|
|
97
|
-
},
|
|
98
|
-
"scratchorg": {
|
|
99
|
-
"char": "s",
|
|
100
|
-
"description": "Scratch org",
|
|
101
|
-
"name": "scratchorg",
|
|
102
|
-
"allowNo": false,
|
|
103
|
-
"type": "boolean"
|
|
104
|
-
},
|
|
105
83
|
"debug": {
|
|
106
84
|
"char": "d",
|
|
107
85
|
"description": "Activate debug mode (more logs)",
|
|
@@ -125,38 +103,38 @@
|
|
|
125
103
|
},
|
|
126
104
|
"hasDynamicHelp": false,
|
|
127
105
|
"hiddenAliases": [],
|
|
128
|
-
"id": "hardis:
|
|
106
|
+
"id": "hardis:cache:clear",
|
|
129
107
|
"pluginAlias": "sfdx-hardis",
|
|
130
108
|
"pluginName": "sfdx-hardis",
|
|
131
109
|
"pluginType": "core",
|
|
132
110
|
"strict": true,
|
|
133
111
|
"enableJsonFlag": true,
|
|
134
|
-
"title": "
|
|
112
|
+
"title": "Clear sfdx-hardis cache",
|
|
135
113
|
"requiresProject": false,
|
|
136
114
|
"isESM": true,
|
|
137
115
|
"relativePath": [
|
|
138
116
|
"lib",
|
|
139
117
|
"commands",
|
|
140
118
|
"hardis",
|
|
141
|
-
"
|
|
142
|
-
"
|
|
119
|
+
"cache",
|
|
120
|
+
"clear.js"
|
|
143
121
|
],
|
|
144
122
|
"aliasPermutations": [],
|
|
145
123
|
"permutations": [
|
|
146
|
-
"hardis:
|
|
147
|
-
"
|
|
148
|
-
"
|
|
149
|
-
"hardis:
|
|
150
|
-
"
|
|
151
|
-
"
|
|
124
|
+
"hardis:cache:clear",
|
|
125
|
+
"cache:hardis:clear",
|
|
126
|
+
"cache:clear:hardis",
|
|
127
|
+
"hardis:clear:cache",
|
|
128
|
+
"clear:hardis:cache",
|
|
129
|
+
"clear:cache:hardis"
|
|
152
130
|
]
|
|
153
131
|
},
|
|
154
|
-
"hardis:
|
|
132
|
+
"hardis:auth:login": {
|
|
155
133
|
"aliases": [],
|
|
156
134
|
"args": {},
|
|
157
|
-
"description": "
|
|
135
|
+
"description": "Login to salesforce org",
|
|
158
136
|
"examples": [
|
|
159
|
-
"$ sf hardis:
|
|
137
|
+
"$ sf hardis:auth:login"
|
|
160
138
|
],
|
|
161
139
|
"flags": {
|
|
162
140
|
"json": {
|
|
@@ -174,6 +152,28 @@
|
|
|
174
152
|
"multiple": false,
|
|
175
153
|
"type": "option"
|
|
176
154
|
},
|
|
155
|
+
"instanceurl": {
|
|
156
|
+
"char": "r",
|
|
157
|
+
"description": "URL of org instance",
|
|
158
|
+
"name": "instanceurl",
|
|
159
|
+
"hasDynamicHelp": false,
|
|
160
|
+
"multiple": false,
|
|
161
|
+
"type": "option"
|
|
162
|
+
},
|
|
163
|
+
"devhub": {
|
|
164
|
+
"char": "h",
|
|
165
|
+
"description": "Also connect associated DevHub",
|
|
166
|
+
"name": "devhub",
|
|
167
|
+
"allowNo": false,
|
|
168
|
+
"type": "boolean"
|
|
169
|
+
},
|
|
170
|
+
"scratchorg": {
|
|
171
|
+
"char": "s",
|
|
172
|
+
"description": "Scratch org",
|
|
173
|
+
"name": "scratchorg",
|
|
174
|
+
"allowNo": false,
|
|
175
|
+
"type": "boolean"
|
|
176
|
+
},
|
|
177
177
|
"debug": {
|
|
178
178
|
"char": "d",
|
|
179
179
|
"description": "Activate debug mode (more logs)",
|
|
@@ -197,30 +197,30 @@
|
|
|
197
197
|
},
|
|
198
198
|
"hasDynamicHelp": false,
|
|
199
199
|
"hiddenAliases": [],
|
|
200
|
-
"id": "hardis:
|
|
200
|
+
"id": "hardis:auth:login",
|
|
201
201
|
"pluginAlias": "sfdx-hardis",
|
|
202
202
|
"pluginName": "sfdx-hardis",
|
|
203
203
|
"pluginType": "core",
|
|
204
204
|
"strict": true,
|
|
205
205
|
"enableJsonFlag": true,
|
|
206
|
-
"title": "
|
|
206
|
+
"title": "Login",
|
|
207
207
|
"requiresProject": false,
|
|
208
208
|
"isESM": true,
|
|
209
209
|
"relativePath": [
|
|
210
210
|
"lib",
|
|
211
211
|
"commands",
|
|
212
212
|
"hardis",
|
|
213
|
-
"
|
|
214
|
-
"
|
|
213
|
+
"auth",
|
|
214
|
+
"login.js"
|
|
215
215
|
],
|
|
216
216
|
"aliasPermutations": [],
|
|
217
217
|
"permutations": [
|
|
218
|
-
"hardis:
|
|
219
|
-
"
|
|
220
|
-
"
|
|
221
|
-
"hardis:
|
|
222
|
-
"
|
|
223
|
-
"
|
|
218
|
+
"hardis:auth:login",
|
|
219
|
+
"auth:hardis:login",
|
|
220
|
+
"auth:login:hardis",
|
|
221
|
+
"hardis:login:auth",
|
|
222
|
+
"login:hardis:auth",
|
|
223
|
+
"login:auth:hardis"
|
|
224
224
|
]
|
|
225
225
|
},
|
|
226
226
|
"hardis:config:get": {
|
|
@@ -10499,7 +10499,7 @@
|
|
|
10499
10499
|
"hardis:project:deploy:notify": {
|
|
10500
10500
|
"aliases": [],
|
|
10501
10501
|
"args": {},
|
|
10502
|
-
"description": "Post notifications related to:\n\n
|
|
10502
|
+
"description": "Post notifications related to:\n\n- **Deployment simulation** _(use with --check-only)_\n\n- **Deployment process** _(to call only if your deployment is successful)_\n\n### Integrations\n\nAccording to the [integrations you configured](https://sfdx-hardis.cloudity.com/salesforce-ci-cd-setup-integrations-home/), notifications can contain deployment information and [Flow Visual Git Diff](https://sfdx-hardis.cloudity.com/salesforce-deployment-assistant-home/#flow-visual-git-diff)\n\n - GitHub, Gitlab, Azure DevOps, Bitbucket comments on Pull Requests (including Flows Visual Git Diff)\n\n - Slack, Microsoft Teams, Email deployment summary after a successful deployment\n\n - JIRA tags and comments on tickets that just has been deployed\n\n\n\n\n\n### Flows Visual Git Diff\n\n- Visually show you the differences on a diagram\n\n- Display the update details without having to open any XML !\n\nš© = added\n\nš„ = removed\n\nš§ = updated\n\n\n\n\n\n### In custom CI/CD workflow\n\nExample of usage in a custom CI/CD pipeline:\n\n```bash\n# Disable exit-on-error temporarily\nset +e\n\n# Run the deploy command\nsf project deploy start [....]\nRET_CODE=$?\n\n# Re-enable exit-on-error\nset -e\n\n# Determine MYSTATUS based on return code\nif [ $RET_CODE -eq 0 ]; then\n MYSTATUS=\"valid\"\nelse\n MYSTATUS=\"invalid\"\nfi\n\n# Run the notify command with MYSTATUS\nsf hardis:project:deploy:notify --check-only --deploy-status \"$MYSTATUS\"\n```\n\n### Other usages\n\nThis command is for custom SF Cli pipelines, if you are a sfdx-hardis user, it is already embedded in sf hardis:deploy:smart.\n\nYou can also use [sfdx-hardis wrapper commands of SF deployment commands](https://sfdx-hardis.cloudity.com/salesforce-deployment-assistant-setup/#using-custom-cicd-pipeline)\n",
|
|
10503
10503
|
"examples": [
|
|
10504
10504
|
"$ sf hardis:project:deploy:notify --check-only --deploy-status valid --message \"This deployment check is valid\\n\\nYahooo !!\"",
|
|
10505
10505
|
"$ sf hardis:project:deploy:notify --check-only --deploy-status invalid --message \"This deployment check has failed !\\n\\Oh no !!\"",
|
|
@@ -11889,7 +11889,7 @@
|
|
|
11889
11889
|
"hardis:project:generate:flow-git-diff": {
|
|
11890
11890
|
"aliases": [],
|
|
11891
11891
|
"args": {},
|
|
11892
|
-
"description": "Generate Flow Visual Git Diff markdown between 2 commits\n\
|
|
11892
|
+
"description": "Generate Flow Visual Git Diff markdown between 2 commits\n\nNote: This command might requires @mermaid-js/mermaid-cli to be installed.\n\nRun `npm install @mermaid-js/mermaid-cli --global`\n ",
|
|
11893
11893
|
"examples": [
|
|
11894
11894
|
"$ sf hardis:project:generate:flow-git-diff",
|
|
11895
11895
|
"$ sf hardis:project:generate:flow-git-diff --flow \"force-app/main/default/flows/Opportunity_AfterUpdate_Cloudity.flow-meta.xml\" --commit-before 8bd290e914c9dbdde859dad7e3c399776160d704 --commit-after e0835251bef6e400fb91e42f3a31022f37840f65"
|
|
@@ -14200,5 +14200,5 @@
|
|
|
14200
14200
|
]
|
|
14201
14201
|
}
|
|
14202
14202
|
},
|
|
14203
|
-
"version": "5.
|
|
14203
|
+
"version": "5.16.0"
|
|
14204
14204
|
}
|
package/package.json
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
"description": "Swiss-army-knife Toolbox for Salesforce.\n Allows you to define a complete CD/CD Pipeline.\n Orchestrate base commands and assist users with interactive wizards",
|
|
4
4
|
"author": "NicolasVuillamy @nvuillam",
|
|
5
5
|
"bugs": "https://github.com/hardisgroupcom/sfdx-hardis/issues",
|
|
6
|
-
"version": "5.
|
|
6
|
+
"version": "5.16.0",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@actions/github": "^6.0.0",
|
|
9
9
|
"@gitbeaker/node": "^35.8.1",
|
|
10
|
-
"@oclif/core": "^4.2.
|
|
11
|
-
"@salesforce/core": "^8.8.
|
|
10
|
+
"@oclif/core": "^4.2.3",
|
|
11
|
+
"@salesforce/core": "^8.8.2",
|
|
12
12
|
"@salesforce/sf-plugins-core": "^11.3.12",
|
|
13
13
|
"@slack/types": "^2.14.0",
|
|
14
14
|
"@slack/web-api": "^7.8.0",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"glob": "^11.0.1",
|
|
38
38
|
"he": "^1.2.0",
|
|
39
39
|
"inquirer": "^10.2.2",
|
|
40
|
-
"isomorphic-dompurify": "^2.
|
|
40
|
+
"isomorphic-dompurify": "^2.20.0",
|
|
41
41
|
"jira-client": "^8.2.2",
|
|
42
42
|
"js-yaml": "^4.1.0",
|
|
43
43
|
"make-fetch-happen": "^14.0.3",
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"eslint-plugin-sf-plugin": "^1.20.9",
|
|
94
94
|
"oclif": "^4.17.7",
|
|
95
95
|
"ts-node": "^10.9.2",
|
|
96
|
-
"typescript": "^5.7.
|
|
96
|
+
"typescript": "^5.7.3"
|
|
97
97
|
},
|
|
98
98
|
"engines": {
|
|
99
99
|
"node": ">=20.0.0"
|