@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.
Files changed (79) 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 +7 -8
  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 +0 -0
  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 +7 -7
  79. package/src/format.tsx +11 -6
File without changes
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
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/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 { isMintIgnored, processMintIgnoreString } from '@mintlify/common';
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, ignores) {
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
- if (isMintIgnored(`${relative}/`, ignores))
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, ignores)), _f; _f = yield _e.next(), _a = _f.done, !_a; _d = true) {
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
File without changes
File without changes
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
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
File without changes
File without changes
File without changes
File without changes
package/bin/mintTestUi.js CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
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
File without changes
File without changes
File without changes
package/bin/templates.js CHANGED
File without changes
File without changes