@mintlify/cli 4.0.1543 → 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.
- package/.turbo/turbo-build.log +0 -0
- package/bin/accessibility.js +0 -0
- package/bin/accessibilityCheck.js +0 -0
- package/bin/addDomain.js +0 -0
- package/bin/agent-harness/agentPreflight.js +0 -0
- package/bin/agent-harness/buildTaskPrompt.js +0 -0
- package/bin/agent-harness/countReport.js +0 -0
- package/bin/agent-harness/discoverCodeBlocks.js +0 -0
- package/bin/agent-harness/executeCodeBlocks.js +0 -0
- package/bin/agent-harness/filterSelectedPages.js +0 -0
- package/bin/agent-harness/generateTestCode.js +0 -0
- package/bin/agent-harness/index.js +0 -0
- package/bin/agent-harness/loadAgentSdk.js +0 -0
- package/bin/agent-harness/manifest.js +0 -0
- package/bin/agent-harness/mapWithConcurrency.js +0 -0
- package/bin/agent-harness/runHistory.js +0 -0
- package/bin/agent-harness/runSave.js +0 -0
- package/bin/agent-harness/setupFolders.js +0 -0
- package/bin/agent-harness/tasks/checkTestability.js +0 -0
- package/bin/agent-harness/types.js +0 -0
- package/bin/analytics/client.js +0 -0
- package/bin/analytics/dates.js +0 -0
- package/bin/analytics/filters.js +0 -0
- package/bin/analytics/format.js +0 -0
- package/bin/analytics/index.js +0 -0
- package/bin/analytics/output.js +0 -0
- package/bin/analytics/types.js +0 -0
- package/bin/authenticatedFetch.js +0 -0
- package/bin/callbackServer.js +0 -0
- package/bin/cli.js +0 -0
- package/bin/comingSoon.js +0 -0
- package/bin/config.js +0 -0
- package/bin/constants.js +0 -0
- package/bin/format.js +0 -0
- package/bin/helpers.js +0 -0
- package/bin/idToken.js +0 -0
- package/bin/index.js +0 -0
- package/bin/indexSetup/clients.js +0 -0
- package/bin/indexSetup/configFile.js +0 -0
- package/bin/indexSetup/engine.js +0 -0
- package/bin/indexSetup/rule.js +0 -0
- package/bin/indexSetup/setup.js +0 -0
- package/bin/init.js +0 -0
- package/bin/keyring.js +0 -0
- package/bin/login.js +0 -0
- package/bin/logout.js +0 -0
- package/bin/mdxAccessibility.js +0 -0
- package/bin/mdxLinter.js +0 -0
- package/bin/middlewares/subdomainMiddleware.js +0 -0
- package/bin/middlewares/telemetryMiddleware.js +0 -0
- package/bin/mintTest.js +0 -0
- package/bin/mintTestFilePreview.js +0 -0
- package/bin/mintTestNav.js +0 -0
- package/bin/mintTestTelemetry.js +0 -0
- package/bin/mintTestText.js +0 -0
- package/bin/mintTestTree.js +0 -0
- package/bin/mintTestUi.js +0 -0
- package/bin/openApiCheck.js +0 -0
- package/bin/resolveFiles.js +0 -0
- package/bin/score/client.js +0 -0
- package/bin/score/index.js +0 -0
- package/bin/score/types.js +0 -0
- package/bin/signup.js +0 -0
- package/bin/start.js +0 -0
- package/bin/status.js +0 -0
- package/bin/telemetry/client.js +0 -0
- package/bin/telemetry/distinctId.js +0 -0
- package/bin/telemetry/track.js +0 -0
- package/bin/templates.js +0 -0
- package/bin/tokenRefresh.js +0 -0
- package/bin/tsconfig.build.tsbuildinfo +1 -1
- package/bin/update.js +0 -0
- package/bin/vendor/converter.js +27 -3
- package/bin/welcome.js +0 -0
- package/bin/workflows/client.js +0 -0
- package/bin/workflows/index.js +0 -0
- package/bin/workflows/types.js +0 -0
- package/package.json +8 -8
package/bin/update.js
CHANGED
|
File without changes
|
package/bin/vendor/converter.js
CHANGED
|
@@ -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 (
|
|
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 (
|
|
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
|
-
|
|
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
|
package/bin/workflows/client.js
CHANGED
|
File without changes
|
package/bin/workflows/index.js
CHANGED
|
File without changes
|
package/bin/workflows/types.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mintlify/cli",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.1545",
|
|
4
4
|
"description": "The Mintlify CLI",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=18.0.0"
|
|
@@ -45,12 +45,12 @@
|
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@inquirer/prompts": "7.9.0",
|
|
48
|
-
"@mintlify/common": "1.0.
|
|
49
|
-
"@mintlify/link-rot": "3.0.
|
|
48
|
+
"@mintlify/common": "1.0.1176",
|
|
49
|
+
"@mintlify/link-rot": "3.0.1381",
|
|
50
50
|
"@mintlify/models": "0.0.362",
|
|
51
|
-
"@mintlify/prebuild": "1.0.
|
|
52
|
-
"@mintlify/previewing": "4.0.
|
|
53
|
-
"@mintlify/validation": "0.1.
|
|
51
|
+
"@mintlify/prebuild": "1.0.1333",
|
|
52
|
+
"@mintlify/previewing": "4.0.1405",
|
|
53
|
+
"@mintlify/validation": "0.1.876",
|
|
54
54
|
"adm-zip": "0.6.0",
|
|
55
55
|
"chalk": "5.2.0",
|
|
56
56
|
"color": "4.2.3",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"keytar": "7.9.0"
|
|
87
87
|
},
|
|
88
88
|
"devDependencies": {
|
|
89
|
-
"@mintlify/editor": "0.0.
|
|
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": "
|
|
108
|
+
"gitHead": "65546dcc7a1820880fecc8cdc4009d6fd41c68a3"
|
|
109
109
|
}
|