wuying-agentbay-sdk 0.6.1 → 0.8.0
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/README.md +9 -10
- package/dist/index.cjs +837 -164
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +459 -64
- package/dist/index.d.ts +459 -64
- package/dist/index.mjs +815 -142
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -24,14 +24,14 @@ async function main() {
|
|
|
24
24
|
// Create session
|
|
25
25
|
const agentBay = new AgentBay();
|
|
26
26
|
const result = await agentBay.create();
|
|
27
|
-
|
|
27
|
+
|
|
28
28
|
if (result.success) {
|
|
29
29
|
const session = result.session;
|
|
30
|
-
|
|
30
|
+
|
|
31
31
|
// Execute command
|
|
32
32
|
const cmdResult = await session.command.executeCommand("ls -la");
|
|
33
33
|
console.log(cmdResult.output);
|
|
34
|
-
|
|
34
|
+
|
|
35
35
|
// File operations
|
|
36
36
|
await session.fileSystem.writeFile("/tmp/test.txt", "Hello World");
|
|
37
37
|
const content = await session.fileSystem.readFile("/tmp/test.txt");
|
|
@@ -45,17 +45,16 @@ main().catch(console.error);
|
|
|
45
45
|
## 📖 Complete Documentation
|
|
46
46
|
|
|
47
47
|
### 🆕 New Users
|
|
48
|
-
- [📚 Quick Start Tutorial](https://github.com/aliyun/wuying-agentbay-sdk/tree/main/docs/quickstart) - Get started in 5 minutes
|
|
48
|
+
- [📚 Quick Start Tutorial](https://github.com/aliyun/wuying-agentbay-sdk/tree/main/docs/quickstart/README.md) - Get started in 5 minutes
|
|
49
49
|
- [🎯 Core Concepts](https://github.com/aliyun/wuying-agentbay-sdk/tree/main/docs/quickstart/basic-concepts.md) - Understanding cloud environments and sessions
|
|
50
50
|
- [💡 Best Practices](https://github.com/aliyun/wuying-agentbay-sdk/tree/main/docs/quickstart/best-practices.md) - Common patterns and techniques
|
|
51
51
|
|
|
52
52
|
### 🚀 Experienced Users
|
|
53
|
-
- [📖 Feature Guides](https://github.com/aliyun/wuying-agentbay-sdk/tree/main/docs/guides) - Complete feature introduction
|
|
54
|
-
- [🔧 TypeScript API Reference](docs/api/) - Detailed API documentation
|
|
53
|
+
- [📖 Feature Guides](https://github.com/aliyun/wuying-agentbay-sdk/tree/main/docs/guides/README.md) - Complete feature introduction
|
|
54
|
+
- [🔧 TypeScript API Reference](docs/api/README.md) - Detailed API documentation
|
|
55
55
|
- [💻 TypeScript Examples](docs/examples/) - Complete example code
|
|
56
56
|
|
|
57
57
|
### 🆘 Need Help
|
|
58
|
-
- [❓ FAQ](https://github.com/aliyun/wuying-agentbay-sdk/tree/main/docs/quickstart/faq.md) - Quick answers
|
|
59
58
|
- [🔧 Troubleshooting](https://github.com/aliyun/wuying-agentbay-sdk/tree/main/docs/quickstart/troubleshooting.md) - Problem diagnosis
|
|
60
59
|
- [🔧 TypeScript API Reference](docs/api/README.md) - Local API documentation
|
|
61
60
|
- [💡 TypeScript Examples](docs/examples/README.md) - Local example code
|
|
@@ -100,7 +99,7 @@ const context = (await agentBay.context.get("my-project", true)).context;
|
|
|
100
99
|
import { ContextSync, SyncPolicy } from 'wuying-agentbay-sdk';
|
|
101
100
|
const contextSync = new ContextSync({
|
|
102
101
|
contextId: context.id,
|
|
103
|
-
path: "/
|
|
102
|
+
path: "/tmp/data",
|
|
104
103
|
policy: SyncPolicy.default()
|
|
105
104
|
});
|
|
106
105
|
const session = (await agentBay.create({ contextSync: [contextSync] })).session;
|
|
@@ -109,8 +108,8 @@ const session = (await agentBay.create({ contextSync: [contextSync] })).session;
|
|
|
109
108
|
## 🆘 Get Help
|
|
110
109
|
|
|
111
110
|
- [GitHub Issues](https://github.com/aliyun/wuying-agentbay-sdk/issues)
|
|
112
|
-
- [Complete Documentation](https://github.com/aliyun/wuying-agentbay-sdk/tree/main/docs)
|
|
111
|
+
- [Complete Documentation](https://github.com/aliyun/wuying-agentbay-sdk/tree/main/docs/README.md)
|
|
113
112
|
|
|
114
113
|
## 📄 License
|
|
115
114
|
|
|
116
|
-
This project is licensed under the Apache License 2.0 - see the [LICENSE](../LICENSE) file for details.
|
|
115
|
+
This project is licensed under the Apache License 2.0 - see the [LICENSE](../LICENSE) file for details.
|