xiaochuan's multiapp examples

This commit is contained in:
Jason Lee
2024-03-08 19:24:15 +08:00
parent 98a2302a07
commit 62fd8feebb
31 changed files with 1286 additions and 31 deletions

View File

@@ -53,17 +53,32 @@
"chrome"
],
"evaluator": {
"func": "is_expected_active_tab",
"result": {
"func": ["is_expected_active_tab", "is_expected_active_tab"],
"conj": "or",
"result": [
{
"type": "active_url_from_accessTree",
"goto_prefix": "https://www."
},
"expected": {
},
{
"type": "active_url_from_accessTree",
"goto_prefix": "https://www."
}
],
"expected": [
{
"type": "rule",
"rules": {
"type": "url",
"url": "https://www.drugs.com/npc/"
}
}
},
{
"type": "rule",
"rules": {
"type": "url",
"url": "https://www.drugs.com/npp/"
}
}]
}
}

View File

@@ -1,7 +1,7 @@
{
"id": "2ad9387a-65d8-4e33-ad5b-7580065a27ca",
"snapshot": "chrome",
"instruction": "Can you make a new folder for me on that bookmarks bar in my internet browser? Let's call it 'Favorites.'",
"instruction": "Can you make a new folder for me on the bookmarks bar in my internet browser? Let's call it 'Favorites.'",
"source": "https://www.youtube.com/watch?v=IN-Eq_UripQ",
"config": [
{

View File

@@ -43,19 +43,35 @@
"chrome"
],
"evaluator": {
"func": "exact_match",
"result": {
"func": ["exact_match", "exact_match"],
"conj": "or",
"result": [
{
"type": "url_dashPart",
"goto_prefix": "https://www.",
"partIndex": -1,
"needDeleteId": false,
"returnType": "string"
},
"expected": {
},
{
"type": "url_dashPart",
"goto_prefix": "https://www.",
"partIndex": -1,
"needDeleteId": false,
"returnType": "string"
}],
"expected": [
{
"type": "rule",
"rules": {
"expected": "tamiflu.html#side-effects"
}
}
},
{
"type": "rule",
"rules": {
"expected": "tamiflu-side-effects.html"
}
}]
}
}

View File

@@ -53,7 +53,7 @@
"rules": {
"expected": [
"AgeAppropriate:Kids",
"search=spider-man%20toys",
"search=spider[-%20]?man%20toys",
"S=4"
]
}