Skip to content

Commit

Permalink
fix(web-report): fixed the report folder issue (#22)
Browse files Browse the repository at this point in the history
* fix(web-report): fix report dir

* chore: fix langsmith wrapper

* chore: fix langsmith wrapper

* chore: fix langsmith wrapper
  • Loading branch information
zhoushaw authored Aug 1, 2024
1 parent 5b39b35 commit 06cde6c
Show file tree
Hide file tree
Showing 5 changed files with 106 additions and 407 deletions.
8 changes: 3 additions & 5 deletions packages/playwright-demo/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,23 @@
{
"compilerOptions": {
"baseUrl": ".",
"module": "NodeNext",
"types": ["node"],
"declaration": true,
"emitDeclarationOnly": true,
"esModuleInterop": true,
"preserveSymlinks": true,
"forceConsistentCasingInFileNames": true,
"isolatedModules": true,
"jsx": "preserve",
"lib": ["DOM", "ESNext"],
"moduleResolution": "NodeNext",
"moduleResolution": "node",
"paths": {
"@/*": ["./src/*"]
},
"target": "ES2017",
"resolveJsonModule": true,
"rootDir": "./",
"skipLibCheck": true,
"strict": true
},
"exclude": ["**/node_modules"],
"exclude": [ "node_modules"],
"include": ["src", "e2e", "./playwright.config.ts", "./modern.config.ts"]
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"pkgName": "@midscene/web",
"pkgVersion": "0.1.1",
"pkgVersion": "0.1.2",
"taskFile": "ai-auto-todo.spec.ts:8",
"taskTitle": "ai todo",
"aiTasks": [
Expand All @@ -17,21 +17,21 @@
"response": {
"plans": [
{
"thought": "To create a new task, we need to locate the input box where tasks are entered.",
"thought": "The user wants to input a new task in the todo list input box and then press enter to create it. The input field is identified by its placeholder text 'What needs to be done?'.",
"type": "Locate",
"param": {
"prompt": "The input box with placeholder text 'What needs to be done?' located in the center of the page."
"prompt": "The input box with the placeholder text 'What needs to be done?'."
}
},
{
"thought": "Enter the task 'Learn JS today' in the located input box.",
"thought": "Once the input box is located, we need to enter the task description.",
"type": "Input",
"param": {
"value": "Learn JS today"
}
},
{
"thought": "Press Enter to create the new task.",
"thought": "After entering the task, we need to commit it by pressing 'Enter'.",
"type": "KeyboardPress",
"param": {
"value": "Enter"
Expand All @@ -49,11 +49,11 @@
"height": 720
}
},
"prompt": "The input box with placeholder text 'What needs to be done?' located in the center of the page.",
"prompt": "The input box with the placeholder text 'What needs to be done?'.",
"response": {
"elements": [
{
"reason": "The input box with the placeholder text 'What needs to be done?' located in the center of the page matches the description.",
"reason": "The element with ID '3530a9c1eb' is an INPUT Node. Its placeholder text is 'What needs to be done?', which matches the user's description.",
"text": "What needs to be done?",
"id": "3530a9c1eb"
}
Expand All @@ -74,14 +74,14 @@
"response": {
"plans": [
{
"thought": "First, we locate the task input box to add a new task.",
"thought": "The user wants to input a new task and hit enter for creation. First, we need to locate the task input box.",
"type": "Locate",
"param": {
"prompt": "The input box with the placeholder 'What needs to be done?' positioned near the top center of the page."
"prompt": "The input box with placeholder text 'What needs to be done?'"
}
},
{
"thought": "Entering the task details 'Learn Rust tomorrow' into the input box.",
"thought": "Typing 'Learn Rust tomorrow' into the task input box.",
"type": "Input",
"param": {
"value": "Learn Rust tomorrow"
Expand All @@ -106,11 +106,11 @@
"height": 720
}
},
"prompt": "The input box with the placeholder 'What needs to be done?' positioned near the top center of the page.",
"prompt": "The input box with placeholder text 'What needs to be done?'",
"response": {
"elements": [
{
"reason": "The input box with the placeholder 'What needs to be done?' positioned near the top center of the page matches the element with ID '3530a9c1eb'. This element is an INPUT Node with the specified placeholder.",
"reason": "The element is an input node with the placeholder text 'What needs to be done?' located at 366px from the left and 130px from the top.",
"text": "What needs to be done?",
"id": "3530a9c1eb"
}
Expand All @@ -131,21 +131,21 @@
"response": {
"plans": [
{
"thought": "进入新任务的输入框,键入\"Learning AI the day after tomorrow\",然后按回车键。",
"thought": "Focusing on the input task box based on its placeholder text.",
"type": "Locate",
"param": {
"prompt": "The text input box with placeholder 'What needs to be done?'"
"prompt": "The input box with placeholder text 'What needs to be done?' near the top center of the page."
}
},
{
"thought": "找到输入框后,可以输入内容。",
"thought": "Entering the desired task text into the located input box.",
"type": "Input",
"param": {
"value": "Learning AI the day after tomorrow"
}
},
{
"thought": "输入完成后,点击回车键以创建新任务。",
"thought": "Pressing the Enter key to add the new task to the list.",
"type": "KeyboardPress",
"param": {
"value": "Enter"
Expand All @@ -163,11 +163,11 @@
"height": 720
}
},
"prompt": "The text input box with placeholder 'What needs to be done?'",
"prompt": "The input box with placeholder text 'What needs to be done?' near the top center of the page.",
"response": {
"elements": [
{
"reason": "This input element matches the description 'text input box with placeholder What needs to be done?', it has the attribute 'placeholder' with the value 'What needs to be done?'",
"reason": "The element matches the description as it is an input box with the placeholder text 'What needs to be done?' near the top center of the page.",
"text": "What needs to be done?",
"id": "3530a9c1eb"
}
Expand All @@ -188,26 +188,26 @@
"response": {
"plans": [
{
"thought": "The task involves interacting with the second item on the task list, specifically hovering over and clicking the Delete button.",
"thought": "First, I need to locate the second task, which is 'Learn Rust tomorrow'.",
"type": "Locate",
"param": {
"prompt": "The second task item with content 'Learn Rust tomorrow'"
"prompt": "The task with the text 'Learn Rust tomorrow'"
}
},
{
"thought": "Hover over the located element to make the Delete button visible.",
"thought": "Hover over the second task to reveal the Delete button.",
"type": "Hover",
"param": null
},
{
"thought": "Locate the Delete button next to the second task item.",
"thought": "Now, I need to locate the Delete button for the second task.",
"type": "Locate",
"param": {
"prompt": "A delete button to the far right of the second task item 'Learn Rust tomorrow'"
"prompt": "The Delete button to the right of the task 'Learn Rust tomorrow'"
}
},
{
"thought": "Click the Delete button to remove the second task item.",
"thought": "I will now click the located Delete button.",
"type": "Tap",
"param": null
}
Expand All @@ -223,11 +223,11 @@
"height": 720
}
},
"prompt": "The second task item with content 'Learn Rust tomorrow'",
"prompt": "The task with the text 'Learn Rust tomorrow'",
"response": {
"elements": [
{
"reason": "The element with the content 'Learn Rust tomorrow' exactly matches the user's description to identify the 'Learn Rust tomorrow' task item.",
"reason": "The element has the content 'Learn Rust tomorrow', matching the description provided.",
"text": "Learn Rust tomorrow",
"id": "10bc260820"
}
Expand All @@ -244,11 +244,11 @@
"height": 720
}
},
"prompt": "A delete button to the far right of the second task item 'Learn Rust tomorrow'",
"prompt": "The Delete button to the right of the task 'Learn Rust tomorrow'",
"response": {
"elements": [
{
"reason": "The element is a button type located to the far right of the second task item 'Learn Rust tomorrow'. It matches the description of a delete button for that task.",
"reason": "The element is a 'BUTTON Node' (an 'X' button) situated to the right of the text node labeled 'Learn Rust tomorrow",
"text": "×",
"id": "7ccd467339"
}
Expand All @@ -269,14 +269,14 @@
"response": {
"plans": [
{
"thought": "The user wants to click the checkbox to the left of the second task. Based on the screenshot and the given context, the second task is 'Learning AI the day after tomorrow'. We should locate the checkbox next to this task.",
"thought": "The user asked to click the check button to the left of the second task labeled 'Learning AI the day after tomorrow', so I need to locate that checkbox first.",
"type": "Locate",
"param": {
"prompt": "The checkbox to the left of the task 'Learning AI the day after tomorrow'."
"prompt": "Checkbox on the left of 'Learning AI the day after tomorrow'"
}
},
{
"thought": "The checkbox for the second task 'Learning AI the day after tomorrow' is located, and needs to be clicked.",
"thought": "Now that the checkbox is located, it should be tapped to mark the task as done.",
"type": "Tap",
"param": null
}
Expand All @@ -292,11 +292,11 @@
"height": 720
}
},
"prompt": "The checkbox to the left of the task 'Learning AI the day after tomorrow'.",
"prompt": "Checkbox on the left of 'Learning AI the day after tomorrow'",
"response": {
"elements": [
{
"reason": "The element is a checkbox (INPUT Node) located to the left of the task text 'Learning AI the day after tomorrow'. It matches the description precisely.",
"reason": "This element is a checkbox located to the left of the 'Learning AI the day after tomorrow' text, matching the user's description.",
"text": "",
"id": "c0751f3b26"
}
Expand All @@ -317,14 +317,14 @@
"response": {
"plans": [
{
"thought": "The user wants to click on the Completed Status button in the task list. Locate the element with the label Completed below the task list.",
"thought": "The user wants to click the 'Completed' status button below the task list to filter the tasks and see only the completed ones. This element is identifiable by its text content 'Completed'.",
"type": "Locate",
"param": {
"prompt": "The button labeled 'Completed' below the task list."
"prompt": "The 'Completed' status button below the task list with the text 'Completed'."
}
},
{
"thought": "Click on the located Completed Status button.",
"thought": "Click the located 'Completed' status button to filter the task list.",
"type": "Tap",
"param": null
}
Expand All @@ -340,11 +340,11 @@
"height": 720
}
},
"prompt": "The button labeled 'Completed' below the task list.",
"prompt": "The 'Completed' status button below the task list with the text 'Completed'.",
"response": {
"elements": [
{
"reason": "The element labeled 'Completed' below the task list corresponds to the text node with the content 'Completed'.",
"reason": "The 'Completed' status button below the task list and next to 'Active' with the text 'Completed'. In the provided JSON, the text 'Completed' is found in element with id 663a34de3b.",
"text": "Completed",
"id": "663a34de3b"
}
Expand Down
Loading

0 comments on commit 06cde6c

Please sign in to comment.