@superblocksteam/cli 2.0.108 → 2.0.109-next.0

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-DTAWJNAE.js → acorn-LT5FWJHN.js} +3 -3
  3. package/dist/{angular-OJI3L6QG.js → angular-XJOC7ZTH.js} +3 -3
  4. package/dist/{api-WR3R4NPC.js → api-JNUVKIIR.js} +4 -4
  5. package/dist/{babel-ITWGFRI6.js → babel-AKPPDZQS.js} +3 -3
  6. package/dist/{chunk-BD7X2QJ3.js → chunk-27IGAEFQ.js} +4 -4
  7. package/dist/{chunk-K3WAV65C.js → chunk-2D6U54L7.js} +3 -3
  8. package/dist/{chunk-TE3A2AOK.js → chunk-3JR4SG6A.js} +3 -3
  9. package/dist/{chunk-CAE3M4R5.js → chunk-4DAV6372.js} +3 -3
  10. package/dist/{chunk-GDUWDGEE.js → chunk-6CNKOOUD.js} +3 -3
  11. package/dist/{chunk-PNN5CKST.js → chunk-AQA6GQAR.js} +6 -6
  12. package/dist/{chunk-QXG364PT.js → chunk-BK7JTBTG.js} +3 -3
  13. package/dist/{chunk-Z62BQYOP.js → chunk-CHFGOVIE.js} +4 -4
  14. package/dist/{chunk-26NV3M2I.js → chunk-CJU65SMP.js} +3 -3
  15. package/dist/{chunk-ZAO5CCO4.js → chunk-FKMX4V66.js} +3 -3
  16. package/dist/{chunk-EVE2MJ35.js → chunk-I5GXI5SE.js} +2 -2
  17. package/dist/{chunk-HVLCRQGS.js → chunk-IDPDNR4A.js} +4 -4
  18. package/dist/{chunk-OWD3DVW7.js → chunk-IIUMYYOG.js} +143 -89
  19. package/dist/{chunk-OWD3DVW7.js.map → chunk-IIUMYYOG.js.map} +1 -1
  20. package/dist/{chunk-R3B7E47B.js → chunk-LSTU4R5D.js} +4 -4
  21. package/dist/{chunk-2HSX626O.js → chunk-TJHXMYVN.js} +3 -3
  22. package/dist/{chunk-RHA5IL6C.js → chunk-YSSYOE6L.js} +6 -6
  23. package/dist/{chunk-S7KJUVL7.js → chunk-YWMET5BC.js} +3 -3
  24. package/dist/{cli-truncate-5OJX55XY.js → cli-truncate-AHF7YEEJ.js} +5 -5
  25. package/dist/commands/dev-parent.js +2 -2
  26. package/dist/{dd-trace-7ADLPEQD.js → dd-trace-3RTA56CC.js} +7 -7
  27. package/dist/{dist-X5SV44RA.js → dist-MW2P5ZJQ.js} +13 -13
  28. package/dist/{embedded-playwright-mcp-server-DAZBFVXI.js → embedded-playwright-mcp-server-ILZBZFX2.js} +3 -3
  29. package/dist/{enquirer-QLBCUC2X.js → enquirer-BNN4HZH2.js} +4 -4
  30. package/dist/{estree-YC3245W3.js → estree-RFYOIZSJ.js} +3 -3
  31. package/dist/{flow-XN4H56LF.js → flow-VFQUIL7I.js} +3 -3
  32. package/dist/{getMachineId-bsd-FD7TGEBO.js → getMachineId-bsd-NOJAOWTI.js} +5 -5
  33. package/dist/{getMachineId-darwin-OKUT73JJ.js → getMachineId-darwin-SRTE4YUO.js} +5 -5
  34. package/dist/{getMachineId-linux-OEBIOTFL.js → getMachineId-linux-ICLDIYZM.js} +4 -4
  35. package/dist/{getMachineId-unsupported-X5WLNWJH.js → getMachineId-unsupported-STJPU2GO.js} +4 -4
  36. package/dist/{getMachineId-win-5SJFJTRY.js → getMachineId-win-VSZW3WM4.js} +5 -5
  37. package/dist/{glimmer-XZ2VXSVH.js → glimmer-HMWYZ5EL.js} +3 -3
  38. package/dist/{graphql-DHJNPYTY.js → graphql-7ZJUJSPH.js} +3 -3
  39. package/dist/{html-R5POQGBC.js → html-NLFYWYL2.js} +3 -3
  40. package/dist/{http-N6NPZ7S4.js → http-XOF55464.js} +12 -12
  41. package/dist/index.js +18 -18
  42. package/dist/{jiti-4LCA2ANZ.js → jiti-AUTPNH6Q.js} +3 -3
  43. package/dist/{log-update-CTVWVSOC.js → log-update-3UDSAOEZ.js} +6 -6
  44. package/dist/{markdown-KNKZSTIC.js → markdown-ABCVR42Q.js} +3 -3
  45. package/dist/{meriyah-GOXKNHZ4.js → meriyah-ZLBKONBJ.js} +3 -3
  46. package/dist/{postcss-4XFVTGEK.js → postcss-TI5XP2XZ.js} +3 -3
  47. package/dist/{read-pkg-OMEN5CIF.js → read-pkg-HSGTZLKQ.js} +5 -5
  48. package/dist/{spans-N6LDWKFQ.js → spans-IM4CKETS.js} +4 -4
  49. package/dist/{src-IKGNVQST.js → src-OHQKECPF.js} +3 -3
  50. package/dist/{token-5DJOS2RX.js → token-GNVSPB5T.js} +5 -5
  51. package/dist/{token-util-ZN2FTJ54.js → token-util-43QIRKNM.js} +5 -5
  52. package/dist/{typescript-TZV36AFK.js → typescript-MRHGY5VZ.js} +3 -3
  53. package/dist/{wrap-ansi-2O4OS33T.js → wrap-ansi-B2ABZ5IR.js} +5 -5
  54. package/dist/{yaml-JBLSVWHO.js → yaml-YN3GCGGE.js} +3 -3
  55. package/oclif.manifest.json +1 -1
  56. package/package.json +5 -5
  57. /package/dist/{acorn-DTAWJNAE.js.map → acorn-LT5FWJHN.js.map} +0 -0
  58. /package/dist/{angular-OJI3L6QG.js.map → angular-XJOC7ZTH.js.map} +0 -0
  59. /package/dist/{api-WR3R4NPC.js.map → api-JNUVKIIR.js.map} +0 -0
  60. /package/dist/{babel-ITWGFRI6.js.map → babel-AKPPDZQS.js.map} +0 -0
  61. /package/dist/{chunk-BD7X2QJ3.js.map → chunk-27IGAEFQ.js.map} +0 -0
  62. /package/dist/{chunk-K3WAV65C.js.map → chunk-2D6U54L7.js.map} +0 -0
  63. /package/dist/{chunk-TE3A2AOK.js.map → chunk-3JR4SG6A.js.map} +0 -0
  64. /package/dist/{chunk-CAE3M4R5.js.map → chunk-4DAV6372.js.map} +0 -0
  65. /package/dist/{chunk-GDUWDGEE.js.map → chunk-6CNKOOUD.js.map} +0 -0
  66. /package/dist/{chunk-PNN5CKST.js.map → chunk-AQA6GQAR.js.map} +0 -0
  67. /package/dist/{chunk-QXG364PT.js.map → chunk-BK7JTBTG.js.map} +0 -0
  68. /package/dist/{chunk-Z62BQYOP.js.map → chunk-CHFGOVIE.js.map} +0 -0
  69. /package/dist/{chunk-26NV3M2I.js.map → chunk-CJU65SMP.js.map} +0 -0
  70. /package/dist/{chunk-ZAO5CCO4.js.map → chunk-FKMX4V66.js.map} +0 -0
  71. /package/dist/{chunk-EVE2MJ35.js.map → chunk-I5GXI5SE.js.map} +0 -0
  72. /package/dist/{chunk-HVLCRQGS.js.map → chunk-IDPDNR4A.js.map} +0 -0
  73. /package/dist/{chunk-R3B7E47B.js.map → chunk-LSTU4R5D.js.map} +0 -0
  74. /package/dist/{chunk-2HSX626O.js.map → chunk-TJHXMYVN.js.map} +0 -0
  75. /package/dist/{chunk-RHA5IL6C.js.map → chunk-YSSYOE6L.js.map} +0 -0
  76. /package/dist/{chunk-S7KJUVL7.js.map → chunk-YWMET5BC.js.map} +0 -0
  77. /package/dist/{cli-truncate-5OJX55XY.js.map → cli-truncate-AHF7YEEJ.js.map} +0 -0
  78. /package/dist/{dd-trace-7ADLPEQD.js.map → dd-trace-3RTA56CC.js.map} +0 -0
  79. /package/dist/{dist-X5SV44RA.js.map → dist-MW2P5ZJQ.js.map} +0 -0
  80. /package/dist/{embedded-playwright-mcp-server-DAZBFVXI.js.map → embedded-playwright-mcp-server-ILZBZFX2.js.map} +0 -0
  81. /package/dist/{enquirer-QLBCUC2X.js.map → enquirer-BNN4HZH2.js.map} +0 -0
  82. /package/dist/{estree-YC3245W3.js.map → estree-RFYOIZSJ.js.map} +0 -0
  83. /package/dist/{flow-XN4H56LF.js.map → flow-VFQUIL7I.js.map} +0 -0
  84. /package/dist/{getMachineId-bsd-FD7TGEBO.js.map → getMachineId-bsd-NOJAOWTI.js.map} +0 -0
  85. /package/dist/{getMachineId-darwin-OKUT73JJ.js.map → getMachineId-darwin-SRTE4YUO.js.map} +0 -0
  86. /package/dist/{getMachineId-linux-OEBIOTFL.js.map → getMachineId-linux-ICLDIYZM.js.map} +0 -0
  87. /package/dist/{getMachineId-unsupported-X5WLNWJH.js.map → getMachineId-unsupported-STJPU2GO.js.map} +0 -0
  88. /package/dist/{getMachineId-win-5SJFJTRY.js.map → getMachineId-win-VSZW3WM4.js.map} +0 -0
  89. /package/dist/{glimmer-XZ2VXSVH.js.map → glimmer-HMWYZ5EL.js.map} +0 -0
  90. /package/dist/{graphql-DHJNPYTY.js.map → graphql-7ZJUJSPH.js.map} +0 -0
  91. /package/dist/{html-R5POQGBC.js.map → html-NLFYWYL2.js.map} +0 -0
  92. /package/dist/{http-N6NPZ7S4.js.map → http-XOF55464.js.map} +0 -0
  93. /package/dist/{jiti-4LCA2ANZ.js.map → jiti-AUTPNH6Q.js.map} +0 -0
  94. /package/dist/{log-update-CTVWVSOC.js.map → log-update-3UDSAOEZ.js.map} +0 -0
  95. /package/dist/{markdown-KNKZSTIC.js.map → markdown-ABCVR42Q.js.map} +0 -0
  96. /package/dist/{meriyah-GOXKNHZ4.js.map → meriyah-ZLBKONBJ.js.map} +0 -0
  97. /package/dist/{postcss-4XFVTGEK.js.map → postcss-TI5XP2XZ.js.map} +0 -0
  98. /package/dist/{read-pkg-OMEN5CIF.js.map → read-pkg-HSGTZLKQ.js.map} +0 -0
  99. /package/dist/{spans-N6LDWKFQ.js.map → spans-IM4CKETS.js.map} +0 -0
  100. /package/dist/{src-IKGNVQST.js.map → src-OHQKECPF.js.map} +0 -0
  101. /package/dist/{token-5DJOS2RX.js.map → token-GNVSPB5T.js.map} +0 -0
  102. /package/dist/{token-util-ZN2FTJ54.js.map → token-util-43QIRKNM.js.map} +0 -0
  103. /package/dist/{typescript-TZV36AFK.js.map → typescript-MRHGY5VZ.js.map} +0 -0
  104. /package/dist/{wrap-ansi-2O4OS33T.js.map → wrap-ansi-B2ABZ5IR.js.map} +0 -0
  105. /package/dist/{yaml-JBLSVWHO.js.map → yaml-YN3GCGGE.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 = 'c66a5c69d89944f65b8632c984a91c4bb01aac2b';
4
+ process.env.DD_GIT_COMMIT_SHA = '30b6dd32b50d53e8e9efed6d7da04abad96d98fb';
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-GDUWDGEE.js";
27
+ } from "./chunk-6CNKOOUD.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-QXG364PT.js";
44
+ } from "./chunk-BK7JTBTG.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-PNN5CKST.js";
53
+ } from "./chunk-AQA6GQAR.js";
54
54
  import {
55
55
  require_commonjs
56
- } from "./chunk-CAE3M4R5.js";
56
+ } from "./chunk-4DAV6372.js";
57
57
  import {
58
58
  require_dc_polyfill
59
- } from "./chunk-K3WAV65C.js";
59
+ } from "./chunk-2D6U54L7.js";
60
60
  import {
61
61
  require_token_error
62
- } from "./chunk-2HSX626O.js";
62
+ } from "./chunk-TJHXMYVN.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-TE3A2AOK.js";
71
+ } from "./chunk-3JR4SG6A.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-EVE2MJ35.js";
80
+ } from "./chunk-I5GXI5SE.js";
81
81
 
82
82
  // ../../../../node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/constants.js
83
83
  var require_constants3 = __commonJS({
@@ -65374,15 +65374,22 @@ var require_github_workflow = __commonJS({
65374
65374
  init_cjs_shims();
65375
65375
  Object.defineProperty(exports2, "__esModule", { value: true });
65376
65376
  exports2.DEFAULT_SUPERBLOCKS_DOMAIN = void 0;
65377
+ exports2.assertValidDomain = assertValidDomain;
65377
65378
  exports2.isGitHubRemoteUrl = isGitHubRemoteUrl3;
65378
65379
  exports2.buildGithubSuperblocksSyncWorkflow = buildGithubSuperblocksSyncWorkflow2;
65379
65380
  exports2.getSuperblocksDomainFromBaseUrl = getSuperblocksDomainFromBaseUrl;
65380
65381
  exports2.buildGithubSuperblocksSyncWorkflowFromBaseUrl = buildGithubSuperblocksSyncWorkflowFromBaseUrl3;
65381
65382
  exports2.DEFAULT_SUPERBLOCKS_DOMAIN = "app.superblocks.com";
65383
+ function assertValidDomain(domain2) {
65384
+ if (!/^[a-zA-Z0-9][a-zA-Z0-9._:-]*$/.test(domain2)) {
65385
+ throw new Error(`Invalid domain for pipeline template: ${domain2}`);
65386
+ }
65387
+ }
65382
65388
  function isGitHubRemoteUrl3(remoteUrl) {
65383
65389
  return /(^git@github\.com:)|(^https?:\/\/github\.com\/)|(^ssh:\/\/git@github\.com\/)/.test(remoteUrl.trim());
65384
65390
  }
65385
65391
  function buildGithubSuperblocksSyncWorkflow2(domain2 = exports2.DEFAULT_SUPERBLOCKS_DOMAIN) {
65392
+ assertValidDomain(domain2);
65386
65393
  return `name: Sync changes to Superblocks
65387
65394
 
65388
65395
  on:
@@ -65458,6 +65465,7 @@ var require_azure_devops_workflow = __commonJS({
65458
65465
  return /(^git@ssh\.dev\.azure\.com:)|(^https?:\/\/([^@]+@)?dev\.azure\.com\/)|(^ssh:\/\/git@ssh\.dev\.azure\.com\/)/.test(remoteUrl.trim());
65459
65466
  }
65460
65467
  function buildAzureDevOpsSuperblocksSyncPipeline(domain2 = github_workflow_js_1.DEFAULT_SUPERBLOCKS_DOMAIN) {
65468
+ (0, github_workflow_js_1.assertValidDomain)(domain2);
65461
65469
  return `trigger:
65462
65470
  branches:
65463
65471
  include:
@@ -65466,6 +65474,9 @@ var require_azure_devops_workflow = __commonJS({
65466
65474
  pool:
65467
65475
  vmImage: ubuntu-latest
65468
65476
 
65477
+ variables:
65478
+ SUPERBLOCKS_DOMAIN: '${domain2}'
65479
+
65469
65480
  steps:
65470
65481
  - checkout: self
65471
65482
  fetchDepth: 0
@@ -65475,10 +65486,16 @@ steps:
65475
65486
  displayName: Sync to Superblocks
65476
65487
  env:
65477
65488
  SUPERBLOCKS_TOKEN: $(SUPERBLOCKS_TOKEN)
65489
+ SUPERBLOCKS_DOMAIN: $(SUPERBLOCKS_DOMAIN)
65478
65490
  inputs:
65479
65491
  targetType: inline
65480
65492
  script: |
65481
- npx @superblocksteam/cli sync --token "$SUPERBLOCKS_TOKEN" --domain ${domain2} --path . --sha $(Build.SourceVersion)
65493
+ docker run --rm \\
65494
+ -e SUPERBLOCKS_TOKEN \\
65495
+ -e SUPERBLOCKS_DOMAIN \\
65496
+ -v "$BUILD_SOURCESDIRECTORY:/github/workspace" \\
65497
+ -w /github/workspace \\
65498
+ superblocksteam/sync-action:v1
65482
65499
  `;
65483
65500
  }
65484
65501
  function buildAzureDevOpsSuperblocksSyncPipelineFromBaseUrl2(superblocksBaseUrl) {
@@ -65500,6 +65517,7 @@ var require_gitlab_workflow = __commonJS({
65500
65517
  return /(^git@gitlab\.com:)|(^https?:\/\/gitlab\.com\/)|(^ssh:\/\/git@gitlab\.com\/)/.test(remoteUrl.trim());
65501
65518
  }
65502
65519
  function buildGitlabSuperblocksSyncWorkflow(domain2 = github_workflow_js_1.DEFAULT_SUPERBLOCKS_DOMAIN) {
65520
+ (0, github_workflow_js_1.assertValidDomain)(domain2);
65503
65521
  return `variables:
65504
65522
  SUPERBLOCKS_DOMAIN: '${domain2}'
65505
65523
 
@@ -96566,15 +96584,15 @@ var require_api_files = __commonJS({
96566
96584
  exports2.readAppApiYamlFile = readAppApiYamlFile4;
96567
96585
  exports2.resolveLanguageSpecificStepContentFromBlocks = resolveLanguageSpecificStepContentFromBlocks2;
96568
96586
  async function writeApiFiles3(...args) {
96569
- const esmFunction = await import("./api-WR3R4NPC.js");
96587
+ const esmFunction = await import("./api-JNUVKIIR.js");
96570
96588
  return esmFunction.writeApiFiles(...args);
96571
96589
  }
96572
96590
  async function readAppApiYamlFile4(...args) {
96573
- const esmFunction = await import("./api-WR3R4NPC.js");
96591
+ const esmFunction = await import("./api-JNUVKIIR.js");
96574
96592
  return esmFunction.readAppApiYamlFile(...args);
96575
96593
  }
96576
96594
  async function resolveLanguageSpecificStepContentFromBlocks2(...args) {
96577
- const esmFunction = await import("./api-WR3R4NPC.js");
96595
+ const esmFunction = await import("./api-JNUVKIIR.js");
96578
96596
  return esmFunction.resolveLanguageSpecificStepContentFromBlocks(...args);
96579
96597
  }
96580
96598
  }
@@ -109366,19 +109384,19 @@ var require_getMachineId = __commonJS({
109366
109384
  if (!getMachineIdImpl) {
109367
109385
  switch (process5.platform) {
109368
109386
  case "darwin":
109369
- getMachineIdImpl = (await import("./getMachineId-darwin-OKUT73JJ.js")).getMachineId;
109387
+ getMachineIdImpl = (await import("./getMachineId-darwin-SRTE4YUO.js")).getMachineId;
109370
109388
  break;
109371
109389
  case "linux":
109372
- getMachineIdImpl = (await import("./getMachineId-linux-OEBIOTFL.js")).getMachineId;
109390
+ getMachineIdImpl = (await import("./getMachineId-linux-ICLDIYZM.js")).getMachineId;
109373
109391
  break;
109374
109392
  case "freebsd":
109375
- getMachineIdImpl = (await import("./getMachineId-bsd-FD7TGEBO.js")).getMachineId;
109393
+ getMachineIdImpl = (await import("./getMachineId-bsd-NOJAOWTI.js")).getMachineId;
109376
109394
  break;
109377
109395
  case "win32":
109378
- getMachineIdImpl = (await import("./getMachineId-win-5SJFJTRY.js")).getMachineId;
109396
+ getMachineIdImpl = (await import("./getMachineId-win-VSZW3WM4.js")).getMachineId;
109379
109397
  break;
109380
109398
  default:
109381
- getMachineIdImpl = (await import("./getMachineId-unsupported-X5WLNWJH.js")).getMachineId;
109399
+ getMachineIdImpl = (await import("./getMachineId-unsupported-STJPU2GO.js")).getMachineId;
109382
109400
  break;
109383
109401
  }
109384
109402
  }
@@ -185241,8 +185259,8 @@ var require_get_vercel_oidc_token = __commonJS({
185241
185259
  }
185242
185260
  try {
185243
185261
  const [{ getTokenPayload, isExpired }, { refreshToken }] = await Promise.all([
185244
- await import("./token-util-ZN2FTJ54.js"),
185245
- await import("./token-5DJOS2RX.js")
185262
+ await import("./token-util-43QIRKNM.js"),
185263
+ await import("./token-GNVSPB5T.js")
185246
185264
  ]);
185247
185265
  if (!token2 || isExpired(getTokenPayload(token2))) {
185248
185266
  await refreshToken();
@@ -367442,7 +367460,7 @@ var require_config_loader = __commonJS({
367442
367460
  * @returns {Promise<{createJiti: Function|undefined, version: string;}>} A promise that fulfills with an object containing the jiti module's createJiti function and version.
367443
367461
  */
367444
367462
  static async loadJiti() {
367445
- const { createJiti } = await import("./jiti-4LCA2ANZ.js");
367463
+ const { createJiti } = await import("./jiti-AUTPNH6Q.js");
367446
367464
  const version5 = require_package6().version;
367447
367465
  return { createJiti, version: version5 };
367448
367466
  }
@@ -367771,7 +367789,7 @@ var require_eslint_helpers = __commonJS({
367771
367789
  }
367772
367790
  async function globMatch({ basePath, pattern }) {
367773
367791
  let found = false;
367774
- const { hfs } = await import("./src-IKGNVQST.js");
367792
+ const { hfs } = await import("./src-OHQKECPF.js");
367775
367793
  const patternToUse = normalizeToPosix(path77.relative(basePath, pattern));
367776
367794
  const matcher = new Minimatch2(patternToUse, MINIMATCH_OPTIONS);
367777
367795
  const walkSettings = {
@@ -367811,7 +367829,7 @@ var require_eslint_helpers = __commonJS({
367811
367829
  return new Minimatch2(patternToUse, MINIMATCH_OPTIONS);
367812
367830
  });
367813
367831
  const unmatchedPatterns = /* @__PURE__ */ new Set([...relativeToPatterns.keys()]);
367814
- const { hfs } = await import("./src-IKGNVQST.js");
367832
+ const { hfs } = await import("./src-OHQKECPF.js");
367815
367833
  const walk2 = hfs.walk(basePath, {
367816
367834
  async directoryFilter(entry) {
367817
367835
  if (!matchers.some((matcher) => matcher.match(entry.path, true))) {
@@ -520466,7 +520484,7 @@ init_cjs_shims();
520466
520484
  // ../sdk/package.json
520467
520485
  var package_default = {
520468
520486
  name: "@superblocksteam/sdk",
520469
- version: "2.0.108",
520487
+ version: "2.0.109-next.0",
520470
520488
  description: "Superblocks JS SDK",
520471
520489
  homepage: "https://www.superblocks.com",
520472
520490
  license: "Superblocks Community Software License",
@@ -520820,7 +520838,7 @@ var config = void 0;
520820
520838
  var configured = false;
520821
520839
  var ddTracePromise = void 0;
520822
520840
  async function getDdTrace() {
520823
- ddTracePromise ??= import("./dd-trace-7ADLPEQD.js").then((module2) => module2.default);
520841
+ ddTracePromise ??= import("./dd-trace-3RTA56CC.js").then((module2) => module2.default);
520824
520842
  return await ddTracePromise;
520825
520843
  }
520826
520844
  var deploymentType = (() => {
@@ -529968,7 +529986,7 @@ var MAX_ATTRIBUTE_LENGTH = 64e3;
529968
529986
  var LLMObsSpanWriter = null;
529969
529987
  async function loadLLMObsSpanWriter() {
529970
529988
  if (!LLMObsSpanWriter) {
529971
- const module2 = await import("./spans-N6LDWKFQ.js");
529989
+ const module2 = await import("./spans-IM4CKETS.js");
529972
529990
  LLMObsSpanWriter = module2.default;
529973
529991
  }
529974
529992
  return LLMObsSpanWriter;
@@ -531339,8 +531357,9 @@ var Clark = class _Clark extends TracedFSM {
531339
531357
  * @param services - Active Clark session services (chat store, context manager)
531340
531358
  * @param label - Short category tag, e.g. "Knowledge update"
531341
531359
  * @param content - Human-readable description of what happened
531360
+ * @param options - Controls how the event is attributed in LLM context
531342
531361
  */
531343
- async recordSystemMessage(services, label2, content9) {
531362
+ async recordSystemMessage(services, label2, content9, options8) {
531344
531363
  const text3 = `[${label2}] ${content9}`;
531345
531364
  const sendMessage = sendUserMessageChannel(this, services.chatSessionStore);
531346
531365
  await sendMessage({ type: "system_notification", text: text3 });
@@ -531349,7 +531368,7 @@ var Clark = class _Clark extends TracedFSM {
531349
531368
  applicationId: services.applicationId
531350
531369
  });
531351
531370
  if (llmContext) {
531352
- await llmContext.addResponse({ role: "assistant", content: text3 }, _Clark.PLACEHOLDER_USAGE);
531371
+ await llmContext.addResponse({ role: options8?.role ?? "assistant", content: text3 }, _Clark.PLACEHOLDER_USAGE);
531353
531372
  }
531354
531373
  }
531355
531374
  pushContextUsed(usage) {
@@ -547244,6 +547263,7 @@ function deepMerge(target, source2) {
547244
547263
  }
547245
547264
 
547246
547265
  // ../../../vite-plugin-file-sync/dist/ai-service/agent/tools2/tools/grep-metadata.js
547266
+ var UUID_PATTERN = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
547247
547267
  var grepMetadataToolFactory = createToolFactory("grepMetadata", ({ clark, services }) => {
547248
547268
  const MAX_RESPONSE_CHARS = 25e3;
547249
547269
  return {
@@ -547365,7 +547385,7 @@ The tool returns structured results with full context (table names, schemas, typ
547365
547385
  defaultPermission: PermissionLevel.ALLOW,
547366
547386
  readOnly: true,
547367
547387
  inputSchema: external_exports.object({
547368
- integrationId: external_exports.string().describe("The ID of the integration to search"),
547388
+ integrationId: external_exports.string().describe("The saved integration ID (UUID) to search. This must be the UUID returned by saveIntegration or from availableIntegrations \u2014 NOT a plugin type like 'circleci' or 'postgres'. Call saveIntegration first if the integration hasn't been saved yet."),
547369
547389
  grepPattern: external_exports.string().describe(`Ripgrep regex pattern for searching gron-formatted metadata.
547370
547390
 
547371
547391
  GRON FORMAT: Metadata is stored as gron lines (each JSON path becomes a separate line)
@@ -547535,6 +547555,15 @@ Note: This increases load on the orchestrator, so only use when truly needed.`)
547535
547555
  execute: async ({ integrationId, grepPattern, includeDetails = true, startIndex = 0, forceRefresh = false }) => {
547536
547556
  const logger15 = getLogger3();
547537
547557
  const startTime = Date.now();
547558
+ if (!UUID_PATTERN.test(integrationId)) {
547559
+ logger15.warn(`[grepMetadata] Received non-UUID integrationId: "${integrationId}" \u2014 likely a plugin type, not a saved integration ID`);
547560
+ return {
547561
+ error: `"${integrationId}" is not a valid integration ID (expected a UUID like "ad0298ea-558b-4a43-..."). If this is a plugin type, call saveIntegration first. grepMetadata requires the UUID returned by saveIntegration or from availableIntegrations.`,
547562
+ matches: [],
547563
+ totalCount: 0,
547564
+ truncated: false
547565
+ };
547566
+ }
547538
547567
  logger15.info(`[grepMetadata] Starting search for integration ${integrationId} with pattern: "${grepPattern}"${forceRefresh ? " (force refresh)" : ""}`);
547539
547568
  try {
547540
547569
  const header = services.integrationStore.getHeader(integrationId);
@@ -588684,6 +588713,14 @@ var VercelStreamTextAdapter = class {
588684
588713
  // Always pass URL parts through untouched. The downstream Clark/server
588685
588714
  // pipeline is responsible for lease refresh and media materialization.
588686
588715
  experimental_download: passThroughDownload,
588716
+ // Surface low-level provider events (Anthropic `ping` keep-alives, Bedrock
588717
+ // message metadata, etc.) as `{type:"raw"}` chunks. During Claude extended
588718
+ // thinking the provider can go 30-90s without emitting a reasoning-delta,
588719
+ // and without these ticks our IdleMonitor would stall the stream mid-
588720
+ // thinking and retry. Raw chunks flow through managed-stream.ts → reset
588721
+ // the idle timer. Observers that don't care about raw chunks ignore them.
588722
+ // See APPS-3460.
588723
+ includeRawChunks: true,
588687
588724
  prepareStep: rest.prepareStep,
588688
588725
  onChunk: rest.onChunk,
588689
588726
  onStepFinish: rest.onStepFinish,
@@ -588906,26 +588943,35 @@ function createManagedStream(source2, session, idleMonitor) {
588906
588943
  controller.close();
588907
588944
  return;
588908
588945
  }
588909
- try {
588910
- const result = await raceWithStallDetection(iterator2.next(), idleMonitor);
588911
- if (result.done) {
588912
- closed = true;
588913
- session.finalize("complete");
588914
- controller.close();
588946
+ while (true) {
588947
+ try {
588948
+ const result = await raceWithStallDetection(iterator2.next(), idleMonitor);
588949
+ if (result.done) {
588950
+ closed = true;
588951
+ session.finalize("complete");
588952
+ controller.close();
588953
+ return;
588954
+ }
588955
+ if (result.value.type === "raw") {
588956
+ session.resetActivityTimer();
588957
+ void session.events.emit("chunk", result.value, session);
588958
+ continue;
588959
+ }
588960
+ session.recordChunk();
588961
+ void session.events.emit("chunk", result.value, session);
588962
+ if (result.value.type === "error") {
588963
+ const chunkError = result.value.error;
588964
+ closed = true;
588965
+ controller.error(chunkError);
588966
+ return;
588967
+ }
588968
+ controller.enqueue(result.value);
588915
588969
  return;
588916
- }
588917
- session.recordChunk();
588918
- void session.events.emit("chunk", result.value, session);
588919
- if (result.value.type === "error") {
588920
- const chunkError = result.value.error;
588970
+ } catch (error40) {
588921
588971
  closed = true;
588922
- controller.error(chunkError);
588972
+ controller.error(error40);
588923
588973
  return;
588924
588974
  }
588925
- controller.enqueue(result.value);
588926
- } catch (error40) {
588927
- closed = true;
588928
- controller.error(error40);
588929
588975
  }
588930
588976
  },
588931
588977
  cancel() {
@@ -597886,7 +597932,7 @@ var PlaywrightMcpServerManager = class {
597886
597932
  this.logger.info(`Starting embedded Playwright MCP server: browser=${options8?.browser || "chromium"}, headless=${options8?.headless !== false}`);
597887
597933
  }
597888
597934
  try {
597889
- const { startEmbeddedPlaywrightMcpServer } = await import("./embedded-playwright-mcp-server-DAZBFVXI.js");
597935
+ const { startEmbeddedPlaywrightMcpServer } = await import("./embedded-playwright-mcp-server-ILZBZFX2.js");
597890
597936
  this.server = await startEmbeddedPlaywrightMcpServer({
597891
597937
  storageStatePath: options8?.storageStatePath,
597892
597938
  jwt: options8?.jwt,
@@ -636151,11 +636197,12 @@ ${normalizedTextAttachment.content}
636151
636197
  pendingIntegrationActionPrompt: void 0,
636152
636198
  activeInteractiveMessage: ctx.pendingIntegrationActionPrompt ? void 0 : ctx.activeInteractiveMessage
636153
636199
  }));
636154
- await this.clark.recordSystemMessage({
636200
+ const params = {
636155
636201
  chatSessionStore: this.chatSessionStore,
636156
636202
  contextManagerV2: this.contextManagerV2,
636157
636203
  applicationId: this.config.applicationId
636158
- }, "Integration setup", "The user closed the integration setup form.");
636204
+ };
636205
+ await this.clark.recordSystemMessage(params, "Environment event", "User closed the integration setup form. The integration setup might not have been completed successfully.", { role: "user" });
636159
636206
  }
636160
636207
  async handleUserCanceled() {
636161
636208
  if (!this.isBusy()) {
@@ -638520,7 +638567,7 @@ var ActivityTracker = class {
638520
638567
  // ../../../vite-plugin-file-sync/dist/lock-service/index.js
638521
638568
  var LOCK_HEARTBEAT_INTERVAL_MS = 30 * 1e3;
638522
638569
  var LOCK_BUFFER_MS = 30 * 1e3;
638523
- var STARTUP_CONNECTION_TIMEOUT_MS = 1 * 60 * 1e3;
638570
+ var STARTUP_CONNECTION_TIMEOUT_MS = 90 * 1e3;
638524
638571
  var LockServiceStatus;
638525
638572
  (function(LockServiceStatus2) {
638526
638573
  LockServiceStatus2["IDLE"] = "IDLE";
@@ -662055,7 +662102,7 @@ var parseYaml3;
662055
662102
  async function loadYaml(file2) {
662056
662103
  const content9 = await read_file_default(file2);
662057
662104
  if (!parseYaml3) {
662058
- ({ __parsePrettierYamlConfig: parseYaml3 } = await import("./yaml-JBLSVWHO.js"));
662105
+ ({ __parsePrettierYamlConfig: parseYaml3 } = await import("./yaml-YN3GCGGE.js"));
662059
662106
  }
662060
662107
  try {
662061
662108
  return parseYaml3(content9);
@@ -667449,7 +667496,7 @@ function createParsersAndPrinters(modules) {
667449
667496
  }
667450
667497
  var estreePlugin = createParsersAndPrinters([
667451
667498
  {
667452
- importPlugin: () => import("./estree-YC3245W3.js"),
667499
+ importPlugin: () => import("./estree-RFYOIZSJ.js"),
667453
667500
  printers: ["estree", "estree-json"]
667454
667501
  }
667455
667502
  ]);
@@ -667473,11 +667520,11 @@ var languages = [
667473
667520
  ];
667474
667521
  var { parsers: parsers12, printers } = createParsersAndPrinters([
667475
667522
  {
667476
- importPlugin: () => import("./acorn-DTAWJNAE.js"),
667523
+ importPlugin: () => import("./acorn-LT5FWJHN.js"),
667477
667524
  parsers: ["acorn", "espree"]
667478
667525
  },
667479
667526
  {
667480
- importPlugin: () => import("./angular-OJI3L6QG.js"),
667527
+ importPlugin: () => import("./angular-XJOC7ZTH.js"),
667481
667528
  parsers: [
667482
667529
  "__ng_action",
667483
667530
  "__ng_binding",
@@ -667486,7 +667533,7 @@ var { parsers: parsers12, printers } = createParsersAndPrinters([
667486
667533
  ]
667487
667534
  },
667488
667535
  {
667489
- importPlugin: () => import("./babel-ITWGFRI6.js"),
667536
+ importPlugin: () => import("./babel-AKPPDZQS.js"),
667490
667537
  parsers: [
667491
667538
  "babel",
667492
667539
  "babel-flow",
@@ -667505,44 +667552,44 @@ var { parsers: parsers12, printers } = createParsersAndPrinters([
667505
667552
  ]
667506
667553
  },
667507
667554
  {
667508
- importPlugin: () => import("./flow-XN4H56LF.js"),
667555
+ importPlugin: () => import("./flow-VFQUIL7I.js"),
667509
667556
  parsers: ["flow"]
667510
667557
  },
667511
667558
  {
667512
- importPlugin: () => import("./glimmer-XZ2VXSVH.js"),
667559
+ importPlugin: () => import("./glimmer-HMWYZ5EL.js"),
667513
667560
  parsers: ["glimmer"],
667514
667561
  printers: ["glimmer"]
667515
667562
  },
667516
667563
  {
667517
- importPlugin: () => import("./graphql-DHJNPYTY.js"),
667564
+ importPlugin: () => import("./graphql-7ZJUJSPH.js"),
667518
667565
  parsers: ["graphql"],
667519
667566
  printers: ["graphql"]
667520
667567
  },
667521
667568
  {
667522
- importPlugin: () => import("./html-R5POQGBC.js"),
667569
+ importPlugin: () => import("./html-NLFYWYL2.js"),
667523
667570
  parsers: ["html", "angular", "vue", "lwc", "mjml"],
667524
667571
  printers: ["html"]
667525
667572
  },
667526
667573
  {
667527
- importPlugin: () => import("./markdown-KNKZSTIC.js"),
667574
+ importPlugin: () => import("./markdown-ABCVR42Q.js"),
667528
667575
  parsers: ["markdown", "mdx", "remark"],
667529
667576
  printers: ["mdast"]
667530
667577
  },
667531
667578
  {
667532
- importPlugin: () => import("./meriyah-GOXKNHZ4.js"),
667579
+ importPlugin: () => import("./meriyah-ZLBKONBJ.js"),
667533
667580
  parsers: ["meriyah"]
667534
667581
  },
667535
667582
  {
667536
- importPlugin: () => import("./postcss-4XFVTGEK.js"),
667583
+ importPlugin: () => import("./postcss-TI5XP2XZ.js"),
667537
667584
  parsers: ["css", "less", "scss"],
667538
667585
  printers: ["postcss"]
667539
667586
  },
667540
667587
  {
667541
- importPlugin: () => import("./typescript-TZV36AFK.js"),
667588
+ importPlugin: () => import("./typescript-MRHGY5VZ.js"),
667542
667589
  parsers: ["typescript"]
667543
667590
  },
667544
667591
  {
667545
- importPlugin: () => import("./yaml-JBLSVWHO.js"),
667592
+ importPlugin: () => import("./yaml-YN3GCGGE.js"),
667546
667593
  parsers: ["yaml"],
667547
667594
  printers: ["yaml"]
667548
667595
  }
@@ -671711,6 +671758,11 @@ async function collectSdkApisFromRegistry(root3, fs44) {
671711
671758
  }
671712
671759
 
671713
671760
  // ../sdk/dist/vite-plugin-generate-api-build-manifest.mjs
671761
+ var BUILD_MANIFEST_SUFFIX = path65.join("lib", "user-facing", "build-manifest.js");
671762
+ var BUILD_MANIFEST_HASHED_RE = /[\\/]build-manifest(?:-[A-Za-z0-9]+)?\.js$/;
671763
+ function isBuildManifestModule(id2) {
671764
+ return id2.endsWith(BUILD_MANIFEST_SUFFIX) || BUILD_MANIFEST_HASHED_RE.test(id2);
671765
+ }
671714
671766
  function generateApiBuildManifestPlugin(root3) {
671715
671767
  const viteLogger = createLogger3();
671716
671768
  const logger15 = getLogger2();
@@ -671728,28 +671780,26 @@ function generateApiBuildManifestPlugin(root3) {
671728
671780
  };
671729
671781
  const sdkApiEnabled = (0, import_shared62.isSdkApiTemplate)(process.env.SUPERBLOCKS_APP_TEMPLATE_NAME);
671730
671782
  const apiFiles = {};
671731
- let buildManifest = { apis: {}, apiDependencies: [], sdkApis: {} };
671783
+ let manifestCode = "export default {};";
671732
671784
  return {
671733
671785
  name: "sb-generate-build-manifest",
671734
671786
  apply: "build",
671735
671787
  enforce: "pre",
671736
671788
  async buildStart() {
671737
- if (sdkApiEnabled)
671738
- return;
671739
- const apiDocuments = await (0, import_fast_glob3.default)(["**/api.yaml", "**/api.yml"], {
671740
- cwd: root3
671741
- });
671742
- for (const apiFilePath of apiDocuments) {
671743
- const absoluteApiFilePath = path65.join(root3, apiFilePath);
671744
- const document2 = await import_fs_extra2.default.readFile(absoluteApiFilePath, "utf-8");
671745
- const apiPb = import_yaml9.default.parse(document2);
671746
- await (0, import_util43.resolveLanguageSpecificStepContentFromBlocks)(path65.dirname(absoluteApiFilePath), apiPb.blocks ?? [], {});
671747
- const pageName = getPageName(apiFilePath);
671748
- apiPb.metadata.id = apiPb.metadata.name;
671749
- apiFiles[apiFilePath] = { apiPb, pageName };
671789
+ if (!sdkApiEnabled) {
671790
+ const apiDocuments = await (0, import_fast_glob3.default)(["**/api.yaml", "**/api.yml"], {
671791
+ cwd: root3
671792
+ });
671793
+ for (const apiFilePath of apiDocuments) {
671794
+ const absoluteApiFilePath = path65.join(root3, apiFilePath);
671795
+ const document2 = await import_fs_extra2.default.readFile(absoluteApiFilePath, "utf-8");
671796
+ const apiPb = import_yaml9.default.parse(document2);
671797
+ await (0, import_util43.resolveLanguageSpecificStepContentFromBlocks)(path65.dirname(absoluteApiFilePath), apiPb.blocks ?? [], {});
671798
+ const pageName = getPageName(apiFilePath);
671799
+ apiPb.metadata.id = apiPb.metadata.name;
671800
+ apiFiles[apiFilePath] = { apiPb, pageName };
671801
+ }
671750
671802
  }
671751
- },
671752
- async generateBundle(_options, bundle) {
671753
671803
  const allApis = Object.entries(apiFiles).reduce((acc, [id2, api]) => {
671754
671804
  acc[id2] = {
671755
671805
  api,
@@ -671761,17 +671811,21 @@ function generateApiBuildManifestPlugin(root3) {
671761
671811
  pathExists: (p) => import_fs_extra2.default.pathExists(p),
671762
671812
  readFile: (p, enc) => import_fs_extra2.default.readFile(p, enc)
671763
671813
  }) : {};
671764
- buildManifest = {
671814
+ manifestCode = `export default ${JSON.stringify({
671765
671815
  apis: allApis,
671766
671816
  apiDependencies: [],
671767
671817
  sdkApis
671768
- };
671769
- for (const [fileName, chunk] of Object.entries(bundle)) {
671770
- if (fileName.startsWith("assets/build-manifest") && fileName.endsWith(".js")) {
671771
- if (chunk.type === "chunk") {
671772
- chunk.code = `export default ${JSON.stringify(buildManifest)};`;
671773
- }
671774
- }
671818
+ })};`;
671819
+ },
671820
+ load(id2) {
671821
+ if (isBuildManifestModule(id2)) {
671822
+ return manifestCode;
671823
+ }
671824
+ },
671825
+ augmentChunkHash(chunkInfo) {
671826
+ const hasBuildManifest = Object.keys(chunkInfo.modules).some(isBuildManifestModule);
671827
+ if (hasBuildManifest) {
671828
+ return manifestCode;
671775
671829
  }
671776
671830
  }
671777
671831
  };
@@ -680402,7 +680456,7 @@ async function handleLockConflict(error40, lockSvc, span, logger15) {
680402
680456
  }
680403
680457
  async function readPkgJson(cwd) {
680404
680458
  try {
680405
- const { readPackage } = await import("./read-pkg-OMEN5CIF.js");
680459
+ const { readPackage } = await import("./read-pkg-HSGTZLKQ.js");
680406
680460
  return await readPackage({ cwd });
680407
680461
  } catch {
680408
680462
  return null;
@@ -681742,4 +681796,4 @@ serve-static/index.js:
681742
681796
  chokidar/esm/index.js:
681743
681797
  (*! chokidar - MIT License (c) 2012 Paul Miller (paulmillr.com) *)
681744
681798
  */
681745
- //# sourceMappingURL=chunk-OWD3DVW7.js.map
681799
+ //# sourceMappingURL=chunk-IIUMYYOG.js.map