@mastra/deployer 1.13.3-alpha.0 → 1.13.3-alpha.1

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.
Files changed (53) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/build/analyze.cjs +2 -2
  3. package/dist/build/analyze.js +1 -1
  4. package/dist/build/bundler.cjs +3 -3
  5. package/dist/build/bundler.js +1 -1
  6. package/dist/build/index.cjs +15 -15
  7. package/dist/build/index.js +5 -5
  8. package/dist/build/utils.d.ts +1 -0
  9. package/dist/build/utils.d.ts.map +1 -1
  10. package/dist/bundler/index.cjs +3 -3
  11. package/dist/bundler/index.js +1 -1
  12. package/dist/{chunk-YKTV7TY3.cjs → chunk-5GQ4KYVA.cjs} +41 -41
  13. package/dist/{chunk-YKTV7TY3.cjs.map → chunk-5GQ4KYVA.cjs.map} +1 -1
  14. package/dist/{chunk-G7R456H2.cjs → chunk-A3JIVJHX.cjs} +3 -2
  15. package/dist/chunk-A3JIVJHX.cjs.map +1 -0
  16. package/dist/{chunk-XN3FKMO6.js → chunk-CVFIGXXI.js} +3 -2
  17. package/dist/chunk-CVFIGXXI.js.map +1 -0
  18. package/dist/{chunk-JNJDIOG2.js → chunk-EIHBOFJ2.js} +7 -7
  19. package/dist/{chunk-JNJDIOG2.js.map → chunk-EIHBOFJ2.js.map} +1 -1
  20. package/dist/{chunk-37PC7CXR.cjs → chunk-I4JVB6BK.cjs} +16 -16
  21. package/dist/{chunk-37PC7CXR.cjs.map → chunk-I4JVB6BK.cjs.map} +1 -1
  22. package/dist/{chunk-GSO2J4MT.js → chunk-IGXPFW6N.js} +4 -4
  23. package/dist/{chunk-GSO2J4MT.js.map → chunk-IGXPFW6N.js.map} +1 -1
  24. package/dist/{chunk-GRC4HK7K.js → chunk-KFHJXZBM.js} +7 -7
  25. package/dist/{chunk-GRC4HK7K.js.map → chunk-KFHJXZBM.js.map} +1 -1
  26. package/dist/{chunk-4O7AWOLQ.cjs → chunk-LYJKUXY5.cjs} +17 -17
  27. package/dist/{chunk-4O7AWOLQ.cjs.map → chunk-LYJKUXY5.cjs.map} +1 -1
  28. package/dist/{chunk-V245ALKI.cjs → chunk-NNVFGNAO.cjs} +4 -4
  29. package/dist/{chunk-V245ALKI.cjs.map → chunk-NNVFGNAO.cjs.map} +1 -1
  30. package/dist/{chunk-IY4RBV63.js → chunk-OOGT37UD.js} +4 -4
  31. package/dist/{chunk-IY4RBV63.js.map → chunk-OOGT37UD.js.map} +1 -1
  32. package/dist/{chunk-3Y3N6DCM.cjs → chunk-QT5YQ63Q.cjs} +7 -7
  33. package/dist/{chunk-3Y3N6DCM.cjs.map → chunk-QT5YQ63Q.cjs.map} +1 -1
  34. package/dist/{chunk-PM35TGRT.cjs → chunk-QTMOHGMX.cjs} +16 -16
  35. package/dist/{chunk-PM35TGRT.cjs.map → chunk-QTMOHGMX.cjs.map} +1 -1
  36. package/dist/{chunk-HXQ27JQX.js → chunk-WQFD37DQ.js} +3 -3
  37. package/dist/{chunk-HXQ27JQX.js.map → chunk-WQFD37DQ.js.map} +1 -1
  38. package/dist/{chunk-MPZSAF6V.js → chunk-X3T5NPCG.js} +3 -3
  39. package/dist/{chunk-MPZSAF6V.js.map → chunk-X3T5NPCG.js.map} +1 -1
  40. package/dist/docs/SKILL.md +1 -1
  41. package/dist/docs/assets/SOURCE_MAP.json +1 -1
  42. package/dist/index.cjs +4 -4
  43. package/dist/index.js +2 -2
  44. package/dist/server/index.cjs +15 -10
  45. package/dist/server/index.cjs.map +1 -1
  46. package/dist/server/index.d.ts.map +1 -1
  47. package/dist/server/index.js +12 -7
  48. package/dist/server/index.js.map +1 -1
  49. package/dist/validator/custom-resolver.cjs +3 -3
  50. package/dist/validator/custom-resolver.js +1 -1
  51. package/package.json +8 -8
  52. package/dist/chunk-G7R456H2.cjs.map +0 -1
  53. package/dist/chunk-XN3FKMO6.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @mastra/deployer
2
2
 
3
+ ## 1.13.3-alpha.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Added a new `MASTRA_TEMPLATES` Studio runtime flag to control whether the **Templates** section appears in the sidebar. ([#14309](https://github.com/mastra-ai/mastra/pull/14309))
8
+ - `MASTRA_TEMPLATES=true` now enables Templates navigation in Studio.
9
+ - By default (`false` or unset), Templates is hidden.
10
+ - Studio HTML injection now propagates this value in both CLI-hosted and deployer-hosted Studio builds.
11
+ - Added tests covering environment variable injection for both paths.
12
+
13
+ - Fixed `apiPrefix` server option not being applied to the underlying Hono server instance. Routes, welcome page, Swagger UI, and studio HTML handler now all respect the configured `apiPrefix` instead of hardcoding `/api`. ([#14325](https://github.com/mastra-ai/mastra/pull/14325))
14
+
15
+ - Updated dependencies [[`b77aa19`](https://github.com/mastra-ai/mastra/commit/b77aa1981361c021f2c881bee8f0c703687f00da), [`dd6ca1c`](https://github.com/mastra-ai/mastra/commit/dd6ca1cdea3b8b6182f4cf61df41070ba0cc0deb), [`4cb4edf`](https://github.com/mastra-ai/mastra/commit/4cb4edf3c909d197ec356c1790d13270514ffef6)]:
16
+ - @mastra/core@1.13.3-alpha.1
17
+ - @mastra/server@1.13.3-alpha.1
18
+
3
19
  ## 1.13.3-alpha.0
4
20
 
5
21
  ### Patch Changes
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
- var chunkYKTV7TY3_cjs = require('../chunk-YKTV7TY3.cjs');
3
+ var chunk5GQ4KYVA_cjs = require('../chunk-5GQ4KYVA.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "analyzeBundle", {
8
8
  enumerable: true,
9
- get: function () { return chunkYKTV7TY3_cjs.analyzeBundle; }
9
+ get: function () { return chunk5GQ4KYVA_cjs.analyzeBundle; }
10
10
  });
11
11
  //# sourceMappingURL=analyze.cjs.map
12
12
  //# sourceMappingURL=analyze.cjs.map
@@ -1,3 +1,3 @@
1
- export { analyzeBundle } from '../chunk-IY4RBV63.js';
1
+ export { analyzeBundle } from '../chunk-OOGT37UD.js';
2
2
  //# sourceMappingURL=analyze.js.map
3
3
  //# sourceMappingURL=analyze.js.map
@@ -1,16 +1,16 @@
1
1
  'use strict';
2
2
 
3
- var chunk4O7AWOLQ_cjs = require('../chunk-4O7AWOLQ.cjs');
3
+ var chunkLYJKUXY5_cjs = require('../chunk-LYJKUXY5.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "createBundler", {
8
8
  enumerable: true,
9
- get: function () { return chunk4O7AWOLQ_cjs.createBundler; }
9
+ get: function () { return chunkLYJKUXY5_cjs.createBundler; }
10
10
  });
11
11
  Object.defineProperty(exports, "getInputOptions", {
12
12
  enumerable: true,
13
- get: function () { return chunk4O7AWOLQ_cjs.getInputOptions; }
13
+ get: function () { return chunkLYJKUXY5_cjs.getInputOptions; }
14
14
  });
15
15
  //# sourceMappingURL=bundler.cjs.map
16
16
  //# sourceMappingURL=bundler.cjs.map
@@ -1,3 +1,3 @@
1
- export { createBundler, getInputOptions } from '../chunk-GSO2J4MT.js';
1
+ export { createBundler, getInputOptions } from '../chunk-IGXPFW6N.js';
2
2
  //# sourceMappingURL=bundler.js.map
3
3
  //# sourceMappingURL=bundler.js.map
@@ -1,41 +1,41 @@
1
1
  'use strict';
2
2
 
3
- var chunk37PC7CXR_cjs = require('../chunk-37PC7CXR.cjs');
4
- var chunk3Y3N6DCM_cjs = require('../chunk-3Y3N6DCM.cjs');
5
- var chunkYKTV7TY3_cjs = require('../chunk-YKTV7TY3.cjs');
6
- var chunk4O7AWOLQ_cjs = require('../chunk-4O7AWOLQ.cjs');
3
+ var chunkI4JVB6BK_cjs = require('../chunk-I4JVB6BK.cjs');
4
+ var chunkQT5YQ63Q_cjs = require('../chunk-QT5YQ63Q.cjs');
5
+ var chunk5GQ4KYVA_cjs = require('../chunk-5GQ4KYVA.cjs');
6
+ var chunkLYJKUXY5_cjs = require('../chunk-LYJKUXY5.cjs');
7
7
  var chunkJVBCN3RH_cjs = require('../chunk-JVBCN3RH.cjs');
8
- var chunkG7R456H2_cjs = require('../chunk-G7R456H2.cjs');
8
+ var chunkA3JIVJHX_cjs = require('../chunk-A3JIVJHX.cjs');
9
9
 
10
10
 
11
11
 
12
12
  Object.defineProperty(exports, "createWatcher", {
13
13
  enumerable: true,
14
- get: function () { return chunk37PC7CXR_cjs.createWatcher; }
14
+ get: function () { return chunkI4JVB6BK_cjs.createWatcher; }
15
15
  });
16
16
  Object.defineProperty(exports, "getServerOptions", {
17
17
  enumerable: true,
18
- get: function () { return chunk37PC7CXR_cjs.getServerOptions; }
18
+ get: function () { return chunkI4JVB6BK_cjs.getServerOptions; }
19
19
  });
20
20
  Object.defineProperty(exports, "getWatcherInputOptions", {
21
21
  enumerable: true,
22
- get: function () { return chunk37PC7CXR_cjs.getInputOptions; }
22
+ get: function () { return chunkI4JVB6BK_cjs.getInputOptions; }
23
23
  });
24
24
  Object.defineProperty(exports, "getBundlerOptions", {
25
25
  enumerable: true,
26
- get: function () { return chunk3Y3N6DCM_cjs.getBundlerOptions; }
26
+ get: function () { return chunkQT5YQ63Q_cjs.getBundlerOptions; }
27
27
  });
28
28
  Object.defineProperty(exports, "analyzeBundle", {
29
29
  enumerable: true,
30
- get: function () { return chunkYKTV7TY3_cjs.analyzeBundle; }
30
+ get: function () { return chunk5GQ4KYVA_cjs.analyzeBundle; }
31
31
  });
32
32
  Object.defineProperty(exports, "createBundler", {
33
33
  enumerable: true,
34
- get: function () { return chunk4O7AWOLQ_cjs.createBundler; }
34
+ get: function () { return chunkLYJKUXY5_cjs.createBundler; }
35
35
  });
36
36
  Object.defineProperty(exports, "getBundlerInputOptions", {
37
37
  enumerable: true,
38
- get: function () { return chunk4O7AWOLQ_cjs.getInputOptions; }
38
+ get: function () { return chunkLYJKUXY5_cjs.getInputOptions; }
39
39
  });
40
40
  Object.defineProperty(exports, "Deps", {
41
41
  enumerable: true,
@@ -47,15 +47,15 @@ Object.defineProperty(exports, "FileService", {
47
47
  });
48
48
  Object.defineProperty(exports, "detectRuntime", {
49
49
  enumerable: true,
50
- get: function () { return chunkG7R456H2_cjs.detectRuntime; }
50
+ get: function () { return chunkA3JIVJHX_cjs.detectRuntime; }
51
51
  });
52
52
  Object.defineProperty(exports, "injectStudioHtmlConfig", {
53
53
  enumerable: true,
54
- get: function () { return chunkG7R456H2_cjs.injectStudioHtmlConfig; }
54
+ get: function () { return chunkA3JIVJHX_cjs.injectStudioHtmlConfig; }
55
55
  });
56
56
  Object.defineProperty(exports, "normalizeStudioBase", {
57
57
  enumerable: true,
58
- get: function () { return chunkG7R456H2_cjs.normalizeStudioBase; }
58
+ get: function () { return chunkA3JIVJHX_cjs.normalizeStudioBase; }
59
59
  });
60
60
  //# sourceMappingURL=index.cjs.map
61
61
  //# sourceMappingURL=index.cjs.map
@@ -1,8 +1,8 @@
1
- export { createWatcher, getServerOptions, getInputOptions as getWatcherInputOptions } from '../chunk-JNJDIOG2.js';
2
- export { getBundlerOptions } from '../chunk-HXQ27JQX.js';
3
- export { analyzeBundle } from '../chunk-IY4RBV63.js';
4
- export { createBundler, getInputOptions as getBundlerInputOptions } from '../chunk-GSO2J4MT.js';
1
+ export { createWatcher, getServerOptions, getInputOptions as getWatcherInputOptions } from '../chunk-EIHBOFJ2.js';
2
+ export { getBundlerOptions } from '../chunk-WQFD37DQ.js';
3
+ export { analyzeBundle } from '../chunk-OOGT37UD.js';
4
+ export { createBundler, getInputOptions as getBundlerInputOptions } from '../chunk-IGXPFW6N.js';
5
5
  export { Deps, FileService } from '../chunk-DPDWM7HQ.js';
6
- export { detectRuntime, injectStudioHtmlConfig, normalizeStudioBase } from '../chunk-XN3FKMO6.js';
6
+ export { detectRuntime, injectStudioHtmlConfig, normalizeStudioBase } from '../chunk-CVFIGXXI.js';
7
7
  //# sourceMappingURL=index.js.map
8
8
  //# sourceMappingURL=index.js.map
@@ -97,6 +97,7 @@ export interface StudioInjectionConfig {
97
97
  hideCloudCta: string;
98
98
  cloudApiEndpoint: string;
99
99
  experimentalFeatures: string;
100
+ templates: string;
100
101
  telemetryDisabled: string;
101
102
  requestContextPresets: string;
102
103
  autoDetectUrl?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/build/utils.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAE5E,kDAAkD;AAClD,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,KAAK,CAAC;AAE7C;;;;;GAKG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,CAAC;AAE7D;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,eAAe,GAAG,wBAAwB,CAYzF;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,IAAI,eAAe,CAK/C;AAED,wBAAgB,eAAe,CAAC,EAAE,GAAmB,EAAE,EAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,QAOxE;AAED,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,WAMzE;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,EAAE,EAAE,MAAM,sBAQxC;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,UAE5E;AAED;;;;;;;GAOG;AACH,wBAAgB,KAAK,CAAC,IAAI,EAAE,MAAM,UAQjC;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,UAU3D;AAcD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,MAAM,GAAG,SAAS,CAqB/E;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CA2B9D;AAED;;;;;;;;GA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6
6
 
7
7
  Object.defineProperty(exports, "Bundler", {
8
8
  enumerable: true,
9
- get: function () { return chunkPM35TGRT_cjs.Bundler; }
9
+ get: function () { return chunkQTMOHGMX_cjs.Bundler; }
10
10
  });
11
11
  Object.defineProperty(exports, "IS_DEFAULT", {
12
12
  enumerable: true,
13
- get: function () { return chunkPM35TGRT_cjs.IS_DEFAULT; }
13
+ get: function () { return chunkQTMOHGMX_cjs.IS_DEFAULT; }
14
14
  });
15
15
  //# sourceMappingURL=index.cjs.map
16
16
  //# sourceMappingURL=index.cjs.map
@@ -1,3 +1,3 @@
1
- export { Bundler, IS_DEFAULT } from '../chunk-GRC4HK7K.js';
1
+ export { Bundler, IS_DEFAULT } from '../chunk-KFHJXZBM.js';
2
2
  //# sourceMappingURL=index.js.map
3
3
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkV245ALKI_cjs = require('./chunk-V245ALKI.cjs');
4
- var chunkG7R456H2_cjs = require('./chunk-G7R456H2.cjs');
3
+ var chunkNNVFGNAO_cjs = require('./chunk-NNVFGNAO.cjs');
4
+ var chunkA3JIVJHX_cjs = require('./chunk-A3JIVJHX.cjs');
5
5
  var fs = require('fs');
6
6
  var promises = require('fs/promises');
7
7
  var path = require('path');
@@ -158,7 +158,7 @@ async function getWorkspaceInformation({
158
158
  mastraEntryFile
159
159
  }) {
160
160
  const closestPkgJson = pkg__namespace.up({ cwd: path.dirname(mastraEntryFile) });
161
- const location = closestPkgJson ? path.dirname(chunkG7R456H2_cjs.slash(closestPkgJson)) : chunkG7R456H2_cjs.slash(process.cwd());
161
+ const location = closestPkgJson ? path.dirname(chunkA3JIVJHX_cjs.slash(closestPkgJson)) : chunkA3JIVJHX_cjs.slash(process.cwd());
162
162
  const workspaces = await findWorkspaces.findWorkspaces(dir, { cache: workspacesCache });
163
163
  const _workspaceMap = new Map(
164
164
  workspaces?.map((workspace) => [
@@ -291,7 +291,7 @@ var DEPRECATED_EXTERNALS = ["fastembed", "nodemailer", "jsdom", "sqlite3"];
291
291
 
292
292
  // src/build/analyze/analyzeEntry.ts
293
293
  function getInputPlugins({ entry, isVirtualFile }, mastraEntry, { sourcemapEnabled }) {
294
- const normalizedMastraEntry = chunkG7R456H2_cjs.slash(mastraEntry);
294
+ const normalizedMastraEntry = chunkA3JIVJHX_cjs.slash(mastraEntry);
295
295
  let virtualPlugin = null;
296
296
  if (isVirtualFile) {
297
297
  virtualPlugin = virtual__default.default({
@@ -305,12 +305,12 @@ function getInputPlugins({ entry, isVirtualFile }, mastraEntry, { sourcemapEnabl
305
305
  }
306
306
  plugins.push(
307
307
  ...[
308
- chunkV245ALKI_cjs.tsConfigPaths(),
308
+ chunkNNVFGNAO_cjs.tsConfigPaths(),
309
309
  {
310
310
  name: "custom-alias-resolver",
311
311
  resolveId(id) {
312
312
  if (id === "#server") {
313
- return chunkG7R456H2_cjs.slash(url.fileURLToPath(undefined("@mastra/deployer/server")));
313
+ return chunkA3JIVJHX_cjs.slash(url.fileURLToPath(undefined("@mastra/deployer/server")));
314
314
  }
315
315
  if (id === "#mastra") {
316
316
  return normalizedMastraEntry;
@@ -321,17 +321,17 @@ function getInputPlugins({ entry, isVirtualFile }, mastraEntry, { sourcemapEnabl
321
321
  }
322
322
  },
323
323
  json__default.default(),
324
- chunkV245ALKI_cjs.esbuild(),
324
+ chunkNNVFGNAO_cjs.esbuild(),
325
325
  commonjs__default.default({
326
326
  strictRequires: "debug",
327
327
  ignoreTryCatch: false,
328
328
  transformMixedEsModules: true,
329
329
  extensions: [".js", ".ts"]
330
330
  }),
331
- chunkV245ALKI_cjs.removeDeployer(mastraEntry, {
331
+ chunkNNVFGNAO_cjs.removeDeployer(mastraEntry, {
332
332
  sourcemap: sourcemapEnabled
333
333
  }),
334
- chunkV245ALKI_cjs.esbuild()
334
+ chunkNNVFGNAO_cjs.esbuild()
335
335
  ]
336
336
  );
337
337
  return plugins;
@@ -348,18 +348,18 @@ async function captureDependenciesToOptimize(output, workspaceMap, projectRoot,
348
348
  }
349
349
  let entryRootPath = projectRoot;
350
350
  if (!output.facadeModuleId.startsWith("\0virtual:")) {
351
- entryRootPath = await chunkV245ALKI_cjs.getPackageRootPath(output.facadeModuleId) || projectRoot;
351
+ entryRootPath = await chunkNNVFGNAO_cjs.getPackageRootPath(output.facadeModuleId) || projectRoot;
352
352
  }
353
353
  for (const [dependency, bindings] of Object.entries(output.importedBindings)) {
354
354
  if (isNodeBuiltin(dependency) || dependency.startsWith("#")) {
355
355
  continue;
356
356
  }
357
- const pkgName = chunkG7R456H2_cjs.getPackageName(dependency);
357
+ const pkgName = chunkA3JIVJHX_cjs.getPackageName(dependency);
358
358
  let rootPath = null;
359
359
  let isWorkspace = false;
360
360
  let version;
361
361
  if (pkgName) {
362
- rootPath = await chunkV245ALKI_cjs.getPackageRootPath(dependency, entryRootPath);
362
+ rootPath = await chunkNNVFGNAO_cjs.getPackageRootPath(dependency, entryRootPath);
363
363
  isWorkspace = workspaceMap.has(pkgName);
364
364
  if (rootPath) {
365
365
  try {
@@ -369,7 +369,7 @@ async function captureDependenciesToOptimize(output, workspaceMap, projectRoot,
369
369
  }
370
370
  }
371
371
  }
372
- const normalizedRootPath = rootPath ? chunkG7R456H2_cjs.slash(rootPath) : null;
372
+ const normalizedRootPath = rootPath ? chunkA3JIVJHX_cjs.slash(rootPath) : null;
373
373
  depsToOptimize.set(dependency, {
374
374
  exports: bindings,
375
375
  rootPath: normalizedRootPath,
@@ -429,11 +429,11 @@ async function captureDependenciesToOptimize(output, workspaceMap, projectRoot,
429
429
  if (dynamicImports.length) {
430
430
  for (const dynamicImport of dynamicImports) {
431
431
  if (!depsToOptimize.has(dynamicImport) && !isNodeBuiltin(dynamicImport)) {
432
- const pkgName = chunkG7R456H2_cjs.getPackageName(dynamicImport);
432
+ const pkgName = chunkA3JIVJHX_cjs.getPackageName(dynamicImport);
433
433
  let version;
434
434
  let rootPath = null;
435
435
  if (pkgName) {
436
- rootPath = await chunkV245ALKI_cjs.getPackageRootPath(dynamicImport, entryRootPath);
436
+ rootPath = await chunkNNVFGNAO_cjs.getPackageRootPath(dynamicImport, entryRootPath);
437
437
  if (rootPath) {
438
438
  try {
439
439
  const pkgJson = await esm.readJSON(`${rootPath}/package.json`);
@@ -444,7 +444,7 @@ async function captureDependenciesToOptimize(output, workspaceMap, projectRoot,
444
444
  }
445
445
  depsToOptimize.set(dynamicImport, {
446
446
  exports: ["*"],
447
- rootPath: rootPath ? chunkG7R456H2_cjs.slash(rootPath) : null,
447
+ rootPath: rootPath ? chunkA3JIVJHX_cjs.slash(rootPath) : null,
448
448
  isWorkspace: false,
449
449
  version
450
450
  });
@@ -518,7 +518,7 @@ function moduleResolveMap(externals, projectRoot) {
518
518
  }
519
519
  for (const importedId of info.importedIds) {
520
520
  for (const external of externals) {
521
- if (chunkG7R456H2_cjs.isDependencyPartOfPackage(importedId, external)) {
521
+ if (chunkA3JIVJHX_cjs.isDependencyPartOfPackage(importedId, external)) {
522
522
  importMap.set(external, info.id);
523
523
  }
524
524
  }
@@ -530,9 +530,9 @@ function moduleResolveMap(externals, projectRoot) {
530
530
  if (chunk.type === "chunk") {
531
531
  for (const [external, resolvedFrom] of importMap) {
532
532
  if (chunk.moduleIds.includes(resolvedFrom)) {
533
- const fullPath = url.pathToFileURL(chunkG7R456H2_cjs.slash(path.join(projectRoot, fileName))).toString();
533
+ const fullPath = url.pathToFileURL(chunkA3JIVJHX_cjs.slash(path.join(projectRoot, fileName))).toString();
534
534
  const innerMap = resolveMap.get(fullPath) || /* @__PURE__ */ new Map();
535
- innerMap.set(external, url.pathToFileURL(chunkG7R456H2_cjs.slash(resolvedFrom)).toString());
535
+ innerMap.set(external, url.pathToFileURL(chunkA3JIVJHX_cjs.slash(resolvedFrom)).toString());
536
536
  resolveMap.set(fullPath, innerMap);
537
537
  }
538
538
  }
@@ -598,7 +598,7 @@ function nodeGypDetector() {
598
598
 
599
599
  // src/build/analyze/bundleExternals.ts
600
600
  function prepareEntryFileName(name, rootDir) {
601
- return chunkG7R456H2_cjs.rollupSafeName(name, rootDir);
601
+ return chunkA3JIVJHX_cjs.rollupSafeName(name, rootDir);
602
602
  }
603
603
  function createVirtualDependencies(depsToOptimize, {
604
604
  projectRoot,
@@ -648,7 +648,7 @@ function createVirtualDependencies(depsToOptimize, {
648
648
  continue;
649
649
  }
650
650
  const fileName = posix.basename(currentDepPath.name);
651
- const entryName = prepareEntryFileName(chunkG7R456H2_cjs.getCompiledDepCachePath(rootPath, fileName), rootDir);
651
+ const entryName = prepareEntryFileName(chunkA3JIVJHX_cjs.getCompiledDepCachePath(rootPath, fileName), rootDir);
652
652
  fileNameToDependencyMap.set(entryName, dep);
653
653
  optimizedDependencyEntries.set(dep, {
654
654
  ...currentDepPath,
@@ -668,9 +668,9 @@ async function getInputPlugins2(virtualDependencies, {
668
668
  }) {
669
669
  const transpilePackagesMap = /* @__PURE__ */ new Map();
670
670
  for (const pkg2 of transpilePackages) {
671
- const dir = await chunkV245ALKI_cjs.getPackageRootPath(pkg2);
671
+ const dir = await chunkNNVFGNAO_cjs.getPackageRootPath(pkg2);
672
672
  if (dir) {
673
- transpilePackagesMap.set(pkg2, chunkG7R456H2_cjs.slash(dir));
673
+ transpilePackagesMap.set(pkg2, chunkA3JIVJHX_cjs.slash(dir));
674
674
  } else {
675
675
  transpilePackagesMap.set(pkg2, workspaceMap.get(pkg2)?.location ?? pkg2);
676
676
  }
@@ -685,9 +685,9 @@ async function getInputPlugins2(virtualDependencies, {
685
685
  {}
686
686
  )
687
687
  ),
688
- chunkV245ALKI_cjs.tsConfigPaths(),
689
- chunkV245ALKI_cjs.subpathExternalsResolver(externals),
690
- transpilePackagesMap.size ? chunkV245ALKI_cjs.esbuild({
688
+ chunkNNVFGNAO_cjs.tsConfigPaths(),
689
+ chunkNNVFGNAO_cjs.subpathExternalsResolver(externals),
690
+ transpilePackagesMap.size ? chunkNNVFGNAO_cjs.esbuild({
691
691
  format: "esm",
692
692
  include: [
693
693
  // Match files from transpilePackages by their actual directory paths
@@ -742,8 +742,8 @@ async function getInputPlugins2(virtualDependencies, {
742
742
  transformMixedEsModules: true,
743
743
  ignoreTryCatch: false
744
744
  }),
745
- bundlerOptions.noBundling ? null : nodeResolve__default.default(chunkG7R456H2_cjs.getNodeResolveOptions(platform)),
746
- bundlerOptions.noBundling ? chunkV245ALKI_cjs.esmShim() : null,
745
+ bundlerOptions.noBundling ? null : nodeResolve__default.default(chunkA3JIVJHX_cjs.getNodeResolveOptions(platform)),
746
+ bundlerOptions.noBundling ? chunkNNVFGNAO_cjs.esmShim() : null,
747
747
  // hono is imported from deployer, so we need to resolve from here instead of the project root
748
748
  aliasHono(),
749
749
  json__default.default(),
@@ -836,9 +836,9 @@ async function buildExternalDependencies(virtualDependencies, {
836
836
  if (noBundling) {
837
837
  const importedFromPackages = /* @__PURE__ */ new Set();
838
838
  for (const moduleId of chunkInfo.moduleIds) {
839
- const normalized = chunkG7R456H2_cjs.slash(moduleId);
839
+ const normalized = chunkA3JIVJHX_cjs.slash(moduleId);
840
840
  for (const [pkgName, pkgInfo] of workspaceMap.entries()) {
841
- const location = chunkG7R456H2_cjs.slash(pkgInfo.location);
841
+ const location = chunkA3JIVJHX_cjs.slash(pkgInfo.location);
842
842
  if (normalized.startsWith(location)) {
843
843
  importedFromPackages.add(pkgName);
844
844
  break;
@@ -860,7 +860,7 @@ async function buildExternalDependencies(virtualDependencies, {
860
860
  if (importedFromPackages.size === 1) {
861
861
  const [pkgName] = importedFromPackages;
862
862
  const workspaceLocation = workspaceMap.get(pkgName).location;
863
- return prepareEntryFileName(chunkG7R456H2_cjs.getCompiledDepCachePath(workspaceLocation, "[name].mjs"), rootDir);
863
+ return prepareEntryFileName(chunkA3JIVJHX_cjs.getCompiledDepCachePath(workspaceLocation, "[name].mjs"), rootDir);
864
864
  }
865
865
  }
866
866
  return `${outputDirRelative}/[name].mjs`;
@@ -874,7 +874,7 @@ async function buildExternalDependencies(virtualDependencies, {
874
874
  function findExternalImporter(module, external, allOutputs) {
875
875
  const capturedFiles = /* @__PURE__ */ new Set();
876
876
  for (const id of module.imports) {
877
- if (chunkG7R456H2_cjs.isDependencyPartOfPackage(id, external)) {
877
+ if (chunkA3JIVJHX_cjs.isDependencyPartOfPackage(id, external)) {
878
878
  return module;
879
879
  } else {
880
880
  if (id.endsWith(".mjs")) {
@@ -1275,7 +1275,7 @@ async function validateOutput({
1275
1275
  };
1276
1276
  for (const deps of Object.values(usedExternals)) {
1277
1277
  for (const dep of Object.keys(deps)) {
1278
- const pkgName = chunkG7R456H2_cjs.getPackageName(dep);
1278
+ const pkgName = chunkA3JIVJHX_cjs.getPackageName(dep);
1279
1279
  if (pkgName) {
1280
1280
  const versionInfo = depsVersionInfo.get(dep) || depsVersionInfo.get(pkgName) || {};
1281
1281
  result.externalDependencies.set(pkgName, versionInfo);
@@ -1359,9 +1359,9 @@ If you think your configuration is valid, please open an issue.`);
1359
1359
  });
1360
1360
  await promises.writeFile(path.join(outputDir, `entry-${index++}.mjs`), analyzeResult.output.code);
1361
1361
  for (const [dep, metadata] of analyzeResult.dependencies.entries()) {
1362
- const isPartOfExternals = allExternals.some((external) => chunkG7R456H2_cjs.isDependencyPartOfPackage(dep, external));
1362
+ const isPartOfExternals = allExternals.some((external) => chunkA3JIVJHX_cjs.isDependencyPartOfPackage(dep, external));
1363
1363
  if (isPartOfExternals || externalsPreset && !metadata.isWorkspace) {
1364
- const pkgName = chunkG7R456H2_cjs.getPackageName(dep);
1364
+ const pkgName = chunkA3JIVJHX_cjs.getPackageName(dep);
1365
1365
  if (pkgName && !allUsedExternals.has(pkgName)) {
1366
1366
  allUsedExternals.set(pkgName, {
1367
1367
  version: metadata.version
@@ -1402,11 +1402,11 @@ If you think your configuration is valid, please open an issue.`);
1402
1402
  platform
1403
1403
  });
1404
1404
  const relativeWorkspaceFolderPaths = Array.from(workspaceMap.values()).map(
1405
- (pkgInfo) => chunkG7R456H2_cjs.slash(path.relative(workspaceRoot || projectRoot, pkgInfo.location))
1405
+ (pkgInfo) => chunkA3JIVJHX_cjs.slash(path.relative(workspaceRoot || projectRoot, pkgInfo.location))
1406
1406
  );
1407
1407
  const depsVersionInfo = /* @__PURE__ */ new Map();
1408
1408
  for (const [dep, metadata] of depsToOptimize.entries()) {
1409
- const pkgName = chunkG7R456H2_cjs.getPackageName(dep);
1409
+ const pkgName = chunkA3JIVJHX_cjs.getPackageName(dep);
1410
1410
  if (pkgName && metadata.version) {
1411
1411
  depsVersionInfo.set(pkgName, {
1412
1412
  version: metadata.version
@@ -1423,7 +1423,7 @@ If you think your configuration is valid, please open an issue.`);
1423
1423
  continue;
1424
1424
  }
1425
1425
  for (const i of o.imports) {
1426
- if (chunkG7R456H2_cjs.isBuiltinModule(i)) {
1426
+ if (chunkA3JIVJHX_cjs.isBuiltinModule(i)) {
1427
1427
  continue;
1428
1428
  }
1429
1429
  if (i.startsWith(".") || i.startsWith("/")) {
@@ -1432,7 +1432,7 @@ If you think your configuration is valid, please open an issue.`);
1432
1432
  if (relativeWorkspaceFolderPaths.some((workspacePath) => i.startsWith(workspacePath))) {
1433
1433
  continue;
1434
1434
  }
1435
- const pkgName = chunkG7R456H2_cjs.getPackageName(i);
1435
+ const pkgName = chunkA3JIVJHX_cjs.getPackageName(i);
1436
1436
  if (pkgName && !allUsedExternals.has(pkgName)) {
1437
1437
  const versionInfo = depsVersionInfo.get(i) || depsVersionInfo.get(pkgName) || {};
1438
1438
  allUsedExternals.set(pkgName, versionInfo);
@@ -1477,5 +1477,5 @@ If you think your configuration is valid, please open an issue.`);
1477
1477
  exports.aliasHono = aliasHono;
1478
1478
  exports.analyzeBundle = analyzeBundle;
1479
1479
  exports.getWorkspaceInformation = getWorkspaceInformation;
1480
- //# sourceMappingURL=chunk-YKTV7TY3.cjs.map
1481
- //# sourceMappingURL=chunk-YKTV7TY3.cjs.map
1480
+ //# sourceMappingURL=chunk-5GQ4KYVA.cjs.map
1481
+ //# sourceMappingURL=chunk-5GQ4KYVA.cjs.map