computesdk 2.5.3 → 2.5.4
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/dist/index.d.mts +11 -1
- package/dist/index.d.ts +11 -1
- package/dist/index.js +27 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +27 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -3839,6 +3839,7 @@ declare const encodeSetupPayload: (options: BuildSetupPayloadOptions) => string;
|
|
|
3839
3839
|
* -> Ready if OIDC_TOKEN is set, OR if all three traditional vars are set
|
|
3840
3840
|
*/
|
|
3841
3841
|
declare const PROVIDER_AUTH: {
|
|
3842
|
+
readonly computesdk: readonly [readonly ["COMPUTESDK_API_KEY"]];
|
|
3842
3843
|
readonly e2b: readonly [readonly ["E2B_API_KEY"]];
|
|
3843
3844
|
readonly modal: readonly [readonly ["MODAL_TOKEN_ID", "MODAL_TOKEN_SECRET"]];
|
|
3844
3845
|
readonly railway: readonly [readonly ["RAILWAY_API_KEY", "RAILWAY_PROJECT_ID", "RAILWAY_ENVIRONMENT_ID"]];
|
|
@@ -3853,6 +3854,7 @@ declare const PROVIDER_AUTH: {
|
|
|
3853
3854
|
readonly hopx: readonly [readonly ["HOPX_API_KEY"]];
|
|
3854
3855
|
readonly beam: readonly [readonly ["BEAM_TOKEN", "BEAM_WORKSPACE_ID"]];
|
|
3855
3856
|
readonly sprites: readonly [readonly ["SPRITES_TOKEN"]];
|
|
3857
|
+
readonly agentuity: readonly [readonly ["AGENTUITY_SDK_KEY"]];
|
|
3856
3858
|
readonly freestyle: readonly [readonly ["FREESTYLE_API_KEY"]];
|
|
3857
3859
|
readonly upstash: readonly [readonly ["UPSTASH_BOX_API_KEY"]];
|
|
3858
3860
|
readonly 'just-bash': readonly [readonly []];
|
|
@@ -3992,6 +3994,11 @@ interface ExplicitComputeConfig {
|
|
|
3992
3994
|
sprites?: {
|
|
3993
3995
|
apiKey?: string;
|
|
3994
3996
|
};
|
|
3997
|
+
agentuity?: {
|
|
3998
|
+
apiKey?: string;
|
|
3999
|
+
region?: string;
|
|
4000
|
+
baseURL?: string;
|
|
4001
|
+
};
|
|
3995
4002
|
freestyle?: {
|
|
3996
4003
|
apiKey?: string;
|
|
3997
4004
|
};
|
|
@@ -4000,6 +4007,7 @@ interface ExplicitComputeConfig {
|
|
|
4000
4007
|
};
|
|
4001
4008
|
'just-bash'?: {};
|
|
4002
4009
|
'secure-exec'?: {};
|
|
4010
|
+
computesdk?: {};
|
|
4003
4011
|
}
|
|
4004
4012
|
/**
|
|
4005
4013
|
* Options for creating a sandbox via the gateway
|
|
@@ -4248,12 +4256,13 @@ declare const TRIBUTARY_URL = "https://tributary.edge.computesdk.com";
|
|
|
4248
4256
|
* Provider detection priority order
|
|
4249
4257
|
* When multiple provider credentials are detected, use the first one in this list
|
|
4250
4258
|
*/
|
|
4251
|
-
declare const PROVIDER_PRIORITY: readonly ["e2b", "railway", "render", "daytona", "modal", "runloop", "vercel", "cloudflare", "codesandbox", "blaxel", "namespace", "hopx", "beam", "sprites", "freestyle", "upstash", "secure-exec"];
|
|
4259
|
+
declare const PROVIDER_PRIORITY: readonly ["e2b", "railway", "render", "daytona", "modal", "runloop", "vercel", "cloudflare", "codesandbox", "blaxel", "namespace", "hopx", "beam", "sprites", "agentuity", "freestyle", "upstash", "secure-exec"];
|
|
4252
4260
|
/**
|
|
4253
4261
|
* Required environment variables for each provider
|
|
4254
4262
|
* @deprecated Use PROVIDER_AUTH from provider-config instead
|
|
4255
4263
|
*/
|
|
4256
4264
|
declare const PROVIDER_ENV_VARS: {
|
|
4265
|
+
readonly computesdk: readonly ["COMPUTESDK_API_KEY"];
|
|
4257
4266
|
readonly e2b: readonly ["E2B_API_KEY"];
|
|
4258
4267
|
readonly railway: readonly ["RAILWAY_API_KEY", "RAILWAY_PROJECT_ID", "RAILWAY_ENVIRONMENT_ID"];
|
|
4259
4268
|
readonly render: readonly ["RENDER_API_KEY", "RENDER_OWNER_ID"];
|
|
@@ -4268,6 +4277,7 @@ declare const PROVIDER_ENV_VARS: {
|
|
|
4268
4277
|
readonly hopx: readonly ["HOPX_API_KEY"];
|
|
4269
4278
|
readonly beam: readonly ["BEAM_TOKEN", "BEAM_WORKSPACE_ID"];
|
|
4270
4279
|
readonly sprites: readonly ["SPRITES_TOKEN"];
|
|
4280
|
+
readonly agentuity: readonly ["AGENTUITY_SDK_KEY"];
|
|
4271
4281
|
readonly freestyle: readonly ["FREESTYLE_API_KEY"];
|
|
4272
4282
|
readonly upstash: readonly ["UPSTASH_BOX_API_KEY"];
|
|
4273
4283
|
readonly 'just-bash': readonly [];
|
package/dist/index.d.ts
CHANGED
|
@@ -3839,6 +3839,7 @@ declare const encodeSetupPayload: (options: BuildSetupPayloadOptions) => string;
|
|
|
3839
3839
|
* -> Ready if OIDC_TOKEN is set, OR if all three traditional vars are set
|
|
3840
3840
|
*/
|
|
3841
3841
|
declare const PROVIDER_AUTH: {
|
|
3842
|
+
readonly computesdk: readonly [readonly ["COMPUTESDK_API_KEY"]];
|
|
3842
3843
|
readonly e2b: readonly [readonly ["E2B_API_KEY"]];
|
|
3843
3844
|
readonly modal: readonly [readonly ["MODAL_TOKEN_ID", "MODAL_TOKEN_SECRET"]];
|
|
3844
3845
|
readonly railway: readonly [readonly ["RAILWAY_API_KEY", "RAILWAY_PROJECT_ID", "RAILWAY_ENVIRONMENT_ID"]];
|
|
@@ -3853,6 +3854,7 @@ declare const PROVIDER_AUTH: {
|
|
|
3853
3854
|
readonly hopx: readonly [readonly ["HOPX_API_KEY"]];
|
|
3854
3855
|
readonly beam: readonly [readonly ["BEAM_TOKEN", "BEAM_WORKSPACE_ID"]];
|
|
3855
3856
|
readonly sprites: readonly [readonly ["SPRITES_TOKEN"]];
|
|
3857
|
+
readonly agentuity: readonly [readonly ["AGENTUITY_SDK_KEY"]];
|
|
3856
3858
|
readonly freestyle: readonly [readonly ["FREESTYLE_API_KEY"]];
|
|
3857
3859
|
readonly upstash: readonly [readonly ["UPSTASH_BOX_API_KEY"]];
|
|
3858
3860
|
readonly 'just-bash': readonly [readonly []];
|
|
@@ -3992,6 +3994,11 @@ interface ExplicitComputeConfig {
|
|
|
3992
3994
|
sprites?: {
|
|
3993
3995
|
apiKey?: string;
|
|
3994
3996
|
};
|
|
3997
|
+
agentuity?: {
|
|
3998
|
+
apiKey?: string;
|
|
3999
|
+
region?: string;
|
|
4000
|
+
baseURL?: string;
|
|
4001
|
+
};
|
|
3995
4002
|
freestyle?: {
|
|
3996
4003
|
apiKey?: string;
|
|
3997
4004
|
};
|
|
@@ -4000,6 +4007,7 @@ interface ExplicitComputeConfig {
|
|
|
4000
4007
|
};
|
|
4001
4008
|
'just-bash'?: {};
|
|
4002
4009
|
'secure-exec'?: {};
|
|
4010
|
+
computesdk?: {};
|
|
4003
4011
|
}
|
|
4004
4012
|
/**
|
|
4005
4013
|
* Options for creating a sandbox via the gateway
|
|
@@ -4248,12 +4256,13 @@ declare const TRIBUTARY_URL = "https://tributary.edge.computesdk.com";
|
|
|
4248
4256
|
* Provider detection priority order
|
|
4249
4257
|
* When multiple provider credentials are detected, use the first one in this list
|
|
4250
4258
|
*/
|
|
4251
|
-
declare const PROVIDER_PRIORITY: readonly ["e2b", "railway", "render", "daytona", "modal", "runloop", "vercel", "cloudflare", "codesandbox", "blaxel", "namespace", "hopx", "beam", "sprites", "freestyle", "upstash", "secure-exec"];
|
|
4259
|
+
declare const PROVIDER_PRIORITY: readonly ["e2b", "railway", "render", "daytona", "modal", "runloop", "vercel", "cloudflare", "codesandbox", "blaxel", "namespace", "hopx", "beam", "sprites", "agentuity", "freestyle", "upstash", "secure-exec"];
|
|
4252
4260
|
/**
|
|
4253
4261
|
* Required environment variables for each provider
|
|
4254
4262
|
* @deprecated Use PROVIDER_AUTH from provider-config instead
|
|
4255
4263
|
*/
|
|
4256
4264
|
declare const PROVIDER_ENV_VARS: {
|
|
4265
|
+
readonly computesdk: readonly ["COMPUTESDK_API_KEY"];
|
|
4257
4266
|
readonly e2b: readonly ["E2B_API_KEY"];
|
|
4258
4267
|
readonly railway: readonly ["RAILWAY_API_KEY", "RAILWAY_PROJECT_ID", "RAILWAY_ENVIRONMENT_ID"];
|
|
4259
4268
|
readonly render: readonly ["RENDER_API_KEY", "RENDER_OWNER_ID"];
|
|
@@ -4268,6 +4277,7 @@ declare const PROVIDER_ENV_VARS: {
|
|
|
4268
4277
|
readonly hopx: readonly ["HOPX_API_KEY"];
|
|
4269
4278
|
readonly beam: readonly ["BEAM_TOKEN", "BEAM_WORKSPACE_ID"];
|
|
4270
4279
|
readonly sprites: readonly ["SPRITES_TOKEN"];
|
|
4280
|
+
readonly agentuity: readonly ["AGENTUITY_SDK_KEY"];
|
|
4271
4281
|
readonly freestyle: readonly ["FREESTYLE_API_KEY"];
|
|
4272
4282
|
readonly upstash: readonly ["UPSTASH_BOX_API_KEY"];
|
|
4273
4283
|
readonly 'just-bash': readonly [];
|
package/dist/index.js
CHANGED
|
@@ -3631,6 +3631,8 @@ var encodeSetupPayload = (options) => {
|
|
|
3631
3631
|
|
|
3632
3632
|
// src/provider-config.ts
|
|
3633
3633
|
var PROVIDER_AUTH = {
|
|
3634
|
+
computesdk: [["COMPUTESDK_API_KEY"]],
|
|
3635
|
+
// ComputeSDK native - requires COMPUTESDK_API_KEY
|
|
3634
3636
|
e2b: [["E2B_API_KEY"]],
|
|
3635
3637
|
modal: [["MODAL_TOKEN_ID", "MODAL_TOKEN_SECRET"]],
|
|
3636
3638
|
railway: [["RAILWAY_API_KEY", "RAILWAY_PROJECT_ID", "RAILWAY_ENVIRONMENT_ID"]],
|
|
@@ -3651,11 +3653,16 @@ var PROVIDER_AUTH = {
|
|
|
3651
3653
|
hopx: [["HOPX_API_KEY"]],
|
|
3652
3654
|
beam: [["BEAM_TOKEN", "BEAM_WORKSPACE_ID"]],
|
|
3653
3655
|
sprites: [["SPRITES_TOKEN"]],
|
|
3656
|
+
agentuity: [["AGENTUITY_SDK_KEY"]],
|
|
3654
3657
|
freestyle: [["FREESTYLE_API_KEY"]],
|
|
3655
3658
|
upstash: [["UPSTASH_BOX_API_KEY"]],
|
|
3656
3659
|
"just-bash": [[]],
|
|
3657
3660
|
"secure-exec": [[]]
|
|
3658
3661
|
};
|
|
3662
|
+
var BROWSER_PROVIDER_AUTH = {
|
|
3663
|
+
browserbase: [["BROWSERBASE_API_KEY"]]
|
|
3664
|
+
};
|
|
3665
|
+
var BROWSER_PROVIDER_NAMES = Object.keys(BROWSER_PROVIDER_AUTH);
|
|
3659
3666
|
var PROVIDER_NAMES = Object.keys(PROVIDER_AUTH);
|
|
3660
3667
|
var PROVIDER_HEADERS = {
|
|
3661
3668
|
e2b: {
|
|
@@ -3712,6 +3719,9 @@ var PROVIDER_HEADERS = {
|
|
|
3712
3719
|
sprites: {
|
|
3713
3720
|
apiKey: "X-Sprites-Token"
|
|
3714
3721
|
},
|
|
3722
|
+
agentuity: {
|
|
3723
|
+
apiKey: "X-Agentuity-SDK-Key"
|
|
3724
|
+
},
|
|
3715
3725
|
freestyle: {
|
|
3716
3726
|
apiKey: "X-Freestyle-API-Key"
|
|
3717
3727
|
},
|
|
@@ -3719,6 +3729,7 @@ var PROVIDER_HEADERS = {
|
|
|
3719
3729
|
apiKey: "X-Upstash-Box-API-Key"
|
|
3720
3730
|
},
|
|
3721
3731
|
"just-bash": {},
|
|
3732
|
+
computesdk: {},
|
|
3722
3733
|
"secure-exec": {}
|
|
3723
3734
|
};
|
|
3724
3735
|
var PROVIDER_ENV_MAP = {
|
|
@@ -3777,6 +3788,9 @@ var PROVIDER_ENV_MAP = {
|
|
|
3777
3788
|
sprites: {
|
|
3778
3789
|
SPRITES_TOKEN: "apiKey"
|
|
3779
3790
|
},
|
|
3791
|
+
agentuity: {
|
|
3792
|
+
AGENTUITY_SDK_KEY: "apiKey"
|
|
3793
|
+
},
|
|
3780
3794
|
freestyle: {
|
|
3781
3795
|
FREESTYLE_API_KEY: "apiKey"
|
|
3782
3796
|
},
|
|
@@ -3784,6 +3798,7 @@ var PROVIDER_ENV_MAP = {
|
|
|
3784
3798
|
UPSTASH_BOX_API_KEY: "apiKey"
|
|
3785
3799
|
},
|
|
3786
3800
|
"just-bash": {},
|
|
3801
|
+
computesdk: {},
|
|
3787
3802
|
"secure-exec": {}
|
|
3788
3803
|
};
|
|
3789
3804
|
var PROVIDER_DASHBOARD_URLS = {
|
|
@@ -3801,9 +3816,11 @@ var PROVIDER_DASHBOARD_URLS = {
|
|
|
3801
3816
|
hopx: "https://hopx.ai/dashboard",
|
|
3802
3817
|
beam: "https://app.beam.cloud",
|
|
3803
3818
|
sprites: "https://sprites.dev",
|
|
3819
|
+
agentuity: "https://console.agentuity.com",
|
|
3804
3820
|
freestyle: "https://dash.freestyle.sh",
|
|
3805
3821
|
upstash: "https://console.upstash.com",
|
|
3806
3822
|
"just-bash": "https://github.com/vercel-labs/just-bash",
|
|
3823
|
+
computesdk: "https://computesdk.com/dashboard",
|
|
3807
3824
|
"secure-exec": "https://github.com/anomalyco/secure-exec"
|
|
3808
3825
|
};
|
|
3809
3826
|
function isValidProvider(name) {
|
|
@@ -3877,11 +3894,14 @@ var PROVIDER_PRIORITY = [
|
|
|
3877
3894
|
"hopx",
|
|
3878
3895
|
"beam",
|
|
3879
3896
|
"sprites",
|
|
3897
|
+
"agentuity",
|
|
3880
3898
|
"freestyle",
|
|
3881
3899
|
"upstash",
|
|
3882
3900
|
"secure-exec"
|
|
3883
3901
|
];
|
|
3884
3902
|
var PROVIDER_ENV_VARS = {
|
|
3903
|
+
computesdk: ["COMPUTESDK_API_KEY"],
|
|
3904
|
+
// ComputeSDK native - requires COMPUTESDK_API_KEY
|
|
3885
3905
|
e2b: ["E2B_API_KEY"],
|
|
3886
3906
|
railway: ["RAILWAY_API_KEY", "RAILWAY_PROJECT_ID", "RAILWAY_ENVIRONMENT_ID"],
|
|
3887
3907
|
render: ["RENDER_API_KEY", "RENDER_OWNER_ID"],
|
|
@@ -3896,6 +3916,7 @@ var PROVIDER_ENV_VARS = {
|
|
|
3896
3916
|
hopx: ["HOPX_API_KEY"],
|
|
3897
3917
|
beam: ["BEAM_TOKEN", "BEAM_WORKSPACE_ID"],
|
|
3898
3918
|
sprites: ["SPRITES_TOKEN"],
|
|
3919
|
+
agentuity: ["AGENTUITY_SDK_KEY"],
|
|
3899
3920
|
freestyle: ["FREESTYLE_API_KEY"],
|
|
3900
3921
|
upstash: ["UPSTASH_BOX_API_KEY"],
|
|
3901
3922
|
"just-bash": [],
|
|
@@ -4047,6 +4068,11 @@ function getProviderHeaders(provider) {
|
|
|
4047
4068
|
headers["X-Sprites-Token"] = process.env.SPRITES_TOKEN;
|
|
4048
4069
|
}
|
|
4049
4070
|
break;
|
|
4071
|
+
case "agentuity":
|
|
4072
|
+
if (process.env.AGENTUITY_SDK_KEY) {
|
|
4073
|
+
headers["X-Agentuity-SDK-Key"] = process.env.AGENTUITY_SDK_KEY;
|
|
4074
|
+
}
|
|
4075
|
+
break;
|
|
4050
4076
|
case "just-bash":
|
|
4051
4077
|
break;
|
|
4052
4078
|
case "secure-exec":
|
|
@@ -4097,6 +4123,7 @@ To fix this, set one of the following:
|
|
|
4097
4123
|
Render: export RENDER_API_KEY=xxx RENDER_OWNER_ID=xxx
|
|
4098
4124
|
Beam: export BEAM_TOKEN=xxx BEAM_WORKSPACE_ID=xxx
|
|
4099
4125
|
Sprites: export SPRITES_TOKEN=xxx
|
|
4126
|
+
Agentuity: export AGENTUITY_SDK_KEY=xxx
|
|
4100
4127
|
Upstash: export UPSTASH_BOX_API_KEY=xxx
|
|
4101
4128
|
just-bash: (no credentials needed - local sandbox)
|
|
4102
4129
|
secure-exec: (no credentials needed - local sandbox)
|