@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/.turbo/turbo-build.log
CHANGED
|
File without changes
|
package/bin/accessibility.js
CHANGED
|
File without changes
|
|
File without changes
|
package/bin/addDomain.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/bin/analytics/client.js
CHANGED
|
File without changes
|
package/bin/analytics/dates.js
CHANGED
|
File without changes
|
package/bin/analytics/filters.js
CHANGED
|
File without changes
|
package/bin/analytics/format.js
CHANGED
|
File without changes
|
package/bin/analytics/index.js
CHANGED
|
File without changes
|
package/bin/analytics/output.js
CHANGED
|
File without changes
|
package/bin/analytics/types.js
CHANGED
|
File without changes
|
|
File without changes
|
package/bin/callbackServer.js
CHANGED
|
File without changes
|
package/bin/cli.js
CHANGED
|
File without changes
|
package/bin/comingSoon.js
CHANGED
|
File without changes
|
package/bin/config.js
CHANGED
|
File without changes
|
package/bin/constants.js
CHANGED
|
File without changes
|
package/bin/format.js
CHANGED
|
@@ -33,7 +33,7 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar
|
|
|
33
33
|
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
|
34
34
|
};
|
|
35
35
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
36
|
-
import {
|
|
36
|
+
import { createMintIgnoreMatcher, isMintIgnoredBy, processMintIgnoreString, } from '@mintlify/common';
|
|
37
37
|
import { getMintIgnore } from '@mintlify/prebuild';
|
|
38
38
|
import { addLog, ErrorLog, SuccessLog } from '@mintlify/previewing';
|
|
39
39
|
import fs from 'node:fs/promises';
|
|
@@ -50,20 +50,18 @@ function getGitIgnore() {
|
|
|
50
50
|
}
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
|
-
function walk(dir,
|
|
53
|
+
function walk(dir, matcher) {
|
|
54
54
|
return __asyncGenerator(this, arguments, function* walk_1() {
|
|
55
55
|
const entries = yield __await(fs.readdir(dir, { withFileTypes: true }));
|
|
56
56
|
for (const entry of entries) {
|
|
57
57
|
const full = path.join(dir, entry.name);
|
|
58
58
|
const relative = path.relative(CMD_EXEC_PATH, full).split(path.sep).join('/');
|
|
59
|
+
if (isMintIgnoredBy(relative, matcher, entry.isDirectory()))
|
|
60
|
+
continue;
|
|
59
61
|
if (entry.isDirectory()) {
|
|
60
|
-
|
|
61
|
-
continue;
|
|
62
|
-
yield __await(yield* __asyncDelegator(__asyncValues(walk(full, ignores))));
|
|
62
|
+
yield __await(yield* __asyncDelegator(__asyncValues(walk(full, matcher))));
|
|
63
63
|
}
|
|
64
64
|
else if (entry.name.endsWith('.mdx')) {
|
|
65
|
-
if (isMintIgnored(relative, ignores))
|
|
66
|
-
continue;
|
|
67
65
|
yield yield __await(full);
|
|
68
66
|
}
|
|
69
67
|
}
|
|
@@ -73,11 +71,12 @@ export const formatHandler = () => __awaiter(void 0, void 0, void 0, function* (
|
|
|
73
71
|
var _a, e_1, _b, _c;
|
|
74
72
|
const { mdxToPm, pmToMdx, canonicalPmToMdxOptions } = yield import('./vendor/converter.js');
|
|
75
73
|
const ignores = [...(yield getGitIgnore()), ...(yield getMintIgnore(CMD_EXEC_PATH))];
|
|
74
|
+
const matcher = createMintIgnoreMatcher(ignores);
|
|
76
75
|
let total = 0;
|
|
77
76
|
let changed = 0;
|
|
78
77
|
let failed = 0;
|
|
79
78
|
try {
|
|
80
|
-
for (var _d = true, _e = __asyncValues(walk(CMD_EXEC_PATH,
|
|
79
|
+
for (var _d = true, _e = __asyncValues(walk(CMD_EXEC_PATH, matcher)), _f; _f = yield _e.next(), _a = _f.done, !_a; _d = true) {
|
|
81
80
|
_c = _f.value;
|
|
82
81
|
_d = false;
|
|
83
82
|
const file = _c;
|
package/bin/helpers.js
CHANGED
|
File without changes
|
package/bin/idToken.js
CHANGED
|
File without changes
|
package/bin/index.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/bin/indexSetup/engine.js
CHANGED
|
File without changes
|
package/bin/indexSetup/rule.js
CHANGED
|
File without changes
|
package/bin/indexSetup/setup.js
CHANGED
|
File without changes
|
package/bin/init.js
CHANGED
|
File without changes
|
package/bin/keyring.js
CHANGED
|
File without changes
|
package/bin/login.js
CHANGED
|
File without changes
|
package/bin/logout.js
CHANGED
|
File without changes
|
package/bin/mdxAccessibility.js
CHANGED
|
File without changes
|
package/bin/mdxLinter.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/bin/mintTest.js
CHANGED
|
File without changes
|
|
File without changes
|
package/bin/mintTestNav.js
CHANGED
|
File without changes
|
package/bin/mintTestTelemetry.js
CHANGED
|
File without changes
|
package/bin/mintTestText.js
CHANGED
|
File without changes
|
package/bin/mintTestTree.js
CHANGED
|
File without changes
|
package/bin/mintTestUi.js
CHANGED
|
File without changes
|
package/bin/openApiCheck.js
CHANGED
|
File without changes
|
package/bin/resolveFiles.js
CHANGED
|
File without changes
|
package/bin/score/client.js
CHANGED
|
File without changes
|
package/bin/score/index.js
CHANGED
|
File without changes
|
package/bin/score/types.js
CHANGED
|
File without changes
|
package/bin/signup.js
CHANGED
|
File without changes
|
package/bin/start.js
CHANGED
|
File without changes
|
package/bin/status.js
CHANGED
|
File without changes
|
package/bin/telemetry/client.js
CHANGED
|
File without changes
|
|
File without changes
|
package/bin/telemetry/track.js
CHANGED
|
File without changes
|
package/bin/templates.js
CHANGED
|
File without changes
|
package/bin/tokenRefresh.js
CHANGED
|
File without changes
|