@salesforce/plugin-org 5.9.85 → 5.10.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 +52 -28
- package/lib/commands/org/open/agent.d.ts +3 -1
- package/lib/commands/org/open/agent.js +47 -7
- package/lib/commands/org/open/agent.js.map +1 -1
- package/lib/commands/org/open/authoring-bundle.d.ts +4 -0
- package/lib/commands/org/open/authoring-bundle.js +2 -0
- package/lib/commands/org/open/authoring-bundle.js.map +1 -1
- package/messages/open.agent.md +28 -0
- package/oclif.manifest.json +88 -67
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -193,7 +193,7 @@ FLAG DESCRIPTIONS
|
|
|
193
193
|
"agent.user.<GUID>@your-org-domain.com".
|
|
194
194
|
```
|
|
195
195
|
|
|
196
|
-
_See code: [src/commands/org/create/agent-user.ts](https://github.com/salesforcecli/plugin-org/blob/5.
|
|
196
|
+
_See code: [src/commands/org/create/agent-user.ts](https://github.com/salesforcecli/plugin-org/blob/5.10.0/src/commands/org/create/agent-user.ts)_
|
|
197
197
|
|
|
198
198
|
## `sf org create sandbox`
|
|
199
199
|
|
|
@@ -327,7 +327,7 @@ FLAG DESCRIPTIONS
|
|
|
327
327
|
You can specify either --source-sandbox-name or --source-id when cloning an existing sandbox, but not both.
|
|
328
328
|
```
|
|
329
329
|
|
|
330
|
-
_See code: [src/commands/org/create/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/5.
|
|
330
|
+
_See code: [src/commands/org/create/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/5.10.0/src/commands/org/create/sandbox.ts)_
|
|
331
331
|
|
|
332
332
|
## `sf org create scratch`
|
|
333
333
|
|
|
@@ -509,7 +509,7 @@ FLAG DESCRIPTIONS
|
|
|
509
509
|
Omit this flag to have Salesforce generate a unique username for your org.
|
|
510
510
|
```
|
|
511
511
|
|
|
512
|
-
_See code: [src/commands/org/create/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/5.
|
|
512
|
+
_See code: [src/commands/org/create/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/5.10.0/src/commands/org/create/scratch.ts)_
|
|
513
513
|
|
|
514
514
|
## `sf org delete sandbox`
|
|
515
515
|
|
|
@@ -555,7 +555,7 @@ EXAMPLES
|
|
|
555
555
|
$ sf org delete sandbox --target-org my-sandbox --no-prompt
|
|
556
556
|
```
|
|
557
557
|
|
|
558
|
-
_See code: [src/commands/org/delete/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/5.
|
|
558
|
+
_See code: [src/commands/org/delete/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/5.10.0/src/commands/org/delete/sandbox.ts)_
|
|
559
559
|
|
|
560
560
|
## `sf org delete scratch`
|
|
561
561
|
|
|
@@ -599,7 +599,7 @@ EXAMPLES
|
|
|
599
599
|
$ sf org delete scratch --target-org my-scratch-org --no-prompt
|
|
600
600
|
```
|
|
601
601
|
|
|
602
|
-
_See code: [src/commands/org/delete/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/5.
|
|
602
|
+
_See code: [src/commands/org/delete/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/5.10.0/src/commands/org/delete/scratch.ts)_
|
|
603
603
|
|
|
604
604
|
## `sf org disable tracking`
|
|
605
605
|
|
|
@@ -638,7 +638,7 @@ EXAMPLES
|
|
|
638
638
|
$ sf org disable tracking
|
|
639
639
|
```
|
|
640
640
|
|
|
641
|
-
_See code: [src/commands/org/disable/tracking.ts](https://github.com/salesforcecli/plugin-org/blob/5.
|
|
641
|
+
_See code: [src/commands/org/disable/tracking.ts](https://github.com/salesforcecli/plugin-org/blob/5.10.0/src/commands/org/disable/tracking.ts)_
|
|
642
642
|
|
|
643
643
|
## `sf org display`
|
|
644
644
|
|
|
@@ -683,7 +683,7 @@ EXAMPLES
|
|
|
683
683
|
$ sf org display --target-org TestOrg1 --verbose
|
|
684
684
|
```
|
|
685
685
|
|
|
686
|
-
_See code: [src/commands/org/display.ts](https://github.com/salesforcecli/plugin-org/blob/5.
|
|
686
|
+
_See code: [src/commands/org/display.ts](https://github.com/salesforcecli/plugin-org/blob/5.10.0/src/commands/org/display.ts)_
|
|
687
687
|
|
|
688
688
|
## `sf org enable tracking`
|
|
689
689
|
|
|
@@ -725,7 +725,7 @@ EXAMPLES
|
|
|
725
725
|
$ sf org enable tracking
|
|
726
726
|
```
|
|
727
727
|
|
|
728
|
-
_See code: [src/commands/org/enable/tracking.ts](https://github.com/salesforcecli/plugin-org/blob/5.
|
|
728
|
+
_See code: [src/commands/org/enable/tracking.ts](https://github.com/salesforcecli/plugin-org/blob/5.10.0/src/commands/org/enable/tracking.ts)_
|
|
729
729
|
|
|
730
730
|
## `sf org list`
|
|
731
731
|
|
|
@@ -764,7 +764,7 @@ EXAMPLES
|
|
|
764
764
|
$ sf org list --clean
|
|
765
765
|
```
|
|
766
766
|
|
|
767
|
-
_See code: [src/commands/org/list.ts](https://github.com/salesforcecli/plugin-org/blob/5.
|
|
767
|
+
_See code: [src/commands/org/list.ts](https://github.com/salesforcecli/plugin-org/blob/5.10.0/src/commands/org/list.ts)_
|
|
768
768
|
|
|
769
769
|
## `sf org list metadata`
|
|
770
770
|
|
|
@@ -831,7 +831,7 @@ FLAG DESCRIPTIONS
|
|
|
831
831
|
Examples of metadata types that use folders are Dashboard, Document, EmailTemplate, and Report.
|
|
832
832
|
```
|
|
833
833
|
|
|
834
|
-
_See code: [src/commands/org/list/metadata.ts](https://github.com/salesforcecli/plugin-org/blob/5.
|
|
834
|
+
_See code: [src/commands/org/list/metadata.ts](https://github.com/salesforcecli/plugin-org/blob/5.10.0/src/commands/org/list/metadata.ts)_
|
|
835
835
|
|
|
836
836
|
## `sf org list metadata-types`
|
|
837
837
|
|
|
@@ -886,7 +886,7 @@ FLAG DESCRIPTIONS
|
|
|
886
886
|
Override the api version used for api requests made by this command
|
|
887
887
|
```
|
|
888
888
|
|
|
889
|
-
_See code: [src/commands/org/list/metadata-types.ts](https://github.com/salesforcecli/plugin-org/blob/5.
|
|
889
|
+
_See code: [src/commands/org/list/metadata-types.ts](https://github.com/salesforcecli/plugin-org/blob/5.10.0/src/commands/org/list/metadata-types.ts)_
|
|
890
890
|
|
|
891
891
|
## `sf org open`
|
|
892
892
|
|
|
@@ -962,7 +962,7 @@ EXAMPLES
|
|
|
962
962
|
$ sf org open --source-file force-app/main/default/bots/Coral_Cloud_Agent/Coral_Cloud_Agent.bot-meta.xml
|
|
963
963
|
```
|
|
964
964
|
|
|
965
|
-
_See code: [src/commands/org/open.ts](https://github.com/salesforcecli/plugin-org/blob/5.
|
|
965
|
+
_See code: [src/commands/org/open.ts](https://github.com/salesforcecli/plugin-org/blob/5.10.0/src/commands/org/open.ts)_
|
|
966
966
|
|
|
967
967
|
## `sf org open agent`
|
|
968
968
|
|
|
@@ -970,19 +970,21 @@ Open an agent in your org's Agent Builder UI in a browser.
|
|
|
970
970
|
|
|
971
971
|
```
|
|
972
972
|
USAGE
|
|
973
|
-
$ sf org open agent -o <value>
|
|
974
|
-
-b chrome|edge|firefox]
|
|
973
|
+
$ sf org open agent -o <value> [--json] [--flags-dir <value>] [--api-version <value>] [-n <value>] [--private | -r
|
|
974
|
+
| -b chrome|edge|firefox] [--authoring-bundle <value>] [--version <value>]
|
|
975
975
|
|
|
976
976
|
FLAGS
|
|
977
|
-
-b, --browser=<option>
|
|
978
|
-
|
|
979
|
-
-n, --api-name=<value>
|
|
980
|
-
|
|
981
|
-
-o, --target-org=<value>
|
|
982
|
-
|
|
983
|
-
-r, --url-only
|
|
984
|
-
--api-version=<value>
|
|
985
|
-
--
|
|
977
|
+
-b, --browser=<option> Browser where the org opens.
|
|
978
|
+
<options: chrome|edge|firefox>
|
|
979
|
+
-n, --api-name=<value> API name, also known as developer name, of the agent you want to open in the org's
|
|
980
|
+
Agent Builder UI.
|
|
981
|
+
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
|
|
982
|
+
configuration variable is already set.
|
|
983
|
+
-r, --url-only Display navigation URL, but don’t launch browser.
|
|
984
|
+
--api-version=<value> Override the api version used for api requests made by this command
|
|
985
|
+
--authoring-bundle=<value> API name of the agent to open in Agentforce Builder.
|
|
986
|
+
--private Open the org in the default browser using private (incognito) mode.
|
|
987
|
+
--version=<value> Version number of the agent to open in Agentforce Builder.
|
|
986
988
|
|
|
987
989
|
GLOBAL FLAGS
|
|
988
990
|
--flags-dir=<value> Import flag values from a directory.
|
|
@@ -994,6 +996,9 @@ DESCRIPTION
|
|
|
994
996
|
Use the --api-name flag to open an agent using its API name in the Agent Builder UI of your org. To find the agent's
|
|
995
997
|
API name, go to Setup in your org and navigate to the agent's details page.
|
|
996
998
|
|
|
999
|
+
Alternatively, use the --authoring-bundle flag to open an agent in Agentforce Builder. Optionally include --version to
|
|
1000
|
+
open a specific version of the agent. You'll specify the api name of the authoring bundle.
|
|
1001
|
+
|
|
997
1002
|
To generate the URL but not launch it in your browser, specify --url-only.
|
|
998
1003
|
|
|
999
1004
|
To open Agent Builder in a specific browser, use the --browser flag. Supported browsers are "chrome", "edge", and
|
|
@@ -1011,9 +1016,28 @@ EXAMPLES
|
|
|
1011
1016
|
Open the agent in an org with alias MyTestOrg1 using the Firefox browser:
|
|
1012
1017
|
|
|
1013
1018
|
$ sf org open agent --target-org MyTestOrg1 --browser firefox --api-name Coral_Cloud_Agent
|
|
1019
|
+
|
|
1020
|
+
Open an agent in Agentforce Builder using its authoring bundle name:
|
|
1021
|
+
|
|
1022
|
+
$ sf org open agent --authoring-bundle MyAgent
|
|
1023
|
+
|
|
1024
|
+
Open a specific version of an agent in Agentforce Builder:
|
|
1025
|
+
|
|
1026
|
+
$ sf org open agent --authoring-bundle MyAgent --version 1
|
|
1027
|
+
|
|
1028
|
+
FLAG DESCRIPTIONS
|
|
1029
|
+
--authoring-bundle=<value> API name of the agent to open in Agentforce Builder.
|
|
1030
|
+
|
|
1031
|
+
The API name of the agent to open directly in Agentforce Builder. Optionally specify --version to open a specific
|
|
1032
|
+
version.
|
|
1033
|
+
|
|
1034
|
+
--version=<value> Version number of the agent to open in Agentforce Builder.
|
|
1035
|
+
|
|
1036
|
+
The version number of the agent to open directly in Agentforce Builder. Can only be used with the --authoring-bundle
|
|
1037
|
+
flag.
|
|
1014
1038
|
```
|
|
1015
1039
|
|
|
1016
|
-
_See code: [src/commands/org/open/agent.ts](https://github.com/salesforcecli/plugin-org/blob/5.
|
|
1040
|
+
_See code: [src/commands/org/open/agent.ts](https://github.com/salesforcecli/plugin-org/blob/5.10.0/src/commands/org/open/agent.ts)_
|
|
1017
1041
|
|
|
1018
1042
|
## `sf org open authoring-bundle`
|
|
1019
1043
|
|
|
@@ -1059,7 +1083,7 @@ EXAMPLES
|
|
|
1059
1083
|
$ sf org open authoring-bundle --target-org MyTestOrg1 --browser firefox
|
|
1060
1084
|
```
|
|
1061
1085
|
|
|
1062
|
-
_See code: [src/commands/org/open/authoring-bundle.ts](https://github.com/salesforcecli/plugin-org/blob/5.
|
|
1086
|
+
_See code: [src/commands/org/open/authoring-bundle.ts](https://github.com/salesforcecli/plugin-org/blob/5.10.0/src/commands/org/open/authoring-bundle.ts)_
|
|
1063
1087
|
|
|
1064
1088
|
## `sf org refresh sandbox`
|
|
1065
1089
|
|
|
@@ -1162,7 +1186,7 @@ FLAG DESCRIPTIONS
|
|
|
1162
1186
|
You can specify either --source-sandbox-name or --source-id when refreshing an existing sandbox, but not both.
|
|
1163
1187
|
```
|
|
1164
1188
|
|
|
1165
|
-
_See code: [src/commands/org/refresh/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/5.
|
|
1189
|
+
_See code: [src/commands/org/refresh/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/5.10.0/src/commands/org/refresh/sandbox.ts)_
|
|
1166
1190
|
|
|
1167
1191
|
## `sf org resume sandbox`
|
|
1168
1192
|
|
|
@@ -1225,7 +1249,7 @@ FLAG DESCRIPTIONS
|
|
|
1225
1249
|
returns the job ID. To resume checking the sandbox creation, rerun this command.
|
|
1226
1250
|
```
|
|
1227
1251
|
|
|
1228
|
-
_See code: [src/commands/org/resume/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/5.
|
|
1252
|
+
_See code: [src/commands/org/resume/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/5.10.0/src/commands/org/resume/sandbox.ts)_
|
|
1229
1253
|
|
|
1230
1254
|
## `sf org resume scratch`
|
|
1231
1255
|
|
|
@@ -1278,6 +1302,6 @@ FLAG DESCRIPTIONS
|
|
|
1278
1302
|
returns the job ID. To resume checking the scratch creation, rerun this command.
|
|
1279
1303
|
```
|
|
1280
1304
|
|
|
1281
|
-
_See code: [src/commands/org/resume/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/5.
|
|
1305
|
+
_See code: [src/commands/org/resume/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/5.10.0/src/commands/org/resume/scratch.ts)_
|
|
1282
1306
|
|
|
1283
1307
|
<!-- commandsstop -->
|
|
@@ -7,10 +7,12 @@ export declare class OrgOpenAgent extends OrgOpenCommandBase<OrgOpenOutput> {
|
|
|
7
7
|
static readonly flags: {
|
|
8
8
|
'target-org': import("@oclif/core/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
9
|
'api-version': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
-
'api-name': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
+
'api-name': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
11
|
private: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
12
12
|
browser: import("@oclif/core/interfaces").OptionFlag<"chrome" | "firefox" | "edge" | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
13
|
'url-only': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
14
|
+
'authoring-bundle': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
15
|
+
version: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
14
16
|
};
|
|
15
17
|
run(): Promise<OrgOpenOutput>;
|
|
16
18
|
}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { Flags } from '@salesforce/sf-plugins-core';
|
|
17
|
-
import { Messages } from '@salesforce/core';
|
|
17
|
+
import { Messages, SfError } from '@salesforce/core';
|
|
18
18
|
import { OrgOpenCommandBase } from '../../../shared/orgOpenCommandBase.js';
|
|
19
19
|
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
|
|
20
20
|
const messages = Messages.loadMessages('@salesforce/plugin-org', 'open.agent');
|
|
@@ -29,7 +29,7 @@ export class OrgOpenAgent extends OrgOpenCommandBase {
|
|
|
29
29
|
'api-name': Flags.string({
|
|
30
30
|
char: 'n',
|
|
31
31
|
summary: messages.getMessage('flags.api-name.summary'),
|
|
32
|
-
|
|
32
|
+
exactlyOne: ['api-name', 'authoring-bundle'],
|
|
33
33
|
}),
|
|
34
34
|
private: Flags.boolean({
|
|
35
35
|
summary: messages.getMessage('flags.private.summary'),
|
|
@@ -47,19 +47,59 @@ export class OrgOpenAgent extends OrgOpenCommandBase {
|
|
|
47
47
|
aliases: ['urlonly'],
|
|
48
48
|
deprecateAliases: true,
|
|
49
49
|
}),
|
|
50
|
+
'authoring-bundle': Flags.string({
|
|
51
|
+
summary: messages.getMessage('flags.authoring-bundle.summary'),
|
|
52
|
+
description: messages.getMessage('flags.authoring-bundle.description'),
|
|
53
|
+
exactlyOne: ['api-name', 'authoring-bundle'],
|
|
54
|
+
}),
|
|
55
|
+
version: Flags.string({
|
|
56
|
+
summary: messages.getMessage('flags.version.summary'),
|
|
57
|
+
description: messages.getMessage('flags.version.description'),
|
|
58
|
+
}),
|
|
50
59
|
};
|
|
51
60
|
async run() {
|
|
52
61
|
const { flags } = await this.parse(OrgOpenAgent);
|
|
53
62
|
this.org = flags['target-org'];
|
|
54
63
|
this.connection = this.org.getConnection(flags['api-version']);
|
|
55
|
-
|
|
56
|
-
|
|
64
|
+
let path;
|
|
65
|
+
if (flags['api-name']) {
|
|
66
|
+
path = await buildRetUrl(this.connection, flags['api-name'], flags.version);
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
// authoring-bundle is provided
|
|
70
|
+
const queryParams = new URLSearchParams({
|
|
71
|
+
// flags.authoring-bundle guaranteed by OCLIF definition
|
|
72
|
+
projectName: flags['authoring-bundle'],
|
|
73
|
+
});
|
|
74
|
+
if (flags.version) {
|
|
75
|
+
queryParams.set('projectVersionNumber', flags.version);
|
|
76
|
+
}
|
|
77
|
+
path = `AgentAuthoring/agentAuthoringBuilder.app#/project?${queryParams.toString()}`;
|
|
78
|
+
}
|
|
79
|
+
return this.openOrgUI(flags, await this.org.getFrontDoorUrl(path));
|
|
57
80
|
}
|
|
58
81
|
}
|
|
59
82
|
// Build the URL part to the Agent Builder given a Bot API name.
|
|
60
|
-
const buildRetUrl = async (conn, botName) => {
|
|
83
|
+
const buildRetUrl = async (conn, botName, version) => {
|
|
61
84
|
const query = `SELECT id FROM BotDefinition WHERE DeveloperName='${botName}'`;
|
|
62
|
-
|
|
63
|
-
|
|
85
|
+
let botId;
|
|
86
|
+
try {
|
|
87
|
+
botId = (await conn.singleRecordQuery(query)).Id;
|
|
88
|
+
}
|
|
89
|
+
catch (error) {
|
|
90
|
+
throw new SfError(`No agent found with API name '${botName}' in the target org.`, 'AgentNotFound');
|
|
91
|
+
}
|
|
92
|
+
const queryParams = new URLSearchParams({ copilotId: botId });
|
|
93
|
+
if (version) {
|
|
94
|
+
const versionQuery = `SELECT Id FROM BotVersion WHERE BotDefinitionId='${botId}' AND VersionNumber=${version}`;
|
|
95
|
+
try {
|
|
96
|
+
const versionId = (await conn.singleRecordQuery(versionQuery)).Id;
|
|
97
|
+
queryParams.set('versionId', versionId);
|
|
98
|
+
}
|
|
99
|
+
catch (error) {
|
|
100
|
+
throw new SfError(`No version '${version}' found for agent '${botName}' in the target org.`, 'AgentVersionNotFound');
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
return `AiCopilot/copilotStudio.app#/copilot/builder?${queryParams.toString()}`;
|
|
64
104
|
};
|
|
65
105
|
//# sourceMappingURL=agent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.js","sourceRoot":"","sources":["../../../../src/commands/org/open/agent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACpD,OAAO,EAAc,QAAQ,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"agent.js","sourceRoot":"","sources":["../../../../src/commands/org/open/agent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACpD,OAAO,EAAc,QAAQ,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAG3E,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,wBAAwB,EAAE,YAAY,CAAC,CAAC;AAE/E,MAAM,OAAO,YAAa,SAAQ,kBAAiC;IAC1D,MAAM,CAAU,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IACzD,MAAM,CAAU,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IACjE,MAAM,CAAU,QAAQ,GAAG,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAE5D,MAAM,CAAU,KAAK,GAAG;QAC7B,GAAG,kBAAkB,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K,GAAG,CAAC,MAAM,IAAI,CAAC,iBAAiB,CAAiB,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;IACnE,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,IAAI,OAAO,CAAC,iCAAiC,OAAO,sBAAsB,EAAE,eAAe,CAAC,CAAC;IACrG,CAAC;IAED,MAAM,WAAW,GAAG,IAAI,eAAe,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,CAAC;IAC9D,IAAI,OAAO,EAAE,CAAC;QACZ,MAAM,YAAY,GAAG,oDAAoD,KAAK,uBAAuB,OAAO,EAAE,CAAC;QAC/G,IAAI,CAAC;YACH,MAAM,SAAS,GAAG,CAAC,MAAM,IAAI,CAAC,iBAAiB,CAAiB,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC;YAClF,WAAW,CAAC,GAAG,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;QAC1C,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,IAAI,OAAO,CACf,eAAe,OAAO,sBAAsB,OAAO,sBAAsB,EACzE,sBAAsB,CACvB,CAAC;QACJ,CAAC;IACH,CAAC;IACD,OAAO,gDAAgD,WAAW,CAAC,QAAQ,EAAE,EAAE,CAAC;AAClF,CAAC,CAAC"}
|
|
@@ -4,6 +4,10 @@ export declare class OrgOpenAuthoringBundle extends OrgOpenCommandBase<OrgOpenOu
|
|
|
4
4
|
static readonly summary: string;
|
|
5
5
|
static readonly description: string;
|
|
6
6
|
static readonly examples: string[];
|
|
7
|
+
static readonly state = "deprecated";
|
|
8
|
+
static readonly deprecationOptions: {
|
|
9
|
+
to: string;
|
|
10
|
+
};
|
|
7
11
|
static readonly flags: {
|
|
8
12
|
'target-org': import("@oclif/core/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
13
|
'api-version': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
@@ -22,6 +22,8 @@ export class OrgOpenAuthoringBundle extends OrgOpenCommandBase {
|
|
|
22
22
|
static summary = messages.getMessage('summary');
|
|
23
23
|
static description = messages.getMessage('description');
|
|
24
24
|
static examples = messages.getMessages('examples');
|
|
25
|
+
static state = 'deprecated';
|
|
26
|
+
static deprecationOptions = { to: 'org open agent --authoring-bundle' };
|
|
25
27
|
static flags = {
|
|
26
28
|
...OrgOpenCommandBase.flags,
|
|
27
29
|
'target-org': Flags.requiredOrg(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authoring-bundle.js","sourceRoot":"","sources":["../../../../src/commands/org/open/authoring-bundle.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAG3E,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,wBAAwB,EAAE,uBAAuB,CAAC,CAAC;AAE1F,MAAM,OAAO,sBAAuB,SAAQ,kBAAiC;IACpE,MAAM,CAAU,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IACzD,MAAM,CAAU,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IACjE,MAAM,CAAU,QAAQ,GAAG,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"authoring-bundle.js","sourceRoot":"","sources":["../../../../src/commands/org/open/authoring-bundle.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACpD,OAAO,EAAE,Q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C,OAAO,CAAC;YACxB,IAAI,EAAE,GAAG;YACT,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,wBAAwB,CAAC;YACtD,OAAO,EAAE,CAAC,SAAS,CAAC;YACpB,gBAAgB,EAAE,IAAI;SACvB,CAAC;KACH,CAAC;IAEK,KAAK,CAAC,GAAG;QACd,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC;QAC3D,IAAI,CAAC,GAAG,GAAG,KAAK,CAAC,YAAY,CAAC,CAAC;QAC/B,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,GAAG,CAAC,aAAa,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC;QAE/D,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,MAAM,IAAI,CAAC,GAAG,CAAC,eAAe,CAAC,uCAAuC,CAAC,CAAC,CAAC;IACxG,CAAC"}
|
package/messages/open.agent.md
CHANGED
|
@@ -6,6 +6,8 @@ Open an agent in your org's Agent Builder UI in a browser.
|
|
|
6
6
|
|
|
7
7
|
Use the --api-name flag to open an agent using its API name in the Agent Builder UI of your org. To find the agent's API name, go to Setup in your org and navigate to the agent's details page.
|
|
8
8
|
|
|
9
|
+
Alternatively, use the --authoring-bundle flag to open an agent in Agentforce Builder. Optionally include --version to open a specific version of the agent. You'll specify the api name of the authoring bundle.
|
|
10
|
+
|
|
9
11
|
To generate the URL but not launch it in your browser, specify --url-only.
|
|
10
12
|
|
|
11
13
|
To open Agent Builder in a specific browser, use the --browser flag. Supported browsers are "chrome", "edge", and "firefox". If you don't specify --browser, the org opens in your default browser.
|
|
@@ -24,6 +26,14 @@ To open Agent Builder in a specific browser, use the --browser flag. Supported b
|
|
|
24
26
|
|
|
25
27
|
$ <%= config.bin %> <%= command.id %> --target-org MyTestOrg1 --browser firefox --api-name Coral_Cloud_Agent
|
|
26
28
|
|
|
29
|
+
- Open an agent in Agentforce Builder using its authoring bundle name:
|
|
30
|
+
|
|
31
|
+
$ <%= config.bin %> <%= command.id %> --authoring-bundle MyAgent
|
|
32
|
+
|
|
33
|
+
- Open a specific version of an agent in Agentforce Builder:
|
|
34
|
+
|
|
35
|
+
$ <%= config.bin %> <%= command.id %> --authoring-bundle MyAgent --version 1
|
|
36
|
+
|
|
27
37
|
# flags.api-name.summary
|
|
28
38
|
|
|
29
39
|
API name, also known as developer name, of the agent you want to open in the org's Agent Builder UI.
|
|
@@ -39,3 +49,21 @@ Browser where the org opens.
|
|
|
39
49
|
# flags.url-only.summary
|
|
40
50
|
|
|
41
51
|
Display navigation URL, but don’t launch browser.
|
|
52
|
+
|
|
53
|
+
# flags.authoring-bundle.summary
|
|
54
|
+
|
|
55
|
+
API name of the agent to open in Agentforce Builder.
|
|
56
|
+
|
|
57
|
+
# flags.authoring-bundle.description
|
|
58
|
+
|
|
59
|
+
The API name of the agent to open directly in Agentforce Builder. Optionally specify --version to open a specific
|
|
60
|
+
version.
|
|
61
|
+
|
|
62
|
+
# flags.version.summary
|
|
63
|
+
|
|
64
|
+
Version number of the agent to open in Agentforce Builder.
|
|
65
|
+
|
|
66
|
+
# flags.version.description
|
|
67
|
+
|
|
68
|
+
The version number of the agent to open directly in Agentforce Builder. Can only be used with the --authoring-bundle
|
|
69
|
+
flag.
|
package/oclif.manifest.json
CHANGED
|
@@ -1176,69 +1176,6 @@
|
|
|
1176
1176
|
"scratch:delete:org"
|
|
1177
1177
|
]
|
|
1178
1178
|
},
|
|
1179
|
-
"org:enable:tracking": {
|
|
1180
|
-
"aliases": [],
|
|
1181
|
-
"args": {},
|
|
1182
|
-
"description": "Enabling source tracking has no direct effect on the org, it affects only your local environment. Specifically, Salesforce CLI stores the setting in the org's local configuration file so that source tracking operations are executed when working with the org.\n\nThis command throws an error if the org doesn't support tracking. Examples of orgs that don't support source tracking include Developer Edition orgs, production orgs, Partial Copy sandboxes, and Full sandboxes.",
|
|
1183
|
-
"examples": [
|
|
1184
|
-
"Enable source tracking for an org with alias \"myscratch\":\n<%= config.bin %> <%= command.id %> --target-org myscratch",
|
|
1185
|
-
"Enable source tracking for an org using a username:\n<%= config.bin %> <%= command.id %> --target-org you@example.com",
|
|
1186
|
-
"Enable source tracking for your default org:\n<%= config.bin %> <%= command.id %>"
|
|
1187
|
-
],
|
|
1188
|
-
"flags": {
|
|
1189
|
-
"json": {
|
|
1190
|
-
"description": "Format output as json.",
|
|
1191
|
-
"helpGroup": "GLOBAL",
|
|
1192
|
-
"name": "json",
|
|
1193
|
-
"allowNo": false,
|
|
1194
|
-
"type": "boolean"
|
|
1195
|
-
},
|
|
1196
|
-
"flags-dir": {
|
|
1197
|
-
"helpGroup": "GLOBAL",
|
|
1198
|
-
"name": "flags-dir",
|
|
1199
|
-
"summary": "Import flag values from a directory.",
|
|
1200
|
-
"hasDynamicHelp": false,
|
|
1201
|
-
"multiple": false,
|
|
1202
|
-
"type": "option"
|
|
1203
|
-
},
|
|
1204
|
-
"target-org": {
|
|
1205
|
-
"char": "o",
|
|
1206
|
-
"name": "target-org",
|
|
1207
|
-
"noCacheDefault": true,
|
|
1208
|
-
"required": true,
|
|
1209
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
1210
|
-
"hasDynamicHelp": true,
|
|
1211
|
-
"multiple": false,
|
|
1212
|
-
"type": "option"
|
|
1213
|
-
}
|
|
1214
|
-
},
|
|
1215
|
-
"hasDynamicHelp": true,
|
|
1216
|
-
"hiddenAliases": [],
|
|
1217
|
-
"id": "org:enable:tracking",
|
|
1218
|
-
"pluginAlias": "@salesforce/plugin-org",
|
|
1219
|
-
"pluginName": "@salesforce/plugin-org",
|
|
1220
|
-
"pluginType": "core",
|
|
1221
|
-
"strict": true,
|
|
1222
|
-
"summary": "Allow Salesforce CLI to track changes in your source files between your project and an org.",
|
|
1223
|
-
"enableJsonFlag": true,
|
|
1224
|
-
"isESM": true,
|
|
1225
|
-
"relativePath": [
|
|
1226
|
-
"lib",
|
|
1227
|
-
"commands",
|
|
1228
|
-
"org",
|
|
1229
|
-
"enable",
|
|
1230
|
-
"tracking.js"
|
|
1231
|
-
],
|
|
1232
|
-
"aliasPermutations": [],
|
|
1233
|
-
"permutations": [
|
|
1234
|
-
"org:enable:tracking",
|
|
1235
|
-
"enable:org:tracking",
|
|
1236
|
-
"enable:tracking:org",
|
|
1237
|
-
"org:tracking:enable",
|
|
1238
|
-
"tracking:org:enable",
|
|
1239
|
-
"tracking:enable:org"
|
|
1240
|
-
]
|
|
1241
|
-
},
|
|
1242
1179
|
"org:list:metadata-types": {
|
|
1243
1180
|
"aliases": [
|
|
1244
1181
|
"force:mdapi:describemetadata"
|
|
@@ -1498,14 +1435,79 @@
|
|
|
1498
1435
|
"metadata:list:org"
|
|
1499
1436
|
]
|
|
1500
1437
|
},
|
|
1438
|
+
"org:enable:tracking": {
|
|
1439
|
+
"aliases": [],
|
|
1440
|
+
"args": {},
|
|
1441
|
+
"description": "Enabling source tracking has no direct effect on the org, it affects only your local environment. Specifically, Salesforce CLI stores the setting in the org's local configuration file so that source tracking operations are executed when working with the org.\n\nThis command throws an error if the org doesn't support tracking. Examples of orgs that don't support source tracking include Developer Edition orgs, production orgs, Partial Copy sandboxes, and Full sandboxes.",
|
|
1442
|
+
"examples": [
|
|
1443
|
+
"Enable source tracking for an org with alias \"myscratch\":\n<%= config.bin %> <%= command.id %> --target-org myscratch",
|
|
1444
|
+
"Enable source tracking for an org using a username:\n<%= config.bin %> <%= command.id %> --target-org you@example.com",
|
|
1445
|
+
"Enable source tracking for your default org:\n<%= config.bin %> <%= command.id %>"
|
|
1446
|
+
],
|
|
1447
|
+
"flags": {
|
|
1448
|
+
"json": {
|
|
1449
|
+
"description": "Format output as json.",
|
|
1450
|
+
"helpGroup": "GLOBAL",
|
|
1451
|
+
"name": "json",
|
|
1452
|
+
"allowNo": false,
|
|
1453
|
+
"type": "boolean"
|
|
1454
|
+
},
|
|
1455
|
+
"flags-dir": {
|
|
1456
|
+
"helpGroup": "GLOBAL",
|
|
1457
|
+
"name": "flags-dir",
|
|
1458
|
+
"summary": "Import flag values from a directory.",
|
|
1459
|
+
"hasDynamicHelp": false,
|
|
1460
|
+
"multiple": false,
|
|
1461
|
+
"type": "option"
|
|
1462
|
+
},
|
|
1463
|
+
"target-org": {
|
|
1464
|
+
"char": "o",
|
|
1465
|
+
"name": "target-org",
|
|
1466
|
+
"noCacheDefault": true,
|
|
1467
|
+
"required": true,
|
|
1468
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
1469
|
+
"hasDynamicHelp": true,
|
|
1470
|
+
"multiple": false,
|
|
1471
|
+
"type": "option"
|
|
1472
|
+
}
|
|
1473
|
+
},
|
|
1474
|
+
"hasDynamicHelp": true,
|
|
1475
|
+
"hiddenAliases": [],
|
|
1476
|
+
"id": "org:enable:tracking",
|
|
1477
|
+
"pluginAlias": "@salesforce/plugin-org",
|
|
1478
|
+
"pluginName": "@salesforce/plugin-org",
|
|
1479
|
+
"pluginType": "core",
|
|
1480
|
+
"strict": true,
|
|
1481
|
+
"summary": "Allow Salesforce CLI to track changes in your source files between your project and an org.",
|
|
1482
|
+
"enableJsonFlag": true,
|
|
1483
|
+
"isESM": true,
|
|
1484
|
+
"relativePath": [
|
|
1485
|
+
"lib",
|
|
1486
|
+
"commands",
|
|
1487
|
+
"org",
|
|
1488
|
+
"enable",
|
|
1489
|
+
"tracking.js"
|
|
1490
|
+
],
|
|
1491
|
+
"aliasPermutations": [],
|
|
1492
|
+
"permutations": [
|
|
1493
|
+
"org:enable:tracking",
|
|
1494
|
+
"enable:org:tracking",
|
|
1495
|
+
"enable:tracking:org",
|
|
1496
|
+
"org:tracking:enable",
|
|
1497
|
+
"tracking:org:enable",
|
|
1498
|
+
"tracking:enable:org"
|
|
1499
|
+
]
|
|
1500
|
+
},
|
|
1501
1501
|
"org:open:agent": {
|
|
1502
1502
|
"aliases": [],
|
|
1503
1503
|
"args": {},
|
|
1504
|
-
"description": "Use the --api-name flag to open an agent using its API name in the Agent Builder UI of your org. To find the agent's API name, go to Setup in your org and navigate to the agent's details page.\n\nTo generate the URL but not launch it in your browser, specify --url-only.\n\nTo open Agent Builder in a specific browser, use the --browser flag. Supported browsers are \"chrome\", \"edge\", and \"firefox\". If you don't specify --browser, the org opens in your default browser.",
|
|
1504
|
+
"description": "Use the --api-name flag to open an agent using its API name in the Agent Builder UI of your org. To find the agent's API name, go to Setup in your org and navigate to the agent's details page.\n\nAlternatively, use the --authoring-bundle flag to open an agent in Agentforce Builder. Optionally include --version to open a specific version of the agent. You'll specify the api name of the authoring bundle.\n\nTo generate the URL but not launch it in your browser, specify --url-only.\n\nTo open Agent Builder in a specific browser, use the --browser flag. Supported browsers are \"chrome\", \"edge\", and \"firefox\". If you don't specify --browser, the org opens in your default browser.",
|
|
1505
1505
|
"examples": [
|
|
1506
1506
|
"Open the agent with API name Coral_Cloud_Agent in your default org using your default browser:\n$ <%= config.bin %> <%= command.id %> --api-name Coral_Cloud_Agent",
|
|
1507
1507
|
"Open the agent in an incognito window of your default browser:\n$ <%= config.bin %> <%= command.id %> --private --api-name Coral_Cloud_Agent:",
|
|
1508
|
-
"Open the agent in an org with alias MyTestOrg1 using the Firefox browser:\n$ <%= config.bin %> <%= command.id %> --target-org MyTestOrg1 --browser firefox --api-name Coral_Cloud_Agent"
|
|
1508
|
+
"Open the agent in an org with alias MyTestOrg1 using the Firefox browser:\n$ <%= config.bin %> <%= command.id %> --target-org MyTestOrg1 --browser firefox --api-name Coral_Cloud_Agent",
|
|
1509
|
+
"Open an agent in Agentforce Builder using its authoring bundle name:\n$ <%= config.bin %> <%= command.id %> --authoring-bundle MyAgent",
|
|
1510
|
+
"Open a specific version of an agent in Agentforce Builder:\n$ <%= config.bin %> <%= command.id %> --authoring-bundle MyAgent --version 1"
|
|
1509
1511
|
],
|
|
1510
1512
|
"flags": {
|
|
1511
1513
|
"json": {
|
|
@@ -1543,7 +1545,6 @@
|
|
|
1543
1545
|
"api-name": {
|
|
1544
1546
|
"char": "n",
|
|
1545
1547
|
"name": "api-name",
|
|
1546
|
-
"required": true,
|
|
1547
1548
|
"summary": "API name, also known as developer name, of the agent you want to open in the org's Agent Builder UI.",
|
|
1548
1549
|
"hasDynamicHelp": false,
|
|
1549
1550
|
"multiple": false,
|
|
@@ -1586,6 +1587,22 @@
|
|
|
1586
1587
|
"summary": "Display navigation URL, but don’t launch browser.",
|
|
1587
1588
|
"allowNo": false,
|
|
1588
1589
|
"type": "boolean"
|
|
1590
|
+
},
|
|
1591
|
+
"authoring-bundle": {
|
|
1592
|
+
"description": "The API name of the agent to open directly in Agentforce Builder. Optionally specify --version to open a specific\nversion.",
|
|
1593
|
+
"name": "authoring-bundle",
|
|
1594
|
+
"summary": "API name of the agent to open in Agentforce Builder.",
|
|
1595
|
+
"hasDynamicHelp": false,
|
|
1596
|
+
"multiple": false,
|
|
1597
|
+
"type": "option"
|
|
1598
|
+
},
|
|
1599
|
+
"version": {
|
|
1600
|
+
"description": "The version number of the agent to open directly in Agentforce Builder. Can only be used with the --authoring-bundle\nflag.",
|
|
1601
|
+
"name": "version",
|
|
1602
|
+
"summary": "Version number of the agent to open in Agentforce Builder.",
|
|
1603
|
+
"hasDynamicHelp": false,
|
|
1604
|
+
"multiple": false,
|
|
1605
|
+
"type": "option"
|
|
1589
1606
|
}
|
|
1590
1607
|
},
|
|
1591
1608
|
"hasDynamicHelp": true,
|
|
@@ -1618,6 +1635,9 @@
|
|
|
1618
1635
|
"org:open:authoring-bundle": {
|
|
1619
1636
|
"aliases": [],
|
|
1620
1637
|
"args": {},
|
|
1638
|
+
"deprecationOptions": {
|
|
1639
|
+
"to": "org open agent --authoring-bundle"
|
|
1640
|
+
},
|
|
1621
1641
|
"description": "The list view shows the agents in your org that are implemented with Agent Script and an authoring bundle. Click on an agent name to open it in Agentforce Builder in a new browser window.\n\nTo generate the URL but not launch it in your browser, specify --url-only.",
|
|
1622
1642
|
"examples": [
|
|
1623
1643
|
"Open the agents list view in your default org using your default browser:\n$ <%= config.bin %> <%= command.id %>",
|
|
@@ -1702,6 +1722,7 @@
|
|
|
1702
1722
|
"pluginAlias": "@salesforce/plugin-org",
|
|
1703
1723
|
"pluginName": "@salesforce/plugin-org",
|
|
1704
1724
|
"pluginType": "core",
|
|
1725
|
+
"state": "deprecated",
|
|
1705
1726
|
"strict": true,
|
|
1706
1727
|
"summary": "Open your org in Agentforce Studio, specifically in the list view showing the list of agents.",
|
|
1707
1728
|
"enableJsonFlag": true,
|
|
@@ -2077,5 +2098,5 @@
|
|
|
2077
2098
|
]
|
|
2078
2099
|
}
|
|
2079
2100
|
},
|
|
2080
|
-
"version": "5.
|
|
2101
|
+
"version": "5.10.0"
|
|
2081
2102
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/plugin-org",
|
|
3
3
|
"description": "Commands to interact with Salesforce orgs",
|
|
4
|
-
"version": "5.
|
|
4
|
+
"version": "5.10.0",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/forcedotcom/cli/issues",
|
|
7
7
|
"enableO11y": true,
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@oclif/core": "^4.10.5",
|
|
11
11
|
"@oclif/multi-stage-output": "^0.8.36",
|
|
12
|
-
"@salesforce/core": "^8.28.
|
|
12
|
+
"@salesforce/core": "^8.28.2",
|
|
13
13
|
"@salesforce/kit": "^3.2.4",
|
|
14
14
|
"@salesforce/sf-plugins-core": "^12.2.6",
|
|
15
15
|
"@salesforce/source-deploy-retrieve": "^12.32.4",
|
|
@@ -22,10 +22,10 @@
|
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@oclif/plugin-command-snapshot": "^5.3.13",
|
|
25
|
-
"@salesforce/cli-plugins-testkit": "^5.3.
|
|
25
|
+
"@salesforce/cli-plugins-testkit": "^5.3.53",
|
|
26
26
|
"@salesforce/dev-scripts": "^11.0.4",
|
|
27
|
-
"@salesforce/plugin-command-reference": "^3.1.
|
|
28
|
-
"@salesforce/ts-sinon": "^1.4.
|
|
27
|
+
"@salesforce/plugin-command-reference": "^3.1.91",
|
|
28
|
+
"@salesforce/ts-sinon": "^1.4.34",
|
|
29
29
|
"eslint-plugin-sf-plugin": "^1.20.33",
|
|
30
30
|
"moment": "^2.30.1",
|
|
31
31
|
"oclif": "^4.23.0",
|
|
@@ -230,7 +230,7 @@
|
|
|
230
230
|
"exports": "./lib/index.js",
|
|
231
231
|
"type": "module",
|
|
232
232
|
"sfdx": {
|
|
233
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/5.
|
|
234
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/5.
|
|
233
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/5.10.0.crt",
|
|
234
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/5.10.0.sig"
|
|
235
235
|
}
|
|
236
236
|
}
|