@mintlify/cli 4.0.1488 → 4.0.1489
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 +7 -8
- 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 +0 -0
- 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 +7 -7
- package/src/format.tsx +11 -6
package/bin/update.js
CHANGED
|
File without changes
|
package/bin/vendor/converter.js
CHANGED
|
File without changes
|
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.1489",
|
|
4
4
|
"description": "The Mintlify CLI",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=18.0.0"
|
|
@@ -45,11 +45,11 @@
|
|
|
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.1140",
|
|
49
|
+
"@mintlify/link-rot": "3.0.1342",
|
|
50
50
|
"@mintlify/models": "0.0.354",
|
|
51
|
-
"@mintlify/prebuild": "1.0.
|
|
52
|
-
"@mintlify/previewing": "4.0.
|
|
51
|
+
"@mintlify/prebuild": "1.0.1294",
|
|
52
|
+
"@mintlify/previewing": "4.0.1366",
|
|
53
53
|
"@mintlify/validation": "0.1.851",
|
|
54
54
|
"adm-zip": "0.6.0",
|
|
55
55
|
"chalk": "5.2.0",
|
|
@@ -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.373",
|
|
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": "840cd259e3dbb4c9cbc14ed3b4b53d9097de0f10"
|
|
109
109
|
}
|
package/src/format.tsx
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
createMintIgnoreMatcher,
|
|
3
|
+
isMintIgnoredBy,
|
|
4
|
+
processMintIgnoreString,
|
|
5
|
+
type MintIgnoreMatcher,
|
|
6
|
+
} from '@mintlify/common';
|
|
2
7
|
import { getMintIgnore } from '@mintlify/prebuild';
|
|
3
8
|
import { addLog, ErrorLog, SuccessLog } from '@mintlify/previewing';
|
|
4
9
|
import fs from 'node:fs/promises';
|
|
@@ -15,16 +20,15 @@ async function getGitIgnore(): Promise<string[]> {
|
|
|
15
20
|
}
|
|
16
21
|
}
|
|
17
22
|
|
|
18
|
-
async function* walk(dir: string,
|
|
23
|
+
async function* walk(dir: string, matcher: MintIgnoreMatcher): AsyncGenerator<string> {
|
|
19
24
|
const entries = await fs.readdir(dir, { withFileTypes: true });
|
|
20
25
|
for (const entry of entries) {
|
|
21
26
|
const full = path.join(dir, entry.name);
|
|
22
27
|
const relative = path.relative(CMD_EXEC_PATH, full).split(path.sep).join('/');
|
|
28
|
+
if (isMintIgnoredBy(relative, matcher, entry.isDirectory())) continue;
|
|
23
29
|
if (entry.isDirectory()) {
|
|
24
|
-
|
|
25
|
-
yield* walk(full, ignores);
|
|
30
|
+
yield* walk(full, matcher);
|
|
26
31
|
} else if (entry.name.endsWith('.mdx')) {
|
|
27
|
-
if (isMintIgnored(relative, ignores)) continue;
|
|
28
32
|
yield full;
|
|
29
33
|
}
|
|
30
34
|
}
|
|
@@ -33,11 +37,12 @@ async function* walk(dir: string, ignores: string[]): AsyncGenerator<string> {
|
|
|
33
37
|
export const formatHandler = async (): Promise<void> => {
|
|
34
38
|
const { mdxToPm, pmToMdx, canonicalPmToMdxOptions } = await import('./vendor/converter.js');
|
|
35
39
|
const ignores = [...(await getGitIgnore()), ...(await getMintIgnore(CMD_EXEC_PATH))];
|
|
40
|
+
const matcher = createMintIgnoreMatcher(ignores);
|
|
36
41
|
let total = 0;
|
|
37
42
|
let changed = 0;
|
|
38
43
|
let failed = 0;
|
|
39
44
|
|
|
40
|
-
for await (const file of walk(CMD_EXEC_PATH,
|
|
45
|
+
for await (const file of walk(CMD_EXEC_PATH, matcher)) {
|
|
41
46
|
total++;
|
|
42
47
|
const relative = path.relative(CMD_EXEC_PATH, file);
|
|
43
48
|
try {
|