Skip to content

Commit 857c411

Browse files
authored
feat: allow tracking newly-opened tabs in Chrome extension (#272)
1 parent db70ae2 commit 857c411

25 files changed

Lines changed: 170 additions & 136 deletions

‎apps/site/docs/en/API.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ The main capabilities of Midscene are as follows, and your task will be split in
3131
Currently, Midscene can't plan steps that include conditions and loops.
3232

3333
Related Docs:
34-
* [FAQ: Can Midscene smartly plan the actions according to my one-line goal? Like executing "Tweet 'hello world'](./faq.html)
35-
* [Prompting Tips](./prompting-tips.html)
34+
* [FAQ: Can Midscene smartly plan the actions according to my one-line goal? Like executing "Tweet 'hello world'](./faq)
35+
* [Prompting Tips](./prompting-tips)
3636

3737
## `.aiQuery(dataDemand: any)` - extract any data from page
3838

‎apps/site/docs/en/automate-with-scripts-in-yaml.mdx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ or you can use a `.env` file to store the configuration
4040
OPENAI_API_KEY="sk-abcdefghijklmnopqrstuvwxyz"
4141
```
4242

43-
or you may [customize model and provider](./model-provider.html)
43+
or you may [customize model and provider](./model-provider)
4444

4545
## Start
4646

@@ -202,7 +202,7 @@ You can use the environment variable in the `.yaml` file like this:
202202
## Use bridge mode
203203
By using bridge mode, you can utilize YAML scripts to automate the web browser on your desktop. This is particularly useful if you want to reuse cookies, plugins, and page states, or if you want to manually interact with automation scripts.
204204

205-
See [Bridge Mode by Chrome Extension](./bridge-mode-by-chrome-extension.html) for more details.
205+
See [Bridge Mode by Chrome Extension](./bridge-mode-by-chrome-extension) for more details.
206206

207207
## FAQ
208208

@@ -212,4 +212,4 @@ You can use this [chrome extension](https://chromewebstore.google.com/detail/get
212212

213213
## More
214214

215-
You may also be interested in [Prompting Tips](./prompting-tips.html)
215+
You may also be interested in [Prompting Tips](./prompting-tips)

‎apps/site/docs/en/bridge-mode-by-chrome-extension.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ you can check the demo project of bridge mode here: [https://github.com/web-infr
1414

1515
## Preparation
1616

17-
1. Config the OpenAI API key, or [customize model and provider](./model-provider.html)
17+
1. Config the OpenAI API key, or [customize model and provider](./model-provider)
1818

1919
```bash
2020
# replace with your own

‎apps/site/docs/en/faq.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
No. Midscene is an automation assistance SDK with a key feature of action stability — ensuring the same actions are performed in each run. To maintain this stability, we encourage you to provide detailed instructions to help the AI understand each step of your task.
66

7-
Related Docs: [Prompting Tips](./prompting-tips.html)
7+
Related Docs: [Prompting Tips](./prompting-tips)
88

99
## Limitations
1010

@@ -17,7 +17,7 @@ There are some limitations with Midscene. We are still working on them.
1717

1818
## Can I use a model other than `gpt-4o`?
1919

20-
Yes. You can [customize model and provider](./model-provider.html) if needed.
20+
Yes. You can [customize model and provider](./model-provider) if needed.
2121

2222
## About the token cost
2323

‎apps/site/docs/en/index.mdx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ Midscene will provide a visual report after each run. With this report, you can
6969

7070
## Customize Model
7171

72-
Currently, the model we are using by default is the OpenAI GPT-4o model, while you can [customize it to a different multimodal model](./model-provider.html) if needed.
72+
Currently, the model we are using by default is the OpenAI GPT-4o model, while you can [customize it to a different multimodal model](./model-provider) if needed.
7373

7474
## Start with Chrome Extension
7575

76-
To quickly experience the main features of Midscene, you can use the [Chrome Extension](./quick-experience.html). It allows you to use Midscene on any webpage without writing any code.
76+
To quickly experience the main features of Midscene, you can use the [Chrome Extension](./quick-experience). It allows you to use Midscene on any webpage without writing any code.

‎apps/site/docs/en/integrate-with-playwright.mdx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ you can check the demo project of Playwright here: [https://github.com/web-infra
1212

1313
## Preparation
1414

15-
Config the OpenAI API key, or [customize model and provider](./model-provider.html)
15+
Config the OpenAI API key, or [customize model and provider](./model-provider)
1616

1717
```bash
1818
# replace with your own
@@ -91,4 +91,4 @@ After the above command executes successfully, the console will output: `Midscen
9191

9292
## More
9393

94-
You may also be interested in [Prompting Tips](./prompting-tips.html)
94+
You may also be interested in [Prompting Tips](./prompting-tips)

‎apps/site/docs/en/integrate-with-puppeteer.mdx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ There is also a demo of Puppeteer with Vitest: [https://github.com/web-infra-dev
1313

1414
## Preparation
1515

16-
Config the OpenAI API key, or [customize model and provider](./model-provider.html)
16+
Config the OpenAI API key, or [customize model and provider](./model-provider)
1717

1818
```bash
1919
# replace with your own
@@ -98,4 +98,4 @@ After the above command executes successfully, the console will output: `Midscen
9898

9999
## More
100100

101-
You may also be interested in [Prompting Tips](./prompting-tips.html)
101+
You may also be interested in [Prompting Tips](./prompting-tips)

‎apps/site/docs/en/model-provider.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Customize Model and Provider
22

3-
Midscene uses the OpenAI SDK to call AI services. You can customize the configuration using environment variables. All the configs can also be used in the [Chrome Extension](./quick-experience.html).
3+
Midscene uses the OpenAI SDK to call AI services. You can customize the configuration using environment variables. All the configs can also be used in the [Chrome Extension](./quick-experience).
44

55
These are the main configs, in which `OPENAI_API_KEY` is required.
66

@@ -65,7 +65,7 @@ If you want to use other models, please follow these steps:
6565

6666
1. Choose a model that supports image input (a.k.a. multimodal model).
6767
2. Find out how to to call it with an OpenAI SDK compatible endpoint. Usually you should set the `OPENAI_BASE_URL`, `OPENAI_API_KEY` and `MIDSCENE_MODEL_NAME`.
68-
3. If you find it not working well after changing the model, you can try using some short and clear prompt (or roll back to the previous model). See more details in [Prompting Tips](./prompting-tips.html).
68+
3. If you find it not working well after changing the model, you can try using some short and clear prompt (or roll back to the previous model). See more details in [Prompting Tips](./prompting-tips).
6969
4. Remember to follow the terms of use of each model.
7070

7171
## Example: Using `claude-3-opus-20240229` from Anthropic

‎apps/site/docs/en/quick-experience.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Start the extension (may be folded by default), setup the config by pasting the
2020
OPENAI_API_KEY="sk-replace-by-your-own"
2121
```
2222

23-
You can also paste the configuration as described in [customize model and provider](./model-provider.html) here.
23+
You can also paste the configuration as described in [customize model and provider](./model-provider) here.
2424

2525
## Start experiencing
2626

‎apps/site/docs/zh/API.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ await mid.ai('点击任务列表下方的 "completed" 状态按钮');
3131
目前,Midscene 无法规划包含条件和循环的步骤。
3232

3333
关联文档:
34-
* [FAQ: Midscene 能否根据一句话指令实现智能操作?比如执行 "发一条微博"'](./faq.html)
35-
* [编写提示词的技巧](./prompting-tips.html)
34+
* [FAQ: Midscene 能否根据一句话指令实现智能操作?比如执行 "发一条微博"'](./faq)
35+
* [编写提示词的技巧](./prompting-tips)
3636

3737
## `.aiQuery(dataShape: any)` - 从页面提取数据
3838

0 commit comments

Comments
 (0)