withruntime 0.5.0 → 0.6.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/DAYTONA.md +25 -25
- package/E2B.md +1 -1
- package/LICENSE +55 -0
- package/README.md +3 -2
- package/dist/cli-extras.d.ts +24 -0
- package/dist/cli-extras.js +205 -0
- package/dist/cli.d.ts +20 -0
- package/dist/cli.js +430 -37
- package/dist/daytona/context.d.ts +5 -0
- package/dist/daytona/context.js +3 -0
- package/dist/daytona/filesystem.js +2 -2
- package/dist/daytona/process.js +3 -1
- package/dist/e2b/commands.js +6 -2
- package/dist/e2b/filesystem.d.ts +26 -1
- package/dist/e2b/filesystem.js +30 -2
- package/dist/e2b/index.d.ts +1 -1
- package/dist/e2b/index.js +1 -1
- package/dist/errors.js +2 -0
- package/dist/identity.d.ts +27 -0
- package/dist/identity.js +56 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +7 -0
- package/dist/mcp.js +16 -3
- package/dist/network-cli.d.ts +15 -0
- package/dist/network-cli.js +323 -0
- package/dist/products/desktop.d.ts +41 -4
- package/dist/products/desktop.js +73 -3
- package/dist/products/index.d.ts +12 -0
- package/dist/products/index.js +12 -0
- package/dist/products/interpreter.d.ts +5 -3
- package/dist/products/interpreter.js +2 -1
- package/dist/products/mcp.d.ts +79 -0
- package/dist/products/mcp.js +37 -0
- package/dist/products/mounts.d.ts +49 -0
- package/dist/products/mounts.js +21 -0
- package/dist/products/network-products.d.ts +167 -0
- package/dist/products/network-products.js +82 -0
- package/dist/products/network.d.ts +1 -1
- package/dist/products/sso.d.ts +44 -0
- package/dist/products/sso.js +8 -0
- package/dist/products/switching.d.ts +7 -0
- package/dist/products/volumes.d.ts +68 -5
- package/dist/products/volumes.js +52 -4
- package/dist/products/watch.d.ts +91 -0
- package/dist/products/watch.js +135 -0
- package/dist/sandbox.d.ts +32 -2
- package/dist/sandbox.js +93 -16
- package/dist/snapshots.d.ts +11 -1
- package/dist/ssh.js +13 -1
- package/dist/transport.d.ts +1 -1
- package/dist/transport.js +4 -1
- package/dist/tunnel.d.ts +4 -1
- package/dist/tunnel.js +8 -3
- package/dist/wireguard.d.ts +7 -0
- package/dist/wireguard.js +13 -0
- package/package.json +7 -3
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { generateKeyPairSync } from "node:crypto";
|
|
2
|
+
/** A WireGuard key pair, as `wg genkey | wg pubkey` makes: X25519, each half
|
|
3
|
+
* 32 bytes of base64. Made on the machine that will use it, so the private
|
|
4
|
+
* key is never sent anywhere. */
|
|
5
|
+
export function generateWireGuardKeyPair() {
|
|
6
|
+
const { privateKey, publicKey } = generateKeyPairSync("x25519");
|
|
7
|
+
const d = privateKey.export({ format: "jwk" }).d;
|
|
8
|
+
const x = publicKey.export({ format: "jwk" }).x;
|
|
9
|
+
return {
|
|
10
|
+
privateKey: Buffer.from(d, "base64url").toString("base64"),
|
|
11
|
+
publicKey: Buffer.from(x, "base64url").toString("base64"),
|
|
12
|
+
};
|
|
13
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "withruntime",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
|
+
"license": "Apache-2.0",
|
|
4
5
|
"mcpName": "com.withruntime/runtime",
|
|
5
6
|
"type": "module",
|
|
6
7
|
"exports": {
|
|
@@ -50,7 +51,8 @@
|
|
|
50
51
|
"README.md",
|
|
51
52
|
"E2B.md",
|
|
52
53
|
"DAYTONA.md",
|
|
53
|
-
"VERCEL.md"
|
|
54
|
+
"VERCEL.md",
|
|
55
|
+
"LICENSE"
|
|
54
56
|
],
|
|
55
57
|
"engines": {
|
|
56
58
|
"node": ">=22"
|
|
@@ -60,7 +62,9 @@
|
|
|
60
62
|
"prepack": "bun run build",
|
|
61
63
|
"check-types": "tsc --noEmit",
|
|
62
64
|
"lint": "eslint",
|
|
63
|
-
"test": "bun test && bun scripts/test-python.ts && bun scripts/test-go.ts",
|
|
65
|
+
"test": "bun test && bun scripts/test-python.ts && bun scripts/test-go.ts && bun ../../sdks/java/scripts/check.ts && bun ../../sdks/ruby/scripts/check.ts",
|
|
66
|
+
"test:java": "bun ../../sdks/java/scripts/check.ts",
|
|
67
|
+
"test:ruby": "bun ../../sdks/ruby/scripts/check.ts",
|
|
64
68
|
"test:python": "bun scripts/test-python.ts",
|
|
65
69
|
"test:go": "bun scripts/test-go.ts"
|
|
66
70
|
},
|