@blaxel/core 0.2.35 → 0.2.36-dev.185

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.
@@ -2102,7 +2102,7 @@ export type SandboxDefinition = {
2102
2102
  */
2103
2103
  export type SandboxSpec = CoreSpec & {
2104
2104
  /**
2105
- * AWS region where the sandbox should be created (e.g. us-west-2, eu-west-1)
2105
+ * Region where the sandbox should be created (e.g. us-pdx-1, eu-lon-1)
2106
2106
  */
2107
2107
  region?: string;
2108
2108
  volumes?: VolumeAttachments;
@@ -2527,7 +2527,7 @@ export type VolumeAttachments = Array<VolumeAttachment>;
2527
2527
  */
2528
2528
  export type VolumeSpec = {
2529
2529
  /**
2530
- * AWS region where the volume should be created (e.g. us-west-2, eu-west-1)
2530
+ * Region where the volume should be created (e.g. us-pdx-1, eu-lon-1)
2531
2531
  */
2532
2532
  region?: string;
2533
2533
  /**
@@ -5,7 +5,7 @@ exports.getAlphanumericLimitedHash = getAlphanumericLimitedHash;
5
5
  exports.getGlobalUniqueHash = getGlobalUniqueHash;
6
6
  exports.pluralize = pluralize;
7
7
  exports.getForcedUrl = getForcedUrl;
8
- const core_1 = require("@blaxel/core");
8
+ const env_js_1 = require("./env.js");
9
9
  // Pure JS MD5 implementation that matches standard crypto MD5
10
10
  function md5(input) {
11
11
  function cmn(q, a, b, x, s, t) {
@@ -177,12 +177,12 @@ function getForcedUrl(type, name) {
177
177
  const pluralType = pluralize(type);
178
178
  const envVar = name.replace(/-/g, "_").toUpperCase();
179
179
  // BL_FUNCTIONS_NAME_URL
180
- if (core_1.env[`BL_${pluralType.toUpperCase()}_${envVar}_URL`]) {
181
- return new URL(core_1.env[`BL_${pluralType.toUpperCase()}_${envVar}_URL`]);
180
+ if (env_js_1.env[`BL_${pluralType.toUpperCase()}_${envVar}_URL`]) {
181
+ return new URL(env_js_1.env[`BL_${pluralType.toUpperCase()}_${envVar}_URL`]);
182
182
  }
183
183
  // BL_FUNCTION_NAME_URL
184
- if (core_1.env[`BL_${type.toUpperCase()}_${envVar}_URL`]) {
185
- return new URL(core_1.env[`BL_${type.toUpperCase()}_${envVar}_URL`]);
184
+ if (env_js_1.env[`BL_${type.toUpperCase()}_${envVar}_URL`]) {
185
+ return new URL(env_js_1.env[`BL_${type.toUpperCase()}_${envVar}_URL`]);
186
186
  }
187
187
  return null;
188
188
  }
@@ -8,7 +8,7 @@ function getPackageVersion() {
8
8
  try {
9
9
  // Try to require package.json (Node.js only, gracefully fails in browser)
10
10
  // eslint-disable-next-line @typescript-eslint/no-require-imports
11
- const packageJson = {"version":"0.2.35","commit":"19931c18b6608532016e6c3567f4692edeb9e747"};
11
+ const packageJson = {"version":"0.2.36-dev.185","commit":"5fe52a30fa512d6defc5e18fa2d991ed887f7c18"};
12
12
  return packageJson.version || "unknown";
13
13
  }
14
14
  catch {
@@ -55,7 +55,7 @@ function getCommitHash() {
55
55
  try {
56
56
  // Try to require package.json and look for commit field (set during build)
57
57
  // eslint-disable-next-line @typescript-eslint/no-require-imports
58
- const packageJson = {"version":"0.2.35","commit":"19931c18b6608532016e6c3567f4692edeb9e747"};
58
+ const packageJson = {"version":"0.2.36-dev.185","commit":"5fe52a30fa512d6defc5e18fa2d991ed887f7c18"};
59
59
  // Check for commit in various possible locations
60
60
  const commit = packageJson.commit || packageJson.buildInfo?.commit;
61
61
  if (commit) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blaxel/core",
3
- "version": "0.2.35",
3
+ "version": "0.2.36-dev.185",
4
4
  "description": "Blaxel Core SDK for TypeScript",
5
5
  "license": "MIT",
6
6
  "author": "Blaxel, INC (https://blaxel.ai)",
@@ -18,7 +18,7 @@
18
18
  "mcp"
19
19
  ],
20
20
  "main": "dist/index.js",
21
- "module": "./dist/index.js",
21
+ "module": "dist/index.js",
22
22
  "types": "dist/index.d.ts",
23
23
  "exports": {
24
24
  ".": {
@@ -44,6 +44,9 @@
44
44
  },
45
45
  "typesVersions": {
46
46
  "*": {
47
+ ".": [
48
+ "./dist/index.d.ts"
49
+ ],
47
50
  "*": [
48
51
  "./dist/*"
49
52
  ]
@@ -76,7 +79,7 @@
76
79
  "vite": "^5.2.0",
77
80
  "vitest": "^1.5.0"
78
81
  },
79
- "commit": "19931c18b6608532016e6c3567f4692edeb9e747",
82
+ "commit": "5fe52a30fa512d6defc5e18fa2d991ed887f7c18",
80
83
  "scripts": {
81
84
  "lint": "eslint src/",
82
85
  "dev": "tsc --watch",