@salesforce/plugin-agent 1.14.1-dev.0 → 1.14.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/oclif.lock CHANGED
@@ -1377,30 +1377,6 @@
1377
1377
  wordwrap "^1.0.0"
1378
1378
  wrap-ansi "^7.0.0"
1379
1379
 
1380
- "@oclif/core@^4.2.4":
1381
- version "4.2.6"
1382
- resolved "https://registry.yarnpkg.com/@oclif/core/-/core-4.2.6.tgz#f2f1696be03a815a4c391504312f90fce29fbb4e"
1383
- integrity sha512-agk1Tlm7qMemWx+qq5aNgkYwX2JCkoVP4M0ruFveJrarmdUPbKZTMW1j/eg8lNKZh1sp68ytZyKhYXYEfRPcww==
1384
- dependencies:
1385
- ansi-escapes "^4.3.2"
1386
- ansis "^3.10.0"
1387
- clean-stack "^3.0.1"
1388
- cli-spinners "^2.9.2"
1389
- debug "^4.4.0"
1390
- ejs "^3.1.10"
1391
- get-package-type "^0.1.0"
1392
- globby "^11.1.0"
1393
- indent-string "^4.0.0"
1394
- is-wsl "^2.2.0"
1395
- lilconfig "^3.1.3"
1396
- minimatch "^9.0.5"
1397
- semver "^7.6.3"
1398
- string-width "^4.2.3"
1399
- supports-color "^8"
1400
- widest-line "^3.1.0"
1401
- wordwrap "^1.0.0"
1402
- wrap-ansi "^7.0.0"
1403
-
1404
1380
  "@oclif/multi-stage-output@^0.7.12":
1405
1381
  version "0.7.12"
1406
1382
  resolved "https://registry.yarnpkg.com/@oclif/multi-stage-output/-/multi-stage-output-0.7.12.tgz#04df5efb6dce527920cf475c9ad9f20236803ccd"
@@ -1473,21 +1449,6 @@
1473
1449
  strip-ansi "^7.1.0"
1474
1450
  wrap-ansi "^9.0.0"
1475
1451
 
1476
- "@oclif/table@^0.4.6":
1477
- version "0.4.6"
1478
- resolved "https://registry.yarnpkg.com/@oclif/table/-/table-0.4.6.tgz#4e07fc11de9b8a3187a5ea43edce71c42811ab7e"
1479
- integrity sha512-NXh72vHHYnDrWPmVfh4i7kDydz3CXm/tSAr17fWhmWfMM+8jGn5uo6FXtvB0cd9s4skvDqzoRcsRwOeR73zIKA==
1480
- dependencies:
1481
- "@types/react" "^18.3.12"
1482
- change-case "^5.4.4"
1483
- cli-truncate "^4.0.0"
1484
- ink "5.0.1"
1485
- natural-orderby "^3.0.2"
1486
- object-hash "^3.0.0"
1487
- react "^18.3.1"
1488
- strip-ansi "^7.1.0"
1489
- wrap-ansi "^9.0.0"
1490
-
1491
1452
  "@oclif/test@^4.1.0":
1492
1453
  version "4.1.0"
1493
1454
  resolved "https://registry.yarnpkg.com/@oclif/test/-/test-4.1.0.tgz#7935e3707cf07480790139e02973196d18d16822"
@@ -1501,16 +1462,16 @@
1501
1462
  resolved "https://registry.yarnpkg.com/@pkgjs/parseargs/-/parseargs-0.11.0.tgz#a77ea742fab25775145434eb1d2328cf5013ac33"
1502
1463
  integrity sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==
1503
1464
 
1504
- "@salesforce/agents@0.9.5-dev.0":
1505
- version "0.9.5-dev.0"
1506
- resolved "https://registry.yarnpkg.com/@salesforce/agents/-/agents-0.9.5-dev.0.tgz#1344af97d7756d4b8c20a79a19c45ae3d11a8e8b"
1507
- integrity sha512-dKgk9Dmgmc+w+qMz8zHgsEzykIAwO5hUDncaRfo43ENIRnbXWaw2hgoo1Ae82uadHunF9scWjo2PpCQmivcT/w==
1465
+ "@salesforce/agents@^0.9.2":
1466
+ version "0.9.2"
1467
+ resolved "https://registry.yarnpkg.com/@salesforce/agents/-/agents-0.9.2.tgz#eacad6fab97cd156484b78a974f47389efaefb27"
1468
+ integrity sha512-z/+mMa1GgiEwFpg+FD40ahzJhtf7Am5G8H+qHXjrUBijk7CdFm5lGZGvX0+LzhxD/Atn44qOo05V3Z3RuN7qYw==
1508
1469
  dependencies:
1509
1470
  "@salesforce/core" "^8.8.2"
1510
1471
  "@salesforce/kit" "^3.2.3"
1511
- "@salesforce/sf-plugins-core" "^12.1.3"
1472
+ "@salesforce/sf-plugins-core" "^12.1.2"
1512
1473
  "@salesforce/source-deploy-retrieve" "^12.14.1"
1513
- ansis "^3.10.0"
1474
+ ansis "^3.9.0"
1514
1475
  fast-xml-parser "^4.5.1"
1515
1476
  nock "^13.5.6"
1516
1477
  yaml "^2.7.0"
@@ -1641,7 +1602,7 @@
1641
1602
  string-width "^7.2.0"
1642
1603
  terminal-link "^3.0.0"
1643
1604
 
1644
- "@salesforce/sf-plugins-core@^12.1.0":
1605
+ "@salesforce/sf-plugins-core@^12.1.0", "@salesforce/sf-plugins-core@^12.1.2":
1645
1606
  version "12.1.2"
1646
1607
  resolved "https://registry.yarnpkg.com/@salesforce/sf-plugins-core/-/sf-plugins-core-12.1.2.tgz#0c4fba3787ee670014c8bca447c2fc59fb9c3ec3"
1647
1608
  integrity sha512-qrmGZr2mG7uOpqhOpeOJjBEVztM7Mt8B10lD3rG+aOBZQelTm3YQ738yZYcwHjksQW3AOyf0QtqZICCfe0nD8A==
@@ -1657,22 +1618,6 @@
1657
1618
  cli-progress "^3.12.0"
1658
1619
  terminal-link "^3.0.0"
1659
1620
 
1660
- "@salesforce/sf-plugins-core@^12.1.3":
1661
- version "12.1.4"
1662
- resolved "https://registry.yarnpkg.com/@salesforce/sf-plugins-core/-/sf-plugins-core-12.1.4.tgz#c73829c7f12bdc96a2e2746ce7f574a604e8efb4"
1663
- integrity sha512-inSWsy9omNc4dIULVpoOJPX6DdEaqkA4CxmzTVrylc7P08jCbsv6LpS79wUaYC7Ah3krBQvbopP4wR9f3XvLeQ==
1664
- dependencies:
1665
- "@inquirer/confirm" "^3.1.22"
1666
- "@inquirer/password" "^2.2.0"
1667
- "@oclif/core" "^4.2.4"
1668
- "@oclif/table" "^0.4.6"
1669
- "@salesforce/core" "^8.5.1"
1670
- "@salesforce/kit" "^3.2.3"
1671
- "@salesforce/ts-types" "^2.0.12"
1672
- ansis "^3.3.2"
1673
- cli-progress "^3.12.0"
1674
- terminal-link "^3.0.0"
1675
-
1676
1621
  "@salesforce/source-deploy-retrieve@^12.14.0":
1677
1622
  version "12.14.0"
1678
1623
  resolved "https://registry.yarnpkg.com/@salesforce/source-deploy-retrieve/-/source-deploy-retrieve-12.14.0.tgz#04036f76301071b2188c92f70d77a138bc0d72cf"
@@ -2736,12 +2681,7 @@ ansi-styles@^6.0.0, ansi-styles@^6.1.0, ansi-styles@^6.2.1:
2736
2681
  resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-6.2.1.tgz#0e62320cf99c21afff3b3012192546aacbfb05c5"
2737
2682
  integrity sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==
2738
2683
 
2739
- ansis@^3.10.0:
2740
- version "3.10.0"
2741
- resolved "https://registry.yarnpkg.com/ansis/-/ansis-3.10.0.tgz#6886afb0f729b1fa865df6b710b97a9915b7d0d4"
2742
- integrity sha512-hxDKLYT7hy3Y4sF3HxI926A3urzPxi73mZBB629m9bCVF+NyKNxbwCqqm+C/YrGPtxLwnl6d8/ZASCsz6SyvJA==
2743
-
2744
- ansis@^3.3.1, ansis@^3.3.2, ansis@^3.8.1:
2684
+ ansis@^3.3.1, ansis@^3.3.2, ansis@^3.8.1, ansis@^3.9.0:
2745
2685
  version "3.9.0"
2746
2686
  resolved "https://registry.yarnpkg.com/ansis/-/ansis-3.9.0.tgz#d195c93c31a333916142ff8f0be4d7e3872f262e"
2747
2687
  integrity sha512-PcDrVe15ldexeZMsVLBAzBwF2KhZgaU0R+CHxH+x5kqn/pO+UWVBZJ+NEXMPpEOLUFeNsnNdoWYc2gwO+MVkDg==
@@ -7559,7 +7499,16 @@ stack-utils@^2.0.6:
7559
7499
  dependencies:
7560
7500
  escape-string-regexp "^2.0.0"
7561
7501
 
7562
- "string-width-cjs@npm:string-width@^4.2.0", string-width@^4.0.0, string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
7502
+ "string-width-cjs@npm:string-width@^4.2.0":
7503
+ version "4.2.3"
7504
+ resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
7505
+ integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
7506
+ dependencies:
7507
+ emoji-regex "^8.0.0"
7508
+ is-fullwidth-code-point "^3.0.0"
7509
+ strip-ansi "^6.0.1"
7510
+
7511
+ string-width@^4.0.0, string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
7563
7512
  version "4.2.3"
7564
7513
  resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
7565
7514
  integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
@@ -7654,7 +7603,14 @@ string_decoder@~1.1.1:
7654
7603
  dependencies:
7655
7604
  safe-buffer "~5.1.0"
7656
7605
 
7657
- "strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@6.0.1, strip-ansi@^6.0.0, strip-ansi@^6.0.1:
7606
+ "strip-ansi-cjs@npm:strip-ansi@^6.0.1":
7607
+ version "6.0.1"
7608
+ resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
7609
+ integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
7610
+ dependencies:
7611
+ ansi-regex "^5.0.1"
7612
+
7613
+ strip-ansi@6.0.1, strip-ansi@^6.0.0, strip-ansi@^6.0.1:
7658
7614
  version "6.0.1"
7659
7615
  resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
7660
7616
  integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
@@ -8263,7 +8219,7 @@ workerpool@^6.5.1:
8263
8219
  resolved "https://registry.yarnpkg.com/workerpool/-/workerpool-6.5.1.tgz#060f73b39d0caf97c6db64da004cd01b4c099544"
8264
8220
  integrity sha512-Fs4dNYcsdpYSAfVxhnl1L5zTksjvOJxtC5hzMNl+1t9B8hTJTdKDyZ5ju7ztgPy+ft9tBFXoOlDNiOT9WUXZlA==
8265
8221
 
8266
- "wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0:
8222
+ "wrap-ansi-cjs@npm:wrap-ansi@^7.0.0":
8267
8223
  version "7.0.0"
8268
8224
  resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
8269
8225
  integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
@@ -8281,6 +8237,15 @@ wrap-ansi@^6.2.0:
8281
8237
  string-width "^4.1.0"
8282
8238
  strip-ansi "^6.0.0"
8283
8239
 
8240
+ wrap-ansi@^7.0.0:
8241
+ version "7.0.0"
8242
+ resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
8243
+ integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
8244
+ dependencies:
8245
+ ansi-styles "^4.0.0"
8246
+ string-width "^4.1.0"
8247
+ strip-ansi "^6.0.0"
8248
+
8284
8249
  wrap-ansi@^8.1.0:
8285
8250
  version "8.1.0"
8286
8251
  resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz#56dc22368ee570face1b49819975d9b9a5ead214"
@@ -3,9 +3,9 @@
3
3
  "agent:create": {
4
4
  "aliases": [],
5
5
  "args": {},
6
- "description": "To run this comand, you must have an agent spec file, which is a YAML file that define the agent properties and contains a list of AI-generated topics. Topics define the range of jobs the agent can handle. Use the \"agent generate agent-spec\" CLI command to generate an agent spec file. Then specify the file to this command using the --spec flag, along with the name (label) of the new agent with the --agent-name flag. If you don't specify any of the required flags, the command prompts you.\n\nWhen this command completes, your org contains the new agent, which you can then edit and customize in the Agent Builder UI. The new agent's topics are the same as the ones listed in the agent spec file. The agent might also have some AI-generated actions, or you can add them. This command also retrieves all the metadata files associated with the new agent to your local Salesforce DX project.\n\nUse the --preview flag to review what the agent looks like without actually saving it in your org. When previewing, the command creates a JSON file in the current directory with all the agent details.\n\nTo open the new agent in your org's Agent Builder UI, run this command: \"sf org open agent --name <agent-api-name>\".",
6
+ "description": "To run this comand, you must have an agent spec file, which is a YAML file that define the agent properties and contains a list of AI-generated topics. Topics define the range of jobs the agent can handle. Use the \"agent generate agent-spec\" CLI command to generate an agent spec file. Then specify the file to this command using the --spec flag, along with the name (label) of the new agent with the --agent-name flag. If you don't specify any of the required flags, the command prompts you.\n\nWhen this command completes, your org contains the new agent, which you can then edit and customize in the Agent Builder UI. The new agent's topics are the same as the ones listed in the agent spec file. The agent might also have some AI-generated actions, or you can add them. This command also retrieves all the metadata files associated with the new agent to your local Salesforce DX project.\n\nUse the --preview flag to review what the agent looks like without actually saving it in your org. When previewing, the command creates a JSON file in the current directory with all the agent details. The name of the JSON file is the agent's API name and a timestamp.\n\nTo open the new agent in your org's Agent Builder UI, run this command: \"sf org open agent --name <agent-api-name>\".",
7
7
  "examples": [
8
- "Create an agent by being prompted for the required information, such as the agent spec file, agent name, and agent API name and then create it in your default org:\n<%= config.bin %> <%= command.id %>",
8
+ "Create an agent by being prompted for the required information, such as the agent spec file and agent name, and then create it in your default org:\n<%= config.bin %> <%= command.id %>",
9
9
  "Create an agent by specifying the agent name, API name, and spec file with flags; use the org with alias \"my-org\"; the command fails if the API name is already being used in your org:\n<%= config.bin %> <%= command.id %> --agent-name \"Resort Manager\" --agent-api-name Resort_Manager --spec specs/resortManagerAgent.yaml --target-org my-org",
10
10
  "Preview the creation of an agent named \"Resort Manager\" and use your default org:\n<%= config.bin %> <%= command.id %> --agent-name \"Resort Manager\" --spec specs/resortManagerAgent.yaml --preview"
11
11
  ],
@@ -255,7 +255,7 @@
255
255
  },
256
256
  "max-topics": {
257
257
  "name": "max-topics",
258
- "summary": "Maximum number of topics to generate in the agent spec; default is 10.",
258
+ "summary": "Maximum number of topics to generate in the agent spec; default is 5.",
259
259
  "hasDynamicHelp": false,
260
260
  "multiple": false,
261
261
  "type": "option"
@@ -1074,5 +1074,5 @@
1074
1074
  ]
1075
1075
  }
1076
1076
  },
1077
- "version": "1.14.1-dev.0"
1077
+ "version": "1.14.1"
1078
1078
  }
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.14.1-dev.0",
4
+ "version": "1.14.1",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/forcedotcom/cli/issues",
7
7
  "dependencies": {
@@ -9,7 +9,7 @@
9
9
  "@inquirer/prompts": "^7.2.0",
10
10
  "@oclif/core": "^4",
11
11
  "@oclif/multi-stage-output": "^0.7.12",
12
- "@salesforce/agents": "0.9.5-dev.0",
12
+ "@salesforce/agents": "^0.9.2",
13
13
  "@salesforce/core": "^8.8.0",
14
14
  "@salesforce/kit": "^3.2.1",
15
15
  "@salesforce/sf-plugins-core": "^12.1.0",
@@ -226,7 +226,7 @@
226
226
  "exports": "./lib/index.js",
227
227
  "type": "module",
228
228
  "sfdx": {
229
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.14.1-dev.0.crt",
230
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.14.1-dev.0.sig"
229
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.14.1.crt",
230
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-agent/1.14.1.sig"
231
231
  }
232
232
  }
@@ -5,7 +5,7 @@
5
5
  "AgentTestCancelResult": {
6
6
  "type": "object",
7
7
  "properties": {
8
- "runId": {
8
+ "aiEvaluationId": {
9
9
  "type": "string"
10
10
  },
11
11
  "success": {
@@ -18,8 +18,11 @@
18
18
  "type": "string"
19
19
  }
20
20
  },
21
- "required": ["runId", "success"],
21
+ "required": [
22
+ "aiEvaluationId",
23
+ "success"
24
+ ],
22
25
  "additionalProperties": false
23
26
  }
24
27
  }
25
- }
28
+ }
@@ -23,14 +23,24 @@
23
23
  "subjectName": {
24
24
  "type": "string"
25
25
  },
26
- "testCases": {
27
- "type": "array",
28
- "items": {
29
- "$ref": "#/definitions/TestCaseResult"
30
- }
26
+ "testSet": {
27
+ "type": "object",
28
+ "properties": {
29
+ "name": {
30
+ "type": "string"
31
+ },
32
+ "testCases": {
33
+ "type": "array",
34
+ "items": {
35
+ "$ref": "#/definitions/TestCaseResult"
36
+ }
37
+ }
38
+ },
39
+ "required": ["name", "testCases"],
40
+ "additionalProperties": false
31
41
  }
32
42
  },
33
- "required": ["status", "startTime", "subjectName", "testCases"],
43
+ "required": ["status", "startTime", "subjectName", "testSet"],
34
44
  "additionalProperties": false
35
45
  },
36
46
  "TestStatus": {
@@ -135,12 +145,9 @@
135
145
  ],
136
146
  "additionalProperties": false
137
147
  }
138
- },
139
- "testNumber": {
140
- "type": "number"
141
148
  }
142
149
  },
143
- "required": ["status", "startTime", "inputs", "generatedData", "testResults", "testNumber"],
150
+ "required": ["status", "startTime", "inputs", "generatedData", "testResults"],
144
151
  "additionalProperties": false
145
152
  }
146
153
  }
@@ -5,15 +5,18 @@
5
5
  "AgentTestResumeResult": {
6
6
  "type": "object",
7
7
  "properties": {
8
- "runId": {
8
+ "aiEvaluationId": {
9
9
  "type": "string"
10
10
  },
11
11
  "status": {
12
12
  "type": "string"
13
13
  }
14
14
  },
15
- "required": ["runId", "status"],
15
+ "required": [
16
+ "aiEvaluationId",
17
+ "status"
18
+ ],
16
19
  "additionalProperties": false
17
20
  }
18
21
  }
19
- }
22
+ }
@@ -5,15 +5,18 @@
5
5
  "AgentTestRunResult": {
6
6
  "type": "object",
7
7
  "properties": {
8
- "runId": {
8
+ "aiEvaluationId": {
9
9
  "type": "string"
10
10
  },
11
11
  "status": {
12
12
  "type": "string"
13
13
  }
14
14
  },
15
- "required": ["runId", "status"],
15
+ "required": [
16
+ "aiEvaluationId",
17
+ "status"
18
+ ],
16
19
  "additionalProperties": false
17
20
  }
18
21
  }
19
- }
22
+ }