-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into dev/robgruen/electron_tests
- Loading branch information
Showing
28 changed files
with
315 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,6 +45,7 @@ steps: | |
# workspace-concurrency 0 means use use the CPU core count. This is better than the default (4) for larger agents. | ||
script: | | ||
echo "Using node $(node --version)" | ||
npm install -g [email protected] | ||
sudo corepack enable | ||
echo "Using pnpm $(pnpm -v)" | ||
pnpm config set store-dir ${{ parameters.pnpmStorePath }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ FROM node:20 AS base | |
|
||
ENV PNPM_HOME="/pnpm" | ||
ENV PATH="$PNPM_HOME:$PATH" | ||
RUN npm install -g [email protected] | ||
RUN corepack enable | ||
|
||
# Install dependencies required for Chrome/Puppeteer | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,7 +48,7 @@ | |
"prettier": "^3.2.5", | ||
"shx": "^0.3.4" | ||
}, | ||
"packageManager": "[email protected].4+sha512.b2dc20e2fc72b3e18848459b37359a32064663e5627a51e4c74b2c29dd8e8e0491483c3abb40789cfd578bf362fb6ba8261b05f0387d76792ed6e23ea3b1b6a0", | ||
"packageManager": "[email protected].5+sha512.845196026aab1cc3f098a0474b64dfbab2afe7a1b4e91dd86895d8e4aa32a7a6d03049e2d0ad770bbe4de023a7122fb68c1a1d6e0d033c7076085f9d5d4800d4", | ||
"engines": { | ||
"node": ">=18", | ||
"pnpm": ">=9" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
ts/packages/agents/browser/src/agent/discovery/schema/pageSummary.mts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
|
||
// A description of the page, including layout information and summary of content. | ||
export type PageDescription = { | ||
description: string; | ||
features: string[]; | ||
entities: string[]; | ||
possibleUserAction: string[]; | ||
}; |
90 changes: 53 additions & 37 deletions
90
ts/packages/agents/browser/src/agent/discovery/schema/pageTypes.mts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,71 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
|
||
export type SearchBox = { | ||
featureName: "searchInputBox"; | ||
description: "Input box for searching on the page"; | ||
parameters: { | ||
cssSelector: string; | ||
}; | ||
}; | ||
|
||
export type SearchResultsList = { | ||
featureName: "searchResultsList"; | ||
description: "List of products available from the search results"; | ||
parameters: { | ||
cssSelector: string; | ||
}; | ||
}; | ||
|
||
export type ProductDetailsCard = { | ||
featureName: "productDetailsCard"; | ||
description: "A section that shows the product name, price, images and rating. This also gives an option to add the product to the shopping cart."; | ||
parameters: { | ||
cssSelector: string; | ||
}; | ||
}; | ||
|
||
export type SearchForContent = { | ||
actionName: "searchForProduct"; | ||
description: "Find content on the page"; | ||
parameters: { | ||
value: string; | ||
cssSelector: string; | ||
}; | ||
}; | ||
|
||
export type LandingPage = { | ||
description: "The default landing page for the site"; | ||
features: SearchBox; | ||
}; | ||
|
||
export type SearchResultsPage = { | ||
description: "The search results page"; | ||
features: SearchResultsList; | ||
}; | ||
|
||
export type ProductDetailsPage = { | ||
description: "A product details page, with focus on one product."; | ||
features: ProductDetailsCard; | ||
}; | ||
|
||
export type ShoppingCartPage = { | ||
description: "The shopping cart page for the site"; | ||
features: SearchBox; | ||
}; | ||
|
||
export type PastOrderPage = { | ||
description: "The page showing a user's past orders"; | ||
}; | ||
|
||
export type UnknownPage = { | ||
description: "A page that does not meet the previous more-specific categories"; | ||
}; | ||
|
||
export type CommercePageTypes = | ||
| LandingPage | ||
| SearchResultsPage | ||
| ProductDetailsPage | ||
| ShoppingCartPage | ||
| PastOrderPage | ||
| UnknownPage; | ||
|
||
export type CrosswordPage = { | ||
description: "The page showing a crossword puzzle"; | ||
}; | ||
|
||
export type NewsLandingPage = { | ||
description: "The page showing news headlines for the day"; | ||
}; | ||
|
||
export type SportsLandingPage = { | ||
description: "The page showing sports headlines for the day"; | ||
}; | ||
|
||
export type OpinionPage = { | ||
description: "The page showing editorial opinions for the day"; | ||
}; | ||
|
||
export type ArticlePage = { | ||
description: "The page showing an individual news article"; | ||
}; | ||
|
||
export type WeatherPage = { | ||
description: "The page showing weather headlines"; | ||
}; | ||
|
||
export type PuzzlesPage = { | ||
description: "The page showing a list of puzzles, such as sudoku, crossword, word matching games and more."; | ||
}; | ||
|
||
export type NewsPageTypes = | ||
| CrosswordPage | ||
| NewsLandingPage | ||
| SportsLandingPage | ||
| OpinionPage | ||
| ArticlePage | ||
| PuzzlesPage | ||
| UnknownPage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.