@salesforce/plugin-agent 1.26.8 → 1.27.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
@@ -112,7 +112,7 @@ EXAMPLES
112
112
  $ sf agent activate --api-name Resort_Manager --target-org my-org
113
113
  ```
114
114
 
115
- _See code: [src/commands/agent/activate.ts](https://github.com/salesforcecli/plugin-agent/blob/1.26.8/src/commands/agent/activate.ts)_
115
+ _See code: [src/commands/agent/activate.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.0/src/commands/agent/activate.ts)_
116
116
 
117
117
  ## `sf agent create`
118
118
 
@@ -179,7 +179,7 @@ EXAMPLES
179
179
  $ sf agent create --name "Resort Manager" --spec specs/resortManagerAgent.yaml --preview
180
180
  ```
181
181
 
182
- _See code: [src/commands/agent/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.26.8/src/commands/agent/create.ts)_
182
+ _See code: [src/commands/agent/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.0/src/commands/agent/create.ts)_
183
183
 
184
184
  ## `sf agent deactivate`
185
185
 
@@ -219,7 +219,7 @@ EXAMPLES
219
219
  $ sf agent deactivate --api-name Resort_Manager --target-org my-org
220
220
  ```
221
221
 
222
- _See code: [src/commands/agent/deactivate.ts](https://github.com/salesforcecli/plugin-agent/blob/1.26.8/src/commands/agent/deactivate.ts)_
222
+ _See code: [src/commands/agent/deactivate.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.0/src/commands/agent/deactivate.ts)_
223
223
 
224
224
  ## `sf agent generate agent-spec`
225
225
 
@@ -326,7 +326,7 @@ EXAMPLES
326
326
  $ sf agent generate agent-spec --tone formal --agent-user resortmanager@myorg.com
327
327
  ```
328
328
 
329
- _See code: [src/commands/agent/generate/agent-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.26.8/src/commands/agent/generate/agent-spec.ts)_
329
+ _See code: [src/commands/agent/generate/agent-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.0/src/commands/agent/generate/agent-spec.ts)_
330
330
 
331
331
  ## `sf agent generate authoring-bundle`
332
332
 
@@ -392,7 +392,7 @@ EXAMPLES
392
392
  other-package-dir/main/default --target-org my-dev-org
393
393
  ```
394
394
 
395
- _See code: [src/commands/agent/generate/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.26.8/src/commands/agent/generate/authoring-bundle.ts)_
395
+ _See code: [src/commands/agent/generate/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.0/src/commands/agent/generate/authoring-bundle.ts)_
396
396
 
397
397
  ## `sf agent generate template`
398
398
 
@@ -440,7 +440,7 @@ EXAMPLES
440
440
  force-app/main/default/bots/My_Awesome_Agent/My_Awesome_Agent.bot-meta.xml --agent-version 1
441
441
  ```
442
442
 
443
- _See code: [src/commands/agent/generate/template.ts](https://github.com/salesforcecli/plugin-agent/blob/1.26.8/src/commands/agent/generate/template.ts)_
443
+ _See code: [src/commands/agent/generate/template.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.0/src/commands/agent/generate/template.ts)_
444
444
 
445
445
  ## `sf agent generate test-spec`
446
446
 
@@ -501,7 +501,7 @@ EXAMPLES
501
501
  force-app//main/default/aiEvaluationDefinitions/Resort_Manager_Tests.aiEvaluationDefinition-meta.xml
502
502
  ```
503
503
 
504
- _See code: [src/commands/agent/generate/test-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.26.8/src/commands/agent/generate/test-spec.ts)_
504
+ _See code: [src/commands/agent/generate/test-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.0/src/commands/agent/generate/test-spec.ts)_
505
505
 
506
506
  ## `sf agent preview`
507
507
 
@@ -574,7 +574,7 @@ EXAMPLES
574
574
  $ sf agent preview --use-live-actions --apex-debug --output-dir transcripts/my-preview
575
575
  ```
576
576
 
577
- _See code: [src/commands/agent/preview.ts](https://github.com/salesforcecli/plugin-agent/blob/1.26.8/src/commands/agent/preview.ts)_
577
+ _See code: [src/commands/agent/preview.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.0/src/commands/agent/preview.ts)_
578
578
 
579
579
  ## `sf agent publish authoring-bundle`
580
580
 
@@ -583,6 +583,7 @@ Publish an authoring bundle to your org, which results in a new agent or a new v
583
583
  ```
584
584
  USAGE
585
585
  $ sf agent publish authoring-bundle -o <value> [--json] [--flags-dir <value>] [--api-version <value>] [-n <value>]
586
+ [--skip-retrieve]
586
587
 
587
588
  FLAGS
588
589
  -n, --api-name=<value> API name of the authoring bundle you want to publish; if not specified, the command
@@ -590,6 +591,7 @@ FLAGS
590
591
  -o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
591
592
  configuration variable is already set.
592
593
  --api-version=<value> Override the api version used for api requests made by this command
594
+ --skip-retrieve Don't retrieve the metadata associated with the agent to your DX project.
593
595
 
594
596
  GLOBAL FLAGS
595
597
  --flags-dir=<value> Import flag values from a directory.
@@ -606,8 +608,8 @@ DESCRIPTION
606
608
  Agent Script file successfully compiles. If there are compilation errors, the command exits and you must fix the Agent
607
609
  Script file to continue. Once the Agent Script file compiles, then it's published to the org, which in turn creates
608
610
  new associated metadata (Bot, BotVersion, GenAiX), or new versions of the metadata if the agent already exists. The
609
- new or updated metadata is retrieved back to your DX project, and then the authoring bundle metadata
610
- (AiAuthoringBundle) is deployed to your org.
611
+ new or updated metadata is retrieved back to your DX project; specify the --skip-retrieve flag to skip this step.
612
+ Finally, the authoring bundle metadata (AiAuthoringBundle) is deployed to your org.
611
613
 
612
614
  This command uses the API name of the authoring bundle.
613
615
 
@@ -621,7 +623,7 @@ EXAMPLES
621
623
  $ sf agent publish authoring-bundle --api-name MyAuthoringbundle --target-org my-dev-org
622
624
  ```
623
625
 
624
- _See code: [src/commands/agent/publish/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.26.8/src/commands/agent/publish/authoring-bundle.ts)_
626
+ _See code: [src/commands/agent/publish/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.0/src/commands/agent/publish/authoring-bundle.ts)_
625
627
 
626
628
  ## `sf agent test create`
627
629
 
@@ -676,7 +678,7 @@ EXAMPLES
676
678
  $ sf agent test create --spec specs/Resort_Manager-testSpec.yaml --api-name Resort_Manager_Test --preview
677
679
  ```
678
680
 
679
- _See code: [src/commands/agent/test/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.26.8/src/commands/agent/test/create.ts)_
681
+ _See code: [src/commands/agent/test/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.0/src/commands/agent/test/create.ts)_
680
682
 
681
683
  ## `sf agent test list`
682
684
 
@@ -711,7 +713,7 @@ EXAMPLES
711
713
  $ sf agent test list --target-org my-org
712
714
  ```
713
715
 
714
- _See code: [src/commands/agent/test/list.ts](https://github.com/salesforcecli/plugin-agent/blob/1.26.8/src/commands/agent/test/list.ts)_
716
+ _See code: [src/commands/agent/test/list.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.0/src/commands/agent/test/list.ts)_
715
717
 
716
718
  ## `sf agent test results`
717
719
 
@@ -777,7 +779,7 @@ FLAG DESCRIPTIONS
777
779
  expression when using custom evaluations.
778
780
  ```
779
781
 
780
- _See code: [src/commands/agent/test/results.ts](https://github.com/salesforcecli/plugin-agent/blob/1.26.8/src/commands/agent/test/results.ts)_
782
+ _See code: [src/commands/agent/test/results.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.0/src/commands/agent/test/results.ts)_
781
783
 
782
784
  ## `sf agent test resume`
783
785
 
@@ -850,7 +852,7 @@ FLAG DESCRIPTIONS
850
852
  expression when using custom evaluations.
851
853
  ```
852
854
 
853
- _See code: [src/commands/agent/test/resume.ts](https://github.com/salesforcecli/plugin-agent/blob/1.26.8/src/commands/agent/test/resume.ts)_
855
+ _See code: [src/commands/agent/test/resume.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.0/src/commands/agent/test/resume.ts)_
854
856
 
855
857
  ## `sf agent test run`
856
858
 
@@ -924,7 +926,7 @@ FLAG DESCRIPTIONS
924
926
  expression when using custom evaluations.
925
927
  ```
926
928
 
927
- _See code: [src/commands/agent/test/run.ts](https://github.com/salesforcecli/plugin-agent/blob/1.26.8/src/commands/agent/test/run.ts)_
929
+ _See code: [src/commands/agent/test/run.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.0/src/commands/agent/test/run.ts)_
928
930
 
929
931
  ## `sf agent validate authoring-bundle`
930
932
 
@@ -971,6 +973,6 @@ EXAMPLES
971
973
  $ sf agent validate authoring-bundle --api-name MyAuthoringBundle --target-org my-dev-org
972
974
  ```
973
975
 
974
- _See code: [src/commands/agent/validate/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.26.8/src/commands/agent/validate/authoring-bundle.ts)_
976
+ _See code: [src/commands/agent/validate/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/1.27.0/src/commands/agent/validate/authoring-bundle.ts)_
975
977
 
976
978
  <!-- commandsstop -->
@@ -14,6 +14,7 @@ export default class AgentPublishAuthoringBundle extends SfCommand<AgentPublishA
14
14
  'target-org': import("@oclif/core/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/interfaces").CustomOptions>;
15
15
  'api-version': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
16
16
  'api-name': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
17
+ 'skip-retrieve': import("@oclif/core/interfaces").BooleanFlag<boolean>;
17
18
  };
18
19
  private static readonly FLAGGABLE_PROMPTS;
19
20
  run(): Promise<AgentPublishAuthoringBundleResult>;
@@ -37,6 +37,9 @@ export default class AgentPublishAuthoringBundle extends SfCommand {
37
37
  char: 'n',
38
38
  summary: messages.getMessage('flags.api-name.summary'),
39
39
  }),
40
+ 'skip-retrieve': Flags.boolean({
41
+ summary: messages.getMessage('flags.skip-retrieve.summary'),
42
+ }),
40
43
  };
41
44
  static FLAGGABLE_PROMPTS = {
42
45
  'api-name': {
@@ -79,7 +82,11 @@ export default class AgentPublishAuthoringBundle extends SfCommand {
79
82
  mso.goto('Validate Bundle');
80
83
  const targetOrg = flags['target-org'];
81
84
  const conn = targetOrg.getConnection(flags['api-version']);
82
- const agent = await Agent.init({ connection: conn, project: this.project, aabName });
85
+ const agent = await Agent.init({
86
+ connection: conn,
87
+ project: this.project,
88
+ aabName,
89
+ });
83
90
  // First compile the .agent file to get the Agent JSON
84
91
  const compileResponse = await agent.compile();
85
92
  if (compileResponse.status === 'success') {
@@ -90,10 +97,12 @@ export default class AgentPublishAuthoringBundle extends SfCommand {
90
97
  }
91
98
  // Then publish the Agent JSON to create the agent
92
99
  // Set up lifecycle listeners for retrieve events
93
- Lifecycle.getInstance().on('scopedPreRetrieve', () => {
94
- mso.skipTo('Retrieve Metadata');
95
- return Promise.resolve();
96
- });
100
+ if (!flags['skip-retrieve']) {
101
+ Lifecycle.getInstance().on('scopedPreRetrieve', () => {
102
+ mso.skipTo('Retrieve Metadata');
103
+ return Promise.resolve();
104
+ });
105
+ }
97
106
  // Set up lifecycle listeners for deploy events
98
107
  Lifecycle.getInstance().on('scopedPreDeploy', () => {
99
108
  mso.skipTo('Deploy Metadata');
@@ -125,7 +134,7 @@ export default class AgentPublishAuthoringBundle extends SfCommand {
125
134
  }
126
135
  return Promise.resolve();
127
136
  });
128
- const result = await agent.publish();
137
+ const result = await agent.publish(flags['skip-retrieve']);
129
138
  mso.stop();
130
139
  return {
131
140
  success: true,
@@ -1 +1 @@
1
- {"version":3,"file":"authoring-bundle.js","sourceRoot":"","sources":["../../../../src/commands/agent/publish/authoring-bundle.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,GAAG,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,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CAAC,IAAI,EAAE,CAAC;YAEX,OAAO;gBACL,OAAO,EAAE,IAAI;gBACb,gBAAgB,EAAE,MAAM,CAAC,aAAa;aACvC,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,2BAA2B;YAC3B,MAAM,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YAChC,MAAM,OAAO,GAAG,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC;YACrD,MAAM,YAAY,GAAG,QAAQ,CAAC,UAAU,CAAC,qBAAqB,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;YAE3E,uCAAuC;YACvC,GAAG,CAAC,KAAK,EAAE,CAAC;YAEZ,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;YAEzB,OAAO;gBACL,OAAO,EAAE,KAAK;gBACd,MAAM,EAAE,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC;aAChC,CAAC;QACJ,CAAC;IACH,CAAC"}
@@ -6,7 +6,7 @@ Publish an authoring bundle to your org, which results in a new agent or a new v
6
6
 
7
7
  An authoring bundle is a metadata type (named aiAuthoringBundle) that provides the blueprint for an agent. The metadata type contains two files: the standard metatada XML file and an Agent Script file (extension ".agent") that fully describes the agent using the Agent Script language.
8
8
 
9
- When you publish an authoring bundle to your org, a number of things happen. First, this command validates that the Agent Script file successfully compiles. If there are compilation errors, the command exits and you must fix the Agent Script file to continue. Once the Agent Script file compiles, then it's published to the org, which in turn creates new associated metadata (Bot, BotVersion, GenAiX), or new versions of the metadata if the agent already exists. The new or updated metadata is retrieved back to your DX project, and then the authoring bundle metadata (AiAuthoringBundle) is deployed to your org.
9
+ When you publish an authoring bundle to your org, a number of things happen. First, this command validates that the Agent Script file successfully compiles. If there are compilation errors, the command exits and you must fix the Agent Script file to continue. Once the Agent Script file compiles, then it's published to the org, which in turn creates new associated metadata (Bot, BotVersion, GenAiX), or new versions of the metadata if the agent already exists. The new or updated metadata is retrieved back to your DX project; specify the --skip-retrieve flag to skip this step. Finally, the authoring bundle metadata (AiAuthoringBundle) is deployed to your org.
10
10
 
11
11
  This command uses the API name of the authoring bundle.
12
12
 
@@ -28,6 +28,10 @@ API name of the authoring bundle you want to publish; if not specified, the comm
28
28
 
29
29
  API name of the authoring bundle to publish
30
30
 
31
+ # flags.skip-retrieve.summary
32
+
33
+ Don't retrieve the metadata associated with the agent to your DX project.
34
+
31
35
  # error.missingRequiredFlags
32
36
 
33
37
  Required flag(s) missing: %s.
@@ -799,7 +799,7 @@
799
799
  "agent:publish:authoring-bundle": {
800
800
  "aliases": [],
801
801
  "args": {},
802
- "description": "An authoring bundle is a metadata type (named aiAuthoringBundle) that provides the blueprint for an agent. The metadata type contains two files: the standard metatada XML file and an Agent Script file (extension \".agent\") that fully describes the agent using the Agent Script language.\n\nWhen you publish an authoring bundle to your org, a number of things happen. First, this command validates that the Agent Script file successfully compiles. If there are compilation errors, the command exits and you must fix the Agent Script file to continue. Once the Agent Script file compiles, then it's published to the org, which in turn creates new associated metadata (Bot, BotVersion, GenAiX), or new versions of the metadata if the agent already exists. The new or updated metadata is retrieved back to your DX project, and then the authoring bundle metadata (AiAuthoringBundle) is deployed to your org. \n\nThis command uses the API name of the authoring bundle.",
802
+ "description": "An authoring bundle is a metadata type (named aiAuthoringBundle) that provides the blueprint for an agent. The metadata type contains two files: the standard metatada XML file and an Agent Script file (extension \".agent\") that fully describes the agent using the Agent Script language.\n\nWhen you publish an authoring bundle to your org, a number of things happen. First, this command validates that the Agent Script file successfully compiles. If there are compilation errors, the command exits and you must fix the Agent Script file to continue. Once the Agent Script file compiles, then it's published to the org, which in turn creates new associated metadata (Bot, BotVersion, GenAiX), or new versions of the metadata if the agent already exists. The new or updated metadata is retrieved back to your DX project; specify the --skip-retrieve flag to skip this step. Finally, the authoring bundle metadata (AiAuthoringBundle) is deployed to your org.\n\nThis command uses the API name of the authoring bundle.",
803
803
  "examples": [
804
804
  "Publish an authoring bundle by being prompted for its API name; use your default org:\n<%= config.bin %> <%= command.id %>",
805
805
  "Publish an authoring bundle with API name MyAuthoringBundle to the org with alias \"my-dev-org\":\n<%= config.bin %> <%= command.id %> --api-name MyAuthoringbundle --target-org my-dev-org"
@@ -844,6 +844,12 @@
844
844
  "hasDynamicHelp": false,
845
845
  "multiple": false,
846
846
  "type": "option"
847
+ },
848
+ "skip-retrieve": {
849
+ "name": "skip-retrieve",
850
+ "summary": "Don't retrieve the metadata associated with the agent to your DX project.",
851
+ "allowNo": false,
852
+ "type": "boolean"
847
853
  }
848
854
  },
849
855
  "hasDynamicHelp": true,
@@ -1481,5 +1487,5 @@
1481
1487
  ]
1482
1488
  }
1483
1489
  },
1484
- "version": "1.26.8"
1490
+ "version": "1.27.0"
1485
1491
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-agent",
3
3
  "description": "Commands to interact with Salesforce agents",
4
- "version": "1.26.8",
4
+ "version": "1.27.0",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/forcedotcom/cli/issues",
7
7
  "dependencies": {
@@ -9,11 +9,11 @@
9
9
  "@inquirer/prompts": "^7.10.1",
10
10
  "@oclif/core": "^4",
11
11
  "@oclif/multi-stage-output": "^0.8.29",
12
- "@salesforce/agents": "^0.21.1",
12
+ "@salesforce/agents": "^0.22.0",
13
13
  "@salesforce/core": "^8.24.3",
14
14
  "@salesforce/kit": "^3.2.3",
15
15
  "@salesforce/sf-plugins-core": "^12.2.6",
16
- "@salesforce/source-deploy-retrieve": "^12.31.7",
16
+ "@salesforce/source-deploy-retrieve": "^12.31.8",
17
17
  "@salesforce/types": "^1.5.0",
18
18
  "ansis": "^3.3.2",
19
19
  "fast-xml-parser": "^4.5.1",
@@ -38,7 +38,7 @@
38
38
  "eslint-plugin-react-hooks": "^4.6.2",
39
39
  "eslint-plugin-sf-plugin": "^1.20.33",
40
40
  "esmock": "^2.7.3",
41
- "oclif": "^4.22.51",
41
+ "oclif": "^4.22.68",
42
42
  "ts-node": "^10.9.2",
43
43
  "typescript": "^5.9.3"
44
44
  },
@@ -237,7 +237,7 @@
237
237
  "exports": "./lib/index.js",
238
238
  "type": "module",
239
239
  "sfdx": {
240
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.26.8.crt",
241
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.26.8.sig"
240
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.27.0.crt",
241
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.27.0.sig"
242
242
  }
243
243
  }