@mintlify/cli 4.0.1467 → 4.0.1469

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/bin/mintTest.js CHANGED
@@ -9,14 +9,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  };
10
10
  import path from 'node:path';
11
11
  import { DEFAULT_COMMAND_TIMEOUT_MS, DEFAULT_CONCURRENCY, clearRunSave, countReport, discoverCodeBlocks, loadLatestTestRun, loadRunSave, runCodeTests, } from './agent-harness/index.js';
12
- import { API_URL } from './constants.js';
13
12
  import { CMD_EXEC_PATH, findDocsRoot, isAI, terminate } from './helpers.js';
14
13
  import { getAccessToken } from './keyring.js';
15
14
  import { fileInNavPaths, loadDocsNavScope } from './mintTestNav.js';
16
15
  import { firstLine, taskProblemLabel } from './mintTestText.js';
17
16
  import { formatDuration, runMintTestUi } from './mintTestUi.js';
18
- import { fetchCliStatus } from './status.js';
19
- const ALLOWED_ORGS = new Set(['mintlify', 'mintlify internal']);
20
17
  export function mintTestHandler() {
21
18
  return __awaiter(this, void 0, void 0, function* () {
22
19
  var _a, _b, _c, _d;
@@ -27,23 +24,6 @@ export function mintTestHandler() {
27
24
  yield terminate(1);
28
25
  return;
29
26
  }
30
- const cliStatus = yield fetchCliStatus();
31
- if (!cliStatus.ok) {
32
- const message = cliStatus.reason === 'unauthenticated'
33
- ? 'your session has expired. Run `mint login` to authenticate.'
34
- : cliStatus.reason === 'unreachable'
35
- ? `could not reach Mintlify at ${API_URL}${cliStatus.detail ? ` (${cliStatus.detail})` : ''}.`
36
- : 'unexpected response from Mintlify. Please try again.';
37
- process.stderr.write(`${message}\n`);
38
- yield terminate(1);
39
- return;
40
- }
41
- const orgName = cliStatus.status.org.name;
42
- if (!ALLOWED_ORGS.has(orgName.toLowerCase())) {
43
- process.stderr.write(`mint test is not available for your organization (${orgName}).\n`);
44
- yield terminate(1);
45
- return;
46
- }
47
27
  const targetPath = yield findDocsRoot(CMD_EXEC_PATH);
48
28
  const interactive = process.stdin.isTTY === true &&
49
29
  process.stdout.isTTY === true &&