@hyperbrowser/sdk 0.92.7 → 1.0.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 +190 -0
- package/dist/client.d.ts +4 -20
- package/dist/client.js +7 -17
- package/dist/error.d.ts +27 -0
- package/dist/error.js +32 -0
- package/dist/image-builds.d.ts +6 -0
- package/dist/image-builds.js +12 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +12 -1
- package/dist/retry.d.ts +14 -0
- package/dist/retry.js +49 -0
- package/dist/sandbox/base.d.ts +27 -0
- package/dist/sandbox/base.js +298 -99
- package/dist/sandbox/files.d.ts +24 -25
- package/dist/sandbox/files.js +146 -37
- package/dist/sandbox/image-build/artifacts.d.ts +16 -0
- package/dist/sandbox/image-build/artifacts.js +16 -0
- package/dist/sandbox/image-build/blake2b.d.ts +2 -0
- package/dist/sandbox/image-build/blake2b.js +89 -0
- package/dist/sandbox/image-build/common.d.ts +19 -0
- package/dist/sandbox/image-build/common.js +109 -0
- package/dist/sandbox/image-build/context.d.ts +43 -0
- package/dist/sandbox/image-build/context.js +599 -0
- package/dist/sandbox/image-build/docker-image.d.ts +34 -0
- package/dist/sandbox/image-build/docker-image.js +472 -0
- package/dist/sandbox/image-build/dockerfile-analysis.d.ts +17 -0
- package/dist/sandbox/image-build/dockerfile-analysis.js +409 -0
- package/dist/sandbox/image-build/dockerignore.d.ts +18 -0
- package/dist/sandbox/image-build/dockerignore.js +275 -0
- package/dist/sandbox/image-build/gzip.d.ts +11 -0
- package/dist/sandbox/image-build/gzip.js +91 -0
- package/dist/sandbox/image-build/image-init.d.ts +5 -0
- package/dist/sandbox/image-build/image-init.js +97 -0
- package/dist/sandbox/image-build/index.d.ts +13 -0
- package/dist/sandbox/image-build/index.js +36 -0
- package/dist/sandbox/image-build/local-docker.d.ts +11 -0
- package/dist/sandbox/image-build/local-docker.js +72 -0
- package/dist/sandbox/image-build/resolution.d.ts +27 -0
- package/dist/sandbox/image-build/resolution.js +137 -0
- package/dist/sandbox/image-build/tar.d.ts +41 -0
- package/dist/sandbox/image-build/tar.js +378 -0
- package/dist/sandbox/image-build/upload.d.ts +10 -0
- package/dist/sandbox/image-build/upload.js +143 -0
- package/dist/sandbox/index.d.ts +2 -1
- package/dist/sandbox/index.js +4 -1
- package/dist/sandbox/process-output.d.ts +36 -0
- package/dist/sandbox/process-output.js +117 -0
- package/dist/sandbox/process.d.ts +25 -1
- package/dist/sandbox/process.js +197 -29
- package/dist/sandbox/terminal.js +9 -5
- package/dist/sandbox/ws.d.ts +4 -1
- package/dist/sandbox/ws.js +33 -7
- package/dist/services/agents/jev-computer-use.d.ts +30 -0
- package/dist/services/agents/jev-computer-use.js +103 -0
- package/dist/services/base.d.ts +2 -0
- package/dist/services/base.js +46 -30
- package/dist/services/normalize.d.ts +3 -0
- package/dist/services/normalize.js +21 -0
- package/dist/services/sandboxes.d.ts +40 -3
- package/dist/services/sandboxes.js +569 -53
- package/dist/services/volumes.js +29 -14
- package/dist/types/agents/jev-computer-use.d.ts +43 -0
- package/dist/types/agents/jev-computer-use.js +2 -0
- package/dist/types/constants.d.ts +5 -2
- package/dist/types/index.d.ts +4 -2
- package/dist/types/sandbox.d.ts +246 -30
- package/dist/types/volume.d.ts +7 -7
- package/package.json +24 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperbrowser/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "Node SDK for Hyperbrowser API",
|
|
5
5
|
"author": "",
|
|
6
6
|
"repository": {
|
|
@@ -17,13 +17,15 @@
|
|
|
17
17
|
"license": "MIT",
|
|
18
18
|
"scripts": {
|
|
19
19
|
"build": "tsc",
|
|
20
|
-
"lint": "eslint src/**/*.ts",
|
|
20
|
+
"lint": "eslint 'src/**/*.ts'",
|
|
21
21
|
"prepare": "yarn build",
|
|
22
22
|
"test": "vitest run",
|
|
23
|
-
"test:
|
|
24
|
-
"test:
|
|
23
|
+
"test:unit": "vitest run --project unit",
|
|
24
|
+
"test:e2e": "vitest run --project e2e",
|
|
25
|
+
"test:integration": "vitest run --project integration",
|
|
25
26
|
"test:watch": "vitest",
|
|
26
|
-
"format": "prettier --write 'src/**/*.ts'"
|
|
27
|
+
"format": "prettier --write 'src/**/*.ts'",
|
|
28
|
+
"typecheck": "tsc --noEmit && tsc -p tsconfig.tests.json"
|
|
27
29
|
},
|
|
28
30
|
"files": [
|
|
29
31
|
"dist",
|
|
@@ -73,6 +75,14 @@
|
|
|
73
75
|
"./tools": {
|
|
74
76
|
"types": "./dist/tools/index.d.ts",
|
|
75
77
|
"default": "./dist/tools/index.js"
|
|
78
|
+
},
|
|
79
|
+
"./image-builds": {
|
|
80
|
+
"types": "./dist/image-builds.d.ts",
|
|
81
|
+
"default": "./dist/image-builds.js"
|
|
82
|
+
},
|
|
83
|
+
"./sandbox": {
|
|
84
|
+
"types": "./dist/sandbox/index.d.ts",
|
|
85
|
+
"default": "./dist/sandbox/index.js"
|
|
76
86
|
}
|
|
77
87
|
},
|
|
78
88
|
"typesVersions": {
|
|
@@ -82,7 +92,16 @@
|
|
|
82
92
|
],
|
|
83
93
|
"tools": [
|
|
84
94
|
"./dist/tools/index.d.ts"
|
|
95
|
+
],
|
|
96
|
+
"image-builds": [
|
|
97
|
+
"./dist/image-builds.d.ts"
|
|
98
|
+
],
|
|
99
|
+
"sandbox": [
|
|
100
|
+
"./dist/sandbox/index.d.ts"
|
|
85
101
|
]
|
|
86
102
|
}
|
|
103
|
+
},
|
|
104
|
+
"engines": {
|
|
105
|
+
"node": ">=20.20.2"
|
|
87
106
|
}
|
|
88
107
|
}
|