@salesforce/cli 2.92.6 → 2.93.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/README.md CHANGED
@@ -25,7 +25,7 @@ $ npm install -g @salesforce/cli
25
25
  $ sf COMMAND
26
26
  running command...
27
27
  $ sf (--version|-v)
28
- @salesforce/cli/2.92.6 linux-x64 node-v22.16.0
28
+ @salesforce/cli/2.93.0 linux-x64 node-v22.16.0
29
29
  $ sf --help [COMMAND]
30
30
  USAGE
31
31
  $ sf COMMAND
@@ -258,7 +258,7 @@ EXAMPLES
258
258
  $ sf agent create --name "Resort Manager" --spec specs/resortManagerAgent.yaml --preview
259
259
  ```
260
260
 
261
- _See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.22.7/src/commands/agent/create.ts)_
261
+ _See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.22.8/src/commands/agent/create.ts)_
262
262
 
263
263
  ## `sf agent generate agent-spec`
264
264
 
@@ -363,7 +363,7 @@ EXAMPLES
363
363
  $ sf agent generate agent-spec --tone formal --agent-user resortmanager@myorg.com
364
364
  ```
365
365
 
366
- _See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.22.7/src/commands/agent/generate/agent-spec.ts)_
366
+ _See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.22.8/src/commands/agent/generate/agent-spec.ts)_
367
367
 
368
368
  ## `sf agent generate template`
369
369
 
@@ -411,7 +411,7 @@ EXAMPLES
411
411
  force-app/main/default/bots/My_Awesome_Agent/My_Awesome_Agent.bot-meta.xml --agent-version 1
412
412
  ```
413
413
 
414
- _See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.22.7/src/commands/agent/generate/template.ts)_
414
+ _See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.22.8/src/commands/agent/generate/template.ts)_
415
415
 
416
416
  ## `sf agent generate test-spec`
417
417
 
@@ -469,7 +469,7 @@ EXAMPLES
469
469
  force-app//main/default/aiEvaluationDefinitions/Resort_Manager_Tests.aiEvaluationDefinition-meta.xml
470
470
  ```
471
471
 
472
- _See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.22.7/src/commands/agent/generate/test-spec.ts)_
472
+ _See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.22.8/src/commands/agent/generate/test-spec.ts)_
473
473
 
474
474
  ## `sf agent preview`
475
475
 
@@ -563,7 +563,7 @@ EXAMPLES
563
563
  --output-dir "transcripts/my-preview"
564
564
  ```
565
565
 
566
- _See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.22.7/src/commands/agent/preview.ts)_
566
+ _See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.22.8/src/commands/agent/preview.ts)_
567
567
 
568
568
  ## `sf agent test create`
569
569
 
@@ -618,7 +618,7 @@ EXAMPLES
618
618
  $ sf agent test create --spec specs/Resort_Manager-testSpec.yaml --api-name Resort_Manager_Test --preview
619
619
  ```
620
620
 
621
- _See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.22.7/src/commands/agent/test/create.ts)_
621
+ _See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.22.8/src/commands/agent/test/create.ts)_
622
622
 
623
623
  ## `sf agent test list`
624
624
 
@@ -653,7 +653,7 @@ EXAMPLES
653
653
  $ sf agent test list --target-org my-org
654
654
  ```
655
655
 
656
- _See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.22.7/src/commands/agent/test/list.ts)_
656
+ _See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.22.8/src/commands/agent/test/list.ts)_
657
657
 
658
658
  ## `sf agent test results`
659
659
 
@@ -709,7 +709,7 @@ FLAG DESCRIPTIONS
709
709
  test results aren't written.
710
710
  ```
711
711
 
712
- _See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.22.7/src/commands/agent/test/results.ts)_
712
+ _See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.22.8/src/commands/agent/test/results.ts)_
713
713
 
714
714
  ## `sf agent test resume`
715
715
 
@@ -772,7 +772,7 @@ FLAG DESCRIPTIONS
772
772
  test results aren't written.
773
773
  ```
774
774
 
775
- _See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.22.7/src/commands/agent/test/resume.ts)_
775
+ _See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.22.8/src/commands/agent/test/resume.ts)_
776
776
 
777
777
  ## `sf agent test run`
778
778
 
@@ -836,7 +836,7 @@ FLAG DESCRIPTIONS
836
836
  test results aren't written.
837
837
  ```
838
838
 
839
- _See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.22.7/src/commands/agent/test/run.ts)_
839
+ _See code: [@salesforce/plugin-agent](https://github.com/salesforcecli/plugin-agent/blob/1.22.8/src/commands/agent/test/run.ts)_
840
840
 
841
841
  ## `sf alias list`
842
842
 
@@ -6832,7 +6832,7 @@ EXAMPLES
6832
6832
  $ sf plugins
6833
6833
  ```
6834
6834
 
6835
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/5.4.38/src/commands/plugins/index.ts)_
6835
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/5.4.39/src/commands/plugins/index.ts)_
6836
6836
 
6837
6837
  ## `sf plugins discover`
6838
6838
 
@@ -6877,7 +6877,7 @@ EXAMPLES
6877
6877
  $ sf plugins inspect @salesforce/plugin-packaging
6878
6878
  ```
6879
6879
 
6880
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/5.4.38/src/commands/plugins/inspect.ts)_
6880
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/5.4.39/src/commands/plugins/inspect.ts)_
6881
6881
 
6882
6882
  ## `sf plugins install PLUGIN`
6883
6883
 
@@ -6926,7 +6926,7 @@ EXAMPLES
6926
6926
  $ sf plugins install someuser/someplugin
6927
6927
  ```
6928
6928
 
6929
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/5.4.38/src/commands/plugins/install.ts)_
6929
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/5.4.39/src/commands/plugins/install.ts)_
6930
6930
 
6931
6931
  ## `sf plugins link PATH`
6932
6932
 
@@ -6957,7 +6957,7 @@ EXAMPLES
6957
6957
  $ sf plugins link @salesforce/plugin-packaging
6958
6958
  ```
6959
6959
 
6960
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/5.4.38/src/commands/plugins/link.ts)_
6960
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/5.4.39/src/commands/plugins/link.ts)_
6961
6961
 
6962
6962
  ## `sf plugins reset`
6963
6963
 
@@ -6972,7 +6972,7 @@ FLAGS
6972
6972
  --reinstall Reinstall all plugins after uninstalling.
6973
6973
  ```
6974
6974
 
6975
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/5.4.38/src/commands/plugins/reset.ts)_
6975
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/5.4.39/src/commands/plugins/reset.ts)_
6976
6976
 
6977
6977
  ## `sf plugins trust verify`
6978
6978
 
@@ -7029,7 +7029,7 @@ EXAMPLES
7029
7029
  $ sf plugins uninstall @salesforce/plugin-packaging
7030
7030
  ```
7031
7031
 
7032
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/5.4.38/src/commands/plugins/uninstall.ts)_
7032
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/5.4.39/src/commands/plugins/uninstall.ts)_
7033
7033
 
7034
7034
  ## `sf plugins update`
7035
7035
 
@@ -7047,7 +7047,7 @@ DESCRIPTION
7047
7047
  Update installed plugins.
7048
7048
  ```
7049
7049
 
7050
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/5.4.38/src/commands/plugins/update.ts)_
7050
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/5.4.39/src/commands/plugins/update.ts)_
7051
7051
 
7052
7052
  ## `sf project convert mdapi`
7053
7053
 
@@ -4,9 +4,8 @@
4
4
  * Licensed under the BSD 3-Clause license.
5
5
  * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
6
6
  */
7
- // eslint-disable-next-line @typescript-eslint/require-await
8
- const hook = async function ({ Command, config }) {
9
- if (process.argv.includes('--json'))
7
+ const hook = async function ({ Command, config, argv }) {
8
+ if (argv.includes('--json') || process.argv.includes('--json'))
10
9
  return;
11
10
  const { plugin } = Command;
12
11
  if (!plugin)
@@ -18,9 +17,27 @@ const hook = async function ({ Command, config }) {
18
17
  const specifiedVersion = jitPlugins[plugin.name] ?? deps[plugin.name];
19
18
  if (!specifiedVersion)
20
19
  return;
21
- if (plugin.version !== specifiedVersion) {
20
+ // Simple semver comparison without external library
21
+ const parseVersion = (version) => version
22
+ .replace(/^[^\d]*/, '')
23
+ .split('.')
24
+ .map((n) => parseInt(n, 10) || 0);
25
+ const isLessThan = (version1, version2) => {
26
+ const v1 = parseVersion(version1);
27
+ const v2 = parseVersion(version2);
28
+ for (let i = 0; i < Math.max(v1.length, v2.length); i++) {
29
+ const num1 = v1[i] || 0;
30
+ const num2 = v2[i] || 0;
31
+ if (num1 < num2)
32
+ return true;
33
+ if (num1 > num2)
34
+ return false;
35
+ }
36
+ return false;
37
+ };
38
+ if (isLessThan(plugin.version, specifiedVersion)) {
22
39
  const { ux } = await import('@oclif/core/ux');
23
- ux.warn(`Plugin ${plugin.name} (${plugin.version}) differs from the version specified by ${config.bin} (${specifiedVersion})`);
40
+ ux.warn(`Plugin ${plugin.name} (${plugin.version}) is older than the version specified by ${config.bin} (${specifiedVersion})`);
24
41
  }
25
42
  };
26
43
  export default hook;
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@salesforce/cli",
3
- "version": "2.92.6",
3
+ "version": "2.93.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@salesforce/cli",
9
- "version": "2.92.6",
9
+ "version": "2.93.0",
10
10
  "hasInstallScript": true,
11
11
  "license": "Apache-2.0",
12
12
  "dependencies": {
@@ -16,7 +16,7 @@
16
16
  "@oclif/plugin-commands": "4.1.25",
17
17
  "@oclif/plugin-help": "6.2.28",
18
18
  "@oclif/plugin-not-found": "3.2.55",
19
- "@oclif/plugin-plugins": "5.4.38",
19
+ "@oclif/plugin-plugins": "5.4.39",
20
20
  "@oclif/plugin-search": "1.2.24",
21
21
  "@oclif/plugin-update": "4.6.42",
22
22
  "@oclif/plugin-version": "2.2.28",
@@ -24,7 +24,7 @@
24
24
  "@oclif/plugin-which": "3.2.35",
25
25
  "@salesforce/core": "^8.9.1",
26
26
  "@salesforce/kit": "^3.1.6",
27
- "@salesforce/plugin-agent": "1.22.7",
27
+ "@salesforce/plugin-agent": "1.22.8",
28
28
  "@salesforce/plugin-apex": "3.6.19",
29
29
  "@salesforce/plugin-api": "1.3.3",
30
30
  "@salesforce/plugin-auth": "3.6.126",
@@ -51,6 +51,7 @@
51
51
  },
52
52
  "devDependencies": {
53
53
  "@oclif/plugin-command-snapshot": "^5.2.3",
54
+ "@oclif/test": "^4.1.13",
54
55
  "@salesforce/dev-scripts": "^11.0.2",
55
56
  "@salesforce/plugin-release-management": "^5.7.0",
56
57
  "@salesforce/ts-sinon": "^1.4.30",
@@ -4137,9 +4138,9 @@
4137
4138
  }
4138
4139
  },
4139
4140
  "node_modules/@oclif/plugin-plugins": {
4140
- "version": "5.4.38",
4141
- "resolved": "https://registry.npmjs.org/@oclif/plugin-plugins/-/plugin-plugins-5.4.38.tgz",
4142
- "integrity": "sha512-tsohAIgtQRYb35G0W2QdubkNfc1Re+LtNujAomHBvz8wfWqPnwtnWGHob79/yxOV1j9R51AHZIuQ35gSdq39Ng==",
4141
+ "version": "5.4.39",
4142
+ "resolved": "https://registry.npmjs.org/@oclif/plugin-plugins/-/plugin-plugins-5.4.39.tgz",
4143
+ "integrity": "sha512-tQPfLugeNbyYHp/ODWtyudzG6mcI3mtg6LOYr+6PQNvrYa3HGEDKjoVLD2Lr8dX/pQC///oQ7RbyMU20NHQyDg==",
4143
4144
  "license": "MIT",
4144
4145
  "dependencies": {
4145
4146
  "@oclif/core": "^4.3.0",
@@ -4376,6 +4377,23 @@
4376
4377
  "url": "https://github.com/chalk/strip-ansi?sponsor=1"
4377
4378
  }
4378
4379
  },
4380
+ "node_modules/@oclif/test": {
4381
+ "version": "4.1.13",
4382
+ "resolved": "https://registry.npmjs.org/@oclif/test/-/test-4.1.13.tgz",
4383
+ "integrity": "sha512-pulrTiJRhoAKizFf6y5WeHvM2JyoRiZKV0H8qqYEoE0UHDKqInNmfGJyp8Ip6lTVQeMv1U8YCAXOS/HiWPVWeg==",
4384
+ "dev": true,
4385
+ "license": "MIT",
4386
+ "dependencies": {
4387
+ "ansis": "^3.17.0",
4388
+ "debug": "^4.4.1"
4389
+ },
4390
+ "engines": {
4391
+ "node": ">=18.0.0"
4392
+ },
4393
+ "peerDependencies": {
4394
+ "@oclif/core": ">= 3.0.0"
4395
+ }
4396
+ },
4379
4397
  "node_modules/@octokit/auth-token": {
4380
4398
  "version": "5.1.2",
4381
4399
  "resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-5.1.2.tgz",
@@ -5023,9 +5041,9 @@
5023
5041
  }
5024
5042
  },
5025
5043
  "node_modules/@salesforce/plugin-agent": {
5026
- "version": "1.22.7",
5027
- "resolved": "https://registry.npmjs.org/@salesforce/plugin-agent/-/plugin-agent-1.22.7.tgz",
5028
- "integrity": "sha512-WxanBYmK67kSAD3yeo1HjkgrXzuGTOuVXzJmdgxyMtHJ58HSm+/udmvGUub9SajfjBi6RQeEY4XI7qDFAB+fMg==",
5044
+ "version": "1.22.8",
5045
+ "resolved": "https://registry.npmjs.org/@salesforce/plugin-agent/-/plugin-agent-1.22.8.tgz",
5046
+ "integrity": "sha512-sW4z5IABAxmnmY18/C3eWoF0ep2IXthRZ3G+ABun0BEHz5vG58EaOHh79oGJkP7EswyFbh8hWaNLq9bR3tsZcA==",
5029
5047
  "license": "BSD-3-Clause",
5030
5048
  "dependencies": {
5031
5049
  "@inquirer/core": "^10.1.6",
package/oclif.lock CHANGED
@@ -1605,7 +1605,7 @@
1605
1605
  proc-log "^5.0.0"
1606
1606
  which "^5.0.0"
1607
1607
 
1608
- "@oclif/core@^4", "@oclif/core@^4.0.27", "@oclif/core@^4.2.10", "@oclif/core@^4.2.3", "@oclif/core@^4.2.8", "@oclif/core@^4.3.0", "@oclif/core@4.3.1":
1608
+ "@oclif/core@^4", "@oclif/core@^4.0.27", "@oclif/core@^4.2.10", "@oclif/core@^4.2.3", "@oclif/core@^4.2.8", "@oclif/core@^4.3.0", "@oclif/core@>= 3.0.0", "@oclif/core@4.3.1":
1609
1609
  version "4.3.1"
1610
1610
  resolved "https://registry.npmjs.org/@oclif/core/-/core-4.3.1.tgz"
1611
1611
  integrity sha512-+QpJSficjZWu65YSRJIwe50xh0C7WVD6BkQyk0HmGIlx2/rvex8LDwbZHCQcvuJDOCVQeX/INh8IImuKn4d1UA==
@@ -1707,10 +1707,10 @@
1707
1707
  ansis "^3.17.0"
1708
1708
  fast-levenshtein "^3.0.0"
1709
1709
 
1710
- "@oclif/plugin-plugins@5.4.38":
1711
- version "5.4.38"
1712
- resolved "https://registry.npmjs.org/@oclif/plugin-plugins/-/plugin-plugins-5.4.38.tgz"
1713
- integrity sha512-tsohAIgtQRYb35G0W2QdubkNfc1Re+LtNujAomHBvz8wfWqPnwtnWGHob79/yxOV1j9R51AHZIuQ35gSdq39Ng==
1710
+ "@oclif/plugin-plugins@5.4.39":
1711
+ version "5.4.39"
1712
+ resolved "https://registry.npmjs.org/@oclif/plugin-plugins/-/plugin-plugins-5.4.39.tgz"
1713
+ integrity sha512-tQPfLugeNbyYHp/ODWtyudzG6mcI3mtg6LOYr+6PQNvrYa3HGEDKjoVLD2Lr8dX/pQC///oQ7RbyMU20NHQyDg==
1714
1714
  dependencies:
1715
1715
  "@oclif/core" "^4.3.0"
1716
1716
  ansis "^3.17.0"
@@ -1792,6 +1792,14 @@
1792
1792
  strip-ansi "^7.1.0"
1793
1793
  wrap-ansi "^9.0.0"
1794
1794
 
1795
+ "@oclif/test@^4.1.13":
1796
+ version "4.1.13"
1797
+ resolved "https://registry.npmjs.org/@oclif/test/-/test-4.1.13.tgz"
1798
+ integrity sha512-pulrTiJRhoAKizFf6y5WeHvM2JyoRiZKV0H8qqYEoE0UHDKqInNmfGJyp8Ip6lTVQeMv1U8YCAXOS/HiWPVWeg==
1799
+ dependencies:
1800
+ ansis "^3.17.0"
1801
+ debug "^4.4.1"
1802
+
1795
1803
  "@octokit/auth-token@^5.0.0":
1796
1804
  version "5.1.2"
1797
1805
  resolved "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-5.1.2.tgz"
@@ -2076,10 +2084,10 @@
2076
2084
  jszip "^3.10.1"
2077
2085
  object-treeify "^2"
2078
2086
 
2079
- "@salesforce/plugin-agent@1.22.7":
2080
- version "1.22.7"
2081
- resolved "https://registry.npmjs.org/@salesforce/plugin-agent/-/plugin-agent-1.22.7.tgz"
2082
- integrity sha512-WxanBYmK67kSAD3yeo1HjkgrXzuGTOuVXzJmdgxyMtHJ58HSm+/udmvGUub9SajfjBi6RQeEY4XI7qDFAB+fMg==
2087
+ "@salesforce/plugin-agent@1.22.8":
2088
+ version "1.22.8"
2089
+ resolved "https://registry.npmjs.org/@salesforce/plugin-agent/-/plugin-agent-1.22.8.tgz"
2090
+ integrity sha512-sW4z5IABAxmnmY18/C3eWoF0ep2IXthRZ3G+ABun0BEHz5vG58EaOHh79oGJkP7EswyFbh8hWaNLq9bR3tsZcA==
2083
2091
  dependencies:
2084
2092
  "@inquirer/core" "^10.1.6"
2085
2093
  "@inquirer/prompts" "^7.2.0"
@@ -4831,5 +4831,5 @@
4831
4831
  ]
4832
4832
  }
4833
4833
  },
4834
- "version": "2.92.6"
4834
+ "version": "2.93.0"
4835
4835
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@salesforce/cli",
3
3
  "description": "The Salesforce CLI",
4
- "version": "2.92.6",
4
+ "version": "2.93.0",
5
5
  "author": "Salesforce",
6
6
  "bin": {
7
7
  "sf": "./bin/run.js",
@@ -150,7 +150,7 @@
150
150
  "@oclif/plugin-commands": "4.1.25",
151
151
  "@oclif/plugin-help": "6.2.28",
152
152
  "@oclif/plugin-not-found": "3.2.55",
153
- "@oclif/plugin-plugins": "5.4.38",
153
+ "@oclif/plugin-plugins": "5.4.39",
154
154
  "@oclif/plugin-search": "1.2.24",
155
155
  "@oclif/plugin-update": "4.6.42",
156
156
  "@oclif/plugin-version": "2.2.28",
@@ -158,7 +158,7 @@
158
158
  "@oclif/plugin-which": "3.2.35",
159
159
  "@salesforce/core": "^8.9.1",
160
160
  "@salesforce/kit": "^3.1.6",
161
- "@salesforce/plugin-agent": "1.22.7",
161
+ "@salesforce/plugin-agent": "1.22.8",
162
162
  "@salesforce/plugin-apex": "3.6.19",
163
163
  "@salesforce/plugin-api": "1.3.3",
164
164
  "@salesforce/plugin-auth": "3.6.126",
@@ -257,6 +257,7 @@
257
257
  "types": "dist/index.d.ts",
258
258
  "devDependencies": {
259
259
  "@oclif/plugin-command-snapshot": "^5.2.3",
260
+ "@oclif/test": "^4.1.13",
260
261
  "@salesforce/dev-scripts": "^11.0.2",
261
262
  "@salesforce/plugin-release-management": "^5.7.0",
262
263
  "@salesforce/ts-sinon": "^1.4.30",