@salesforcedevs/dx-components 1.21.0 → 1.22.0-alpha
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/package.json +2 -3
- package/src/modules/dxUtils/shikiGrammars/shikiGrammars.ts +275 -197
- package/LICENSE +0 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforcedevs/dx-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.22.0-alpha",
|
|
4
4
|
"description": "DX Lightning web components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -46,6 +46,5 @@
|
|
|
46
46
|
"volta": {
|
|
47
47
|
"node": "20.19.0",
|
|
48
48
|
"yarn": "1.22.19"
|
|
49
|
-
}
|
|
50
|
-
"gitHead": "3825e51e8056c0366f640f2c526801bc9d1b37bc"
|
|
49
|
+
}
|
|
51
50
|
}
|
|
@@ -1315,7 +1315,7 @@ const agentscriptGrammar = {
|
|
|
1315
1315
|
beginCaptures: {
|
|
1316
1316
|
"1": { name: "keyword.control.block.agentscript" }
|
|
1317
1317
|
},
|
|
1318
|
-
end: "^(?=topic|variables|start_agent|system
|
|
1318
|
+
end: "^(?=topic\\b|variables\\b|start_agent\\b|system\\b|knowledge_action\\b|connection\\b|language\\b|\\z)",
|
|
1319
1319
|
patterns: [
|
|
1320
1320
|
{
|
|
1321
1321
|
name: "comment.line.agentscript",
|
|
@@ -1323,11 +1323,30 @@ const agentscriptGrammar = {
|
|
|
1323
1323
|
},
|
|
1324
1324
|
{
|
|
1325
1325
|
name: "keyword.config.key.agentscript",
|
|
1326
|
-
match: "^\\s+(model_provider|
|
|
1326
|
+
match: "^\\s+(model_provider|agent_id|agent_name|planner_type|agent_version|agent_type|agent_label|default_agent_user|developer_name|description|agent_description|enable_enhanced_event_logs|agent_template|outbound_flow)(?=\\s?:)"
|
|
1327
1327
|
},
|
|
1328
1328
|
{
|
|
1329
1329
|
name: "entity.name.config.agentscript",
|
|
1330
|
-
match: "^\\s+([a-zA-Z_][a-zA-Z0-9_]*)(
|
|
1330
|
+
match: "^\\s+([a-zA-Z_][a-zA-Z0-9_]*)(?=\\s?:)"
|
|
1331
|
+
},
|
|
1332
|
+
{ include: "#values" }
|
|
1333
|
+
]
|
|
1334
|
+
},
|
|
1335
|
+
{
|
|
1336
|
+
name: "meta.language.agentscript",
|
|
1337
|
+
begin: "^(language):",
|
|
1338
|
+
beginCaptures: {
|
|
1339
|
+
"1": { name: "keyword.control.block.agentscript" }
|
|
1340
|
+
},
|
|
1341
|
+
end: "^(?=topic\\b|config\\b|variables\\b|connection\\b|start_agent\\b|system\\b|knowledge_action\\b|\\z)",
|
|
1342
|
+
patterns: [
|
|
1343
|
+
{
|
|
1344
|
+
name: "comment.line.agentscript",
|
|
1345
|
+
match: "(^|[ \t]+)#.*$"
|
|
1346
|
+
},
|
|
1347
|
+
{
|
|
1348
|
+
name: "keyword.language.field.agentscript",
|
|
1349
|
+
match: "^\\s+(default_locale|additional_locales|all_additional_locales)(?=\\s?:)"
|
|
1331
1350
|
},
|
|
1332
1351
|
{ include: "#values" }
|
|
1333
1352
|
]
|
|
@@ -1338,7 +1357,7 @@ const agentscriptGrammar = {
|
|
|
1338
1357
|
beginCaptures: {
|
|
1339
1358
|
"1": { name: "keyword.control.block.agentscript" }
|
|
1340
1359
|
},
|
|
1341
|
-
end: "^(?=topic|config|start_agent|system
|
|
1360
|
+
end: "^(?=topic\\b|config\\b|start_agent\\b|system\\b|knowledge_action\\b|connection\\b|language\\b|\\z)",
|
|
1342
1361
|
patterns: [
|
|
1343
1362
|
{
|
|
1344
1363
|
name: "comment.line.agentscript",
|
|
@@ -1346,11 +1365,15 @@ const agentscriptGrammar = {
|
|
|
1346
1365
|
},
|
|
1347
1366
|
{
|
|
1348
1367
|
name: "keyword.variable.metadata.agentscript",
|
|
1349
|
-
match: "^\\s
|
|
1368
|
+
match: "^\\s+(description|source|label)(?=\\s?:)"
|
|
1350
1369
|
},
|
|
1351
1370
|
{
|
|
1352
1371
|
name: "variable.definition.agentscript",
|
|
1353
|
-
match: "^\\s+([a-zA-Z_][a-zA-Z0-9_]*)(
|
|
1372
|
+
match: "^\\s+([a-zA-Z_][a-zA-Z0-9_]*)(?=\\s?:)"
|
|
1373
|
+
},
|
|
1374
|
+
{
|
|
1375
|
+
name: "storage.modifier.variable.agentscript",
|
|
1376
|
+
match: "\\b(mutable|linked)\\b"
|
|
1354
1377
|
},
|
|
1355
1378
|
{
|
|
1356
1379
|
name: "keyword.variable.source.agentscript",
|
|
@@ -1364,27 +1387,66 @@ const agentscriptGrammar = {
|
|
|
1364
1387
|
{ include: "#values" }
|
|
1365
1388
|
]
|
|
1366
1389
|
},
|
|
1390
|
+
{
|
|
1391
|
+
name: "meta.knowledge.agentscript",
|
|
1392
|
+
begin: "^(knowledge_action):",
|
|
1393
|
+
beginCaptures: {
|
|
1394
|
+
"1": { name: "keyword.control.block.agentscript" }
|
|
1395
|
+
},
|
|
1396
|
+
end: "^(?=topic\\b|config\\b|variables\\b|connection\\b|start_agent\\b|system\\b|language\\b|connection\\b|\\z)",
|
|
1397
|
+
patterns: [
|
|
1398
|
+
{
|
|
1399
|
+
name: "comment.line.agentscript",
|
|
1400
|
+
match: "(^|[ \t]+)#.*$"
|
|
1401
|
+
},
|
|
1402
|
+
{
|
|
1403
|
+
name: "keyword.knowledge.field.agentscript",
|
|
1404
|
+
match: "^\\s+(rag_feature_config_id|citations_enabled|citations_url)(?=\\s?:)"
|
|
1405
|
+
},
|
|
1406
|
+
{ include: "#values" }
|
|
1407
|
+
]
|
|
1408
|
+
},
|
|
1409
|
+
{
|
|
1410
|
+
name: "meta.connection.agentscript",
|
|
1411
|
+
begin: "^(connection)\\s+([a-zA-Z_][a-zA-Z0-9_]*):",
|
|
1412
|
+
beginCaptures: {
|
|
1413
|
+
"1": { name: "keyword.control.block.agentscript" },
|
|
1414
|
+
"2": { name: "entity.name.connection.agentscript" }
|
|
1415
|
+
},
|
|
1416
|
+
end: "^(?=topic\\b|config\\b|variables\\b|knowledge_action\\b|start_agent\\b|system\\b|language\\b|connection\\b|\\z)",
|
|
1417
|
+
patterns: [
|
|
1418
|
+
{
|
|
1419
|
+
name: "comment.line.agentscript",
|
|
1420
|
+
match: "(^|[ \t]+)#.*$"
|
|
1421
|
+
},
|
|
1422
|
+
{
|
|
1423
|
+
name: "keyword.connection.field.agentscript",
|
|
1424
|
+
match: "^\\s+(escalation_message|outbound_route_type|outbound_route_name|adaptive_response_allowed)(?=\\s?:)"
|
|
1425
|
+
},
|
|
1426
|
+
{ include: "#values" }
|
|
1427
|
+
]
|
|
1428
|
+
},
|
|
1367
1429
|
{
|
|
1368
1430
|
name: "meta.system.agentscript",
|
|
1369
1431
|
begin: "^(system):",
|
|
1370
1432
|
beginCaptures: {
|
|
1371
1433
|
"1": { name: "keyword.control.block.agentscript" }
|
|
1372
1434
|
},
|
|
1373
|
-
end: "^(?=topic|config|variables|start_agent
|
|
1435
|
+
end: "^(?=topic\\b|config\\b|variables\\b|start_agent\\b|knowledge_action\\b|connection\\b|language\\b|\\z)",
|
|
1374
1436
|
patterns: [
|
|
1375
1437
|
{
|
|
1376
1438
|
name: "comment.line.agentscript",
|
|
1377
1439
|
match: "(^|[ \t]+)#.*$"
|
|
1378
1440
|
},
|
|
1441
|
+
{ include: "#block-instructions" },
|
|
1379
1442
|
{
|
|
1380
1443
|
name: "keyword.system.agentscript",
|
|
1381
|
-
match: "
|
|
1444
|
+
match: "^\\s+(instructions|messages|prompt)(?=\\s?:)"
|
|
1382
1445
|
},
|
|
1383
1446
|
{
|
|
1384
1447
|
name: "keyword.system.message-type.agentscript",
|
|
1385
|
-
match: "
|
|
1448
|
+
match: "^\\s{2,}(error|welcome)(?=\\s?:)"
|
|
1386
1449
|
},
|
|
1387
|
-
{ include: "#multiline-instructions" },
|
|
1388
1450
|
{ include: "#values" }
|
|
1389
1451
|
]
|
|
1390
1452
|
},
|
|
@@ -1395,25 +1457,21 @@ const agentscriptGrammar = {
|
|
|
1395
1457
|
"1": { name: "keyword.control.block.agentscript" },
|
|
1396
1458
|
"2": { name: "entity.name.topic.agentscript" }
|
|
1397
1459
|
},
|
|
1398
|
-
end: "^(?=topic|config|variables|start_agent|system
|
|
1460
|
+
end: "^(?=topic\\b|config\\b|variables\\b|start_agent\\b|system\\b|knowledge_action\\b|connection\\b|language\\b|\\z)",
|
|
1399
1461
|
patterns: [
|
|
1400
1462
|
{
|
|
1401
1463
|
name: "comment.line.agentscript",
|
|
1402
1464
|
match: "(^|[ \t]+)#.*$"
|
|
1403
1465
|
},
|
|
1466
|
+
{ include: "#topic-label" },
|
|
1467
|
+
{ include: "#topic-system-block" },
|
|
1468
|
+
{ include: "#reasoning-block" },
|
|
1404
1469
|
{ include: "#action-definitions" },
|
|
1405
1470
|
{ include: "#agent-task" },
|
|
1406
1471
|
{ include: "#task-content" },
|
|
1407
1472
|
{ include: "#description-section" },
|
|
1408
|
-
{ include: "#
|
|
1409
|
-
{ include: "#before-reasoning" },
|
|
1410
|
-
{ include: "#reasoning-instructions" },
|
|
1411
|
-
{ include: "#reasoning-actions" },
|
|
1473
|
+
{ include: "#before-or-after-reasoning" },
|
|
1412
1474
|
{ include: "#directives" },
|
|
1413
|
-
{
|
|
1414
|
-
name: "keyword.topic.section.agentscript",
|
|
1415
|
-
match: "\\b(action_definitions|after_reasoning|reasoning_actions|override|variables|instructions)(?=:)"
|
|
1416
|
-
},
|
|
1417
1475
|
{
|
|
1418
1476
|
name: "storage.type.agentscript",
|
|
1419
1477
|
match: "\\b(string|number|boolean|object|date|timestamp|currency|id|list)\\b"
|
|
@@ -1425,30 +1483,26 @@ const agentscriptGrammar = {
|
|
|
1425
1483
|
},
|
|
1426
1484
|
{
|
|
1427
1485
|
name: "meta.start-agent.agentscript",
|
|
1428
|
-
begin: "^(start_agent)(?:\\s+([a-zA-Z_][a-zA-Z0-9_]*))
|
|
1486
|
+
begin: "^(start_agent)(?:\\s+([a-zA-Z_][a-zA-Z0-9_]*))?:",
|
|
1429
1487
|
beginCaptures: {
|
|
1430
1488
|
"1": { name: "keyword.control.block.agentscript" },
|
|
1431
1489
|
"2": { name: "entity.name.agent.agentscript" }
|
|
1432
1490
|
},
|
|
1433
|
-
end: "^(?=topic|config|variables|start_agent|system
|
|
1491
|
+
end: "^(?=topic\\b|config\\b|variables\\b|start_agent\\b|system\\b|knowledge_action\\b|connection\\b|language\\b|\\z)",
|
|
1434
1492
|
patterns: [
|
|
1435
1493
|
{
|
|
1436
1494
|
name: "comment.line.agentscript",
|
|
1437
1495
|
match: "(^|[ \t]+)#.*$"
|
|
1438
1496
|
},
|
|
1497
|
+
{ include: "#topic-label" },
|
|
1498
|
+
{ include: "#topic-system-block" },
|
|
1499
|
+
{ include: "#reasoning-block" },
|
|
1439
1500
|
{ include: "#action-definitions" },
|
|
1440
1501
|
{ include: "#agent-task" },
|
|
1441
1502
|
{ include: "#task-content" },
|
|
1442
1503
|
{ include: "#description-section" },
|
|
1443
|
-
{ include: "#
|
|
1444
|
-
{ include: "#before-reasoning" },
|
|
1445
|
-
{ include: "#reasoning-instructions" },
|
|
1446
|
-
{ include: "#reasoning-actions" },
|
|
1504
|
+
{ include: "#before-or-after-reasoning" },
|
|
1447
1505
|
{ include: "#directives" },
|
|
1448
|
-
{
|
|
1449
|
-
name: "keyword.topic.section.agentscript",
|
|
1450
|
-
match: "\\b(actions|action_definitions|after_reasoning|reasoning_actions|reasoning_instructions|override|variables|instructions)(?=:)"
|
|
1451
|
-
},
|
|
1452
1506
|
{
|
|
1453
1507
|
name: "storage.type.agentscript",
|
|
1454
1508
|
match: "\\b(string|number|boolean|object|date|timestamp|currency|id|list)\\b"
|
|
@@ -1472,11 +1526,15 @@ const agentscriptGrammar = {
|
|
|
1472
1526
|
},
|
|
1473
1527
|
{
|
|
1474
1528
|
name: "keyword.control.agentscript",
|
|
1475
|
-
match: "\\b(if|else|run|set|with|and|or|
|
|
1529
|
+
match: "\\b(if|else|run|set|with|and|or|not)\\b|\\btransition to\\b|\\bdelegate to\\b"
|
|
1476
1530
|
},
|
|
1477
1531
|
{
|
|
1478
1532
|
name: "constant.language.agentscript",
|
|
1479
|
-
match: "\\b(True|False)\\b"
|
|
1533
|
+
match: "\\b(True|False|None)\\b"
|
|
1534
|
+
},
|
|
1535
|
+
{
|
|
1536
|
+
name: "constant.language.llm.agentscript",
|
|
1537
|
+
match: "\\.\\.\\."
|
|
1480
1538
|
},
|
|
1481
1539
|
{
|
|
1482
1540
|
name: "constant.other.timestamp.agentscript",
|
|
@@ -1517,7 +1575,7 @@ const agentscriptGrammar = {
|
|
|
1517
1575
|
},
|
|
1518
1576
|
{
|
|
1519
1577
|
name: "meta.variable.reference.agentscript",
|
|
1520
|
-
match: "(@)(
|
|
1578
|
+
match: "(@)(variables|outputs|inputs|topic|actions|knowledge_action)(\\.)([a-zA-Z_][a-zA-Z0-9_]*)",
|
|
1521
1579
|
captures: {
|
|
1522
1580
|
"1": { name: "support.class.agentscript" },
|
|
1523
1581
|
"2": { name: "support.class.agentscript" },
|
|
@@ -1531,7 +1589,7 @@ const agentscriptGrammar = {
|
|
|
1531
1589
|
},
|
|
1532
1590
|
{
|
|
1533
1591
|
name: "variable.other.member.agentscript",
|
|
1534
|
-
match: "(?<=@(?:
|
|
1592
|
+
match: "(?<=@(?:variables|topic|inputs|actions|outputs|knowledge_action)\\.)\\b[a-zA-Z_][a-zA-Z0-9_]*\\b"
|
|
1535
1593
|
},
|
|
1536
1594
|
{
|
|
1537
1595
|
name: "operator.arithmetic.agentscript",
|
|
@@ -1576,7 +1634,11 @@ const agentscriptGrammar = {
|
|
|
1576
1634
|
},
|
|
1577
1635
|
{
|
|
1578
1636
|
name: "constant.language.agentscript",
|
|
1579
|
-
match: "\\b(True|False)\\b"
|
|
1637
|
+
match: "\\b(True|False|None)\\b"
|
|
1638
|
+
},
|
|
1639
|
+
{
|
|
1640
|
+
name: "constant.language.llm.agentscript",
|
|
1641
|
+
match: "\\.\\.\\."
|
|
1580
1642
|
},
|
|
1581
1643
|
{
|
|
1582
1644
|
name: "constant.other.timestamp.agentscript",
|
|
@@ -1592,7 +1654,7 @@ const agentscriptGrammar = {
|
|
|
1592
1654
|
},
|
|
1593
1655
|
{
|
|
1594
1656
|
name: "variable.other.member.agentscript",
|
|
1595
|
-
match: "(?<=@(?:
|
|
1657
|
+
match: "(?<=@(?:variables|topic|inputs|actions|outputs|knowledge_action)\\.)\\b[a-zA-Z_][a-zA-Z0-9_]*\\b"
|
|
1596
1658
|
}
|
|
1597
1659
|
]
|
|
1598
1660
|
},
|
|
@@ -1636,13 +1698,76 @@ const agentscriptGrammar = {
|
|
|
1636
1698
|
}
|
|
1637
1699
|
]
|
|
1638
1700
|
},
|
|
1639
|
-
"
|
|
1640
|
-
name: "meta.
|
|
1641
|
-
begin: "
|
|
1701
|
+
"topic-label": {
|
|
1702
|
+
name: "meta.topic.label.agentscript",
|
|
1703
|
+
begin: "^\\s+(label)(?=\\s?:)",
|
|
1704
|
+
beginCaptures: {
|
|
1705
|
+
"1": { name: "keyword.topic.section.agentscript" }
|
|
1706
|
+
},
|
|
1707
|
+
end: "^(?=\\s+(reasoning|system|description|before_reasoning|after_reasoning|actions|variables|instructions)\\b)|^(?=topic\\b|config\\b|variables\\b|start_agent\\b|language\\b|knowledge_action\\b|connection\\b)",
|
|
1708
|
+
patterns: [
|
|
1709
|
+
{
|
|
1710
|
+
name: "comment.line.agentscript",
|
|
1711
|
+
match: "(^|[ \t]+)#.*$"
|
|
1712
|
+
},
|
|
1713
|
+
{ include: "#values" }
|
|
1714
|
+
]
|
|
1715
|
+
},
|
|
1716
|
+
"topic-system-block": {
|
|
1717
|
+
name: "meta.topic.system.agentscript",
|
|
1718
|
+
begin: "^\\s+(system)(?=\\s?:)",
|
|
1719
|
+
beginCaptures: {
|
|
1720
|
+
"1": { name: "keyword.topic.section.agentscript" }
|
|
1721
|
+
},
|
|
1722
|
+
end: "^(?=\\s+(reasoning|label|description|before_reasoning|after_reasoning|actions)\\b)|^(?=topic\\b|config\\b|language\\b|knowledge_action\\b|connection\\b)",
|
|
1723
|
+
patterns: [
|
|
1724
|
+
{
|
|
1725
|
+
name: "comment.line.agentscript",
|
|
1726
|
+
match: "(^|[ \t]+)#.*$"
|
|
1727
|
+
},
|
|
1728
|
+
{ include: "#block-instructions" },
|
|
1729
|
+
{
|
|
1730
|
+
name: "keyword.system.agentscript",
|
|
1731
|
+
match: "\\b(instructions)(?=:)"
|
|
1732
|
+
},
|
|
1733
|
+
{ include: "#values" }
|
|
1734
|
+
]
|
|
1735
|
+
},
|
|
1736
|
+
"reasoning-block": {
|
|
1737
|
+
name: "meta.reasoning.block.agentscript",
|
|
1738
|
+
begin: "^\\s+(reasoning)(?=\\s?:)",
|
|
1642
1739
|
beginCaptures: {
|
|
1643
|
-
"
|
|
1740
|
+
"1": { name: "keyword.topic.section.agentscript" }
|
|
1741
|
+
},
|
|
1742
|
+
end: "^(?=\\s+(label|system|description|before_reasoning|after_reasoning|variables)\\b)|^(?=\\s{1,5}actions\\b)|^(?=topic\\b|config\\b|variables\\b|start_agent\\b|system\\b|language\\b|knowledge_action\\b|connection\\b)",
|
|
1743
|
+
patterns: [
|
|
1744
|
+
{
|
|
1745
|
+
name: "comment.line.agentscript",
|
|
1746
|
+
match: "(^|[ \t]+)#.*$"
|
|
1747
|
+
},
|
|
1748
|
+
{ include: "#block-instructions" },
|
|
1749
|
+
{ include: "#reasoning-actions" }
|
|
1750
|
+
]
|
|
1751
|
+
},
|
|
1752
|
+
"block-instructions": {
|
|
1753
|
+
name: "meta.block.instructions.agentscript",
|
|
1754
|
+
begin: "^(\\s{4,8})(instructions)\\s*(:\\s*(->|\\|))",
|
|
1755
|
+
beginCaptures: {
|
|
1756
|
+
"2": { name: "keyword.topic.section.agentscript" },
|
|
1757
|
+
"3": {
|
|
1758
|
+
name: "keyword.operator.procedure-or-template.agentscript"
|
|
1759
|
+
},
|
|
1760
|
+
"4": {
|
|
1761
|
+
name: "keyword.operator.procedure.agentscript",
|
|
1762
|
+
patterns: [
|
|
1763
|
+
{
|
|
1764
|
+
name: "keyword.operator.template.agentscript",
|
|
1765
|
+
match: "\\|"
|
|
1766
|
+
}
|
|
1767
|
+
]
|
|
1768
|
+
}
|
|
1644
1769
|
},
|
|
1645
|
-
end: "^(?=\\s
|
|
1770
|
+
end: "^(?=\\s+(reasoning|actions|before_reasoning|after_reasoning)\\s?:)|^(?=topic\\b|config\\b|variables\\b|start_agent\\b|system\\b|language\\b|knowledge_action\\b|connection\\b)",
|
|
1646
1771
|
patterns: [
|
|
1647
1772
|
{
|
|
1648
1773
|
name: "comment.line.agentscript",
|
|
@@ -1650,11 +1775,11 @@ const agentscriptGrammar = {
|
|
|
1650
1775
|
},
|
|
1651
1776
|
{
|
|
1652
1777
|
name: "string.heredoc.agentscript",
|
|
1653
|
-
begin: "
|
|
1778
|
+
begin: "^\\s+",
|
|
1654
1779
|
beginCaptures: {
|
|
1655
1780
|
"1": { name: "keyword.operator.heredoc.agentscript" }
|
|
1656
1781
|
},
|
|
1657
|
-
end: "^(?=\\s{4}(
|
|
1782
|
+
end: "^(?=\\s{0,8}\\S)|^(?=\\s{4}(reasoning|actions|before_reasoning|after_reasoning|description|label|system|variables|instructions|override)\\b)|^(?=topic\\b|config\\b|variables\\b|start_agent\\b|system\\b|language\\b|knowledge_action\\b|connection\\b)",
|
|
1658
1783
|
patterns: [
|
|
1659
1784
|
{ include: "#template-expression" },
|
|
1660
1785
|
{
|
|
@@ -1663,17 +1788,21 @@ const agentscriptGrammar = {
|
|
|
1663
1788
|
}
|
|
1664
1789
|
]
|
|
1665
1790
|
},
|
|
1791
|
+
{ include: "#directives" }
|
|
1792
|
+
]
|
|
1793
|
+
},
|
|
1794
|
+
"template-block": {
|
|
1795
|
+
name: "meta.template.block.agentscript",
|
|
1796
|
+
begin: "^\\s+(\\|)",
|
|
1797
|
+
beginCaptures: {
|
|
1798
|
+
"1": { name: "keyword.operator.template.agentscript" }
|
|
1799
|
+
},
|
|
1800
|
+
end: "^(?!\\s+\\|)",
|
|
1801
|
+
patterns: [
|
|
1802
|
+
{ include: "#template-expression" },
|
|
1666
1803
|
{
|
|
1667
|
-
name: "string.unquoted.
|
|
1668
|
-
|
|
1669
|
-
end: "^(?=\\s{4}(messages|prompt)\\b)|^(?=\\S)|^(?=topic\\b|config\\b|variables\\b|start_agent\\b|system\\b)",
|
|
1670
|
-
patterns: [
|
|
1671
|
-
{ include: "#template-expression" },
|
|
1672
|
-
{
|
|
1673
|
-
name: "string.unquoted.instructions.agentscript",
|
|
1674
|
-
match: ".*"
|
|
1675
|
-
}
|
|
1676
|
-
]
|
|
1804
|
+
name: "string.unquoted.template.agentscript",
|
|
1805
|
+
match: ".*"
|
|
1677
1806
|
}
|
|
1678
1807
|
]
|
|
1679
1808
|
},
|
|
@@ -1685,7 +1814,7 @@ const agentscriptGrammar = {
|
|
|
1685
1814
|
},
|
|
1686
1815
|
{
|
|
1687
1816
|
name: "string.heredoc.agentscript",
|
|
1688
|
-
begin: "(
|
|
1817
|
+
begin: "(\\|)\\s*$",
|
|
1689
1818
|
beginCaptures: {
|
|
1690
1819
|
"1": { name: "keyword.operator.heredoc.agentscript" }
|
|
1691
1820
|
},
|
|
@@ -1700,7 +1829,7 @@ const agentscriptGrammar = {
|
|
|
1700
1829
|
},
|
|
1701
1830
|
{
|
|
1702
1831
|
name: "string.heredoc.quoted.agentscript",
|
|
1703
|
-
begin: '(
|
|
1832
|
+
begin: '(\\|)\\s*"',
|
|
1704
1833
|
beginCaptures: {
|
|
1705
1834
|
"1": { name: "keyword.operator.heredoc.agentscript" }
|
|
1706
1835
|
},
|
|
@@ -1712,6 +1841,13 @@ const agentscriptGrammar = {
|
|
|
1712
1841
|
match: "\\\\."
|
|
1713
1842
|
}
|
|
1714
1843
|
]
|
|
1844
|
+
},
|
|
1845
|
+
{
|
|
1846
|
+
name: "string.agent-task.single-line.agentscript",
|
|
1847
|
+
match: '\\|\\s+"(?:[^"\\\\]|\\\\.)*"',
|
|
1848
|
+
captures: {
|
|
1849
|
+
"0": { name: "string.quoted.double.agentscript" }
|
|
1850
|
+
}
|
|
1715
1851
|
}
|
|
1716
1852
|
]
|
|
1717
1853
|
},
|
|
@@ -1736,11 +1872,11 @@ const agentscriptGrammar = {
|
|
|
1736
1872
|
},
|
|
1737
1873
|
"description-section": {
|
|
1738
1874
|
name: "meta.description.section.agentscript",
|
|
1739
|
-
begin: "
|
|
1875
|
+
begin: "^\\s+(description)(?=\\s?:)",
|
|
1740
1876
|
beginCaptures: {
|
|
1741
|
-
"
|
|
1877
|
+
"1": { name: "keyword.topic.section.agentscript" }
|
|
1742
1878
|
},
|
|
1743
|
-
end: "^(?=\\s
|
|
1879
|
+
end: "^(?=\\s+(reasoning|label|system|actions|before_reasoning|after_reasoning|variables|instructions)\\b)|^(?=\\s{4}override\\s+system\\.instructions:)|^(?=topic\\b|config\\b|variables\\b|start_agent\\b|system\\b|language\\b|knowledge_action\\b|connection\\b)",
|
|
1744
1880
|
patterns: [
|
|
1745
1881
|
{
|
|
1746
1882
|
name: "comment.line.agentscript",
|
|
@@ -1755,76 +1891,20 @@ const agentscriptGrammar = {
|
|
|
1755
1891
|
{ include: "#values" }
|
|
1756
1892
|
]
|
|
1757
1893
|
},
|
|
1758
|
-
"
|
|
1759
|
-
name: "meta.
|
|
1760
|
-
begin: "^(\\s+)(
|
|
1761
|
-
beginCaptures: {
|
|
1762
|
-
"2": { name: "keyword.override.path.agentscript" },
|
|
1763
|
-
"3": { name: "string.quoted.double.agentscript" }
|
|
1764
|
-
},
|
|
1765
|
-
end: "^(?=\\s{4}(reasoning_instructions|reasoning_actions|actions|before_reasoning|after_reasoning|description|variables|instructions)\\b)|^(?=\\s{4}override\\s+system\\.instructions:)|^(?=topic\\b|config\\b|variables\\b|start_agent\\b|system\\b)",
|
|
1766
|
-
patterns: [
|
|
1767
|
-
{
|
|
1768
|
-
name: "comment.line.agentscript",
|
|
1769
|
-
match: "(^|[ \t]+)#.*$"
|
|
1770
|
-
},
|
|
1771
|
-
{
|
|
1772
|
-
name: "string.heredoc.agentscript",
|
|
1773
|
-
begin: "(>>)\\s*$",
|
|
1774
|
-
beginCaptures: {
|
|
1775
|
-
"1": { name: "keyword.operator.heredoc.agentscript" }
|
|
1776
|
-
},
|
|
1777
|
-
end: "^(?=\\s{0,4}\\S)|^(?=\\s{4}(reasoning_actions|actions|before_reasoning|after_reasoning|description|variables|instructions|override|reasoning_instructions)\\b)|^(?=topic\\b|config\\b|variables\\b|start_agent\\b|system\\b)",
|
|
1778
|
-
patterns: [
|
|
1779
|
-
{ include: "#template-expression" },
|
|
1780
|
-
{
|
|
1781
|
-
name: "string.unquoted.heredoc.agentscript",
|
|
1782
|
-
match: "."
|
|
1783
|
-
}
|
|
1784
|
-
]
|
|
1785
|
-
},
|
|
1786
|
-
{
|
|
1787
|
-
name: "string.heredoc.quoted.agentscript",
|
|
1788
|
-
begin: '(>>)\\s*"',
|
|
1789
|
-
beginCaptures: {
|
|
1790
|
-
"1": { name: "keyword.operator.heredoc.agentscript" }
|
|
1791
|
-
},
|
|
1792
|
-
end: '"',
|
|
1793
|
-
patterns: [
|
|
1794
|
-
{ include: "#template-expression" },
|
|
1795
|
-
{
|
|
1796
|
-
name: "string.unquoted.heredoc.agentscript",
|
|
1797
|
-
match: "."
|
|
1798
|
-
}
|
|
1799
|
-
]
|
|
1800
|
-
},
|
|
1801
|
-
{
|
|
1802
|
-
name: "string.unquoted.multiline.agentscript",
|
|
1803
|
-
begin: "^\\s+",
|
|
1804
|
-
end: "^(?=\\s{4}(reasoning_instructions|reasoning_actions|actions|before_reasoning|after_reasoning|description|variables|instructions)\\b)|^(?=\\s{4}override\\s+system\\.instructions:)|^(?=topic\\b|config\\b|variables\\b|start_agent\\b|system\\b)|^\\s*$",
|
|
1805
|
-
patterns: [
|
|
1806
|
-
{ include: "#template-expression" },
|
|
1807
|
-
{
|
|
1808
|
-
name: "string.unquoted.instructions.agentscript",
|
|
1809
|
-
match: ".*"
|
|
1810
|
-
}
|
|
1811
|
-
]
|
|
1812
|
-
}
|
|
1813
|
-
]
|
|
1814
|
-
},
|
|
1815
|
-
"before-reasoning": {
|
|
1816
|
-
name: "meta.before-reasoning.agentscript",
|
|
1817
|
-
begin: "^(\\s+)(before_reasoning):",
|
|
1894
|
+
"before-or-after-reasoning": {
|
|
1895
|
+
name: "meta.before-or-after-reasoning.agentscript",
|
|
1896
|
+
begin: "^(\\s+)(before_reasoning|after_reasoning):",
|
|
1818
1897
|
beginCaptures: {
|
|
1819
1898
|
"2": { name: "keyword.topic.section.agentscript" }
|
|
1820
1899
|
},
|
|
1821
|
-
end: "^(?=\\s{4}(
|
|
1900
|
+
end: "^(?=\\s{2,4}(reasoning|actions|after_reasoning|before_reasoning|description|label|system|variables|instructions|override)\\b)|^(?=\\s{4}override\\s+system\\.instructions:)|^(?=topic\\b|config\\b|variables\\b|start_agent\\b|system\\b|language\\b|knowledge_action\\b|connection\\b)",
|
|
1822
1901
|
patterns: [
|
|
1823
1902
|
{
|
|
1824
1903
|
name: "comment.line.agentscript",
|
|
1825
1904
|
match: "(^|[ \t]+)#.*$"
|
|
1826
1905
|
},
|
|
1827
1906
|
{ include: "#directives" },
|
|
1907
|
+
{ include: "#template-block" },
|
|
1828
1908
|
{
|
|
1829
1909
|
name: "meta.utils.call.agentscript",
|
|
1830
1910
|
match: "(@utils)(\\.)([a-zA-Z_][a-zA-Z0-9_]*)\\b",
|
|
@@ -1836,7 +1916,7 @@ const agentscriptGrammar = {
|
|
|
1836
1916
|
},
|
|
1837
1917
|
{
|
|
1838
1918
|
name: "meta.variable.reference.agentscript",
|
|
1839
|
-
match: "(@)(
|
|
1919
|
+
match: "(@)(actions|topic|variables|outputs|inputs|knowledge_action)(\\.)([a-zA-Z_][a-zA-Z0-9_]*)",
|
|
1840
1920
|
captures: {
|
|
1841
1921
|
"1": { name: "support.class.agentscript" },
|
|
1842
1922
|
"2": { name: "support.class.agentscript" },
|
|
@@ -1871,82 +1951,70 @@ const agentscriptGrammar = {
|
|
|
1871
1951
|
{ include: "#values" }
|
|
1872
1952
|
]
|
|
1873
1953
|
},
|
|
1874
|
-
"
|
|
1875
|
-
name: "meta.
|
|
1876
|
-
begin: "^(\\s+)(
|
|
1954
|
+
"action-definitions": {
|
|
1955
|
+
name: "meta.actions.agentscript",
|
|
1956
|
+
begin: "^(\\s+)(actions):",
|
|
1877
1957
|
beginCaptures: {
|
|
1878
1958
|
"2": { name: "keyword.topic.section.agentscript" }
|
|
1879
1959
|
},
|
|
1880
|
-
end: "^(?=\\s{4}(
|
|
1960
|
+
end: "^(?=\\s{2,4}(reasoning|before_reasoning|after_reasoning|description|label|system|variables|instructions|override)\\b)|^(?=topic\\b|config\\b|variables\\b|start_agent\\b|system\\b|language\\b|knowledge_action\\b|connection\\b)",
|
|
1881
1961
|
patterns: [
|
|
1882
1962
|
{
|
|
1883
1963
|
name: "comment.line.agentscript",
|
|
1884
1964
|
match: "(^|[ \t]+)#.*$"
|
|
1885
1965
|
},
|
|
1886
1966
|
{
|
|
1887
|
-
name: "
|
|
1888
|
-
begin: "(
|
|
1967
|
+
name: "meta.action.inputsAndOutputs.agentscript",
|
|
1968
|
+
begin: "^\\s{6,12}(inputs|outputs):\\s*",
|
|
1889
1969
|
beginCaptures: {
|
|
1890
|
-
"1": { name: "keyword.
|
|
1970
|
+
"1": { name: "keyword.action.property.agentscript" }
|
|
1891
1971
|
},
|
|
1892
|
-
end: "^(?=\\s
|
|
1972
|
+
end: "^(?=\\s+(target|inputs|outputs|label|reasoning|require_user_confirmation|include_in_progress_indicator|progress_indicator_message)\\b)|^(?=\\s{4,8}[a-zA-Z_]\\s*:)|^(?=topic\\b|config\\b|variables\\b|start_agent\\b|system\\b|language\\b|knowledge_action\\b|connection\\b)",
|
|
1893
1973
|
patterns: [
|
|
1894
|
-
{ include: "#template-expression" },
|
|
1895
1974
|
{
|
|
1896
|
-
name: "
|
|
1897
|
-
match: "
|
|
1898
|
-
}
|
|
1899
|
-
]
|
|
1900
|
-
},
|
|
1901
|
-
{
|
|
1902
|
-
name: "string.heredoc.quoted.agentscript",
|
|
1903
|
-
begin: '(>>)\\s*"',
|
|
1904
|
-
beginCaptures: {
|
|
1905
|
-
"1": { name: "keyword.operator.heredoc.agentscript" }
|
|
1906
|
-
},
|
|
1907
|
-
end: '"',
|
|
1908
|
-
patterns: [
|
|
1909
|
-
{ include: "#template-expression" },
|
|
1975
|
+
name: "comment.line.agentscript",
|
|
1976
|
+
match: "(^|[ \t]+)#.*$"
|
|
1977
|
+
},
|
|
1910
1978
|
{
|
|
1911
|
-
name: "
|
|
1912
|
-
|
|
1913
|
-
|
|
1979
|
+
name: "meta.action.parameter.definition.agentscript",
|
|
1980
|
+
begin: "^\\s{8,16}(?!(?:description|is_required|is_user_input|label|is_displayable|is_used_by_planner|complex_data_type_name)\\s*:)([a-zA-Z_][a-zA-Z0-9_]*):\\s*",
|
|
1981
|
+
beginCaptures: {
|
|
1982
|
+
"1": {
|
|
1983
|
+
name: "variable.parameter.name.agentscript"
|
|
1984
|
+
}
|
|
1985
|
+
},
|
|
1986
|
+
end: "^(?=\\s+(?!(?:description|is_required|is_user_input|label|is_displayable|is_used_by_planner|complex_data_type_name)\\s*:)[a-zA-Z_][a-zA-Z0-9_]*\\s*:)|^(?=topic\\b|config\\b|variables\\b|start_agent\\b|system\\b|language\\b|knowledge_action\\b|connection\\b)",
|
|
1987
|
+
patterns: [
|
|
1988
|
+
{
|
|
1989
|
+
name: "comment.line.agentscript",
|
|
1990
|
+
match: "(^|[ \t]+)#.*$"
|
|
1991
|
+
},
|
|
1992
|
+
{
|
|
1993
|
+
name: "storage.type.agentscript",
|
|
1994
|
+
match: "\\b(string|number|boolean|object|date|timestamp|currency|id|list(?:\\[\\w+\\])?)\\b"
|
|
1995
|
+
},
|
|
1996
|
+
{
|
|
1997
|
+
name: "keyword.action.parameter.metadata.agentscript",
|
|
1998
|
+
match: "^\\s+(description|is_required|is_user_input|label|complex_data_type_name|is_used_by_planner|is_displayable)(?=:)"
|
|
1999
|
+
},
|
|
2000
|
+
{
|
|
2001
|
+
name: "variable.parameter.name.agentscript",
|
|
2002
|
+
match: "^\\s+(?!(?:description|is_required|is_user_input|label|is_displayable|is_used_by_planner|complex_data_type_name)\\s*:)[a-zA-Z_][a-zA-Z0-9_]*\\s*:"
|
|
2003
|
+
},
|
|
2004
|
+
{ include: "#values" }
|
|
2005
|
+
]
|
|
2006
|
+
},
|
|
2007
|
+
{ include: "#values" }
|
|
1914
2008
|
]
|
|
1915
2009
|
},
|
|
1916
2010
|
{
|
|
1917
|
-
name: "
|
|
1918
|
-
|
|
1919
|
-
end: '"',
|
|
1920
|
-
patterns: [
|
|
1921
|
-
{ include: "#template-expression" },
|
|
1922
|
-
{
|
|
1923
|
-
name: "string.unquoted.heredoc.agentscript",
|
|
1924
|
-
match: "."
|
|
1925
|
-
}
|
|
1926
|
-
]
|
|
1927
|
-
}
|
|
1928
|
-
]
|
|
1929
|
-
},
|
|
1930
|
-
"action-definitions": {
|
|
1931
|
-
name: "meta.actions.agentscript",
|
|
1932
|
-
begin: "^(\\s+)(actions|action_definitions):",
|
|
1933
|
-
beginCaptures: {
|
|
1934
|
-
"2": { name: "keyword.topic.section.agentscript" }
|
|
1935
|
-
},
|
|
1936
|
-
end: "^(?=\\s{4}(reasoning_instructions|reasoning_actions|before_reasoning|after_reasoning|description|variables|instructions|override)\\b)|^(?=topic\\b|config\\b|variables\\b|start_agent\\b|system\\b)",
|
|
1937
|
-
patterns: [
|
|
1938
|
-
{
|
|
1939
|
-
name: "comment.line.agentscript",
|
|
1940
|
-
match: "(^|[ \t]+)#.*$"
|
|
2011
|
+
name: "keyword.action.property.agentscript",
|
|
2012
|
+
match: "^\\s{6,12}(description|target|parameters|returns|label|require_user_confirmation|include_in_progress_indicator|progress_indicator_message|is_required|is_user_input|developer_name|complex_data_type_name|is_used_by_planner|is_displayable)(?=:)"
|
|
1941
2013
|
},
|
|
1942
2014
|
{
|
|
1943
2015
|
name: "entity.name.action.agentscript",
|
|
1944
2016
|
match: "^\\s{4,8}([a-zA-Z_][a-zA-Z0-9_]*)(?=:)"
|
|
1945
2017
|
},
|
|
1946
|
-
{
|
|
1947
|
-
name: "keyword.action.property.agentscript",
|
|
1948
|
-
match: "^\\s{12}(description|target|inputs|outputs|parameters|returns|implementation|label|require_user_confirmation|include_in_progress_indicator|progress_indicator_message|is_required|is_user_input|developer_name|complex_data_type_name|is_used_by_planner|is_displayable)(?=:)"
|
|
1949
|
-
},
|
|
1950
2018
|
{
|
|
1951
2019
|
name: "storage.type.agentscript",
|
|
1952
2020
|
match: "\\b(string|number|boolean|object|date|timestamp|currency|id|list)\\b"
|
|
@@ -1958,16 +2026,29 @@ const agentscriptGrammar = {
|
|
|
1958
2026
|
},
|
|
1959
2027
|
"reasoning-actions": {
|
|
1960
2028
|
name: "meta.reasoning-actions.agentscript",
|
|
1961
|
-
begin: "^(\\s+)(
|
|
2029
|
+
begin: "^(\\s+)(actions):",
|
|
1962
2030
|
beginCaptures: {
|
|
1963
2031
|
"2": { name: "keyword.topic.section.agentscript" }
|
|
1964
2032
|
},
|
|
1965
|
-
end: "^(?=\\s
|
|
2033
|
+
end: "^(?=\\s+(instructions|before_reasoning|after_reasoning|label|system|override|actions)\\s?:)|^(?=topic\\b|config\\b|variables\\b|start_agent\\b|system\\b|language\\b|knowledge_action\\b|connection\\b)|^(?=\\s{2,4}(description\\s?:))",
|
|
1966
2034
|
patterns: [
|
|
1967
2035
|
{
|
|
1968
2036
|
name: "comment.line.agentscript",
|
|
1969
2037
|
match: "(^|[ \t]+)#.*$"
|
|
1970
2038
|
},
|
|
2039
|
+
{
|
|
2040
|
+
name: "keyword.reasoning.description.agentscript",
|
|
2041
|
+
match: "^\\s+(description)(?=\\s?:)"
|
|
2042
|
+
},
|
|
2043
|
+
{
|
|
2044
|
+
name: "meta.tool.declaration.agentscript",
|
|
2045
|
+
match: "^\\s+(([a-zA-Z_][a-zA-Z0-9_]*)):\\s*(@(actions|utils|topic|knowledge_action))",
|
|
2046
|
+
captures: {
|
|
2047
|
+
"2": { name: "entity.name.tool.agentscript" },
|
|
2048
|
+
"3": { name: "support.class.agentscript" },
|
|
2049
|
+
"4": { name: "support.class.agentscript" }
|
|
2050
|
+
}
|
|
2051
|
+
},
|
|
1971
2052
|
{ include: "#directives" },
|
|
1972
2053
|
{
|
|
1973
2054
|
name: "meta.utils.call.agentscript",
|
|
@@ -1980,7 +2061,7 @@ const agentscriptGrammar = {
|
|
|
1980
2061
|
},
|
|
1981
2062
|
{
|
|
1982
2063
|
name: "meta.variable.reference.agentscript",
|
|
1983
|
-
match: "(@)(
|
|
2064
|
+
match: "(@)(actions|topic|variables|outputs|inputs|knowledge_action)(\\.)([a-zA-Z_][a-zA-Z0-9_]*)",
|
|
1984
2065
|
captures: {
|
|
1985
2066
|
"1": { name: "support.class.agentscript" },
|
|
1986
2067
|
"2": { name: "support.class.agentscript" },
|
|
@@ -2000,18 +2081,10 @@ const agentscriptGrammar = {
|
|
|
2000
2081
|
name: "keyword.control.transition.reasoning.agentscript",
|
|
2001
2082
|
match: "\\s+to\\s+"
|
|
2002
2083
|
},
|
|
2003
|
-
{
|
|
2004
|
-
name: "keyword.reasoning.description.agentscript",
|
|
2005
|
-
match: "^\\s{12}(description)(?=:)"
|
|
2006
|
-
},
|
|
2007
2084
|
{
|
|
2008
2085
|
name: "keyword.control.agentscript",
|
|
2009
2086
|
match: "\\b(setVariables)\\b"
|
|
2010
2087
|
},
|
|
2011
|
-
{
|
|
2012
|
-
name: "entity.name.action.agentscript",
|
|
2013
|
-
match: "\\b[a-zA-Z_][a-zA-Z0-9_]*\\b"
|
|
2014
|
-
},
|
|
2015
2088
|
{ include: "#values" }
|
|
2016
2089
|
]
|
|
2017
2090
|
},
|
|
@@ -2035,11 +2108,11 @@ const agentscriptGrammar = {
|
|
|
2035
2108
|
},
|
|
2036
2109
|
{
|
|
2037
2110
|
name: "keyword.control.directive.agentscript",
|
|
2038
|
-
match: "\\b(run|set|if|else|after|with|and|or)\\b|\\btransition to\\b"
|
|
2111
|
+
match: "\\b(run|set|if|else|after|with|and|or|not)\\b|\\btransition to\\b|\\bdelegate to\\b"
|
|
2039
2112
|
},
|
|
2040
2113
|
{
|
|
2041
2114
|
name: "keyword.action-call.agentscript",
|
|
2042
|
-
match: "(@
|
|
2115
|
+
match: "(@actions)(\\.)",
|
|
2043
2116
|
captures: {
|
|
2044
2117
|
"1": { name: "support.class.agentscript" },
|
|
2045
2118
|
"2": { name: "punctuation.accessor.dot.agentscript" }
|
|
@@ -2047,7 +2120,7 @@ const agentscriptGrammar = {
|
|
|
2047
2120
|
},
|
|
2048
2121
|
{
|
|
2049
2122
|
name: "keyword.variable-set.agentscript",
|
|
2050
|
-
match: "(@
|
|
2123
|
+
match: "(@variables)(\\.)",
|
|
2051
2124
|
captures: {
|
|
2052
2125
|
"1": { name: "support.class.agentscript" },
|
|
2053
2126
|
"2": { name: "punctuation.accessor.dot.agentscript" }
|
|
@@ -2062,24 +2135,29 @@ const agentscriptGrammar = {
|
|
|
2062
2135
|
}
|
|
2063
2136
|
},
|
|
2064
2137
|
{
|
|
2065
|
-
name: "keyword.
|
|
2066
|
-
match: "(@
|
|
2138
|
+
name: "keyword.outputs-ref.agentscript",
|
|
2139
|
+
match: "(@outputs)(\\.)",
|
|
2067
2140
|
captures: {
|
|
2068
2141
|
"1": { name: "support.class.agentscript" },
|
|
2069
2142
|
"2": { name: "punctuation.accessor.dot.agentscript" }
|
|
2070
2143
|
}
|
|
2071
2144
|
},
|
|
2072
2145
|
{
|
|
2073
|
-
name: "keyword.
|
|
2074
|
-
match: "(@
|
|
2146
|
+
name: "keyword.inputs-ref.agentscript",
|
|
2147
|
+
match: "(@inputs)(\\.)",
|
|
2075
2148
|
captures: {
|
|
2076
2149
|
"1": { name: "support.class.agentscript" },
|
|
2077
2150
|
"2": { name: "punctuation.accessor.dot.agentscript" }
|
|
2078
2151
|
}
|
|
2079
2152
|
},
|
|
2153
|
+
{
|
|
2154
|
+
name: "keyword.knowledge-action-ref.agentscript",
|
|
2155
|
+
match: "(@knowledge_action)",
|
|
2156
|
+
captures: { "1": { name: "support.class.agentscript" } }
|
|
2157
|
+
},
|
|
2080
2158
|
{
|
|
2081
2159
|
name: "variable.other.member.agentscript",
|
|
2082
|
-
match: "(?<=@(?:
|
|
2160
|
+
match: "(?<=@(?:variables|topic|inputs|actions|outputs)\\.)\\b[a-zA-Z_][a-zA-Z0-9_]*\\b"
|
|
2083
2161
|
},
|
|
2084
2162
|
{ include: "#operators" },
|
|
2085
2163
|
{ include: "#values" }
|
|
@@ -2087,13 +2165,13 @@ const agentscriptGrammar = {
|
|
|
2087
2165
|
},
|
|
2088
2166
|
"template-expression": {
|
|
2089
2167
|
name: "meta.template.expression.agentscript",
|
|
2090
|
-
begin: "\\{
|
|
2168
|
+
begin: "\\{!",
|
|
2091
2169
|
beginCaptures: {
|
|
2092
2170
|
"0": {
|
|
2093
2171
|
name: "punctuation.definition.template.begin.agentscript"
|
|
2094
2172
|
}
|
|
2095
2173
|
},
|
|
2096
|
-
end: "\\}
|
|
2174
|
+
end: "\\}",
|
|
2097
2175
|
endCaptures: {
|
|
2098
2176
|
"0": { name: "punctuation.definition.template.end.agentscript" }
|
|
2099
2177
|
},
|
|
@@ -2130,15 +2208,15 @@ const agentscriptGrammar = {
|
|
|
2130
2208
|
},
|
|
2131
2209
|
{
|
|
2132
2210
|
name: "constant.language.expression.agentscript",
|
|
2133
|
-
match: "\\b(True|False)\\b"
|
|
2211
|
+
match: "\\b(True|False|None)\\b"
|
|
2134
2212
|
},
|
|
2135
2213
|
{
|
|
2136
2214
|
name: "keyword.operator.expression.agentscript",
|
|
2137
|
-
match: "\\b(and|or|if|else)\\b"
|
|
2215
|
+
match: "\\b(and|or|if|else|not)\\b"
|
|
2138
2216
|
},
|
|
2139
2217
|
{
|
|
2140
2218
|
name: "operator.comparison.expression.agentscript",
|
|
2141
|
-
match: "
|
|
2219
|
+
match: "==|!=|<=|>=|<|>|\\bis\\b|\\bis not\\b"
|
|
2142
2220
|
},
|
|
2143
2221
|
{
|
|
2144
2222
|
name: "operator.arithmetic.expression.agentscript",
|
package/LICENSE
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
Copyright (c) 2020, Salesforce.com, Inc.
|
|
2
|
-
All rights reserved.
|
|
3
|
-
|
|
4
|
-
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
5
|
-
|
|
6
|
-
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
7
|
-
|
|
8
|
-
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
9
|
-
|
|
10
|
-
* Neither the name of Salesforce.com nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
|
11
|
-
|
|
12
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|