computesdk 2.5.2 → 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 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,8 +3854,11 @@ 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"]];
3859
+ readonly upstash: readonly [readonly ["UPSTASH_BOX_API_KEY"]];
3857
3860
  readonly 'just-bash': readonly [readonly []];
3861
+ readonly 'secure-exec': readonly [readonly []];
3858
3862
  };
3859
3863
  /**
3860
3864
  * All supported provider names (excluding gateway which is special)
@@ -3990,10 +3994,20 @@ interface ExplicitComputeConfig {
3990
3994
  sprites?: {
3991
3995
  apiKey?: string;
3992
3996
  };
3997
+ agentuity?: {
3998
+ apiKey?: string;
3999
+ region?: string;
4000
+ baseURL?: string;
4001
+ };
3993
4002
  freestyle?: {
3994
4003
  apiKey?: string;
3995
4004
  };
4005
+ upstash?: {
4006
+ apiKey?: string;
4007
+ };
3996
4008
  'just-bash'?: {};
4009
+ 'secure-exec'?: {};
4010
+ computesdk?: {};
3997
4011
  }
3998
4012
  /**
3999
4013
  * Options for creating a sandbox via the gateway
@@ -4242,12 +4256,13 @@ declare const TRIBUTARY_URL = "https://tributary.edge.computesdk.com";
4242
4256
  * Provider detection priority order
4243
4257
  * When multiple provider credentials are detected, use the first one in this list
4244
4258
  */
4245
- declare const PROVIDER_PRIORITY: readonly ["e2b", "railway", "render", "daytona", "modal", "runloop", "vercel", "cloudflare", "codesandbox", "blaxel", "namespace", "hopx", "beam", "sprites", "freestyle"];
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"];
4246
4260
  /**
4247
4261
  * Required environment variables for each provider
4248
4262
  * @deprecated Use PROVIDER_AUTH from provider-config instead
4249
4263
  */
4250
4264
  declare const PROVIDER_ENV_VARS: {
4265
+ readonly computesdk: readonly ["COMPUTESDK_API_KEY"];
4251
4266
  readonly e2b: readonly ["E2B_API_KEY"];
4252
4267
  readonly railway: readonly ["RAILWAY_API_KEY", "RAILWAY_PROJECT_ID", "RAILWAY_ENVIRONMENT_ID"];
4253
4268
  readonly render: readonly ["RENDER_API_KEY", "RENDER_OWNER_ID"];
@@ -4262,8 +4277,11 @@ declare const PROVIDER_ENV_VARS: {
4262
4277
  readonly hopx: readonly ["HOPX_API_KEY"];
4263
4278
  readonly beam: readonly ["BEAM_TOKEN", "BEAM_WORKSPACE_ID"];
4264
4279
  readonly sprites: readonly ["SPRITES_TOKEN"];
4280
+ readonly agentuity: readonly ["AGENTUITY_SDK_KEY"];
4265
4281
  readonly freestyle: readonly ["FREESTYLE_API_KEY"];
4282
+ readonly upstash: readonly ["UPSTASH_BOX_API_KEY"];
4266
4283
  readonly 'just-bash': readonly [];
4284
+ readonly 'secure-exec': readonly [];
4267
4285
  };
4268
4286
 
4269
4287
  export { type CallableCompute, type CodeResult$1 as CodeResult, CommandExitError, type CommandResult$1 as CommandResult, type CreateSandboxOptions$1 as CreateSandboxOptions, type ExplicitComputeConfig, type FileEntry, FileWatcher, Sandbox as GatewaySandbox, MessageType, PROVIDER_AUTH, PROVIDER_DASHBOARD_URLS, PROVIDER_ENV_MAP, PROVIDER_ENV_VARS, PROVIDER_HEADERS, PROVIDER_NAMES, PROVIDER_PRIORITY, type ProviderName, type ProviderSandboxInfo, type RunCommandOptions, type Runtime, Sandbox, type SandboxFileSystem, type SandboxInfo$1 as SandboxInfo, type Sandbox$1 as SandboxInterface, type SandboxStatus, type SetupOverlayConfig, type SetupPayload, SignalService, type Snapshot, TRIBUTARY_URL, TerminalInstance, type WebSocketConstructor, autoConfigureCompute, buildProviderHeaders, buildSetupPayload, compute, decodeBinaryMessage, detectProvider, encodeBinaryMessage, encodeSetupPayload, getMissingEnvVars, getProviderConfigFromEnv, getProviderHeaders, isCommandExitError, isGatewayModeEnabled, isProviderAuthComplete, isValidProvider };
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,8 +3854,11 @@ 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"]];
3859
+ readonly upstash: readonly [readonly ["UPSTASH_BOX_API_KEY"]];
3857
3860
  readonly 'just-bash': readonly [readonly []];
3861
+ readonly 'secure-exec': readonly [readonly []];
3858
3862
  };
3859
3863
  /**
3860
3864
  * All supported provider names (excluding gateway which is special)
@@ -3990,10 +3994,20 @@ interface ExplicitComputeConfig {
3990
3994
  sprites?: {
3991
3995
  apiKey?: string;
3992
3996
  };
3997
+ agentuity?: {
3998
+ apiKey?: string;
3999
+ region?: string;
4000
+ baseURL?: string;
4001
+ };
3993
4002
  freestyle?: {
3994
4003
  apiKey?: string;
3995
4004
  };
4005
+ upstash?: {
4006
+ apiKey?: string;
4007
+ };
3996
4008
  'just-bash'?: {};
4009
+ 'secure-exec'?: {};
4010
+ computesdk?: {};
3997
4011
  }
3998
4012
  /**
3999
4013
  * Options for creating a sandbox via the gateway
@@ -4242,12 +4256,13 @@ declare const TRIBUTARY_URL = "https://tributary.edge.computesdk.com";
4242
4256
  * Provider detection priority order
4243
4257
  * When multiple provider credentials are detected, use the first one in this list
4244
4258
  */
4245
- declare const PROVIDER_PRIORITY: readonly ["e2b", "railway", "render", "daytona", "modal", "runloop", "vercel", "cloudflare", "codesandbox", "blaxel", "namespace", "hopx", "beam", "sprites", "freestyle"];
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"];
4246
4260
  /**
4247
4261
  * Required environment variables for each provider
4248
4262
  * @deprecated Use PROVIDER_AUTH from provider-config instead
4249
4263
  */
4250
4264
  declare const PROVIDER_ENV_VARS: {
4265
+ readonly computesdk: readonly ["COMPUTESDK_API_KEY"];
4251
4266
  readonly e2b: readonly ["E2B_API_KEY"];
4252
4267
  readonly railway: readonly ["RAILWAY_API_KEY", "RAILWAY_PROJECT_ID", "RAILWAY_ENVIRONMENT_ID"];
4253
4268
  readonly render: readonly ["RENDER_API_KEY", "RENDER_OWNER_ID"];
@@ -4262,8 +4277,11 @@ declare const PROVIDER_ENV_VARS: {
4262
4277
  readonly hopx: readonly ["HOPX_API_KEY"];
4263
4278
  readonly beam: readonly ["BEAM_TOKEN", "BEAM_WORKSPACE_ID"];
4264
4279
  readonly sprites: readonly ["SPRITES_TOKEN"];
4280
+ readonly agentuity: readonly ["AGENTUITY_SDK_KEY"];
4265
4281
  readonly freestyle: readonly ["FREESTYLE_API_KEY"];
4282
+ readonly upstash: readonly ["UPSTASH_BOX_API_KEY"];
4266
4283
  readonly 'just-bash': readonly [];
4284
+ readonly 'secure-exec': readonly [];
4267
4285
  };
4268
4286
 
4269
4287
  export { type CallableCompute, type CodeResult$1 as CodeResult, CommandExitError, type CommandResult$1 as CommandResult, type CreateSandboxOptions$1 as CreateSandboxOptions, type ExplicitComputeConfig, type FileEntry, FileWatcher, Sandbox as GatewaySandbox, MessageType, PROVIDER_AUTH, PROVIDER_DASHBOARD_URLS, PROVIDER_ENV_MAP, PROVIDER_ENV_VARS, PROVIDER_HEADERS, PROVIDER_NAMES, PROVIDER_PRIORITY, type ProviderName, type ProviderSandboxInfo, type RunCommandOptions, type Runtime, Sandbox, type SandboxFileSystem, type SandboxInfo$1 as SandboxInfo, type Sandbox$1 as SandboxInterface, type SandboxStatus, type SetupOverlayConfig, type SetupPayload, SignalService, type Snapshot, TRIBUTARY_URL, TerminalInstance, type WebSocketConstructor, autoConfigureCompute, buildProviderHeaders, buildSetupPayload, compute, decodeBinaryMessage, detectProvider, encodeBinaryMessage, encodeSetupPayload, getMissingEnvVars, getProviderConfigFromEnv, getProviderHeaders, isCommandExitError, isGatewayModeEnabled, isProviderAuthComplete, isValidProvider };
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,9 +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
- "just-bash": [[]]
3658
+ upstash: [["UPSTASH_BOX_API_KEY"]],
3659
+ "just-bash": [[]],
3660
+ "secure-exec": [[]]
3656
3661
  };
3662
+ var BROWSER_PROVIDER_AUTH = {
3663
+ browserbase: [["BROWSERBASE_API_KEY"]]
3664
+ };
3665
+ var BROWSER_PROVIDER_NAMES = Object.keys(BROWSER_PROVIDER_AUTH);
3657
3666
  var PROVIDER_NAMES = Object.keys(PROVIDER_AUTH);
3658
3667
  var PROVIDER_HEADERS = {
3659
3668
  e2b: {
@@ -3710,10 +3719,18 @@ var PROVIDER_HEADERS = {
3710
3719
  sprites: {
3711
3720
  apiKey: "X-Sprites-Token"
3712
3721
  },
3722
+ agentuity: {
3723
+ apiKey: "X-Agentuity-SDK-Key"
3724
+ },
3713
3725
  freestyle: {
3714
3726
  apiKey: "X-Freestyle-API-Key"
3715
3727
  },
3716
- "just-bash": {}
3728
+ upstash: {
3729
+ apiKey: "X-Upstash-Box-API-Key"
3730
+ },
3731
+ "just-bash": {},
3732
+ computesdk: {},
3733
+ "secure-exec": {}
3717
3734
  };
3718
3735
  var PROVIDER_ENV_MAP = {
3719
3736
  e2b: {
@@ -3771,10 +3788,18 @@ var PROVIDER_ENV_MAP = {
3771
3788
  sprites: {
3772
3789
  SPRITES_TOKEN: "apiKey"
3773
3790
  },
3791
+ agentuity: {
3792
+ AGENTUITY_SDK_KEY: "apiKey"
3793
+ },
3774
3794
  freestyle: {
3775
3795
  FREESTYLE_API_KEY: "apiKey"
3776
3796
  },
3777
- "just-bash": {}
3797
+ upstash: {
3798
+ UPSTASH_BOX_API_KEY: "apiKey"
3799
+ },
3800
+ "just-bash": {},
3801
+ computesdk: {},
3802
+ "secure-exec": {}
3778
3803
  };
3779
3804
  var PROVIDER_DASHBOARD_URLS = {
3780
3805
  e2b: "https://e2b.dev/dashboard",
@@ -3791,8 +3816,12 @@ var PROVIDER_DASHBOARD_URLS = {
3791
3816
  hopx: "https://hopx.ai/dashboard",
3792
3817
  beam: "https://app.beam.cloud",
3793
3818
  sprites: "https://sprites.dev",
3819
+ agentuity: "https://console.agentuity.com",
3794
3820
  freestyle: "https://dash.freestyle.sh",
3795
- "just-bash": "https://github.com/vercel-labs/just-bash"
3821
+ upstash: "https://console.upstash.com",
3822
+ "just-bash": "https://github.com/vercel-labs/just-bash",
3823
+ computesdk: "https://computesdk.com/dashboard",
3824
+ "secure-exec": "https://github.com/anomalyco/secure-exec"
3796
3825
  };
3797
3826
  function isValidProvider(name) {
3798
3827
  return name in PROVIDER_AUTH;
@@ -3865,9 +3894,14 @@ var PROVIDER_PRIORITY = [
3865
3894
  "hopx",
3866
3895
  "beam",
3867
3896
  "sprites",
3868
- "freestyle"
3897
+ "agentuity",
3898
+ "freestyle",
3899
+ "upstash",
3900
+ "secure-exec"
3869
3901
  ];
3870
3902
  var PROVIDER_ENV_VARS = {
3903
+ computesdk: ["COMPUTESDK_API_KEY"],
3904
+ // ComputeSDK native - requires COMPUTESDK_API_KEY
3871
3905
  e2b: ["E2B_API_KEY"],
3872
3906
  railway: ["RAILWAY_API_KEY", "RAILWAY_PROJECT_ID", "RAILWAY_ENVIRONMENT_ID"],
3873
3907
  render: ["RENDER_API_KEY", "RENDER_OWNER_ID"],
@@ -3882,8 +3916,11 @@ var PROVIDER_ENV_VARS = {
3882
3916
  hopx: ["HOPX_API_KEY"],
3883
3917
  beam: ["BEAM_TOKEN", "BEAM_WORKSPACE_ID"],
3884
3918
  sprites: ["SPRITES_TOKEN"],
3919
+ agentuity: ["AGENTUITY_SDK_KEY"],
3885
3920
  freestyle: ["FREESTYLE_API_KEY"],
3886
- "just-bash": []
3921
+ upstash: ["UPSTASH_BOX_API_KEY"],
3922
+ "just-bash": [],
3923
+ "secure-exec": []
3887
3924
  };
3888
3925
 
3889
3926
  // src/auto-detect.ts
@@ -3893,7 +3930,7 @@ function isGatewayModeEnabled() {
3893
3930
  function hasProviderEnv(provider) {
3894
3931
  if (typeof process === "undefined") return false;
3895
3932
  const requiredVars = PROVIDER_ENV_VARS[provider];
3896
- if (!requiredVars) return false;
3933
+ if (!requiredVars || requiredVars.length === 0) return false;
3897
3934
  return requiredVars.every((varName) => !!process.env?.[varName]);
3898
3935
  }
3899
3936
  function getProviderEnvStatus(provider) {
@@ -4031,8 +4068,20 @@ function getProviderHeaders(provider) {
4031
4068
  headers["X-Sprites-Token"] = process.env.SPRITES_TOKEN;
4032
4069
  }
4033
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;
4034
4076
  case "just-bash":
4035
4077
  break;
4078
+ case "secure-exec":
4079
+ break;
4080
+ case "upstash":
4081
+ if (process.env.UPSTASH_BOX_API_KEY) {
4082
+ headers["X-Upstash-Box-API-Key"] = process.env.UPSTASH_BOX_API_KEY;
4083
+ }
4084
+ break;
4036
4085
  }
4037
4086
  return headers;
4038
4087
  }
@@ -4074,7 +4123,10 @@ To fix this, set one of the following:
4074
4123
  Render: export RENDER_API_KEY=xxx RENDER_OWNER_ID=xxx
4075
4124
  Beam: export BEAM_TOKEN=xxx BEAM_WORKSPACE_ID=xxx
4076
4125
  Sprites: export SPRITES_TOKEN=xxx
4126
+ Agentuity: export AGENTUITY_SDK_KEY=xxx
4127
+ Upstash: export UPSTASH_BOX_API_KEY=xxx
4077
4128
  just-bash: (no credentials needed - local sandbox)
4129
+ secure-exec: (no credentials needed - local sandbox)
4078
4130
 
4079
4131
  Or set COMPUTESDK_PROVIDER to specify explicitly:
4080
4132
  export COMPUTESDK_PROVIDER=<provider>