@mintlify/cli 4.0.1544 → 4.0.1545

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 (78) hide show
  1. package/.turbo/turbo-build.log +0 -0
  2. package/bin/accessibility.js +0 -0
  3. package/bin/accessibilityCheck.js +0 -0
  4. package/bin/addDomain.js +0 -0
  5. package/bin/agent-harness/agentPreflight.js +0 -0
  6. package/bin/agent-harness/buildTaskPrompt.js +0 -0
  7. package/bin/agent-harness/countReport.js +0 -0
  8. package/bin/agent-harness/discoverCodeBlocks.js +0 -0
  9. package/bin/agent-harness/executeCodeBlocks.js +0 -0
  10. package/bin/agent-harness/filterSelectedPages.js +0 -0
  11. package/bin/agent-harness/generateTestCode.js +0 -0
  12. package/bin/agent-harness/index.js +0 -0
  13. package/bin/agent-harness/loadAgentSdk.js +0 -0
  14. package/bin/agent-harness/manifest.js +0 -0
  15. package/bin/agent-harness/mapWithConcurrency.js +0 -0
  16. package/bin/agent-harness/runHistory.js +0 -0
  17. package/bin/agent-harness/runSave.js +0 -0
  18. package/bin/agent-harness/setupFolders.js +0 -0
  19. package/bin/agent-harness/tasks/checkTestability.js +0 -0
  20. package/bin/agent-harness/types.js +0 -0
  21. package/bin/analytics/client.js +0 -0
  22. package/bin/analytics/dates.js +0 -0
  23. package/bin/analytics/filters.js +0 -0
  24. package/bin/analytics/format.js +0 -0
  25. package/bin/analytics/index.js +0 -0
  26. package/bin/analytics/output.js +0 -0
  27. package/bin/analytics/types.js +0 -0
  28. package/bin/authenticatedFetch.js +0 -0
  29. package/bin/callbackServer.js +0 -0
  30. package/bin/cli.js +0 -0
  31. package/bin/comingSoon.js +0 -0
  32. package/bin/config.js +0 -0
  33. package/bin/constants.js +0 -0
  34. package/bin/format.js +0 -0
  35. package/bin/helpers.js +0 -0
  36. package/bin/idToken.js +0 -0
  37. package/bin/index.js +0 -0
  38. package/bin/indexSetup/clients.js +0 -0
  39. package/bin/indexSetup/configFile.js +0 -0
  40. package/bin/indexSetup/engine.js +0 -0
  41. package/bin/indexSetup/rule.js +0 -0
  42. package/bin/indexSetup/setup.js +0 -0
  43. package/bin/init.js +0 -0
  44. package/bin/keyring.js +0 -0
  45. package/bin/login.js +0 -0
  46. package/bin/logout.js +0 -0
  47. package/bin/mdxAccessibility.js +0 -0
  48. package/bin/mdxLinter.js +0 -0
  49. package/bin/middlewares/subdomainMiddleware.js +0 -0
  50. package/bin/middlewares/telemetryMiddleware.js +0 -0
  51. package/bin/mintTest.js +0 -0
  52. package/bin/mintTestFilePreview.js +0 -0
  53. package/bin/mintTestNav.js +0 -0
  54. package/bin/mintTestTelemetry.js +0 -0
  55. package/bin/mintTestText.js +0 -0
  56. package/bin/mintTestTree.js +0 -0
  57. package/bin/mintTestUi.js +0 -0
  58. package/bin/openApiCheck.js +0 -0
  59. package/bin/resolveFiles.js +0 -0
  60. package/bin/score/client.js +0 -0
  61. package/bin/score/index.js +0 -0
  62. package/bin/score/types.js +0 -0
  63. package/bin/signup.js +0 -0
  64. package/bin/start.js +0 -0
  65. package/bin/status.js +0 -0
  66. package/bin/telemetry/client.js +0 -0
  67. package/bin/telemetry/distinctId.js +0 -0
  68. package/bin/telemetry/track.js +0 -0
  69. package/bin/templates.js +0 -0
  70. package/bin/tokenRefresh.js +0 -0
  71. package/bin/tsconfig.build.tsbuildinfo +1 -1
  72. package/bin/update.js +0 -0
  73. package/bin/vendor/converter.js +27 -3
  74. package/bin/welcome.js +0 -0
  75. package/bin/workflows/client.js +0 -0
  76. package/bin/workflows/index.js +0 -0
  77. package/bin/workflows/types.js +0 -0
  78. package/package.json +3 -3
package/bin/update.js CHANGED
File without changes
@@ -3002,6 +3002,7 @@ var SerializerState = class {
3002
3002
  this.inTable = false;
3003
3003
  this.inHtmlTable = false;
3004
3004
  this.inCodeSection = false;
3005
+ this.keptBlankLines = /* @__PURE__ */ new Set();
3005
3006
  this.hasReferenceDefinitions = false;
3006
3007
  this.indentSize = 2;
3007
3008
  this.sourceMap = null;
@@ -3498,8 +3499,11 @@ function renderList(state, node, ordered, renderContent2) {
3498
3499
  const itemOutput = itemState.out;
3499
3500
  const lines = itemOutput.split("\n");
3500
3501
  const parentContentStarts = [];
3502
+ let lineStart = 0;
3501
3503
  for (let j = 0; j < lines.length; j++) {
3502
3504
  const line = (_a = lines[j]) !== null && _a !== void 0 ? _a : "";
3505
+ const keepsBlankLine = !isTight || itemState.keptBlankLines.has(lineStart);
3506
+ lineStart += line.length + 1;
3503
3507
  if (j === 0) {
3504
3508
  state.write(prefix);
3505
3509
  parentContentStarts.push(state.length);
@@ -3509,8 +3513,9 @@ function renderList(state, node, ordered, renderContent2) {
3509
3513
  state.write(indent);
3510
3514
  parentContentStarts.push(state.length);
3511
3515
  state.write(line);
3512
- } else if (!isTight && j < lines.length - 1) {
3516
+ } else if (keepsBlankLine && j < lines.length - 1) {
3513
3517
  state.ensureBlankLine();
3518
+ state.keptBlankLines.add(state.length - 1);
3514
3519
  parentContentStarts.push(state.length);
3515
3520
  } else {
3516
3521
  parentContentStarts.push(state.length);
@@ -3527,7 +3532,7 @@ function renderTable(state, node, renderInline2, renderNode2) {
3527
3532
  state.inTable = false;
3528
3533
  return;
3529
3534
  }
3530
- if (getColumnWidths(node).some((width) => width !== null)) {
3535
+ if (!isPipeTable(node)) {
3531
3536
  state.inHtmlTable = true;
3532
3537
  renderHtmlTable(state, node, renderInline2, renderNode2);
3533
3538
  state.inHtmlTable = false;
@@ -3563,6 +3568,9 @@ function renderTable(state, node, renderInline2, renderNode2) {
3563
3568
  state.closeBlock();
3564
3569
  state.inTable = false;
3565
3570
  }
3571
+ function isPipeTable(table) {
3572
+ return getColumnWidths(table).every((width) => width === null);
3573
+ }
3566
3574
  function getColumnWidths(table) {
3567
3575
  var _a;
3568
3576
  const widths = [];
@@ -4580,6 +4588,7 @@ var BLOCK_LINE_TYPES = /* @__PURE__ */ new Set([
4580
4588
  BLOCK_TYPES.tree,
4581
4589
  BLOCK_TYPES.visibility
4582
4590
  ]);
4591
+ var LAZY_CONTINUATION_TYPES = /* @__PURE__ */ new Set(["blockquote", "bulletList", "orderedList"]);
4583
4592
  var REFERENCE_DEFINITION_TYPES = /* @__PURE__ */ new Set(["definition", "footnoteDefinition"]);
4584
4593
  function hasReferenceDefinitions(doc) {
4585
4594
  let found = false;
@@ -4646,13 +4655,28 @@ function renderChild(state, node, index) {
4646
4655
  const child = node.child(index);
4647
4656
  if (index > 0) {
4648
4657
  state.ensureNewLine();
4649
- if (needsBlankLine(node.child(index - 1), child))
4658
+ const previous = node.child(index - 1);
4659
+ if (needsBlankLine(previous, child))
4650
4660
  state.ensureNewLine();
4661
+ if (continuesLazily(previous, child))
4662
+ state.keptBlankLines.add(state.length);
4651
4663
  }
4652
4664
  const start = state.beginBlock(index);
4653
4665
  renderNode(state, child, node, index);
4654
4666
  state.endBlock(start);
4655
4667
  }
4668
+ function continuesLazily(previous, current) {
4669
+ if (!isNonEmptyParagraph(current))
4670
+ return false;
4671
+ if (previous.type.name === "paragraph")
4672
+ return isNonEmptyParagraph(previous);
4673
+ if (previous.type.name === "table")
4674
+ return isPipeTable(previous);
4675
+ return LAZY_CONTINUATION_TYPES.has(previous.type.name);
4676
+ }
4677
+ function isNonEmptyParagraph(node) {
4678
+ return node.type.name === "paragraph" && node.content.size > 0;
4679
+ }
4656
4680
  function needsBlankLine(prev, current) {
4657
4681
  return BLOCK_LINE_TYPES.has(prev.type.name) || BLOCK_LINE_TYPES.has(current.type.name);
4658
4682
  }
package/bin/welcome.js CHANGED
File without changes
File without changes
File without changes
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mintlify/cli",
3
- "version": "4.0.1544",
3
+ "version": "4.0.1545",
4
4
  "description": "The Mintlify CLI",
5
5
  "engines": {
6
6
  "node": ">=18.0.0"
@@ -86,7 +86,7 @@
86
86
  "keytar": "7.9.0"
87
87
  },
88
88
  "devDependencies": {
89
- "@mintlify/editor": "0.0.425",
89
+ "@mintlify/editor": "0.0.426",
90
90
  "@mintlify/ts-config": "2.0.2",
91
91
  "@tsconfig/recommended": "1.0.2",
92
92
  "@types/detect-port": "1.3.2",
@@ -105,5 +105,5 @@
105
105
  "vitest": "2.1.9",
106
106
  "vitest-mock-process": "1.0.4"
107
107
  },
108
- "gitHead": "1e2d74c2ae0556a525b99065d70e633738f10d98"
108
+ "gitHead": "65546dcc7a1820880fecc8cdc4009d6fd41c68a3"
109
109
  }