plato-sandbox-sdk 1.1.4 → 1.1.6
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 +5 -5
- package/package.json +1 -1
- package/src/index.ts +1 -0
package/README.md
CHANGED
|
@@ -5,13 +5,13 @@ TypeScript SDK for interacting with the Plato platform. Manage environments, VMs
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npm install
|
|
8
|
+
npm install plato-sandbox-sdk
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
## Quick Start
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
import { PlatoClient } from '
|
|
14
|
+
import { PlatoClient } from 'plato-sandbox-sdk';
|
|
15
15
|
|
|
16
16
|
// Initialize the client with your API key
|
|
17
17
|
const client = new PlatoClient({
|
|
@@ -92,7 +92,7 @@ await client.closeVM(vm.publicId);
|
|
|
92
92
|
Here's a complete example showing the typical workflow:
|
|
93
93
|
|
|
94
94
|
```typescript
|
|
95
|
-
import { PlatoClient } from '
|
|
95
|
+
import { PlatoClient } from 'plato-sandbox-sdk';
|
|
96
96
|
|
|
97
97
|
const client = new PlatoClient({
|
|
98
98
|
apiKey: process.env.PLATO_API_KEY!,
|
|
@@ -494,7 +494,7 @@ import {
|
|
|
494
494
|
PlatoClient,
|
|
495
495
|
OperationTimeoutError,
|
|
496
496
|
OperationFailedError
|
|
497
|
-
} from '
|
|
497
|
+
} from 'plato-sandbox-sdk';
|
|
498
498
|
|
|
499
499
|
try {
|
|
500
500
|
await client.monitorOperationSync(correlationId);
|
|
@@ -524,7 +524,7 @@ npm install playwright
|
|
|
524
524
|
|
|
525
525
|
```typescript
|
|
526
526
|
import { chromium } from 'playwright';
|
|
527
|
-
import { FlowExecutor, Flow } from '
|
|
527
|
+
import { FlowExecutor, Flow } from 'plato-sandbox-sdk';
|
|
528
528
|
|
|
529
529
|
async function runFlow() {
|
|
530
530
|
const browser = await chromium.launch();
|
package/package.json
CHANGED
package/src/index.ts
CHANGED