test-wuying-agentbay-sdk 0.13.0-beta.20251212140302 → 0.13.0-beta.20251212165248

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.
@@ -1,4 +1,4 @@
1
- import { AgentBay } from "../../../../../src";
1
+ import { AgentBay } from 'wuying-agentbay-sdk';
2
2
 
3
3
  async function main() {
4
4
  const apiKey = process.env.AGENTBAY_API_KEY;
@@ -45,7 +45,7 @@ const contextSync = newContextSync(
45
45
  ### Session Creation with Context Sync
46
46
 
47
47
  ```typescript
48
- const sessionParams: CreateSessionParams = {
48
+ const sessionParams = {
49
49
  labels: {
50
50
  example: `archive-mode-${uniqueId}`,
51
51
  type: "archive-upload-demo",
@@ -75,7 +75,7 @@ async function archiveUploadModeExample(): Promise<void> {
75
75
 
76
76
  // Step 4: Create session with Archive mode context sync
77
77
  console.log("\nšŸ—ļø Step 4: Creating session with Archive mode context sync...");
78
- const sessionParams: CreateSessionParams = {
78
+ const sessionParams = {
79
79
  labels: {
80
80
  example: `archive-mode-${uniqueId}`,
81
81
  type: "archive-upload-demo",
@@ -48,7 +48,7 @@ const contextSync = newContextSync(
48
48
  ### Session Creation with Context Sync
49
49
 
50
50
  ```typescript
51
- const sessionParams: CreateSessionParams = {
51
+ const sessionParams = {
52
52
  labels: {
53
53
  example: `archive-mode-${uniqueId}`,
54
54
  type: "archive-upload-demo",
@@ -76,7 +76,7 @@ async function archiveUploadModeExample(): Promise<void> {
76
76
 
77
77
  // Step 4: Create session with Archive mode context sync
78
78
  console.log("\nšŸ—ļø Step 4: Creating session with Archive mode context sync...");
79
- const sessionParams: CreateSessionParams = {
79
+ const sessionParams = {
80
80
  labels: {
81
81
  example: `archive-mode-${uniqueId}`,
82
82
  type: "archive-upload-demo",
@@ -25,7 +25,7 @@ async function main(): Promise<void> {
25
25
  console.log("āœ… AgentBay client initialized");
26
26
 
27
27
  // Create session with code_latest ImageId
28
- const sessionParams: CreateSessionParams = { imageId: "code_latest" };
28
+ const sessionParams = { imageId: "code_latest" };
29
29
  const sessionResult = await agentbay.create(sessionParams);
30
30
 
31
31
  if (!sessionResult.success) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "test-wuying-agentbay-sdk",
3
- "version": "0.13.0-beta.20251212140302",
3
+ "version": "0.13.0-beta.20251212165248",
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",