@salesforce/plugin-agent 2.1.0 → 2.2.2

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
@@ -148,7 +148,7 @@ EXAMPLES
148
148
  $ sf agent activate --api-name Resort_Manager --version 2 --target-org my-org
149
149
  ```
150
150
 
151
- _See code: [src/commands/agent/activate.ts](https://github.com/salesforcecli/plugin-agent/blob/2.1.0/src/commands/agent/activate.ts)_
151
+ _See code: [src/commands/agent/activate.ts](https://github.com/salesforcecli/plugin-agent/blob/2.2.2/src/commands/agent/activate.ts)_
152
152
 
153
153
  ## `sf agent adl create`
154
154
 
@@ -220,7 +220,7 @@ EXAMPLES
220
220
  --source-type retriever --retriever-id 0ppXX0000000001
221
221
  ```
222
222
 
223
- _See code: [src/commands/agent/adl/create.ts](https://github.com/salesforcecli/plugin-agent/blob/2.1.0/src/commands/agent/adl/create.ts)_
223
+ _See code: [src/commands/agent/adl/create.ts](https://github.com/salesforcecli/plugin-agent/blob/2.2.2/src/commands/agent/adl/create.ts)_
224
224
 
225
225
  ## `sf agent adl delete`
226
226
 
@@ -251,7 +251,7 @@ EXAMPLES
251
251
  $ sf agent adl delete --library-id 1JDSG000007IbWX4A0 --target-org myOrg
252
252
  ```
253
253
 
254
- _See code: [src/commands/agent/adl/delete.ts](https://github.com/salesforcecli/plugin-agent/blob/2.1.0/src/commands/agent/adl/delete.ts)_
254
+ _See code: [src/commands/agent/adl/delete.ts](https://github.com/salesforcecli/plugin-agent/blob/2.2.2/src/commands/agent/adl/delete.ts)_
255
255
 
256
256
  ## `sf agent adl file add`
257
257
 
@@ -293,7 +293,7 @@ EXAMPLES
293
293
  $ sf agent adl file add -i 1JDSG000007IbWX4A0 --path ./docs/guide.pdf --path ./docs/faq.txt --target-org myOrg
294
294
  ```
295
295
 
296
- _See code: [src/commands/agent/adl/file/add.ts](https://github.com/salesforcecli/plugin-agent/blob/2.1.0/src/commands/agent/adl/file/add.ts)_
296
+ _See code: [src/commands/agent/adl/file/add.ts](https://github.com/salesforcecli/plugin-agent/blob/2.2.2/src/commands/agent/adl/file/add.ts)_
297
297
 
298
298
  ## `sf agent adl file delete`
299
299
 
@@ -326,7 +326,7 @@ EXAMPLES
326
326
  $ sf agent adl file delete --library-id 1JDSG000007IbWX4A0 --file-id a1B2C3D4E5F6G7H8I9 --target-org myOrg
327
327
  ```
328
328
 
329
- _See code: [src/commands/agent/adl/file/delete.ts](https://github.com/salesforcecli/plugin-agent/blob/2.1.0/src/commands/agent/adl/file/delete.ts)_
329
+ _See code: [src/commands/agent/adl/file/delete.ts](https://github.com/salesforcecli/plugin-agent/blob/2.2.2/src/commands/agent/adl/file/delete.ts)_
330
330
 
331
331
  ## `sf agent adl file list`
332
332
 
@@ -366,7 +366,7 @@ EXAMPLES
366
366
  $ sf agent adl file list --library-id 1JDSG000007IbWX4A0 --target-org myOrg --json
367
367
  ```
368
368
 
369
- _See code: [src/commands/agent/adl/file/list.ts](https://github.com/salesforcecli/plugin-agent/blob/2.1.0/src/commands/agent/adl/file/list.ts)_
369
+ _See code: [src/commands/agent/adl/file/list.ts](https://github.com/salesforcecli/plugin-agent/blob/2.2.2/src/commands/agent/adl/file/list.ts)_
370
370
 
371
371
  ## `sf agent adl get`
372
372
 
@@ -397,7 +397,7 @@ EXAMPLES
397
397
  $ sf agent adl get --library-id 1JDSG000007IbWX4A0 --target-org myOrg
398
398
  ```
399
399
 
400
- _See code: [src/commands/agent/adl/get.ts](https://github.com/salesforcecli/plugin-agent/blob/2.1.0/src/commands/agent/adl/get.ts)_
400
+ _See code: [src/commands/agent/adl/get.ts](https://github.com/salesforcecli/plugin-agent/blob/2.2.2/src/commands/agent/adl/get.ts)_
401
401
 
402
402
  ## `sf agent adl list`
403
403
 
@@ -434,7 +434,7 @@ EXAMPLES
434
434
  $ sf agent adl list --target-org myOrg --json
435
435
  ```
436
436
 
437
- _See code: [src/commands/agent/adl/list.ts](https://github.com/salesforcecli/plugin-agent/blob/2.1.0/src/commands/agent/adl/list.ts)_
437
+ _See code: [src/commands/agent/adl/list.ts](https://github.com/salesforcecli/plugin-agent/blob/2.2.2/src/commands/agent/adl/list.ts)_
438
438
 
439
439
  ## `sf agent adl status`
440
440
 
@@ -469,7 +469,7 @@ EXAMPLES
469
469
  $ sf agent adl status --library-id 1JDSG000007IbWX4A0 --target-org myOrg
470
470
  ```
471
471
 
472
- _See code: [src/commands/agent/adl/status.ts](https://github.com/salesforcecli/plugin-agent/blob/2.1.0/src/commands/agent/adl/status.ts)_
472
+ _See code: [src/commands/agent/adl/status.ts](https://github.com/salesforcecli/plugin-agent/blob/2.2.2/src/commands/agent/adl/status.ts)_
473
473
 
474
474
  ## `sf agent adl update`
475
475
 
@@ -524,7 +524,7 @@ EXAMPLES
524
524
  $ sf agent adl update --library-id 1JDSG000007IbWX4A0 --restrict-to-public-articles --target-org myOrg
525
525
  ```
526
526
 
527
- _See code: [src/commands/agent/adl/update.ts](https://github.com/salesforcecli/plugin-agent/blob/2.1.0/src/commands/agent/adl/update.ts)_
527
+ _See code: [src/commands/agent/adl/update.ts](https://github.com/salesforcecli/plugin-agent/blob/2.2.2/src/commands/agent/adl/update.ts)_
528
528
 
529
529
  ## `sf agent adl upload`
530
530
 
@@ -571,7 +571,7 @@ EXAMPLES
571
571
  $ sf agent adl upload --library-id 1JDSG000007IbWX4A0 --file ./docs/guide.pdf --target-org myOrg
572
572
  ```
573
573
 
574
- _See code: [src/commands/agent/adl/upload.ts](https://github.com/salesforcecli/plugin-agent/blob/2.1.0/src/commands/agent/adl/upload.ts)_
574
+ _See code: [src/commands/agent/adl/upload.ts](https://github.com/salesforcecli/plugin-agent/blob/2.2.2/src/commands/agent/adl/upload.ts)_
575
575
 
576
576
  ## `sf agent create`
577
577
 
@@ -638,7 +638,7 @@ EXAMPLES
638
638
  $ sf agent create --name "Resort Manager" --spec specs/resortManagerAgent.yaml --preview
639
639
  ```
640
640
 
641
- _See code: [src/commands/agent/create.ts](https://github.com/salesforcecli/plugin-agent/blob/2.1.0/src/commands/agent/create.ts)_
641
+ _See code: [src/commands/agent/create.ts](https://github.com/salesforcecli/plugin-agent/blob/2.2.2/src/commands/agent/create.ts)_
642
642
 
643
643
  ## `sf agent deactivate`
644
644
 
@@ -679,7 +679,7 @@ EXAMPLES
679
679
  $ sf agent deactivate --api-name Resort_Manager --target-org my-org
680
680
  ```
681
681
 
682
- _See code: [src/commands/agent/deactivate.ts](https://github.com/salesforcecli/plugin-agent/blob/2.1.0/src/commands/agent/deactivate.ts)_
682
+ _See code: [src/commands/agent/deactivate.ts](https://github.com/salesforcecli/plugin-agent/blob/2.2.2/src/commands/agent/deactivate.ts)_
683
683
 
684
684
  ## `sf agent generate agent-spec`
685
685
 
@@ -786,7 +786,7 @@ EXAMPLES
786
786
  $ sf agent generate agent-spec --tone formal --agent-user resortmanager@myorg.com
787
787
  ```
788
788
 
789
- _See code: [src/commands/agent/generate/agent-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/2.1.0/src/commands/agent/generate/agent-spec.ts)_
789
+ _See code: [src/commands/agent/generate/agent-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/2.2.2/src/commands/agent/generate/agent-spec.ts)_
790
790
 
791
791
  ## `sf agent generate authoring-bundle`
792
792
 
@@ -863,7 +863,7 @@ EXAMPLES
863
863
  other-package-dir/main/default --target-org my-dev-org
864
864
  ```
865
865
 
866
- _See code: [src/commands/agent/generate/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/2.1.0/src/commands/agent/generate/authoring-bundle.ts)_
866
+ _See code: [src/commands/agent/generate/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/2.2.2/src/commands/agent/generate/authoring-bundle.ts)_
867
867
 
868
868
  ## `sf agent generate template`
869
869
 
@@ -925,7 +925,7 @@ EXAMPLES
925
925
  my-package --source-org my-scratch-org
926
926
  ```
927
927
 
928
- _See code: [src/commands/agent/generate/template.ts](https://github.com/salesforcecli/plugin-agent/blob/2.1.0/src/commands/agent/generate/template.ts)_
928
+ _See code: [src/commands/agent/generate/template.ts](https://github.com/salesforcecli/plugin-agent/blob/2.2.2/src/commands/agent/generate/template.ts)_
929
929
 
930
930
  ## `sf agent generate test-spec`
931
931
 
@@ -1014,7 +1014,7 @@ FLAG DESCRIPTIONS
1014
1014
  metadata. 'testing-center' uses AiEvaluationDefinition metadata.
1015
1015
  ```
1016
1016
 
1017
- _See code: [src/commands/agent/generate/test-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/2.1.0/src/commands/agent/generate/test-spec.ts)_
1017
+ _See code: [src/commands/agent/generate/test-spec.ts](https://github.com/salesforcecli/plugin-agent/blob/2.2.2/src/commands/agent/generate/test-spec.ts)_
1018
1018
 
1019
1019
  ## `sf agent mcp asset list`
1020
1020
 
@@ -1050,7 +1050,7 @@ EXAMPLES
1050
1050
  $ sf agent mcp asset list --target-org myOrg --mcp-server-id 0XSxx0000000001 --json
1051
1051
  ```
1052
1052
 
1053
- _See code: [src/commands/agent/mcp/asset/list.ts](https://github.com/salesforcecli/plugin-agent/blob/2.1.0/src/commands/agent/mcp/asset/list.ts)_
1053
+ _See code: [src/commands/agent/mcp/asset/list.ts](https://github.com/salesforcecli/plugin-agent/blob/2.2.2/src/commands/agent/mcp/asset/list.ts)_
1054
1054
 
1055
1055
  ## `sf agent mcp asset replace`
1056
1056
 
@@ -1099,7 +1099,7 @@ EXAMPLES
1099
1099
  cat assets.json | sf agent mcp asset replace --mcp-server-id 0XSxx0000000001 --assets - --target-org myOrg
1100
1100
  ```
1101
1101
 
1102
- _See code: [src/commands/agent/mcp/asset/replace.ts](https://github.com/salesforcecli/plugin-agent/blob/2.1.0/src/commands/agent/mcp/asset/replace.ts)_
1102
+ _See code: [src/commands/agent/mcp/asset/replace.ts](https://github.com/salesforcecli/plugin-agent/blob/2.2.2/src/commands/agent/mcp/asset/replace.ts)_
1103
1103
 
1104
1104
  ## `sf agent mcp create`
1105
1105
 
@@ -1147,7 +1147,7 @@ EXAMPLES
1147
1147
  cat secret.txt | sf agent mcp create --name myServer --server-url https://mcp.example.com --auth-type OAUTH --identity-provider myIdp --client-id abc123 --client-secret - --scope "read write" --target-org myOrg
1148
1148
  ```
1149
1149
 
1150
- _See code: [src/commands/agent/mcp/create.ts](https://github.com/salesforcecli/plugin-agent/blob/2.1.0/src/commands/agent/mcp/create.ts)_
1150
+ _See code: [src/commands/agent/mcp/create.ts](https://github.com/salesforcecli/plugin-agent/blob/2.2.2/src/commands/agent/mcp/create.ts)_
1151
1151
 
1152
1152
  ## `sf agent mcp delete`
1153
1153
 
@@ -1185,7 +1185,7 @@ EXAMPLES
1185
1185
  $ sf agent mcp delete --mcp-server-id 0XSxx0000000001 --target-org myOrg --no-prompt
1186
1186
  ```
1187
1187
 
1188
- _See code: [src/commands/agent/mcp/delete.ts](https://github.com/salesforcecli/plugin-agent/blob/2.1.0/src/commands/agent/mcp/delete.ts)_
1188
+ _See code: [src/commands/agent/mcp/delete.ts](https://github.com/salesforcecli/plugin-agent/blob/2.2.2/src/commands/agent/mcp/delete.ts)_
1189
1189
 
1190
1190
  ## `sf agent mcp fetch`
1191
1191
 
@@ -1222,7 +1222,7 @@ EXAMPLES
1222
1222
  $ sf agent mcp fetch --target-org myOrg --mcp-server-id 0XSxx0000000001 --json
1223
1223
  ```
1224
1224
 
1225
- _See code: [src/commands/agent/mcp/fetch.ts](https://github.com/salesforcecli/plugin-agent/blob/2.1.0/src/commands/agent/mcp/fetch.ts)_
1225
+ _See code: [src/commands/agent/mcp/fetch.ts](https://github.com/salesforcecli/plugin-agent/blob/2.2.2/src/commands/agent/mcp/fetch.ts)_
1226
1226
 
1227
1227
  ## `sf agent mcp get`
1228
1228
 
@@ -1258,7 +1258,7 @@ EXAMPLES
1258
1258
  $ sf agent mcp get --target-org myOrg --mcp-server-id 0Mx000000000001 --json
1259
1259
  ```
1260
1260
 
1261
- _See code: [src/commands/agent/mcp/get.ts](https://github.com/salesforcecli/plugin-agent/blob/2.1.0/src/commands/agent/mcp/get.ts)_
1261
+ _See code: [src/commands/agent/mcp/get.ts](https://github.com/salesforcecli/plugin-agent/blob/2.2.2/src/commands/agent/mcp/get.ts)_
1262
1262
 
1263
1263
  ## `sf agent mcp list`
1264
1264
 
@@ -1300,7 +1300,7 @@ EXAMPLES
1300
1300
  $ sf agent mcp list --target-org myOrg --type EXTERNAL --status ACTIVE --json
1301
1301
  ```
1302
1302
 
1303
- _See code: [src/commands/agent/mcp/list.ts](https://github.com/salesforcecli/plugin-agent/blob/2.1.0/src/commands/agent/mcp/list.ts)_
1303
+ _See code: [src/commands/agent/mcp/list.ts](https://github.com/salesforcecli/plugin-agent/blob/2.2.2/src/commands/agent/mcp/list.ts)_
1304
1304
 
1305
1305
  ## `sf agent mcp update`
1306
1306
 
@@ -1351,7 +1351,7 @@ EXAMPLES
1351
1351
  cat secret.txt | sf agent mcp update --mcp-server-id 0XSxx0000000001 --server-url https://mcp.example.com --auth-type OAUTH --identity-provider MyIdp --client-id abc --client-secret - --scope "read write" --target-org myOrg --json
1352
1352
  ```
1353
1353
 
1354
- _See code: [src/commands/agent/mcp/update.ts](https://github.com/salesforcecli/plugin-agent/blob/2.1.0/src/commands/agent/mcp/update.ts)_
1354
+ _See code: [src/commands/agent/mcp/update.ts](https://github.com/salesforcecli/plugin-agent/blob/2.2.2/src/commands/agent/mcp/update.ts)_
1355
1355
 
1356
1356
  ## `sf agent preview`
1357
1357
 
@@ -1360,20 +1360,21 @@ Interact with an agent to preview how it responds to your statements, questions,
1360
1360
  ```
1361
1361
  USAGE
1362
1362
  $ sf agent preview -o <value> [--flags-dir <value>] [--api-version <value>] [-n <value>] [--authoring-bundle
1363
- <value>] [-d <value>] [-x] [--use-live-actions] [--context-variables <value>...]
1363
+ <value>] [-d <value>] [-x] [--use-live-actions] [--context-variables <value>...] [--context-variables-json <value>]
1364
1364
 
1365
1365
  FLAGS
1366
- -d, --output-dir=<value> Directory where conversation transcripts are saved.
1367
- -n, --api-name=<value> API name of the activated published agent you want to interact with.
1368
- -o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
1369
- configuration variable is already set.
1370
- -x, --apex-debug Enable Apex debug logging during the agent preview conversation.
1371
- --api-version=<value> Override the api version used for api requests made by this command
1372
- --authoring-bundle=<value> API name of the authoring bundle metadata component that contains the agent's
1373
- Agent Script file.
1374
- --context-variables=<value>... Session variables for the agent preview session, in the form Name=Value.
1375
- --use-live-actions Use real actions in the org; if not specified, preview uses AI to simulate (mock)
1376
- actions.
1366
+ -d, --output-dir=<value> Directory where conversation transcripts are saved.
1367
+ -n, --api-name=<value> API name of the activated published agent you want to interact with.
1368
+ -o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
1369
+ configuration variable is already set.
1370
+ -x, --apex-debug Enable Apex debug logging during the agent preview conversation.
1371
+ --api-version=<value> Override the api version used for api requests made by this command
1372
+ --authoring-bundle=<value> API name of the authoring bundle metadata component that contains the agent's
1373
+ Agent Script file.
1374
+ --context-variables=<value>... Session variables for the agent preview session, in the form Name=Value.
1375
+ --context-variables-json=<value> Typed session variables for the agent preview session, as a JSON array.
1376
+ --use-live-actions Use real actions in the org; if not specified, preview uses AI to simulate
1377
+ (mock) actions.
1377
1378
 
1378
1379
  GLOBAL FLAGS
1379
1380
  --flags-dir=<value> Import flag values from a directory.
@@ -1443,10 +1444,30 @@ FLAG DESCRIPTIONS
1443
1444
 
1444
1445
  Tips: (1) Quote the whole value in single quotes so $Context isn't shell-expanded. (2) Names are sent verbatim — a
1445
1446
  bare name is treated as a state variable, not a linked context variable, so live actions that bind via $Context.Name
1446
- will see null. (3) Type defaults to Text.
1447
+ will see null. (3) Type is always Text; to send a typed variable, use --context-variables-json.
1448
+
1449
+ --context-variables-json=<value> Typed session variables for the agent preview session, as a JSON array.
1450
+
1451
+ Sets typed variables on the agent preview session. Use this instead of --context-variables when a variable is not
1452
+ Text, for example a boolean-gated route (available when @variables.myFlag == True) that needs a real Boolean, or a
1453
+ Number, Object, List, or Json value.
1454
+
1455
+ The value is a JSON array of objects, each with a "name", a "type", and an optional "value". The "type" is one of
1456
+ Text, Date, DateTime, Money, Ref, Boolean, Number, Object, List, or Json. The JSON type of "value" must match
1457
+ "type": Boolean takes a boolean, Number takes a number, the string types take a string, Object and List take an
1458
+ array, and Json takes an object.
1459
+
1460
+ Example: --context-variables-json
1461
+ '[{"name":"probeGate","type":"Boolean","value":true},{"name":"retryCount","type":"Number","value":3}]'.
1462
+
1463
+ You can pass both --context-variables and --context-variables-json in the same command. When the same variable name
1464
+ appears in both, the --context-variables-json value wins.
1465
+
1466
+ Tip: names follow the same rules as --context-variables. Use the "$Context." prefix for linked context variables,
1467
+ and a bare name for state variables.
1447
1468
  ```
1448
1469
 
1449
- _See code: [src/commands/agent/preview.ts](https://github.com/salesforcecli/plugin-agent/blob/2.1.0/src/commands/agent/preview.ts)_
1470
+ _See code: [src/commands/agent/preview.ts](https://github.com/salesforcecli/plugin-agent/blob/2.2.2/src/commands/agent/preview.ts)_
1450
1471
 
1451
1472
  ## `sf agent preview end`
1452
1473
 
@@ -1518,7 +1539,7 @@ EXAMPLES
1518
1539
  $ sf agent preview end --all --target-org <target_org>
1519
1540
  ```
1520
1541
 
1521
- _See code: [src/commands/agent/preview/end.ts](https://github.com/salesforcecli/plugin-agent/blob/2.1.0/src/commands/agent/preview/end.ts)_
1542
+ _See code: [src/commands/agent/preview/end.ts](https://github.com/salesforcecli/plugin-agent/blob/2.2.2/src/commands/agent/preview/end.ts)_
1522
1543
 
1523
1544
  ## `sf agent preview send`
1524
1545
 
@@ -1576,7 +1597,7 @@ EXAMPLES
1576
1597
  $ sf agent preview send --utterance "what can you help me with?" --authoring-bundle My_Local_Agent
1577
1598
  ```
1578
1599
 
1579
- _See code: [src/commands/agent/preview/send.ts](https://github.com/salesforcecli/plugin-agent/blob/2.1.0/src/commands/agent/preview/send.ts)_
1600
+ _See code: [src/commands/agent/preview/send.ts](https://github.com/salesforcecli/plugin-agent/blob/2.2.2/src/commands/agent/preview/send.ts)_
1580
1601
 
1581
1602
  ## `sf agent preview sessions`
1582
1603
 
@@ -1609,7 +1630,7 @@ EXAMPLES
1609
1630
  $ sf agent preview sessions
1610
1631
  ```
1611
1632
 
1612
- _See code: [src/commands/agent/preview/sessions.ts](https://github.com/salesforcecli/plugin-agent/blob/2.1.0/src/commands/agent/preview/sessions.ts)_
1633
+ _See code: [src/commands/agent/preview/sessions.ts](https://github.com/salesforcecli/plugin-agent/blob/2.2.2/src/commands/agent/preview/sessions.ts)_
1613
1634
 
1614
1635
  ## `sf agent preview start`
1615
1636
 
@@ -1619,19 +1640,21 @@ Start a programmatic agent preview session.
1619
1640
  USAGE
1620
1641
  $ sf agent preview start -o <value> [--json] [--flags-dir <value>] [--api-version <value>] [-n <value>]
1621
1642
  [--authoring-bundle <value>] [--use-live-actions | --simulate-actions] [--context-variables <value>...]
1643
+ [--context-variables-json <value>]
1622
1644
 
1623
1645
  FLAGS
1624
- -n, --api-name=<value> API name of the activated published agent you want to preview.
1625
- -o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
1626
- configuration variable is already set.
1627
- --api-version=<value> Override the api version used for api requests made by this command
1628
- --authoring-bundle=<value> API name of the authoring bundle metadata component that contains the agent's
1629
- Agent Script file.
1630
- --context-variables=<value>... Session variables for the agent preview session, in the form Name=Value.
1631
- --simulate-actions Use AI to simulate action execution instead of calling real actions. Required with
1632
- --authoring-bundle.
1633
- --use-live-actions Execute real actions in the org (Apex classes, flows, etc.). Required with
1634
- --authoring-bundle.
1646
+ -n, --api-name=<value> API name of the activated published agent you want to preview.
1647
+ -o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
1648
+ configuration variable is already set.
1649
+ --api-version=<value> Override the api version used for api requests made by this command
1650
+ --authoring-bundle=<value> API name of the authoring bundle metadata component that contains the agent's
1651
+ Agent Script file.
1652
+ --context-variables=<value>... Session variables for the agent preview session, in the form Name=Value.
1653
+ --context-variables-json=<value> Typed session variables for the agent preview session, as a JSON array.
1654
+ --simulate-actions Use AI to simulate action execution instead of calling real actions. Required
1655
+ with --authoring-bundle.
1656
+ --use-live-actions Execute real actions in the org (Apex classes, flows, etc.). Required with
1657
+ --authoring-bundle.
1635
1658
 
1636
1659
  GLOBAL FLAGS
1637
1660
  --flags-dir=<value> Import flag values from a directory.
@@ -1693,10 +1716,30 @@ FLAG DESCRIPTIONS
1693
1716
 
1694
1717
  Tips: (1) Quote the whole value in single quotes so $Context isn't shell-expanded. (2) Names are sent verbatim — a
1695
1718
  bare name is treated as a state variable, not a linked context variable, so live actions that bind via $Context.Name
1696
- will see null. (3) Type defaults to Text.
1719
+ will see null. (3) Type is always Text; to send a typed variable, use --context-variables-json.
1720
+
1721
+ --context-variables-json=<value> Typed session variables for the agent preview session, as a JSON array.
1722
+
1723
+ Sets typed variables on the agent preview session. Use this instead of --context-variables when a variable is not
1724
+ Text, for example a boolean-gated route (available when @variables.myFlag == True) that needs a real Boolean, or a
1725
+ Number, Object, List, or Json value.
1726
+
1727
+ The value is a JSON array of objects, each with a "name", a "type", and an optional "value". The "type" is one of
1728
+ Text, Date, DateTime, Money, Ref, Boolean, Number, Object, List, or Json. The JSON type of "value" must match
1729
+ "type": Boolean takes a boolean, Number takes a number, the string types take a string, Object and List take an
1730
+ array, and Json takes an object.
1731
+
1732
+ Example: --context-variables-json
1733
+ '[{"name":"probeGate","type":"Boolean","value":true},{"name":"retryCount","type":"Number","value":3}]'.
1734
+
1735
+ You can pass both --context-variables and --context-variables-json in the same command. When the same variable name
1736
+ appears in both, the --context-variables-json value wins.
1737
+
1738
+ Tip: names follow the same rules as --context-variables. Use the "$Context." prefix for linked context variables,
1739
+ and a bare name for state variables.
1697
1740
  ```
1698
1741
 
1699
- _See code: [src/commands/agent/preview/start.ts](https://github.com/salesforcecli/plugin-agent/blob/2.1.0/src/commands/agent/preview/start.ts)_
1742
+ _See code: [src/commands/agent/preview/start.ts](https://github.com/salesforcecli/plugin-agent/blob/2.2.2/src/commands/agent/preview/start.ts)_
1700
1743
 
1701
1744
  ## `sf agent publish authoring-bundle`
1702
1745
 
@@ -1756,7 +1799,7 @@ EXAMPLES
1756
1799
  $ sf agent publish authoring-bundle --api-name MyAuthoringbundle --concise
1757
1800
  ```
1758
1801
 
1759
- _See code: [src/commands/agent/publish/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/2.1.0/src/commands/agent/publish/authoring-bundle.ts)_
1802
+ _See code: [src/commands/agent/publish/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/2.2.2/src/commands/agent/publish/authoring-bundle.ts)_
1760
1803
 
1761
1804
  ## `sf agent test create`
1762
1805
 
@@ -1828,7 +1871,7 @@ FLAG DESCRIPTIONS
1828
1871
  metadata. 'testing-center' uses AiEvaluationDefinition metadata.
1829
1872
  ```
1830
1873
 
1831
- _See code: [src/commands/agent/test/create.ts](https://github.com/salesforcecli/plugin-agent/blob/2.1.0/src/commands/agent/test/create.ts)_
1874
+ _See code: [src/commands/agent/test/create.ts](https://github.com/salesforcecli/plugin-agent/blob/2.2.2/src/commands/agent/test/create.ts)_
1832
1875
 
1833
1876
  ## `sf agent test list`
1834
1877
 
@@ -1863,7 +1906,7 @@ EXAMPLES
1863
1906
  $ sf agent test list --target-org my-org
1864
1907
  ```
1865
1908
 
1866
- _See code: [src/commands/agent/test/list.ts](https://github.com/salesforcecli/plugin-agent/blob/2.1.0/src/commands/agent/test/list.ts)_
1909
+ _See code: [src/commands/agent/test/list.ts](https://github.com/salesforcecli/plugin-agent/blob/2.2.2/src/commands/agent/test/list.ts)_
1867
1910
 
1868
1911
  ## `sf agent test results`
1869
1912
 
@@ -1939,7 +1982,7 @@ FLAG DESCRIPTIONS
1939
1982
  expression when using custom evaluations.
1940
1983
  ```
1941
1984
 
1942
- _See code: [src/commands/agent/test/results.ts](https://github.com/salesforcecli/plugin-agent/blob/2.1.0/src/commands/agent/test/results.ts)_
1985
+ _See code: [src/commands/agent/test/results.ts](https://github.com/salesforcecli/plugin-agent/blob/2.2.2/src/commands/agent/test/results.ts)_
1943
1986
 
1944
1987
  ## `sf agent test resume`
1945
1988
 
@@ -2023,7 +2066,7 @@ FLAG DESCRIPTIONS
2023
2066
  expression when using custom evaluations.
2024
2067
  ```
2025
2068
 
2026
- _See code: [src/commands/agent/test/resume.ts](https://github.com/salesforcecli/plugin-agent/blob/2.1.0/src/commands/agent/test/resume.ts)_
2069
+ _See code: [src/commands/agent/test/resume.ts](https://github.com/salesforcecli/plugin-agent/blob/2.2.2/src/commands/agent/test/resume.ts)_
2027
2070
 
2028
2071
  ## `sf agent test run`
2029
2072
 
@@ -2107,7 +2150,7 @@ FLAG DESCRIPTIONS
2107
2150
  expression when using custom evaluations.
2108
2151
  ```
2109
2152
 
2110
- _See code: [src/commands/agent/test/run.ts](https://github.com/salesforcecli/plugin-agent/blob/2.1.0/src/commands/agent/test/run.ts)_
2153
+ _See code: [src/commands/agent/test/run.ts](https://github.com/salesforcecli/plugin-agent/blob/2.2.2/src/commands/agent/test/run.ts)_
2111
2154
 
2112
2155
  ## `sf agent test run-eval`
2113
2156
 
@@ -2183,7 +2226,7 @@ EXAMPLES
2183
2226
  $ echo '{"tests":[...]}' | sf agent test run-eval --spec --target-org my-org
2184
2227
  ```
2185
2228
 
2186
- _See code: [src/commands/agent/test/run-eval.ts](https://github.com/salesforcecli/plugin-agent/blob/2.1.0/src/commands/agent/test/run-eval.ts)_
2229
+ _See code: [src/commands/agent/test/run-eval.ts](https://github.com/salesforcecli/plugin-agent/blob/2.2.2/src/commands/agent/test/run-eval.ts)_
2187
2230
 
2188
2231
  ## `sf agent trace delete`
2189
2232
 
@@ -2247,7 +2290,7 @@ EXAMPLES
2247
2290
  $ sf agent trace delete --no-prompt
2248
2291
  ```
2249
2292
 
2250
- _See code: [src/commands/agent/trace/delete.ts](https://github.com/salesforcecli/plugin-agent/blob/2.1.0/src/commands/agent/trace/delete.ts)_
2293
+ _See code: [src/commands/agent/trace/delete.ts](https://github.com/salesforcecli/plugin-agent/blob/2.2.2/src/commands/agent/trace/delete.ts)_
2251
2294
 
2252
2295
  ## `sf agent trace list`
2253
2296
 
@@ -2317,7 +2360,7 @@ FLAG DESCRIPTIONS
2317
2360
  (2026-04-20T14:00:00.000Z). The "Recorded At" values shown in the table output are valid inputs.
2318
2361
  ```
2319
2362
 
2320
- _See code: [src/commands/agent/trace/list.ts](https://github.com/salesforcecli/plugin-agent/blob/2.1.0/src/commands/agent/trace/list.ts)_
2363
+ _See code: [src/commands/agent/trace/list.ts](https://github.com/salesforcecli/plugin-agent/blob/2.2.2/src/commands/agent/trace/list.ts)_
2321
2364
 
2322
2365
  ## `sf agent trace read`
2323
2366
 
@@ -2405,7 +2448,7 @@ EXAMPLES
2405
2448
  $ sf agent trace read --session-id <SESSION_ID> --json
2406
2449
  ```
2407
2450
 
2408
- _See code: [src/commands/agent/trace/read.ts](https://github.com/salesforcecli/plugin-agent/blob/2.1.0/src/commands/agent/trace/read.ts)_
2451
+ _See code: [src/commands/agent/trace/read.ts](https://github.com/salesforcecli/plugin-agent/blob/2.2.2/src/commands/agent/trace/read.ts)_
2409
2452
 
2410
2453
  ## `sf agent validate authoring-bundle`
2411
2454
 
@@ -2452,6 +2495,6 @@ EXAMPLES
2452
2495
  $ sf agent validate authoring-bundle --api-name MyAuthoringBundle --target-org my-dev-org
2453
2496
  ```
2454
2497
 
2455
- _See code: [src/commands/agent/validate/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/2.1.0/src/commands/agent/validate/authoring-bundle.ts)_
2498
+ _See code: [src/commands/agent/validate/authoring-bundle.ts](https://github.com/salesforcecli/plugin-agent/blob/2.2.2/src/commands/agent/validate/authoring-bundle.ts)_
2456
2499
 
2457
2500
  <!-- commandsstop -->
@@ -18,6 +18,7 @@ export default class AgentPreviewStart extends SfCommand<AgentPreviewStartResult
18
18
  'use-live-actions': import("@oclif/core/interfaces").BooleanFlag<boolean>;
19
19
  'simulate-actions': import("@oclif/core/interfaces").BooleanFlag<boolean>;
20
20
  'context-variables': import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
21
+ 'context-variables-json': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
21
22
  'agent-json': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
22
23
  };
23
24
  run(): Promise<AgentPreviewStartResult>;
@@ -18,7 +18,7 @@ import { EnvironmentVariable, Lifecycle, Messages, SfError } from '@salesforce/c
18
18
  import { Agent, ProductionAgent, ScriptAgent } from '@salesforce/agents';
19
19
  import { createCache } from '../../../previewSessionStore.js';
20
20
  import { COMPILATION_API_EXIT_CODES, loadAgentJson } from '../../../common.js';
21
- import { contextVariablesFlag, parseContextVariables } from '../../../flags.js';
21
+ import { contextVariablesFlag, contextVariablesJsonFlag, mergeContextVariables, parseContextVariables, parseContextVariablesJson, } from '../../../flags.js';
22
22
  Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
23
23
  const messages = Messages.loadMessages('@salesforce/plugin-agent', 'agent.preview.start');
24
24
  export default class AgentPreviewStart extends SfCommand {
@@ -55,6 +55,7 @@ export default class AgentPreviewStart extends SfCommand {
55
55
  exclusive: ['use-live-actions'],
56
56
  }),
57
57
  'context-variables': contextVariablesFlag,
58
+ 'context-variables-json': contextVariablesJsonFlag,
58
59
  'agent-json': Flags.file({
59
60
  summary: messages.getMessage('flags.agent-json.summary'),
60
61
  hidden: true,
@@ -124,7 +125,7 @@ export default class AgentPreviewStart extends SfCommand {
124
125
  void Lifecycle.getInstance().emitWarning('Published agents always use real actions; --use-live-actions and --simulate-actions have no effect for published agents.');
125
126
  }
126
127
  // Track telemetry for preview start
127
- const contextVariables = parseContextVariables(flags['context-variables']);
128
+ const contextVariables = mergeContextVariables(parseContextVariables(flags['context-variables']), parseContextVariablesJson(flags['context-variables-json']));
128
129
  let session;
129
130
  try {
130
131
  session = await agent.preview.start({ contextVariables });
@@ -1 +1 @@
1
- {"version":3,"file":"start.js","sourceRoot":"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7 @@ export default class AgentPreview extends SfCommand<AgentPreviewResult> {
27
27
  'apex-debug': import("@oclif/core/interfaces").BooleanFlag<boolean>;
28
28
  'use-live-actions': import("@oclif/core/interfaces").BooleanFlag<boolean>;
29
29
  'context-variables': import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
30
+ 'context-variables-json': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
30
31
  'agent-json': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
31
32
  };
32
33
  run(): Promise<AgentPreviewResult>;
@@ -22,7 +22,7 @@ import { select } from '@inquirer/prompts';
22
22
  import { Lifecycle, Messages, SfError } from '@salesforce/core';
23
23
  import { AgentPreviewReact } from '../../components/agent-preview-react.js';
24
24
  import { loadAgentJson } from '../../common.js';
25
- import { contextVariablesFlag, parseContextVariables } from '../../flags.js';
25
+ import { contextVariablesFlag, contextVariablesJsonFlag, mergeContextVariables, parseContextVariables, parseContextVariablesJson, } from '../../flags.js';
26
26
  Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
27
27
  const messages = Messages.loadMessages('@salesforce/plugin-agent', 'agent.preview');
28
28
  // https://developer.salesforce.com/docs/einstein/genai/guide/agent-api-get-started.html#prerequisites
@@ -56,6 +56,7 @@ export default class AgentPreview extends SfCommand {
56
56
  default: false,
57
57
  }),
58
58
  'context-variables': contextVariablesFlag,
59
+ 'context-variables-json': contextVariablesJsonFlag,
59
60
  'agent-json': Flags.file({
60
61
  summary: messages.getMessage('flags.agent-json.summary'),
61
62
  hidden: true,
@@ -119,7 +120,7 @@ export default class AgentPreview extends SfCommand {
119
120
  // Otherwise, let user decide when exiting
120
121
  const outputDir = flags['output-dir'] ? resolve(flags['output-dir']) : undefined;
121
122
  selectedAgent.preview.setApexDebugging(flags['apex-debug']);
122
- const contextVariables = parseContextVariables(flags['context-variables']);
123
+ const contextVariables = mergeContextVariables(parseContextVariables(flags['context-variables']), parseContextVariablesJson(flags['context-variables-json']));
123
124
  const instance = render(React.createElement(AgentPreviewReact, {
124
125
  agent: selectedAgent.preview,
125
126
  name: selectedAgent.name ?? '',
@@ -1 +1 @@
1
- {"version":3,"file":"preview.js","sourceRoot":"","sources":["../../../src/commands/agent/preview.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,KAAK,CAAC;AAC7B,OAAO,EAAE,KAAK,EAAE,WAAW,EAAoB,eAAe,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACxG,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAC5E,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAE7E,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,0BAA0B,EAAE,eAAe,CAAC,CAAC;AAYpF,sGAAsG;AACtG,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,wBAAwB,CAAC,CAAC;AAG7D,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,SAA6B;IAC9D,MAAM,CAAU,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IACzD,MAAM,CAAU,WAAW,GAAG,QAAQ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