@salesforce/plugin-agent 1.17.0 → 1.18.1

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
@@ -132,7 +132,7 @@ EXAMPLES
132
132
  $ sf agent create --agent-name "Resort Manager" --spec specs/resortManagerAgent.yaml --preview
133
133
  ```
134
134
 
135
- _See code: [src/commands/agent/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.17.0/src/commands/agent/create.ts)_
135
+ _See code: [src/commands/agent/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.1/src/commands/agent/create.ts)_
136
136
 
137
137
  ## `sf agent generate agent-spec`
138
138
 
@@ -237,11 +237,11 @@ EXAMPLES
237
237
  $ sf agent generate agent-spec --tone formal --agent-user resortmanager@myorg.com
238
238
  ```
239
239
 
240
- _See code: [src/commands/agent/generate/agent-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.17.0/src/commands/agent/generate/agent-spec.ts)_
240
+ _See code: [src/commands/agent/generate/agent-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.1/src/commands/agent/generate/agent-spec.ts)_
241
241
 
242
242
  ## `sf agent generate template`
243
243
 
244
- Generate an agent template for packaging.
244
+ Generate an agent template from an existing agent in your DX project so you can then package the template in a managed package.
245
245
 
246
246
  ```
247
247
  USAGE
@@ -249,10 +249,10 @@ USAGE
249
249
  <value>]
250
250
 
251
251
  FLAGS
252
- -f, --agent-file=<value> (required) The path to an Agent (Bot) file.
252
+ -f, --agent-file=<value> (required) Path to an agent (Bot) metadata file.
253
253
  -o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
254
254
  configuration variable is already set.
255
- --agent-version=<value> (required) Version of the Agent (botVersion).
255
+ --agent-version=<value> (required) Version of the agent (BotVersion).
256
256
  --api-version=<value> Override the api version used for api requests made by this command
257
257
 
258
258
  GLOBAL FLAGS
@@ -260,18 +260,35 @@ GLOBAL FLAGS
260
260
  --json Format output as json.
261
261
 
262
262
  DESCRIPTION
263
- Generate an agent template for packaging.
264
-
265
- Generate agent template metadata to for packaging your agent.
263
+ Generate an agent template from an existing agent in your DX project so you can then package the template in a managed
264
+ package.
265
+
266
+ At a high-level, agents are defined by the Bot, BotVersion, and GenAiPlanner metadata types. The GenAiPlanner type in
267
+ turn defines the agent's topics and actions. This command uses the metadata files for these three types, located in
268
+ your local DX project, to generate a BotTemplate file for a specific agent (Bot). You then use the BotTemplate file,
269
+ along with the GenAiPlanner file that references the BotTemplate, to package the template in a managed package that
270
+ you can share between orgs or on AppExchange.
271
+
272
+ Use the --agent-file flag to specify the relative or full pathname of the Bot metadata file, such as
273
+ force-app/main/default/bots/My_Awesome_Agent/My_Awesome_Agent.bot-meta.xml. A single Bot can have multiple
274
+ BotVersions, so use the --agent-version flag to specify the version. The corresponding BotVersion file must exist
275
+ locally. For example, if you specify "--agent-version 4", then the file
276
+ force-app/main/default/bots/My_Awesome_Agent/v4.botVersion-meta.xml must exist.
277
+
278
+ The new BotTemplate file is generated in the "botTemplates" directory in your local package directory, and has the
279
+ name <Agent_API_name>\_v<Version>\_Template.botTemplate-meta.xml, such as
280
+ force-app/main/default/botTemplates/My_Awesome_Agent_v4_Template.botTemplate-meta.xml. The command displays the full
281
+ pathname of the generated files when it completes.
266
282
 
267
283
  EXAMPLES
268
- Generate an agent template from a Bot metadata file in your project:
284
+ Generate an agent template from a Bot metadata file in your DX project that corresponds to the My_Awesome_Agent
285
+ agent; use version 1 of the agent.
269
286
 
270
287
  $ sf agent generate template --agent-file \
271
288
  force-app/main/default/bots/My_Awesome_Agent/My_Awesome_Agent.bot-meta.xml --agent-version 1
272
289
  ```
273
290
 
274
- _See code: [src/commands/agent/generate/template.ts](https://github.com/salesforcecli/plugin-agent/blob/1.17.0/src/commands/agent/generate/template.ts)_
291
+ _See code: [src/commands/agent/generate/template.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.1/src/commands/agent/generate/template.ts)_
275
292
 
276
293
  ## `sf agent generate test-spec`
277
294
 
@@ -282,7 +299,7 @@ USAGE
282
299
  $ sf agent generate test-spec [--flags-dir <value>] [-d <value>] [--force-overwrite] [-f <value>]
283
300
 
284
301
  FLAGS
285
- -d, --from-definition=<value> The API name of the AIEvaluationDefinition that you want to convert to a spec file.
302
+ -d, --from-definition=<value> The file path to the AIEvaluationDefinition that you want to convert to a spec file.
286
303
  -f, --output-file=<value> The name of the generated spec file. Defaults to "specs/<AGENT_API_NAME>-testSpec.yaml"
287
304
  --force-overwrite Don't prompt for confirmation when overwriting an existing test spec file.
288
305
 
@@ -299,7 +316,7 @@ EXAMPLES
299
316
  $ sf agent generate test-spec
300
317
  ```
301
318
 
302
- _See code: [src/commands/agent/generate/test-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.17.0/src/commands/agent/generate/test-spec.ts)_
319
+ _See code: [src/commands/agent/generate/test-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.1/src/commands/agent/generate/test-spec.ts)_
303
320
 
304
321
  ## `sf agent preview`
305
322
 
@@ -334,7 +351,7 @@ FLAG DESCRIPTIONS
334
351
  the API name of the agent? (TBD based on agents library)
335
352
  ```
336
353
 
337
- _See code: [src/commands/agent/preview.ts](https://github.com/salesforcecli/plugin-agent/blob/1.17.0/src/commands/agent/preview.ts)_
354
+ _See code: [src/commands/agent/preview.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.1/src/commands/agent/preview.ts)_
338
355
 
339
356
  ## `sf agent test create`
340
357
 
@@ -370,7 +387,7 @@ EXAMPLES
370
387
  $ sf agent test create
371
388
  ```
372
389
 
373
- _See code: [src/commands/agent/test/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.17.0/src/commands/agent/test/create.ts)_
390
+ _See code: [src/commands/agent/test/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.1/src/commands/agent/test/create.ts)_
374
391
 
375
392
  ## `sf agent test list`
376
393
 
@@ -399,7 +416,7 @@ EXAMPLES
399
416
  $ sf agent test list
400
417
  ```
401
418
 
402
- _See code: [src/commands/agent/test/list.ts](https://github.com/salesforcecli/plugin-agent/blob/1.17.0/src/commands/agent/test/list.ts)_
419
+ _See code: [src/commands/agent/test/list.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.1/src/commands/agent/test/list.ts)_
403
420
 
404
421
  ## `sf agent test results`
405
422
 
@@ -455,7 +472,7 @@ FLAG DESCRIPTIONS
455
472
  test results aren't written.
456
473
  ```
457
474
 
458
- _See code: [src/commands/agent/test/results.ts](https://github.com/salesforcecli/plugin-agent/blob/1.17.0/src/commands/agent/test/results.ts)_
475
+ _See code: [src/commands/agent/test/results.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.1/src/commands/agent/test/results.ts)_
459
476
 
460
477
  ## `sf agent test resume`
461
478
 
@@ -518,7 +535,7 @@ FLAG DESCRIPTIONS
518
535
  test results aren't written.
519
536
  ```
520
537
 
521
- _See code: [src/commands/agent/test/resume.ts](https://github.com/salesforcecli/plugin-agent/blob/1.17.0/src/commands/agent/test/resume.ts)_
538
+ _See code: [src/commands/agent/test/resume.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.1/src/commands/agent/test/resume.ts)_
522
539
 
523
540
  ## `sf agent test run`
524
541
 
@@ -581,6 +598,6 @@ FLAG DESCRIPTIONS
581
598
  test results aren't written.
582
599
  ```
583
600
 
584
- _See code: [src/commands/agent/test/run.ts](https://github.com/salesforcecli/plugin-agent/blob/1.17.0/src/commands/agent/test/run.ts)_
601
+ _See code: [src/commands/agent/test/run.ts](https://github.com/salesforcecli/plugin-agent/blob/1.18.1/src/commands/agent/test/run.ts)_
585
602
 
586
603
  <!-- commandsstop -->
@@ -8,7 +8,7 @@ import { readFile } from 'node:fs/promises';
8
8
  import { join, parse } from 'node:path';
9
9
  import { existsSync } from 'node:fs';
10
10
  import { SfCommand, Flags } from '@salesforce/sf-plugins-core';
11
- import { Messages, SfError, SfProject } from '@salesforce/core';
11
+ import { Messages, SfProject } from '@salesforce/core';
12
12
  import { writeTestSpec, generateTestSpecFromAiEvalDefinition } from '@salesforce/agents';
13
13
  import { select, input, confirm, checkbox } from '@inquirer/prompts';
14
14
  import { XMLParser } from 'fast-xml-parser';
@@ -182,9 +182,16 @@ export default class AgentGenerateTestSpec extends SfCommand {
182
182
  static enableJsonFlag = false;
183
183
  static state = 'beta';
184
184
  static flags = {
185
- 'from-definition': Flags.string({
185
+ 'from-definition': Flags.file({
186
186
  char: 'd',
187
+ exists: true,
187
188
  summary: messages.getMessage('flags.from-definition.summary'),
189
+ parse: async (raw) => {
190
+ if (!raw.endsWith('aiEvaluationDefinition-meta.xml')) {
191
+ throw messages.createError('error.InvalidAiEvaluationDefinition');
192
+ }
193
+ return Promise.resolve(raw);
194
+ },
188
195
  }),
189
196
  'force-overwrite': Flags.boolean({
190
197
  summary: messages.getMessage('flags.force-overwrite.summary'),
@@ -192,7 +199,7 @@ export default class AgentGenerateTestSpec extends SfCommand {
192
199
  'output-file': Flags.file({
193
200
  char: 'f',
194
201
  summary: messages.getMessage('flags.output-file.summary'),
195
- parse: async (raw) => Promise.resolve(raw ? ensureYamlExtension(raw) : undefined),
202
+ parse: async (raw) => Promise.resolve(ensureYamlExtension(raw)),
196
203
  }),
197
204
  };
198
205
  async run() {
@@ -200,16 +207,12 @@ export default class AgentGenerateTestSpec extends SfCommand {
200
207
  const directoryPaths = (await SfProject.resolve().then((project) => project.getPackageDirectories())).map((dir) => dir.fullPath);
201
208
  const cs = await ComponentSetBuilder.build({
202
209
  metadata: {
203
- metadataEntries: ['GenAiPlanner', 'GenAiPlugin', 'Bot', 'AiEvaluationDefinition'],
210
+ metadataEntries: ['GenAiPlanner', 'GenAiPlugin', 'Bot'],
204
211
  directoryPaths,
205
212
  },
206
213
  });
207
214
  if (flags['from-definition']) {
208
- const aiEvalDefs = getMetadataFilePaths(cs, 'AiEvaluationDefinition');
209
- if (!aiEvalDefs[flags['from-definition']]) {
210
- throw new SfError(`AiEvaluationDefinition ${flags['from-definition']} not found`, 'AiEvalDefinitionNotFoundError');
211
- }
212
- const spec = await generateTestSpecFromAiEvalDefinition(aiEvalDefs[flags['from-definition']]);
215
+ const spec = await generateTestSpecFromAiEvalDefinition(flags['from-definition']);
213
216
  const outputFile = await determineFilePath(spec.subjectName, flags['output-file'], flags['force-overwrite']);
214
217
  if (!outputFile) {
215
218
  this.log(messages.getMessage('info.cancel'));
@@ -226,7 +229,7 @@ export default class AgentGenerateTestSpec extends SfCommand {
226
229
  .filter((n) => n !== '*'),
227
230
  ];
228
231
  if (bots.length === 0) {
229
- throw new SfError(`No agents found in ${directoryPaths.join(', ')}`, 'NoAgentsFoundError');
232
+ throw messages.createError('error.NoAgentsFound', [directoryPaths.join(', ')]);
230
233
  }
231
234
  const subjectType = await select({
232
235
  message: 'What are you testing',
@@ -1 +1 @@
1
- {"version":3,"file":"test-spec.js","sourceRoot":"","sources":["../../../../src/commands/agent/generate/test-spec.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,oCAAoC,EAAE,MAAM,oBAAoB,CAAC;AACzF,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAgB,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACvF,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,KAAK,EAAE,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AE,YAAY,EAAE,cAAc,EAAE,GAAG,MAAM,sBAAsB,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC;QAEvF,MAAM,IAAI,GAAG,MAAM,KAAK,CAAC;YACvB,OAAO,EAAE,sCAAsC;YAC/C,QAAQ,CAAC,CAAS;gBAChB,6BAA6B;gBAC7B,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;oBACd,OAAO,sBAAsB,CAAC;gBAChC,CAAC;gBAED,OAAO,IAAI,CAAC;YACd,CAAC;YACD,KAAK;SACN,CAAC,CAAC;QAEH,MAAM,WAAW,GAAG,MAAM,KAAK,CAAC;YAC9B,OAAO,EAAE,oDAAoD;YAC7D,KAAK;SACN,CAAC,CAAC;QAEH,MAAM,SAAS,GAAG,EAAE,CAAC;QACrB,GAAG,CAAC;YACF,IAAI,CAAC,GAAG,EAAE,CAAC;YACX,IAAI,CAAC,YAAY,CAAC,qBAAqB,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,CAAC;YAC/D,4CAA4C;YAC5C,SAAS,CAAC,IAAI,CAAC,MAAM,iBAAiB,CAAC,YAAY,EAAE,cAAc,CAAC,CAAC,CAAC;QACxE,CAAC,SAAS,4CAA4C;QACpD,MAAM,OAAO,CAAC;YACZ,OAAO,EAAE,yCAAyC;YAClD,OAAO,EAAE,IAAI;SACd,CAAC,EACF;QAEF,IAAI,CAAC,GAAG,EAAE,CAAC;QAEX,MAAM,aAAa,CACjB;YACE,IAAI;YACJ,WAAW;YACX,WAAW;YACX,WAAW;YACX,SAAS;SACV,EACD,UAAU,CACX,CAAC;QACF,IAAI,CAAC,GAAG,CAAC,WAAW,UAAU,EAAE,CAAC,CAAC;IACpC,CAAC"}
@@ -1,21 +1,25 @@
1
1
  # summary
2
2
 
3
- Generate an agent template for packaging.
3
+ Generate an agent template from an existing agent in your DX project so you can then package the template in a managed package.
4
4
 
5
5
  # description
6
6
 
7
- Generate agent template metadata to for packaging your agent.
7
+ At a high-level, agents are defined by the Bot, BotVersion, and GenAiPlanner metadata types. The GenAiPlanner type in turn defines the agent's topics and actions. This command uses the metadata files for these three types, located in your local DX project, to generate a BotTemplate file for a specific agent (Bot). You then use the BotTemplate file, along with the GenAiPlanner file that references the BotTemplate, to package the template in a managed package that you can share between orgs or on AppExchange.
8
+
9
+ Use the --agent-file flag to specify the relative or full pathname of the Bot metadata file, such as force-app/main/default/bots/My_Awesome_Agent/My_Awesome_Agent.bot-meta.xml. A single Bot can have multiple BotVersions, so use the --agent-version flag to specify the version. The corresponding BotVersion file must exist locally. For example, if you specify "--agent-version 4", then the file force-app/main/default/bots/My_Awesome_Agent/v4.botVersion-meta.xml must exist.
10
+
11
+ The new BotTemplate file is generated in the "botTemplates" directory in your local package directory, and has the name <Agent_API_name>\_v<Version>\_Template.botTemplate-meta.xml, such as force-app/main/default/botTemplates/My_Awesome_Agent_v4_Template.botTemplate-meta.xml. The command displays the full pathname of the generated files when it completes.
8
12
 
9
13
  # examples
10
14
 
11
- - Generate an agent template from a Bot metadata file in your project:
15
+ - Generate an agent template from a Bot metadata file in your DX project that corresponds to the My_Awesome_Agent agent; use version 1 of the agent.
12
16
 
13
17
  <%= config.bin %> <%= command.id %> --agent-file force-app/main/default/bots/My_Awesome_Agent/My_Awesome_Agent.bot-meta.xml --agent-version 1
14
18
 
15
19
  # flags.agent-version.summary
16
20
 
17
- Version of the Agent (botVersion).
21
+ Version of the agent (BotVersion).
18
22
 
19
23
  # flags.agent-file.summary
20
24
 
21
- The path to an Agent (Bot) file.
25
+ Path to an agent (Bot) metadata file.
@@ -8,7 +8,7 @@ This command will prompt you for the necessary information to create a new spec
8
8
 
9
9
  # flags.from-definition.summary
10
10
 
11
- The API name of the AIEvaluationDefinition that you want to convert to a spec file.
11
+ The file path to the AIEvaluationDefinition that you want to convert to a spec file.
12
12
 
13
13
  # flags.force-overwrite.summary
14
14
 
@@ -25,3 +25,11 @@ The name of the generated spec file. Defaults to "specs/<AGENT_API_NAME>-testSpe
25
25
  # info.cancel
26
26
 
27
27
  Operation canceled.
28
+
29
+ # error.InvalidAiEvaluationDefinition
30
+
31
+ File must be an AiEvaluationDefinition metadata file
32
+
33
+ # error.NoAgentsFound
34
+
35
+ No agents found in %s
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-agent",
3
- "version": "1.17.0",
3
+ "version": "1.18.1",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@salesforce/plugin-agent",
9
- "version": "1.17.0",
9
+ "version": "1.18.1",
10
10
  "license": "BSD-3-Clause",
11
11
  "dependencies": {
12
12
  "@inquirer/core": "^10.1.6",
@@ -367,9 +367,9 @@
367
367
  "agent:generate:template": {
368
368
  "aliases": [],
369
369
  "args": {},
370
- "description": "Generate agent template metadata to for packaging your agent.",
370
+ "description": "At a high-level, agents are defined by the Bot, BotVersion, and GenAiPlanner metadata types. The GenAiPlanner type in turn defines the agent's topics and actions. This command uses the metadata files for these three types, located in your local DX project, to generate a BotTemplate file for a specific agent (Bot). You then use the BotTemplate file, along with the GenAiPlanner file that references the BotTemplate, to package the template in a managed package that you can share between orgs or on AppExchange.\n\nUse the --agent-file flag to specify the relative or full pathname of the Bot metadata file, such as force-app/main/default/bots/My_Awesome_Agent/My_Awesome_Agent.bot-meta.xml. A single Bot can have multiple BotVersions, so use the --agent-version flag to specify the version. The corresponding BotVersion file must exist locally. For example, if you specify \"--agent-version 4\", then the file force-app/main/default/bots/My_Awesome_Agent/v4.botVersion-meta.xml must exist.\n\nThe new BotTemplate file is generated in the \"botTemplates\" directory in your local package directory, and has the name <Agent_API_name>\\_v<Version>\\_Template.botTemplate-meta.xml, such as force-app/main/default/botTemplates/My_Awesome_Agent_v4_Template.botTemplate-meta.xml. The command displays the full pathname of the generated files when it completes.",
371
371
  "examples": [
372
- "Generate an agent template from a Bot metadata file in your project:\n<%= config.bin %> <%= command.id %> --agent-file force-app/main/default/bots/My_Awesome_Agent/My_Awesome_Agent.bot-meta.xml --agent-version 1"
372
+ "Generate an agent template from a Bot metadata file in your DX project that corresponds to the My_Awesome_Agent agent; use version 1 of the agent.\n<%= config.bin %> <%= command.id %> --agent-file force-app/main/default/bots/My_Awesome_Agent/My_Awesome_Agent.bot-meta.xml --agent-version 1"
373
373
  ],
374
374
  "flags": {
375
375
  "json": {
@@ -407,7 +407,7 @@
407
407
  "agent-version": {
408
408
  "name": "agent-version",
409
409
  "required": true,
410
- "summary": "Version of the Agent (botVersion).",
410
+ "summary": "Version of the agent (BotVersion).",
411
411
  "hasDynamicHelp": false,
412
412
  "multiple": false,
413
413
  "type": "option"
@@ -416,7 +416,7 @@
416
416
  "char": "f",
417
417
  "name": "agent-file",
418
418
  "required": true,
419
- "summary": "The path to an Agent (Bot) file.",
419
+ "summary": "Path to an agent (Bot) metadata file.",
420
420
  "hasDynamicHelp": false,
421
421
  "multiple": false,
422
422
  "type": "option"
@@ -430,7 +430,7 @@
430
430
  "pluginType": "core",
431
431
  "state": "beta",
432
432
  "strict": true,
433
- "summary": "Generate an agent template for packaging.",
433
+ "summary": "Generate an agent template from an existing agent in your DX project so you can then package the template in a managed package.",
434
434
  "enableJsonFlag": true,
435
435
  "requiresProject": true,
436
436
  "isESM": true,
@@ -470,7 +470,7 @@
470
470
  "from-definition": {
471
471
  "char": "d",
472
472
  "name": "from-definition",
473
- "summary": "The API name of the AIEvaluationDefinition that you want to convert to a spec file.",
473
+ "summary": "The file path to the AIEvaluationDefinition that you want to convert to a spec file.",
474
474
  "hasDynamicHelp": false,
475
475
  "multiple": false,
476
476
  "type": "option"
@@ -1100,5 +1100,5 @@
1100
1100
  ]
1101
1101
  }
1102
1102
  },
1103
- "version": "1.17.0"
1103
+ "version": "1.18.1"
1104
1104
  }
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.17.0",
4
+ "version": "1.18.1",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/forcedotcom/cli/issues",
7
7
  "dependencies": {
@@ -229,7 +229,7 @@
229
229
  "exports": "./lib/index.js",
230
230
  "type": "module",
231
231
  "sfdx": {
232
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.17.0.crt",
233
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.17.0.sig"
232
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.18.1.crt",
233
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.18.1.sig"
234
234
  }
235
235
  }