test-wuying-agentbay-sdk 0.13.0-beta.20251210151030 → 0.13.0-beta.20251211155407
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +406 -60
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +152 -18
- package/dist/index.d.ts +152 -18
- package/dist/index.mjs +405 -59
- package/dist/index.mjs.map +1 -1
- package/docs/api/README.md +2 -0
- package/docs/api/common-features/advanced/agent.md +7 -63
- package/docs/api/common-features/advanced/browser-use-agent.md +113 -0
- package/docs/api/common-features/advanced/computer-use-agent.md +79 -0
- package/docs/examples/browser-use/browser/browser-type-example.ts +3 -4
- package/docs/examples/common-features/advanced/agent-module-example.ts +1 -1
- package/docs/examples/common-features/advanced/archive-upload-mode-example/archive-upload-mode-example.ts +4 -5
- package/docs/examples/mobile-use/mobile-get-adb-url/index.ts +1 -1
- package/package.json +1 -1
- package/docs/examples/mobile-use/mobile-get-adb-url/package-lock.json +0 -279
- package/docs/examples/mobile-use/mobile-get-adb-url/package.json +0 -18
package/docs/api/README.md
CHANGED
|
@@ -5,77 +5,21 @@
|
|
|
5
5
|
- [Agent Modules Guide](../../../../../docs/guides/common-features/advanced/agent-modules.md) - Learn about agent modules and custom agents
|
|
6
6
|
|
|
7
7
|
An Agent to manipulate applications to complete specific tasks.
|
|
8
|
+
According to the use scenary, The agent can a browser use agent which is
|
|
9
|
+
specialized for browser automation tasks, The agent also can be a computer
|
|
10
|
+
use agent which is specialized for multiple applications automation tasks.
|
|
8
11
|
|
|
9
12
|
## Table of contents
|
|
10
13
|
|
|
11
14
|
|
|
12
|
-
###
|
|
15
|
+
### Properties
|
|
13
16
|
|
|
14
|
-
- [executeTask](#executetask)
|
|
15
|
-
- [terminateTask](#terminatetask)
|
|
16
17
|
|
|
17
|
-
##
|
|
18
|
-
|
|
19
|
-
### executeTask
|
|
20
|
-
|
|
21
|
-
▸ **executeTask**(`task`, `maxTryTimes`): `Promise`\<``ExecutionResult``\>
|
|
22
|
-
|
|
23
|
-
Execute a specific task described in human language.
|
|
24
|
-
|
|
25
|
-
#### Parameters
|
|
26
|
-
|
|
27
|
-
| Name | Type | Description |
|
|
28
|
-
| :------ | :------ | :------ |
|
|
29
|
-
| `task` | `string` | Task description in human language. |
|
|
30
|
-
| `maxTryTimes` | `number` | Maximum number of retry attempts. |
|
|
31
|
-
|
|
32
|
-
#### Returns
|
|
33
|
-
|
|
34
|
-
`Promise`\<``ExecutionResult``\>
|
|
35
|
-
|
|
36
|
-
ExecutionResult containing success status, task output, and error message if any.
|
|
37
|
-
|
|
38
|
-
**`Example`**
|
|
39
|
-
|
|
40
|
-
```typescript
|
|
41
|
-
const agentBay = new AgentBay({ apiKey: 'your_api_key' });
|
|
42
|
-
const result = await agentBay.create({ imageId: 'windows_latest' });
|
|
43
|
-
if (result.success) {
|
|
44
|
-
const taskResult = await result.session.agent.executeTask('Open notepad', 10);
|
|
45
|
-
console.log(`Task status: ${taskResult.taskStatus}`);
|
|
46
|
-
await result.session.delete();
|
|
47
|
-
}
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
### terminateTask
|
|
51
|
-
|
|
52
|
-
▸ **terminateTask**(`taskId`): `Promise`\<``ExecutionResult``\>
|
|
53
|
-
|
|
54
|
-
Terminate a task with a specified task ID.
|
|
55
|
-
|
|
56
|
-
#### Parameters
|
|
57
|
-
|
|
58
|
-
| Name | Type | Description |
|
|
59
|
-
| :------ | :------ | :------ |
|
|
60
|
-
| `taskId` | `string` | The ID of the running task. |
|
|
61
|
-
|
|
62
|
-
#### Returns
|
|
63
|
-
|
|
64
|
-
`Promise`\<``ExecutionResult``\>
|
|
65
|
-
|
|
66
|
-
ExecutionResult containing success status, task output, and error message if any.
|
|
67
|
-
|
|
68
|
-
**`Example`**
|
|
18
|
+
## Properties
|
|
69
19
|
|
|
70
20
|
```typescript
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
if (result.success) {
|
|
74
|
-
const taskResult = await result.session.agent.executeTask('Open notepad', 5);
|
|
75
|
-
const terminateResult = await result.session.agent.terminateTask(taskResult.taskId);
|
|
76
|
-
console.log(`Terminated: ${terminateResult.taskStatus}`);
|
|
77
|
-
await result.session.delete();
|
|
78
|
-
}
|
|
21
|
+
browser: [`BrowserUseAgent`](browser-use-agent.md)
|
|
22
|
+
computer: [`ComputerUseAgent`](computer-use-agent.md)
|
|
79
23
|
```
|
|
80
24
|
|
|
81
25
|
## Related Resources
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
# Class: BrowserUseAgent
|
|
2
|
+
|
|
3
|
+
## Table of contents
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Methods
|
|
7
|
+
|
|
8
|
+
- [executeTask](#executetask)
|
|
9
|
+
- [initialize](#initialize)
|
|
10
|
+
- [terminateTask](#terminatetask)
|
|
11
|
+
|
|
12
|
+
## Methods
|
|
13
|
+
|
|
14
|
+
### executeTask
|
|
15
|
+
|
|
16
|
+
▸ **executeTask**(`task`, `maxTryTimes`): `Promise`\<``ExecutionResult``\>
|
|
17
|
+
|
|
18
|
+
Execute a specific task described in human language.
|
|
19
|
+
|
|
20
|
+
#### Parameters
|
|
21
|
+
|
|
22
|
+
| Name | Type | Description |
|
|
23
|
+
| :------ | :------ | :------ |
|
|
24
|
+
| `task` | `string` | Task description in human language. |
|
|
25
|
+
| `maxTryTimes` | `number` | Maximum number of retry attempts. |
|
|
26
|
+
|
|
27
|
+
#### Returns
|
|
28
|
+
|
|
29
|
+
`Promise`\<``ExecutionResult``\>
|
|
30
|
+
|
|
31
|
+
ExecutionResult containing success status, task output, and
|
|
32
|
+
error message if any.
|
|
33
|
+
|
|
34
|
+
**`Example`**
|
|
35
|
+
|
|
36
|
+
```typescript
|
|
37
|
+
const agentBay = new AgentBay({ apiKey: 'your_api_key' });
|
|
38
|
+
const result = await agentBay.create({ imageId: 'linux_latest' });
|
|
39
|
+
if (result.success) {
|
|
40
|
+
const taskResult = await
|
|
41
|
+
result.session.agent.browser.executeTask('Navigate to baidu and query the
|
|
42
|
+
weather of Shanghai', 10); console.log(`Task status:
|
|
43
|
+
${taskResult.taskStatus}`); await result.session.delete();
|
|
44
|
+
}
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### initialize
|
|
48
|
+
|
|
49
|
+
▸ **initialize**(`options`): `Promise`\<``InitializationResult``\>
|
|
50
|
+
|
|
51
|
+
Initialize the browser agent with specific options.
|
|
52
|
+
|
|
53
|
+
#### Parameters
|
|
54
|
+
|
|
55
|
+
| Name | Type | Description |
|
|
56
|
+
| :------ | :------ | :------ |
|
|
57
|
+
| `options` | ``AgentOptions`` | agent initialization options |
|
|
58
|
+
|
|
59
|
+
#### Returns
|
|
60
|
+
|
|
61
|
+
`Promise`\<``InitializationResult``\>
|
|
62
|
+
|
|
63
|
+
InitializationResult containing success status, task output,
|
|
64
|
+
and error message if any.
|
|
65
|
+
|
|
66
|
+
**`Example`**
|
|
67
|
+
|
|
68
|
+
```typescript
|
|
69
|
+
const agentBay = new AgentBay({ apiKey: 'your_api_key' });
|
|
70
|
+
const result = await agentBay.create({ imageId: 'linux_latest' });
|
|
71
|
+
if (result.success) {
|
|
72
|
+
options:AgentOptions = new AgentOptions(use_vision=False,
|
|
73
|
+
output_schema=""); const initResult = await
|
|
74
|
+
result.session.agent.browser.initialize(options); console.log(`Initialize
|
|
75
|
+
success: ${initResult.success}`); await result.session.delete();
|
|
76
|
+
}
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
___
|
|
80
|
+
|
|
81
|
+
### terminateTask
|
|
82
|
+
|
|
83
|
+
▸ **terminateTask**(`taskId`): `Promise`\<``ExecutionResult``\>
|
|
84
|
+
|
|
85
|
+
Terminate a task with a specified task ID.
|
|
86
|
+
|
|
87
|
+
#### Parameters
|
|
88
|
+
|
|
89
|
+
| Name | Type | Description |
|
|
90
|
+
| :------ | :------ | :------ |
|
|
91
|
+
| `taskId` | `string` | The ID of the running task. |
|
|
92
|
+
|
|
93
|
+
#### Returns
|
|
94
|
+
|
|
95
|
+
`Promise`\<``ExecutionResult``\>
|
|
96
|
+
|
|
97
|
+
ExecutionResult containing success status, task output, and
|
|
98
|
+
error message if any.
|
|
99
|
+
|
|
100
|
+
**`Example`**
|
|
101
|
+
|
|
102
|
+
```typescript
|
|
103
|
+
const agentBay = new AgentBay({ apiKey: 'your_api_key' });
|
|
104
|
+
const result = await agentBay.create({ imageId: 'windows_latest' });
|
|
105
|
+
if (result.success) {
|
|
106
|
+
const taskResult = await
|
|
107
|
+
result.session.agent.browser.executeTask(Navigate to baidu and query the
|
|
108
|
+
weather of Shanghai, 10); const terminateResult = await
|
|
109
|
+
result.session.agent.browser.terminateTask(taskResult.taskId);
|
|
110
|
+
console.log(`Terminated: ${terminateResult.taskStatus}`);
|
|
111
|
+
await result.session.delete();
|
|
112
|
+
}
|
|
113
|
+
```
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
# Class: ComputerUseAgent
|
|
2
|
+
|
|
3
|
+
An Agent to perform tasks on the computer.
|
|
4
|
+
|
|
5
|
+
## Table of contents
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Methods
|
|
9
|
+
|
|
10
|
+
- [executeTask](#executetask)
|
|
11
|
+
- [terminateTask](#terminatetask)
|
|
12
|
+
|
|
13
|
+
## Methods
|
|
14
|
+
|
|
15
|
+
### executeTask
|
|
16
|
+
|
|
17
|
+
▸ **executeTask**(`task`, `maxTryTimes`): `Promise`\<``ExecutionResult``\>
|
|
18
|
+
|
|
19
|
+
Execute a specific task described in human language.
|
|
20
|
+
|
|
21
|
+
#### Parameters
|
|
22
|
+
|
|
23
|
+
| Name | Type | Description |
|
|
24
|
+
| :------ | :------ | :------ |
|
|
25
|
+
| `task` | `string` | Task description in human language. |
|
|
26
|
+
| `maxTryTimes` | `number` | Maximum number of retry attempts. |
|
|
27
|
+
|
|
28
|
+
#### Returns
|
|
29
|
+
|
|
30
|
+
`Promise`\<``ExecutionResult``\>
|
|
31
|
+
|
|
32
|
+
ExecutionResult containing success status, task output, and error
|
|
33
|
+
message if any.
|
|
34
|
+
|
|
35
|
+
**`Example`**
|
|
36
|
+
|
|
37
|
+
```typescript
|
|
38
|
+
const agentBay = new AgentBay({ apiKey: 'your_api_key' });
|
|
39
|
+
const result = await agentBay.create({ imageId: 'windows_latest' });
|
|
40
|
+
if (result.success) {
|
|
41
|
+
const taskResult = await result.session.agent.computer.executeTask('Open
|
|
42
|
+
notepad', 10); console.log(`Task status: ${taskResult.taskStatus}`); await
|
|
43
|
+
result.session.delete();
|
|
44
|
+
}
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### terminateTask
|
|
48
|
+
|
|
49
|
+
▸ **terminateTask**(`taskId`): `Promise`\<``ExecutionResult``\>
|
|
50
|
+
|
|
51
|
+
Terminate a task with a specified task ID.
|
|
52
|
+
|
|
53
|
+
#### Parameters
|
|
54
|
+
|
|
55
|
+
| Name | Type | Description |
|
|
56
|
+
| :------ | :------ | :------ |
|
|
57
|
+
| `taskId` | `string` | The ID of the running task. |
|
|
58
|
+
|
|
59
|
+
#### Returns
|
|
60
|
+
|
|
61
|
+
`Promise`\<``ExecutionResult``\>
|
|
62
|
+
|
|
63
|
+
ExecutionResult containing success status, task output, and
|
|
64
|
+
error message if any.
|
|
65
|
+
|
|
66
|
+
**`Example`**
|
|
67
|
+
|
|
68
|
+
```typescript
|
|
69
|
+
const agentBay = new AgentBay({ apiKey: 'your_api_key' });
|
|
70
|
+
const result = await agentBay.create({ imageId: 'windows_latest' });
|
|
71
|
+
if (result.success) {
|
|
72
|
+
const taskResult = await
|
|
73
|
+
result.session.agent.computer.executeTask('Open notepad', 5); const
|
|
74
|
+
terminateResult = await
|
|
75
|
+
result.session.agent.computer.terminateTask(taskResult.taskId);
|
|
76
|
+
console.log(`Terminated: ${terminateResult.taskStatus}`);
|
|
77
|
+
await result.session.delete();
|
|
78
|
+
}
|
|
79
|
+
```
|
|
@@ -66,7 +66,7 @@ async function testBrowserType(
|
|
|
66
66
|
console.log(' ✓ Browser initialized successfully');
|
|
67
67
|
|
|
68
68
|
// Get endpoint URL
|
|
69
|
-
const endpointUrl = session.browser.getEndpointUrl();
|
|
69
|
+
const endpointUrl = await session.browser.getEndpointUrl();
|
|
70
70
|
console.log(`\n3. CDP endpoint: ${String(endpointUrl).substring(0, 50)}...`);
|
|
71
71
|
|
|
72
72
|
// Connect Playwright and verify browser
|
|
@@ -179,7 +179,7 @@ async function quickExample(): Promise<void> {
|
|
|
179
179
|
console.log('✓ Chrome browser initialized successfully');
|
|
180
180
|
|
|
181
181
|
// Get endpoint and use with Playwright
|
|
182
|
-
const endpointUrl = session.browser.getEndpointUrl();
|
|
182
|
+
const endpointUrl = await session.browser.getEndpointUrl();
|
|
183
183
|
const browser = await chromium.connectOverCDP(endpointUrl);
|
|
184
184
|
const page = await browser.contexts()[0].newPage();
|
|
185
185
|
|
|
@@ -262,5 +262,4 @@ main()
|
|
|
262
262
|
.catch(error => {
|
|
263
263
|
console.error('Error:', error.message);
|
|
264
264
|
process.exit(1);
|
|
265
|
-
});
|
|
266
|
-
|
|
265
|
+
});
|
|
@@ -33,7 +33,7 @@ async function main() {
|
|
|
33
33
|
const taskDescription = "Calculate the square root of 144";
|
|
34
34
|
console.log(`Executing task: ${taskDescription}`);
|
|
35
35
|
|
|
36
|
-
const executionResult = await session.agent.executeTask(taskDescription, 5);
|
|
36
|
+
const executionResult = await session.agent.computer.executeTask(taskDescription, 5);
|
|
37
37
|
|
|
38
38
|
if (executionResult.success) {
|
|
39
39
|
console.log("Task completed successfully!");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AgentBay, CreateSessionParams, Session, newContextSync, newSyncPolicy, FileSystem } from "wuying-agentbay-sdk";
|
|
1
|
+
import { AgentBay, CreateSessionParams, Session, newContextSync, newSyncPolicy, FileSystem, UploadMode } from "wuying-agentbay-sdk";
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Archive Upload Mode Context Sync Example
|
|
@@ -57,10 +57,9 @@ async function archiveUploadModeExample(): Promise<void> {
|
|
|
57
57
|
// Step 2: Configure sync policy with Archive upload mode
|
|
58
58
|
console.log("\n⚙️ Step 2: Configuring sync policy with Archive upload mode...");
|
|
59
59
|
const syncPolicy = newSyncPolicy();
|
|
60
|
-
syncPolicy.uploadPolicy!.uploadMode =
|
|
61
|
-
|
|
62
|
-
console.log(`✅ Sync policy configured with uploadMode: ${syncPolicy.uploadPolicy!.uploadMode}`);
|
|
60
|
+
syncPolicy.uploadPolicy!.uploadMode = UploadMode.Archive;
|
|
63
61
|
|
|
62
|
+
console.log(`✅ Sync policy configured with uploadMode: ${syncPolicy.uploadPolicy!.uploadMode}`);
|
|
64
63
|
// Step 3: Create context sync configuration
|
|
65
64
|
console.log("\n🔧 Step 3: Creating context sync configuration...");
|
|
66
65
|
const contextSync = newContextSync(
|
|
@@ -173,7 +172,7 @@ async function archiveUploadModeExample(): Promise<void> {
|
|
|
173
172
|
console.log("\n🎉 Archive upload mode example completed successfully!");
|
|
174
173
|
console.log("✅ All operations completed without errors.");
|
|
175
174
|
|
|
176
|
-
|
|
175
|
+
} catch (error) {
|
|
177
176
|
console.error("\n❌ Error occurred during example execution:");
|
|
178
177
|
console.error(error);
|
|
179
178
|
} finally {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "test-wuying-agentbay-sdk",
|
|
3
|
-
"version": "0.13.0-beta.
|
|
3
|
+
"version": "0.13.0-beta.20251211155407",
|
|
4
4
|
"description": "TypeScript SDK for interacting with the Wuying AgentBay cloud runtime environment",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -1,279 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "mobile-get-adb-url-example",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"lockfileVersion": 3,
|
|
5
|
-
"requires": true,
|
|
6
|
-
"packages": {
|
|
7
|
-
"": {
|
|
8
|
-
"name": "mobile-get-adb-url-example",
|
|
9
|
-
"version": "1.0.0",
|
|
10
|
-
"dependencies": {
|
|
11
|
-
"@aliyun/wuying-agentbay-sdk": "file:../../../"
|
|
12
|
-
},
|
|
13
|
-
"devDependencies": {
|
|
14
|
-
"@types/node": "^20.0.0",
|
|
15
|
-
"ts-node": "^10.9.1",
|
|
16
|
-
"typescript": "^5.0.0"
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
"../../..": {
|
|
20
|
-
"name": "wuying-agentbay-sdk",
|
|
21
|
-
"version": "0.9.4",
|
|
22
|
-
"license": "Apache-2.0",
|
|
23
|
-
"dependencies": {
|
|
24
|
-
"@alicloud/openapi-core": "^1.0.4",
|
|
25
|
-
"@darabonba/typescript": "^1.0.0",
|
|
26
|
-
"@types/node-fetch": "^2.6.13",
|
|
27
|
-
"axios": "^1.3.4",
|
|
28
|
-
"node-fetch": "^2.7.0",
|
|
29
|
-
"playwright": "^1.55.0"
|
|
30
|
-
},
|
|
31
|
-
"devDependencies": {
|
|
32
|
-
"@types/chai": "^5.2.2",
|
|
33
|
-
"@types/jest": "^26.0.24",
|
|
34
|
-
"@types/mocha": "^10.0.10",
|
|
35
|
-
"@types/node": "^18.15.0",
|
|
36
|
-
"@types/sinon": "^10.0.0",
|
|
37
|
-
"@typescript-eslint/eslint-plugin": "^5.54.0",
|
|
38
|
-
"@typescript-eslint/parser": "^5.54.0",
|
|
39
|
-
"abort-controller": "^3.0.0",
|
|
40
|
-
"axios-mock-adapter": "^2.1.0",
|
|
41
|
-
"chai": "^4.3.7",
|
|
42
|
-
"dotenv": "^16.5.0",
|
|
43
|
-
"eslint": "^8.35.0",
|
|
44
|
-
"jest": "^26.6.3",
|
|
45
|
-
"prettier": "^2.8.4",
|
|
46
|
-
"sinon": "^15.2.0",
|
|
47
|
-
"ts-jest": "^26.5.6",
|
|
48
|
-
"ts-node": "^10.9.2",
|
|
49
|
-
"tsup": "^8.5.0",
|
|
50
|
-
"typescript": "^4.9.5"
|
|
51
|
-
},
|
|
52
|
-
"engines": {
|
|
53
|
-
"node": ">=14.0.0"
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
"node_modules/@aliyun/wuying-agentbay-sdk": {
|
|
57
|
-
"resolved": "../../..",
|
|
58
|
-
"link": true
|
|
59
|
-
},
|
|
60
|
-
"node_modules/@cspotcode/source-map-support": {
|
|
61
|
-
"version": "0.8.1",
|
|
62
|
-
"resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz",
|
|
63
|
-
"integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==",
|
|
64
|
-
"dev": true,
|
|
65
|
-
"license": "MIT",
|
|
66
|
-
"dependencies": {
|
|
67
|
-
"@jridgewell/trace-mapping": "0.3.9"
|
|
68
|
-
},
|
|
69
|
-
"engines": {
|
|
70
|
-
"node": ">=12"
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
"node_modules/@jridgewell/resolve-uri": {
|
|
74
|
-
"version": "3.1.2",
|
|
75
|
-
"resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",
|
|
76
|
-
"integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",
|
|
77
|
-
"dev": true,
|
|
78
|
-
"license": "MIT",
|
|
79
|
-
"engines": {
|
|
80
|
-
"node": ">=6.0.0"
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
"node_modules/@jridgewell/sourcemap-codec": {
|
|
84
|
-
"version": "1.5.5",
|
|
85
|
-
"resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz",
|
|
86
|
-
"integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==",
|
|
87
|
-
"dev": true,
|
|
88
|
-
"license": "MIT"
|
|
89
|
-
},
|
|
90
|
-
"node_modules/@jridgewell/trace-mapping": {
|
|
91
|
-
"version": "0.3.9",
|
|
92
|
-
"resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz",
|
|
93
|
-
"integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==",
|
|
94
|
-
"dev": true,
|
|
95
|
-
"license": "MIT",
|
|
96
|
-
"dependencies": {
|
|
97
|
-
"@jridgewell/resolve-uri": "^3.0.3",
|
|
98
|
-
"@jridgewell/sourcemap-codec": "^1.4.10"
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
|
-
"node_modules/@tsconfig/node10": {
|
|
102
|
-
"version": "1.0.11",
|
|
103
|
-
"resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.11.tgz",
|
|
104
|
-
"integrity": "sha512-DcRjDCujK/kCk/cUe8Xz8ZSpm8mS3mNNpta+jGCA6USEDfktlNvm1+IuZ9eTcDbNk41BHwpHHeW+N1lKCz4zOw==",
|
|
105
|
-
"dev": true,
|
|
106
|
-
"license": "MIT"
|
|
107
|
-
},
|
|
108
|
-
"node_modules/@tsconfig/node12": {
|
|
109
|
-
"version": "1.0.11",
|
|
110
|
-
"resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz",
|
|
111
|
-
"integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==",
|
|
112
|
-
"dev": true,
|
|
113
|
-
"license": "MIT"
|
|
114
|
-
},
|
|
115
|
-
"node_modules/@tsconfig/node14": {
|
|
116
|
-
"version": "1.0.3",
|
|
117
|
-
"resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz",
|
|
118
|
-
"integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==",
|
|
119
|
-
"dev": true,
|
|
120
|
-
"license": "MIT"
|
|
121
|
-
},
|
|
122
|
-
"node_modules/@tsconfig/node16": {
|
|
123
|
-
"version": "1.0.4",
|
|
124
|
-
"resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.4.tgz",
|
|
125
|
-
"integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==",
|
|
126
|
-
"dev": true,
|
|
127
|
-
"license": "MIT"
|
|
128
|
-
},
|
|
129
|
-
"node_modules/@types/node": {
|
|
130
|
-
"version": "20.19.23",
|
|
131
|
-
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.19.23.tgz",
|
|
132
|
-
"integrity": "sha512-yIdlVVVHXpmqRhtyovZAcSy0MiPcYWGkoO4CGe/+jpP0hmNuihm4XhHbADpK++MsiLHP5MVlv+bcgdF99kSiFQ==",
|
|
133
|
-
"dev": true,
|
|
134
|
-
"license": "MIT",
|
|
135
|
-
"dependencies": {
|
|
136
|
-
"undici-types": "~6.21.0"
|
|
137
|
-
}
|
|
138
|
-
},
|
|
139
|
-
"node_modules/acorn": {
|
|
140
|
-
"version": "8.15.0",
|
|
141
|
-
"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz",
|
|
142
|
-
"integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==",
|
|
143
|
-
"dev": true,
|
|
144
|
-
"license": "MIT",
|
|
145
|
-
"bin": {
|
|
146
|
-
"acorn": "bin/acorn"
|
|
147
|
-
},
|
|
148
|
-
"engines": {
|
|
149
|
-
"node": ">=0.4.0"
|
|
150
|
-
}
|
|
151
|
-
},
|
|
152
|
-
"node_modules/acorn-walk": {
|
|
153
|
-
"version": "8.3.4",
|
|
154
|
-
"resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.4.tgz",
|
|
155
|
-
"integrity": "sha512-ueEepnujpqee2o5aIYnvHU6C0A42MNdsIDeqy5BydrkuC5R1ZuUFnm27EeFJGoEHJQgn3uleRvmTXaJgfXbt4g==",
|
|
156
|
-
"dev": true,
|
|
157
|
-
"license": "MIT",
|
|
158
|
-
"dependencies": {
|
|
159
|
-
"acorn": "^8.11.0"
|
|
160
|
-
},
|
|
161
|
-
"engines": {
|
|
162
|
-
"node": ">=0.4.0"
|
|
163
|
-
}
|
|
164
|
-
},
|
|
165
|
-
"node_modules/arg": {
|
|
166
|
-
"version": "4.1.3",
|
|
167
|
-
"resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz",
|
|
168
|
-
"integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==",
|
|
169
|
-
"dev": true,
|
|
170
|
-
"license": "MIT"
|
|
171
|
-
},
|
|
172
|
-
"node_modules/create-require": {
|
|
173
|
-
"version": "1.1.1",
|
|
174
|
-
"resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz",
|
|
175
|
-
"integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==",
|
|
176
|
-
"dev": true,
|
|
177
|
-
"license": "MIT"
|
|
178
|
-
},
|
|
179
|
-
"node_modules/diff": {
|
|
180
|
-
"version": "4.0.2",
|
|
181
|
-
"resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz",
|
|
182
|
-
"integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==",
|
|
183
|
-
"dev": true,
|
|
184
|
-
"license": "BSD-3-Clause",
|
|
185
|
-
"engines": {
|
|
186
|
-
"node": ">=0.3.1"
|
|
187
|
-
}
|
|
188
|
-
},
|
|
189
|
-
"node_modules/make-error": {
|
|
190
|
-
"version": "1.3.6",
|
|
191
|
-
"resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz",
|
|
192
|
-
"integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==",
|
|
193
|
-
"dev": true,
|
|
194
|
-
"license": "ISC"
|
|
195
|
-
},
|
|
196
|
-
"node_modules/ts-node": {
|
|
197
|
-
"version": "10.9.2",
|
|
198
|
-
"resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.2.tgz",
|
|
199
|
-
"integrity": "sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==",
|
|
200
|
-
"dev": true,
|
|
201
|
-
"license": "MIT",
|
|
202
|
-
"dependencies": {
|
|
203
|
-
"@cspotcode/source-map-support": "^0.8.0",
|
|
204
|
-
"@tsconfig/node10": "^1.0.7",
|
|
205
|
-
"@tsconfig/node12": "^1.0.7",
|
|
206
|
-
"@tsconfig/node14": "^1.0.0",
|
|
207
|
-
"@tsconfig/node16": "^1.0.2",
|
|
208
|
-
"acorn": "^8.4.1",
|
|
209
|
-
"acorn-walk": "^8.1.1",
|
|
210
|
-
"arg": "^4.1.0",
|
|
211
|
-
"create-require": "^1.1.0",
|
|
212
|
-
"diff": "^4.0.1",
|
|
213
|
-
"make-error": "^1.1.1",
|
|
214
|
-
"v8-compile-cache-lib": "^3.0.1",
|
|
215
|
-
"yn": "3.1.1"
|
|
216
|
-
},
|
|
217
|
-
"bin": {
|
|
218
|
-
"ts-node": "dist/bin.js",
|
|
219
|
-
"ts-node-cwd": "dist/bin-cwd.js",
|
|
220
|
-
"ts-node-esm": "dist/bin-esm.js",
|
|
221
|
-
"ts-node-script": "dist/bin-script.js",
|
|
222
|
-
"ts-node-transpile-only": "dist/bin-transpile.js",
|
|
223
|
-
"ts-script": "dist/bin-script-deprecated.js"
|
|
224
|
-
},
|
|
225
|
-
"peerDependencies": {
|
|
226
|
-
"@swc/core": ">=1.2.50",
|
|
227
|
-
"@swc/wasm": ">=1.2.50",
|
|
228
|
-
"@types/node": "*",
|
|
229
|
-
"typescript": ">=2.7"
|
|
230
|
-
},
|
|
231
|
-
"peerDependenciesMeta": {
|
|
232
|
-
"@swc/core": {
|
|
233
|
-
"optional": true
|
|
234
|
-
},
|
|
235
|
-
"@swc/wasm": {
|
|
236
|
-
"optional": true
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
},
|
|
240
|
-
"node_modules/typescript": {
|
|
241
|
-
"version": "5.9.3",
|
|
242
|
-
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz",
|
|
243
|
-
"integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",
|
|
244
|
-
"dev": true,
|
|
245
|
-
"license": "Apache-2.0",
|
|
246
|
-
"bin": {
|
|
247
|
-
"tsc": "bin/tsc",
|
|
248
|
-
"tsserver": "bin/tsserver"
|
|
249
|
-
},
|
|
250
|
-
"engines": {
|
|
251
|
-
"node": ">=14.17"
|
|
252
|
-
}
|
|
253
|
-
},
|
|
254
|
-
"node_modules/undici-types": {
|
|
255
|
-
"version": "6.21.0",
|
|
256
|
-
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz",
|
|
257
|
-
"integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==",
|
|
258
|
-
"dev": true,
|
|
259
|
-
"license": "MIT"
|
|
260
|
-
},
|
|
261
|
-
"node_modules/v8-compile-cache-lib": {
|
|
262
|
-
"version": "3.0.1",
|
|
263
|
-
"resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz",
|
|
264
|
-
"integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==",
|
|
265
|
-
"dev": true,
|
|
266
|
-
"license": "MIT"
|
|
267
|
-
},
|
|
268
|
-
"node_modules/yn": {
|
|
269
|
-
"version": "3.1.1",
|
|
270
|
-
"resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz",
|
|
271
|
-
"integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==",
|
|
272
|
-
"dev": true,
|
|
273
|
-
"license": "MIT",
|
|
274
|
-
"engines": {
|
|
275
|
-
"node": ">=6"
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "mobile-get-adb-url-example",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"description": "Example demonstrating Mobile.getAdbUrl functionality",
|
|
5
|
-
"main": "index.ts",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"start": "ts-node index.ts"
|
|
8
|
-
},
|
|
9
|
-
"dependencies": {
|
|
10
|
-
"@aliyun/wuying-agentbay-sdk": "file:../../../"
|
|
11
|
-
},
|
|
12
|
-
"devDependencies": {
|
|
13
|
-
"@types/node": "^20.0.0",
|
|
14
|
-
"ts-node": "^10.9.1",
|
|
15
|
-
"typescript": "^5.0.0"
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|