diff --git a/.gitattributes b/.gitattributes index e61839bd81b66a6d2d061197ba611219b541b2a0..89b5e88d6101156d5f61c91f1a4abf2384d35f85 100644 --- a/.gitattributes +++ b/.gitattributes @@ -53,3 +53,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text *.jpeg filter=lfs diff=lfs merge=lfs -text *.webp filter=lfs diff=lfs merge=lfs -text wikiHow:万事指南_2.9.6_apkcombo.com.apk filter=lfs diff=lfs merge=lfs -text +*.apk filter=lfs diff=lfs merge=lfs -text diff --git a/open-world-set-avd.tar.xz b/open-world-set-avd.tar.xz new file mode 100644 index 0000000000000000000000000000000000000000..29d6ffe48fd2982f6360499ee0ed45c2dd8c4ade --- /dev/null +++ b/open-world-set-avd.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7e6f4a9887da743837b398acda5e90d0c723da882b823ac1773a599159be20bb +size 1779325756 diff --git a/open-world-set/F-Droid.apk b/open-world-set/F-Droid.apk new file mode 100644 index 0000000000000000000000000000000000000000..2c0a34643f1d99f16dd94fcff4b79a2aa153e0d4 --- /dev/null +++ b/open-world-set/F-Droid.apk @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dc3bb88f6419ee7dde7d1547a41569aa03282fe00e0dc43ce035efd7c9d27d75 +size 10646430 diff --git a/open-world-set/Google Authenticator_6.0_apkcombo.com.apk b/open-world-set/Google Authenticator_6.0_apkcombo.com.apk new file mode 100644 index 0000000000000000000000000000000000000000..3cc2dd9444231ca30b6f345da4efac2dfeab1a80 --- /dev/null +++ b/open-world-set/Google Authenticator_6.0_apkcombo.com.apk @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7e043628b4ef10b0de9ca37007991f8fd6c6678bb193e7cfa7f68a1ae9686bba +size 16212034 diff --git a/open-world-set/Notepad, Notes, Easy Notebook_1.2.1.52_apkcombo.com.apk b/open-world-set/Notepad, Notes, Easy Notebook_1.2.1.52_apkcombo.com.apk new file mode 100644 index 0000000000000000000000000000000000000000..e82de5d4f79be66cc2d05e44959bf04b6bb1c9d1 --- /dev/null +++ b/open-world-set/Notepad, Notes, Easy Notebook_1.2.1.52_apkcombo.com.apk @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d8b3cb418440570ed4f7c648529dc4730c026cd479632750360eb341f3afa522 +size 11842662 diff --git a/open-world-set/Today Weather_2.2.2-4.300524_apkcombo.com.apk b/open-world-set/Today Weather_2.2.2-4.300524_apkcombo.com.apk new file mode 100644 index 0000000000000000000000000000000000000000..833c89a4030e5ddc94ed29ae0cbc0791b339b034 --- /dev/null +++ b/open-world-set/Today Weather_2.2.2-4.300524_apkcombo.com.apk @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7adcd9521d1e4b2b01f1feebaf7c198fd960cf2421f2976c80b2a7860803426f +size 26401463 diff --git a/open-world-set/View_my_order_history.textproto b/open-world-set/View_my_order_history.textproto new file mode 100644 index 0000000000000000000000000000000000000000..fabe7933191ec8db937f428c9c55a867dd6bddbd --- /dev/null +++ b/open-world-set/View_my_order_history.textproto @@ -0,0 +1,317 @@ +id: "View_my_order_history." +name: "Ele.me Order Food Task" +description: "A task to order food from a restaurant on Ele.me app. Includes selecting a restaurant, choosing food items, checking out, and submitting the order." +setup_steps: { + adb_call: { + rotate: { + orientation: PORTRAIT_0 + } + } +} + +reset_steps: { + adb_call: { + force_stop: { + package_name: "me.ele" + } + } +} + +reset_steps: { + success_condition: { + num_retries: 3 + wait_for_app_screen: { + app_screen: { + activity: "me.ele/me.ele.Launcher" + } + timeout_sec: 10.0 + } + } + adb_call: { + start_activity: { + full_activity: "me.ele/me.ele.Launcher" + } + } +} + +expected_app_screen: { + +} + +max_num_steps: 5000 + +event_sources: { + id: 1 + view_hierarchy_event: { + selector: '#"me.ele:id/home_bottom_tab_message_text"' + properties: { + property_name: "text" + pattern: "消息" + } + } +} +event_sources: { + id: 2 + view_hierarchy_event: { + selector: '#"me.ele:id/home_bottom_tab_3_text"' + properties: { + property_name: "text" + pattern: "购物车" + } + } +} +event_sources: { + id: 3 + view_hierarchy_event: { + selector: '#"me.ele:id/home_bottom_tab_4_text"' + properties: { + property_name: "text" + pattern: "我的" + } + } +} +event_sources: { + id: 4 + text_detect: { + expect: "消息" + rect: { + x0: 0.4 + y0: 0.9099 + x1: 0.6 + y1: 0.9344 + } + } +} +event_sources: { + id: 5 + text_detect: { + expect: "购物车" + rect: { + x0: 0.6 + y0: 0.9099 + x1: 0.8 + y1: 0.9344 + } + } +} +event_sources: { + id: 6 + text_detect: { + expect: "我的" + rect: { + x0: 0.8 + y0: 0.9099 + x1: 1.0 + y1: 0.9344 + } + } +} +event_sources: { + id: 7 + view_hierarchy_event: { + selector: '#"me.ele:id/id_magex_mistview" > .android.view.ViewGroup:nth-child(1) > .android.widget.TextView' + properties: { + property_name: "text" + pattern: "点餐" + } + } +} +event_sources: { + id: 10 + text_recognize: { + expect: "点餐" + rect: { + x0: 0.0306 + y0: 0.1944 + x1: 0.0981 + y1: 0.2667 + } + } +} + +event_sources: { + id: 8 + view_hierarchy_event: { + selector: '#"me.ele:id/id_magex_mistview" > .android.view.ViewGroup:nth-child(2) > .android.widget.TextView' + properties: { + property_name: "text" + pattern: "评价" + } + } +} +event_sources: { + id: 11 + text_recognize: { + expect: "评价" + rect: { + x0: 0.2083 + y0: 0.1944 + x1: 0.2833 + y1: 0.2667 + } + } +} + +event_sources: { + id: 9 + view_hierarchy_event: { + selector: '#"me.ele:id/id_magex_mistview" > .android.view.ViewGroup:nth-child(3) > .android.widget.TextView' + properties: { + property_name: "text" + pattern: "品牌" + } + } +} +event_sources: { + id: 12 + text_recognize: { + expect: "品牌" + rect: { + x0: 0.3907 + y0: 0.1944 + x1: 0.4639 + y1: 0.2667 + } + } +} +event_sources: { + id: 13 + view_hierarchy_event: { + selector: '#"me.ele:id/cart_food_count_view"' + properties: { + property_name: "content-desc" + pattern: "购物车,[0-9]+,件" + } + } +} +event_sources: { + id: 14 + text_recognize: { + expect: "提交订单" + rect: { + x0: 0.7282 + y0: 0.9372 + x1: 0.9709 + y1: 1.0 + } + } +} + +event_sources: { + id: 15 + view_hierarchy_event: { + selector: '#"me.ele:id/img_1"[content-desc="首页"]' + properties: { + property_name: "content-desc" + pattern: "首页" + } + } +} + + + +event_sources: { + id: 17 + view_hierarchy_event: { + selector: '#"me.ele:id/more_img"[content-desc="更多"]' + properties: { + property_name: "content-desc" + pattern: "更多" + } + } +} + + +event_slots: { + reward_listener: { + type: OR + events: { + event: { + type: OR + events: { + event: { + type: AND + events: [ + { id: 1 }, + { id: 2 }, + { id: 3 } + ] + transformation: "y = 1" + id: 100 + } + } + events: { + event: { + type: AND + events: [ + { id: 4 }, + { id: 5 }, + { id: 6 } + ] + transformation: "y = 1" + id: 101 + } + } + } + } + events: { + event: { + type: SINGLE + events: [ + { id: 15 } + ] + transformation: "y = 1" + id: 104 + } + } + events: { + event: { + type: SINGLE + events: [ + { id: 17 } + ] + transformation: "y = 1" + id: 105 + } + } + } + instruction_listener: { + type: OR + + events: { + event: { + type: OR + id: 302 + events: [ + { id: 101 }, + { id: 100 } + ] + transformation: "y = 'View my order history.'" + } + } + + + events: { + event: { + type: SINGLE + id: 304 + events: [ + { id: 104 } + ] + transformation: "y = 'View all of my order history.'" + } + } + } + episode_end_listener: { + type: SINGLE + events: { + id: 17 + } + transformation: "y = True" + } +} + + +command: "View my order history.If the app's start page asks you to select an address, please choose Shanghai Jiao Tong University; otherwise, no selection is needed." + +vocabulary: ["start", "navigate", "menu", "select", "items", "cart", "submit", "order"] diff --git a/open-world-set/View_my_shopping_cart.textproto b/open-world-set/View_my_shopping_cart.textproto new file mode 100644 index 0000000000000000000000000000000000000000..ff856d917dc7392bc224166529c3c4af646d6cb1 --- /dev/null +++ b/open-world-set/View_my_shopping_cart.textproto @@ -0,0 +1,311 @@ +id: "View_my_shopping_cart." +name: "Ele.me Order Food Task" +description: "A task to order food from a restaurant on Ele.me app. Includes selecting a restaurant, choosing food items, checking out, and submitting the order." +setup_steps: { + adb_call: { + rotate: { + orientation: PORTRAIT_0 + } + } +} + +reset_steps: { + adb_call: { + force_stop: { + package_name: "me.ele" + } + } +} + +reset_steps: { + success_condition: { + num_retries: 3 + wait_for_app_screen: { + app_screen: { + activity: "me.ele/me.ele.Launcher" + } + timeout_sec: 10.0 + } + } + adb_call: { + start_activity: { + full_activity: "me.ele/me.ele.Launcher" + } + } +} + +expected_app_screen: { + +} + +max_num_steps: 5000 + +event_sources: { + id: 1 + view_hierarchy_event: { + selector: '#"me.ele:id/home_bottom_tab_message_text"' + properties: { + property_name: "text" + pattern: "消息" + } + } +} +event_sources: { + id: 2 + view_hierarchy_event: { + selector: '#"me.ele:id/home_bottom_tab_3_text"' + properties: { + property_name: "text" + pattern: "购物车" + } + } +} +event_sources: { + id: 3 + view_hierarchy_event: { + selector: '#"me.ele:id/home_bottom_tab_4_text"' + properties: { + property_name: "text" + pattern: "我的" + } + } +} +event_sources: { + id: 4 + text_detect: { + expect: "消息" + rect: { + x0: 0.4 + y0: 0.9099 + x1: 0.6 + y1: 0.9344 + } + } +} +event_sources: { + id: 5 + text_detect: { + expect: "购物车" + rect: { + x0: 0.6 + y0: 0.9099 + x1: 0.8 + y1: 0.9344 + } + } +} +event_sources: { + id: 6 + text_detect: { + expect: "我的" + rect: { + x0: 0.8 + y0: 0.9099 + x1: 1.0 + y1: 0.9344 + } + } +} +event_sources: { + id: 7 + view_hierarchy_event: { + selector: '#"me.ele:id/id_magex_mistview" > .android.view.ViewGroup:nth-child(1) > .android.widget.TextView' + properties: { + property_name: "text" + pattern: "点餐" + } + } +} +event_sources: { + id: 10 + text_recognize: { + expect: "点餐" + rect: { + x0: 0.0306 + y0: 0.1944 + x1: 0.0981 + y1: 0.2667 + } + } +} + +event_sources: { + id: 8 + view_hierarchy_event: { + selector: '#"me.ele:id/id_magex_mistview" > .android.view.ViewGroup:nth-child(2) > .android.widget.TextView' + properties: { + property_name: "text" + pattern: "评价" + } + } +} +event_sources: { + id: 11 + text_recognize: { + expect: "评价" + rect: { + x0: 0.2083 + y0: 0.1944 + x1: 0.2833 + y1: 0.2667 + } + } +} + +event_sources: { + id: 9 + view_hierarchy_event: { + selector: '#"me.ele:id/id_magex_mistview" > .android.view.ViewGroup:nth-child(3) > .android.widget.TextView' + properties: { + property_name: "text" + pattern: "品牌" + } + } +} +event_sources: { + id: 12 + text_recognize: { + expect: "品牌" + rect: { + x0: 0.3907 + y0: 0.1944 + x1: 0.4639 + y1: 0.2667 + } + } +} +event_sources: { + id: 13 + view_hierarchy_event: { + selector: '#"me.ele:id/cart_food_count_view"' + properties: { + property_name: "content-desc" + pattern: "购物车,[0-9]+,件" + } + } +} +event_sources: { + id: 14 + text_recognize: { + expect: "提交订单" + rect: { + x0: 0.7282 + y0: 0.9372 + x1: 0.9709 + y1: 1.0 + } + } +} +event_sources: { + id: 15 + view_hierarchy_event: { + selector: '#"me.ele:id/title_txt"[text="购物车"]' + properties: { + property_name: "text" + pattern: "购物车" + } + } +} +event_sources: { + id: 16 + text_recognize: { + expect: "购物车" + rect: { + x0: 0.0 + y0: 0.0 + x1: 1.0 + y1: 0.1 + } + } +} + + + + + +event_slots: { + reward_listener: { + type: OR + events: { + event: { + type: OR + events: { + event: { + type: AND + events: [ + { id: 1 }, + { id: 2 }, + { id: 3 } + ] + transformation: "y = 1" + id: 100 + } + } + events: { + event: { + type: AND + events: [ + { id: 4 }, + { id: 5 }, + { id: 6 } + ] + transformation: "y = 1" + id: 101 + } + } + } + } + events: { + event: { + type: SINGLE + events: [ + { id: 15 } + ] + transformation: "y = 1" + id: 104 + } + } + } + instruction_listener: { + type: OR + + events: { + event: { + type: OR + id: 302 + events: [ + { id: 101 }, + { id: 100 } + ] + transformation: "y = 'View my shopping cart.'" + } + } + + + events: { + event: { + type: SINGLE + id: 304 + events: [ + { id: 104 } + ] + transformation: "y = '.'" + } + } + } + episode_end_listener: { + type: OR + events: { + id: 15 + } + events: { + id: 16 + } + transformation: "y = True" + } +} + + +command: "View my shopping cart.If the app's start page asks you to select an address, please choose Shanghai Jiao Tong University; otherwise, no selection is needed." + +vocabulary: ["start", "navigate", "menu", "select", "items", "cart", "submit", "order"] diff --git a/open-world-set/View_the_messages_page.textproto b/open-world-set/View_the_messages_page.textproto new file mode 100644 index 0000000000000000000000000000000000000000..3b92544da0206fad0d75a5d7ad83cceb63803e83 --- /dev/null +++ b/open-world-set/View_the_messages_page.textproto @@ -0,0 +1,320 @@ +id: "View_the_messages_page." +name: "Ele.me Order Food Task" +description: "A task to order food from a restaurant on Ele.me app. Includes selecting a restaurant, choosing food items, checking out, and submitting the order." +setup_steps: { + adb_call: { + install_apk: { + filesystem: { + path: "/home/sharryxr/饿了么_11.6.8_APKPure.apk" + } + } + } +} +setup_steps: { + adb_call: { + rotate: { + orientation: PORTRAIT_0 + } + } +} + +reset_steps: { + adb_call: { + force_stop: { + package_name: "me.ele" + } + } +} + +reset_steps: { + success_condition: { + num_retries: 3 + wait_for_app_screen: { + app_screen: { + activity: "me.ele/me.ele.Launcher" + } + timeout_sec: 10.0 + } + } + adb_call: { + start_activity: { + full_activity: "me.ele/me.ele.Launcher" + } + } +} + +expected_app_screen: { + +} + +max_num_steps: 5000 + +event_sources: { + id: 1 + view_hierarchy_event: { + selector: '#"me.ele:id/home_bottom_tab_message_text"' + properties: { + property_name: "text" + pattern: "消息" + } + } +} +event_sources: { + id: 2 + view_hierarchy_event: { + selector: '#"me.ele:id/home_bottom_tab_3_text"' + properties: { + property_name: "text" + pattern: "购物车" + } + } +} +event_sources: { + id: 3 + view_hierarchy_event: { + selector: '#"me.ele:id/home_bottom_tab_4_text"' + properties: { + property_name: "text" + pattern: "我的" + } + } +} +event_sources: { + id: 4 + text_detect: { + expect: "消息" + rect: { + x0: 0.4 + y0: 0.9099 + x1: 0.6 + y1: 0.9344 + } + } +} +event_sources: { + id: 5 + text_detect: { + expect: "购物车" + rect: { + x0: 0.6 + y0: 0.9099 + x1: 0.8 + y1: 0.9344 + } + } +} +event_sources: { + id: 6 + text_detect: { + expect: "我的" + rect: { + x0: 0.8 + y0: 0.9099 + x1: 1.0 + y1: 0.9344 + } + } +} +event_sources: { + id: 7 + view_hierarchy_event: { + selector: '#"me.ele:id/id_magex_mistview" > .android.view.ViewGroup:nth-child(1) > .android.widget.TextView' + properties: { + property_name: "text" + pattern: "点餐" + } + } +} +event_sources: { + id: 10 + text_recognize: { + expect: "点餐" + rect: { + x0: 0.0306 + y0: 0.1944 + x1: 0.0981 + y1: 0.2667 + } + } +} + +event_sources: { + id: 8 + view_hierarchy_event: { + selector: '#"me.ele:id/id_magex_mistview" > .android.view.ViewGroup:nth-child(2) > .android.widget.TextView' + properties: { + property_name: "text" + pattern: "评价" + } + } +} +event_sources: { + id: 11 + text_recognize: { + expect: "评价" + rect: { + x0: 0.2083 + y0: 0.1944 + x1: 0.2833 + y1: 0.2667 + } + } +} + +event_sources: { + id: 9 + view_hierarchy_event: { + selector: '#"me.ele:id/id_magex_mistview" > .android.view.ViewGroup:nth-child(3) > .android.widget.TextView' + properties: { + property_name: "text" + pattern: "品牌" + } + } +} +event_sources: { + id: 12 + text_recognize: { + expect: "品牌" + rect: { + x0: 0.3907 + y0: 0.1944 + x1: 0.4639 + y1: 0.2667 + } + } +} +event_sources: { + id: 13 + view_hierarchy_event: { + selector: '#"me.ele:id/cart_food_count_view"' + properties: { + property_name: "content-desc" + pattern: "购物车,[0-9]+,件" + } + } +} +event_sources: { + id: 14 + text_recognize: { + expect: "提交订单" + rect: { + x0: 0.7282 + y0: 0.9372 + x1: 0.9709 + y1: 1.0 + } + } +} +event_sources: { + id: 15 + view_hierarchy_event: { + selector: '#"me.ele:id/tv_title"[text="消息中心"]' + properties: { + property_name: "text" + pattern: "消息中心" + } + } +} +event_sources: { + id: 16 + text_recognize: { + expect: "消息中心" + rect: { + x0: 0.04 + y0: 0.04 + x1: 0.24 + y1: 0.1 + } + } +} + + + + + +event_slots: { + reward_listener: { + type: OR + events: { + event: { + type: OR + events: { + event: { + type: AND + events: [ + { id: 1 }, + { id: 2 }, + { id: 3 } + ] + transformation: "y = 1" + id: 100 + } + } + events: { + event: { + type: AND + events: [ + { id: 4 }, + { id: 5 }, + { id: 6 } + ] + transformation: "y = 1" + id: 101 + } + } + } + } + events: { + event: { + type: SINGLE + events: [ + { id: 15 } + ] + transformation: "y = 1" + id: 104 + } + } + } + instruction_listener: { + type: OR + + events: { + event: { + type: OR + id: 302 + events: [ + { id: 101 }, + { id: 100 } + ] + transformation: "y = 'Open the message page.'" + } + } + + + events: { + event: { + type: SINGLE + id: 304 + events: [ + { id: 104 } + ] + transformation: "y = '.'" + } + } + } + episode_end_listener: { + type: OR + events: { + id: 15 + } + events: { + id: 16 + } + transformation: "y = True" + } +} + + +command: "View the messages page.If the app's start page asks you to select an address, please choose Shanghai Jiao Tong University; otherwise, no selection is needed." + +vocabulary: ["start", "navigate", "menu", "select", "items", "cart", "submit", "order"] diff --git a/open-world-set/add_interstellar_into_watchlist.textproto b/open-world-set/add_interstellar_into_watchlist.textproto new file mode 100644 index 0000000000000000000000000000000000000000..a8ff48ae9aeba25fc0c6efb91c33fd6121e722fb --- /dev/null +++ b/open-world-set/add_interstellar_into_watchlist.textproto @@ -0,0 +1,142 @@ +id : "add_interstellar_into_watchlist" +name : "imdb interaction Task - add_interstellar_into_watchlist" +description: "A task that needs agent: first Search the interstellar then add it into the watchlist in the corresponding page" + + + +reset_steps: { + adb_call: { + force_stop: { + package_name: "com.imdb.mobile" + } + } +} + +reset_steps: { + success_condition: { + num_retries: 10 + wait_for_app_screen: { + app_screen: { + activity: "com.imdb.mobile/com.imdb.mobile.HomeActivity" + } + timeout_sec: 10.0 + } + } + adb_call: { + start_activity: { + full_activity: "com.imdb.mobile/com.imdb.mobile.HomeActivity" + } + } +} + +expected_app_screen: { + +} + +max_num_steps: 5000 + + +event_sources: { + view_hierarchy_event: { + selector: '.$"widget.EditText"#$"search_src_text"' + properties: { + property_name: "text" + pattern: "Search IMDb" + } + } + id: 1 + } + +event_sources: { + view_hierarchy_event: { + selector: '.$"TextView"#$"plot_overview"' + properties: { + property_name: "text" + pattern: "When Earth becomes uninhabitable in the future, a farmer and ex-NASA pilot, Joseph Cooper, is tasked to pilot a spacecraft, along with a team of researchers, to find a new planet for humans." + } + } + id: 2 + } + +event_sources: { + view_hierarchy_event: { + selector: '.$"TextView"#$"login_text"' + properties: { + property_name: "text" + pattern: "Please sign in to add this title to your Watchlist." + } + } + id: 3 + } + +event_slots: { + + reward_listener:{ + type:OR + events:{ + event:{ + type:OR + id:10 + events:{ + id:1 + } + events:{ + id:1 + } + transformation:"y=1" + } + } + events:{ + event:{ + type:OR + id:11 + events:{ + id:2 + } + events:{ + id:2 + } + transformation:"y=1" + } + + } + } + + + episode_end_listener: { + type: OR + id:12 + events: { + id: 3 + } + events: { + id: 3 + } + transformation: "y = True" + } + + instruction_listener: { + type: OR + events: { + event: { + events: { + id: 10 + } + transformation: "y = [\'Good Job, continue check this movie \']" + } + } + events: { + event: { + events: { + id: 11 + } + transformation: "y = [\'Well, help me add this movie in my watchlist\']" + } + } + } +} + +command: "Search the interstellar.(hint:four navigations nodes represent :home,search,videos,profile)" + + +vocabulary: ["interstellar"] \ No newline at end of file diff --git a/open-world-set/add_thumbup_to_videos.textproto b/open-world-set/add_thumbup_to_videos.textproto new file mode 100644 index 0000000000000000000000000000000000000000..60dd9e185f4338ce4e428e5a450ffdaca4ad3020 --- /dev/null +++ b/open-world-set/add_thumbup_to_videos.textproto @@ -0,0 +1,126 @@ +id : "add thumb up to the video" +name : "Imdb interact Task - add thumb up to the video" +description: "This task is to add thumb up to the video" + + + + +reset_steps: { + adb_call: { + force_stop: { + package_name: "com.imdb.mobile" + } + } +} + + + +reset_steps: { + success_condition: { + num_retries: 10 + wait_for_app_screen: { + app_screen: { + activity: "com.imdb.mobile/com.imdb.mobile.HomeActivity" + } + timeout_sec: 10.0 + } + } + adb_call: { + start_activity: { + full_activity: "com.imdb.mobile/com.imdb.mobile.HomeActivity" + } + } +} + +expected_app_screen: { + +} + +max_num_steps: 5000 + + +event_sources: { + view_hierarchy_event: { + selector: '.$"widget.ImageView"#$"volume_button"' + + } + id: 1 + } + +event_sources: { + view_hierarchy_event: { + selector: '.$"widget.TextView"#$"login_text"' + properties: { + property_name: "text" + pattern: "Please sign in to add an thumb up reaction." + } + } + id: 2 + } + + + +event_slots: { + + reward_listener:{ + type:OR + events:{ + event:{ + type:OR + id:10 + events:{ + id:1 + } + events:{ + id:1 + } + transformation:"y=1" + } + } + events:{ + event:{ + type:OR + id:11 + events:{ + id:2 + } + events:{ + id:2 + } + transformation:"y=1" + } + + } + } + + + episode_end_listener: { + type: OR + id:12 + events: { + id: 2 + } + events: { + id: 2 + } + transformation: "y = True" + } + + instruction_listener: { + type: OR + events: { + event: { + events: { + id: 10 + } + transformation: "y = [\'Good Job, add a thumb up to it\']" + } + } + + } +} + +command: "Navigate to the video part (hint: four navigations nodes represent :home,search,videos,profile)" + + +vocabulary: [] \ No newline at end of file diff --git a/open-world-set/airplane_mode_off.textproto b/open-world-set/airplane_mode_off.textproto new file mode 100644 index 0000000000000000000000000000000000000000..a12ca1e39688691334e123123f6f12b78466cb58 --- /dev/null +++ b/open-world-set/airplane_mode_off.textproto @@ -0,0 +1,57 @@ +id: "airplane_mode_off" +name: "Disable Airplane Mode" +description: "Disable Airplane Mode" + +setup_steps: { + adb_call: { rotate: { orientation: PORTRAIT_0 } } +} + +reset_steps: { + adb_call: { + shell_command: { + command: ["cmd", "connectivity", "airplane-mode", "enable"] + } + } +} +reset_steps: [ + { adb_call: { force_stop: { package_name: "com.android.settings" } } }, + { adb_call: { clear_cache: { package_name: "com.android.settings" } } }, + { + adb_call: { + start_activity: { + full_activity: "com.android.settings/com.android.settings.Settings" + } + } + success_condition: { + wait_for_app_screen: { + app_screen: { + activity: "com.android.settings/com.android.settings.Settings" + } + timeout_sec: 10.0 + } + num_retries: 3 + } + } +] + +max_num_steps: 500 + +event_sources: { + log_event: { + filters: "PhoneGlobals:I" + pattern: "Turning radio on" + } + id: 1 +} +event_slots: { + reward_listener: { + events: { id: 1 } + transformation: "y = 1." + } + episode_end_listener: { + events: { id: 1 } + transformation: "y = True" + } +} + +command: "Turn off airplane mode for my phone." diff --git a/open-world-set/airplane_mode_on.textproto b/open-world-set/airplane_mode_on.textproto new file mode 100644 index 0000000000000000000000000000000000000000..e2cc860ec48f796c0b71e1ca168bdd1192a3599e --- /dev/null +++ b/open-world-set/airplane_mode_on.textproto @@ -0,0 +1,57 @@ +id: "airplane_mode_on" +name: "Enable Airplane Mode" +description: "Enable Airplane Mode" + +setup_steps: { + adb_call: { rotate: { orientation: PORTRAIT_0 } } +} + +reset_steps: { + adb_call: { + shell_command: { + command: ["cmd", "connectivity", "airplane-mode", "disable"] + } + } +} +reset_steps: [ + { adb_call: { force_stop: { package_name: "com.android.settings" } } }, + { adb_call: { clear_cache: { package_name: "com.android.settings" } } }, + { + adb_call: { + start_activity: { + full_activity: "com.android.settings/com.android.settings.Settings" + } + } + success_condition: { + wait_for_app_screen: { + app_screen: { + activity: "com.android.settings/com.android.settings.Settings" + } + timeout_sec: 10.0 + } + num_retries: 3 + } + } +] + +max_num_steps: 500 + +event_sources: { + log_event: { + filters: "PhoneGlobals:I" + pattern: "Turning radio off" + } + id: 1 +} +event_slots: { + reward_listener: { + events: { id: 1 } + transformation: "y = 1." + } + episode_end_listener: { + events: { id: 1 } + transformation: "y = True" + } +} + +command: "Turn on airplane mode for my phone." diff --git a/open-world-set/android_version.textproto b/open-world-set/android_version.textproto new file mode 100644 index 0000000000000000000000000000000000000000..c1751b8855a2183cacbc4de624ce4fa28f30947f --- /dev/null +++ b/open-world-set/android_version.textproto @@ -0,0 +1,51 @@ +id: "android_version" +name: "Check Android Version" +description: "Check the current Android version." + +setup_steps: { + adb_call: { rotate: { orientation: PORTRAIT_0 } } +} + +reset_steps: [ + { adb_call: { force_stop: { package_name: "com.android.settings" } } }, + { adb_call: { clear_cache: { package_name: "com.android.settings" } } }, + { + adb_call: { + start_activity: { + full_activity: "com.android.settings/com.android.settings.Settings" + } + } + success_condition: { + wait_for_app_screen: { + app_screen: { + activity: "com.android.settings/com.android.settings.Settings" + } + timeout_sec: 10.0 + } + num_retries: 3 + } + } +] + +max_num_steps: 500 + +event_sources: { + response_event: { + mode: REGEX + pattern: "11(?:\\.0(?:\\.0)?)?|[Ee]leven" + } + id: 1 +} +event_slots: { + reward_listener: { + events: { id: 1 } + transformation: "y = 1." + } + episode_end_listener: { + events: { id: 1 } + transformation: "y = True" + } +} + +command: "Tell me the Android version of my phone." +vocabulary: ["11", "eleven"] diff --git a/open-world-set/bake_lobster_tails-7.textproto b/open-world-set/bake_lobster_tails-7.textproto new file mode 100644 index 0000000000000000000000000000000000000000..45836a56357a90e7d30147407205eee7b65cf7b8 --- /dev/null +++ b/open-world-set/bake_lobster_tails-7.textproto @@ -0,0 +1,269 @@ +id: "search_bake_lobster_tails-article_bake lobster tails-check_reference" +name: "WikiHow Search Task Primitive - Search bake_lobster_tails, Access How to Bake Lobster Tails, Check the Reference" +description: "A demo task primitive requiring to search WikiHow for a specific article.\nA demo task primitive requiring to access a specific article.\nA demo task asking to check the reference list." +setup_steps: { + adb_call: { + install_apk: { + filesystem: { + path: "../wikiHow:万事指南_2.9.6_apkcombo.com.apk" + } + } + } +} +setup_steps: { + adb_call: { + rotate: { + } + } +} +reset_steps: { + adb_call: { + force_stop: { + package_name: "com.wikihow.wikihowapp" + } + } +} +reset_steps: { + adb_call: { + clear_cache: { + package_name: "com.wikihow.wikihowapp" + } + } +} +reset_steps: { + success_condition: { + num_retries: 10 + wait_for_app_screen: { + app_screen: { + activity: "com.wikihow.wikihowapp/com.wikihow.wikihowapp.MainTabActivity" + } + timeout_sec: 10.0 + } + } + adb_call: { + start_activity: { + full_activity: "com.wikihow.wikihowapp/com.wikihow.wikihowapp.MainTabActivity" + } + } +} +max_num_steps: 500 +event_sources: { + text_recognize: { + expect: "\\b(bake|lobster|tails)\\b" + rect: { + x0: 0.2439 + y0: 0.0354 + x1: 0.9085 + y1: 0.1171 + } + } + id: 1 +} +event_sources: { + view_hierarchy_event: { + properties: { + property_name: "text" + pattern: "\\b(bake|lobster|tails)\\b" + } + properties: { + property_name: "clickable" + pattern: "true" + } + selector: "#$\"search_plate\">#$\"search_src_text\"" + } + id: 2 +} +event_sources: { + log_event: { + filters: "jd:D" + pattern: "\\bmUrl is: https://www\\.wikihow\\.com/wikiHowTo\\?search=.*(bake|lobster|tails).*" + } + id: 3 +} +event_sources: { + text_detect: { + expect: "How to Bake Lobster Tails" + rect: { + y0: 0.19 + x1: 1.0 + y1: 0.3 + } + } + id: 5 +} +event_sources: { + log_event: { + filters: "jd:D" + pattern: "\\bmUrl is: https://www\\.wikihow\\.com/Bake-Lobster-Tails" + } + id: 6 +} +event_sources: { + view_hierarchy_event: { + properties: { + property_name: "text" + pattern: "How to Bake Lobster Tails" + } + selector: ".\"android.view.View\"#\"section_0\" .$\"TextView\"" + } + id: 7 +} +event_sources: { + text_detect: { + expect: "References" + rect: { + x1: 0.33 + y1: 1.0 + } + } + id: 9 +} +event_sources: { + log_event: { + filters: "jd:D" + pattern: "\\burl is: https://www\\.wikihow\\.com/Bake-Lobster-Tails\\?wh_an=1&=1#References\\b" + } + id: 10 +} +event_slots: { + score_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + } + } + events: { + event: { + } + } + } + reward_listener: { + type: OR + events: { + event: { + type: OR + id: 4 + events: { + id: 1 + } + events: { + id: 2 + } + events: { + id: 3 + } + transformation: "y = 1" + repeatability: NONE + } + } + events: { + event: { + type: OR + id: 8 + events: { + id: 5 + } + events: { + id: 6 + } + events: { + id: 7 + } + transformation: "y = 1" + repeatability: NONE + } + } + events: { + event: { + type: OR + id: 11 + events: { + id: 9 + } + events: { + id: 10 + } + transformation: "y = 1" + repeatability: NONE + } + } + } + episode_end_listener: { + events: { + id: 11 + } + transformation: "y = True" + } + extra_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + } + } + events: { + event: { + } + } + } + json_extra_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + } + } + events: { + event: { + } + } + } + instruction_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + events: { + id: 4 + } + transformation: "y = [\'Access the article \"How to Bake Lobster Tails\"\']" + } + } + events: { + event: { + } + } + events: { + event: { + events: { + id: 8 + } + transformation: "y = [\'Check the reference list\']" + } + } + events: { + event: { + } + } + } +} +command: "Search an article to learn how to bake lobster tails." +command: "Then, access the article \"How to Bake Lobster Tails\"" +command: "Then, check the reference list" +vocabulary: "tails" +vocabulary: "bake" +vocabulary: "lobster" +vocabulary: "how to" diff --git a/open-world-set/check_Honhloumeng_topic.textproto b/open-world-set/check_Honhloumeng_topic.textproto new file mode 100644 index 0000000000000000000000000000000000000000..5ef3729e70c447af24079fcf71bd129ad21c3f18 --- /dev/null +++ b/open-world-set/check_Honhloumeng_topic.textproto @@ -0,0 +1,184 @@ +id:"check_Honhloumeng_topic" +name :"Douban Search Task - Hongloumeng popular topic" +description :"Search the first two topics about Hongloumeng in Douban" + + + + reset_steps: { + adb_call: { + force_stop: { + package_name: "com.douban.frodo" + } + } + } + + + + reset_steps: { + success_condition: { + num_retries: 10 + wait_for_app_screen: { + app_screen: { + activity: "com.douban.frodo/com.douban.frodo.activity.SplashActivity" + } + timeout_sec: 10.0 + } + } + adb_call: { + start_activity: { + full_activity: "com.douban.frodo/com.douban.frodo.activity.SplashActivity" + } + } + } + + + expected_app_screen: { + + } + + +max_num_steps: 5000 + + +event_sources: { + text_detect: { + expect: "取消" + rect: { + x0: 0.87 + y0: 0.048 + x1: 0.97 + y1: 0.085 + } + } + id: 1 +} + +event_sources: { + view_hierarchy_event: { + selector: '#$"com.douban.frodo:id/cancel".$"TextView"' + properties: { + property_name: "text" + pattern: "取消" + } + + } + id: 2 +} + +event_sources: { + text_detect: { + expect: "我读红楼梦" + rect: { + x0: 0 + y0: 0.15 + x1: 0.40 + y1: 0.25 + } + } + id: 3 + } + +event_sources:{ + response_event: + {mode:REGEX + pattern:"我读红楼梦"} + id:4 + +} +event_sources:{ + response_event: + {mode:REGEX + pattern:"《红楼梦》中的美食"} + id:5 + +} + + +event_slots:{ + reward_listener:{ + type:OR + events:{ + event:{ + type:OR + id:8 + events:{ + id:1 + } + events:{ + id:2 + } + transformation:"y=1" + } + } + events:{ + event:{ + type:OR + id:9 + events: + { + id:3 + } + transformation:"y=1" + } + } + events:{ + event:{ + type:OR + + id:10 + events: + { + id:4 + } + transformation:"y=1" + } + } + + + } + + + + episode_end_listener: { + prerequisite:10 + events: { + + id: 5 + } + transformation: "y = True" + } + instruction_listener:{ + type:OR + events:{ + event: + { + events:{id:8} + transformation:"y=[\'Now input provided message in pinyin(honglou) since chinese is not supported for current input, then click the corresponding one from search suggestions (Be careful, topics are not search suggestions)\']"} + } + events:{ + event: + { + events:{id:3} + transformation:"y=[\'Now return the first 2 topics about 红楼梦 in this page respectively!\']"} + } + events:{ + event: + { + events:{ + id:10 + } + transformation:"y=[\'Well done! Return the second one\']" + } + } + + } + + + } + + + +command: "Search the first two topics(话题) about Hongloumeng in Douban(Hint: 'search hint' node might be useful)" + + +vocabulary: ["Honglou"] diff --git a/open-world-set/check_alarm.textproto b/open-world-set/check_alarm.textproto new file mode 100644 index 0000000000000000000000000000000000000000..c2991bc3e55a1990ec018893b315041f7b646da1 --- /dev/null +++ b/open-world-set/check_alarm.textproto @@ -0,0 +1,74 @@ +id: "check_alarm" +name: "Check My Alarm" +description: "Check the alarm time according to the weekday" + +setup_steps: { + adb_call: { rotate: { orientation: PORTRAIT_0 } } +} + +reset_steps: [ + { adb_call: { force_stop: { package_name: "com.google.android.deskclock" } } }, + { + adb_call: { + start_activity: { + full_activity: "com.google.android.deskclock/com.android.deskclock.DeskClock" + } + } + success_condition: { + wait_for_app_screen: { + app_screen: { + activity: "com.google.android.deskclock/com.android.deskclock.DeskClock" + } + timeout_sec: 10.0 + } + num_retries: 3 + } + } +] + +event_sources: { + response_event: { + mode: REGEX + pattern: "\\b0?7:30\\b|\\bseven thirty\\b|\\b(?:thirty|30|half) past (?:seven|7)\\b" + } + id: 1 +} +event_sources: { + response_event: { + mode: REGEX + pattern: "\\b0?8:00\\b|\\beight (?:o'clock)\\b" + } + id: 2 +} + +event_slots: { + reward_listener: { + type: OR + id: 3 + events: { + event: { + events: { id: 1 } + transformation: [ + "import datetime", + "y = 1 if (datetime.datetime.today().weekday()+1)%7<5 else 0" + ] + } + } + events: { + event: { + events: { id: 2 } + transformation: [ + "import datetime", + "y = 1 if (datetime.datetime.today().weekday()+1)%7>=5 else 0" + ] + } + } + } + episode_end_listener: { + events: { id: 3 } + transformation: "y = x==1" + } +} + +command: "I have multiple alarms to wake me up in the morning." +command: "Please check my alarms and tell me when I should get up finally tomorrow morning." diff --git a/open-world-set/check_in.textproto b/open-world-set/check_in.textproto new file mode 100644 index 0000000000000000000000000000000000000000..e7f5b4d9f534b8e12a29781d9c7f891d2b2c11d8 --- /dev/null +++ b/open-world-set/check_in.textproto @@ -0,0 +1,34 @@ +id: "check_in_app" +name: "Check in in Qidian App" +description: "Everyday check-in in Qidian app." + +setup_steps: { + adb_call: { rotate: { orientation: PORTRAIT_0 } } +} + +reset_steps: [ + { adb_call: { force_stop: { package_name: "com.qidian.QDReader.g" } } }, + { adb_call: { press_button: { button: HOME } } } +] + +max_num_steps: 500 + +event_sources: { + log_event: { + filters: "ActivityTaskManager:*" + pattern: "START u0 \\{cmp=com\\.qidian\\.QDReader\\.g/com\\.qidian\\.QDReader\\.webview\\.QDBrowserActivity \\(has extras\\)\\}" + } + id: 1 +} +event_slots: { + reward_listener: { + events: { id: 1 } + transformation: "y = 1" + } + episode_end_listener: { + events: { id: 1 } + transformation: "y = True" + } +} + +command: "Help me to check-in in Qidian app." diff --git a/open-world-set/com.beemdevelopment.aegis_62.apk b/open-world-set/com.beemdevelopment.aegis_62.apk new file mode 100644 index 0000000000000000000000000000000000000000..0b0c139b815046ae7cf64a88aaad8bd0ae3f19b3 --- /dev/null +++ b/open-world-set/com.beemdevelopment.aegis_62.apk @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9312e5b3474087d5cf6fa81b929475cfd876caa5a993b36ce382d06eee733c8e +size 5762135 diff --git a/open-world-set/com.igisw.openmoneybox_55.apk b/open-world-set/com.igisw.openmoneybox_55.apk new file mode 100644 index 0000000000000000000000000000000000000000..217880356ba7f387e3b32cc56b03990b13afaa39 --- /dev/null +++ b/open-world-set/com.igisw.openmoneybox_55.apk @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d29503de89a6d65363954e790e8a6d01bc7b3d4df0040b683963d80194a42238 +size 12710192 diff --git a/open-world-set/deal_with_little_sisters-6.textproto b/open-world-set/deal_with_little_sisters-6.textproto new file mode 100644 index 0000000000000000000000000000000000000000..5c6f1cae775013bcf8eba0a29cbb7cbbcb70df88 --- /dev/null +++ b/open-world-set/deal_with_little_sisters-6.textproto @@ -0,0 +1,298 @@ +id: "search_deal_with_little_sisters-article_deal with little sisters-category_page_education and communications" +name: "WikiHow Search Task Primitive - Search deal_with_little_sisters, Access How to Deal With Little Sisters, Access the page of category Education and Communications" +description: "A demo task primitive requiring to search WikiHow for a specific article.\nA demo task primitive requiring to access a specific article.\nA demo task asking to access the category page." +setup_steps: { + adb_call: { + install_apk: { + filesystem: { + path: "../wikiHow:万事指南_2.9.6_apkcombo.com.apk" + } + } + } +} +setup_steps: { + adb_call: { + rotate: { + } + } +} +reset_steps: { + adb_call: { + force_stop: { + package_name: "com.wikihow.wikihowapp" + } + } +} +reset_steps: { + adb_call: { + clear_cache: { + package_name: "com.wikihow.wikihowapp" + } + } +} +reset_steps: { + success_condition: { + num_retries: 10 + wait_for_app_screen: { + app_screen: { + activity: "com.wikihow.wikihowapp/com.wikihow.wikihowapp.MainTabActivity" + } + timeout_sec: 10.0 + } + } + adb_call: { + start_activity: { + full_activity: "com.wikihow.wikihowapp/com.wikihow.wikihowapp.MainTabActivity" + } + } +} +max_num_steps: 500 +event_sources: { + text_recognize: { + expect: "\\b(deal|little|sisters)\\b" + rect: { + x0: 0.2439 + y0: 0.0354 + x1: 0.9085 + y1: 0.1171 + } + } + id: 1 +} +event_sources: { + view_hierarchy_event: { + properties: { + property_name: "text" + pattern: "\\b(deal|little|sisters)\\b" + } + properties: { + property_name: "clickable" + pattern: "true" + } + selector: "#$\"search_plate\">#$\"search_src_text\"" + } + id: 2 +} +event_sources: { + log_event: { + filters: "jd:D" + pattern: "\\bmUrl is: https://www\\.wikihow\\.com/wikiHowTo\\?search=.*(deal|little|sisters).*" + } + id: 3 +} +event_sources: { + text_detect: { + expect: "How to Deal With Little Sisters" + rect: { + y0: 0.19 + x1: 1.0 + y1: 0.3 + } + } + id: 5 +} +event_sources: { + log_event: { + filters: "jd:D" + pattern: "\\bmUrl is: https://www\\.wikihow\\.com/Deal-With-Little-Sisters" + } + id: 6 +} +event_sources: { + view_hierarchy_event: { + properties: { + property_name: "text" + pattern: "How to Deal With Little Sisters" + } + selector: ".\"android.view.View\"#\"section_0\" .$\"TextView\"" + } + id: 7 +} +event_sources: { + text_detect: { + expect: "Education and Communications" + rect: { + x0: 0.11 + y0: 0.19 + x1: 1.0 + y1: 0.2 + } + } + id: 9 +} +event_sources: { + text_detect: { + expect: "Education and Communications" + rect: { + y0: 0.165 + x1: 1.0 + y1: 0.568 + } + } + id: 10 +} +event_sources: { + log_event: { + filters: "jd:D" + pattern: "\\bmUrl is: https://www\\.wikihow\\.com/Category:Education-and-Communications" + } + id: 11 +} +event_sources: { + view_hierarchy_event: { + properties: { + property_name: "text" + pattern: "Education and Communications" + } + selector: ".$\"View\"#\"cat_navigation\">.\"android.view.View\"" + } + id: 12 +} +event_slots: { + score_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + } + } + events: { + event: { + } + } + } + reward_listener: { + type: OR + events: { + event: { + type: OR + id: 4 + events: { + id: 1 + } + events: { + id: 2 + } + events: { + id: 3 + } + transformation: "y = 1" + repeatability: NONE + } + } + events: { + event: { + type: OR + id: 8 + events: { + id: 5 + } + events: { + id: 6 + } + events: { + id: 7 + } + transformation: "y = 1" + repeatability: NONE + } + } + events: { + event: { + type: OR + id: 13 + events: { + id: 9 + } + events: { + id: 10 + } + events: { + id: 11 + } + events: { + id: 12 + } + transformation: "y = 1" + repeatability: NONE + } + } + } + episode_end_listener: { + events: { + id: 13 + } + transformation: "y = True" + } + extra_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + } + } + events: { + event: { + } + } + } + json_extra_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + } + } + events: { + event: { + } + } + } + instruction_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + events: { + id: 4 + } + transformation: "y = [\'Access the article \"How to Deal With Little Sisters\"\']" + } + } + events: { + event: { + } + } + events: { + event: { + events: { + id: 8 + } + transformation: "y = [\'Access the page of category Education and Communications\']" + } + } + events: { + event: { + } + } + } +} +command: "Search an article to learn how to deal with little sisters." +command: "Then, access the article \"How to Deal With Little Sisters\"" +command: "Then, access the page of category Education and Communications" +vocabulary: "deal" +vocabulary: "how to" +vocabulary: "sisters" +vocabulary: "little" diff --git a/open-world-set/determine_shipping_costs-8.textproto b/open-world-set/determine_shipping_costs-8.textproto new file mode 100644 index 0000000000000000000000000000000000000000..94055273863acfddf105d7b639c38c9f13650a3a --- /dev/null +++ b/open-world-set/determine_shipping_costs-8.textproto @@ -0,0 +1,213 @@ +id: "search_determine_shipping_costs-article_determine shipping costs" +name: "WikiHow Search Task Primitive - Search determine_shipping_costs, Access How to Determine Shipping Costs" +description: "A demo task primitive requiring to search WikiHow for a specific article.\nA demo task primitive requiring to access a specific article." +setup_steps: { + adb_call: { + install_apk: { + filesystem: { + path: "../wikiHow:万事指南_2.9.6_apkcombo.com.apk" + } + } + } +} +setup_steps: { + adb_call: { + rotate: { + } + } +} +reset_steps: { + adb_call: { + force_stop: { + package_name: "com.wikihow.wikihowapp" + } + } +} +reset_steps: { + adb_call: { + clear_cache: { + package_name: "com.wikihow.wikihowapp" + } + } +} +reset_steps: { + success_condition: { + num_retries: 10 + wait_for_app_screen: { + app_screen: { + activity: "com.wikihow.wikihowapp/com.wikihow.wikihowapp.MainTabActivity" + } + timeout_sec: 10.0 + } + } + adb_call: { + start_activity: { + full_activity: "com.wikihow.wikihowapp/com.wikihow.wikihowapp.MainTabActivity" + } + } +} +max_num_steps: 500 +event_sources: { + text_recognize: { + expect: "\\b(determine|shipping|costs)\\b" + rect: { + x0: 0.2439 + y0: 0.0354 + x1: 0.9085 + y1: 0.1171 + } + } + id: 1 +} +event_sources: { + view_hierarchy_event: { + properties: { + property_name: "text" + pattern: "\\b(determine|shipping|costs)\\b" + } + properties: { + property_name: "clickable" + pattern: "true" + } + selector: "#$\"search_plate\">#$\"search_src_text\"" + } + id: 2 +} +event_sources: { + log_event: { + filters: "jd:D" + pattern: "\\bmUrl is: https://www\\.wikihow\\.com/wikiHowTo\\?search=.*(determine|shipping|costs).*" + } + id: 3 +} +event_sources: { + text_detect: { + expect: "How to Determine Shipping Costs" + rect: { + y0: 0.19 + x1: 1.0 + y1: 0.3 + } + } + id: 5 +} +event_sources: { + log_event: { + filters: "jd:D" + pattern: "\\bmUrl is: https://www\\.wikihow\\.com/Determine-Shipping-Costs" + } + id: 6 +} +event_sources: { + view_hierarchy_event: { + properties: { + property_name: "text" + pattern: "How to Determine Shipping Costs" + } + selector: ".\"android.view.View\"#\"section_0\" .$\"TextView\"" + } + id: 7 +} +event_slots: { + score_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + } + } + } + reward_listener: { + type: OR + events: { + event: { + type: OR + id: 4 + events: { + id: 1 + } + events: { + id: 2 + } + events: { + id: 3 + } + transformation: "y = 1" + repeatability: NONE + } + } + events: { + event: { + type: OR + id: 8 + events: { + id: 5 + } + events: { + id: 6 + } + events: { + id: 7 + } + transformation: "y = 1" + repeatability: NONE + } + } + } + episode_end_listener: { + events: { + id: 8 + } + transformation: "y = True" + } + extra_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + } + } + } + json_extra_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + } + } + } + instruction_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + events: { + id: 4 + } + transformation: "y = [\'Access the article \"How to Determine Shipping Costs\"\']" + } + } + events: { + event: { + } + } + } +} +command: "Search an article to learn how to determine shipping costs." +command: "Then, access the article \"How to Determine Shipping Costs\"" +vocabulary: "shipping" +vocabulary: "determine" +vocabulary: "how to" +vocabulary: "costs" diff --git a/open-world-set/do_not_disturb.textproto b/open-world-set/do_not_disturb.textproto new file mode 100644 index 0000000000000000000000000000000000000000..3afc7c576c2c3e6beaa35657371ca0dbb2fc7e6f --- /dev/null +++ b/open-world-set/do_not_disturb.textproto @@ -0,0 +1,141 @@ +id: "do_not_disturb" +name: "Do Not Disturb Mode" +description: "Enter Do Not Disturb Mode" + +setup_steps: { + adb_call: { rotate: { orientation: PORTRAIT_0 } } +} + +reset_steps: { + adb_call: { + shell_command: { + command: ["cmd", "notification", "set_dnd", "off"] + } + } +} +reset_steps: [ + { adb_call: { force_stop: { package_name: "com.android.settings" } } }, + { adb_call: { clear_cache: { package_name: "com.android.settings" } } }, + { + adb_call: { + start_activity: { + full_activity: "com.android.settings/com.android.settings.Settings" + } + } + success_condition: { + wait_for_app_screen: { + app_screen: { + activity: "com.android.settings/com.android.settings.Settings" + } + timeout_sec: 10.0 + } + num_retries: 3 + } + } +] + +max_num_steps: 500 + +event_sources: { + text_detect: { + expect: "\\bTurn off now\\b" + rect: { + x0: 0.1481 + x1: 0.8703 + y0: 0.1354 + y1: 0.1719 + } + } + id: 1 + repeatability: LAST +} +event_sources: { + text_detect: { + expect: "\\bDo Not Disturb\\b" + rect: { + x0: 0.1667 + x1: 0.5 + y0: 0.0469 + y1: 0.0938 + } + } + id: 2 + repeatability: UNLIMITED +} +event_sources: { + view_hierarchy_event: { + selector: '#$"zen_mode_settings_turn_off_button"[text="Turn off now"]' + } + id: 3 +} +event_sources: { + view_hierarchy_event: { + selector: '[text="Do Not Disturb"].$"TextView"' + properties: { + property_name: "bottom" + sign: GE + integer: 200 + } + } + id: 4 +} +event_sources: { + view_hierarchy_event: { + selector: '."android.widget.Switch"[content-desc^="Do Not Disturb"]' + properties: { + property_name: "text" + pattern: "On" + } + properties: { + property_name: "checked" + pattern: "true" + } + } + id: 5 +} +event_sources: { + log_event: { + filters: "vol.Events:I" + pattern: "\\bzen_mode_changed (important_interruptions|no_interruptions|alarms)\\b" + } + id: 6 +} + +event_slots: { + reward_listener: { + type: OR + id: 10 + events: { + event: { + type: AND + events: [ + { id: 1 }, + { id: 2 } + ] + transformation: "y = 1." + } + } + events: { + event: { + type: AND + events: [ + { id: 3 }, + { id: 4 } + ] + transformation: "y = 1." + } + } + events: [ + { id: 5 }, + { id: 6 } + ] + transformation: "y = 1." + repeatability: NONE + } + episode_end_listener: { + events: { id: 10 } + transformation: "y = True" + } +} + +command: "Help me to open the \"Do Not Disturb\" mode for my phone." diff --git a/open-world-set/dynamic_switch_clock.textproto b/open-world-set/dynamic_switch_clock.textproto new file mode 100644 index 0000000000000000000000000000000000000000..e6ec3dd5639c631f99b0486b799d42bb9cf8b2cb --- /dev/null +++ b/open-world-set/dynamic_switch_clock.textproto @@ -0,0 +1,124 @@ +id: "dynamic_switch_alarm" +name: "Dynamically switch the alarm" +description: "Switch the alarm according to the weather" + +setup_steps: { + adb_call: { rotate: { orientation: PORTRAIT_0 } } +} + +reset_steps: [ + { adb_call: { force_stop: { package_name: "com.google.android.deskclock" } } }, + { adb_call: { force_stop: { package_name: "mobi.lockdown.weather" } } }, + { adb_call: { press_button: { button: HOME } } }, + { + adb_call: { + start_activity: { + full_activity: "mobi.lockdown.weather/mobi.lockdown.weather.activity.SplashActivity" + } + } + success_condition: { + wait_for_app_screen: { + app_screen: { + activity: "mobi.lockdown.weather/mobi.lockdown.weather.activity.SplashActivity" + } + timeout_sec: 10.0 + } + num_retries: 3 + } + } +] + +event_sources: { + view_hierarchy_event: { + selector: '#"mobi.lockdown.weather:id/day1" #$"tvPop"' + properties: { + property_name: "text" + pattern: "[1-6]?\\d%" + } + } + id: 1 +} +event_sources: { + view_hierarchy_event: { + selector: '#"mobi.lockdown.weather:id/day1" #$"tvPop"' + properties: { + property_name: "text" + pattern: "(?:[7-9]?\\d|100)%" + } + } + id: 2 +} +event_sources: { + view_hierarchy_event: { + selector: '#"com.google.android.deskclock:id/digital_clock"[text="8:00\xe2\x80\x8aAM"]+#$"onoff".$"Switch"' + properties: { + property_name: "text" + pattern: "ON" + } + properties: { + property_name: "checked" + pattern: "true" + } + } + id: 3 +} +event_sources: { + view_hierarchy_event: { + selector: '#"com.google.android.deskclock:id/digital_clock"[text="8:00\xe2\x80\x8aAM"]+#$"onoff".$"Switch"' + properties: { + property_name: "text" + pattern: "OFF" + } + properties: { + property_name: "checked" + pattern: "false" + } + } + id: 4 +} + +event_slots: { + reward_listener: { + type: OR + events: { + event: { + id: 5 + events: { id: 1 } + transformation: "y = 0" + } + } + events: { + event: { + id: 6 + events: { id: 2 } + transformation: "y = 0" + } + } + events: { + event: { + id: 7 + events: { id: 3 } + prerequisite: 5 + transformation: "y = 1" + } + } + events: { + event: { + id: 8 + events: { id: 4 } + prerequisite: 6 + transformation: "y = 1" + } + } + } + episode_end_listener: { + type: OR + events: [ + { id: 7 }, + { id: 8 } + ] + transformation: "y = True" + } +} + +command: "Turn off my alarm in the morning if it will rain tomorrow, otherwise leave it on." diff --git a/open-world-set/elemo_address.textproto b/open-world-set/elemo_address.textproto new file mode 100644 index 0000000000000000000000000000000000000000..27c312e08b12e7356bb44c6f9798c928fd424b1d --- /dev/null +++ b/open-world-set/elemo_address.textproto @@ -0,0 +1,310 @@ +id: "Open_the_address_table." +name: "Ele.me Order Food Task" +description: "A task to order food from a restaurant on Ele.me app. Includes selecting a restaurant, choosing food items, checking out, and submitting the order." +setup_steps: { + adb_call: { + rotate: { + orientation: PORTRAIT_0 + } + } +} + +reset_steps: { + adb_call: { + force_stop: { + package_name: "me.ele" + } + } +} + +reset_steps: { + success_condition: { + num_retries: 3 + wait_for_app_screen: { + app_screen: { + activity: "me.ele/me.ele.Launcher" + } + timeout_sec: 10.0 + } + } + adb_call: { + start_activity: { + full_activity: "me.ele/me.ele.Launcher" + } + } +} + +expected_app_screen: { + +} + +max_num_steps: 5000 + +event_sources: { + id: 1 + view_hierarchy_event: { + selector: '#"me.ele:id/home_bottom_tab_message_text"' + properties: { + property_name: "text" + pattern: "消息" + } + } +} +event_sources: { + id: 2 + view_hierarchy_event: { + selector: '#"me.ele:id/home_bottom_tab_3_text"' + properties: { + property_name: "text" + pattern: "购物车" + } + } +} +event_sources: { + id: 3 + view_hierarchy_event: { + selector: '#"me.ele:id/home_bottom_tab_4_text"' + properties: { + property_name: "text" + pattern: "我的" + } + } +} +event_sources: { + id: 4 + text_detect: { + expect: "消息" + rect: { + x0: 0.4 + y0: 0.9099 + x1: 0.6 + y1: 0.9344 + } + } +} +event_sources: { + id: 5 + text_detect: { + expect: "购物车" + rect: { + x0: 0.6 + y0: 0.9099 + x1: 0.8 + y1: 0.9344 + } + } +} +event_sources: { + id: 6 + text_detect: { + expect: "我的" + rect: { + x0: 0.8 + y0: 0.9099 + x1: 1.0 + y1: 0.9344 + } + } +} +event_sources: { + id: 7 + view_hierarchy_event: { + selector: '#"me.ele:id/id_magex_mistview" > .android.view.ViewGroup:nth-child(1) > .android.widget.TextView' + properties: { + property_name: "text" + pattern: "点餐" + } + } +} +event_sources: { + id: 10 + text_recognize: { + expect: "点餐" + rect: { + x0: 0.0306 + y0: 0.1944 + x1: 0.0981 + y1: 0.2667 + } + } +} + +event_sources: { + id: 8 + view_hierarchy_event: { + selector: '#"me.ele:id/id_magex_mistview" > .android.view.ViewGroup:nth-child(2) > .android.widget.TextView' + properties: { + property_name: "text" + pattern: "评价" + } + } +} +event_sources: { + id: 11 + text_recognize: { + expect: "评价" + rect: { + x0: 0.2083 + y0: 0.1944 + x1: 0.2833 + y1: 0.2667 + } + } +} + +event_sources: { + id: 9 + view_hierarchy_event: { + selector: '#"me.ele:id/id_magex_mistview" > .android.view.ViewGroup:nth-child(3) > .android.widget.TextView' + properties: { + property_name: "text" + pattern: "品牌" + } + } +} +event_sources: { + id: 12 + text_recognize: { + expect: "品牌" + rect: { + x0: 0.3907 + y0: 0.1944 + x1: 0.4639 + y1: 0.2667 + } + } +} +event_sources: { + id: 13 + view_hierarchy_event: { + selector: '#"me.ele:id/cart_food_count_view"' + properties: { + property_name: "content-desc" + pattern: "购物车,[0-9]+,件" + } + } +} +event_sources: { + id: 14 + text_recognize: { + expect: "提交订单" + rect: { + x0: 0.7282 + y0: 0.9372 + x1: 0.9709 + y1: 1.0 + } + } +} +event_sources: { + id: 34 + view_hierarchy_event: { + selector: '#"me.ele:id/tv_title"[text="选择收货地址"]' + properties: { + property_name: "text" + pattern: "选择收货地址" + } + } +} +event_sources: { + id: 35 + text_recognize: { + expect: "选择收货地址" + rect: { + x0: 0.37 + y0: 0.09 + x1: 0.63 + y1: 0.15 + } + } +} + + + + +event_slots: { + reward_listener: { + type: OR + events: { + event: { + type: OR + events: { + event: { + type: AND + events: [ + { id: 1 }, + { id: 2 }, + { id: 3 } + ] + transformation: "y = 1" + id: 100 + } + } + events: { + event: { + type: AND + events: [ + { id: 4 }, + { id: 5 }, + { id: 6 } + ] + transformation: "y = 1" + id: 101 + } + } + } + } + events: { + event: { + type: SINGLE + events: [ + { id: 34 } + ] + transformation: "y = 1" + id: 104 + } + } + } + instruction_listener: { + type: OR + + events: { + event: { + type: OR + id: 302 + events: [ + { id: 101 }, + { id: 100 } + ] + transformation: "y = 'Open the address table.'" + } + } + + + events: { + event: { + type: SINGLE + id: 304 + events: [ + { id: 104 } + ] + transformation: "y = 'Select an address.'" + } + } + } + episode_end_listener: { + type: OR + events: { + id: 34 + } + events: { + id: 35 + } + transformation: "y = True" + } +} + + +command: "Open the address table.If the app's start page asks you to select an address, please choose Shanghai Jiao Tong University; otherwise, no selection is needed." + +vocabulary: ["start", "navigate", "menu", "select", "items", "cart", "submit", "order"] diff --git a/open-world-set/elemo_order_food1.textproto b/open-world-set/elemo_order_food1.textproto new file mode 100644 index 0000000000000000000000000000000000000000..ff9a7ce3b5b8fc23ff9eeb48862219d088cf4721 --- /dev/null +++ b/open-world-set/elemo_order_food1.textproto @@ -0,0 +1,382 @@ +id: "elemo_order_food1" +name: "Ele.me Order Food Task" +description: "A task to order food from a restaurant on Ele.me app. Includes selecting a restaurant, choosing food items, checking out, and submitting the order." +setup_steps: { + adb_call: { + rotate: { + orientation: PORTRAIT_0 + } + } +} + +reset_steps: { + adb_call: { + force_stop: { + package_name: "me.ele" + } + } +} + +reset_steps: { + success_condition: { + num_retries: 3 + wait_for_app_screen: { + app_screen: { + activity: "me.ele/me.ele.Launcher" + } + timeout_sec: 10.0 + } + } + adb_call: { + start_activity: { + full_activity: "me.ele/me.ele.Launcher" + } + } +} + +expected_app_screen: { + +} + +max_num_steps: 5000 + +event_sources: { + id: 1 + view_hierarchy_event: { + selector: '#"me.ele:id/home_bottom_tab_message_text"' + properties: { + property_name: "text" + pattern: "消息" + } + } +} +event_sources: { + id: 2 + view_hierarchy_event: { + selector: '#"me.ele:id/home_bottom_tab_3_text"' + properties: { + property_name: "text" + pattern: "购物车" + } + } +} +event_sources: { + id: 3 + view_hierarchy_event: { + selector: '#"me.ele:id/home_bottom_tab_4_text"' + properties: { + property_name: "text" + pattern: "我的" + } + } +} +event_sources: { + id: 4 + text_detect: { + expect: "消息" + rect: { + x0: 0.4 + y0: 0.9099 + x1: 0.6 + y1: 0.9344 + } + } +} +event_sources: { + id: 5 + text_detect: { + expect: "购物车" + rect: { + x0: 0.6 + y0: 0.9099 + x1: 0.8 + y1: 0.9344 + } + } +} +event_sources: { + id: 6 + text_detect: { + expect: "我的" + rect: { + x0: 0.8 + y0: 0.9099 + x1: 1.0 + y1: 0.9344 + } + } +} +event_sources: { + id: 7 + view_hierarchy_event: { + selector: '#"me.ele:id/id_magex_mistview" > .android.view.ViewGroup:nth-child(1) > .android.widget.TextView' + properties: { + property_name: "text" + pattern: "点餐" + } + } +} +event_sources: { + id: 10 + text_recognize: { + expect: "点餐" + rect: { + x0: 0.0306 + y0: 0.1203 + x1: 0.0981 + y1: 0.1490 + } + } +} + +event_sources: { + id: 8 + view_hierarchy_event: { + selector: '#"me.ele:id/id_magex_mistview" > .android.view.ViewGroup:nth-child(2) > .android.widget.TextView' + properties: { + property_name: "text" + pattern: "评价" + } + } +} +event_sources: { + id: 11 + text_recognize: { + expect: "评价" + rect: { + x0: 0.2101 + y0: 0.1203 + x1: 0.2833 + y1: 0.1490 + } + } +} + +event_sources: { + id: 9 + view_hierarchy_event: { + selector: '#"me.ele:id/id_magex_mistview" > .android.view.ViewGroup:nth-child(3) > .android.widget.TextView' + properties: { + property_name: "text" + pattern: "品牌" + } + } +} +event_sources: { + id: 12 + text_recognize: { + expect: "品牌" + rect: { + x0: 0.3907 + y0: 0.1203 + x1: 0.4639 + y1: 0.1490 + } + } +} + +event_sources: { + id: 13 + view_hierarchy_event: { + selector: '#"me.ele:id/cart_food_count_view"' + properties: { + property_name: "content-desc" + pattern: "购物车,[0-9]+,件" + } + } +} +event_sources: { + id: 14 + text_recognize: { + expect: "提交" + rect: { + x0: 0 + y0: 0.9255 + x1: 0.9909 + y1: 1.0 + } + } +} +event_sources: { + id: 26 + view_hierarchy_event: { + selector: '#"me.ele:id/title_make_order"' + properties: { + property_name: "text" + pattern: "确认订单" + } + } +} + +event_sources: { + id: 27 + text_recognize: { + expect: "确认订单" + rect: { + x0: 0.412 + y0: 0.059 + x1: 0.587 + y1: 0.093 + } + } +} + +event_sources: { + id: 28 + view_hierarchy_event: { + selector: '#"me.ele:id/title_make_order"' + properties: { + property_name: "text" + pattern: "外卖配送" + } + } +} + +event_sources: { + id: 29 + text_recognize: { + expect: "外卖配送" + rect: { + x0: 0.412 + y0: 0.059 + x1: 0.587 + y1: 0.093 + } + } +} + + +event_sources: { + id: 15 + text_recognize: { + expect: "已优惠" + rect: { + x0: 0 + y0: 0.9255 + x1: 0.9909 + y1: 1.0 + } + } +} + +event_slots: { + reward_listener: { + type: OR + events: { + event: { + type: OR + events: { + event: { + type: AND + events: [ + { id: 1 }, + { id: 2 }, + { id: 3 } + ] + transformation: "y = 1" + id: 100 + } + } + events: { + event: { + type: AND + events: [ + { id: 4 }, + { id: 5 }, + { id: 6 } + ] + transformation: "y = 1" + id: 101 + } + } + } + } + events: { + event: { + type: OR + events: { + event: { + type: AND + events: [ + { id: 7 }, + { id: 8 }, + { id: 9 } + ] + transformation: "y = 1" + id: 102 + } + } + events: { + event: { + type: OR + events: [ + { id: 10 }, + { id: 11 }, + { id: 12 } + ] + transformation: "y = 1" + id: 103 + } + } + } + } + events: { + event: { + type: SINGLE + events: [ + { id: 13 } + ] + transformation: "y = 1" + id: 104 + } + } + } + instruction_listener: { + type: OR + events: { + event: { + type: OR + id: 300 + events: [ + { id: 100 }, + { id: 101 } + ] + transformation: "y = 'Select one store.'" + } + } + events: { + event: { + type: OR + id: 301 + events: [ + { id: 102 }, + { id: 103 } + ] + transformation: "y = 'Select some food.'" + } + } + } + episode_end_listener: { + type: OR + events: { + id: 26 + } + events: { + id: 27 + } + events: { + id: 28 + } + events: { + id: 29 + } + transformation: "y = True" + } +} + + + + +command: "Help me order takeout.If the app's start page asks you to select an address, please choose Shanghai Jiao Tong University; otherwise, no selection is needed." + +vocabulary: ["start", "navigate", "menu", "select", "items", "cart", "submit", "order"] diff --git a/open-world-set/elemo_order_food_easy.textproto b/open-world-set/elemo_order_food_easy.textproto new file mode 100644 index 0000000000000000000000000000000000000000..db5c51560e93c27e4e99934e165f7a5def5eb1d3 --- /dev/null +++ b/open-world-set/elemo_order_food_easy.textproto @@ -0,0 +1,382 @@ +id: "elemo_order_food_easy" +name: "Ele.me Order Food Task" +description: "A task to order food from a restaurant on Ele.me app. Includes selecting a restaurant, choosing food items, checking out, and submitting the order." +setup_steps: { + adb_call: { + rotate: { + orientation: PORTRAIT_0 + } + } +} + +reset_steps: { + adb_call: { + force_stop: { + package_name: "me.ele" + } + } +} + +reset_steps: { + success_condition: { + num_retries: 3 + wait_for_app_screen: { + app_screen: { + activity: "me.ele/me.ele.Launcher" + } + timeout_sec: 10.0 + } + } + adb_call: { + start_activity: { + full_activity: "me.ele/me.ele.Launcher" + } + } +} + +expected_app_screen: { + +} + +max_num_steps: 5000 + +event_sources: { + id: 1 + view_hierarchy_event: { + selector: '#"me.ele:id/home_bottom_tab_message_text"' + properties: { + property_name: "text" + pattern: "消息" + } + } +} +event_sources: { + id: 2 + view_hierarchy_event: { + selector: '#"me.ele:id/home_bottom_tab_3_text"' + properties: { + property_name: "text" + pattern: "购物车" + } + } +} +event_sources: { + id: 3 + view_hierarchy_event: { + selector: '#"me.ele:id/home_bottom_tab_4_text"' + properties: { + property_name: "text" + pattern: "我的" + } + } +} +event_sources: { + id: 4 + text_detect: { + expect: "消息" + rect: { + x0: 0.4 + y0: 0.9099 + x1: 0.6 + y1: 0.9344 + } + } +} +event_sources: { + id: 5 + text_detect: { + expect: "购物车" + rect: { + x0: 0.6 + y0: 0.9099 + x1: 0.8 + y1: 0.9344 + } + } +} +event_sources: { + id: 6 + text_detect: { + expect: "我的" + rect: { + x0: 0.8 + y0: 0.9099 + x1: 1.0 + y1: 0.9344 + } + } +} +event_sources: { + id: 7 + view_hierarchy_event: { + selector: '#"me.ele:id/id_magex_mistview" > .android.view.ViewGroup:nth-child(1) > .android.widget.TextView' + properties: { + property_name: "text" + pattern: "点餐" + } + } +} +event_sources: { + id: 10 + text_recognize: { + expect: "点餐" + rect: { + x0: 0.0306 + y0: 0.1203 + x1: 0.0981 + y1: 0.1490 + } + } +} + +event_sources: { + id: 8 + view_hierarchy_event: { + selector: '#"me.ele:id/id_magex_mistview" > .android.view.ViewGroup:nth-child(2) > .android.widget.TextView' + properties: { + property_name: "text" + pattern: "评价" + } + } +} +event_sources: { + id: 11 + text_recognize: { + expect: "评价" + rect: { + x0: 0.2101 + y0: 0.1203 + x1: 0.2833 + y1: 0.1490 + } + } +} + +event_sources: { + id: 9 + view_hierarchy_event: { + selector: '#"me.ele:id/id_magex_mistview" > .android.view.ViewGroup:nth-child(3) > .android.widget.TextView' + properties: { + property_name: "text" + pattern: "品牌" + } + } +} +event_sources: { + id: 12 + text_recognize: { + expect: "品牌" + rect: { + x0: 0.3907 + y0: 0.1203 + x1: 0.4639 + y1: 0.1490 + } + } +} + +event_sources: { + id: 13 + view_hierarchy_event: { + selector: '#"me.ele:id/cart_food_count_view"' + properties: { + property_name: "content-desc" + pattern: "购物车,[0-9]+,件" + } + } +} +event_sources: { + id: 14 + text_recognize: { + expect: "提交" + rect: { + x0: 0 + y0: 0.9255 + x1: 0.9909 + y1: 1.0 + } + } +} +event_sources: { + id: 26 + view_hierarchy_event: { + selector: '#"me.ele:id/title_make_order"' + properties: { + property_name: "text" + pattern: "确认订单" + } + } +} + +event_sources: { + id: 27 + text_recognize: { + expect: "确认订单" + rect: { + x0: 0.412 + y0: 0.059 + x1: 0.587 + y1: 0.093 + } + } +} + +event_sources: { + id: 28 + view_hierarchy_event: { + selector: '#"me.ele:id/title_make_order"' + properties: { + property_name: "text" + pattern: "外卖配送" + } + } +} + +event_sources: { + id: 29 + text_recognize: { + expect: "外卖配送" + rect: { + x0: 0.412 + y0: 0.059 + x1: 0.587 + y1: 0.093 + } + } +} + + +event_sources: { + id: 15 + text_recognize: { + expect: "已优惠" + rect: { + x0: 0 + y0: 0.9255 + x1: 0.9909 + y1: 1.0 + } + } +} + +event_slots: { + reward_listener: { + type: OR + events: { + event: { + type: OR + events: { + event: { + type: AND + events: [ + { id: 1 }, + { id: 2 }, + { id: 3 } + ] + transformation: "y = 1" + id: 100 + } + } + events: { + event: { + type: AND + events: [ + { id: 4 }, + { id: 5 }, + { id: 6 } + ] + transformation: "y = 1" + id: 101 + } + } + } + } + events: { + event: { + type: OR + events: { + event: { + type: AND + events: [ + { id: 7 }, + { id: 8 }, + { id: 9 } + ] + transformation: "y = 1" + id: 102 + } + } + events: { + event: { + type: OR + events: [ + { id: 10 }, + { id: 11 }, + { id: 12 } + ] + transformation: "y = 1" + id: 103 + } + } + } + } + events: { + event: { + type: SINGLE + events: [ + { id: 13 } + ] + transformation: "y = 1" + id: 104 + } + } + } + instruction_listener: { + type: OR + events: { + event: { + type: OR + id: 300 + events: [ + { id: 100 }, + { id: 101 } + ] + transformation: "y = 'Select one store.'" + } + } + events: { + event: { + type: OR + id: 301 + events: [ + { id: 102 }, + { id: 103 } + ] + transformation: "y = 'Select some food.'" + } + } + } + episode_end_listener: { + type: OR + events: { + id: 104 + } + events: { + id: 26 + } + events: { + id: 28 + } + events: { + id: 29 + } + transformation: "y = True" + } +} + + + + +command: "Help me order takeout.If the app's start page asks you to select an address, please choose Shanghai Jiao Tong University; otherwise, no selection is needed." + +vocabulary: ["start", "navigate", "menu", "select", "items", "cart", "submit", "order"] diff --git a/open-world-set/elemo_order_food_history.textproto b/open-world-set/elemo_order_food_history.textproto new file mode 100644 index 0000000000000000000000000000000000000000..18cd5a5cb2a1f19c6ab8b92f44e326ba148c0f7d --- /dev/null +++ b/open-world-set/elemo_order_food_history.textproto @@ -0,0 +1,437 @@ +id: "elemo_order_food_history" +name: "Ele.me Order Food Task" +description: "A task to order food from a restaurant on Ele.me app. Includes selecting a restaurant, choosing food items, checking out, and submitting the order." +setup_steps: { + adb_call: { + rotate: { + orientation: PORTRAIT_0 + } + } +} + +reset_steps: { + adb_call: { + force_stop: { + package_name: "me.ele" + } + } +} + +reset_steps: { + success_condition: { + num_retries: 3 + wait_for_app_screen: { + app_screen: { + activity: "me.ele/me.ele.Launcher" + } + timeout_sec: 10.0 + } + } + adb_call: { + start_activity: { + full_activity: "me.ele/me.ele.Launcher" + } + } +} + +expected_app_screen: { + +} + +max_num_steps: 5000 + +event_sources: { + id: 1 + view_hierarchy_event: { + selector: '#"me.ele:id/home_bottom_tab_message_text"' + properties: { + property_name: "text" + pattern: "消息" + } + } +} +event_sources: { + id: 2 + view_hierarchy_event: { + selector: '#"me.ele:id/home_bottom_tab_3_text"' + properties: { + property_name: "text" + pattern: "购物车" + } + } +} +event_sources: { + id: 3 + view_hierarchy_event: { + selector: '#"me.ele:id/home_bottom_tab_4_text"' + properties: { + property_name: "text" + pattern: "我的" + } + } +} +event_sources: { + id: 4 + text_detect: { + expect: "消息" + rect: { + x0: 0.4 + y0: 0.9099 + x1: 0.6 + y1: 0.9344 + } + } +} +event_sources: { + id: 5 + text_detect: { + expect: "购物车" + rect: { + x0: 0.6 + y0: 0.9099 + x1: 0.8 + y1: 0.9344 + } + } +} +event_sources: { + id: 6 + text_detect: { + expect: "我的" + rect: { + x0: 0.8 + y0: 0.9099 + x1: 1.0 + y1: 0.9344 + } + } +} +event_sources: { + id: 7 + view_hierarchy_event: { + selector: '#"me.ele:id/id_magex_mistview" > .android.view.ViewGroup:nth-child(1) > .android.widget.TextView' + properties: { + property_name: "text" + pattern: "点餐" + } + } +} +event_sources: { + id: 10 + text_recognize: { + expect: "点餐" + rect: { + x0: 0.0306 + y0: 0.1944 + x1: 0.0981 + y1: 0.2667 + } + } +} + +event_sources: { + id: 8 + view_hierarchy_event: { + selector: '#"me.ele:id/id_magex_mistview" > .android.view.ViewGroup:nth-child(2) > .android.widget.TextView' + properties: { + property_name: "text" + pattern: "评价" + } + } +} +event_sources: { + id: 11 + text_recognize: { + expect: "评价" + rect: { + x0: 0.2083 + y0: 0.1944 + x1: 0.2833 + y1: 0.2667 + } + } +} + +event_sources: { + id: 9 + view_hierarchy_event: { + selector: '#"me.ele:id/id_magex_mistview" > .android.view.ViewGroup:nth-child(3) > .android.widget.TextView' + properties: { + property_name: "text" + pattern: "品牌" + } + } +} +event_sources: { + id: 12 + text_recognize: { + expect: "品牌" + rect: { + x0: 0.3907 + y0: 0.1944 + x1: 0.4639 + y1: 0.2667 + } + } +} +event_sources: { + id: 13 + view_hierarchy_event: { + selector: '#"me.ele:id/cart_food_count_view"' + properties: { + property_name: "content-desc" + pattern: "购物车,[0-9]+,件" + } + } +} +event_sources: { + id: 14 + text_recognize: { + expect: "提交订单" + rect: { + x0: 0.7282 + y0: 0.9372 + x1: 0.9709 + y1: 1.0 + } + } +} +event_sources: { + id: 15 + view_hierarchy_event: { + selector: '#"me.ele:id/img_1"[content-desc="首页"]' + properties: { + property_name: "content-desc" + pattern: "首页" + } + } +} + + +event_sources: { + id: 16 + view_hierarchy_event: { + selector: '.android.widget.TextView' + properties: { + property_name: "text" + pattern: "收货地址 [0-9]+" + } + } +} + +event_sources: { + id: 18 + view_hierarchy_event: { + selector: '.android.widget.TextView' + properties: { + property_name: "text" + #pattern: "181\\*\\*\\*\\*3723" + pattern: "1\\d\\d\\*\\*\\*\\*\\d{4}" + } + } +} + + +event_sources: { + id: 17 + view_hierarchy_event: { + selector: '#"me.ele:id/more_img"[content-desc="更多"]' + properties: { + property_name: "content-desc" + pattern: "更多" + } + } +} + + + +event_sources: { + id: 26 + view_hierarchy_event: { + selector: '#"me.ele:id/title_make_order"' + properties: { + property_name: "text" + pattern: "确认订单" + } + } +} + +event_sources: { + id: 27 + text_recognize: { + expect: "确认订单" + rect: { + x0: 0.412 + y0: 0.059 + x1: 0.587 + y1: 0.093 + } + } +} + +event_sources: { + id: 28 + view_hierarchy_event: { + selector: '#"me.ele:id/title_make_order"' + properties: { + property_name: "text" + pattern: "外卖配送" + } + } +} + +event_sources: { + id: 29 + text_recognize: { + expect: "外卖配送" + rect: { + x0: 0.412 + y0: 0.059 + x1: 0.587 + y1: 0.093 + } + } +} + +event_slots: { + reward_listener: { + type: OR + events: { + event: { + type: OR + events: { + event: { + type: AND + events: [ + { id: 1 }, + { id: 2 }, + { id: 3 } + ] + transformation: "y = 1" + id: 100 + } + } + events: { + event: { + type: AND + events: [ + { id: 4 }, + { id: 5 }, + { id: 6 } + ] + transformation: "y = 1" + id: 101 + } + } + } + } + events: { + event: { + type: OR + events: [ + { id: 15 }, + { id: 16}, + { id: 18 } + ] + transformation: "y = 1" + id: 105 + } + } + events: { + event: { + type: SINGLE + events: [ + { id: 17 } + ] + transformation: "y = 1" + id: 106 + } + } + events: { + event: { + type: OR + events: { + event: { + type: AND + events: [ + { id: 7 }, + { id: 8 }, + { id: 9 } + ] + transformation: "y = 1" + id: 102 + } + } + events: { + event: { + type: AND + events: [ + { id: 10 }, + { id: 11 }, + { id: 12 } + ] + transformation: "y = 1" + id: 103 + } + } + } + } + events: { + event: { + type: SINGLE + events: [ + { id: 13 } + ] + transformation: "y = 1" + id: 104 + } + } + } + instruction_listener: { + type: OR + + events: { + event: { + type: SINGLE + id: 302 + events: [ + { id: 106 } + ] + transformation: "y = 'Select one of my previous orders.'" + } + } + + + events: { + event: { + type: SINGLE + id: 304 + events: [ + { id: 104 } + ] + transformation: "y = 'Submit your order.'" + } + } + } + episode_end_listener: { + type: OR + events: { + id: 26 + } + events: { + id: 27 + } + events: { + id: 28 + } + events: { + id: 29 + } + transformation: "y = True" + } +} + + +command: "Select one of my previous orders from my entire order history and place a new order of the same items to help me order takeout again.If the app's start page asks you to select an address, please choose Shanghai Jiao Tong University; otherwise, no selection is needed." + +vocabulary: ["start", "navigate", "menu", "select", "items", "cart", "submit", "order"] diff --git a/open-world-set/elemo_order_food_search.textproto b/open-world-set/elemo_order_food_search.textproto new file mode 100644 index 0000000000000000000000000000000000000000..5a2fd340e478231e40fd91b507abdc01b4546a46 --- /dev/null +++ b/open-world-set/elemo_order_food_search.textproto @@ -0,0 +1,446 @@ +id: "elemo_order_food_search" +name: "Ele.me Order Food Task" +description: "A task to order food from a restaurant on Ele.me app. Includes selecting a restaurant, choosing food items, checking out, and submitting the order." +setup_steps: { + adb_call: { + rotate: { + orientation: PORTRAIT_0 + } + } +} + +reset_steps: { + adb_call: { + force_stop: { + package_name: "me.ele" + } + } +} + +reset_steps: { + success_condition: { + num_retries: 3 + wait_for_app_screen: { + app_screen: { + activity: "me.ele/me.ele.Launcher" + } + timeout_sec: 10.0 + } + } + adb_call: { + start_activity: { + full_activity: "me.ele/me.ele.Launcher" + } + } +} + +expected_app_screen: { + +} + +max_num_steps: 5000 + +event_sources: { + id: 1 + view_hierarchy_event: { + selector: '#"me.ele:id/home_bottom_tab_message_text"' + properties: { + property_name: "text" + pattern: "消息" + } + } +} +event_sources: { + id: 2 + view_hierarchy_event: { + selector: '#"me.ele:id/home_bottom_tab_3_text"' + properties: { + property_name: "text" + pattern: "购物车" + } + } +} +event_sources: { + id: 3 + view_hierarchy_event: { + selector: '#"me.ele:id/home_bottom_tab_4_text"' + properties: { + property_name: "text" + pattern: "我的" + } + } +} +event_sources: { + id: 4 + text_detect: { + expect: "消息" + rect: { + x0: 0.4 + y0: 0.9099 + x1: 0.6 + y1: 0.9344 + } + } +} +event_sources: { + id: 5 + text_detect: { + expect: "购物车" + rect: { + x0: 0.6 + y0: 0.9099 + x1: 0.8 + y1: 0.9344 + } + } +} +event_sources: { + id: 6 + text_detect: { + expect: "我的" + rect: { + x0: 0.8 + y0: 0.9099 + x1: 1.0 + y1: 0.9344 + } + } +} +event_sources: { + id: 7 + view_hierarchy_event: { + selector: '#"me.ele:id/id_magex_mistview" > .android.view.ViewGroup:nth-child(1) > .android.widget.TextView' + properties: { + property_name: "text" + pattern: "点餐" + } + } +} +event_sources: { + id: 26 + view_hierarchy_event: { + selector: '#"me.ele:id/title_make_order"' + properties: { + property_name: "text" + pattern: "确认订单" + } + } +} + +event_sources: { + id: 27 + text_recognize: { + expect: "确认订单" + rect: { + x0: 0.412 + y0: 0.059 + x1: 0.587 + y1: 0.093 + } + } +} + +event_sources: { + id: 28 + view_hierarchy_event: { + selector: '#"me.ele:id/title_make_order"' + properties: { + property_name: "text" + pattern: "外卖配送" + } + } +} + +event_sources: { + id: 29 + text_recognize: { + expect: "外卖配送" + rect: { + x0: 0.412 + y0: 0.059 + x1: 0.587 + y1: 0.093 + } + } +} +event_sources: { + id: 10 + text_recognize: { + expect: "点餐" + rect: { + x0: 0.0306 + y0: 0.1944 + x1: 0.0981 + y1: 0.2667 + } + } +} + +event_sources: { + id: 8 + view_hierarchy_event: { + selector: '#"me.ele:id/id_magex_mistview" > .android.view.ViewGroup:nth-child(2) > .android.widget.TextView' + properties: { + property_name: "text" + pattern: "评价" + } + } +} +event_sources: { + id: 11 + text_recognize: { + expect: "评价" + rect: { + x0: 0.2083 + y0: 0.1944 + x1: 0.2833 + y1: 0.2667 + } + } +} + +event_sources: { + id: 9 + view_hierarchy_event: { + selector: '#"me.ele:id/id_magex_mistview" > .android.view.ViewGroup:nth-child(3) > .android.widget.TextView' + properties: { + property_name: "text" + pattern: "品牌" + } + } +} +event_sources: { + id: 12 + text_recognize: { + expect: "品牌" + rect: { + x0: 0.3907 + y0: 0.1944 + x1: 0.4639 + y1: 0.2667 + } + } +} +event_sources: { + id: 13 + view_hierarchy_event: { + selector: '#"me.ele:id/cart_food_count_view"' + properties: { + property_name: "content-desc" + pattern: "购物车,[0-9]+,件" + } + } +} +event_sources: { + id: 14 + text_recognize: { + expect: "提交订单" + rect: { + x0: 0.7282 + y0: 0.9372 + x1: 0.9709 + y1: 1.0 + } + } +} +event_sources: { + id: 15 + view_hierarchy_event: { + selector: '#"me.ele:id/search"' + properties: { + property_name: "text" + pattern: "搜索" + } + } +} +event_sources: { + id: 16 + text_recognize: { + expect: "搜索" + rect: { + x0: 0.8685 + y0: 0.0861 + x1: 0.9463 + y1: 0.1324 + } + } +} + +event_sources: { + id: 17 + view_hierarchy_event: { + selector: '#"me.ele:id/editor"' + properties: { + property_name: "text" + pattern: "coco" + } + } +} +event_sources: { + id: 18 + text_recognize: { + expect: "coco" + rect: { + x0: 0.1074 + y0: 0.0731 + x1: 0.8796 + y1: 0.1519 + } + } +} + + + +event_slots: { + reward_listener: { + type: OR + events: { + event: { + type: OR + events: { + event: { + type: AND + events: [ + { id: 1 }, + { id: 2 }, + { id: 3 } + ] + transformation: "y = 1" + id: 100 + } + } + events: { + event: { + type: AND + events: [ + { id: 4 }, + { id: 5 }, + { id: 6 } + ] + transformation: "y = 1" + id: 101 + } + } + } + } + events: { + event: { + type: OR + events: [ + { id: 15 }, + { id: 16} + ] + transformation: "y = 1" + id: 105 + } + } + events: { + event: { + type: OR + events: [ + { id: 17 }, + { id: 18} + ] + transformation: "y = 1" + id: 106 + } + } + events: { + event: { + type: OR + events: { + event: { + type: AND + events: [ + { id: 7 }, + { id: 8 }, + { id: 9 } + ] + transformation: "y = 1" + id: 102 + } + } + events: { + event: { + type: AND + events: [ + { id: 10 }, + { id: 11 }, + { id: 12 } + ] + transformation: "y = 1" + id: 103 + } + } + } + } + events: { + event: { + type: SINGLE + events: [ + { id: 13 } + ] + transformation: "y = 1" + id: 104 + } + } + } + instruction_listener: { + type: OR + events: { + event: { + type: OR + id: 300 + events: [ + { id: 100 }, + { id: 101 } + ] + transformation: "y = 'Click to search.'" + } + } + events: { + event: { + type: SINGLE + id: 301 + events: [ + { id: 105 } + ] + transformation: "y = 'Search for the specified store.'" + } + } + + events: { + event: { + type: OR + id: 303 + events: [ + { id: 102 }, + { id: 103 } + ] + transformation: "y = 'Choose my favourite food.'" + } + } + } + + episode_end_listener: { + type: OR + events: { + id: 26 + } + events: { + id: 27 + } + events: { + id: 28 + } + events: { + id: 29 + } + transformation: "y = True" + } +} + + +command: "Help me order a cup of my favorite milk tea by searching for Coco (the store name).If the app's start page asks you to select an address, please choose Shanghai Jiao Tong University; otherwise, no selection is needed." + +vocabulary: ["start", "navigate", "menu", "select", "items", "cart", "submit", "order"] diff --git a/open-world-set/elemo_order_food_searchfood.textproto b/open-world-set/elemo_order_food_searchfood.textproto new file mode 100644 index 0000000000000000000000000000000000000000..73ff3008f21869e799fd86e75dd0186045d83649 --- /dev/null +++ b/open-world-set/elemo_order_food_searchfood.textproto @@ -0,0 +1,443 @@ +id: "elemo_order_food_searchfood" +name: "Ele.me Order Food Task" +description: "A task to order food from a restaurant on Ele.me app. Includes selecting a restaurant, choosing food items, checking out, and submitting the order." +setup_steps: { + adb_call: { + rotate: { + orientation: PORTRAIT_0 + } + } +} + +reset_steps: { + adb_call: { + force_stop: { + package_name: "me.ele" + } + } +} + +reset_steps: { + success_condition: { + num_retries: 3 + wait_for_app_screen: { + app_screen: { + activity: "me.ele/me.ele.Launcher" + } + timeout_sec: 10.0 + } + } + adb_call: { + start_activity: { + full_activity: "me.ele/me.ele.Launcher" + } + } +} + +expected_app_screen: { + +} + +max_num_steps: 5000 + +event_sources: { + id: 1 + view_hierarchy_event: { + selector: '#"me.ele:id/home_bottom_tab_message_text"' + properties: { + property_name: "text" + pattern: "消息" + } + } +} +event_sources: { + id: 2 + view_hierarchy_event: { + selector: '#"me.ele:id/home_bottom_tab_3_text"' + properties: { + property_name: "text" + pattern: "购物车" + } + } +} +event_sources: { + id: 3 + view_hierarchy_event: { + selector: '#"me.ele:id/home_bottom_tab_4_text"' + properties: { + property_name: "text" + pattern: "我的" + } + } +} +event_sources: { + id: 4 + text_detect: { + expect: "消息" + rect: { + x0: 0.4 + y0: 0.9099 + x1: 0.6 + y1: 0.9344 + } + } +} +event_sources: { + id: 5 + text_detect: { + expect: "购物车" + rect: { + x0: 0.6 + y0: 0.9099 + x1: 0.8 + y1: 0.9344 + } + } +} +event_sources: { + id: 6 + text_detect: { + expect: "我的" + rect: { + x0: 0.8 + y0: 0.9099 + x1: 1.0 + y1: 0.9344 + } + } +} +event_sources: { + id: 7 + view_hierarchy_event: { + selector: '#"me.ele:id/id_magex_mistview" > .android.view.ViewGroup:nth-child(1) > .android.widget.TextView' + properties: { + property_name: "text" + pattern: "点餐" + } + } +} +event_sources: { + id: 10 + text_recognize: { + expect: "点餐" + rect: { + x0: 0.0306 + y0: 0.1944 + x1: 0.0981 + y1: 0.2667 + } + } +} + +event_sources: { + id: 8 + view_hierarchy_event: { + selector: '#"me.ele:id/id_magex_mistview" > .android.view.ViewGroup:nth-child(2) > .android.widget.TextView' + properties: { + property_name: "text" + pattern: "评价" + } + } +} +event_sources: { + id: 11 + text_recognize: { + expect: "评价" + rect: { + x0: 0.2083 + y0: 0.1944 + x1: 0.2833 + y1: 0.2667 + } + } +} + +event_sources: { + id: 9 + view_hierarchy_event: { + selector: '#"me.ele:id/id_magex_mistview" > .android.view.ViewGroup:nth-child(3) > .android.widget.TextView' + properties: { + property_name: "text" + pattern: "品牌" + } + } +} +event_sources: { + id: 12 + text_recognize: { + expect: "品牌" + rect: { + x0: 0.3907 + y0: 0.1944 + x1: 0.4639 + y1: 0.2667 + } + } +} +event_sources: { + id: 13 + view_hierarchy_event: { + selector: '#"me.ele:id/cart_food_count_view"' + properties: { + property_name: "content-desc" + pattern: "购物车,[0-9]+,件" + } + } +} +event_sources: { + id: 14 + text_recognize: { + expect: "提交订单" + rect: { + x0: 0.7282 + y0: 0.9372 + x1: 0.9709 + y1: 1.0 + } + } +} +event_sources: { + id: 15 + view_hierarchy_event: { + selector: '#"me.ele:id/search"' + properties: { + property_name: "text" + pattern: "搜索" + } + } +} +event_sources: { + id: 16 + text_recognize: { + expect: "搜索" + rect: { + x0: 0.8685 + y0: 0.0861 + x1: 0.9463 + y1: 0.1324 + } + } +} + +event_sources: { + id: 17 + view_hierarchy_event: { + selector: '#"me.ele:id/editor"' + properties: { + property_name: "text" + pattern: "naicha" + } + } +} +event_sources: { + id: 18 + text_recognize: { + expect: "naicha" + rect: { + x0: 0.1074 + y0: 0.0731 + x1: 0.8796 + y1: 0.1519 + } + } +} + +event_sources: { + id: 26 + view_hierarchy_event: { + selector: '#"me.ele:id/title_make_order"' + properties: { + property_name: "text" + pattern: "确认订单" + } + } +} +event_sources: { + id: 27 + text_recognize: { + expect: "确认订单" + rect: { + x0: 0.412 + y0: 0.059 + x1: 0.587 + y1: 0.093 + } + } +} + +event_sources: { + id: 28 + view_hierarchy_event: { + selector: '#"me.ele:id/title_make_order"' + properties: { + property_name: "text" + pattern: "外卖配送" + } + } +} + +event_sources: { + id: 29 + text_recognize: { + expect: "外卖配送" + rect: { + x0: 0.412 + y0: 0.059 + x1: 0.587 + y1: 0.093 + } + } +} + +event_slots: { + reward_listener: { + type: OR + events: { + event: { + type: OR + events: { + event: { + type: AND + events: [ + { id: 1 }, + { id: 2 }, + { id: 3 } + ] + transformation: "y = 1" + id: 100 + } + } + events: { + event: { + type: AND + events: [ + { id: 4 }, + { id: 5 }, + { id: 6 } + ] + transformation: "y = 1" + id: 101 + } + } + } + } + events: { + event: { + type: OR + events: [ + { id: 15 }, + { id: 16} + ] + transformation: "y = 1" + id: 105 + } + } + events: { + event: { + type: OR + events: [ + { id: 17 }, + { id: 18} + ] + transformation: "y = 1" + id: 106 + } + } + events: { + event: { + type: OR + events: { + event: { + type: AND + events: [ + { id: 7 }, + { id: 8 }, + { id: 9 } + ] + transformation: "y = 1" + id: 102 + } + } + events: { + event: { + type: AND + events: [ + { id: 10 }, + { id: 11 }, + { id: 12 } + ] + transformation: "y = 1" + id: 103 + } + } + } + } + events: { + event: { + type: SINGLE + events: [ + { id: 13 } + ] + transformation: "y = 1" + id: 104 + } + } + } + instruction_listener: { + type: OR + events: { + event: { + type: OR + id: 300 + events: [ + { id: 100 }, + { id: 101 } + ] + transformation: "y = 'Click to search.'" + } + } + events: { + event: { + type: SINGLE + id: 301 + events: [ + { id: 105 } + ] + transformation: "y = 'Type naicha in the search box.'" + } + } + + events: { + event: { + type: OR + id: 303 + events: [ + { id: 102 }, + { id: 103 } + ] + transformation: "y = 'Choose my favourite food.'" + } + } + } + episode_end_listener: { + type: OR + events: { + id: 26 + } + events: { + id: 27 + } + events: { + id: 28 + } + events: { + id: 29 + } + transformation: "y = True" + } +} + + +command: "Help me order a cup of my favorite milk tea by searching for it.If the app's start page asks you to select an address, please choose Shanghai Jiao Tong University; otherwise, no selection is needed." + +vocabulary: ["start", "navigate", "menu", "select", "items", "cart", "submit", "order"] diff --git a/open-world-set/elemo_order_food_select.textproto b/open-world-set/elemo_order_food_select.textproto new file mode 100644 index 0000000000000000000000000000000000000000..71c9b39cf1cbef9a131dff75d35b7fd73123ceef --- /dev/null +++ b/open-world-set/elemo_order_food_select.textproto @@ -0,0 +1,386 @@ +id: "elemo_order_food_select" +name: "Ele.me Order Food Task" +description: "A task to order food from a restaurant on Ele.me app. Includes selecting a restaurant, choosing food items, checking out, and submitting the order." +setup_steps: { + adb_call: { + rotate: { + orientation: PORTRAIT_0 + } + } +} + +reset_steps: { + adb_call: { + force_stop: { + package_name: "me.ele" + } + } +} + +reset_steps: { + success_condition: { + num_retries: 3 + wait_for_app_screen: { + app_screen: { + activity: "me.ele/me.ele.Launcher" + } + timeout_sec: 10.0 + } + } + adb_call: { + start_activity: { + full_activity: "me.ele/me.ele.Launcher" + } + } +} + +expected_app_screen: { + +} + +max_num_steps: 5000 + +event_sources: { + id: 1 + view_hierarchy_event: { + selector: '#"me.ele:id/home_bottom_tab_message_text"' + properties: { + property_name: "text" + pattern: "消息" + } + } +} +event_sources: { + id: 2 + view_hierarchy_event: { + selector: '#"me.ele:id/home_bottom_tab_3_text"' + properties: { + property_name: "text" + pattern: "购物车" + } + } +} +event_sources: { + id: 3 + view_hierarchy_event: { + selector: '#"me.ele:id/home_bottom_tab_4_text"' + properties: { + property_name: "text" + pattern: "我的" + } + } +} +event_sources: { + id: 4 + text_detect: { + expect: "消息" + rect: { + x0: 0.4 + y0: 0.9099 + x1: 0.6 + y1: 0.9344 + } + } +} +event_sources: { + id: 5 + text_detect: { + expect: "购物车" + rect: { + x0: 0.6 + y0: 0.9099 + x1: 0.8 + y1: 0.9344 + } + } +} +event_sources: { + id: 6 + text_detect: { + expect: "我的" + rect: { + x0: 0.8 + y0: 0.9099 + x1: 1.0 + y1: 0.9344 + } + } +} +event_sources: { + id: 7 + view_hierarchy_event: { + selector: '#"me.ele:id/id_magex_mistview" > .android.view.ViewGroup:nth-child(1) > .android.widget.TextView' + properties: { + property_name: "text" + pattern: "点餐" + } + } +} +event_sources: { + id: 10 + text_recognize: { + expect: "点餐" + rect: { + x0: 0.0306 + y0: 0.1944 + x1: 0.0981 + y1: 0.2667 + } + } +} + +event_sources: { + id: 8 + view_hierarchy_event: { + selector: '#"me.ele:id/id_magex_mistview" > .android.view.ViewGroup:nth-child(2) > .android.widget.TextView' + properties: { + property_name: "text" + pattern: "评价" + } + } +} +event_sources: { + id: 11 + text_recognize: { + expect: "评价" + rect: { + x0: 0.2083 + y0: 0.1944 + x1: 0.2833 + y1: 0.2667 + } + } +} + +event_sources: { + id: 9 + view_hierarchy_event: { + selector: '#"me.ele:id/id_magex_mistview" > .android.view.ViewGroup:nth-child(3) > .android.widget.TextView' + properties: { + property_name: "text" + pattern: "品牌" + } + } +} +event_sources: { + id: 12 + text_recognize: { + expect: "品牌" + rect: { + x0: 0.3907 + y0: 0.1944 + x1: 0.4639 + y1: 0.2667 + } + } +} +event_sources: { + id: 13 + view_hierarchy_event: { + selector: '#"me.ele:id/cart_food_count_view"' + properties: { + property_name: "content-desc" + pattern: "购物车,[0-9]+,件" + } + } +} +event_sources: { + id: 14 + text_recognize: { + expect: "提交订单" + rect: { + x0: 0.7282 + y0: 0.9372 + x1: 0.9709 + y1: 1.0 + } + } +} +event_sources: { + id: 15 + text_recognize: { + expect: "查看" + rect: { + x0: 0.6746 + y0: 0.7288 + x1: 0.8000 + y1: 0.7860 + } + } +} + +event_sources: { + id: 26 + view_hierarchy_event: { + selector: '#"me.ele:id/title_make_order"' + properties: { + property_name: "text" + pattern: "确认订单" + } + } +} +event_sources: { + id: 27 + text_recognize: { + expect: "确认订单" + rect: { + x0: 0.412 + y0: 0.059 + x1: 0.587 + y1: 0.093 + } + } +} + +event_sources: { + id: 28 + view_hierarchy_event: { + selector: '#"me.ele:id/title_make_order"' + properties: { + property_name: "text" + pattern: "外卖配送" + } + } +} + +event_sources: { + id: 29 + text_recognize: { + expect: "外卖配送" + rect: { + x0: 0.412 + y0: 0.059 + x1: 0.587 + y1: 0.093 + } + } +} + +event_slots: { + reward_listener: { + type: OR + events: { + event: { + type: OR + events: { + event: { + type: AND + events: [ + { id: 1 }, + { id: 2 }, + { id: 3 } + ] + transformation: "y = 1" + id: 100 + } + } + events: { + event: { + type: AND + events: [ + { id: 4 }, + { id: 5 }, + { id: 6 } + ] + transformation: "y = 1" + id: 101 + } + } + } + } + events: { + event: { + type: SINGLE + events: [ + { id: 15 } + ] + transformation: "y = 1" + id: 104 + } + } + events: { + event: { + type: OR + events: { + event: { + type: AND + events: [ + { id: 7 }, + { id: 8 }, + { id: 9 } + ] + transformation: "y = 1" + id: 102 + } + } + events: { + event: { + type: AND + events: [ + { id: 10 }, + { id: 11 }, + { id: 12 } + ] + transformation: "y = 1" + id: 103 + } + } + } + } + events: { + event: { + type: SINGLE + events: [ + { id: 13 } + ] + transformation: "y = 1" + id: 104 + } + } + } + instruction_listener: { + type: OR + events: { + event: { + type: OR + id: 300 + events: [ + { id: 100 }, + { id: 101 } + ] + transformation: "y = 'Click to enter the filter page and make a selection.'" + } + } + events: { + event: { + type: SINGLE + id: 301 + events: [ + { id: 15 } + ] + transformation: "y = 'proceed to the menu.'" + } + } + } + episode_end_listener: { + type: OR + events: { + id: 26 + } + events: { + id: 27 + } + events: { + id: 28 + } + events: { + id: 29 + } + transformation: "y = True" + } +} + + +command: "Help me select takeout that can be delivered within 30 minutes using the filters on the homepage and place the order.If the app's start page asks you to select an address, please choose Shanghai Jiao Tong University; otherwise, no selection is needed." + +vocabulary: ["start", "navigate", "menu", "select", "items", "cart", "submit", "order"] diff --git a/open-world-set/file_your_nails-0.textproto b/open-world-set/file_your_nails-0.textproto new file mode 100644 index 0000000000000000000000000000000000000000..93042d31a91e486061863ac3cf75b71dc0f82c70 --- /dev/null +++ b/open-world-set/file_your_nails-0.textproto @@ -0,0 +1,282 @@ +id: "search_file_your_nails-article_file your nails-about_page" +name: "WikiHow Search Task Primitive - Search file_your_nails, Access How to File Your Nails, Access the About Page" +description: "A demo task primitive requiring to search WikiHow for a specific article.\nA demo task primitive requiring to access a specific article.\nA demo task asking to access the about page" +setup_steps: { + adb_call: { + install_apk: { + filesystem: { + path: "../wikiHow:万事指南_2.9.6_apkcombo.com.apk" + } + } + } +} +setup_steps: { + adb_call: { + rotate: { + } + } +} +reset_steps: { + adb_call: { + force_stop: { + package_name: "com.wikihow.wikihowapp" + } + } +} +reset_steps: { + adb_call: { + clear_cache: { + package_name: "com.wikihow.wikihowapp" + } + } +} +reset_steps: { + success_condition: { + num_retries: 10 + wait_for_app_screen: { + app_screen: { + activity: "com.wikihow.wikihowapp/com.wikihow.wikihowapp.MainTabActivity" + } + timeout_sec: 10.0 + } + } + adb_call: { + start_activity: { + full_activity: "com.wikihow.wikihowapp/com.wikihow.wikihowapp.MainTabActivity" + } + } +} +max_num_steps: 500 +event_sources: { + text_recognize: { + expect: "\\b(file|nails)\\b" + rect: { + x0: 0.2439 + y0: 0.0354 + x1: 0.9085 + y1: 0.1171 + } + } + id: 1 +} +event_sources: { + view_hierarchy_event: { + properties: { + property_name: "text" + pattern: "\\b(file|nails)\\b" + } + properties: { + property_name: "clickable" + pattern: "true" + } + selector: "#$\"search_plate\">#$\"search_src_text\"" + } + id: 2 +} +event_sources: { + log_event: { + filters: "jd:D" + pattern: "\\bmUrl is: https://www\\.wikihow\\.com/wikiHowTo\\?search=.*(file|nails).*" + } + id: 3 +} +event_sources: { + text_detect: { + expect: "How to File Your Nails" + rect: { + y0: 0.19 + x1: 1.0 + y1: 0.3 + } + } + id: 5 +} +event_sources: { + log_event: { + filters: "jd:D" + pattern: "\\bmUrl is: https://www\\.wikihow\\.com/File-Your-Nails" + } + id: 6 +} +event_sources: { + view_hierarchy_event: { + properties: { + property_name: "text" + pattern: "How to File Your Nails" + } + selector: ".\"android.view.View\"#\"section_0\" .$\"TextView\"" + } + id: 7 +} +event_sources: { + text_detect: { + expect: "Information You Can Trust|A Guide to our Editorial Process" + rect: { + y0: 0.1 + x1: 1.0 + y1: 0.6 + } + } + id: 9 +} +event_sources: { + log_event: { + filters: "jd:D" + pattern: "\\bmUrl is: https://www\\.wikihow\\.com/wikiHow:Delivering-a-Trustworthy-Experience" + } + id: 10 +} +event_sources: { + view_hierarchy_event: { + properties: { + property_name: "text" + pattern: "Information You Can Trust" + } + selector: ".$\"View\"#\"trustworthy_top\">.$\"View\"#\"trustworthy_head\">.\"android.view.View\"" + } + id: 11 +} +event_slots: { + score_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + } + } + events: { + event: { + } + } + } + reward_listener: { + type: OR + events: { + event: { + type: OR + id: 4 + events: { + id: 1 + } + events: { + id: 2 + } + events: { + id: 3 + } + transformation: "y = 1" + repeatability: NONE + } + } + events: { + event: { + type: OR + id: 8 + events: { + id: 5 + } + events: { + id: 6 + } + events: { + id: 7 + } + transformation: "y = 1" + repeatability: NONE + } + } + events: { + event: { + type: OR + id: 12 + events: { + id: 9 + } + events: { + id: 10 + } + events: { + id: 11 + } + transformation: "y = 1" + repeatability: NONE + } + } + } + episode_end_listener: { + events: { + id: 12 + } + transformation: "y = True" + } + extra_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + } + } + events: { + event: { + } + } + } + json_extra_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + } + } + events: { + event: { + } + } + } + instruction_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + events: { + id: 4 + } + transformation: "y = [\'Access the article \"How to File Your Nails\"\']" + } + } + events: { + event: { + } + } + events: { + event: { + events: { + id: 8 + } + transformation: "y = [\'Access the about page to learn why people trust wikihow.\']" + } + } + events: { + event: { + } + } + } +} +command: "Search an article to learn how to file your nails." +command: "Then, access the article \"How to File Your Nails\"" +command: "Then, access the about page to learn why people trust wikihow." +vocabulary: "file" +vocabulary: "how to" +vocabulary: "nails" diff --git a/open-world-set/get_Sanguoyanyi_book_score.textproto b/open-world-set/get_Sanguoyanyi_book_score.textproto new file mode 100644 index 0000000000000000000000000000000000000000..2b7945140f6f8e9d739fcbc849e5b7270365174c --- /dev/null +++ b/open-world-set/get_Sanguoyanyi_book_score.textproto @@ -0,0 +1,207 @@ +id:"get_Sanguoyanyi_book_score" +name :"Douban Search Task - Sanguoyanyi Book Score" +description :"Search the book score of Sanguoyanyi on Douban" + + + +reset_steps: { + adb_call: { + force_stop: { + package_name: "com.douban.frodo" + } + } +} + + + +reset_steps: { + success_condition: { + num_retries: 10 + wait_for_app_screen: { + app_screen: { + activity: "com.douban.frodo/com.douban.frodo.activity.SplashActivity" + } + timeout_sec: 10.0 + } + } + adb_call: { + start_activity: { + full_activity: "com.douban.frodo/com.douban.frodo.activity.SplashActivity" + } + } +} + + +expected_app_screen: { + +} + +max_num_steps: 5000 + + +event_sources: { + text_detect: { + expect: "取消" + rect: { + x0: 0.87 + y0: 0.048 + x1: 0.97 + y1: 0.085 + } + } + id: 1 +} + +event_sources: { + view_hierarchy_event: { + selector: '#$"com.douban.frodo:id/cancel".$"TextView"' + properties: { + property_name: "text" + pattern: "取消" + } + properties: { + property_name: "left" + sign:EQ + integer:912 + } + } + id: 2 +} + +event_sources: { + text_detect: { + expect: "三国演义" + rect: { + x0: 0.3 + y0: 0.12 + x1: 0.65 + y1: 0.2 + } + } + id: 3 +} +event_sources: { + text_detect: { + expect: "图书" + rect: { + x0: 0.45 + y0: 0.053 + x1: 0.55 + y1: 0.079 + } + } + id: 4 + } + +event_sources: { + view_hierarchy_event: { + selector: '.$"TextView"#$"title"' + properties: { + property_name: "text" + pattern: "图书" + } + properties: { + property_name: "left" + sign:EQ + integer:501 + } + } + id: 5 + } + + event_sources: { + view_hierarchy_event: { + selector: '.$"TextView"#$"title">.$"TextView"' + properties: { + property_name: "text" + pattern: "三国演义(全二册)" + } + properties: { + property_name: "left" + sign:EQ + + integer:341 + } + } + id: 6 + } + + + +event_sources:{ + response_event: { + mode: REGEX + pattern: '\\b9\\.3\\b' + } + id: 7 + +} + +event_slots:{ + reward_listener:{ + type:OR + events:{ + event:{ + type:OR + id:8 + events:{ + id:1 + } + events:{ + id:2 + } + transformation:"y=1" + } + } + events:{ + event:{ + type:OR + id:9 + events:{ + id:3 + } + events:{ + id:4 + } + events:{ + id:5 + } + events:{ + id:6 + } + transformation:"y=1" + } + + } + } + episode_end_listener: { + events: { + id: 7 + } + transformation: "y = True" + } + instruction_listener:{ + type:OR + events:{ + event: + { + events:{id:8} + transformation:"y=[\'Now input provided message in pinyin(Sanguoyanyi)since chinese is not supported for current input, then click the corresponding one from search suggestions \']"} + } + events:{ + event: + { + events:{id:9} + transformation:"y=[\'Good job, please return the score of the book\']"} + } + } + + + } + + + +command: "Return the douban score of book named 三国演义(hint: 'search hint' node is search bar)" + + +vocabulary: ["Sanguoyanyi","三国演义"] diff --git a/open-world-set/get_in_Sanguoyanyi_group.textproto b/open-world-set/get_in_Sanguoyanyi_group.textproto new file mode 100644 index 0000000000000000000000000000000000000000..8bae06ac70295ec7503afe929189099e99ff1c08 --- /dev/null +++ b/open-world-set/get_in_Sanguoyanyi_group.textproto @@ -0,0 +1,129 @@ +id:"get_in_Sanguoyanyi_group" +name :"Douban Search Task - Sanguoyanyi Group Check" +description :"Get in the page of Sanguoyanyi Group" + + + +reset_steps: { + adb_call: { + force_stop: { + package_name: "com.douban.frodo" + } + } +} + + + +reset_steps: { + success_condition: { + num_retries: 10 + wait_for_app_screen: { + app_screen: { + activity: "com.douban.frodo/com.douban.frodo.activity.SplashActivity" + } + timeout_sec: 10.0 + } + } + adb_call: { + start_activity: { + full_activity: "com.douban.frodo/com.douban.frodo.activity.SplashActivity" + } + } +} + + +expected_app_screen: { + +} + +max_num_steps: 5000 + + +event_sources: { + text_detect: { + expect: "取消" + rect: { + x0: 0.87 + y0: 0.048 + x1: 0.97 + y1: 0.085 + } + } + id: 1 +} + +event_sources: { + view_hierarchy_event: { + selector: '#$"com.douban.frodo:id/cancel".$"TextView"' + properties: { + property_name: "text" + pattern: "取消" + } + properties: { + property_name: "left" + sign:EQ + integer:912 + } + } + id: 2 +} + +event_sources: { + text_detect: { + expect: "讨论列表" + rect: { + x0: 0 + y0: 0.36 + x1: 0.3 + y1: 0.42 + } + } + id: 3 + } + + + +event_slots:{ + reward_listener:{ + type:OR + events:{ + event:{ + type:OR + id:8 + events:{ + id:1 + } + events:{ + id:2 + } + transformation:"y=1" + } + } + + } + episode_end_listener: { + events: { + id: 3 + } + transformation: "y = True" + } + instruction_listener:{ + type:OR + events:{ + event: + { + events:{id:8} + transformation:"y=[\'Now input provided message in pinyin(Sanguoyanyi)since chinese is not supported for current input, then click the corresponding one from search suggestions(hint:) \']"} + } + + } + + + } + + + +command: "Get in the douban group of the book named 三国演义(hint: 'search hint' node is search bar) " + + +vocabulary: ["Sanguoyanyi"] diff --git a/open-world-set/get_top250_4th_movie.textproto b/open-world-set/get_top250_4th_movie.textproto new file mode 100644 index 0000000000000000000000000000000000000000..fb47add39b50d0f6138fd078b7734502d240884b --- /dev/null +++ b/open-world-set/get_top250_4th_movie.textproto @@ -0,0 +1,195 @@ +id:"get_top250_4th_movie" +name :"Douban Search Task - 4th movie in the Douban Top250 movie list" +description :"Search the 4th movie's name in the Douban Top250 movie list" + + + +reset_steps: { + adb_call: { + force_stop: { + package_name: "com.douban.frodo" + } + } +} + + + +reset_steps: { + success_condition: { + num_retries: 10 + wait_for_app_screen: { + app_screen: { + activity: "com.douban.frodo/com.douban.frodo.activity.SplashActivity" + } + timeout_sec: 10.0 + } + } + adb_call: { + start_activity: { + full_activity: "com.douban.frodo/com.douban.frodo.activity.SplashActivity" + } + } +} + + +expected_app_screen: { + +} + +max_num_steps: 5000 + + +event_sources: { + text_detect: { + expect: "同城" + rect: { + x0: 0 + y0: 0.10 + x1: 1 + y1: 0.15 + } + } + id: 1 +} + +event_sources: { + text_detect: { + expect: "年度电影榜单" + rect: { + x0: 0 + y0: 0.48 + x1: 0.33 + y1: 0.54 + } + } + id: 2 +} + + + +event_sources: { + view_hierarchy_event: { + selector: '."android.view.View"' + + properties: { + property_name: "left" + sign:EQ + integer:278 + } + properties: { + property_name: "text" + pattern:"豆瓣电影 Top250" + } + } + id: 3 + } + + + event_sources: { + text_detect: { + expect: "肖申克的救赎" + rect: { + x0: 0.075 + y0: 0.70 + x1: 0.37 + y1: 0.75 + } + } + id: 4 + } + + +event_sources:{ + response_event: { + mode: REGEX + pattern: '\\b泰坦尼克号\\b' + } + id: 7 + +} + +event_slots:{ + reward_listener:{ + type:OR + events:{ + event:{ + type:OR + id:8 + events:{ + id:1 + } + events:{ + id:1 + } + + transformation:"y=1" + } + } + events:{ + event:{ + type:OR + id:9 + events:{ + id:2 + } + transformation:"y=1" + } + } + events:{ + event:{ + type:OR + id:10 + events:{ + id:3 + } + events:{ + id:4 + } + transformation:"y=1" + } + } + + } + episode_end_listener: { + events: { + id: 7 + } + transformation: "y = True" + } + instruction_listener: { + type: OR + events: { + event: { + events: { + id: 8 + } + transformation: "y=[\'Then you should find the 榜单\']" + } + } + events: { + event: { + events: { + id: 10 + } + transformation: "y=[\'Well done! Explore this page by scrolling and return the name of the 4th movie \']" + } + } + events: { + event: { + events: { + id: 9 + } + transformation: "y=[\'Good job, in this page, find the top250电影榜 and get in\']" + } + } + } + + +} + + + +command: "Tell me the 4th movie in the 豆瓣Top250 movies list. Hint: You should click the 书影音 first" + + +vocabulary: [] diff --git a/open-world-set/hide_short_bangs-7.textproto b/open-world-set/hide_short_bangs-7.textproto new file mode 100644 index 0000000000000000000000000000000000000000..808fa74a95f6f586491e5eecea4ad87ae82581e2 --- /dev/null +++ b/open-world-set/hide_short_bangs-7.textproto @@ -0,0 +1,269 @@ +id: "search_hide_short_bangs-article_hide short bangs-check_reference" +name: "WikiHow Search Task Primitive - Search hide_short_bangs, Access How to Hide Short Bangs, Check the Reference" +description: "A demo task primitive requiring to search WikiHow for a specific article.\nA demo task primitive requiring to access a specific article.\nA demo task asking to check the reference list." +setup_steps: { + adb_call: { + install_apk: { + filesystem: { + path: "../wikiHow:万事指南_2.9.6_apkcombo.com.apk" + } + } + } +} +setup_steps: { + adb_call: { + rotate: { + } + } +} +reset_steps: { + adb_call: { + force_stop: { + package_name: "com.wikihow.wikihowapp" + } + } +} +reset_steps: { + adb_call: { + clear_cache: { + package_name: "com.wikihow.wikihowapp" + } + } +} +reset_steps: { + success_condition: { + num_retries: 10 + wait_for_app_screen: { + app_screen: { + activity: "com.wikihow.wikihowapp/com.wikihow.wikihowapp.MainTabActivity" + } + timeout_sec: 10.0 + } + } + adb_call: { + start_activity: { + full_activity: "com.wikihow.wikihowapp/com.wikihow.wikihowapp.MainTabActivity" + } + } +} +max_num_steps: 500 +event_sources: { + text_recognize: { + expect: "\\b(hide|short|bangs)\\b" + rect: { + x0: 0.2439 + y0: 0.0354 + x1: 0.9085 + y1: 0.1171 + } + } + id: 1 +} +event_sources: { + view_hierarchy_event: { + properties: { + property_name: "text" + pattern: "\\b(hide|short|bangs)\\b" + } + properties: { + property_name: "clickable" + pattern: "true" + } + selector: "#$\"search_plate\">#$\"search_src_text\"" + } + id: 2 +} +event_sources: { + log_event: { + filters: "jd:D" + pattern: "\\bmUrl is: https://www\\.wikihow\\.com/wikiHowTo\\?search=.*(hide|short|bangs).*" + } + id: 3 +} +event_sources: { + text_detect: { + expect: "How to Hide Short Bangs" + rect: { + y0: 0.19 + x1: 1.0 + y1: 0.3 + } + } + id: 5 +} +event_sources: { + log_event: { + filters: "jd:D" + pattern: "\\bmUrl is: https://www\\.wikihow\\.com/Hide-Short-Bangs" + } + id: 6 +} +event_sources: { + view_hierarchy_event: { + properties: { + property_name: "text" + pattern: "How to Hide Short Bangs" + } + selector: ".\"android.view.View\"#\"section_0\" .$\"TextView\"" + } + id: 7 +} +event_sources: { + text_detect: { + expect: "References" + rect: { + x1: 0.33 + y1: 1.0 + } + } + id: 9 +} +event_sources: { + log_event: { + filters: "jd:D" + pattern: "\\burl is: https://www\\.wikihow\\.com/Hide-Short-Bangs\\?wh_an=1&=1#References\\b" + } + id: 10 +} +event_slots: { + score_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + } + } + events: { + event: { + } + } + } + reward_listener: { + type: OR + events: { + event: { + type: OR + id: 4 + events: { + id: 1 + } + events: { + id: 2 + } + events: { + id: 3 + } + transformation: "y = 1" + repeatability: NONE + } + } + events: { + event: { + type: OR + id: 8 + events: { + id: 5 + } + events: { + id: 6 + } + events: { + id: 7 + } + transformation: "y = 1" + repeatability: NONE + } + } + events: { + event: { + type: OR + id: 11 + events: { + id: 9 + } + events: { + id: 10 + } + transformation: "y = 1" + repeatability: NONE + } + } + } + episode_end_listener: { + events: { + id: 11 + } + transformation: "y = True" + } + extra_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + } + } + events: { + event: { + } + } + } + json_extra_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + } + } + events: { + event: { + } + } + } + instruction_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + events: { + id: 4 + } + transformation: "y = [\'Access the article \"How to Hide Short Bangs\"\']" + } + } + events: { + event: { + } + } + events: { + event: { + events: { + id: 8 + } + transformation: "y = [\'Check the reference list\']" + } + } + events: { + event: { + } + } + } +} +command: "Search an article to learn how to hide short bangs." +command: "Then, access the article \"How to Hide Short Bangs\"" +command: "Then, check the reference list" +vocabulary: "short" +vocabulary: "hide" +vocabulary: "how to" +vocabulary: "bangs" diff --git a/open-world-set/how_to_behave_yourself-2.textproto b/open-world-set/how_to_behave_yourself-2.textproto new file mode 100644 index 0000000000000000000000000000000000000000..1cdc4ff560703e20e4318da7a75a9614c9a4e551 --- /dev/null +++ b/open-world-set/how_to_behave_yourself-2.textproto @@ -0,0 +1,272 @@ +id: "search_how_to_behave_yourself-article_behave yourself-rate_yes" +name: "WikiHow Search Task Primitive - Search how_to_behave_yourself, Access How to Behave Yourself, Rate Yes" +description: "A demo task primitive requiring to search WikiHow for a specific article.\nA demo task primitive requiring to access a specific article.\nA demo task primitive asking to rate yes for the article" +setup_steps: { + adb_call: { + install_apk: { + filesystem: { + path: "../wikiHow:万事指南_2.9.6_apkcombo.com.apk" + } + } + } +} +setup_steps: { + adb_call: { + rotate: { + } + } +} +reset_steps: { + adb_call: { + force_stop: { + package_name: "com.wikihow.wikihowapp" + } + } +} +reset_steps: { + adb_call: { + clear_cache: { + package_name: "com.wikihow.wikihowapp" + } + } +} +reset_steps: { + success_condition: { + num_retries: 10 + wait_for_app_screen: { + app_screen: { + activity: "com.wikihow.wikihowapp/com.wikihow.wikihowapp.MainTabActivity" + } + timeout_sec: 10.0 + } + } + adb_call: { + start_activity: { + full_activity: "com.wikihow.wikihowapp/com.wikihow.wikihowapp.MainTabActivity" + } + } +} +max_num_steps: 500 +event_sources: { + text_recognize: { + expect: "\\b(behave)\\b" + rect: { + x0: 0.2439 + y0: 0.0354 + x1: 0.9085 + y1: 0.1171 + } + } + id: 1 +} +event_sources: { + view_hierarchy_event: { + properties: { + property_name: "text" + pattern: "\\b(behave)\\b" + } + properties: { + property_name: "clickable" + pattern: "true" + } + selector: "#$\"search_plate\">#$\"search_src_text\"" + } + id: 2 +} +event_sources: { + log_event: { + filters: "jd:D" + pattern: "\\bmUrl is: https://www\\.wikihow\\.com/wikiHowTo\\?search=.*(behave).*" + } + id: 3 +} +event_sources: { + text_detect: { + expect: "How to Behave Yourself" + rect: { + y0: 0.19 + x1: 1.0 + y1: 0.3 + } + } + id: 5 +} +event_sources: { + log_event: { + filters: "jd:D" + pattern: "\\bmUrl is: https://www\\.wikihow\\.com/Behave-Yourself" + } + id: 6 +} +event_sources: { + view_hierarchy_event: { + properties: { + property_name: "text" + pattern: "How to Behave Yourself" + } + selector: ".\"android.view.View\"#\"section_0\" .$\"TextView\"" + } + id: 7 +} +event_sources: { + text_detect: { + expect: "Read more|like this one" + rect: { + x0: 0.1 + y0: 0.7 + x1: 0.94 + y1: 1.0 + } + } + id: 9 +} +event_sources: { + view_hierarchy_event: { + properties: { + property_name: "text" + pattern: "Read more articles|like this one" + } + selector: "#\"amp-rate-form-yes\" .\"android.widget.TextView\"" + } + id: 10 +} +event_slots: { + score_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + } + } + events: { + event: { + } + } + } + reward_listener: { + type: OR + events: { + event: { + type: OR + id: 4 + events: { + id: 1 + } + events: { + id: 2 + } + events: { + id: 3 + } + transformation: "y = 1" + repeatability: NONE + } + } + events: { + event: { + type: OR + id: 8 + events: { + id: 5 + } + events: { + id: 6 + } + events: { + id: 7 + } + transformation: "y = 1" + repeatability: NONE + } + } + events: { + event: { + type: OR + id: 11 + events: { + id: 9 + } + events: { + id: 10 + } + transformation: "y = 1" + repeatability: NONE + } + } + } + episode_end_listener: { + events: { + id: 11 + } + transformation: "y = True" + } + extra_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + } + } + events: { + event: { + } + } + } + json_extra_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + } + } + events: { + event: { + } + } + } + instruction_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + events: { + id: 4 + } + transformation: "y = [\'Access the article \"How to Behave Yourself\"\']" + } + } + events: { + event: { + } + } + events: { + event: { + events: { + id: 8 + } + transformation: "y = [\'Rate yes for the article.\']" + } + } + events: { + event: { + } + } + } +} +command: "Search an article to learn how to how to behave yourself." +command: "Then, access the article \"How to Behave Yourself\"" +command: "Then, rate yes for the article." +vocabulary: "behave" +vocabulary: "how to" diff --git a/open-world-set/how_to_find_true_happiness_and_peace-1.textproto b/open-world-set/how_to_find_true_happiness_and_peace-1.textproto new file mode 100644 index 0000000000000000000000000000000000000000..29fde63589ad199a1e404a2862cc92b03c5e581f --- /dev/null +++ b/open-world-set/how_to_find_true_happiness_and_peace-1.textproto @@ -0,0 +1,275 @@ +id: "search_how_to_find_true_happiness_and_peace-article_find true happiness and peace-rate_no" +name: "WikiHow Search Task Primitive - Search how_to_find_true_happiness_and_peace, Access How to Find True Happiness and Peace, Rate No" +description: "A demo task primitive requiring to search WikiHow for a specific article.\nA demo task primitive requiring to access a specific article.\nA demo task primitive asking to rate no for the article" +setup_steps: { + adb_call: { + install_apk: { + filesystem: { + path: "../wikiHow:万事指南_2.9.6_apkcombo.com.apk" + } + } + } +} +setup_steps: { + adb_call: { + rotate: { + } + } +} +reset_steps: { + adb_call: { + force_stop: { + package_name: "com.wikihow.wikihowapp" + } + } +} +reset_steps: { + adb_call: { + clear_cache: { + package_name: "com.wikihow.wikihowapp" + } + } +} +reset_steps: { + success_condition: { + num_retries: 10 + wait_for_app_screen: { + app_screen: { + activity: "com.wikihow.wikihowapp/com.wikihow.wikihowapp.MainTabActivity" + } + timeout_sec: 10.0 + } + } + adb_call: { + start_activity: { + full_activity: "com.wikihow.wikihowapp/com.wikihow.wikihowapp.MainTabActivity" + } + } +} +max_num_steps: 500 +event_sources: { + text_recognize: { + expect: "\\b(find|true|happiness|peace)\\b" + rect: { + x0: 0.2439 + y0: 0.0354 + x1: 0.9085 + y1: 0.1171 + } + } + id: 1 +} +event_sources: { + view_hierarchy_event: { + properties: { + property_name: "text" + pattern: "\\b(find|true|happiness|peace)\\b" + } + properties: { + property_name: "clickable" + pattern: "true" + } + selector: "#$\"search_plate\">#$\"search_src_text\"" + } + id: 2 +} +event_sources: { + log_event: { + filters: "jd:D" + pattern: "\\bmUrl is: https://www\\.wikihow\\.com/wikiHowTo\\?search=.*(find|true|happiness|peace).*" + } + id: 3 +} +event_sources: { + text_detect: { + expect: "How to Find True Happiness and Peace" + rect: { + y0: 0.19 + x1: 1.0 + y1: 0.3 + } + } + id: 5 +} +event_sources: { + log_event: { + filters: "jd:D" + pattern: "\\bmUrl is: https://www\\.wikihow\\.com/Find-True-Happiness-and-Peace" + } + id: 6 +} +event_sources: { + view_hierarchy_event: { + properties: { + property_name: "text" + pattern: "How to Find True Happiness and Peace" + } + selector: ".\"android.view.View\"#\"section_0\" .$\"TextView\"" + } + id: 7 +} +event_sources: { + text_detect: { + expect: "sorry|similar articles" + rect: { + x0: 0.069 + y0: 0.67 + x1: 0.945 + y1: 1.0 + } + } + id: 9 +} +event_sources: { + view_hierarchy_event: { + properties: { + property_name: "text" + pattern: "sorry|similar articles" + } + selector: "#\"amp-rate-form-no\" .\"android.widget.TextView\"" + } + id: 10 +} +event_slots: { + score_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + } + } + events: { + event: { + } + } + } + reward_listener: { + type: OR + events: { + event: { + type: OR + id: 4 + events: { + id: 1 + } + events: { + id: 2 + } + events: { + id: 3 + } + transformation: "y = 1" + repeatability: NONE + } + } + events: { + event: { + type: OR + id: 8 + events: { + id: 5 + } + events: { + id: 6 + } + events: { + id: 7 + } + transformation: "y = 1" + repeatability: NONE + } + } + events: { + event: { + type: OR + id: 11 + events: { + id: 9 + } + events: { + id: 10 + } + transformation: "y = 1" + repeatability: NONE + } + } + } + episode_end_listener: { + events: { + id: 11 + } + transformation: "y = True" + } + extra_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + } + } + events: { + event: { + } + } + } + json_extra_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + } + } + events: { + event: { + } + } + } + instruction_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + events: { + id: 4 + } + transformation: "y = [\'Access the article \"How to Find True Happiness and Peace\"\']" + } + } + events: { + event: { + } + } + events: { + event: { + events: { + id: 8 + } + transformation: "y = [\'Rate no for the article.\']" + } + } + events: { + event: { + } + } + } +} +command: "Search an article to learn how to how to find true happiness and peace." +command: "Then, access the article \"How to Find True Happiness and Peace\"" +command: "Then, rate no for the article." +vocabulary: "how to" +vocabulary: "peace" +vocabulary: "happiness" +vocabulary: "find" +vocabulary: "true" diff --git a/open-world-set/how_to_import_from_china_into_the_usa-5.textproto b/open-world-set/how_to_import_from_china_into_the_usa-5.textproto new file mode 100644 index 0000000000000000000000000000000000000000..e2db337b05df737daef1a31307750f31c4956e84 --- /dev/null +++ b/open-world-set/how_to_import_from_china_into_the_usa-5.textproto @@ -0,0 +1,387 @@ +id: "search_how_to_import_from_china_into_the_usa-article_import from china into the usa-bookmark_import from china into the usa" +name: "WikiHow Search Task Primitive - Search how_to_import_from_china_into_the_usa, Access How to Import from China into the USA, Bookmark How to Import from China into the USA" +description: "A demo task primitive requiring to search WikiHow for a specific article.\nA demo task primitive requiring to access a specific article.\nA demo task primitive asking to bookmark a specific article" +setup_steps: { + adb_call: { + install_apk: { + filesystem: { + path: "../wikiHow:万事指南_2.9.6_apkcombo.com.apk" + } + } + } +} +setup_steps: { + adb_call: { + rotate: { + } + } +} +reset_steps: { + adb_call: { + force_stop: { + package_name: "com.wikihow.wikihowapp" + } + } +} +reset_steps: { + adb_call: { + clear_cache: { + package_name: "com.wikihow.wikihowapp" + } + } +} +reset_steps: { + success_condition: { + num_retries: 10 + wait_for_app_screen: { + app_screen: { + activity: "com.wikihow.wikihowapp/com.wikihow.wikihowapp.MainTabActivity" + } + timeout_sec: 10.0 + } + } + adb_call: { + start_activity: { + full_activity: "com.wikihow.wikihowapp/com.wikihow.wikihowapp.MainTabActivity" + } + } +} +max_num_steps: 500 +event_sources: { + text_recognize: { + expect: "\\b(import|china|usa)\\b" + rect: { + x0: 0.2439 + y0: 0.0354 + x1: 0.9085 + y1: 0.1171 + } + } + id: 1 +} +event_sources: { + view_hierarchy_event: { + properties: { + property_name: "text" + pattern: "\\b(import|china|usa)\\b" + } + properties: { + property_name: "clickable" + pattern: "true" + } + selector: "#$\"search_plate\">#$\"search_src_text\"" + } + id: 2 +} +event_sources: { + log_event: { + filters: "jd:D" + pattern: "\\bmUrl is: https://www\\.wikihow\\.com/wikiHowTo\\?search=.*(import|china|usa).*" + } + id: 3 +} +event_sources: { + text_detect: { + expect: "How to Import from China into the USA" + rect: { + y0: 0.19 + x1: 1.0 + y1: 0.3 + } + } + id: 5 +} +event_sources: { + log_event: { + filters: "jd:D" + pattern: "\\bmUrl is: https://www\\.wikihow\\.com/Import-from-China-into-the-USA" + } + id: 6 +} +event_sources: { + view_hierarchy_event: { + properties: { + property_name: "text" + pattern: "How to Import from China into the USA" + } + selector: ".\"android.view.View\"#\"section_0\" .$\"TextView\"" + } + id: 7 +} +event_sources: { + text_detect: { + expect: "Bookmark" + rect: { + x0: 0.459 + y0: 0.04 + x1: 0.98 + y1: 0.105 + } + } + id: 9 +} +event_sources: { + view_hierarchy_event: { + properties: { + property_name: "text" + pattern: "Bookmark" + } + selector: "#$\"content\" #\"com.wikihow.wikihowapp:id/title\".$\"TextView\"" + } + id: 10 +} +event_sources: { + text_detect: { + expect: "Remove bookmark" + rect: { + x0: 0.518 + y0: 0.04 + x1: 0.98 + y1: 0.105 + } + } + id: 11 +} +event_sources: { + view_hierarchy_event: { + properties: { + property_name: "text" + pattern: "Remove bookmark" + } + selector: "#$\"content\" #\"com.wikihow.wikihowapp:id/title\".$\"TextView\"" + } + id: 12 +} +event_sources: { + text_detect: { + expect: "Import from China into the USA" + rect: { + x0: 0.19 + x1: 1.0 + y1: 1.0 + } + } + id: 13 +} +event_sources: { + log_event: { + filters: "jd:D" + pattern: "\\bImageLoader: https://www\\.wikihow\\.com/images/thumb/\\w/\\w\\w/Import-from-China-into-the-USA[-\\w]*\\.(jpg|png)\\b" + } + id: 14 +} +event_sources: { + view_hierarchy_event: { + properties: { + property_name: "text" + pattern: "Bookmarks" + } + selector: "#$\"wikihow_toolbar\">.$\"TextView\"#\"com.wikihow.wikihowapp:id/wikihow_toolbar_title\"" + } + id: 15 +} +event_sources: { + view_hierarchy_event: { + properties: { + property_name: "text" + pattern: "Import from China into the USA" + } + selector: "#$\"drawer_layout\" .$\"TextView\"#\"com.wikihow.wikihowapp:id/options_title\"" + } + id: 16 +} +event_slots: { + score_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + } + } + events: { + event: { + } + } + } + reward_listener: { + type: OR + events: { + event: { + type: OR + id: 4 + events: { + id: 1 + } + events: { + id: 2 + } + events: { + id: 3 + } + transformation: "y = 1" + repeatability: NONE + } + } + events: { + event: { + type: OR + id: 8 + events: { + id: 5 + } + events: { + id: 6 + } + events: { + id: 7 + } + transformation: "y = 1" + repeatability: NONE + } + } + events: { + event: { + type: OR + events: { + event: { + type: OR + id: 17 + events: { + id: 9 + } + events: { + id: 10 + } + transformation: "y = 1" + repeatability: NONE + } + } + events: { + event: { + type: OR + id: 18 + events: { + id: 11 + } + events: { + id: 12 + } + transformation: "y = 1" + repeatability: NONE + } + } + events: { + event: { + type: OR + id: 19 + events: { + id: 13 + } + events: { + id: 14 + } + events: { + event: { + type: AND + events: { + id: 15 + } + events: { + id: 16 + } + transformation: "y = min(map(len, x))" + } + } + transformation: "y = 1 if not isinstance(x, int) else x" + repeatability: NONE + } + } + } + } + } + episode_end_listener: { + type: OR + events: { + id: 18 + } + events: { + id: 19 + } + transformation: "y = True" + } + extra_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + } + } + events: { + event: { + } + } + } + json_extra_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + } + } + events: { + event: { + } + } + } + instruction_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + events: { + id: 4 + } + transformation: "y = [\'Access the article \"How to Import from China into the USA\"\']" + } + } + events: { + event: { + } + } + events: { + event: { + events: { + id: 8 + } + transformation: "y = [\'Bookmark the article and check the bookmark.\']" + } + } + events: { + event: { + events: { + id: 17 + } + transformation: "y = \"After bookmarking the article, go check the bookmark in the bookmark list\"" + } + } + } +} +command: "Search an article to learn how to how to import from china into the usa." +command: "Then, access the article \"How to Import from China into the USA\"" +command: "Then, bookmark the article and check the bookmark." +vocabulary: "usa" +vocabulary: "import" +vocabulary: "china" +vocabulary: "how to" diff --git a/open-world-set/how_to_make_a_homemade_weight_set-3.textproto b/open-world-set/how_to_make_a_homemade_weight_set-3.textproto new file mode 100644 index 0000000000000000000000000000000000000000..74bfef82a5bb93c610451efae7575d039bf56347 --- /dev/null +++ b/open-world-set/how_to_make_a_homemade_weight_set-3.textproto @@ -0,0 +1,275 @@ +id: "search_how_to_make_a_homemade_weight_set-article_make a homemade weight set-share_article" +name: "WikiHow Search Task Primitive - Search how_to_make_a_homemade_weight_set, Access How to Make a Homemade Weight Set, Share Article" +description: "A demo task primitive requiring to search WikiHow for a specific article.\nA demo task primitive requiring to access a specific article.\nA demo task primitive asking to share the article" +setup_steps: { + adb_call: { + install_apk: { + filesystem: { + path: "../wikiHow:万事指南_2.9.6_apkcombo.com.apk" + } + } + } +} +setup_steps: { + adb_call: { + rotate: { + } + } +} +reset_steps: { + adb_call: { + force_stop: { + package_name: "com.wikihow.wikihowapp" + } + } +} +reset_steps: { + adb_call: { + clear_cache: { + package_name: "com.wikihow.wikihowapp" + } + } +} +reset_steps: { + success_condition: { + num_retries: 10 + wait_for_app_screen: { + app_screen: { + activity: "com.wikihow.wikihowapp/com.wikihow.wikihowapp.MainTabActivity" + } + timeout_sec: 10.0 + } + } + adb_call: { + start_activity: { + full_activity: "com.wikihow.wikihowapp/com.wikihow.wikihowapp.MainTabActivity" + } + } +} +max_num_steps: 500 +event_sources: { + text_recognize: { + expect: "\\b(make|homemade|weight|set)\\b" + rect: { + x0: 0.2439 + y0: 0.0354 + x1: 0.9085 + y1: 0.1171 + } + } + id: 1 +} +event_sources: { + view_hierarchy_event: { + properties: { + property_name: "text" + pattern: "\\b(make|homemade|weight|set)\\b" + } + properties: { + property_name: "clickable" + pattern: "true" + } + selector: "#$\"search_plate\">#$\"search_src_text\"" + } + id: 2 +} +event_sources: { + log_event: { + filters: "jd:D" + pattern: "\\bmUrl is: https://www\\.wikihow\\.com/wikiHowTo\\?search=.*(make|homemade|weight|set).*" + } + id: 3 +} +event_sources: { + text_detect: { + expect: "How to Make a Homemade Weight Set" + rect: { + y0: 0.19 + x1: 1.0 + y1: 0.3 + } + } + id: 5 +} +event_sources: { + log_event: { + filters: "jd:D" + pattern: "\\bmUrl is: https://www\\.wikihow\\.com/Make-a-Homemade-Weight-Set" + } + id: 6 +} +event_sources: { + view_hierarchy_event: { + properties: { + property_name: "text" + pattern: "How to Make a Homemade Weight Set" + } + selector: ".\"android.view.View\"#\"section_0\" .$\"TextView\"" + } + id: 7 +} +event_sources: { + text_detect: { + expect: "Share article" + rect: { + x0: 0.5306 + y0: 0.042 + x1: 0.8633 + y1: 0.1 + } + } + id: 9 +} +event_sources: { + view_hierarchy_event: { + properties: { + property_name: "text" + pattern: "Share article" + } + selector: ".$\"TextView\"#\"android:id/title\"" + } + id: 10 +} +event_slots: { + score_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + } + } + events: { + event: { + } + } + } + reward_listener: { + type: OR + events: { + event: { + type: OR + id: 4 + events: { + id: 1 + } + events: { + id: 2 + } + events: { + id: 3 + } + transformation: "y = 1" + repeatability: NONE + } + } + events: { + event: { + type: OR + id: 8 + events: { + id: 5 + } + events: { + id: 6 + } + events: { + id: 7 + } + transformation: "y = 1" + repeatability: NONE + } + } + events: { + event: { + type: OR + id: 11 + events: { + id: 9 + } + events: { + id: 10 + } + transformation: "y = 1" + repeatability: NONE + } + } + } + episode_end_listener: { + events: { + id: 11 + } + transformation: "y = True" + } + extra_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + } + } + events: { + event: { + } + } + } + json_extra_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + } + } + events: { + event: { + } + } + } + instruction_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + events: { + id: 4 + } + transformation: "y = [\'Access the article \"How to Make a Homemade Weight Set\"\']" + } + } + events: { + event: { + } + } + events: { + event: { + events: { + id: 8 + } + transformation: "y = [\'Try to share the article.\']" + } + } + events: { + event: { + } + } + } +} +command: "Search an article to learn how to how to make a homemade weight set." +command: "Then, access the article \"How to Make a Homemade Weight Set\"" +command: "Then, try to share the article." +vocabulary: "weight" +vocabulary: "set" +vocabulary: "make" +vocabulary: "homemade" +vocabulary: "how to" diff --git a/open-world-set/how_to_make_bottle_cap_art-10.textproto b/open-world-set/how_to_make_bottle_cap_art-10.textproto new file mode 100644 index 0000000000000000000000000000000000000000..9138d8db3c3af07f037d41020e2d5bba5a193ab0 --- /dev/null +++ b/open-world-set/how_to_make_bottle_cap_art-10.textproto @@ -0,0 +1,254 @@ +id: "search_how_to_make_bottle_cap_art-article_make bottle cap art-needed_items_what is needed to make bottle cap art?" +name: "WikiHow Search Task Primitive - Search how_to_make_bottle_cap_art, Access How to Make Bottle Cap Art, What is needed to Make Bottle Cap Art?" +description: "A demo task primitive requiring to search WikiHow for a specific article.\nA demo task primitive requiring to access a specific article.\nA Q&A task requiring to summarize the needed items" +setup_steps: { + adb_call: { + install_apk: { + filesystem: { + path: "../wikiHow:万事指南_2.9.6_apkcombo.com.apk" + } + } + } +} +setup_steps: { + adb_call: { + rotate: { + } + } +} +reset_steps: { + adb_call: { + force_stop: { + package_name: "com.wikihow.wikihowapp" + } + } +} +reset_steps: { + adb_call: { + clear_cache: { + package_name: "com.wikihow.wikihowapp" + } + } +} +reset_steps: { + success_condition: { + num_retries: 10 + wait_for_app_screen: { + app_screen: { + activity: "com.wikihow.wikihowapp/com.wikihow.wikihowapp.MainTabActivity" + } + timeout_sec: 10.0 + } + } + adb_call: { + start_activity: { + full_activity: "com.wikihow.wikihowapp/com.wikihow.wikihowapp.MainTabActivity" + } + } +} +max_num_steps: 500 +event_sources: { + text_recognize: { + expect: "\\b(make|bottle|cap|art)\\b" + rect: { + x0: 0.2439 + y0: 0.0354 + x1: 0.9085 + y1: 0.1171 + } + } + id: 1 +} +event_sources: { + view_hierarchy_event: { + properties: { + property_name: "text" + pattern: "\\b(make|bottle|cap|art)\\b" + } + properties: { + property_name: "clickable" + pattern: "true" + } + selector: "#$\"search_plate\">#$\"search_src_text\"" + } + id: 2 +} +event_sources: { + log_event: { + filters: "jd:D" + pattern: "\\bmUrl is: https://www\\.wikihow\\.com/wikiHowTo\\?search=.*(make|bottle|cap|art).*" + } + id: 3 +} +event_sources: { + text_detect: { + expect: "How to Make Bottle Cap Art" + rect: { + y0: 0.19 + x1: 1.0 + y1: 0.3 + } + } + id: 5 +} +event_sources: { + log_event: { + filters: "jd:D" + pattern: "\\bmUrl is: https://www\\.wikihow\\.com/Make-Bottle-Cap-Art" + } + id: 6 +} +event_sources: { + view_hierarchy_event: { + properties: { + property_name: "text" + pattern: "How to Make Bottle Cap Art" + } + selector: ".\"android.view.View\"#\"section_0\" .$\"TextView\"" + } + id: 7 +} +event_sources: { + response_event: { + pattern: "Making Bottle Cap Canvas Art\n • Canvas\n • Acrylic craft paint or spray paint\n • Wide, flat paintbrushes (for acrylic paint)\n • Metal bottle caps\n • Hammer\n • Hot glue or industrial strength glue\n\nCreating a Bottle Cap Tray\n • Wooden tray\n • Acrylic craft paint\n • Wide, flat paintbrushes\n • Painter\'s tape\n • Grout or clear epoxy resin\n • Grout float (if using grout)\n • Sponge (if using grout)\n • Metal bottle caps\n • Liquid nails, hot glue, or industrial strength glue" + mode: SBERT + } + id: 9 +} +event_slots: { + score_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + } + } + events: { + event: { + events: { + id: 9 + } + } + } + } + reward_listener: { + type: OR + events: { + event: { + type: OR + id: 4 + events: { + id: 1 + } + events: { + id: 2 + } + events: { + id: 3 + } + transformation: "y = 1" + repeatability: NONE + } + } + events: { + event: { + type: OR + id: 8 + events: { + id: 5 + } + events: { + id: 6 + } + events: { + id: 7 + } + transformation: "y = 1" + repeatability: NONE + } + } + events: { + event: { + } + } + } + episode_end_listener: { + events: { + id: 9 + } + transformation: "y = x>=0.7" + } + extra_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + } + } + events: { + event: { + } + } + } + json_extra_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + } + } + events: { + event: { + } + } + } + instruction_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + events: { + id: 4 + } + transformation: "y = [\'Access the article \"How to Make Bottle Cap Art\"\']" + } + } + events: { + event: { + } + } + events: { + event: { + events: { + id: 8 + } + transformation: "y = [\'Read the article and summarize the needed items for the task.\', \'The summary should be given in an unnumbered list.\']" + } + } + events: { + event: { + } + } + } +} +command: "Search an article to learn how to make bottle cap art." +command: "Then, access the article \"How to Make Bottle Cap Art\"" +command: "Then, read the article and summarize the needed items for the task." +command: "The summary should be given in an unnumbered list." +vocabulary: "bottle" +vocabulary: "art" +vocabulary: "cap" +vocabulary: "make" +vocabulary: "how to" diff --git a/open-world-set/how_to_make_pupusas-11.textproto b/open-world-set/how_to_make_pupusas-11.textproto new file mode 100644 index 0000000000000000000000000000000000000000..ef36c09e0cbca873e177c6004292f66b29d807dc --- /dev/null +++ b/open-world-set/how_to_make_pupusas-11.textproto @@ -0,0 +1,252 @@ +id: "search_how_to_make_pupusas-article_make pupusas-ingredients_what are the ingredients to make pupusas?" +name: "WikiHow Search Task Primitive - Search how_to_make_pupusas, Access How to Make Pupusas, What are the ingredients to Make Pupusas?" +description: "A demo task primitive requiring to search WikiHow for a specific article.\nA demo task primitive requiring to access a specific article.\nA Q&A task requiring to summarize the ingredients" +setup_steps: { + adb_call: { + install_apk: { + filesystem: { + path: "../wikiHow:万事指南_2.9.6_apkcombo.com.apk" + } + } + } +} +setup_steps: { + adb_call: { + rotate: { + } + } +} +reset_steps: { + adb_call: { + force_stop: { + package_name: "com.wikihow.wikihowapp" + } + } +} +reset_steps: { + adb_call: { + clear_cache: { + package_name: "com.wikihow.wikihowapp" + } + } +} +reset_steps: { + success_condition: { + num_retries: 10 + wait_for_app_screen: { + app_screen: { + activity: "com.wikihow.wikihowapp/com.wikihow.wikihowapp.MainTabActivity" + } + timeout_sec: 10.0 + } + } + adb_call: { + start_activity: { + full_activity: "com.wikihow.wikihowapp/com.wikihow.wikihowapp.MainTabActivity" + } + } +} +max_num_steps: 500 +event_sources: { + text_recognize: { + expect: "\\b(make|pupusas)\\b" + rect: { + x0: 0.2439 + y0: 0.0354 + x1: 0.9085 + y1: 0.1171 + } + } + id: 1 +} +event_sources: { + view_hierarchy_event: { + properties: { + property_name: "text" + pattern: "\\b(make|pupusas)\\b" + } + properties: { + property_name: "clickable" + pattern: "true" + } + selector: "#$\"search_plate\">#$\"search_src_text\"" + } + id: 2 +} +event_sources: { + log_event: { + filters: "jd:D" + pattern: "\\bmUrl is: https://www\\.wikihow\\.com/wikiHowTo\\?search=.*(make|pupusas).*" + } + id: 3 +} +event_sources: { + text_detect: { + expect: "How to Make Pupusas" + rect: { + y0: 0.19 + x1: 1.0 + y1: 0.3 + } + } + id: 5 +} +event_sources: { + log_event: { + filters: "jd:D" + pattern: "\\bmUrl is: https://www\\.wikihow\\.com/Make-Pupusas" + } + id: 6 +} +event_sources: { + view_hierarchy_event: { + properties: { + property_name: "text" + pattern: "How to Make Pupusas" + } + selector: ".\"android.view.View\"#\"section_0\" .$\"TextView\"" + } + id: 7 +} +event_sources: { + response_event: { + pattern: " • Pupusas\n • 2 cups masa harina\n • pinch of salt\n • 1 1/3 cups warm water\n • 1 cup grated white cheese\n • vegetable oil, for frying" + mode: SBERT + } + id: 9 +} +event_slots: { + score_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + } + } + events: { + event: { + events: { + id: 9 + } + } + } + } + reward_listener: { + type: OR + events: { + event: { + type: OR + id: 4 + events: { + id: 1 + } + events: { + id: 2 + } + events: { + id: 3 + } + transformation: "y = 1" + repeatability: NONE + } + } + events: { + event: { + type: OR + id: 8 + events: { + id: 5 + } + events: { + id: 6 + } + events: { + id: 7 + } + transformation: "y = 1" + repeatability: NONE + } + } + events: { + event: { + } + } + } + episode_end_listener: { + events: { + id: 9 + } + transformation: "y = x>=0.7" + } + extra_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + } + } + events: { + event: { + } + } + } + json_extra_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + } + } + events: { + event: { + } + } + } + instruction_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + events: { + id: 4 + } + transformation: "y = [\'Access the article \"How to Make Pupusas\"\']" + } + } + events: { + event: { + } + } + events: { + event: { + events: { + id: 8 + } + transformation: "y = [\'Read the article and summarize the needed ingredients.\', \'The summary should be given in an unnumbered list.\']" + } + } + events: { + event: { + } + } + } +} +command: "Search an article to learn how to make pupusas." +command: "Then, access the article \"How to Make Pupusas\"" +command: "Then, read the article and summarize the needed ingredients." +command: "The summary should be given in an unnumbered list." +vocabulary: "make" +vocabulary: "pupusas" +vocabulary: "how to" diff --git a/open-world-set/how_to_rip_dvd_audio_to_mp3_using_vlc_media_player-9.textproto b/open-world-set/how_to_rip_dvd_audio_to_mp3_using_vlc_media_player-9.textproto new file mode 100644 index 0000000000000000000000000000000000000000..a99688e6343bc253e307a4fc7dd803916881dfd5 --- /dev/null +++ b/open-world-set/how_to_rip_dvd_audio_to_mp3_using_vlc_media_player-9.textproto @@ -0,0 +1,258 @@ +id: "search_how_to_rip_dvd_audio_to_mp3_using_vlc_media_player-article_rip dvd audio to mp3 using vlc media player-stepped_summary_what are the steps to rip dvd audio to mp3 using vlc media player?" +name: "WikiHow Search Task Primitive - Search how_to_rip_dvd_audio_to_mp3_using_vlc_media_player, Access How to Rip DVD Audio to MP3 Using VLC Media Player, What are the steps to Rip DVD Audio to MP3 Using VLC Media Player?" +description: "A demo task primitive requiring to search WikiHow for a specific article.\nA demo task primitive requiring to access a specific article.\nA Q&A task requiring to summarize the article in steps" +setup_steps: { + adb_call: { + install_apk: { + filesystem: { + path: "../wikiHow:万事指南_2.9.6_apkcombo.com.apk" + } + } + } +} +setup_steps: { + adb_call: { + rotate: { + } + } +} +reset_steps: { + adb_call: { + force_stop: { + package_name: "com.wikihow.wikihowapp" + } + } +} +reset_steps: { + adb_call: { + clear_cache: { + package_name: "com.wikihow.wikihowapp" + } + } +} +reset_steps: { + success_condition: { + num_retries: 10 + wait_for_app_screen: { + app_screen: { + activity: "com.wikihow.wikihowapp/com.wikihow.wikihowapp.MainTabActivity" + } + timeout_sec: 10.0 + } + } + adb_call: { + start_activity: { + full_activity: "com.wikihow.wikihowapp/com.wikihow.wikihowapp.MainTabActivity" + } + } +} +max_num_steps: 500 +event_sources: { + text_recognize: { + expect: "\\b(rip|dvd|audio|mp3|using|vlc|media|player)\\b" + rect: { + x0: 0.2439 + y0: 0.0354 + x1: 0.9085 + y1: 0.1171 + } + } + id: 1 +} +event_sources: { + view_hierarchy_event: { + properties: { + property_name: "text" + pattern: "\\b(rip|dvd|audio|mp3|using|vlc|media|player)\\b" + } + properties: { + property_name: "clickable" + pattern: "true" + } + selector: "#$\"search_plate\">#$\"search_src_text\"" + } + id: 2 +} +event_sources: { + log_event: { + filters: "jd:D" + pattern: "\\bmUrl is: https://www\\.wikihow\\.com/wikiHowTo\\?search=.*(rip|dvd|audio|mp3|using|vlc|media|player).*" + } + id: 3 +} +event_sources: { + text_detect: { + expect: "How to Rip DVD Audio to MP3 Using VLC Media Player" + rect: { + y0: 0.19 + x1: 1.0 + y1: 0.3 + } + } + id: 5 +} +event_sources: { + log_event: { + filters: "jd:D" + pattern: "\\bmUrl is: https://www\\.wikihow\\.com/Rip-DVD-Audio-to-MP3-Using-VLC-Media-Player" + } + id: 6 +} +event_sources: { + view_hierarchy_event: { + properties: { + property_name: "text" + pattern: "How to Rip DVD Audio to MP3 Using VLC Media Player" + } + selector: ".\"android.view.View\"#\"section_0\" .$\"TextView\"" + } + id: 7 +} +event_sources: { + response_event: { + pattern: "1. Open VLC.\n2. Click Media.\n3. Click Open Disc.\n4. Select No disc menus.\n5. Click the down-arrow next to \"Play.\"\n6. Click Convert.\n7. Select Audio – MP3 as the output file type.\n8. Click Browse.\n9. Enter a file name and click Save.\n10. Click Start. " + mode: SBERT + } + id: 9 +} +event_slots: { + score_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + } + } + events: { + event: { + events: { + id: 9 + } + } + } + } + reward_listener: { + type: OR + events: { + event: { + type: OR + id: 4 + events: { + id: 1 + } + events: { + id: 2 + } + events: { + id: 3 + } + transformation: "y = 1" + repeatability: NONE + } + } + events: { + event: { + type: OR + id: 8 + events: { + id: 5 + } + events: { + id: 6 + } + events: { + id: 7 + } + transformation: "y = 1" + repeatability: NONE + } + } + events: { + event: { + } + } + } + episode_end_listener: { + events: { + id: 9 + } + transformation: "y = x>=0.7" + } + extra_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + } + } + events: { + event: { + } + } + } + json_extra_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + } + } + events: { + event: { + } + } + } + instruction_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + events: { + id: 4 + } + transformation: "y = [\'Access the article \"How to Rip DVD Audio to MP3 Using VLC Media Player\"\']" + } + } + events: { + event: { + } + } + events: { + event: { + events: { + id: 8 + } + transformation: "y = [\'Read the article and give a summary of each steps.\', \'The summaries should be given in a numbered list.\']" + } + } + events: { + event: { + } + } + } +} +command: "Search an article to learn how to rip dvd audio to mp3 using vlc media player." +command: "Then, access the article \"How to Rip DVD Audio to MP3 Using VLC Media Player\"" +command: "Then, read the article and give a summary of each steps." +command: "The summaries should be given in a numbered list." +vocabulary: "vlc" +vocabulary: "dvd" +vocabulary: "using" +vocabulary: "mp3" +vocabulary: "how to" +vocabulary: "media" +vocabulary: "rip" +vocabulary: "audio" +vocabulary: "player" diff --git a/open-world-set/how_to_wear_high_waisted_shorts-12.textproto b/open-world-set/how_to_wear_high_waisted_shorts-12.textproto new file mode 100644 index 0000000000000000000000000000000000000000..2a911b7038e96a6971ef371e354ffbd58c3de0fe --- /dev/null +++ b/open-world-set/how_to_wear_high_waisted_shorts-12.textproto @@ -0,0 +1,254 @@ +id: "search_how_to_wear_high_waisted_shorts-article_wear high waisted shorts-summary_wear high waisted shorts?" +name: "WikiHow Search Task Primitive - Search how_to_wear_high_waisted_shorts, Access How to Wear High Waisted Shorts, How To Wear High Waisted Shorts?" +description: "A demo task primitive requiring to search WikiHow for a specific article.\nA demo task primitive requiring to access a specific article.\nA Q&A task requiring to summarize the article" +setup_steps: { + adb_call: { + install_apk: { + filesystem: { + path: "../wikiHow:万事指南_2.9.6_apkcombo.com.apk" + } + } + } +} +setup_steps: { + adb_call: { + rotate: { + } + } +} +reset_steps: { + adb_call: { + force_stop: { + package_name: "com.wikihow.wikihowapp" + } + } +} +reset_steps: { + adb_call: { + clear_cache: { + package_name: "com.wikihow.wikihowapp" + } + } +} +reset_steps: { + success_condition: { + num_retries: 10 + wait_for_app_screen: { + app_screen: { + activity: "com.wikihow.wikihowapp/com.wikihow.wikihowapp.MainTabActivity" + } + timeout_sec: 10.0 + } + } + adb_call: { + start_activity: { + full_activity: "com.wikihow.wikihowapp/com.wikihow.wikihowapp.MainTabActivity" + } + } +} +max_num_steps: 500 +event_sources: { + text_recognize: { + expect: "\\b(wear|high|waisted|shorts)\\b" + rect: { + x0: 0.2439 + y0: 0.0354 + x1: 0.9085 + y1: 0.1171 + } + } + id: 1 +} +event_sources: { + view_hierarchy_event: { + properties: { + property_name: "text" + pattern: "\\b(wear|high|waisted|shorts)\\b" + } + properties: { + property_name: "clickable" + pattern: "true" + } + selector: "#$\"search_plate\">#$\"search_src_text\"" + } + id: 2 +} +event_sources: { + log_event: { + filters: "jd:D" + pattern: "\\bmUrl is: https://www\\.wikihow\\.com/wikiHowTo\\?search=.*(wear|high|waisted|shorts).*" + } + id: 3 +} +event_sources: { + text_detect: { + expect: "How to Wear High Waisted Shorts" + rect: { + y0: 0.19 + x1: 1.0 + y1: 0.3 + } + } + id: 5 +} +event_sources: { + log_event: { + filters: "jd:D" + pattern: "\\bmUrl is: https://www\\.wikihow\\.com/Wear-High-Waisted-Shorts" + } + id: 6 +} +event_sources: { + view_hierarchy_event: { + properties: { + property_name: "text" + pattern: "How to Wear High Waisted Shorts" + } + selector: ".\"android.view.View\"#\"section_0\" .$\"TextView\"" + } + id: 7 +} +event_sources: { + response_event: { + pattern: "High-waisted shorts can be a great fashion item for warm days in the spring or summer. Jean shorts are a good option if you want a laid back look, but you could go for a fabric pair if you’ll be wearing them on a night out. If you want to show off the high waist band, tuck your top or T-shirt into your shorts. Another way you can show off your waist is to add a belt to your outfit to draw attention to the high waistband. You can be more daring by pairing your shorts with a crop top. For a dressier occasion, combine your shorts with a loose blouse, which will contrast well with the tight waist. You can even wear high waisted shorts for some extra cover if you\'re wearing a swimsuit to the beach." + mode: SBERT + } + id: 9 +} +event_slots: { + score_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + } + } + events: { + event: { + events: { + id: 9 + } + } + } + } + reward_listener: { + type: OR + events: { + event: { + type: OR + id: 4 + events: { + id: 1 + } + events: { + id: 2 + } + events: { + id: 3 + } + transformation: "y = 1" + repeatability: NONE + } + } + events: { + event: { + type: OR + id: 8 + events: { + id: 5 + } + events: { + id: 6 + } + events: { + id: 7 + } + transformation: "y = 1" + repeatability: NONE + } + } + events: { + event: { + } + } + } + episode_end_listener: { + events: { + id: 9 + } + transformation: "y = x>=0.7" + } + extra_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + } + } + events: { + event: { + } + } + } + json_extra_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + } + } + events: { + event: { + } + } + } + instruction_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + events: { + id: 4 + } + transformation: "y = [\'Access the article \"How to Wear High Waisted Shorts\"\']" + } + } + events: { + event: { + } + } + events: { + event: { + events: { + id: 8 + } + transformation: "y = [\'Read the article and answer the question concisely.\', \'My question is: How To Wear High Waisted Shorts??\']" + } + } + events: { + event: { + } + } + } +} +command: "Search an article to learn how to wear high waisted shorts." +command: "Then, access the article \"How to Wear High Waisted Shorts\"" +command: "Then, read the article and answer the question concisely." +command: "My question is: How To Wear High Waisted Shorts??" +vocabulary: "waisted" +vocabulary: "shorts" +vocabulary: "high" +vocabulary: "wear" +vocabulary: "how to" diff --git a/open-world-set/how_to_write_a_video_game_review-12.textproto b/open-world-set/how_to_write_a_video_game_review-12.textproto new file mode 100644 index 0000000000000000000000000000000000000000..b55bc003474adb3bf3d906817613b498890603ee --- /dev/null +++ b/open-world-set/how_to_write_a_video_game_review-12.textproto @@ -0,0 +1,254 @@ +id: "search_how_to_write_a_video_game_review-article_write a video game review-summary_write a video game review?" +name: "WikiHow Search Task Primitive - Search how_to_write_a_video_game_review, Access How to Write a Video Game Review, How To Write a Video Game Review?" +description: "A demo task primitive requiring to search WikiHow for a specific article.\nA demo task primitive requiring to access a specific article.\nA Q&A task requiring to summarize the article" +setup_steps: { + adb_call: { + install_apk: { + filesystem: { + path: "../wikiHow:万事指南_2.9.6_apkcombo.com.apk" + } + } + } +} +setup_steps: { + adb_call: { + rotate: { + } + } +} +reset_steps: { + adb_call: { + force_stop: { + package_name: "com.wikihow.wikihowapp" + } + } +} +reset_steps: { + adb_call: { + clear_cache: { + package_name: "com.wikihow.wikihowapp" + } + } +} +reset_steps: { + success_condition: { + num_retries: 10 + wait_for_app_screen: { + app_screen: { + activity: "com.wikihow.wikihowapp/com.wikihow.wikihowapp.MainTabActivity" + } + timeout_sec: 10.0 + } + } + adb_call: { + start_activity: { + full_activity: "com.wikihow.wikihowapp/com.wikihow.wikihowapp.MainTabActivity" + } + } +} +max_num_steps: 500 +event_sources: { + text_recognize: { + expect: "\\b(write|video|game|review)\\b" + rect: { + x0: 0.2439 + y0: 0.0354 + x1: 0.9085 + y1: 0.1171 + } + } + id: 1 +} +event_sources: { + view_hierarchy_event: { + properties: { + property_name: "text" + pattern: "\\b(write|video|game|review)\\b" + } + properties: { + property_name: "clickable" + pattern: "true" + } + selector: "#$\"search_plate\">#$\"search_src_text\"" + } + id: 2 +} +event_sources: { + log_event: { + filters: "jd:D" + pattern: "\\bmUrl is: https://www\\.wikihow\\.com/wikiHowTo\\?search=.*(write|video|game|review).*" + } + id: 3 +} +event_sources: { + text_detect: { + expect: "How to Write a Video Game Review" + rect: { + y0: 0.19 + x1: 1.0 + y1: 0.3 + } + } + id: 5 +} +event_sources: { + log_event: { + filters: "jd:D" + pattern: "\\bmUrl is: https://www\\.wikihow\\.com/Write-a-Video-Game-Review" + } + id: 6 +} +event_sources: { + view_hierarchy_event: { + properties: { + property_name: "text" + pattern: "How to Write a Video Game Review" + } + selector: ".\"android.view.View\"#\"section_0\" .$\"TextView\"" + } + id: 7 +} +event_sources: { + response_event: { + pattern: "To write a video game review, you’ll want to give readers an overview of the game’s different elements and provide your personal opinion on how good it is. You’ll need to play the game for at least 7 hours to get a real feel for it. Try to explore as many different parts of the game as you can, like its main story, side quests, multiplayer, and challenges. While you’re playing, take brief notes on the things you like and things that don’t work so well to help you write your review. You’ll want to cover topics like graphics, sound design, story, game mechanics, and how well it runs. You can also compare it to other games in its genre to show readers what’s unique about it. Give it a grade out of 10 or a star rating at the end." + mode: SBERT + } + id: 9 +} +event_slots: { + score_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + } + } + events: { + event: { + events: { + id: 9 + } + } + } + } + reward_listener: { + type: OR + events: { + event: { + type: OR + id: 4 + events: { + id: 1 + } + events: { + id: 2 + } + events: { + id: 3 + } + transformation: "y = 1" + repeatability: NONE + } + } + events: { + event: { + type: OR + id: 8 + events: { + id: 5 + } + events: { + id: 6 + } + events: { + id: 7 + } + transformation: "y = 1" + repeatability: NONE + } + } + events: { + event: { + } + } + } + episode_end_listener: { + events: { + id: 9 + } + transformation: "y = x>=0.7" + } + extra_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + } + } + events: { + event: { + } + } + } + json_extra_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + } + } + events: { + event: { + } + } + } + instruction_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + events: { + id: 4 + } + transformation: "y = [\'Access the article \"How to Write a Video Game Review\"\']" + } + } + events: { + event: { + } + } + events: { + event: { + events: { + id: 8 + } + transformation: "y = [\'Read the article and answer the question concisely.\', \'My question is: How To Write a Video Game Review??\']" + } + } + events: { + event: { + } + } + } +} +command: "Search an article to learn how to write a video game review." +command: "Then, access the article \"How to Write a Video Game Review\"" +command: "Then, read the article and answer the question concisely." +command: "My question is: How To Write a Video Game Review??" +vocabulary: "write" +vocabulary: "review" +vocabulary: "game" +vocabulary: "video" +vocabulary: "how to" diff --git a/open-world-set/install_apk-aegis.textproto b/open-world-set/install_apk-aegis.textproto new file mode 100644 index 0000000000000000000000000000000000000000..769a32bebc16ebe8e4034c0ac3f29e93641570d3 --- /dev/null +++ b/open-world-set/install_apk-aegis.textproto @@ -0,0 +1,113 @@ +id: "install_apk_com.beemdevelopment.aegis" +name: "Install App Aegis Authenticator" +description: "Install app Aegis Authenticator from F-Droid" +setup_steps: { + adb_call: { + rotate: { + } + } +} +reset_steps: { + adb_call: { + force_stop: { + package_name: "org.fdroid.fdroid" + } + } +} +reset_steps: { + adb_call: { + force_stop: { + package_name: "com.beemdevelopment.aegis" + } + } +} +reset_steps: { + adb_call: { + clear_cache: { + package_name: "com.beemdevelopment.aegis" + } + } +} +reset_steps: { + adb_call: { + uninstall_package: { + package_name: "com.beemdevelopment.aegis" + } + } +} +reset_steps: { + success_condition: { + num_retries: 3 + wait_for_app_screen: { + app_screen: { + activity: "org.fdroid.fdroid/org.fdroid.fdroid.views.main.MainActivity" + } + timeout_sec: 10.0 + } + } + adb_call: { + start_activity: { + full_activity: "org.fdroid.fdroid/org.fdroid.fdroid.views.main.MainActivity" + } + } +} +max_num_steps: 500 +event_sources: { + log_event: { + filters: "installd:V" + pattern: " END .*com\\.beemdevelopment\\.aegis" + } + id: 1 +} +event_slots: { + score_listener: { + type: OR + events: { + event: { + } + } + } + reward_listener: { + type: OR + events: { + event: { + events: { + id: 1 + } + transformation: "y = 1." + } + } + } + episode_end_listener: { + events: { + id: 1 + } + transformation: "y = True" + } + extra_listener: { + type: OR + events: { + event: { + } + } + } + json_extra_listener: { + type: OR + events: { + event: { + } + } + } + instruction_listener: { + type: OR + events: { + event: { + } + } + } +} +command: "Install open-source 2FA authenticator Aegis Authenticator from F-Droid for my phone." +vocabulary: "Aegis Authenticator" +vocabulary: "open-source" +vocabulary: "2FA" +vocabulary: "authenticator" diff --git a/open-world-set/install_apk-kdeconnect.textproto b/open-world-set/install_apk-kdeconnect.textproto new file mode 100644 index 0000000000000000000000000000000000000000..30484503759205ddba8b92bdd937113c6a0d2372 --- /dev/null +++ b/open-world-set/install_apk-kdeconnect.textproto @@ -0,0 +1,117 @@ +id: "install_apk_org.kde.kdeconnect_tp" +name: "Install App KDE Connect" +description: "Install app KDE Connect from F-Droid" +setup_steps: { + adb_call: { + rotate: { + } + } +} +reset_steps: { + adb_call: { + force_stop: { + package_name: "org.fdroid.fdroid" + } + } +} +reset_steps: { + adb_call: { + force_stop: { + package_name: "org.kde.kdeconnect_tp" + } + } +} +reset_steps: { + adb_call: { + clear_cache: { + package_name: "org.kde.kdeconnect_tp" + } + } +} +reset_steps: { + adb_call: { + uninstall_package: { + package_name: "org.kde.kdeconnect_tp" + } + } +} +reset_steps: { + success_condition: { + num_retries: 3 + wait_for_app_screen: { + app_screen: { + activity: "org.fdroid.fdroid/org.fdroid.fdroid.views.main.MainActivity" + } + timeout_sec: 10.0 + } + } + adb_call: { + start_activity: { + full_activity: "org.fdroid.fdroid/org.fdroid.fdroid.views.main.MainActivity" + } + } +} +max_num_steps: 500 +event_sources: { + log_event: { + filters: "installd:V" + pattern: " END .*org\\.kde\\.kdeconnect_tp" + } + id: 1 +} +event_slots: { + score_listener: { + type: OR + events: { + event: { + } + } + } + reward_listener: { + type: OR + events: { + event: { + events: { + id: 1 + } + transformation: "y = 1." + } + } + } + episode_end_listener: { + events: { + id: 1 + } + transformation: "y = True" + } + extra_listener: { + type: OR + events: { + event: { + } + } + } + json_extra_listener: { + type: OR + events: { + event: { + } + } + } + instruction_listener: { + type: OR + events: { + event: { + } + } + } +} +command: "Install tool to connect my mobile with desktop KDE Connect from F-Droid for my phone." +vocabulary: "mobile" +vocabulary: "my" +vocabulary: "KDE Connect" +vocabulary: "desktop" +vocabulary: "with" +vocabulary: "to" +vocabulary: "connect" +vocabulary: "tool" diff --git a/open-world-set/install_apk-malp.textproto b/open-world-set/install_apk-malp.textproto new file mode 100644 index 0000000000000000000000000000000000000000..9977412803dd249c874777b97db04be7c4aae4ab --- /dev/null +++ b/open-world-set/install_apk-malp.textproto @@ -0,0 +1,114 @@ +id: "install_apk_org.gateshipone.malp" +name: "Install App M.A.L.P." +description: "Install app M.A.L.P. from F-Droid" +setup_steps: { + adb_call: { + rotate: { + } + } +} +reset_steps: { + adb_call: { + force_stop: { + package_name: "org.fdroid.fdroid" + } + } +} +reset_steps: { + adb_call: { + force_stop: { + package_name: "org.gateshipone.malp" + } + } +} +reset_steps: { + adb_call: { + clear_cache: { + package_name: "org.gateshipone.malp" + } + } +} +reset_steps: { + adb_call: { + uninstall_package: { + package_name: "org.gateshipone.malp" + } + } +} +reset_steps: { + success_condition: { + num_retries: 3 + wait_for_app_screen: { + app_screen: { + activity: "org.fdroid.fdroid/org.fdroid.fdroid.views.main.MainActivity" + } + timeout_sec: 10.0 + } + } + adb_call: { + start_activity: { + full_activity: "org.fdroid.fdroid/org.fdroid.fdroid.views.main.MainActivity" + } + } +} +max_num_steps: 500 +event_sources: { + log_event: { + filters: "installd:V" + pattern: " END .*org\\.gateshipone\\.malp" + } + id: 1 +} +event_slots: { + score_listener: { + type: OR + events: { + event: { + } + } + } + reward_listener: { + type: OR + events: { + event: { + events: { + id: 1 + } + transformation: "y = 1." + } + } + } + episode_end_listener: { + events: { + id: 1 + } + transformation: "y = True" + } + extra_listener: { + type: OR + events: { + event: { + } + } + } + json_extra_listener: { + type: OR + events: { + event: { + } + } + } + instruction_listener: { + type: OR + events: { + event: { + } + } + } +} +command: "Install MPD client on Android M.A.L.P. from F-Droid for my phone." +vocabulary: "Android" +vocabulary: "M.A.L.P." +vocabulary: "MPD" +vocabulary: "on" +vocabulary: "client" diff --git a/open-world-set/install_apk-openmoneybox.textproto b/open-world-set/install_apk-openmoneybox.textproto new file mode 100644 index 0000000000000000000000000000000000000000..730268ca5fabeee5b32875fdf64ad50eb9d4df39 --- /dev/null +++ b/open-world-set/install_apk-openmoneybox.textproto @@ -0,0 +1,114 @@ +id: "install_apk_com.igisw.openmoneybox" +name: "Install App OpenMoneyBox" +description: "Install app OpenMoneyBox from F-Droid" +setup_steps: { + adb_call: { + rotate: { + } + } +} +reset_steps: { + adb_call: { + force_stop: { + package_name: "org.fdroid.fdroid" + } + } +} +reset_steps: { + adb_call: { + force_stop: { + package_name: "com.igisw.openmoneybox" + } + } +} +reset_steps: { + adb_call: { + clear_cache: { + package_name: "com.igisw.openmoneybox" + } + } +} +reset_steps: { + adb_call: { + uninstall_package: { + package_name: "com.igisw.openmoneybox" + } + } +} +reset_steps: { + success_condition: { + num_retries: 3 + wait_for_app_screen: { + app_screen: { + activity: "org.fdroid.fdroid/org.fdroid.fdroid.views.main.MainActivity" + } + timeout_sec: 10.0 + } + } + adb_call: { + start_activity: { + full_activity: "org.fdroid.fdroid/org.fdroid.fdroid.views.main.MainActivity" + } + } +} +max_num_steps: 500 +event_sources: { + log_event: { + filters: "installd:V" + pattern: " END .*com\\.igisw\\.openmoneybox" + } + id: 1 +} +event_slots: { + score_listener: { + type: OR + events: { + event: { + } + } + } + reward_listener: { + type: OR + events: { + event: { + events: { + id: 1 + } + transformation: "y = 1." + } + } + } + episode_end_listener: { + events: { + id: 1 + } + transformation: "y = True" + } + extra_listener: { + type: OR + events: { + event: { + } + } + } + json_extra_listener: { + type: OR + events: { + event: { + } + } + } + instruction_listener: { + type: OR + events: { + event: { + } + } + } +} +command: "Install open-source bill management tool OpenMoneyBox from F-Droid for my phone." +vocabulary: "OpenMoneyBox" +vocabulary: "bill" +vocabulary: "open-source" +vocabulary: "tool" +vocabulary: "management" diff --git a/open-world-set/install_apk-vlc.textproto b/open-world-set/install_apk-vlc.textproto new file mode 100644 index 0000000000000000000000000000000000000000..a289d24f66828b7f8972d0d0aecda4a9e3047e05 --- /dev/null +++ b/open-world-set/install_apk-vlc.textproto @@ -0,0 +1,117 @@ +id: "install_apk_org.videolan.vlc" +name: "Install App VLC" +description: "Install app VLC from F-Droid" +setup_steps: { + adb_call: { + rotate: { + } + } +} +reset_steps: { + adb_call: { + force_stop: { + package_name: "org.fdroid.fdroid" + } + } +} +reset_steps: { + adb_call: { + force_stop: { + package_name: "org.videolan.vlc" + } + } +} +reset_steps: { + adb_call: { + clear_cache: { + package_name: "org.videolan.vlc" + } + } +} +reset_steps: { + adb_call: { + uninstall_package: { + package_name: "org.videolan.vlc" + } + } +} +reset_steps: { + success_condition: { + num_retries: 3 + wait_for_app_screen: { + app_screen: { + activity: "org.fdroid.fdroid/org.fdroid.fdroid.views.main.MainActivity" + } + timeout_sec: 10.0 + } + } + adb_call: { + start_activity: { + full_activity: "org.fdroid.fdroid/org.fdroid.fdroid.views.main.MainActivity" + } + } +} +max_num_steps: 500 +event_sources: { + log_event: { + filters: "installd:V" + pattern: " END .*org\\.videolan\\.vlc" + } + id: 1 +} +event_slots: { + score_listener: { + type: OR + events: { + event: { + } + } + } + reward_listener: { + type: OR + events: { + event: { + events: { + id: 1 + } + transformation: "y = 1." + } + } + } + episode_end_listener: { + events: { + id: 1 + } + transformation: "y = True" + } + extra_listener: { + type: OR + events: { + event: { + } + } + } + json_extra_listener: { + type: OR + events: { + event: { + } + } + } + instruction_listener: { + type: OR + events: { + event: { + } + } + } +} +command: "Install famous \"just works\" video and music player VLC from F-Droid for my phone." +vocabulary: "\"just" +vocabulary: "VLC" +vocabulary: "famous" +vocabulary: "and" +vocabulary: "works\"" +vocabulary: "player" +vocabulary: "music" +vocabulary: "video" diff --git a/open-world-set/introduce_science_to_preschoolers-0.textproto b/open-world-set/introduce_science_to_preschoolers-0.textproto new file mode 100644 index 0000000000000000000000000000000000000000..b105f2d634ed3e9e1604a4b34e21e686e4e2f833 --- /dev/null +++ b/open-world-set/introduce_science_to_preschoolers-0.textproto @@ -0,0 +1,283 @@ +id: "search_introduce_science_to_preschoolers-article_introduce science to preschoolers-about_page" +name: "WikiHow Search Task Primitive - Search introduce_science_to_preschoolers, Access How to Introduce Science to Preschoolers, Access the About Page" +description: "A demo task primitive requiring to search WikiHow for a specific article.\nA demo task primitive requiring to access a specific article.\nA demo task asking to access the about page" +setup_steps: { + adb_call: { + install_apk: { + filesystem: { + path: "../wikiHow:万事指南_2.9.6_apkcombo.com.apk" + } + } + } +} +setup_steps: { + adb_call: { + rotate: { + } + } +} +reset_steps: { + adb_call: { + force_stop: { + package_name: "com.wikihow.wikihowapp" + } + } +} +reset_steps: { + adb_call: { + clear_cache: { + package_name: "com.wikihow.wikihowapp" + } + } +} +reset_steps: { + success_condition: { + num_retries: 10 + wait_for_app_screen: { + app_screen: { + activity: "com.wikihow.wikihowapp/com.wikihow.wikihowapp.MainTabActivity" + } + timeout_sec: 10.0 + } + } + adb_call: { + start_activity: { + full_activity: "com.wikihow.wikihowapp/com.wikihow.wikihowapp.MainTabActivity" + } + } +} +max_num_steps: 500 +event_sources: { + text_recognize: { + expect: "\\b(introduce|science|preschoolers)\\b" + rect: { + x0: 0.2439 + y0: 0.0354 + x1: 0.9085 + y1: 0.1171 + } + } + id: 1 +} +event_sources: { + view_hierarchy_event: { + properties: { + property_name: "text" + pattern: "\\b(introduce|science|preschoolers)\\b" + } + properties: { + property_name: "clickable" + pattern: "true" + } + selector: "#$\"search_plate\">#$\"search_src_text\"" + } + id: 2 +} +event_sources: { + log_event: { + filters: "jd:D" + pattern: "\\bmUrl is: https://www\\.wikihow\\.com/wikiHowTo\\?search=.*(introduce|science|preschoolers).*" + } + id: 3 +} +event_sources: { + text_detect: { + expect: "How to Introduce Science to Preschoolers" + rect: { + y0: 0.19 + x1: 1.0 + y1: 0.3 + } + } + id: 5 +} +event_sources: { + log_event: { + filters: "jd:D" + pattern: "\\bmUrl is: https://www\\.wikihow\\.com/Introduce-Science-to-Preschoolers" + } + id: 6 +} +event_sources: { + view_hierarchy_event: { + properties: { + property_name: "text" + pattern: "How to Introduce Science to Preschoolers" + } + selector: ".\"android.view.View\"#\"section_0\" .$\"TextView\"" + } + id: 7 +} +event_sources: { + text_detect: { + expect: "Information You Can Trust|A Guide to our Editorial Process" + rect: { + y0: 0.1 + x1: 1.0 + y1: 0.6 + } + } + id: 9 +} +event_sources: { + log_event: { + filters: "jd:D" + pattern: "\\bmUrl is: https://www\\.wikihow\\.com/wikiHow:Delivering-a-Trustworthy-Experience" + } + id: 10 +} +event_sources: { + view_hierarchy_event: { + properties: { + property_name: "text" + pattern: "Information You Can Trust" + } + selector: ".$\"View\"#\"trustworthy_top\">.$\"View\"#\"trustworthy_head\">.\"android.view.View\"" + } + id: 11 +} +event_slots: { + score_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + } + } + events: { + event: { + } + } + } + reward_listener: { + type: OR + events: { + event: { + type: OR + id: 4 + events: { + id: 1 + } + events: { + id: 2 + } + events: { + id: 3 + } + transformation: "y = 1" + repeatability: NONE + } + } + events: { + event: { + type: OR + id: 8 + events: { + id: 5 + } + events: { + id: 6 + } + events: { + id: 7 + } + transformation: "y = 1" + repeatability: NONE + } + } + events: { + event: { + type: OR + id: 12 + events: { + id: 9 + } + events: { + id: 10 + } + events: { + id: 11 + } + transformation: "y = 1" + repeatability: NONE + } + } + } + episode_end_listener: { + events: { + id: 12 + } + transformation: "y = True" + } + extra_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + } + } + events: { + event: { + } + } + } + json_extra_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + } + } + events: { + event: { + } + } + } + instruction_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + events: { + id: 4 + } + transformation: "y = [\'Access the article \"How to Introduce Science to Preschoolers\"\']" + } + } + events: { + event: { + } + } + events: { + event: { + events: { + id: 8 + } + transformation: "y = [\'Access the about page to learn why people trust wikihow.\']" + } + } + events: { + event: { + } + } + } +} +command: "Search an article to learn how to introduce science to preschoolers." +command: "Then, access the article \"How to Introduce Science to Preschoolers\"" +command: "Then, access the about page to learn why people trust wikihow." +vocabulary: "introduce" +vocabulary: "how to" +vocabulary: "preschoolers" +vocabulary: "science" diff --git a/open-world-set/make_an_electroscope-8.textproto b/open-world-set/make_an_electroscope-8.textproto new file mode 100644 index 0000000000000000000000000000000000000000..5aa37cdd9c32c372481c223a8b05a43c6e729404 --- /dev/null +++ b/open-world-set/make_an_electroscope-8.textproto @@ -0,0 +1,212 @@ +id: "search_make_an_electroscope-article_make an electroscope" +name: "WikiHow Search Task Primitive - Search make_an_electroscope, Access How to Make an Electroscope" +description: "A demo task primitive requiring to search WikiHow for a specific article.\nA demo task primitive requiring to access a specific article." +setup_steps: { + adb_call: { + install_apk: { + filesystem: { + path: "../wikiHow:万事指南_2.9.6_apkcombo.com.apk" + } + } + } +} +setup_steps: { + adb_call: { + rotate: { + } + } +} +reset_steps: { + adb_call: { + force_stop: { + package_name: "com.wikihow.wikihowapp" + } + } +} +reset_steps: { + adb_call: { + clear_cache: { + package_name: "com.wikihow.wikihowapp" + } + } +} +reset_steps: { + success_condition: { + num_retries: 10 + wait_for_app_screen: { + app_screen: { + activity: "com.wikihow.wikihowapp/com.wikihow.wikihowapp.MainTabActivity" + } + timeout_sec: 10.0 + } + } + adb_call: { + start_activity: { + full_activity: "com.wikihow.wikihowapp/com.wikihow.wikihowapp.MainTabActivity" + } + } +} +max_num_steps: 500 +event_sources: { + text_recognize: { + expect: "\\b(make|electroscope)\\b" + rect: { + x0: 0.2439 + y0: 0.0354 + x1: 0.9085 + y1: 0.1171 + } + } + id: 1 +} +event_sources: { + view_hierarchy_event: { + properties: { + property_name: "text" + pattern: "\\b(make|electroscope)\\b" + } + properties: { + property_name: "clickable" + pattern: "true" + } + selector: "#$\"search_plate\">#$\"search_src_text\"" + } + id: 2 +} +event_sources: { + log_event: { + filters: "jd:D" + pattern: "\\bmUrl is: https://www\\.wikihow\\.com/wikiHowTo\\?search=.*(make|electroscope).*" + } + id: 3 +} +event_sources: { + text_detect: { + expect: "How to Make an Electroscope" + rect: { + y0: 0.19 + x1: 1.0 + y1: 0.3 + } + } + id: 5 +} +event_sources: { + log_event: { + filters: "jd:D" + pattern: "\\bmUrl is: https://www\\.wikihow\\.com/Make-an-Electroscope" + } + id: 6 +} +event_sources: { + view_hierarchy_event: { + properties: { + property_name: "text" + pattern: "How to Make an Electroscope" + } + selector: ".\"android.view.View\"#\"section_0\" .$\"TextView\"" + } + id: 7 +} +event_slots: { + score_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + } + } + } + reward_listener: { + type: OR + events: { + event: { + type: OR + id: 4 + events: { + id: 1 + } + events: { + id: 2 + } + events: { + id: 3 + } + transformation: "y = 1" + repeatability: NONE + } + } + events: { + event: { + type: OR + id: 8 + events: { + id: 5 + } + events: { + id: 6 + } + events: { + id: 7 + } + transformation: "y = 1" + repeatability: NONE + } + } + } + episode_end_listener: { + events: { + id: 8 + } + transformation: "y = True" + } + extra_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + } + } + } + json_extra_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + } + } + } + instruction_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + events: { + id: 4 + } + transformation: "y = [\'Access the article \"How to Make an Electroscope\"\']" + } + } + events: { + event: { + } + } + } +} +command: "Search an article to learn how to make an electroscope." +command: "Then, access the article \"How to Make an Electroscope\"" +vocabulary: "electroscope" +vocabulary: "make" +vocabulary: "how to" diff --git a/open-world-set/note_email.textproto b/open-world-set/note_email.textproto new file mode 100644 index 0000000000000000000000000000000000000000..9b9588f425241dba3c632b3883ee530a14e8600b --- /dev/null +++ b/open-world-set/note_email.textproto @@ -0,0 +1,63 @@ +id: "note_email" +name: "Note email information" +description: "Note date & time from email" + +setup_steps: { + adb_call: { rotate: { orientation: PORTRAIT_0 } } +} +reset_steps: [ + { adb_call: { force_stop: { package_name: "com.google.android.gm" } } }, + { adb_call: { force_stop: { package_name: "notes.notepad.checklist.calendar.todolist.notebook" } } }, + { adb_call: { press_button: { button: HOME } } }, + { + adb_call: { + start_activity: { + full_activity: "com.google.android.gm/com.google.android.gm.ConversationListActivityGmail" + } + } + success_condition: { + wait_for_app_screen: { + app_screen: { + activity: "com.google.android.gm/com.google.android.gm.ConversationListActivityGmail" + } + timeout_sec: 10.0 + } + num_retries: 3 + } + } +] +max_num_steps: 500 + +event_sources: { + view_hierarchy_event: { + selector: '#"notes.notepad.checklist.calendar.todolist.notebook:id/et_note".$"EditText"' + properties: { + property_name: "text" + #pattern: "\\bMar 7, 2024, 4:14 PM\\b" + pattern: "\\bOct 4, 2024, 12:48 PM\\b" + } + } + id: 1 +} +event_sources: { + view_hierarchy_event: { + selector: '#"com.google.android.gm:id/sender_name"[text="GitHub"]' + } + id: 2 +} + +event_slots: { + reward_listener: { + events: { id: 1 } + transformation: "y = 1" + } + episode_end_listener: { + events: { id: 1 } + transformation: "y = True" + } + instruction_listener: { + events: { id: 2 } + transformation: "y = \"Note the date and time of this email as-is in my noting app\"" + } +} +command: "Check my last email from GitHub" diff --git a/open-world-set/notifications.textproto b/open-world-set/notifications.textproto new file mode 100644 index 0000000000000000000000000000000000000000..6801c04ab72f70dfd9594251add87fcc742f3c99 --- /dev/null +++ b/open-world-set/notifications.textproto @@ -0,0 +1,92 @@ +id: "disable_notifications" +name: "Disable Notifications" +description: "Disable all the notifications of Gmail" +# package name of Gmail: com.google.android.gm + +setup_steps: { + adb_call: { rotate: { orientation: PORTRAIT_0 } } +} + +# TODO: find a way to enable the notification +reset_steps: [ + { adb_call: { force_stop: { package_name: "com.android.settings" } } }, + { adb_call: { clear_cache: { package_name: "com.android.settings" } } }, + { adb_call: { press_button: { button: HOME } } } +] + +max_num_steps: 500 + +event_sources: { + text_detect: { + expect: "\\bGmail\\b" + rect: { + x0: 0.3631 + x1: 0.6653 + y0: 0.2146 + y1: 0.2580 + } + } + id: 1 + repeatability: UNLIMITED +} +event_sources: { + text_detect: { + expect: "\\bblocking\\b" + rect: { + x0: 0.1501 + x1: 0.9128 + y0: 0.3630 + y1: 0.4338 + } + } + id: 2 +} +event_sources: { + text_detect: { + expect: "\\bnotifications\\b" + rect: { + x0: 0.1501 + x1: 0.9128 + y0: 0.3630 + y1: 0.4338 + } + } + id: 3 +} +event_sources: { + view_hierarchy_event: { + selector: '#$"switch_text"[text="All Gmail notifications"]+#$"switch_widget"."android.widget.Switch"' + properties: { + property_name: "checked" + pattern: "false" + } + } + id: 4 +} + +event_slots: { + reward_listener: { + type: OR + id: 5 + events: { + event: { + type: AND + events: [ + { id: 1 }, + { id: 2 }, + { id: 3 } + ] + transformation: "y = 1." + } + } + events: { id: 4 } + transformation: "y = 1." + repeatability: NONE + } + episode_end_listener: { + events: { id: 5 } + transformation: "y = True" + } +} + +command: "Please disable all the notifications of Gmail for me. I want a free weekend." diff --git a/open-world-set/openmoneybox.add_billings.textproto b/open-world-set/openmoneybox.add_billings.textproto new file mode 100644 index 0000000000000000000000000000000000000000..a23115b35512fd098444ce9638b95dd0cb397b80 --- /dev/null +++ b/open-world-set/openmoneybox.add_billings.textproto @@ -0,0 +1,511 @@ +# vim: set filetype=conf: +# Copyright 2023 SJTU X-Lance Lab +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Created by Danyang Zhang @X-Lance. + +# There are three stages for this task: +# + Set up initial funds +# + Create needed categories +# + Note the bills +# Detailed task information: +# +# * Inital fund: +# * 2000 for saved money +# * 500 for cash money +# * Categories: +# * Salary +# * Extra +# * Assets +# * Daily +# * Bills: +# +# | In/Ex | Amount | Name | Fund | Category | +# |---------|--------|--------|-------------|----------| +# | Income | 4000 | salary | saved money | Salary | +# | Income | 1000 | bonus | cash money | Extra | +# | Expense | 1500 | PC | saved money | Assets | +# | Expense | 1000 | lunch | cash money | Daily | + +id: "openmoneybox_add_billings" +name: "OpenMoneyBox - Add Billings" +description: "Note the given billings in OpenMoneyBox" + +setup_steps: { + adb_call: { + install_apk: { filesystem: { path: "com.igisw.openmoneybox_55.apk" } } + } +} +setup_steps: { + adb_call: { rotate: { orientation: PORTRAIT_0 } } +} + +reset_steps: [ + { adb_call: { force_stop: { package_name: "com.igisw.openmoneybox" } } }, + { adb_call: { clear_cache: { package_name: "com.igisw.openmoneybox" } } } +] + +max_num_steps: 500 + +# opened init page +event_sources: { + text_detect: { + expect: "[Ww]izard" + rect: { x0: 0., x1: 1., y0: 0.03, y1: 0.26 } + } + id: 1 +} +# opened wizard page +event_sources: { + text_detect: { + expect: "Document creation wizard" + rect: { x0: 0., x1: 1., y0: 0.03, y1: 0.09 } + } + id: 2 +} +# entered init funds +event_sources: [ + { + text_detect: { + expect: "2000" # saved money + rect: { x0: 0., x1: 1., y0: 0.15, y1: 0.21 } + } + id: 3 + }, + { + text_detect: { + expect: "500" # cash money + rect: { x0: 0., x1: 1., y0: 0.24, y1: 0.30 } + } + id: 4 + } +] +# entered dashboard +event_sources: { + text_detect: { + expect: "OpenMoneyBox" + rect: { x0: 0.14, x1: 0.88, y0: 0.03, y1: 0.11 } + } + id: 5 +} +# edit categories page +event_sources: { + text_detect: { + expect: "Edit categories" + rect: { x0: 0., x1: 1., y0: 0.03, y1: 0.09 } + } + id: 6 + repeatability: LAST +} +# add categories +event_sources: [ + #{ + #text_detect: { + #expect: "Add category" # title + #rect: { x0: 0., x1: 1., y0: 0.18, y1: 0.53 } + #} + #id: 7 + #}, + { + text_detect: { + expect: "(?i)salary" + rect: { x0: 0., x1: 1., y0: 0.15, y1: 0.94 } + } + id: 8 + repeatability: UNLIMITED + }, + { + text_detect: { + expect: "(?i)extra" + rect: { x0: 0., x1: 1., y0: 0.15, y1: 0.94 } + } + id: 9 + repeatability: UNLIMITED + }, + { + text_detect: { + expect: "(?i)assets" + rect: { x0: 0., x1: 1., y0: 0.15, y1: 0.94 } + } + id: 10 + repeatability: UNLIMITED + }, + { + text_detect: { + expect: "(?i)daily" + rect: { x0: 0., x1: 1., y0: 0.15, y1: 0.94 } + } + id: 11 + repeatability: UNLIMITED + } +] + +event_sources: { + text_detect: { + expect: "Store a profit" # title + rect: { x0: 0., x1: 1., y0: 0.03, y1: 0.09 } + } + id: 12 + repeatability: LAST +} +event_sources: { + text_detect: { + expect: "Store a expense" # title + rect: { x0: 0., x1: 1., y0: 0.03, y1: 0.09 } + } + id: 22 + repeatability: LAST +} +# note income "salary" +event_sources: [ + { + text_detect: { + expect: "Saved money" # fund + rect: { x0: 0., x1: 1., y0: 0.15, y1: 0.18 } + } + id: 13 + }, + { + text_detect: { + expect: "(?i)4000" # amount + rect: { x0: 0., x1: 1., y0: 0.18, y1: 0.23 } + } + id: 14 + }, + { + text_detect: { + expect: "(?i)salary" # reason + rect: { x0: 0., x1: 1., y0: 0.29, y1: 0.34 } + } + id: 15 + repeatability: LAST + }, + { + text_detect: { + expect: "(?i)salary" # category + rect: { x0: 0., x1: 1., y0: 0.38, y1: 0.42 } + } + id: 16 + repeatability: LAST + } +] +# note income "bonus" +event_sources: [ + { + text_detect: { + expect: "Cash money" # fund + rect: { x0: 0., x1: 1., y0: 0.15, y1: 0.18 } + } + id: 18 + }, + { + text_detect: { + expect: "(?i)1000" # amount + rect: { x0: 0., x1: 1., y0: 0.18, y1: 0.23 } + } + id: 19 + }, + { + text_detect: { + expect: "(?i)bonus" # reason + rect: { x0: 0., x1: 1., y0: 0.29, y1: 0.34 } + } + id: 20 + }, + { + text_detect: { + expect: "(?i)extra" # category + rect: { x0: 0., x1: 1., y0: 0.38, y1: 0.42 } + } + id: 21 + repeatability: LAST + } +] +# note outcome "PC" +event_sources: [ + { + text_detect: { + expect: "Saved money" # fund + rect: { x0: 0., x1: 1., y0: 0.15, y1: 0.18 } + } + id: 23 + }, + { + text_detect: { + expect: "(?i)1500" # amount + rect: { x0: 0., x1: 1., y0: 0.18, y1: 0.23 } + } + id: 24 + }, + { + text_detect: { + expect: "(?i)PC" # reason + rect: { x0: 0., x1: 1., y0: 0.29, y1: 0.34 } + } + id: 25 + }, + { + text_detect: { + expect: "(?i)assets" # category + rect: { x0: 0., x1: 1., y0: 0.38, y1: 0.42 } + } + id: 26 + repeatability: LAST + } +] +# note outcome "lunch" +event_sources: [ + { + text_detect: { + expect: "Cash money" # fund + rect: { x0: 0., x1: 1., y0: 0.15, y1: 0.18 } + } + id: 28 + }, + { + text_detect: { + expect: "(?i)1000" # amount + rect: { x0: 0., x1: 1., y0: 0.18, y1: 0.23 } + } + id: 29 + }, + { + text_detect: { + expect: "(?i)lunch" # reason + rect: { x0: 0., x1: 1., y0: 0.29, y1: 0.34 } + } + id: 30 + }, + { + text_detect: { + expect: "(?i)daily" # category + rect: { x0: 0., x1: 1., y0: 0.38, y1: 0.42 } + } + id: 31 + repeatability: LAST + } +] +# final state +event_sources: [ + { + text_detect: { + expect: "(?i)assets" + rect: { x0: 0.23, x1: 0.77, y0: 0.23, y1: 0.94 } + } + id: 32 + repeatability: UNLIMITED + }, + { + text_detect: { + expect: "-1500.00 *\$" + rect: { x0: 0.23, x1: 0.77, y0: 0.23, y1: 0.94 } + } + id: 33 + repeatability: UNLIMITED + }, + { + text_detect: { + expect: "(?i)daily" + rect: { x0: 0.23, x1: 0.77, y0: 0.23, y1: 0.94 } + } + id: 34 + repeatability: UNLIMITED + }, + { + text_detect: { + expect: "-1000.00 *\$" + rect: { x0: 0.23, x1: 0.77, y0: 0.23, y1: 0.94 } + } + id: 35 + repeatability: UNLIMITED + }, + { + text_detect: { + expect: "4000.00 *\$" + rect: { x0: 0.23, x1: 0.77, y0: 0.23, y1: 0.94 } + } + id: 36 + repeatability: UNLIMITED + } +] + +event_slots: { + reward_listener: { + type: OR + events: { + event: { + type: AND # reward @ entered init funds + events: { id: 3 } + events: { id: 4 } + transformation: "y = 4." + id: 40 + } + } + events: { + event: { + type: AND # rewards for creating categories + events: { id: 6 } + events: { + event: { + type: OR + events: [ + { id: 8 } , + { id: 9 } , + { id: 10 } , + { id: 11 } + ] + } + } + prerequisite: 40 + transformation: "y = 1." + id: 41 + } + } + events: { + event: { + type: OR # rewards for billings + events: { + event: { + type: AND # salary +4000 + events: [ + { id: 12 }, + { id: 13 }, + { id: 14 }, + { id: 15 }, + { id: 16 } + ] + id: 42 + } + } + events: { + event: { + type: AND # bonus +1000 + events: [ + { id: 12 }, + { id: 18 }, + { id: 19 }, + { id: 20 }, + { id: 21 } + ] + id: 43 + } + } + events: { + event: { + type: AND # PC -1500 + events: [ + { id: 22 }, + { id: 23 }, + { id: 24 }, + { id: 25 }, + { id: 26 } + ] + id: 44 + } + } + events: { + event: { + type: AND # lunch -1000 + events: [ + { id: 22 }, + { id: 28 }, + { id: 29 }, + { id: 30 }, + { id: 31 } + ] + id: 45 + } + } + prerequisite: 41 + transformation: "y = 1." + } + } + events: { + event: { + type: AND # reward @ episode end + events: { id: 32 } + events: { id: 33 } + events: { id: 34 } + events: { id: 35 } + events: { id: 36 } + prerequisite: [42, 43, 44, 45] + transformation: "y = 1." + id: 46 + } + } + } + episode_end_listener: { + events: { id: 46 } + transformation: "y = True" + } + instruction_listener: { + type: OR + events: { + event: { + events: { id: 1 } + transformation: "y = \"Start from the creation wizard.\"" + } + } + events: { + event: { + events: { id: 2 } + transformation: "y = \"Set the initial funds: I have 2000 for saved money and 500 for cash money.\"" + } + } + events: { + event: { + events: { id: 5 } + transformation: "y = 'Set up 4 categories: \"Salary\", \"Extra\", \"Assets\", and \"Daily\".'" + } + } + events: { + event: { + events: { id: 41 } + transformation: "y = ['Now please note for me several bills.']" + transformation: "y.append('The first is my salary. The amount is 4000. This money is a profit for my saved money. It should be categorized into \"Salary\".')" + } + } + events: { + event: { + events: { id: 42 } + transformation: "y = 'I also received a bonux of 1000 as cash money. It should be categorized into \"Extra\".'" + } + } + events: { + event: { + events: { id: 43 } + transformation: "y = 'I spent 1500 from my saved money to buy a pc. It should be categorized into \"Assets\".'" + } + } + events: { + event: { + events: { id: 44 } + transformation: "y = 'It takes 1000 from my cash money for my lunch in this month. It should be categorized into \"Daily\".'" + } + } + } +} + +command: "I have several funds and bills to be noted in OpenMoneyBox." +command: "Now open the app, enter the wizard, and help me to note the bills." +vocabulary: [ + "100", "500", "1000", + "1500", "2000", "2500", + "3000", "3500", "4000", + "4500", "5000", "salary", + "extra" "assets", "daily", + "bonus", "PC", "lunch", + "category", "money", "saved", + "cach", "fund" +] diff --git a/open-world-set/org.gateshipone.malp_40.apk b/open-world-set/org.gateshipone.malp_40.apk new file mode 100644 index 0000000000000000000000000000000000000000..6cac95d0f552e9d6a620ce49512619b87a7473cb --- /dev/null +++ b/open-world-set/org.gateshipone.malp_40.apk @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c4de52bcde65f6ccf6a3e3b6e3acaca5019abb3c863133aaf8ed30dbba5e7594 +size 5893927 diff --git a/open-world-set/org.kde.kdeconnect_tp_12701.apk b/open-world-set/org.kde.kdeconnect_tp_12701.apk new file mode 100644 index 0000000000000000000000000000000000000000..d4706f8ed1ffce0be169877120127eba3f2dd898 --- /dev/null +++ b/open-world-set/org.kde.kdeconnect_tp_12701.apk @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5ebff3723c80147bc4cc36528863c294c0aca3d20067812bc6b59a3699f50370 +size 7265946 diff --git a/open-world-set/org.videolan.vlc_13050408.apk b/open-world-set/org.videolan.vlc_13050408.apk new file mode 100644 index 0000000000000000000000000000000000000000..80e7daf5eb4396f6160a65da63a97462c0a0a6d9 --- /dev/null +++ b/open-world-set/org.videolan.vlc_13050408.apk @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3fe17cbd8b7f507436eccc217f9168846a65cadff2f7d87490f5740b243170dc +size 38387336 diff --git a/open-world-set/play_the_palace_card_game-8.textproto b/open-world-set/play_the_palace_card_game-8.textproto new file mode 100644 index 0000000000000000000000000000000000000000..037126621a3cd804ba2a74ae50f9eadb664d0d91 --- /dev/null +++ b/open-world-set/play_the_palace_card_game-8.textproto @@ -0,0 +1,214 @@ +id: "search_play_the_palace_card_game-article_play the palace card game" +name: "WikiHow Search Task Primitive - Search play_the_palace_card_game, Access How to Play the Palace Card Game" +description: "A demo task primitive requiring to search WikiHow for a specific article.\nA demo task primitive requiring to access a specific article." +setup_steps: { + adb_call: { + install_apk: { + filesystem: { + path: "../wikiHow:万事指南_2.9.6_apkcombo.com.apk" + } + } + } +} +setup_steps: { + adb_call: { + rotate: { + } + } +} +reset_steps: { + adb_call: { + force_stop: { + package_name: "com.wikihow.wikihowapp" + } + } +} +reset_steps: { + adb_call: { + clear_cache: { + package_name: "com.wikihow.wikihowapp" + } + } +} +reset_steps: { + success_condition: { + num_retries: 10 + wait_for_app_screen: { + app_screen: { + activity: "com.wikihow.wikihowapp/com.wikihow.wikihowapp.MainTabActivity" + } + timeout_sec: 10.0 + } + } + adb_call: { + start_activity: { + full_activity: "com.wikihow.wikihowapp/com.wikihow.wikihowapp.MainTabActivity" + } + } +} +max_num_steps: 500 +event_sources: { + text_recognize: { + expect: "\\b(play|palace|card|game)\\b" + rect: { + x0: 0.2439 + y0: 0.0354 + x1: 0.9085 + y1: 0.1171 + } + } + id: 1 +} +event_sources: { + view_hierarchy_event: { + properties: { + property_name: "text" + pattern: "\\b(play|palace|card|game)\\b" + } + properties: { + property_name: "clickable" + pattern: "true" + } + selector: "#$\"search_plate\">#$\"search_src_text\"" + } + id: 2 +} +event_sources: { + log_event: { + filters: "jd:D" + pattern: "\\bmUrl is: https://www\\.wikihow\\.com/wikiHowTo\\?search=.*(play|palace|card|game).*" + } + id: 3 +} +event_sources: { + text_detect: { + expect: "How to Play the Palace Card Game" + rect: { + y0: 0.19 + x1: 1.0 + y1: 0.3 + } + } + id: 5 +} +event_sources: { + log_event: { + filters: "jd:D" + pattern: "\\bmUrl is: https://www\\.wikihow\\.com/Play-the-Palace-Card-Game" + } + id: 6 +} +event_sources: { + view_hierarchy_event: { + properties: { + property_name: "text" + pattern: "How to Play the Palace Card Game" + } + selector: ".\"android.view.View\"#\"section_0\" .$\"TextView\"" + } + id: 7 +} +event_slots: { + score_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + } + } + } + reward_listener: { + type: OR + events: { + event: { + type: OR + id: 4 + events: { + id: 1 + } + events: { + id: 2 + } + events: { + id: 3 + } + transformation: "y = 1" + repeatability: NONE + } + } + events: { + event: { + type: OR + id: 8 + events: { + id: 5 + } + events: { + id: 6 + } + events: { + id: 7 + } + transformation: "y = 1" + repeatability: NONE + } + } + } + episode_end_listener: { + events: { + id: 8 + } + transformation: "y = True" + } + extra_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + } + } + } + json_extra_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + } + } + } + instruction_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + events: { + id: 4 + } + transformation: "y = [\'Access the article \"How to Play the Palace Card Game\"\']" + } + } + events: { + event: { + } + } + } +} +command: "Search an article to learn how to play the palace card game." +command: "Then, access the article \"How to Play the Palace Card Game\"" +vocabulary: "game" +vocabulary: "play" +vocabulary: "card" +vocabulary: "how to" +vocabulary: "palace" diff --git a/open-world-set/replace_app-google-authenticator-2-aegis.textproto b/open-world-set/replace_app-google-authenticator-2-aegis.textproto new file mode 100644 index 0000000000000000000000000000000000000000..fd3dd6718608747815ef092e770aafca4a7fb7e9 --- /dev/null +++ b/open-world-set/replace_app-google-authenticator-2-aegis.textproto @@ -0,0 +1,176 @@ +id: "uninstall_apk_com.google.android.apps.authenticator2-install_apk_com.beemdevelopment.aegis" +name: "Uninstall App Google Authenticator, Install App Aegis Authenticator" +description: "Uninstall app Google Authenticator from F-Droid\nInstall app Aegis Authenticator from F-Droid" +setup_steps: { + adb_call: { + rotate: { + } + } +} +reset_steps: { + adb_call: { + force_stop: { + package_name: "org.fdroid.fdroid" + } + } +} +reset_steps: { + adb_call: { + install_apk: { + filesystem: { + path: "Google Authenticator_6.0_apkcombo.com.apk" + } + } + } +} +reset_steps: { + adb_call: { + press_button: { + } + } +} +reset_steps: { + adb_call: { + force_stop: { + package_name: "org.fdroid.fdroid" + } + } +} +reset_steps: { + adb_call: { + force_stop: { + package_name: "com.beemdevelopment.aegis" + } + } +} +reset_steps: { + adb_call: { + clear_cache: { + package_name: "com.beemdevelopment.aegis" + } + } +} +reset_steps: { + adb_call: { + uninstall_package: { + package_name: "com.beemdevelopment.aegis" + } + } +} +reset_steps: { + success_condition: { + num_retries: 3 + wait_for_app_screen: { + app_screen: { + activity: "org.fdroid.fdroid/org.fdroid.fdroid.views.main.MainActivity" + } + timeout_sec: 10.0 + } + } + adb_call: { + start_activity: { + full_activity: "org.fdroid.fdroid/org.fdroid.fdroid.views.main.MainActivity" + } + } +} +max_num_steps: 500 +event_sources: { + log_event: { + filters: "PackageUpdatedTask:D" + pattern: "Removing app iconcom\\.google\\.android\\.apps\\.authenticator2" + } + id: 1 +} +event_sources: { + log_event: { + filters: "installd:V" + pattern: " END .*com\\.beemdevelopment\\.aegis" + } + id: 2 +} +event_slots: { + score_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + } + } + } + reward_listener: { + type: OR + events: { + event: { + events: { + id: 1 + } + transformation: "y = 1." + } + } + events: { + event: { + events: { + id: 2 + } + transformation: "y = 1." + } + } + } + episode_end_listener: { + events: { + id: 2 + } + transformation: "y = True" + } + extra_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + } + } + } + json_extra_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + } + } + } + instruction_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + events: { + id: 1 + } + transformation: "y = [\'Install open-source 2FA authenticator Aegis Authenticator from F-Droid for my phone.\']" + } + } + events: { + event: { + } + } + } +} +command: "Uninstall the app Google Authenticator on my phone." +command: "Then, install open-source 2FA authenticator Aegis Authenticator from F-Droid for my phone." +vocabulary: "authenticator" +vocabulary: "Aegis Authenticator" +vocabulary: "2FA" +vocabulary: "Google Authenticator" +vocabulary: "open-source" diff --git a/open-world-set/replace_app-vlc-2-mpv.textproto b/open-world-set/replace_app-vlc-2-mpv.textproto new file mode 100644 index 0000000000000000000000000000000000000000..6f565b7fa884a4d1cab9c0897d117007b309788b --- /dev/null +++ b/open-world-set/replace_app-vlc-2-mpv.textproto @@ -0,0 +1,178 @@ +id: "uninstall_apk_org.videolan.vlc-install_apk_is.xyz.mpv" +name: "Uninstall App VLC, Install App MPV" +description: "Uninstall app VLC from F-Droid\nInstall app MPV from F-Droid" +setup_steps: { + adb_call: { + rotate: { + } + } +} +reset_steps: { + adb_call: { + force_stop: { + package_name: "org.fdroid.fdroid" + } + } +} +reset_steps: { + adb_call: { + install_apk: { + filesystem: { + path: "org.videolan.vlc_13050408.apk" + } + } + } +} +reset_steps: { + adb_call: { + press_button: { + } + } +} +reset_steps: { + adb_call: { + force_stop: { + package_name: "org.fdroid.fdroid" + } + } +} +reset_steps: { + adb_call: { + force_stop: { + package_name: "is.xyz.mpv" + } + } +} +reset_steps: { + adb_call: { + clear_cache: { + package_name: "is.xyz.mpv" + } + } +} +reset_steps: { + adb_call: { + uninstall_package: { + package_name: "is.xyz.mpv" + } + } +} +reset_steps: { + success_condition: { + num_retries: 3 + wait_for_app_screen: { + app_screen: { + activity: "org.fdroid.fdroid/org.fdroid.fdroid.views.main.MainActivity" + } + timeout_sec: 10.0 + } + } + adb_call: { + start_activity: { + full_activity: "org.fdroid.fdroid/org.fdroid.fdroid.views.main.MainActivity" + } + } +} +max_num_steps: 500 +event_sources: { + log_event: { + filters: "PackageUpdatedTask:D" + pattern: "Removing app iconorg\\.videolan\\.vlc" + } + id: 1 +} +event_sources: { + log_event: { + filters: "installd:V" + pattern: " END .*is\\.xyz\\.mpv" + } + id: 2 +} +event_slots: { + score_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + } + } + } + reward_listener: { + type: OR + events: { + event: { + events: { + id: 1 + } + transformation: "y = 1." + } + } + events: { + event: { + events: { + id: 2 + } + transformation: "y = 1." + } + } + } + episode_end_listener: { + events: { + id: 2 + } + transformation: "y = True" + } + extra_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + } + } + } + json_extra_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + } + } + } + instruction_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + events: { + id: 1 + } + transformation: "y = [\'Install famous reimplementation of classical MPlayer MPV from F-Droid for my phone.\']" + } + } + events: { + event: { + } + } + } +} +command: "Uninstall the app VLC on my phone." +command: "Then, install famous reimplementation of classical MPlayer MPV from F-Droid for my phone." +vocabulary: "MPlayer" +vocabulary: "reimplementation" +vocabulary: "classical" +vocabulary: "famous" +vocabulary: "MPV" +vocabulary: "of" +vocabulary: "VLC" diff --git a/open-world-set/rip_jeggings-4.textproto b/open-world-set/rip_jeggings-4.textproto new file mode 100644 index 0000000000000000000000000000000000000000..48cfafb9bd50e835dfd305fbddfe0dfc549488ac --- /dev/null +++ b/open-world-set/rip_jeggings-4.textproto @@ -0,0 +1,212 @@ +id: "search_rip_jeggings-article_rip jeggings" +name: "WikiHow Search Task Primitive - Search rip_jeggings, Access How to Rip Jeggings" +description: "A demo task primitive requiring to search WikiHow for a specific article.\nA demo task primitive requiring to access a specific article." +setup_steps: { + adb_call: { + install_apk: { + filesystem: { + path: "../wikiHow:万事指南_2.9.6_apkcombo.com.apk" + } + } + } +} +setup_steps: { + adb_call: { + rotate: { + } + } +} +reset_steps: { + adb_call: { + force_stop: { + package_name: "com.wikihow.wikihowapp" + } + } +} +reset_steps: { + adb_call: { + clear_cache: { + package_name: "com.wikihow.wikihowapp" + } + } +} +reset_steps: { + success_condition: { + num_retries: 10 + wait_for_app_screen: { + app_screen: { + activity: "com.wikihow.wikihowapp/com.wikihow.wikihowapp.MainTabActivity" + } + timeout_sec: 10.0 + } + } + adb_call: { + start_activity: { + full_activity: "com.wikihow.wikihowapp/com.wikihow.wikihowapp.MainTabActivity" + } + } +} +max_num_steps: 500 +event_sources: { + text_recognize: { + expect: "\\b(rip|jeggings)\\b" + rect: { + x0: 0.2439 + y0: 0.0354 + x1: 0.9085 + y1: 0.1171 + } + } + id: 1 +} +event_sources: { + view_hierarchy_event: { + properties: { + property_name: "text" + pattern: "\\b(rip|jeggings)\\b" + } + properties: { + property_name: "clickable" + pattern: "true" + } + selector: "#$\"search_plate\">#$\"search_src_text\"" + } + id: 2 +} +event_sources: { + log_event: { + filters: "jd:D" + pattern: "\\bmUrl is: https://www\\.wikihow\\.com/wikiHowTo\\?search=.*(rip|jeggings).*" + } + id: 3 +} +event_sources: { + text_detect: { + expect: "How to Rip Jeggings" + rect: { + y0: 0.19 + x1: 1.0 + y1: 0.3 + } + } + id: 5 +} +event_sources: { + log_event: { + filters: "jd:D" + pattern: "\\bmUrl is: https://www\\.wikihow\\.com/Rip-Jeggings" + } + id: 6 +} +event_sources: { + view_hierarchy_event: { + properties: { + property_name: "text" + pattern: "How to Rip Jeggings" + } + selector: ".\"android.view.View\"#\"section_0\" .$\"TextView\"" + } + id: 7 +} +event_slots: { + score_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + } + } + } + reward_listener: { + type: OR + events: { + event: { + type: OR + id: 4 + events: { + id: 1 + } + events: { + id: 2 + } + events: { + id: 3 + } + transformation: "y = 1" + repeatability: NONE + } + } + events: { + event: { + type: OR + id: 8 + events: { + id: 5 + } + events: { + id: 6 + } + events: { + id: 7 + } + transformation: "y = 1" + repeatability: NONE + } + } + } + episode_end_listener: { + events: { + id: 8 + } + transformation: "y = True" + } + extra_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + } + } + } + json_extra_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + } + } + } + instruction_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + events: { + id: 4 + } + transformation: "y = [\'Access the article \"How to Rip Jeggings\"\']" + } + } + events: { + event: { + } + } + } +} +command: "Search an article to learn how to rip jeggings." +command: "Then, access the article \"How to Rip Jeggings\"" +vocabulary: "jeggings" +vocabulary: "how to" +vocabulary: "rip" diff --git a/open-world-set/search_Sanguoyanyi.textproto b/open-world-set/search_Sanguoyanyi.textproto new file mode 100644 index 0000000000000000000000000000000000000000..548080ee6a1f372b5bfa1aea974173088bc030f7 --- /dev/null +++ b/open-world-set/search_Sanguoyanyi.textproto @@ -0,0 +1,141 @@ +id : "search_Sanguoyanyi" +name : "Douban check Task - Sanguoyanyi" +description: "A task that needs agent: first click the search button, second input Sanguoyanyi, Then click corresponding part" + + + +reset_steps: { + adb_call: { + force_stop: { + package_name: "com.douban.frodo" + } + } +} + + +reset_steps: { + success_condition: { + num_retries: 10 + wait_for_app_screen: { + app_screen: { + activity: "com.douban.frodo/com.douban.frodo.activity.SplashActivity" + } + timeout_sec: 10.0 + } + } + adb_call: { + start_activity: { + full_activity: "com.douban.frodo/com.douban.frodo.activity.SplashActivity" + } + } +} + +expected_app_screen: { + +} + +max_num_steps: 5000 + +event_sources: { + text_detect: { + expect: "取消" + rect: { + x0: 0.87 + y0: 0.048 + x1: 0.97 + y1: 0.085 + } + } + id: 1 +} + +event_sources: { + log_event: { + filters: "ActivityTaskManager:V" + pattern: "\\burl is: Displayed com\\.douban\\.frodo/\\.search\\.activity\\.NewSearchActivity\\b" + } + id: 2 +} + +event_sources: { + text_detect: { + expect: "三国演义" + rect: { + x0: 0.3 + y0: 0.1 + x1: 0.5818 + y1: 0.1893 + } + } + id: 3 +} + +event_sources: { + text_detect: { + expect: "图书" + rect: { + x0: 0.45 + y0: 0.053 + x1: 0.55 + y1: 0.079 + } + } + id: 4 +} + +event_slots: { + reward_listener: { + + events: { + event: { + type: OR + id:5 + events: { + id: 1 + } + events: { + id: 2 + } + transformation: "y = 1" + } + } + + } + + episode_end_listener: { + type: OR + id:6 + events: { + id: 4 + } + events: { + id: 3 + } + transformation: "y = True" + } + + instruction_listener: { + type: OR + events: { + event: { + events: { + id: 5 + } + transformation: "y = [\'Good Job, now input provided message in pinyin (Sanguoyanyi)since chinese is not supported for current input, then click the corresponding one from search suggestions \']" + } + } + events: { + event: { + events: { + id: 6 + } + transformation: "y = [\'Well, down\']" + } + } + } +} + +command: "Search the book named 三国演义.(hint: 'search hint' node is search bar)" + + +vocabulary: ["sanguoyanyi"] \ No newline at end of file diff --git a/open-world-set/search_Zhenhuanzhuan_director.textproto b/open-world-set/search_Zhenhuanzhuan_director.textproto new file mode 100644 index 0000000000000000000000000000000000000000..97cdd279fffd5af496169c09f6198edd1c137d67 --- /dev/null +++ b/open-world-set/search_Zhenhuanzhuan_director.textproto @@ -0,0 +1,214 @@ +id:"search_Zhenhuanzhuan_director" +name :"Douban Search Task - Zhenhuanzhuan director" +description :"Search the TV of Zhenhuanzhuan then fetch the director in its page" + + + + +reset_steps: { + adb_call: { + force_stop: { + package_name: "com.douban.frodo" + } + } +} + + + +reset_steps: { + success_condition: { + num_retries: 10 + wait_for_app_screen: { + app_screen: { + activity: "com.douban.frodo/com.douban.frodo.activity.SplashActivity" + } + timeout_sec: 10.0 + } + } + adb_call: { + start_activity: { + full_activity: "com.douban.frodo/com.douban.frodo.activity.SplashActivity" + } + } +} + + +expected_app_screen: { + +} + +max_num_steps: 5000 + + +event_sources: { + text_detect: { + expect: "取消" + rect: { + x0: 0.87 + y0: 0.048 + x1: 0.97 + y1: 0.085 + } + } + id: 1 +} + +event_sources: { + view_hierarchy_event: { + selector: '#$"com.douban.frodo:id/cancel".$"TextView"' + properties: { + property_name: "text" + pattern: "取消" + } + properties: { + property_name: "left" + sign:EQ + integer:912 + } + } + id: 2 +} + + +event_sources: { + text_detect: { + expect: "后宫" + rect: { + x0: 0.31 + y0: 0.114 + x1: 0.43 + y1: 0.16 + } + } + id: 3 +} + +event_sources: { + text_detect: { + expect: "电视" + rect: { + x0: 0.372 + y0: 0 + x1: 0.642 + y1: 0.1 + } + } + id: 4 +} + +event_sources: { + view_hierarchy_event: { + selector: '.$"TextView"#$"title"' + properties: { + property_name: "text" + pattern: "电视" + } + properties: { + property_name: "left" + sign:EQ + integer:501 + } + } + id: 5 + } + + event_sources: { + view_hierarchy_event: { + selector: '.$"TextView"#$"title">.$"TextView"' + properties: { + property_name: "text" + pattern: "后宫·甄嬛传" + } + properties: { + property_name: "left" + sign:EQ + + integer:341 + } + } + id: 6 + } + + + +event_sources:{ + response_event: { + mode: REGEX + pattern: '\\b郑晓龙\\b' + } + id: 7 + +} + +event_slots:{ + reward_listener:{ + type:OR + events:{ + event:{ + type:OR + id:8 + events:{ + id:1 + } + events:{ + id:2 + } + transformation:"y=1" + } + } + events:{ + event:{ + type:OR + id:9 + events:{ + id:3 + } + events:{ + id:4 + } + events:{ + id:5 + } + events:{ + id:6 + } + transformation:"y=1" + } + + } + } + episode_end_listener: { + events: { + id: 7 + } + transformation: "y = True" + } + instruction_listener: { + type: OR + events: { + event: { + events: { + id: 8 + } + transformation: "y=[\'Now input provided message in pinyin(Zhenhuan)since chinese is not supported for current input, then click the corresponding one from search suggestions \']" + } + } + events: { + event: { + events: { + id: 9 + } + transformation: "y=[\'Good job, you may explore this page by scrolling and return the name of the director\']" + } + } + } + + +} + + + +command: "Return the director of the TV named 甄嬛传(hint: 'search hint' node is search bar)" + + +vocabulary: ["Zhenhuanzhuan"] diff --git a/open-world-set/search_episodes_number_of_BB.textproto b/open-world-set/search_episodes_number_of_BB.textproto new file mode 100644 index 0000000000000000000000000000000000000000..f47c6cda253007847e10ae1edcc8657da8695738 --- /dev/null +++ b/open-world-set/search_episodes_number_of_BB.textproto @@ -0,0 +1,138 @@ +id : "search_episodes_number_of_BB" +name : "Imdb check Task - search_episodes_number_of_BB" +description: "A task that needs agent: search the BreakingBad then fetch the asked information" + + +reset_steps: { + adb_call: { + force_stop: { + package_name: "com.imdb.mobile" + } + } +} + + +reset_steps: { + success_condition: { + num_retries: 10 + wait_for_app_screen: { + app_screen: { + activity: "com.imdb.mobile/com.imdb.mobile.HomeActivity" + } + timeout_sec: 10.0 + } + } + adb_call: { + start_activity: { + full_activity: "com.imdb.mobile/com.imdb.mobile.HomeActivity" + } + } +} + +expected_app_screen: { + +} + +max_num_steps: 5000 + + +event_sources: { + view_hierarchy_event: { + selector: '.$"widget.EditText"#$"search_src_text"' + properties: { + property_name: "text" + pattern: "Search IMDb" + } + } + id: 1 + } + +event_sources: { + view_hierarchy_event: { + selector: '.$"widget.TextView"#$"episode_guide_count"' + properties: { + property_name: "text" + pattern: "62 episodes" + } + } + id: 2 + } + +event_sources:{ + response_event:{ + mode:REGEX + pattern: "\\b62\\b"} + id:3 +} + +event_slots: { + + reward_listener:{ + type:OR + events:{ + event:{ + type:OR + id:10 + events:{ + id:1 + } + events:{ + id:1 + } + transformation:"y=1" + } + } + events:{ + event:{ + type:OR + id:11 + events:{ + id:2 + } + events:{ + id:2 + } + transformation:"y=1" + } + + } + } + + + episode_end_listener: { + type: OR + id:12 + events: { + id: 3 + } + events: { + id: 3 + } + transformation: "y = True" + } + + instruction_listener: { + type: OR + events: { + event: { + events: { + id: 10 + } + transformation: "y = [\'Good Job, continue check this TV \']" + } + } + events: { + event: { + events: { + id: 11 + } + transformation: "y = [\'Well, down, explore this page and tell me the episodes number of this TV\']" + } + } + } +} + +command: "Search the Breaking Bad TV show on IMDb(four navigations nodes represent :home,search,videos,profile)" + + +vocabulary: ["BreakingBad"] \ No newline at end of file diff --git a/open-world-set/search_for_spiderman(2022)_score.textproto b/open-world-set/search_for_spiderman(2022)_score.textproto new file mode 100644 index 0000000000000000000000000000000000000000..f6261d61064bd2978b01cdfa605446cdc37d3f01 --- /dev/null +++ b/open-world-set/search_for_spiderman(2022)_score.textproto @@ -0,0 +1,141 @@ +id : "search_spiderman" +name : "IMDB search spiderman" +description: "A task that needs agent: Search the spiderman movie in the imdb app then return the rating score." + + + + +reset_steps: { + adb_call: { + force_stop: { + package_name: "com.imdb.mobile" + } + } +} + + + +reset_steps: { + success_condition: { + num_retries: 10 + wait_for_app_screen: { + app_screen: { + activity: "com.imdb.mobile/com.imdb.mobile.HomeActivity" + } + timeout_sec: 10.0 + } + } + adb_call: { + start_activity: { + full_activity: "com.imdb.mobile/com.imdb.mobile.HomeActivity" + } + } +} + +expected_app_screen: { + +} + +max_num_steps: 5000 + + +event_sources: { + view_hierarchy_event: { + selector: '.$"widget.EditText"#$"search_src_text"' + properties: { + property_name: "text" + pattern: "Search IMDb" + } + } + id: 1 + } + +event_sources: { + view_hierarchy_event: { + selector: '.$"widget.TextView"#$"runtime"' + properties: { + property_name: "text" + pattern: "2h 1m" + } + } + id: 2 + } + +event_sources:{ + response_event:{ + mode:REGEX + pattern: "\\b7\\.4\\b"} + id:3 +} + +event_slots: { + + reward_listener:{ + type:OR + events:{ + event:{ + type:OR + id:10 + events:{ + id:1 + } + events:{ + id:1 + } + transformation:"y=1" + } + } + events:{ + event:{ + type:OR + id:11 + events:{ + id:2 + } + events:{ + id:2 + } + transformation:"y=1" + } + + } + } + + + episode_end_listener: { + type: OR + id:12 + events: { + id: 3 + } + events: { + id: 3 + } + transformation: "y = True" + } + + instruction_listener: { + type: OR + events: { + event: { + events: { + id: 10 + } + transformation: "y = [\'Good Job, continue check this movie \']" + } + } + events: { + event: { + events: { + id: 11 + } + transformation: "y = [\'Well, down, explore this page and tell me the rate for this movie\']" + } + } + } +} + +command: "Search the 2002 verison spiderman movie and check the rate for it.(hint:four navigations nodes represent :home,search,videos,profile)" + + +vocabulary: ["spiderman",'2002'] \ No newline at end of file diff --git a/open-world-set/set_alarm-10-0-FSaSu.textproto b/open-world-set/set_alarm-10-0-FSaSu.textproto new file mode 100644 index 0000000000000000000000000000000000000000..e42e565f0a89da0cd20ab02c505eec3231d99563 --- /dev/null +++ b/open-world-set/set_alarm-10-0-FSaSu.textproto @@ -0,0 +1,95 @@ +id: "set_alarm_10-00_F,Sa,Su" +name: "Set Alarm @10:00 for Friday, Saturday, and Sunday" +description: "Set an repetitive alarm at 10:00 on Friday, Saturday, and Sunday." +setup_steps: { + adb_call: { + rotate: { + } + } +} +reset_steps: { + adb_call: { + force_stop: { + package_name: "com.google.android.deskclock" + } + } +} +reset_steps: { + adb_call: { + clear_cache: { + package_name: "com.google.android.deskclock" + } + } +} +reset_steps: { + success_condition: { + num_retries: 3 + wait_for_app_screen: { + app_screen: { + activity: "com.google.android.deskclock/com.android.deskclock.DeskClock" + } + timeout_sec: 10.0 + } + } + adb_call: { + start_activity: { + full_activity: "com.google.android.deskclock/com.android.deskclock.DeskClock" + } + } +} +max_num_steps: 500 +event_sources: { + log_event: { + filters: "AlarmClock:*" + pattern: "Updated alarm from: Alarm \\{[^}]+\\} to: Alarm \\{.*\\bhour=10, minute=0, daysOfWeek=\\[F Sa Su\\].*\\}" + } + id: 1 +} +event_slots: { + score_listener: { + type: OR + events: { + event: { + } + } + } + reward_listener: { + type: OR + events: { + event: { + events: { + id: 1 + } + transformation: "y = 1." + } + } + } + episode_end_listener: { + events: { + id: 1 + } + transformation: "y = True" + } + extra_listener: { + type: OR + events: { + event: { + } + } + } + json_extra_listener: { + type: OR + events: { + event: { + } + } + } + instruction_listener: { + type: OR + events: { + event: { + } + } + } +} +command: "Help me to set up a new alarm at 10:00 on Friday, Saturday, and Sunday." diff --git a/open-world-set/set_alarm-11-59-ThF.textproto b/open-world-set/set_alarm-11-59-ThF.textproto new file mode 100644 index 0000000000000000000000000000000000000000..f1cbd04836926e59f74654c103a5408707dc43ef --- /dev/null +++ b/open-world-set/set_alarm-11-59-ThF.textproto @@ -0,0 +1,95 @@ +id: "set_alarm_11-59_Th,F" +name: "Set Alarm @11:59 for Thursday and Friday" +description: "Set an repetitive alarm at 11:59 on Thursday and Friday." +setup_steps: { + adb_call: { + rotate: { + } + } +} +reset_steps: { + adb_call: { + force_stop: { + package_name: "com.google.android.deskclock" + } + } +} +reset_steps: { + adb_call: { + clear_cache: { + package_name: "com.google.android.deskclock" + } + } +} +reset_steps: { + success_condition: { + num_retries: 3 + wait_for_app_screen: { + app_screen: { + activity: "com.google.android.deskclock/com.android.deskclock.DeskClock" + } + timeout_sec: 10.0 + } + } + adb_call: { + start_activity: { + full_activity: "com.google.android.deskclock/com.android.deskclock.DeskClock" + } + } +} +max_num_steps: 500 +event_sources: { + log_event: { + filters: "AlarmClock:*" + pattern: "Updated alarm from: Alarm \\{[^}]+\\} to: Alarm \\{.*\\bhour=11, minute=59, daysOfWeek=\\[Th F\\].*\\}" + } + id: 1 +} +event_slots: { + score_listener: { + type: OR + events: { + event: { + } + } + } + reward_listener: { + type: OR + events: { + event: { + events: { + id: 1 + } + transformation: "y = 1." + } + } + } + episode_end_listener: { + events: { + id: 1 + } + transformation: "y = True" + } + extra_listener: { + type: OR + events: { + event: { + } + } + } + json_extra_listener: { + type: OR + events: { + event: { + } + } + } + instruction_listener: { + type: OR + events: { + event: { + } + } + } +} +command: "Help me to set up a new alarm at 11:59 on Thursday and Friday." diff --git a/open-world-set/set_alarm-12-13-FSa.textproto b/open-world-set/set_alarm-12-13-FSa.textproto new file mode 100644 index 0000000000000000000000000000000000000000..0526e0c36663589be8029487ad0d69dcb5d9b0f7 --- /dev/null +++ b/open-world-set/set_alarm-12-13-FSa.textproto @@ -0,0 +1,95 @@ +id: "set_alarm_12-13_F,Sa" +name: "Set Alarm @12:13 for Friday and Saturday" +description: "Set an repetitive alarm at 12:13 on Friday and Saturday." +setup_steps: { + adb_call: { + rotate: { + } + } +} +reset_steps: { + adb_call: { + force_stop: { + package_name: "com.google.android.deskclock" + } + } +} +reset_steps: { + adb_call: { + clear_cache: { + package_name: "com.google.android.deskclock" + } + } +} +reset_steps: { + success_condition: { + num_retries: 3 + wait_for_app_screen: { + app_screen: { + activity: "com.google.android.deskclock/com.android.deskclock.DeskClock" + } + timeout_sec: 10.0 + } + } + adb_call: { + start_activity: { + full_activity: "com.google.android.deskclock/com.android.deskclock.DeskClock" + } + } +} +max_num_steps: 500 +event_sources: { + log_event: { + filters: "AlarmClock:*" + pattern: "Updated alarm from: Alarm \\{[^}]+\\} to: Alarm \\{.*\\bhour=12, minute=13, daysOfWeek=\\[F Sa\\].*\\}" + } + id: 1 +} +event_slots: { + score_listener: { + type: OR + events: { + event: { + } + } + } + reward_listener: { + type: OR + events: { + event: { + events: { + id: 1 + } + transformation: "y = 1." + } + } + } + episode_end_listener: { + events: { + id: 1 + } + transformation: "y = True" + } + extra_listener: { + type: OR + events: { + event: { + } + } + } + json_extra_listener: { + type: OR + events: { + event: { + } + } + } + instruction_listener: { + type: OR + events: { + event: { + } + } + } +} +command: "Help me to set up a new alarm at 12:13 on Friday and Saturday." diff --git a/open-world-set/set_alarm-13-0-MT.textproto b/open-world-set/set_alarm-13-0-MT.textproto new file mode 100644 index 0000000000000000000000000000000000000000..917a96bb57cba14d0a3c28b007f692214bc2eda0 --- /dev/null +++ b/open-world-set/set_alarm-13-0-MT.textproto @@ -0,0 +1,95 @@ +id: "set_alarm_13-00_M,T" +name: "Set Alarm @13:00 for Monday and Tuesday" +description: "Set an repetitive alarm at 13:00 on Monday and Tuesday." +setup_steps: { + adb_call: { + rotate: { + } + } +} +reset_steps: { + adb_call: { + force_stop: { + package_name: "com.google.android.deskclock" + } + } +} +reset_steps: { + adb_call: { + clear_cache: { + package_name: "com.google.android.deskclock" + } + } +} +reset_steps: { + success_condition: { + num_retries: 3 + wait_for_app_screen: { + app_screen: { + activity: "com.google.android.deskclock/com.android.deskclock.DeskClock" + } + timeout_sec: 10.0 + } + } + adb_call: { + start_activity: { + full_activity: "com.google.android.deskclock/com.android.deskclock.DeskClock" + } + } +} +max_num_steps: 500 +event_sources: { + log_event: { + filters: "AlarmClock:*" + pattern: "Updated alarm from: Alarm \\{[^}]+\\} to: Alarm \\{.*\\bhour=13, minute=0, daysOfWeek=\\[M T\\].*\\}" + } + id: 1 +} +event_slots: { + score_listener: { + type: OR + events: { + event: { + } + } + } + reward_listener: { + type: OR + events: { + event: { + events: { + id: 1 + } + transformation: "y = 1." + } + } + } + episode_end_listener: { + events: { + id: 1 + } + transformation: "y = True" + } + extra_listener: { + type: OR + events: { + event: { + } + } + } + json_extra_listener: { + type: OR + events: { + event: { + } + } + } + instruction_listener: { + type: OR + events: { + event: { + } + } + } +} +command: "Help me to set up a new alarm at 13:00 on Monday and Tuesday." diff --git a/open-world-set/set_alarm-14-34-Th.textproto b/open-world-set/set_alarm-14-34-Th.textproto new file mode 100644 index 0000000000000000000000000000000000000000..267940b81152b23b51ae372c332ef824d0c60b64 --- /dev/null +++ b/open-world-set/set_alarm-14-34-Th.textproto @@ -0,0 +1,95 @@ +id: "set_alarm_14-34_Th" +name: "Set Alarm @14:34 for Thursday" +description: "Set an repetitive alarm at 14:34 on Thursday." +setup_steps: { + adb_call: { + rotate: { + } + } +} +reset_steps: { + adb_call: { + force_stop: { + package_name: "com.google.android.deskclock" + } + } +} +reset_steps: { + adb_call: { + clear_cache: { + package_name: "com.google.android.deskclock" + } + } +} +reset_steps: { + success_condition: { + num_retries: 3 + wait_for_app_screen: { + app_screen: { + activity: "com.google.android.deskclock/com.android.deskclock.DeskClock" + } + timeout_sec: 10.0 + } + } + adb_call: { + start_activity: { + full_activity: "com.google.android.deskclock/com.android.deskclock.DeskClock" + } + } +} +max_num_steps: 500 +event_sources: { + log_event: { + filters: "AlarmClock:*" + pattern: "Updated alarm from: Alarm \\{[^}]+\\} to: Alarm \\{.*\\bhour=14, minute=34, daysOfWeek=\\[Th\\].*\\}" + } + id: 1 +} +event_slots: { + score_listener: { + type: OR + events: { + event: { + } + } + } + reward_listener: { + type: OR + events: { + event: { + events: { + id: 1 + } + transformation: "y = 1." + } + } + } + episode_end_listener: { + events: { + id: 1 + } + transformation: "y = True" + } + extra_listener: { + type: OR + events: { + event: { + } + } + } + json_extra_listener: { + type: OR + events: { + event: { + } + } + } + instruction_listener: { + type: OR + events: { + event: { + } + } + } +} +command: "Help me to set up a new alarm at 14:34 on Thursday." diff --git a/open-world-set/set_alarm-15-0-WThSa.textproto b/open-world-set/set_alarm-15-0-WThSa.textproto new file mode 100644 index 0000000000000000000000000000000000000000..206973f2e8b772bc85c18ecace297383e574bb0f --- /dev/null +++ b/open-world-set/set_alarm-15-0-WThSa.textproto @@ -0,0 +1,95 @@ +id: "set_alarm_15-00_W,Th,Sa" +name: "Set Alarm @15:00 for Wednesday, Thursday, and Saturday" +description: "Set an repetitive alarm at 15:00 on Wednesday, Thursday, and Saturday." +setup_steps: { + adb_call: { + rotate: { + } + } +} +reset_steps: { + adb_call: { + force_stop: { + package_name: "com.google.android.deskclock" + } + } +} +reset_steps: { + adb_call: { + clear_cache: { + package_name: "com.google.android.deskclock" + } + } +} +reset_steps: { + success_condition: { + num_retries: 3 + wait_for_app_screen: { + app_screen: { + activity: "com.google.android.deskclock/com.android.deskclock.DeskClock" + } + timeout_sec: 10.0 + } + } + adb_call: { + start_activity: { + full_activity: "com.google.android.deskclock/com.android.deskclock.DeskClock" + } + } +} +max_num_steps: 500 +event_sources: { + log_event: { + filters: "AlarmClock:*" + pattern: "Updated alarm from: Alarm \\{[^}]+\\} to: Alarm \\{.*\\bhour=15, minute=0, daysOfWeek=\\[W Th Sa\\].*\\}" + } + id: 1 +} +event_slots: { + score_listener: { + type: OR + events: { + event: { + } + } + } + reward_listener: { + type: OR + events: { + event: { + events: { + id: 1 + } + transformation: "y = 1." + } + } + } + episode_end_listener: { + events: { + id: 1 + } + transformation: "y = True" + } + extra_listener: { + type: OR + events: { + event: { + } + } + } + json_extra_listener: { + type: OR + events: { + event: { + } + } + } + instruction_listener: { + type: OR + events: { + event: { + } + } + } +} +command: "Help me to set up a new alarm at 15:00 on Wednesday, Thursday, and Saturday." diff --git a/open-world-set/set_alarm-16-0-T.textproto b/open-world-set/set_alarm-16-0-T.textproto new file mode 100644 index 0000000000000000000000000000000000000000..3a04e4282181d893f50cdc2deece6c8f48d5f268 --- /dev/null +++ b/open-world-set/set_alarm-16-0-T.textproto @@ -0,0 +1,95 @@ +id: "set_alarm_16-00_T" +name: "Set Alarm @16:00 for Tuesday" +description: "Set an repetitive alarm at 16:00 on Tuesday." +setup_steps: { + adb_call: { + rotate: { + } + } +} +reset_steps: { + adb_call: { + force_stop: { + package_name: "com.google.android.deskclock" + } + } +} +reset_steps: { + adb_call: { + clear_cache: { + package_name: "com.google.android.deskclock" + } + } +} +reset_steps: { + success_condition: { + num_retries: 3 + wait_for_app_screen: { + app_screen: { + activity: "com.google.android.deskclock/com.android.deskclock.DeskClock" + } + timeout_sec: 10.0 + } + } + adb_call: { + start_activity: { + full_activity: "com.google.android.deskclock/com.android.deskclock.DeskClock" + } + } +} +max_num_steps: 500 +event_sources: { + log_event: { + filters: "AlarmClock:*" + pattern: "Updated alarm from: Alarm \\{[^}]+\\} to: Alarm \\{.*\\bhour=16, minute=0, daysOfWeek=\\[T\\].*\\}" + } + id: 1 +} +event_slots: { + score_listener: { + type: OR + events: { + event: { + } + } + } + reward_listener: { + type: OR + events: { + event: { + events: { + id: 1 + } + transformation: "y = 1." + } + } + } + episode_end_listener: { + events: { + id: 1 + } + transformation: "y = True" + } + extra_listener: { + type: OR + events: { + event: { + } + } + } + json_extra_listener: { + type: OR + events: { + event: { + } + } + } + instruction_listener: { + type: OR + events: { + event: { + } + } + } +} +command: "Help me to set up a new alarm at 16:00 on Tuesday." diff --git a/open-world-set/set_alarm-7-0-MT.textproto b/open-world-set/set_alarm-7-0-MT.textproto new file mode 100644 index 0000000000000000000000000000000000000000..22996a00dc9e04d7c87d102a779aa1a67304d287 --- /dev/null +++ b/open-world-set/set_alarm-7-0-MT.textproto @@ -0,0 +1,95 @@ +id: "set_alarm_7-00_M,T" +name: "Set Alarm @7:00 for Monday and Tuesday" +description: "Set an repetitive alarm at 7:00 on Monday and Tuesday." +setup_steps: { + adb_call: { + rotate: { + } + } +} +reset_steps: { + adb_call: { + force_stop: { + package_name: "com.google.android.deskclock" + } + } +} +reset_steps: { + adb_call: { + clear_cache: { + package_name: "com.google.android.deskclock" + } + } +} +reset_steps: { + success_condition: { + num_retries: 3 + wait_for_app_screen: { + app_screen: { + activity: "com.google.android.deskclock/com.android.deskclock.DeskClock" + } + timeout_sec: 10.0 + } + } + adb_call: { + start_activity: { + full_activity: "com.google.android.deskclock/com.android.deskclock.DeskClock" + } + } +} +max_num_steps: 500 +event_sources: { + log_event: { + filters: "AlarmClock:*" + pattern: "Updated alarm from: Alarm \\{[^}]+\\} to: Alarm \\{.*\\bhour=7, minute=0, daysOfWeek=\\[M T\\].*\\}" + } + id: 1 +} +event_slots: { + score_listener: { + type: OR + events: { + event: { + } + } + } + reward_listener: { + type: OR + events: { + event: { + events: { + id: 1 + } + transformation: "y = 1." + } + } + } + episode_end_listener: { + events: { + id: 1 + } + transformation: "y = True" + } + extra_listener: { + type: OR + events: { + event: { + } + } + } + json_extra_listener: { + type: OR + events: { + event: { + } + } + } + instruction_listener: { + type: OR + events: { + event: { + } + } + } +} +command: "Help me to set up a new alarm at 7:00 on Monday and Tuesday." diff --git a/open-world-set/set_alarm-8-0-F.textproto b/open-world-set/set_alarm-8-0-F.textproto new file mode 100644 index 0000000000000000000000000000000000000000..491a20495c1a2406e3941f5d34478c3c2715be48 --- /dev/null +++ b/open-world-set/set_alarm-8-0-F.textproto @@ -0,0 +1,95 @@ +id: "set_alarm_8-00_F" +name: "Set Alarm @8:00 for Friday" +description: "Set an repetitive alarm at 8:00 on Friday." +setup_steps: { + adb_call: { + rotate: { + } + } +} +reset_steps: { + adb_call: { + force_stop: { + package_name: "com.google.android.deskclock" + } + } +} +reset_steps: { + adb_call: { + clear_cache: { + package_name: "com.google.android.deskclock" + } + } +} +reset_steps: { + success_condition: { + num_retries: 3 + wait_for_app_screen: { + app_screen: { + activity: "com.google.android.deskclock/com.android.deskclock.DeskClock" + } + timeout_sec: 10.0 + } + } + adb_call: { + start_activity: { + full_activity: "com.google.android.deskclock/com.android.deskclock.DeskClock" + } + } +} +max_num_steps: 500 +event_sources: { + log_event: { + filters: "AlarmClock:*" + pattern: "Updated alarm from: Alarm \\{[^}]+\\} to: Alarm \\{.*\\bhour=8, minute=0, daysOfWeek=\\[F\\].*\\}" + } + id: 1 +} +event_slots: { + score_listener: { + type: OR + events: { + event: { + } + } + } + reward_listener: { + type: OR + events: { + event: { + events: { + id: 1 + } + transformation: "y = 1." + } + } + } + episode_end_listener: { + events: { + id: 1 + } + transformation: "y = True" + } + extra_listener: { + type: OR + events: { + event: { + } + } + } + json_extra_listener: { + type: OR + events: { + event: { + } + } + } + instruction_listener: { + type: OR + events: { + event: { + } + } + } +} +command: "Help me to set up a new alarm at 8:00 on Friday." diff --git a/open-world-set/set_alarm-9-0-M.textproto b/open-world-set/set_alarm-9-0-M.textproto new file mode 100644 index 0000000000000000000000000000000000000000..38289e9488e15b9236bbdb5104b1eb5e0dc4ccca --- /dev/null +++ b/open-world-set/set_alarm-9-0-M.textproto @@ -0,0 +1,95 @@ +id: "set_alarm_9-00_M" +name: "Set Alarm @9:00 for Monday" +description: "Set an repetitive alarm at 9:00 on Monday." +setup_steps: { + adb_call: { + rotate: { + } + } +} +reset_steps: { + adb_call: { + force_stop: { + package_name: "com.google.android.deskclock" + } + } +} +reset_steps: { + adb_call: { + clear_cache: { + package_name: "com.google.android.deskclock" + } + } +} +reset_steps: { + success_condition: { + num_retries: 3 + wait_for_app_screen: { + app_screen: { + activity: "com.google.android.deskclock/com.android.deskclock.DeskClock" + } + timeout_sec: 10.0 + } + } + adb_call: { + start_activity: { + full_activity: "com.google.android.deskclock/com.android.deskclock.DeskClock" + } + } +} +max_num_steps: 500 +event_sources: { + log_event: { + filters: "AlarmClock:*" + pattern: "Updated alarm from: Alarm \\{[^}]+\\} to: Alarm \\{.*\\bhour=9, minute=0, daysOfWeek=\\[M\\].*\\}" + } + id: 1 +} +event_slots: { + score_listener: { + type: OR + events: { + event: { + } + } + } + reward_listener: { + type: OR + events: { + event: { + events: { + id: 1 + } + transformation: "y = 1." + } + } + } + episode_end_listener: { + events: { + id: 1 + } + transformation: "y = True" + } + extra_listener: { + type: OR + events: { + event: { + } + } + } + json_extra_listener: { + type: OR + events: { + event: { + } + } + } + instruction_listener: { + type: OR + events: { + event: { + } + } + } +} +command: "Help me to set up a new alarm at 9:00 on Monday." diff --git a/open-world-set/share_picture.textproto b/open-world-set/share_picture.textproto new file mode 100644 index 0000000000000000000000000000000000000000..a018f127ac50f22f5114239ac7d08976259ec3ac --- /dev/null +++ b/open-world-set/share_picture.textproto @@ -0,0 +1,78 @@ +id: "share_picture" +name: "Share an illustration through gmail" +description: "Share an illustration through gmail" + +setup_steps: { + adb_call: { rotate: { orientation: PORTRAIT_0 } } +} +reset_steps: [ + { adb_call: { force_stop: { package_name: "com.google.android.gm" } } }, + { adb_call: { force_stop: { package_name: "com.google.android.documentsui" } } }, + { + adb_call: { + start_activity: { + full_activity: "com.google.android.documentsui/com.android.documentsui.files.FilesActivity" + } + } + success_condition: { + wait_for_app_screen: { + app_screen: { + activity: "com.google.android.documentsui/com.android.documentsui.files.FilesActivity" + } + timeout_sec: 10.0 + } + num_retries: 3 + } + } +] + +event_sources: { + view_hierarchy_event: { + selector: '#"com.google.android.gm:id/to"' + properties: { + property_name: "text" + pattern: "\\bliiyihjiun@outlook\\.com\\b" + } + } + id: 1 + repeatability: UNLIMITED +} +event_sources: { + view_hierarchy_event: { + selector: '#"com.google.android.gm:id/attachment_tile"[content-desc~="Noelle.jpg"]' + } + id: 2 + repeatability: UNLIMITED +} +event_sources: { + text_detect: { + expect: "Compose" + rect: { + x0: 0 + x1: 1 + y0: 0.0491 + y1: 0.0947 + } + } + id: 5 +} + +event_slots: { + reward_listener: { + type: AND + events: { id: 1 } + events: { id: 2 } + transformation: "y = 1" + id: 3 + } + episode_end_listener: { + events: { id: 3 } + transformation: "y = True" + } + instruction_listener: { + events: { id: 5 } + transformation: "y = \"Lii Yihjiun's email is liiyihjiun@outlook.com.\"" + } +} + +command: "Send the illustration of Noelle I just downloaded to Lii Yihjiun through Gmail." diff --git a/open-world-set/storage.textproto b/open-world-set/storage.textproto new file mode 100644 index 0000000000000000000000000000000000000000..93cb1a25a5be909a594b1b49c9ac79a31197bcd4 --- /dev/null +++ b/open-world-set/storage.textproto @@ -0,0 +1,104 @@ +id: "storage" +name: "Get System Storage" +description: "Get System Storage" + + +setup_steps: { + adb_call: { rotate: { orientation: PORTRAIT_0 } } +} + +reset_steps: [ + { adb_call: { force_stop: { package_name: "com.android.settings" } } }, + { adb_call: { clear_cache: { package_name: "com.android.settings" } } }, + { + adb_call: { + start_activity: { + full_activity: "com.android.settings/com.android.settings.Settings" + } + } + success_condition: { + wait_for_app_screen: { + app_screen: { + activity: "com.android.settings/com.android.settings.Settings" + } + timeout_sec: 10.0 + } + num_retries: 3 + } + } +] + +event_sources: { + response_event: { + mode: REGEX + pattern: "(\\d+(?:\\.\\d+))\\s*GB?" + } + id: 1 + repeatability: UNLIMITED +} +event_sources: { + view_hierarchy_event: { + selector: '#"android:id/summary"."android.widget.TextView"$"com.android.settings"' + properties: { + property_name: "text" + pattern: "\\d+\\.\\d\\d GB used of \\d+\\.\\d\\d GB" + } + } + id: 2 + repeatability: UNLIMITED +} +event_sources: { + view_hierarchy_event: { + selector: '#"android:id/summary"."android.widget.TextView"$"com.android.settings"' + properties: { + property_name: "text" + pattern: "\\d{,2}% used - \\d+\\.\\d\\d GB free" + } + } + id: 3 + repeatability: UNLIMITED +} + +event_slots: { + reward_listener: { + events: { id: 4 } + transformation: "y = 1" + } + episode_end_listener: { + type: AND + id: 4 + events: { id: 1 } + events: { + event: { + type: OR + events: { + event: { + events: { id: 2 } + transformation: [ + "import re", + "match_ = re.findall(r'\\d+\\.\\d\\d', x[0])", + "y = float(match_[1])-float(match_[0])" + ] + } + } + events: { + event: { + events: { id: 3 } + transformation: [ + "import re", + "match_ = re.findall(r'\\d+\\.\\d\\d', x[0])", + "y = float(match_[-1])" + ] + } + } + } + } + transformation: [ + "answer: float = float(x[0][0][0])", + "reference: float = float(x[1][-1])", + "y = abs(answer-reference)<=0.5" + ] + } +} + +command: "Please help me to check the free spaces of my phone storage." diff --git a/open-world-set/switch_alarm.textproto b/open-world-set/switch_alarm.textproto new file mode 100644 index 0000000000000000000000000000000000000000..e708dd7c26183d6672cd98d445ee75162785a8c2 --- /dev/null +++ b/open-world-set/switch_alarm.textproto @@ -0,0 +1,49 @@ +id: "switch_alarm" +name: "Switch My Alarm" +description: "Turn on the temporary alarm" + +setup_steps: { + adb_call: { rotate: { orientation: PORTRAIT_0 } } +} + +reset_steps: [ + { adb_call: { force_stop: { package_name: "com.google.android.deskclock" } } }, + { + adb_call: { + start_activity: { + full_activity: "com.google.android.deskclock/com.android.deskclock.DeskClock" + } + } + success_condition: { + wait_for_app_screen: { + app_screen: { + activity: "com.google.android.deskclock/com.android.deskclock.DeskClock" + } + timeout_sec: 10.0 + } + num_retries: 3 + } + } +] + +max_num_steps: 500 + +event_sources: { + log_event: { + filters: "AlarmClock:*" + pattern: "Updated alarm from: Alarm \\{[^}]+\\} to: Alarm \\{.*\\benabled=true, hour=15, minute=40\\b.*\\}" + } + id: 1 +} +event_slots: { + reward_listener: { + events: { id: 1 } + transformation: "y = 1" + } + episode_end_listener: { + events: { id: 1 } + transformation: "y = True" + } +} + +command: "Turn on my alarm in the afternoon." diff --git a/open-world-set/totp.textproto b/open-world-set/totp.textproto new file mode 100644 index 0000000000000000000000000000000000000000..033f45b3362bf053dbfecdbf9c581a77e998b84a --- /dev/null +++ b/open-world-set/totp.textproto @@ -0,0 +1,92 @@ +id: "check_totp" +name: "Check TOTP" +description: "Check a TOTP" + +setup_steps: { + adb_call: { rotate: { orientation: PORTRAIT_0 } } +} + +reset_steps: [ + { adb_call: { force_stop: { package_name: "com.google.android.apps.authenticator2" } } }, + { adb_call: { press_button: { button: HOME } } } +] + +max_num_steps: 500 + +event_sources: { + text_detect: { + expect: "(\\d{3} *\\d{3})" + rect: { + x0: 0.0427 + x1: 0.3069 + y0: 0.1813 + y1: 0.2292 + } + } + id: 1 + repeatability: LAST +} +event_sources: { + view_hierarchy_event: { + selector: '#"com.google.android.apps.authenticator2:id/user_list">.$"ViewGroup"@0 #$"pin_value"' + properties: { + property_name: "text" + pattern: "\\d{3} \\d{3}" + } + } + id: 2 + repeatability: LAST +} +event_sources: { + response_event: { + mode: REGEX + pattern: "\\b(\\d{3} ?\\d{3})\\b" + } + id: 3 + repeatability: LAST +} + +event_slots: { + reward_listener: { + events: { id: 4 } + transformation: "y = 1 if x else 0" + } + episode_end_listener: { + type: AND + id: 4 + events: { + event:{ + events: { id: 3 } + id: 5 + cache_until: 6 + } + } + events: { + event: { + type: OR + id: 6 + cache_until: 5 + events: { + event: { + events: { id: 1 } + transformation: "y = \"\".join(x[0].split())" + } + } + events: { + event: { + events: { id: 2 } + transformation: "y = \"\".join(x[0].split())" + } + } + } + } + transformation: [ + "answer: str = \"\".join(x[0][0][0].split())", + "references = x[1]", + "print(answer, references)", + "y = answer in references" + ] + } +} + +command: "Check my TOTP for GitHub and tell me the code." diff --git a/open-world-set/transfer_a_vehicle_tag_in_florida-8.textproto b/open-world-set/transfer_a_vehicle_tag_in_florida-8.textproto new file mode 100644 index 0000000000000000000000000000000000000000..0e74061ac543eb848f7c239c4b567a5c0fb0194c --- /dev/null +++ b/open-world-set/transfer_a_vehicle_tag_in_florida-8.textproto @@ -0,0 +1,214 @@ +id: "search_transfer_a_vehicle_tag_in_florida-article_transfer a vehicle tag in florida" +name: "WikiHow Search Task Primitive - Search transfer_a_vehicle_tag_in_florida, Access How to Transfer a Vehicle Tag in Florida" +description: "A demo task primitive requiring to search WikiHow for a specific article.\nA demo task primitive requiring to access a specific article." +setup_steps: { + adb_call: { + install_apk: { + filesystem: { + path: "../wikiHow:万事指南_2.9.6_apkcombo.com.apk" + } + } + } +} +setup_steps: { + adb_call: { + rotate: { + } + } +} +reset_steps: { + adb_call: { + force_stop: { + package_name: "com.wikihow.wikihowapp" + } + } +} +reset_steps: { + adb_call: { + clear_cache: { + package_name: "com.wikihow.wikihowapp" + } + } +} +reset_steps: { + success_condition: { + num_retries: 10 + wait_for_app_screen: { + app_screen: { + activity: "com.wikihow.wikihowapp/com.wikihow.wikihowapp.MainTabActivity" + } + timeout_sec: 10.0 + } + } + adb_call: { + start_activity: { + full_activity: "com.wikihow.wikihowapp/com.wikihow.wikihowapp.MainTabActivity" + } + } +} +max_num_steps: 500 +event_sources: { + text_recognize: { + expect: "\\b(transfer|vehicle|tag|florida)\\b" + rect: { + x0: 0.2439 + y0: 0.0354 + x1: 0.9085 + y1: 0.1171 + } + } + id: 1 +} +event_sources: { + view_hierarchy_event: { + properties: { + property_name: "text" + pattern: "\\b(transfer|vehicle|tag|florida)\\b" + } + properties: { + property_name: "clickable" + pattern: "true" + } + selector: "#$\"search_plate\">#$\"search_src_text\"" + } + id: 2 +} +event_sources: { + log_event: { + filters: "jd:D" + pattern: "\\bmUrl is: https://www\\.wikihow\\.com/wikiHowTo\\?search=.*(transfer|vehicle|tag|florida).*" + } + id: 3 +} +event_sources: { + text_detect: { + expect: "How to Transfer a Vehicle Tag in Florida" + rect: { + y0: 0.19 + x1: 1.0 + y1: 0.3 + } + } + id: 5 +} +event_sources: { + log_event: { + filters: "jd:D" + pattern: "\\bmUrl is: https://www\\.wikihow\\.com/Transfer-a-Vehicle-Tag-in-Florida" + } + id: 6 +} +event_sources: { + view_hierarchy_event: { + properties: { + property_name: "text" + pattern: "How to Transfer a Vehicle Tag in Florida" + } + selector: ".\"android.view.View\"#\"section_0\" .$\"TextView\"" + } + id: 7 +} +event_slots: { + score_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + } + } + } + reward_listener: { + type: OR + events: { + event: { + type: OR + id: 4 + events: { + id: 1 + } + events: { + id: 2 + } + events: { + id: 3 + } + transformation: "y = 1" + repeatability: NONE + } + } + events: { + event: { + type: OR + id: 8 + events: { + id: 5 + } + events: { + id: 6 + } + events: { + id: 7 + } + transformation: "y = 1" + repeatability: NONE + } + } + } + episode_end_listener: { + events: { + id: 8 + } + transformation: "y = True" + } + extra_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + } + } + } + json_extra_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + } + } + } + instruction_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + events: { + id: 4 + } + transformation: "y = [\'Access the article \"How to Transfer a Vehicle Tag in Florida\"\']" + } + } + events: { + event: { + } + } + } +} +command: "Search an article to learn how to transfer a vehicle tag in florida." +command: "Then, access the article \"How to Transfer a Vehicle Tag in Florida\"" +vocabulary: "transfer" +vocabulary: "tag" +vocabulary: "vehicle" +vocabulary: "florida" +vocabulary: "how to" diff --git a/open-world-set/uninstall_apk-kdeconnect.textproto b/open-world-set/uninstall_apk-kdeconnect.textproto new file mode 100644 index 0000000000000000000000000000000000000000..8790eccad9a41036d959a18ccd7c3a4b9cdd21e0 --- /dev/null +++ b/open-world-set/uninstall_apk-kdeconnect.textproto @@ -0,0 +1,88 @@ +id: "uninstall_apk_org.kde.kdeconnect_tp_12701.apk" +name: "Uninstall App KDE Connect" +description: "Uninstall app KDE Connect from F-Droid" +setup_steps: { + adb_call: { + rotate: { + } + } +} +reset_steps: { + adb_call: { + force_stop: { + package_name: "org.fdroid.fdroid" + } + } +} +reset_steps: { + adb_call: { + install_apk: { + filesystem: { + path: "org.kde.kdeconnect_tp_12701.apk" + } + } + } +} +reset_steps: { + adb_call: { + press_button: { + } + } +} +max_num_steps: 500 +event_sources: { + log_event: { + filters: "PackageUpdatedTask:D" + pattern: "Removing app iconorg\\.kde\\.kdeconnect_tp_12701\\.apk" + } + id: 1 +} +event_slots: { + score_listener: { + type: OR + events: { + event: { + } + } + } + reward_listener: { + type: OR + events: { + event: { + events: { + id: 1 + } + transformation: "y = 1." + } + } + } + episode_end_listener: { + events: { + id: 1 + } + transformation: "y = True" + } + extra_listener: { + type: OR + events: { + event: { + } + } + } + json_extra_listener: { + type: OR + events: { + event: { + } + } + } + instruction_listener: { + type: OR + events: { + event: { + } + } + } +} +command: "Uninstall the app KDE Connect on my phone." +vocabulary: "KDE Connect" diff --git a/open-world-set/uninstall_apk-malp.textproto b/open-world-set/uninstall_apk-malp.textproto new file mode 100644 index 0000000000000000000000000000000000000000..975fdeb5c173bc6c2caf35f6f8c75504f1efbe64 --- /dev/null +++ b/open-world-set/uninstall_apk-malp.textproto @@ -0,0 +1,88 @@ +id: "uninstall_apk_org.gateshipone.malp" +name: "Uninstall App M.A.L.P." +description: "Uninstall app M.A.L.P. from F-Droid" +setup_steps: { + adb_call: { + rotate: { + } + } +} +reset_steps: { + adb_call: { + force_stop: { + package_name: "org.fdroid.fdroid" + } + } +} +reset_steps: { + adb_call: { + install_apk: { + filesystem: { + path: "org.gateshipone.malp_40.apk" + } + } + } +} +reset_steps: { + adb_call: { + press_button: { + } + } +} +max_num_steps: 500 +event_sources: { + log_event: { + filters: "PackageUpdatedTask:D" + pattern: "Removing app iconorg\\.gateshipone\\.malp" + } + id: 1 +} +event_slots: { + score_listener: { + type: OR + events: { + event: { + } + } + } + reward_listener: { + type: OR + events: { + event: { + events: { + id: 1 + } + transformation: "y = 1." + } + } + } + episode_end_listener: { + events: { + id: 1 + } + transformation: "y = True" + } + extra_listener: { + type: OR + events: { + event: { + } + } + } + json_extra_listener: { + type: OR + events: { + event: { + } + } + } + instruction_listener: { + type: OR + events: { + event: { + } + } + } +} +command: "Uninstall the app M.A.L.P. on my phone." +vocabulary: "M.A.L.P." diff --git a/open-world-set/uninstall_apk-openmoneybox.textproto b/open-world-set/uninstall_apk-openmoneybox.textproto new file mode 100644 index 0000000000000000000000000000000000000000..0717692551820a00b7cf4d65f972dfb87a6f10f2 --- /dev/null +++ b/open-world-set/uninstall_apk-openmoneybox.textproto @@ -0,0 +1,88 @@ +id: "uninstall_apk_com.igisw.openmoneybox" +name: "Uninstall App OpenMoneyBox" +description: "Uninstall app OpenMoneyBox from F-Droid" +setup_steps: { + adb_call: { + rotate: { + } + } +} +reset_steps: { + adb_call: { + force_stop: { + package_name: "org.fdroid.fdroid" + } + } +} +reset_steps: { + adb_call: { + install_apk: { + filesystem: { + path: "com.igisw.openmoneybox_55.apk" + } + } + } +} +reset_steps: { + adb_call: { + press_button: { + } + } +} +max_num_steps: 500 +event_sources: { + log_event: { + filters: "PackageUpdatedTask:D" + pattern: "Removing app iconcom\\.igisw\\.openmoneybox" + } + id: 1 +} +event_slots: { + score_listener: { + type: OR + events: { + event: { + } + } + } + reward_listener: { + type: OR + events: { + event: { + events: { + id: 1 + } + transformation: "y = 1." + } + } + } + episode_end_listener: { + events: { + id: 1 + } + transformation: "y = True" + } + extra_listener: { + type: OR + events: { + event: { + } + } + } + json_extra_listener: { + type: OR + events: { + event: { + } + } + } + instruction_listener: { + type: OR + events: { + event: { + } + } + } +} +command: "Uninstall the app OpenMoneyBox on my phone." +vocabulary: "OpenMoneyBox" diff --git a/open-world-set/use_scissors_in_gimp-0.textproto b/open-world-set/use_scissors_in_gimp-0.textproto new file mode 100644 index 0000000000000000000000000000000000000000..1cd80d04829619e878660719d16102ba591307e2 --- /dev/null +++ b/open-world-set/use_scissors_in_gimp-0.textproto @@ -0,0 +1,283 @@ +id: "search_use_scissors_in_gimp-article_use scissors in gimp-about_page" +name: "WikiHow Search Task Primitive - Search use_scissors_in_gimp, Access How to Use Scissors in Gimp, Access the About Page" +description: "A demo task primitive requiring to search WikiHow for a specific article.\nA demo task primitive requiring to access a specific article.\nA demo task asking to access the about page" +setup_steps: { + adb_call: { + install_apk: { + filesystem: { + path: "../wikiHow:万事指南_2.9.6_apkcombo.com.apk" + } + } + } +} +setup_steps: { + adb_call: { + rotate: { + } + } +} +reset_steps: { + adb_call: { + force_stop: { + package_name: "com.wikihow.wikihowapp" + } + } +} +reset_steps: { + adb_call: { + clear_cache: { + package_name: "com.wikihow.wikihowapp" + } + } +} +reset_steps: { + success_condition: { + num_retries: 10 + wait_for_app_screen: { + app_screen: { + activity: "com.wikihow.wikihowapp/com.wikihow.wikihowapp.MainTabActivity" + } + timeout_sec: 10.0 + } + } + adb_call: { + start_activity: { + full_activity: "com.wikihow.wikihowapp/com.wikihow.wikihowapp.MainTabActivity" + } + } +} +max_num_steps: 500 +event_sources: { + text_recognize: { + expect: "\\b(use|scissors|gimp)\\b" + rect: { + x0: 0.2439 + y0: 0.0354 + x1: 0.9085 + y1: 0.1171 + } + } + id: 1 +} +event_sources: { + view_hierarchy_event: { + properties: { + property_name: "text" + pattern: "\\b(use|scissors|gimp)\\b" + } + properties: { + property_name: "clickable" + pattern: "true" + } + selector: "#$\"search_plate\">#$\"search_src_text\"" + } + id: 2 +} +event_sources: { + log_event: { + filters: "jd:D" + pattern: "\\bmUrl is: https://www\\.wikihow\\.com/wikiHowTo\\?search=.*(use|scissors|gimp).*" + } + id: 3 +} +event_sources: { + text_detect: { + expect: "How to Use Scissors in Gimp" + rect: { + y0: 0.19 + x1: 1.0 + y1: 0.3 + } + } + id: 5 +} +event_sources: { + log_event: { + filters: "jd:D" + pattern: "\\bmUrl is: https://www\\.wikihow\\.com/Use-Scissors-in-Gimp" + } + id: 6 +} +event_sources: { + view_hierarchy_event: { + properties: { + property_name: "text" + pattern: "How to Use Scissors in Gimp" + } + selector: ".\"android.view.View\"#\"section_0\" .$\"TextView\"" + } + id: 7 +} +event_sources: { + text_detect: { + expect: "Information You Can Trust|A Guide to our Editorial Process" + rect: { + y0: 0.1 + x1: 1.0 + y1: 0.6 + } + } + id: 9 +} +event_sources: { + log_event: { + filters: "jd:D" + pattern: "\\bmUrl is: https://www\\.wikihow\\.com/wikiHow:Delivering-a-Trustworthy-Experience" + } + id: 10 +} +event_sources: { + view_hierarchy_event: { + properties: { + property_name: "text" + pattern: "Information You Can Trust" + } + selector: ".$\"View\"#\"trustworthy_top\">.$\"View\"#\"trustworthy_head\">.\"android.view.View\"" + } + id: 11 +} +event_slots: { + score_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + } + } + events: { + event: { + } + } + } + reward_listener: { + type: OR + events: { + event: { + type: OR + id: 4 + events: { + id: 1 + } + events: { + id: 2 + } + events: { + id: 3 + } + transformation: "y = 1" + repeatability: NONE + } + } + events: { + event: { + type: OR + id: 8 + events: { + id: 5 + } + events: { + id: 6 + } + events: { + id: 7 + } + transformation: "y = 1" + repeatability: NONE + } + } + events: { + event: { + type: OR + id: 12 + events: { + id: 9 + } + events: { + id: 10 + } + events: { + id: 11 + } + transformation: "y = 1" + repeatability: NONE + } + } + } + episode_end_listener: { + events: { + id: 12 + } + transformation: "y = True" + } + extra_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + } + } + events: { + event: { + } + } + } + json_extra_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + } + } + events: { + event: { + } + } + } + instruction_listener: { + type: OR + events: { + event: { + } + } + events: { + event: { + events: { + id: 4 + } + transformation: "y = [\'Access the article \"How to Use Scissors in Gimp\"\']" + } + } + events: { + event: { + } + } + events: { + event: { + events: { + id: 8 + } + transformation: "y = [\'Access the about page to learn why people trust wikihow.\']" + } + } + events: { + event: { + } + } + } +} +command: "Search an article to learn how to use scissors in gimp." +command: "Then, access the article \"How to Use Scissors in Gimp\"" +command: "Then, access the about page to learn why people trust wikihow." +vocabulary: "use" +vocabulary: "gimp" +vocabulary: "scissors" +vocabulary: "how to" diff --git a/open-world-set/wallpaper.jpg b/open-world-set/wallpaper.jpg new file mode 100644 index 0000000000000000000000000000000000000000..e95f9ce660465744d9f2a892302ac0bb8af2cda9 --- /dev/null +++ b/open-world-set/wallpaper.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1df09db70421a45bb2d38a1c6cf41149024829d7e3d1aeb79fd57cb79a1a1fdc +size 5188495 diff --git "a/open-world-set/\350\265\267\347\202\271\350\257\273\344\271\246_6.4.2_apkcombo.com.apk" "b/open-world-set/\350\265\267\347\202\271\350\257\273\344\271\246_6.4.2_apkcombo.com.apk" new file mode 100644 index 0000000000000000000000000000000000000000..a56d105d93a1a42f7c93e4239db9debea8774285 --- /dev/null +++ "b/open-world-set/\350\265\267\347\202\271\350\257\273\344\271\246_6.4.2_apkcombo.com.apk" @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:96631bb76c55aa87d1e529f954897c84b879aeae3df376d7bd5bd455e3302e9d +size 12083897