@mintlify/cli 4.0.1467 → 4.0.1468

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mintlify/cli",
3
- "version": "4.0.1467",
3
+ "version": "4.0.1468",
4
4
  "description": "The Mintlify CLI",
5
5
  "engines": {
6
6
  "node": ">=18.0.0"
@@ -105,5 +105,5 @@
105
105
  "vitest": "2.1.9",
106
106
  "vitest-mock-process": "1.0.4"
107
107
  },
108
- "gitHead": "467448ed17b5c39cb838780e1baf2c9706fa48e4"
108
+ "gitHead": "8baca715ce0789cc49c2d73efad90254b89411ff"
109
109
  }
package/src/mintTest.tsx CHANGED
@@ -11,15 +11,11 @@ import {
11
11
  runCodeTests,
12
12
  type RunSave,
13
13
  } from './agent-harness/index.js';
14
- import { API_URL } from './constants.js';
15
14
  import { CMD_EXEC_PATH, findDocsRoot, isAI, terminate } from './helpers.js';
16
15
  import { getAccessToken } from './keyring.js';
17
16
  import { fileInNavPaths, loadDocsNavScope } from './mintTestNav.js';
18
17
  import { firstLine, taskProblemLabel } from './mintTestText.js';
19
18
  import { formatDuration, runMintTestUi } from './mintTestUi.js';
20
- import { fetchCliStatus } from './status.js';
21
-
22
- const ALLOWED_ORGS = new Set(['mintlify', 'mintlify internal']);
23
19
 
24
20
  export async function mintTestHandler(): Promise<void> {
25
21
  try {
@@ -29,24 +25,6 @@ export async function mintTestHandler(): Promise<void> {
29
25
  await terminate(1);
30
26
  return;
31
27
  }
32
- const cliStatus = await fetchCliStatus();
33
- if (!cliStatus.ok) {
34
- const message =
35
- cliStatus.reason === 'unauthenticated'
36
- ? 'your session has expired. Run `mint login` to authenticate.'
37
- : cliStatus.reason === 'unreachable'
38
- ? `could not reach Mintlify at ${API_URL}${cliStatus.detail ? ` (${cliStatus.detail})` : ''}.`
39
- : 'unexpected response from Mintlify. Please try again.';
40
- process.stderr.write(`${message}\n`);
41
- await terminate(1);
42
- return;
43
- }
44
- const orgName = cliStatus.status.org.name;
45
- if (!ALLOWED_ORGS.has(orgName.toLowerCase())) {
46
- process.stderr.write(`mint test is not available for your organization (${orgName}).\n`);
47
- await terminate(1);
48
- return;
49
- }
50
28
  const targetPath = await findDocsRoot(CMD_EXEC_PATH);
51
29
  const interactive =
52
30
  process.stdin.isTTY === true &&