@freestyle-sh/with-web-terminal 0.0.8 → 0.0.9

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/.env ADDED
@@ -0,0 +1 @@
1
+ FREESTYLE_API_KEY=NYDNxdzbycbhCF2M6DUhK5-7fPaRDNM7F9cerzZtEacSBgHVgjaZhDoJ9F44kbSWqJN
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import * as freestyle_sandboxes from 'freestyle-sandboxes';
2
- import { VmWith, VmWithInstance, CreateVmOptions } from 'freestyle-sandboxes';
1
+ import * as freestyle from 'freestyle';
2
+ import { VmWith, VmWithInstance, CreateVmOptions } from 'freestyle';
3
3
 
4
4
  type TtydConfig = {
5
5
  /** Port to run ttyd on (default: auto-assigned starting at 7682) */
@@ -66,7 +66,7 @@ declare class VmWebTerminalInstance<T extends WebTerminalConfig[]> extends VmWit
66
66
  builder: VmWebTerminal<T>;
67
67
  constructor(builder: VmWebTerminal<T>, resolvedTerminals: ResolvedTerminalConfig[]);
68
68
  /** @internal */
69
- get _vm(): freestyle_sandboxes.Vm;
69
+ get _vm(): freestyle.Vm;
70
70
  }
71
71
 
72
72
  export { VmWebTerminal, VmWebTerminalInstance, WebTerminal };
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { VmWith, VmTemplate, VmWithInstance } from 'freestyle-sandboxes';
1
+ import { VmWith, VmTemplate, VmWithInstance } from 'freestyle';
2
2
 
3
3
  class VmWebTerminal extends VmWith {
4
4
  resolvedTerminals;
package/examples/basic.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import "dotenv/config";
2
- import { freestyle } from "freestyle-sandboxes";
2
+ import { freestyle } from "freestyle";
3
3
  import { VmWebTerminal } from "../src/index.ts";
4
4
 
5
5
  const terminal = new VmWebTerminal({
@@ -1,5 +1,5 @@
1
1
  import "dotenv/config";
2
- import { freestyle, VmSpec } from "freestyle-sandboxes";
2
+ import { freestyle, VmSpec } from "freestyle";
3
3
  import { VmWebTerminal } from "../src/index.ts";
4
4
 
5
5
  const id = crypto.randomUUID().slice(0, 8);
package/examples/cred.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import "dotenv/config";
2
- import { freestyle } from "freestyle-sandboxes";
2
+ import { freestyle } from "freestyle";
3
3
  import { VmWebTerminal } from "../src/index.ts";
4
4
 
5
5
  const webTerminal = new VmWebTerminal([{ id: "main", credential: {
package/examples/multi.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import "dotenv/config";
2
- import { freestyle } from "freestyle-sandboxes";
2
+ import { freestyle } from "freestyle";
3
3
  import { VmWebTerminal } from "../src/index.ts";
4
4
 
5
5
  const id = crypto.randomUUID().slice(0, 8);
@@ -1,5 +1,5 @@
1
1
  import "dotenv/config";
2
- import { freestyle } from "freestyle-sandboxes";
2
+ import { freestyle } from "freestyle";
3
3
  import { VmWebTerminal } from "../src/index.ts";
4
4
 
5
5
  const webTerminal = new VmWebTerminal([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@freestyle-sh/with-web-terminal",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "description": "Web terminal for freestyle sandboxes",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -12,6 +12,10 @@
12
12
  "import": "./dist/index.js"
13
13
  }
14
14
  },
15
+ "scripts": {
16
+ "build": "pkgroll",
17
+ "prepublishOnly": "pnpm run build"
18
+ },
15
19
  "keywords": [
16
20
  "ttyd",
17
21
  "terminal",
@@ -19,14 +23,12 @@
19
23
  "freestyle"
20
24
  ],
21
25
  "author": "",
26
+ "packageManager": "pnpm@10.11.0",
22
27
  "devDependencies": {
23
28
  "pkgroll": "^2.11.2",
24
29
  "typescript": "^5.8.3"
25
30
  },
26
31
  "dependencies": {
27
- "freestyle-sandboxes": "^0.1.28"
28
- },
29
- "scripts": {
30
- "build": "pkgroll"
32
+ "freestyle": "^0.1.46"
31
33
  }
32
- }
34
+ }
package/src/index.ts CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  VmWith,
5
5
  VmWithInstance,
6
6
  Freestyle,
7
- } from "freestyle-sandboxes";
7
+ } from "freestyle";
8
8
 
9
9
  // ============================================================================
10
10
  // Configuration Types