@superblocksteam/cli 2.0.107-next.0 → 2.0.107-next.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 (105) hide show
  1. package/README.md +1 -1
  2. package/dist/{acorn-XA5AKMSQ.js → acorn-MEX5RFZT.js} +3 -3
  3. package/dist/{angular-HX23WBAZ.js → angular-D3S52ZE2.js} +3 -3
  4. package/dist/{api-IH6VSHGX.js → api-QBWRH33C.js} +4 -4
  5. package/dist/{babel-GZ65I7XB.js → babel-SFYZML4M.js} +3 -3
  6. package/dist/{chunk-J6GQY7WR.js → chunk-4JP4Q3R6.js} +4 -4
  7. package/dist/{chunk-SFVPMUBK.js → chunk-A4ZHYPQ6.js} +3 -3
  8. package/dist/{chunk-5NHL7ZCW.js → chunk-E7IU53H4.js} +3 -3
  9. package/dist/{chunk-AN7R4TXN.js → chunk-FCN7IDG4.js} +3 -3
  10. package/dist/{chunk-7PL5C6YJ.js → chunk-FHLMIXOO.js} +6 -6
  11. package/dist/{chunk-MNIIOOBX.js → chunk-LCBQJJ6F.js} +139 -64
  12. package/dist/{chunk-MNIIOOBX.js.map → chunk-LCBQJJ6F.js.map} +1 -1
  13. package/dist/{chunk-TXWWLMBL.js → chunk-MITH3IVL.js} +4 -4
  14. package/dist/{chunk-J5AFC67Y.js → chunk-MJ7HVHUR.js} +3 -3
  15. package/dist/{chunk-ITWUNI6K.js → chunk-MYKLVW3H.js} +3 -3
  16. package/dist/{chunk-KWYC46FF.js → chunk-OVABXDMI.js} +3 -3
  17. package/dist/{chunk-S27YE5QH.js → chunk-PUN77SGG.js} +3 -3
  18. package/dist/{chunk-XYMEOA57.js → chunk-QKUUHC4M.js} +6 -6
  19. package/dist/{chunk-KOGWZTNJ.js → chunk-S76Z4AKG.js} +2 -2
  20. package/dist/{chunk-UPLXLNX7.js → chunk-SZXPAZLT.js} +3 -3
  21. package/dist/{chunk-URNJBPDH.js → chunk-TAKNIQOZ.js} +4 -4
  22. package/dist/{chunk-Q4B3B5BV.js → chunk-UNWWLO56.js} +4 -4
  23. package/dist/{chunk-RAN624D5.js → chunk-X75ME3UV.js} +3 -3
  24. package/dist/{cli-truncate-NHDYTOOX.js → cli-truncate-LDGEEDHB.js} +5 -5
  25. package/dist/commands/dev-parent.js +2 -2
  26. package/dist/{dd-trace-2S6SRCYY.js → dd-trace-BW7YSZGP.js} +7 -7
  27. package/dist/{dist-OZBGJYPU.js → dist-MVNBFVAB.js} +13 -13
  28. package/dist/{embedded-playwright-mcp-server-VPV2L5YZ.js → embedded-playwright-mcp-server-W2AUWU72.js} +3 -3
  29. package/dist/{enquirer-SMJEBQIB.js → enquirer-7NFTVITU.js} +4 -4
  30. package/dist/{estree-E6WHHGA2.js → estree-MZ74RJPW.js} +3 -3
  31. package/dist/{flow-YOQFO6J4.js → flow-TCSSXUS7.js} +3 -3
  32. package/dist/{getMachineId-bsd-IRODJDSK.js → getMachineId-bsd-6NQILVZ5.js} +5 -5
  33. package/dist/{getMachineId-darwin-VWR734GB.js → getMachineId-darwin-FDFV57BC.js} +5 -5
  34. package/dist/{getMachineId-linux-Z7SBRY2Y.js → getMachineId-linux-WU5QE3OP.js} +4 -4
  35. package/dist/{getMachineId-unsupported-FVMRPQ6O.js → getMachineId-unsupported-XBYUUBVF.js} +4 -4
  36. package/dist/{getMachineId-win-K4UWAIM7.js → getMachineId-win-IA7ZPEZX.js} +5 -5
  37. package/dist/{glimmer-H3L3FCS4.js → glimmer-W37AZRQA.js} +3 -3
  38. package/dist/{graphql-TKOAMA7Q.js → graphql-565I5TP4.js} +3 -3
  39. package/dist/{html-2RISMVNR.js → html-P3XBYPJP.js} +3 -3
  40. package/dist/{http-OJY4UREU.js → http-UQLBK63O.js} +12 -12
  41. package/dist/index.js +18 -18
  42. package/dist/{jiti-MUKKIJJW.js → jiti-PY7AG5RU.js} +3 -3
  43. package/dist/{log-update-KQW2RAWL.js → log-update-A7CNAJW3.js} +6 -6
  44. package/dist/{markdown-5DIY7WZK.js → markdown-7QY7NHKZ.js} +3 -3
  45. package/dist/{meriyah-3KLK7FMR.js → meriyah-MFSR7WT7.js} +3 -3
  46. package/dist/{postcss-QLAENHXY.js → postcss-7A5DIHHF.js} +3 -3
  47. package/dist/{read-pkg-S3SLVPAM.js → read-pkg-6XSODIFQ.js} +5 -5
  48. package/dist/{spans-FI6ZSKKQ.js → spans-A2T4F6Y7.js} +4 -4
  49. package/dist/{src-5ZZXYNM6.js → src-DGNNL3J7.js} +3 -3
  50. package/dist/{token-TXHPGX4C.js → token-IJDJPSLK.js} +5 -5
  51. package/dist/{token-util-LZ3RQV2H.js → token-util-RAEHXFKF.js} +5 -5
  52. package/dist/{typescript-ZNVJQCTR.js → typescript-VVR5MDVH.js} +3 -3
  53. package/dist/{wrap-ansi-EETPCF5X.js → wrap-ansi-T5U5KRGL.js} +5 -5
  54. package/dist/{yaml-PK266RFS.js → yaml-F44FRQRK.js} +3 -3
  55. package/oclif.manifest.json +1 -1
  56. package/package.json +5 -5
  57. /package/dist/{acorn-XA5AKMSQ.js.map → acorn-MEX5RFZT.js.map} +0 -0
  58. /package/dist/{angular-HX23WBAZ.js.map → angular-D3S52ZE2.js.map} +0 -0
  59. /package/dist/{api-IH6VSHGX.js.map → api-QBWRH33C.js.map} +0 -0
  60. /package/dist/{babel-GZ65I7XB.js.map → babel-SFYZML4M.js.map} +0 -0
  61. /package/dist/{chunk-J6GQY7WR.js.map → chunk-4JP4Q3R6.js.map} +0 -0
  62. /package/dist/{chunk-SFVPMUBK.js.map → chunk-A4ZHYPQ6.js.map} +0 -0
  63. /package/dist/{chunk-5NHL7ZCW.js.map → chunk-E7IU53H4.js.map} +0 -0
  64. /package/dist/{chunk-AN7R4TXN.js.map → chunk-FCN7IDG4.js.map} +0 -0
  65. /package/dist/{chunk-7PL5C6YJ.js.map → chunk-FHLMIXOO.js.map} +0 -0
  66. /package/dist/{chunk-TXWWLMBL.js.map → chunk-MITH3IVL.js.map} +0 -0
  67. /package/dist/{chunk-J5AFC67Y.js.map → chunk-MJ7HVHUR.js.map} +0 -0
  68. /package/dist/{chunk-ITWUNI6K.js.map → chunk-MYKLVW3H.js.map} +0 -0
  69. /package/dist/{chunk-KWYC46FF.js.map → chunk-OVABXDMI.js.map} +0 -0
  70. /package/dist/{chunk-S27YE5QH.js.map → chunk-PUN77SGG.js.map} +0 -0
  71. /package/dist/{chunk-XYMEOA57.js.map → chunk-QKUUHC4M.js.map} +0 -0
  72. /package/dist/{chunk-KOGWZTNJ.js.map → chunk-S76Z4AKG.js.map} +0 -0
  73. /package/dist/{chunk-UPLXLNX7.js.map → chunk-SZXPAZLT.js.map} +0 -0
  74. /package/dist/{chunk-URNJBPDH.js.map → chunk-TAKNIQOZ.js.map} +0 -0
  75. /package/dist/{chunk-Q4B3B5BV.js.map → chunk-UNWWLO56.js.map} +0 -0
  76. /package/dist/{chunk-RAN624D5.js.map → chunk-X75ME3UV.js.map} +0 -0
  77. /package/dist/{cli-truncate-NHDYTOOX.js.map → cli-truncate-LDGEEDHB.js.map} +0 -0
  78. /package/dist/{dd-trace-2S6SRCYY.js.map → dd-trace-BW7YSZGP.js.map} +0 -0
  79. /package/dist/{dist-OZBGJYPU.js.map → dist-MVNBFVAB.js.map} +0 -0
  80. /package/dist/{embedded-playwright-mcp-server-VPV2L5YZ.js.map → embedded-playwright-mcp-server-W2AUWU72.js.map} +0 -0
  81. /package/dist/{enquirer-SMJEBQIB.js.map → enquirer-7NFTVITU.js.map} +0 -0
  82. /package/dist/{estree-E6WHHGA2.js.map → estree-MZ74RJPW.js.map} +0 -0
  83. /package/dist/{flow-YOQFO6J4.js.map → flow-TCSSXUS7.js.map} +0 -0
  84. /package/dist/{getMachineId-bsd-IRODJDSK.js.map → getMachineId-bsd-6NQILVZ5.js.map} +0 -0
  85. /package/dist/{getMachineId-darwin-VWR734GB.js.map → getMachineId-darwin-FDFV57BC.js.map} +0 -0
  86. /package/dist/{getMachineId-linux-Z7SBRY2Y.js.map → getMachineId-linux-WU5QE3OP.js.map} +0 -0
  87. /package/dist/{getMachineId-unsupported-FVMRPQ6O.js.map → getMachineId-unsupported-XBYUUBVF.js.map} +0 -0
  88. /package/dist/{getMachineId-win-K4UWAIM7.js.map → getMachineId-win-IA7ZPEZX.js.map} +0 -0
  89. /package/dist/{glimmer-H3L3FCS4.js.map → glimmer-W37AZRQA.js.map} +0 -0
  90. /package/dist/{graphql-TKOAMA7Q.js.map → graphql-565I5TP4.js.map} +0 -0
  91. /package/dist/{html-2RISMVNR.js.map → html-P3XBYPJP.js.map} +0 -0
  92. /package/dist/{http-OJY4UREU.js.map → http-UQLBK63O.js.map} +0 -0
  93. /package/dist/{jiti-MUKKIJJW.js.map → jiti-PY7AG5RU.js.map} +0 -0
  94. /package/dist/{log-update-KQW2RAWL.js.map → log-update-A7CNAJW3.js.map} +0 -0
  95. /package/dist/{markdown-5DIY7WZK.js.map → markdown-7QY7NHKZ.js.map} +0 -0
  96. /package/dist/{meriyah-3KLK7FMR.js.map → meriyah-MFSR7WT7.js.map} +0 -0
  97. /package/dist/{postcss-QLAENHXY.js.map → postcss-7A5DIHHF.js.map} +0 -0
  98. /package/dist/{read-pkg-S3SLVPAM.js.map → read-pkg-6XSODIFQ.js.map} +0 -0
  99. /package/dist/{spans-FI6ZSKKQ.js.map → spans-A2T4F6Y7.js.map} +0 -0
  100. /package/dist/{src-5ZZXYNM6.js.map → src-DGNNL3J7.js.map} +0 -0
  101. /package/dist/{token-TXHPGX4C.js.map → token-IJDJPSLK.js.map} +0 -0
  102. /package/dist/{token-util-LZ3RQV2H.js.map → token-util-RAEHXFKF.js.map} +0 -0
  103. /package/dist/{typescript-ZNVJQCTR.js.map → typescript-VVR5MDVH.js.map} +0 -0
  104. /package/dist/{wrap-ansi-EETPCF5X.js.map → wrap-ansi-T5U5KRGL.js.map} +0 -0
  105. /package/dist/{yaml-PK266RFS.js.map → yaml-F44FRQRK.js.map} +0 -0
@@ -1,7 +1,7 @@
1
1
  if (typeof process === 'object' && process !== null &&
2
2
  process.env !== null && typeof process.env === 'object') {
3
3
  process.env.DD_GIT_REPOSITORY_URL = 'https://token@github.com/superblocksteam/superblocks.git';
4
- process.env.DD_GIT_COMMIT_SHA = '723ec8f553fff87326ca030d66efa69d4fd6f17f';
4
+ process.env.DD_GIT_COMMIT_SHA = '804c4527d2afa816f41c9cc72925cecb683c4a2d';
5
5
  }
6
6
  import { createRequire as $dd_createRequire } from 'module';
7
7
  import { fileURLToPath as $dd_fileURLToPath } from 'url';
@@ -24,7 +24,7 @@ import {
24
24
  require_re,
25
25
  require_semver,
26
26
  require_valid
27
- } from "./chunk-ITWUNI6K.js";
27
+ } from "./chunk-MYKLVW3H.js";
28
28
  import {
29
29
  debounce_default,
30
30
  get_default,
@@ -41,7 +41,7 @@ import {
41
41
  require_lib,
42
42
  require_slugify,
43
43
  throttle_default
44
- } from "./chunk-RAN624D5.js";
44
+ } from "./chunk-X75ME3UV.js";
45
45
  import {
46
46
  require_dd_trace,
47
47
  require_import_in_the_middle,
@@ -50,16 +50,16 @@ import {
50
50
  require_p_limit,
51
51
  require_path_to_regexp,
52
52
  require_src
53
- } from "./chunk-7PL5C6YJ.js";
53
+ } from "./chunk-FHLMIXOO.js";
54
54
  import {
55
55
  require_commonjs
56
- } from "./chunk-5NHL7ZCW.js";
56
+ } from "./chunk-E7IU53H4.js";
57
57
  import {
58
58
  require_dc_polyfill
59
- } from "./chunk-AN7R4TXN.js";
59
+ } from "./chunk-FCN7IDG4.js";
60
60
  import {
61
61
  require_token_error
62
- } from "./chunk-UPLXLNX7.js";
62
+ } from "./chunk-SZXPAZLT.js";
63
63
  import {
64
64
  SpanKind,
65
65
  SpanStatusCode,
@@ -68,7 +68,7 @@ import {
68
68
  init_esm,
69
69
  metrics,
70
70
  trace
71
- } from "./chunk-KWYC46FF.js";
71
+ } from "./chunk-OVABXDMI.js";
72
72
  import {
73
73
  __commonJS,
74
74
  __esm,
@@ -77,7 +77,7 @@ import {
77
77
  __toCommonJS,
78
78
  __toESM,
79
79
  init_cjs_shims
80
- } from "./chunk-KOGWZTNJ.js";
80
+ } from "./chunk-S76Z4AKG.js";
81
81
 
82
82
  // ../../../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/constants.js
83
83
  var require_constants3 = __commonJS({
@@ -96566,15 +96566,15 @@ var require_api_files = __commonJS({
96566
96566
  exports2.readAppApiYamlFile = readAppApiYamlFile4;
96567
96567
  exports2.resolveLanguageSpecificStepContentFromBlocks = resolveLanguageSpecificStepContentFromBlocks2;
96568
96568
  async function writeApiFiles3(...args) {
96569
- const esmFunction = await import("./api-IH6VSHGX.js");
96569
+ const esmFunction = await import("./api-QBWRH33C.js");
96570
96570
  return esmFunction.writeApiFiles(...args);
96571
96571
  }
96572
96572
  async function readAppApiYamlFile4(...args) {
96573
- const esmFunction = await import("./api-IH6VSHGX.js");
96573
+ const esmFunction = await import("./api-QBWRH33C.js");
96574
96574
  return esmFunction.readAppApiYamlFile(...args);
96575
96575
  }
96576
96576
  async function resolveLanguageSpecificStepContentFromBlocks2(...args) {
96577
- const esmFunction = await import("./api-IH6VSHGX.js");
96577
+ const esmFunction = await import("./api-QBWRH33C.js");
96578
96578
  return esmFunction.resolveLanguageSpecificStepContentFromBlocks(...args);
96579
96579
  }
96580
96580
  }
@@ -109366,19 +109366,19 @@ var require_getMachineId = __commonJS({
109366
109366
  if (!getMachineIdImpl) {
109367
109367
  switch (process5.platform) {
109368
109368
  case "darwin":
109369
- getMachineIdImpl = (await import("./getMachineId-darwin-VWR734GB.js")).getMachineId;
109369
+ getMachineIdImpl = (await import("./getMachineId-darwin-FDFV57BC.js")).getMachineId;
109370
109370
  break;
109371
109371
  case "linux":
109372
- getMachineIdImpl = (await import("./getMachineId-linux-Z7SBRY2Y.js")).getMachineId;
109372
+ getMachineIdImpl = (await import("./getMachineId-linux-WU5QE3OP.js")).getMachineId;
109373
109373
  break;
109374
109374
  case "freebsd":
109375
- getMachineIdImpl = (await import("./getMachineId-bsd-IRODJDSK.js")).getMachineId;
109375
+ getMachineIdImpl = (await import("./getMachineId-bsd-6NQILVZ5.js")).getMachineId;
109376
109376
  break;
109377
109377
  case "win32":
109378
- getMachineIdImpl = (await import("./getMachineId-win-K4UWAIM7.js")).getMachineId;
109378
+ getMachineIdImpl = (await import("./getMachineId-win-IA7ZPEZX.js")).getMachineId;
109379
109379
  break;
109380
109380
  default:
109381
- getMachineIdImpl = (await import("./getMachineId-unsupported-FVMRPQ6O.js")).getMachineId;
109381
+ getMachineIdImpl = (await import("./getMachineId-unsupported-XBYUUBVF.js")).getMachineId;
109382
109382
  break;
109383
109383
  }
109384
109384
  }
@@ -185241,8 +185241,8 @@ var require_get_vercel_oidc_token = __commonJS({
185241
185241
  }
185242
185242
  try {
185243
185243
  const [{ getTokenPayload, isExpired }, { refreshToken }] = await Promise.all([
185244
- await import("./token-util-LZ3RQV2H.js"),
185245
- await import("./token-TXHPGX4C.js")
185244
+ await import("./token-util-RAEHXFKF.js"),
185245
+ await import("./token-IJDJPSLK.js")
185246
185246
  ]);
185247
185247
  if (!token2 || isExpired(getTokenPayload(token2))) {
185248
185248
  await refreshToken();
@@ -367442,7 +367442,7 @@ var require_config_loader = __commonJS({
367442
367442
  * @returns {Promise<{createJiti: Function|undefined, version: string;}>} A promise that fulfills with an object containing the jiti module's createJiti function and version.
367443
367443
  */
367444
367444
  static async loadJiti() {
367445
- const { createJiti } = await import("./jiti-MUKKIJJW.js");
367445
+ const { createJiti } = await import("./jiti-PY7AG5RU.js");
367446
367446
  const version5 = require_package6().version;
367447
367447
  return { createJiti, version: version5 };
367448
367448
  }
@@ -367771,7 +367771,7 @@ var require_eslint_helpers = __commonJS({
367771
367771
  }
367772
367772
  async function globMatch({ basePath, pattern }) {
367773
367773
  let found = false;
367774
- const { hfs } = await import("./src-5ZZXYNM6.js");
367774
+ const { hfs } = await import("./src-DGNNL3J7.js");
367775
367775
  const patternToUse = normalizeToPosix(path77.relative(basePath, pattern));
367776
367776
  const matcher = new Minimatch2(patternToUse, MINIMATCH_OPTIONS);
367777
367777
  const walkSettings = {
@@ -367811,7 +367811,7 @@ var require_eslint_helpers = __commonJS({
367811
367811
  return new Minimatch2(patternToUse, MINIMATCH_OPTIONS);
367812
367812
  });
367813
367813
  const unmatchedPatterns = /* @__PURE__ */ new Set([...relativeToPatterns.keys()]);
367814
- const { hfs } = await import("./src-5ZZXYNM6.js");
367814
+ const { hfs } = await import("./src-DGNNL3J7.js");
367815
367815
  const walk2 = hfs.walk(basePath, {
367816
367816
  async directoryFilter(entry) {
367817
367817
  if (!matchers.some((matcher) => matcher.match(entry.path, true))) {
@@ -520466,7 +520466,7 @@ init_cjs_shims();
520466
520466
  // ../sdk/package.json
520467
520467
  var package_default = {
520468
520468
  name: "@superblocksteam/sdk",
520469
- version: "2.0.107-next.0",
520469
+ version: "2.0.107-next.1",
520470
520470
  description: "Superblocks JS SDK",
520471
520471
  homepage: "https://www.superblocks.com",
520472
520472
  license: "Superblocks Community Software License",
@@ -520820,7 +520820,7 @@ var config = void 0;
520820
520820
  var configured = false;
520821
520821
  var ddTracePromise = void 0;
520822
520822
  async function getDdTrace() {
520823
- ddTracePromise ??= import("./dd-trace-2S6SRCYY.js").then((module2) => module2.default);
520823
+ ddTracePromise ??= import("./dd-trace-BW7YSZGP.js").then((module2) => module2.default);
520824
520824
  return await ddTracePromise;
520825
520825
  }
520826
520826
  var deploymentType = (() => {
@@ -528990,6 +528990,63 @@ var EXCLUDED_MESSAGE_TYPES = [
528990
528990
  "commitRestoring",
528991
528991
  "git_setup_required"
528992
528992
  ];
528993
+ var DEFAULT_ATTACHMENT_FILE_NAME = "Attachment";
528994
+ function fallbackFileNameForImageMime(mtLower) {
528995
+ const match2 = /^image\/([^;\s]+)/i.exec(mtLower);
528996
+ const rawSub = match2?.[1]?.toLowerCase() ?? "png";
528997
+ if (rawSub === "svg+xml") {
528998
+ return "image.svg";
528999
+ }
529000
+ const sub = rawSub.split("+")[0] ?? rawSub;
529001
+ const extBySub = {
529002
+ bmp: "bmp",
529003
+ gif: "gif",
529004
+ ico: "ico",
529005
+ jpeg: "jpg",
529006
+ jpg: "jpg",
529007
+ png: "png",
529008
+ "svg+xml": "svg",
529009
+ webp: "webp",
529010
+ "x-icon": "ico"
529011
+ };
529012
+ const ext2 = extBySub[sub] ?? (/^[a-z0-9]{1,12}$/i.test(sub) ? sub : "img");
529013
+ return `image.${ext2}`;
529014
+ }
529015
+ function resolveAttachmentFileName(attachment) {
529016
+ const trimmed2 = attachment.fileName?.trim();
529017
+ if (trimmed2) {
529018
+ return trimmed2;
529019
+ }
529020
+ const rawMime = attachment.mediaType ?? attachment.mimeType;
529021
+ const mt = rawMime?.toLowerCase() ?? "";
529022
+ if (mt.startsWith("image/")) {
529023
+ return fallbackFileNameForImageMime(mt);
529024
+ }
529025
+ if (mt.includes("pdf")) {
529026
+ return "document.pdf";
529027
+ }
529028
+ if (attachment.type === "pdf") {
529029
+ return "document.pdf";
529030
+ }
529031
+ if (attachment.type === "image") {
529032
+ return "image.png";
529033
+ }
529034
+ switch (attachment.type) {
529035
+ case "csv":
529036
+ return "data.csv";
529037
+ case "json":
529038
+ return "data.json";
529039
+ case "yaml":
529040
+ return "config.yaml";
529041
+ case "css":
529042
+ return "styles.css";
529043
+ case "txt":
529044
+ return "file.txt";
529045
+ default:
529046
+ break;
529047
+ }
529048
+ return DEFAULT_ATTACHMENT_FILE_NAME;
529049
+ }
528993
529050
  var TEXT_ATTACHMENT_TYPES = [
528994
529051
  "csv",
528995
529052
  "json",
@@ -529911,7 +529968,7 @@ var MAX_ATTRIBUTE_LENGTH = 64e3;
529911
529968
  var LLMObsSpanWriter = null;
529912
529969
  async function loadLLMObsSpanWriter() {
529913
529970
  if (!LLMObsSpanWriter) {
529914
- const module2 = await import("./spans-FI6ZSKKQ.js");
529971
+ const module2 = await import("./spans-A2T4F6Y7.js");
529915
529972
  LLMObsSpanWriter = module2.default;
529916
529973
  }
529917
529974
  return LLMObsSpanWriter;
@@ -544690,7 +544747,7 @@ init_cjs_shims();
544690
544747
  init_cjs_shims();
544691
544748
  var isUploadedAttachment = (attachment) => {
544692
544749
  const candidate = attachment;
544693
- return candidate.type === "uploaded" && typeof candidate.url === "string" && typeof candidate.mediaType === "string" && typeof candidate.fileName === "string";
544750
+ return candidate.type === "uploaded" && typeof candidate.url === "string" && typeof candidate.mediaType === "string";
544694
544751
  };
544695
544752
  var MAX_MESSAGE_LENGTH = 300;
544696
544753
  function truncateMessage(message) {
@@ -568275,7 +568332,7 @@ init_cjs_shims();
568275
568332
  var ATTACHMENT_URL_BASE = "https://localhost/";
568276
568333
  var isUploadedAttachment2 = (attachment) => {
568277
568334
  const candidate = attachment;
568278
- return candidate.type === "uploaded" && typeof candidate.url === "string" && typeof candidate.mediaType === "string" && typeof candidate.fileName === "string";
568335
+ return candidate.type === "uploaded" && typeof candidate.url === "string" && typeof candidate.mediaType === "string";
568279
568336
  };
568280
568337
  function toAttachmentUrl(url4) {
568281
568338
  try {
@@ -568294,7 +568351,7 @@ function getAttachmentLeaseMetadata(attachment) {
568294
568351
  return {
568295
568352
  url: getCanonicalAttachmentUrl(attachment.url),
568296
568353
  mediaType: attachment.mediaType,
568297
- fileName: attachment.fileName,
568354
+ fileName: resolveAttachmentFileName(attachment),
568298
568355
  ...attachment.storageKey ? { storageKey: attachment.storageKey } : {},
568299
568356
  ...attachment.scopeType ? { scopeType: attachment.scopeType } : {},
568300
568357
  ...attachment.applicationId ? { applicationId: attachment.applicationId } : {}
@@ -568314,7 +568371,7 @@ function toUploadedAttachmentContentPart(attachment) {
568314
568371
  type: "file",
568315
568372
  data: url4,
568316
568373
  mediaType: attachment.mediaType,
568317
- filename: attachment.fileName,
568374
+ filename: resolveAttachmentFileName(attachment),
568318
568375
  superblocksAttachmentMetadata
568319
568376
  };
568320
568377
  }
@@ -568386,7 +568443,7 @@ var TEXT_LIKE_EXTENSIONS = [
568386
568443
  function inferTextAttachmentType(params) {
568387
568444
  const attachmentType = typeof params.attachmentType === "string" ? params.attachmentType.toLowerCase() : "";
568388
568445
  const mimeType = typeof params.mimeType === "string" ? params.mimeType.toLowerCase() : "";
568389
- const lowerFileName = params.fileName.toLowerCase();
568446
+ const lowerFileName = (params.fileName ?? "").toLowerCase();
568390
568447
  if (attachmentType === "csv" || mimeType === "text/csv") {
568391
568448
  return "csv";
568392
568449
  }
@@ -568422,26 +568479,35 @@ function inferTextAttachmentType(params) {
568422
568479
  function normalizeTextAttachmentForModel(attachment) {
568423
568480
  if (isTextAttachment(attachment)) {
568424
568481
  return {
568425
- fileName: attachment.fileName,
568482
+ fileName: resolveAttachmentFileName({
568483
+ fileName: attachment.fileName,
568484
+ mimeType: attachment.mimeType,
568485
+ type: attachment.type
568486
+ }),
568426
568487
  content: attachment.content,
568427
568488
  mimeType: attachment.mimeType,
568428
568489
  tagName: attachment.type
568429
568490
  };
568430
568491
  }
568431
568492
  const candidate = attachment;
568432
- if (typeof candidate.content !== "string" || typeof candidate.fileName !== "string") {
568493
+ if (typeof candidate.content !== "string") {
568433
568494
  return null;
568434
568495
  }
568496
+ const fileNameForInfer = typeof candidate.fileName === "string" ? candidate.fileName : "";
568435
568497
  const tagName = inferTextAttachmentType({
568436
568498
  attachmentType: candidate.type,
568437
568499
  mimeType: candidate.mimeType,
568438
- fileName: candidate.fileName
568500
+ fileName: fileNameForInfer
568439
568501
  });
568440
568502
  if (!tagName) {
568441
568503
  return null;
568442
568504
  }
568443
568505
  return {
568444
- fileName: candidate.fileName,
568506
+ fileName: resolveAttachmentFileName({
568507
+ fileName: typeof candidate.fileName === "string" ? candidate.fileName : void 0,
568508
+ mimeType: typeof candidate.mimeType === "string" ? candidate.mimeType : TEXT_ATTACHMENT_MIME_TYPES[tagName],
568509
+ type: tagName
568510
+ }),
568445
568511
  content: candidate.content,
568446
568512
  mimeType: typeof candidate.mimeType === "string" ? candidate.mimeType : TEXT_ATTACHMENT_MIME_TYPES[tagName],
568447
568513
  tagName
@@ -568568,39 +568634,39 @@ var ChatSessionStore = (() => {
568568
568634
  return {
568569
568635
  type: attachment.type,
568570
568636
  image: attachment.image,
568571
- fileName: attachment.fileName
568637
+ fileName: typeof attachment.fileName === "string" ? attachment.fileName : void 0
568572
568638
  };
568573
568639
  }
568574
568640
  if (attachment.type === "pdf") {
568575
- if (typeof attachment.data !== "string" || typeof attachment.fileName !== "string") {
568641
+ if (typeof attachment.data !== "string") {
568576
568642
  return void 0;
568577
568643
  }
568578
568644
  return {
568579
568645
  type: attachment.type,
568580
568646
  data: attachment.data,
568581
- fileName: attachment.fileName,
568647
+ fileName: typeof attachment.fileName === "string" ? attachment.fileName : void 0,
568582
568648
  size: attachment.size
568583
568649
  };
568584
568650
  }
568585
- const normalizedTextAttachmentType = typeof attachment.content === "string" && typeof attachment.fileName === "string" ? inferTextAttachmentType({
568651
+ const normalizedTextAttachmentType = typeof attachment.content === "string" ? inferTextAttachmentType({
568586
568652
  attachmentType: attachment.type,
568587
568653
  mimeType: attachment.mimeType,
568588
- fileName: attachment.fileName
568654
+ fileName: typeof attachment.fileName === "string" ? attachment.fileName : ""
568589
568655
  }) : null;
568590
568656
  if (normalizedTextAttachmentType) {
568591
- if (typeof attachment.content !== "string" || typeof attachment.fileName !== "string") {
568657
+ if (typeof attachment.content !== "string") {
568592
568658
  return void 0;
568593
568659
  }
568594
568660
  return {
568595
568661
  type: normalizedTextAttachmentType,
568596
568662
  content: attachment.content,
568597
- fileName: attachment.fileName,
568663
+ fileName: typeof attachment.fileName === "string" ? attachment.fileName : void 0,
568598
568664
  mimeType: typeof attachment.mimeType === "string" ? attachment.mimeType : TEXT_ATTACHMENT_MIME_TYPES[normalizedTextAttachmentType],
568599
568665
  size: attachment.size
568600
568666
  };
568601
568667
  }
568602
568668
  if (attachment.type === "uploaded") {
568603
- if (typeof attachment.url !== "string" || typeof attachment.mediaType !== "string" || typeof attachment.fileName !== "string") {
568669
+ if (typeof attachment.url !== "string" || typeof attachment.mediaType !== "string") {
568604
568670
  return void 0;
568605
568671
  }
568606
568672
  return {
@@ -568608,7 +568674,7 @@ var ChatSessionStore = (() => {
568608
568674
  url: attachment.url,
568609
568675
  signedUrl: typeof attachment.signedUrl === "string" ? attachment.signedUrl : void 0,
568610
568676
  mediaType: attachment.mediaType,
568611
- fileName: attachment.fileName,
568677
+ fileName: typeof attachment.fileName === "string" ? attachment.fileName : void 0,
568612
568678
  label: typeof attachment.label === "string" ? attachment.label : void 0,
568613
568679
  insight: typeof attachment.insight === "string" ? attachment.insight : void 0,
568614
568680
  storageKey: typeof attachment.storageKey === "string" ? attachment.storageKey : void 0,
@@ -597820,7 +597886,7 @@ var PlaywrightMcpServerManager = class {
597820
597886
  this.logger.info(`Starting embedded Playwright MCP server: browser=${options8?.browser || "chromium"}, headless=${options8?.headless !== false}`);
597821
597887
  }
597822
597888
  try {
597823
- const { startEmbeddedPlaywrightMcpServer } = await import("./embedded-playwright-mcp-server-VPV2L5YZ.js");
597889
+ const { startEmbeddedPlaywrightMcpServer } = await import("./embedded-playwright-mcp-server-W2AUWU72.js");
597824
597890
  this.server = await startEmbeddedPlaywrightMcpServer({
597825
597891
  storageStatePath: options8?.storageStatePath,
597826
597892
  jwt: options8?.jwt,
@@ -631722,11 +631788,16 @@ var mapAttachmentsToContentParts = (attachments) => {
631722
631788
  };
631723
631789
  } else if (attachment.type === "pdf") {
631724
631790
  const parsed = parseDataUrl(attachment.data);
631791
+ const mediaType = parsed?.mediaType ?? "application/pdf";
631725
631792
  return {
631726
631793
  type: "file",
631727
631794
  data: parsed?.data ?? attachment.data,
631728
- mediaType: parsed?.mediaType ?? "application/pdf",
631729
- filename: attachment.fileName
631795
+ mediaType,
631796
+ filename: resolveAttachmentFileName({
631797
+ fileName: attachment.fileName,
631798
+ mediaType,
631799
+ type: "pdf"
631800
+ })
631730
631801
  };
631731
631802
  } else if (isUploadedAttachment2(attachment)) {
631732
631803
  return toUploadedAttachmentContentPart(attachment);
@@ -635924,7 +635995,7 @@ ${apiSourceCode.slice(0, 2e3)}
635924
635995
  const timeout = 3e4;
635925
635996
  const attachment = request3.attachment;
635926
635997
  logger15.debug("[ai-service] Labeling attachment", {
635927
- fileName: attachment.fileName ?? "unnamed",
635998
+ fileName: attachment.fileName,
635928
635999
  type: attachment.type
635929
636000
  });
635930
636001
  const llmConfig = request3.llmConfig ? {
@@ -635999,7 +636070,11 @@ ${apiSourceCode.slice(0, 2e3)}
635999
636070
  type: "file",
636000
636071
  data: data3,
636001
636072
  mediaType,
636002
- filename: attachment.fileName
636073
+ filename: resolveAttachmentFileName({
636074
+ fileName: attachment.fileName,
636075
+ mediaType,
636076
+ type: "pdf"
636077
+ })
636003
636078
  };
636004
636079
  }
636005
636080
  if (isUploadedAttachment2(attachment)) {
@@ -661980,7 +662055,7 @@ var parseYaml3;
661980
662055
  async function loadYaml(file2) {
661981
662056
  const content9 = await read_file_default(file2);
661982
662057
  if (!parseYaml3) {
661983
- ({ __parsePrettierYamlConfig: parseYaml3 } = await import("./yaml-PK266RFS.js"));
662058
+ ({ __parsePrettierYamlConfig: parseYaml3 } = await import("./yaml-F44FRQRK.js"));
661984
662059
  }
661985
662060
  try {
661986
662061
  return parseYaml3(content9);
@@ -667374,7 +667449,7 @@ function createParsersAndPrinters(modules) {
667374
667449
  }
667375
667450
  var estreePlugin = createParsersAndPrinters([
667376
667451
  {
667377
- importPlugin: () => import("./estree-E6WHHGA2.js"),
667452
+ importPlugin: () => import("./estree-MZ74RJPW.js"),
667378
667453
  printers: ["estree", "estree-json"]
667379
667454
  }
667380
667455
  ]);
@@ -667398,11 +667473,11 @@ var languages = [
667398
667473
  ];
667399
667474
  var { parsers: parsers12, printers } = createParsersAndPrinters([
667400
667475
  {
667401
- importPlugin: () => import("./acorn-XA5AKMSQ.js"),
667476
+ importPlugin: () => import("./acorn-MEX5RFZT.js"),
667402
667477
  parsers: ["acorn", "espree"]
667403
667478
  },
667404
667479
  {
667405
- importPlugin: () => import("./angular-HX23WBAZ.js"),
667480
+ importPlugin: () => import("./angular-D3S52ZE2.js"),
667406
667481
  parsers: [
667407
667482
  "__ng_action",
667408
667483
  "__ng_binding",
@@ -667411,7 +667486,7 @@ var { parsers: parsers12, printers } = createParsersAndPrinters([
667411
667486
  ]
667412
667487
  },
667413
667488
  {
667414
- importPlugin: () => import("./babel-GZ65I7XB.js"),
667489
+ importPlugin: () => import("./babel-SFYZML4M.js"),
667415
667490
  parsers: [
667416
667491
  "babel",
667417
667492
  "babel-flow",
@@ -667430,44 +667505,44 @@ var { parsers: parsers12, printers } = createParsersAndPrinters([
667430
667505
  ]
667431
667506
  },
667432
667507
  {
667433
- importPlugin: () => import("./flow-YOQFO6J4.js"),
667508
+ importPlugin: () => import("./flow-TCSSXUS7.js"),
667434
667509
  parsers: ["flow"]
667435
667510
  },
667436
667511
  {
667437
- importPlugin: () => import("./glimmer-H3L3FCS4.js"),
667512
+ importPlugin: () => import("./glimmer-W37AZRQA.js"),
667438
667513
  parsers: ["glimmer"],
667439
667514
  printers: ["glimmer"]
667440
667515
  },
667441
667516
  {
667442
- importPlugin: () => import("./graphql-TKOAMA7Q.js"),
667517
+ importPlugin: () => import("./graphql-565I5TP4.js"),
667443
667518
  parsers: ["graphql"],
667444
667519
  printers: ["graphql"]
667445
667520
  },
667446
667521
  {
667447
- importPlugin: () => import("./html-2RISMVNR.js"),
667522
+ importPlugin: () => import("./html-P3XBYPJP.js"),
667448
667523
  parsers: ["html", "angular", "vue", "lwc", "mjml"],
667449
667524
  printers: ["html"]
667450
667525
  },
667451
667526
  {
667452
- importPlugin: () => import("./markdown-5DIY7WZK.js"),
667527
+ importPlugin: () => import("./markdown-7QY7NHKZ.js"),
667453
667528
  parsers: ["markdown", "mdx", "remark"],
667454
667529
  printers: ["mdast"]
667455
667530
  },
667456
667531
  {
667457
- importPlugin: () => import("./meriyah-3KLK7FMR.js"),
667532
+ importPlugin: () => import("./meriyah-MFSR7WT7.js"),
667458
667533
  parsers: ["meriyah"]
667459
667534
  },
667460
667535
  {
667461
- importPlugin: () => import("./postcss-QLAENHXY.js"),
667536
+ importPlugin: () => import("./postcss-7A5DIHHF.js"),
667462
667537
  parsers: ["css", "less", "scss"],
667463
667538
  printers: ["postcss"]
667464
667539
  },
667465
667540
  {
667466
- importPlugin: () => import("./typescript-ZNVJQCTR.js"),
667541
+ importPlugin: () => import("./typescript-VVR5MDVH.js"),
667467
667542
  parsers: ["typescript"]
667468
667543
  },
667469
667544
  {
667470
- importPlugin: () => import("./yaml-PK266RFS.js"),
667545
+ importPlugin: () => import("./yaml-F44FRQRK.js"),
667471
667546
  parsers: ["yaml"],
667472
667547
  printers: ["yaml"]
667473
667548
  }
@@ -680327,7 +680402,7 @@ async function handleLockConflict(error40, lockSvc, span, logger15) {
680327
680402
  }
680328
680403
  async function readPkgJson(cwd) {
680329
680404
  try {
680330
- const { readPackage } = await import("./read-pkg-S3SLVPAM.js");
680405
+ const { readPackage } = await import("./read-pkg-6XSODIFQ.js");
680331
680406
  return await readPackage({ cwd });
680332
680407
  } catch {
680333
680408
  return null;
@@ -681667,4 +681742,4 @@ serve-static/index.js:
681667
681742
  chokidar/esm/index.js:
681668
681743
  (*! chokidar - MIT License (c) 2012 Paul Miller (paulmillr.com) *)
681669
681744
  */
681670
- //# sourceMappingURL=chunk-MNIIOOBX.js.map
681745
+ //# sourceMappingURL=chunk-LCBQJJ6F.js.map