@salesforce/plugin-agent 1.6.0 → 1.6.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
@@ -80,7 +80,7 @@ USAGE
80
80
  $ sf agent create -o <value> -f <value> -n <value> [--json] [--flags-dir <value>] [--api-version <value>]
81
81
 
82
82
  FLAGS
83
- -f, --job-spec=<value> (required) Path to an agent spec file.
83
+ -f, --spec=<value> (required) Path to an agent spec file.
84
84
  -n, --name=<value> (required) API name of the new agent.
85
85
  -o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
86
86
  configuration variable is already set.
@@ -94,8 +94,8 @@ DESCRIPTION
94
94
  Create an agent in your org from a local agent spec file.
95
95
 
96
96
  To generate an agent spec file, run the "agent generate spec" CLI command, which outputs a JSON file with the list of
97
- jobs and descriptions that the new agent can perform. Then specify this generated spec file to the --job-spec flag of
98
- this command, along with the name of the new agent.
97
+ jobs and descriptions that the new agent can perform. Then specify this generated spec file to the --spec flag of this
98
+ command, along with the name of the new agent.
99
99
 
100
100
  When this command finishes, your org contains the new agent, which you can then edit in the Agent Builder UI. The new
101
101
  agent already has a list of topics and actions that were automatically created from the list of jobs in the provided
@@ -108,10 +108,10 @@ DESCRIPTION
108
108
  EXAMPLES
109
109
  Create an agent called "CustomerSupportAgent" in an org with alias "my-org" using the specified agent spec file:
110
110
 
111
- $ sf agent create --name CustomerSupportAgent --job-spec ./config/agentSpec.json --target-org my-org
111
+ $ sf agent create --name CustomerSupportAgent --spec ./config/agentSpec.json --target-org my-org
112
112
  ```
113
113
 
114
- _See code: [src/commands/agent/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.6.0/src/commands/agent/create.ts)_
114
+ _See code: [src/commands/agent/create.ts](https://github.com/salesforcecli/plugin-agent/blob/1.6.1/src/commands/agent/create.ts)_
115
115
 
116
116
  ## `sf agent generate definition`
117
117
 
@@ -136,7 +136,7 @@ EXAMPLES
136
136
  $ sf agent generate definition
137
137
  ```
138
138
 
139
- _See code: [src/commands/agent/generate/definition.ts](https://github.com/salesforcecli/plugin-agent/blob/1.6.0/src/commands/agent/generate/definition.ts)_
139
+ _See code: [src/commands/agent/generate/definition.ts](https://github.com/salesforcecli/plugin-agent/blob/1.6.1/src/commands/agent/generate/definition.ts)_
140
140
 
141
141
  ## `sf agent generate spec`
142
142
 
@@ -197,7 +197,7 @@ EXAMPLES
197
197
  $ sf agent generate spec --output-dir specs --target-org my-org
198
198
  ```
199
199
 
200
- _See code: [src/commands/agent/generate/spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.6.0/src/commands/agent/generate/spec.ts)_
200
+ _See code: [src/commands/agent/generate/spec.ts](https://github.com/salesforcecli/plugin-agent/blob/1.6.1/src/commands/agent/generate/spec.ts)_
201
201
 
202
202
  ## `sf agent generate testset`
203
203
 
@@ -220,7 +220,7 @@ EXAMPLES
220
220
  $ sf agent generate testset
221
221
  ```
222
222
 
223
- _See code: [src/commands/agent/generate/testset.ts](https://github.com/salesforcecli/plugin-agent/blob/1.6.0/src/commands/agent/generate/testset.ts)_
223
+ _See code: [src/commands/agent/generate/testset.ts](https://github.com/salesforcecli/plugin-agent/blob/1.6.1/src/commands/agent/generate/testset.ts)_
224
224
 
225
225
  ## `sf agent preview`
226
226
 
@@ -255,7 +255,7 @@ FLAG DESCRIPTIONS
255
255
  the API name of the agent? (TBD based on agents library)
256
256
  ```
257
257
 
258
- _See code: [src/commands/agent/preview.ts](https://github.com/salesforcecli/plugin-agent/blob/1.6.0/src/commands/agent/preview.ts)_
258
+ _See code: [src/commands/agent/preview.ts](https://github.com/salesforcecli/plugin-agent/blob/1.6.1/src/commands/agent/preview.ts)_
259
259
 
260
260
  ## `sf agent test cancel`
261
261
 
@@ -287,7 +287,7 @@ EXAMPLES
287
287
  $ sf agent test cancel --job-id AiEvalId
288
288
  ```
289
289
 
290
- _See code: [src/commands/agent/test/cancel.ts](https://github.com/salesforcecli/plugin-agent/blob/1.6.0/src/commands/agent/test/cancel.ts)_
290
+ _See code: [src/commands/agent/test/cancel.ts](https://github.com/salesforcecli/plugin-agent/blob/1.6.1/src/commands/agent/test/cancel.ts)_
291
291
 
292
292
  ## `sf agent test results`
293
293
 
@@ -326,7 +326,7 @@ FLAG DESCRIPTIONS
326
326
  results will not be written.
327
327
  ```
328
328
 
329
- _See code: [src/commands/agent/test/results.ts](https://github.com/salesforcecli/plugin-agent/blob/1.6.0/src/commands/agent/test/results.ts)_
329
+ _See code: [src/commands/agent/test/results.ts](https://github.com/salesforcecli/plugin-agent/blob/1.6.1/src/commands/agent/test/results.ts)_
330
330
 
331
331
  ## `sf agent test resume`
332
332
 
@@ -374,7 +374,7 @@ FLAG DESCRIPTIONS
374
374
  If the command continues to run after the wait period, the CLI returns control of the terminal window to you.
375
375
  ```
376
376
 
377
- _See code: [src/commands/agent/test/resume.ts](https://github.com/salesforcecli/plugin-agent/blob/1.6.0/src/commands/agent/test/resume.ts)_
377
+ _See code: [src/commands/agent/test/resume.ts](https://github.com/salesforcecli/plugin-agent/blob/1.6.1/src/commands/agent/test/resume.ts)_
378
378
 
379
379
  ## `sf agent test run`
380
380
 
@@ -425,6 +425,6 @@ FLAG DESCRIPTIONS
425
425
  If the command continues to run after the wait period, the CLI returns control of the terminal window to you.
426
426
  ```
427
427
 
428
- _See code: [src/commands/agent/test/run.ts](https://github.com/salesforcecli/plugin-agent/blob/1.6.0/src/commands/agent/test/run.ts)_
428
+ _See code: [src/commands/agent/test/run.ts](https://github.com/salesforcecli/plugin-agent/blob/1.6.1/src/commands/agent/test/run.ts)_
429
429
 
430
430
  <!-- commandsstop -->
@@ -12,7 +12,7 @@ export default class AgentCreate extends SfCommand<AgentCreateResult> {
12
12
  static readonly flags: {
13
13
  'target-org': import("@oclif/core/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/interfaces").CustomOptions>;
14
14
  'api-version': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
15
- 'job-spec': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
15
+ spec: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
16
16
  name: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
17
17
  };
18
18
  run(): Promise<AgentCreateResult>;
@@ -21,10 +21,10 @@ export default class AgentCreate extends SfCommand {
21
21
  static flags = {
22
22
  'target-org': Flags.requiredOrg(),
23
23
  'api-version': Flags.orgApiVersion(),
24
- 'job-spec': Flags.file({
24
+ spec: Flags.file({
25
25
  char: 'f',
26
26
  required: true,
27
- summary: messages.getMessage('flags.job-spec.summary'),
27
+ summary: messages.getMessage('flags.spec.summary'),
28
28
  }),
29
29
  name: Flags.string({
30
30
  char: 'n',
@@ -34,7 +34,7 @@ export default class AgentCreate extends SfCommand {
34
34
  };
35
35
  async run() {
36
36
  const { flags } = await this.parse(AgentCreate);
37
- const jsonParsingStage = `Parsing ${flags['job-spec']}`;
37
+ const jsonParsingStage = `Parsing ${flags.spec}`;
38
38
  const mso = new MultiStageOutput({
39
39
  jsonEnabled: this.jsonEnabled(),
40
40
  title: `Creating ${flags.name} Agent`,
@@ -48,7 +48,7 @@ export default class AgentCreate extends SfCommand {
48
48
  });
49
49
  mso.goto(jsonParsingStage);
50
50
  const agentConfig = {
51
- ...JSON.parse(fs.readFileSync(flags['job-spec'], 'utf8')),
51
+ ...JSON.parse(fs.readFileSync(flags.spec, 'utf8')),
52
52
  name: flags.name,
53
53
  };
54
54
  // @ts-expect-error not using async method in callback
@@ -1 +1 @@
1
- {"version":3,"file":"create.js","sourceRoot":"","sources":["../../../src/commands/agent/create.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,QAAQ,EA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QAEhD,GAAG,CAAC,IAAI,EAAE,CAAC;QAEX,IAAI,CAAC,GAAG,CACN,OAAO,CAAC,SAAS;YACf,CAAC,CAAC,QAAQ,CACN,OAAO,EACP,wBAAwB,KAAK,CAAC,IAAI,OAAO,KAAK,CAAC,YAAY,CAAC,CAAC,WAAW,EAAE,IAAI,gBAAgB,GAAG,CAClG;YACH,CAAC,CAAC,QAAQ,CAAC,KAAK,EAAE,0BAA0B,KAAK,CAAC,IAAI,KAAK,OAAO,CAAC,YAAY,IAAI,EAAE,EAAE,CAAC,CAC3F,CAAC;QACF,IAAI,CAAC,GAAG,CAAC,OAAO,QAAQ,CAAC,KAAK,EAAE,4BAA4B,KAAK,CAAC,IAAI,EAAE,CAAC,oCAAoC,CAAC,CAAC;QAE/G,OAAO,EAAE,SAAS,EAAE,OAAO,CAAC,SAAS,EAAE,CAAC;IAC1C,CAAC"}
@@ -4,13 +4,13 @@ Create an agent in your org from a local agent spec file.
4
4
 
5
5
  # description
6
6
 
7
- To generate an agent spec file, run the "agent generate spec" CLI command, which outputs a JSON file with the list of jobs and descriptions that the new agent can perform. Then specify this generated spec file to the --job-spec flag of this command, along with the name of the new agent.
7
+ To generate an agent spec file, run the "agent generate spec" CLI command, which outputs a JSON file with the list of jobs and descriptions that the new agent can perform. Then specify this generated spec file to the --spec flag of this command, along with the name of the new agent.
8
8
 
9
9
  When this command finishes, your org contains the new agent, which you can then edit in the Agent Builder UI. The new agent already has a list of topics and actions that were automatically created from the list of jobs in the provided agent spec file. This command also retrieves all the metadata files associated with the new agent to your local DX project.
10
10
 
11
- To open the new agent in your org's Agent Builder UI, run this command: "sf org open agent --name <api-name-of-your-agent>".
11
+ To open the new agent in your org's Agent Builder UI, run this command: "sf org open agent --name <api-name-of-your-agent>".
12
12
 
13
- # flags.job-spec.summary
13
+ # flags.spec.summary
14
14
 
15
15
  Path to an agent spec file.
16
16
 
@@ -22,4 +22,4 @@ API name of the new agent.
22
22
 
23
23
  - Create an agent called "CustomerSupportAgent" in an org with alias "my-org" using the specified agent spec file:
24
24
 
25
- <%= config.bin %> <%= command.id %> --name CustomerSupportAgent --job-spec ./config/agentSpec.json --target-org my-org
25
+ <%= config.bin %> <%= command.id %> --name CustomerSupportAgent --spec ./config/agentSpec.json --target-org my-org
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-agent",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@salesforce/plugin-agent",
9
- "version": "1.6.0",
9
+ "version": "1.6.1",
10
10
  "license": "BSD-3-Clause",
11
11
  "dependencies": {
12
12
  "@inquirer/confirm": "^5.1.0",
@@ -3,9 +3,9 @@
3
3
  "agent:create": {
4
4
  "aliases": [],
5
5
  "args": {},
6
- "description": "To generate an agent spec file, run the \"agent generate spec\" CLI command, which outputs a JSON file with the list of jobs and descriptions that the new agent can perform. Then specify this generated spec file to the --job-spec flag of this command, along with the name of the new agent.\n\nWhen this command finishes, your org contains the new agent, which you can then edit in the Agent Builder UI. The new agent already has a list of topics and actions that were automatically created from the list of jobs in the provided agent spec file. This command also retrieves all the metadata files associated with the new agent to your local DX project.\n\nTo open the new agent in your org's Agent Builder UI, run this command: \"sf org open agent --name <api-name-of-your-agent>\".",
6
+ "description": "To generate an agent spec file, run the \"agent generate spec\" CLI command, which outputs a JSON file with the list of jobs and descriptions that the new agent can perform. Then specify this generated spec file to the --spec flag of this command, along with the name of the new agent.\n\nWhen this command finishes, your org contains the new agent, which you can then edit in the Agent Builder UI. The new agent already has a list of topics and actions that were automatically created from the list of jobs in the provided agent spec file. This command also retrieves all the metadata files associated with the new agent to your local DX project.\n\nTo open the new agent in your org's Agent Builder UI, run this command: \"sf org open agent --name <api-name-of-your-agent>\".",
7
7
  "examples": [
8
- "Create an agent called \"CustomerSupportAgent\" in an org with alias \"my-org\" using the specified agent spec file:\n<%= config.bin %> <%= command.id %> --name CustomerSupportAgent --job-spec ./config/agentSpec.json --target-org my-org"
8
+ "Create an agent called \"CustomerSupportAgent\" in an org with alias \"my-org\" using the specified agent spec file:\n<%= config.bin %> <%= command.id %> --name CustomerSupportAgent --spec ./config/agentSpec.json --target-org my-org"
9
9
  ],
10
10
  "flags": {
11
11
  "json": {
@@ -40,9 +40,9 @@
40
40
  "multiple": false,
41
41
  "type": "option"
42
42
  },
43
- "job-spec": {
43
+ "spec": {
44
44
  "char": "f",
45
- "name": "job-spec",
45
+ "name": "spec",
46
46
  "required": true,
47
47
  "summary": "Path to an agent spec file.",
48
48
  "hasDynamicHelp": false,
@@ -781,5 +781,5 @@
781
781
  ]
782
782
  }
783
783
  },
784
- "version": "1.6.0"
784
+ "version": "1.6.1"
785
785
  }
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.6.0",
4
+ "version": "1.6.1",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/forcedotcom/cli/issues",
7
7
  "dependencies": {
@@ -222,7 +222,7 @@
222
222
  "exports": "./lib/index.js",
223
223
  "type": "module",
224
224
  "sfdx": {
225
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.6.0.crt",
226
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.6.0.sig"
225
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.6.1.crt",
226
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.6.1.sig"
227
227
  }
228
228
  }