@jackwener/opencli 0.9.8 → 1.0.0

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 (97) hide show
  1. package/CDP.md +1 -1
  2. package/CDP.zh-CN.md +1 -1
  3. package/CLI-ELECTRON.md +2 -2
  4. package/CLI-EXPLORER.md +4 -4
  5. package/README.md +15 -57
  6. package/README.zh-CN.md +16 -59
  7. package/SKILL.md +10 -8
  8. package/TESTING.md +7 -7
  9. package/dist/browser/daemon-client.d.ts +37 -0
  10. package/dist/browser/daemon-client.js +82 -0
  11. package/dist/browser/discover.d.ts +11 -34
  12. package/dist/browser/discover.js +15 -205
  13. package/dist/browser/errors.d.ts +6 -20
  14. package/dist/browser/errors.js +24 -63
  15. package/dist/browser/index.d.ts +2 -11
  16. package/dist/browser/index.js +5 -11
  17. package/dist/browser/mcp.d.ts +9 -18
  18. package/dist/browser/mcp.js +70 -284
  19. package/dist/browser/page.d.ts +28 -6
  20. package/dist/browser/page.js +210 -85
  21. package/dist/browser.test.js +4 -225
  22. package/dist/cli-manifest.json +167 -0
  23. package/dist/clis/neteasemusic/like.d.ts +1 -0
  24. package/dist/clis/neteasemusic/like.js +25 -0
  25. package/dist/clis/neteasemusic/lyrics.d.ts +1 -0
  26. package/dist/clis/neteasemusic/lyrics.js +47 -0
  27. package/dist/clis/neteasemusic/next.d.ts +1 -0
  28. package/dist/clis/neteasemusic/next.js +26 -0
  29. package/dist/clis/neteasemusic/play.d.ts +1 -0
  30. package/dist/clis/neteasemusic/play.js +26 -0
  31. package/dist/clis/neteasemusic/playing.d.ts +1 -0
  32. package/dist/clis/neteasemusic/playing.js +59 -0
  33. package/dist/clis/neteasemusic/playlist.d.ts +1 -0
  34. package/dist/clis/neteasemusic/playlist.js +46 -0
  35. package/dist/clis/neteasemusic/prev.d.ts +1 -0
  36. package/dist/clis/neteasemusic/prev.js +25 -0
  37. package/dist/clis/neteasemusic/search.d.ts +1 -0
  38. package/dist/clis/neteasemusic/search.js +52 -0
  39. package/dist/clis/neteasemusic/status.d.ts +1 -0
  40. package/dist/clis/neteasemusic/status.js +16 -0
  41. package/dist/clis/neteasemusic/volume.d.ts +1 -0
  42. package/dist/clis/neteasemusic/volume.js +54 -0
  43. package/dist/daemon.d.ts +13 -0
  44. package/dist/daemon.js +187 -0
  45. package/dist/doctor.d.ts +27 -61
  46. package/dist/doctor.js +70 -601
  47. package/dist/doctor.test.js +30 -170
  48. package/dist/main.js +6 -25
  49. package/dist/pipeline/executor.test.js +1 -0
  50. package/dist/pipeline/steps/browser.js +2 -2
  51. package/dist/pipeline/steps/intercept.js +1 -2
  52. package/dist/setup.d.ts +6 -0
  53. package/dist/setup.js +46 -160
  54. package/dist/types.d.ts +6 -0
  55. package/extension/icons/icon-128.png +0 -0
  56. package/extension/icons/icon-16.png +0 -0
  57. package/extension/icons/icon-32.png +0 -0
  58. package/extension/icons/icon-48.png +0 -0
  59. package/extension/manifest.json +31 -0
  60. package/extension/package.json +16 -0
  61. package/extension/src/background.ts +293 -0
  62. package/extension/src/cdp.ts +125 -0
  63. package/extension/src/protocol.ts +57 -0
  64. package/extension/store-assets/screenshot-1280x800.png +0 -0
  65. package/extension/tsconfig.json +15 -0
  66. package/extension/vite.config.ts +18 -0
  67. package/package.json +5 -5
  68. package/src/browser/daemon-client.ts +113 -0
  69. package/src/browser/discover.ts +18 -232
  70. package/src/browser/errors.ts +30 -100
  71. package/src/browser/index.ts +6 -12
  72. package/src/browser/mcp.ts +78 -278
  73. package/src/browser/page.ts +222 -88
  74. package/src/browser.test.ts +3 -233
  75. package/src/clis/chatgpt/README.md +1 -1
  76. package/src/clis/chatgpt/README.zh-CN.md +1 -1
  77. package/src/clis/neteasemusic/README.md +31 -0
  78. package/src/clis/neteasemusic/README.zh-CN.md +31 -0
  79. package/src/clis/neteasemusic/like.ts +28 -0
  80. package/src/clis/neteasemusic/lyrics.ts +53 -0
  81. package/src/clis/neteasemusic/next.ts +30 -0
  82. package/src/clis/neteasemusic/play.ts +30 -0
  83. package/src/clis/neteasemusic/playing.ts +62 -0
  84. package/src/clis/neteasemusic/playlist.ts +51 -0
  85. package/src/clis/neteasemusic/prev.ts +29 -0
  86. package/src/clis/neteasemusic/search.ts +58 -0
  87. package/src/clis/neteasemusic/status.ts +18 -0
  88. package/src/clis/neteasemusic/volume.ts +61 -0
  89. package/src/daemon.ts +217 -0
  90. package/src/doctor.test.ts +32 -193
  91. package/src/doctor.ts +74 -668
  92. package/src/main.ts +6 -23
  93. package/src/pipeline/executor.test.ts +1 -0
  94. package/src/pipeline/steps/browser.ts +2 -2
  95. package/src/pipeline/steps/intercept.ts +1 -2
  96. package/src/setup.ts +47 -183
  97. package/src/types.ts +1 -0
@@ -1,241 +1,27 @@
1
1
  /**
2
- * MCP server path discovery and argument building.
2
+ * Daemon discovery — simplified from MCP server path discovery.
3
+ *
4
+ * Only needs to check if the daemon is running. No more file system
5
+ * scanning for @playwright/mcp locations.
3
6
  */
4
7
 
5
- import { execSync } from 'node:child_process';
6
- import { fileURLToPath } from 'node:url';
7
- import * as fs from 'node:fs';
8
- import * as os from 'node:os';
9
- import * as path from 'node:path';
10
-
11
- let _cachedMcpServerPath: string | null | undefined;
12
- let _existsSync = fs.existsSync;
13
- let _execSync = execSync;
14
-
15
- function isSupportedMcpEntrypoint(candidate: string): boolean {
16
- const normalized = candidate.replace(/\\/g, '/').toLowerCase();
17
- return normalized.endsWith('/@playwright/mcp/cli.js') ||
18
- normalized.endsWith('/mcp-server-playwright') ||
19
- normalized.endsWith('/mcp-server-playwright.js');
20
- }
21
-
22
- function resolveSupportedMcpPath(candidate: string | null | undefined): string | null {
23
- const trimmed = candidate?.trim();
24
- if (!trimmed || !_existsSync(trimmed)) return null;
25
- return isSupportedMcpEntrypoint(trimmed) ? trimmed : null;
26
- }
27
-
28
- export function resetMcpServerPathCache(): void {
29
- _cachedMcpServerPath = undefined;
30
- }
31
-
32
- export function setMcpDiscoveryTestHooks(input?: {
33
- existsSync?: typeof fs.existsSync;
34
- execSync?: typeof execSync;
35
- }): void {
36
- _existsSync = input?.existsSync ?? fs.existsSync;
37
- _execSync = input?.execSync ?? execSync;
38
- }
39
-
40
- export function findMcpServerPath(): string | null {
41
- if (_cachedMcpServerPath !== undefined) return _cachedMcpServerPath;
42
-
43
- const envMcp = process.env.OPENCLI_MCP_SERVER_PATH;
44
- if (envMcp && _existsSync(envMcp)) {
45
- _cachedMcpServerPath = envMcp;
46
- return _cachedMcpServerPath;
47
- }
48
-
49
- // Check local node_modules first (@playwright/mcp is the modern package)
50
- const localMcp = path.resolve('node_modules', '@playwright', 'mcp', 'cli.js');
51
- if (_existsSync(localMcp)) {
52
- _cachedMcpServerPath = localMcp;
53
- return _cachedMcpServerPath;
54
- }
8
+ import { isDaemonRunning } from './daemon-client.js';
55
9
 
56
- // Check project-relative path
57
- const __dirname2 = path.dirname(fileURLToPath(import.meta.url));
58
- const projectMcp = path.resolve(__dirname2, '..', '..', 'node_modules', '@playwright', 'mcp', 'cli.js');
59
- if (_existsSync(projectMcp)) {
60
- _cachedMcpServerPath = projectMcp;
61
- return _cachedMcpServerPath;
62
- }
63
-
64
- // Check global npm/yarn locations derived from current Node runtime.
65
- const nodePrefix = path.resolve(path.dirname(process.execPath), '..');
66
- const globalNodeModules = path.join(nodePrefix, 'lib', 'node_modules');
67
- const globalMcp = path.join(globalNodeModules, '@playwright', 'mcp', 'cli.js');
68
- if (_existsSync(globalMcp)) {
69
- _cachedMcpServerPath = globalMcp;
70
- return _cachedMcpServerPath;
71
- }
72
-
73
- // Check npm global root directly.
74
- try {
75
- const npmRootGlobal = _execSync('npm root -g 2>/dev/null', {
76
- encoding: 'utf-8',
77
- timeout: 5000,
78
- }).trim();
79
- const npmGlobalMcp = path.join(npmRootGlobal, '@playwright', 'mcp', 'cli.js');
80
- if (npmRootGlobal && _existsSync(npmGlobalMcp)) {
81
- _cachedMcpServerPath = npmGlobalMcp;
82
- return _cachedMcpServerPath;
83
- }
84
- } catch {}
85
-
86
- // Check common locations
87
- const candidates = [
88
- path.join(os.homedir(), '.npm', '_npx'),
89
- path.join(os.homedir(), 'node_modules', '.bin'),
90
- '/usr/local/lib/node_modules',
91
- ];
92
-
93
- // Try npx resolution (legacy package name)
94
- try {
95
- const result = _execSync('npx -y --package=@playwright/mcp which mcp-server-playwright 2>/dev/null', { encoding: 'utf-8', timeout: 10000 }).trim();
96
- const resolved = resolveSupportedMcpPath(result);
97
- if (resolved) {
98
- _cachedMcpServerPath = resolved;
99
- return _cachedMcpServerPath;
100
- }
101
- } catch {}
102
-
103
- // Try which
104
- try {
105
- const result = _execSync('which mcp-server-playwright 2>/dev/null', { encoding: 'utf-8', timeout: 5000 }).trim();
106
- const resolved = resolveSupportedMcpPath(result);
107
- if (resolved) {
108
- _cachedMcpServerPath = resolved;
109
- return _cachedMcpServerPath;
110
- }
111
- } catch {}
112
-
113
- // Search in common npx cache
114
- for (const base of candidates) {
115
- if (!_existsSync(base)) continue;
116
- try {
117
- const found = _execSync(`find "${base}" -type f -path "*/@playwright/mcp/cli.js" 2>/dev/null | head -1`, { encoding: 'utf-8', timeout: 5000 }).trim();
118
- const resolved = resolveSupportedMcpPath(found);
119
- if (resolved) {
120
- _cachedMcpServerPath = resolved;
121
- return _cachedMcpServerPath;
122
- }
123
- } catch {}
124
- }
125
-
126
- _cachedMcpServerPath = null;
127
- return _cachedMcpServerPath;
128
- }
10
+ export { isDaemonRunning };
129
11
 
130
12
  /**
131
- * Chrome 144+ auto-discovery: read DevToolsActivePort file to get CDP endpoint.
132
- *
133
- * Starting with Chrome 144, users can enable remote debugging from
134
- * chrome://inspect#remote-debugging without any command-line flags.
135
- * Chrome writes the active port and browser GUID to a DevToolsActivePort file
136
- * in the user data directory, which we read to construct the WebSocket endpoint.
13
+ * Check daemon status and return connection info.
137
14
  */
138
- export function discoverChromeEndpoint(): string | null {
139
- const candidates: string[] = [];
140
-
141
- // User-specified Chrome data dir takes highest priority
142
- if (process.env.CHROME_USER_DATA_DIR) {
143
- candidates.push(path.join(process.env.CHROME_USER_DATA_DIR, 'DevToolsActivePort'));
144
- }
145
-
146
- // Standard Chrome/Edge user data dirs per platform
147
- if (process.platform === 'win32') {
148
- const localAppData = process.env.LOCALAPPDATA ?? path.join(os.homedir(), 'AppData', 'Local');
149
- candidates.push(path.join(localAppData, 'Google', 'Chrome', 'User Data', 'DevToolsActivePort'));
150
- candidates.push(path.join(localAppData, 'Microsoft', 'Edge', 'User Data', 'DevToolsActivePort'));
151
- } else if (process.platform === 'darwin') {
152
- candidates.push(path.join(os.homedir(), 'Library', 'Application Support', 'Google', 'Chrome', 'DevToolsActivePort'));
153
- candidates.push(path.join(os.homedir(), 'Library', 'Application Support', 'Microsoft Edge', 'DevToolsActivePort'));
154
- } else {
155
- candidates.push(path.join(os.homedir(), '.config', 'google-chrome', 'DevToolsActivePort'));
156
- candidates.push(path.join(os.homedir(), '.config', 'chromium', 'DevToolsActivePort'));
157
- candidates.push(path.join(os.homedir(), '.config', 'microsoft-edge', 'DevToolsActivePort'));
158
- }
159
-
160
- for (const filePath of candidates) {
161
- try {
162
- const content = fs.readFileSync(filePath, 'utf-8').trim();
163
- const lines = content.split('\n');
164
- if (lines.length >= 2) {
165
- const port = parseInt(lines[0], 10);
166
- const browserPath = lines[1]; // e.g. /devtools/browser/<GUID>
167
- if (port > 0 && browserPath.startsWith('/devtools/browser/')) {
168
- return `ws://127.0.0.1:${port}${browserPath}`;
169
- }
170
- }
171
- } catch {}
172
- }
173
- return null;
174
- }
175
-
176
- export function resolveCdpEndpoint(): { endpoint?: string; requestedCdp: boolean } {
177
- const envVal = process.env.OPENCLI_CDP_ENDPOINT;
178
- if (envVal === '1' || envVal?.toLowerCase() === 'true') {
179
- const autoDiscovered = discoverChromeEndpoint();
180
- return { endpoint: autoDiscovered ?? envVal, requestedCdp: true };
181
- }
182
-
183
- if (envVal) {
184
- return { endpoint: envVal, requestedCdp: true };
185
- }
186
-
187
- // Fallback to auto-discovery if not explicitly set
188
- const autoDiscovered = discoverChromeEndpoint();
189
- if (autoDiscovered) {
190
- return { endpoint: autoDiscovered, requestedCdp: true };
191
- }
192
-
193
- return { requestedCdp: false };
194
- }
195
-
196
- function buildRuntimeArgs(input?: { executablePath?: string | null; cdpEndpoint?: string }): string[] {
197
- const args: string[] = [];
198
-
199
- // Priority 1: CDP endpoint (remote Chrome debugging or local Auto-Discovery)
200
- if (input?.cdpEndpoint) {
201
- args.push('--cdp-endpoint', input.cdpEndpoint);
202
- return args;
203
- }
204
-
205
- // Priority 2: Extension mode (local Chrome with MCP Bridge extension)
206
- if (!process.env.CI) {
207
- args.push('--extension');
208
- }
209
-
210
- // CI/standalone mode: @playwright/mcp launches its own browser (headed by default).
211
- // xvfb provides a virtual display for headed mode in GitHub Actions.
212
- if (input?.executablePath) {
213
- args.push('--executable-path', input.executablePath);
214
- }
215
- return args;
216
- }
217
-
218
- export function buildMcpArgs(input: { mcpPath: string; executablePath?: string | null; cdpEndpoint?: string }): string[] {
219
- return [input.mcpPath, ...buildRuntimeArgs(input)];
220
- }
221
-
222
- export function buildMcpLaunchSpec(input: { mcpPath?: string | null; executablePath?: string | null; cdpEndpoint?: string }): {
223
- command: string;
224
- args: string[];
225
- usedNpxFallback: boolean;
226
- } {
227
- const runtimeArgs = buildRuntimeArgs(input);
228
- if (input.mcpPath) {
229
- return {
230
- command: 'node',
231
- args: [input.mcpPath, ...runtimeArgs],
232
- usedNpxFallback: false,
233
- };
15
+ export async function checkDaemonStatus(): Promise<{
16
+ running: boolean;
17
+ extensionConnected: boolean;
18
+ }> {
19
+ try {
20
+ const port = parseInt(process.env.OPENCLI_DAEMON_PORT ?? '19825', 10);
21
+ const res = await fetch(`http://127.0.0.1:${port}/status`);
22
+ const data = await res.json() as { ok: boolean; extensionConnected: boolean };
23
+ return { running: true, extensionConnected: data.extensionConnected };
24
+ } catch {
25
+ return { running: false, extensionConnected: false };
234
26
  }
235
-
236
- return {
237
- command: 'npx',
238
- args: ['-y', '@playwright/mcp@latest', ...runtimeArgs],
239
- usedNpxFallback: true,
240
- };
241
27
  }
@@ -1,105 +1,35 @@
1
1
  /**
2
- * Browser connection error classification and formatting.
2
+ * Browser connection error helpers.
3
+ *
4
+ * Simplified — no more token/extension/CDP classification.
5
+ * The daemon architecture has a single failure mode: daemon not reachable or extension not connected.
3
6
  */
4
7
 
5
- import { createHash } from 'node:crypto';
6
-
7
- export type ConnectFailureKind = 'missing-token' | 'extension-timeout' | 'extension-not-installed' | 'mcp-init' | 'process-exit' | 'cdp-connection-failed' | 'unknown';
8
-
9
- export type ConnectFailureInput = {
10
- kind: ConnectFailureKind;
11
- timeout: number;
12
- hasExtensionToken: boolean;
13
- tokenFingerprint?: string | null;
14
- stderr?: string;
15
- exitCode?: number | null;
16
- rawMessage?: string;
17
- };
18
-
19
- export function getTokenFingerprint(token: string | undefined): string | null {
20
- if (!token) return null;
21
- return createHash('sha256').update(token).digest('hex').slice(0, 8);
22
- }
23
-
24
- export function formatBrowserConnectError(input: ConnectFailureInput): Error {
25
- const stderr = input.stderr?.trim();
26
- const suffix = stderr ? `\n\nMCP stderr:\n${stderr}` : '';
27
- const tokenHint = input.tokenFingerprint ? ` Token fingerprint: ${input.tokenFingerprint}.` : '';
28
-
29
- if (input.kind === 'cdp-connection-failed') {
30
- return new Error(
31
- `Failed to connect to remote Chrome via CDP endpoint.\n\n` +
32
- `Check if Chrome is running with remote debugging enabled (--remote-debugging-port=9222) or DevToolsActivePort is available under chrome://inspect#remote-debugging.\n` +
33
- `If you specified OPENCLI_CDP_ENDPOINT=1, auto-discovery might have failed.` +
34
- suffix,
35
- );
36
- }
37
-
38
- if (input.kind === 'missing-token') {
39
- return new Error(
40
- 'Failed to connect to Playwright MCP Bridge: PLAYWRIGHT_MCP_EXTENSION_TOKEN is not set.\n\n' +
41
- 'Without this token, Chrome will show a manual approval dialog for every new MCP connection. ' +
42
- 'Copy the token from the Playwright MCP Bridge extension and set it in BOTH your shell environment and MCP client config.' +
43
- suffix,
44
- );
45
- }
46
-
47
- if (input.kind === 'extension-not-installed') {
48
- return new Error(
49
- 'Failed to connect to Playwright MCP Bridge: the browser extension did not attach.\n\n' +
50
- 'Make sure Chrome is running and the "Playwright MCP Bridge" extension is installed and enabled. ' +
51
- 'If Chrome shows an approval dialog, click Allow.' +
52
- suffix,
53
- );
54
- }
55
-
56
- if (input.kind === 'extension-timeout') {
57
- const likelyCause = input.hasExtensionToken
58
- ? `The most likely cause is that PLAYWRIGHT_MCP_EXTENSION_TOKEN does not match the token currently shown by the browser extension.${tokenHint} Re-copy the token from the extension and update BOTH your shell environment and MCP client config.`
59
- : 'PLAYWRIGHT_MCP_EXTENSION_TOKEN is not configured, so the extension may be waiting for manual approval.';
60
- return new Error(
61
- `Timed out connecting to Playwright MCP Bridge (${input.timeout}s).\n\n` +
62
- `${likelyCause} If a browser prompt is visible, click Allow.` +
63
- suffix,
64
- );
65
- }
66
-
67
- if (input.kind === 'mcp-init') {
68
- return new Error(`Failed to initialize Playwright MCP: ${input.rawMessage ?? 'unknown error'}${suffix}`);
8
+ export type ConnectFailureKind = 'daemon-not-running' | 'extension-not-connected' | 'command-failed' | 'unknown';
9
+
10
+ export function formatBrowserConnectError(kind: ConnectFailureKind, detail?: string): Error {
11
+ switch (kind) {
12
+ case 'daemon-not-running':
13
+ return new Error(
14
+ 'Cannot connect to opencli daemon.\n\n' +
15
+ 'The daemon should start automatically. If it doesn\'t, try:\n' +
16
+ ' node dist/daemon.js\n' +
17
+ 'Make sure port 19825 is available.' +
18
+ (detail ? `\n\n${detail}` : ''),
19
+ );
20
+ case 'extension-not-connected':
21
+ return new Error(
22
+ 'opencli Browser Bridge extension is not connected.\n\n' +
23
+ 'Please install the extension:\n' +
24
+ ' 1. Download from GitHub Releases\n' +
25
+ ' 2. Open chrome://extensions/ → Enable Developer Mode\n' +
26
+ ' 3. Click "Load unpacked" → select the extension folder\n' +
27
+ ' 4. Make sure Chrome is running' +
28
+ (detail ? `\n\n${detail}` : ''),
29
+ );
30
+ case 'command-failed':
31
+ return new Error(`Browser command failed: ${detail ?? 'unknown error'}`);
32
+ default:
33
+ return new Error(detail ?? 'Failed to connect to browser');
69
34
  }
70
-
71
- if (input.kind === 'process-exit') {
72
- return new Error(
73
- `Playwright MCP process exited before the browser connection was established${input.exitCode == null ? '' : ` (code ${input.exitCode})`}.` +
74
- suffix,
75
- );
76
- }
77
-
78
- return new Error(input.rawMessage ?? 'Failed to connect to browser');
79
- }
80
-
81
- export function inferConnectFailureKind(args: {
82
- hasExtensionToken: boolean;
83
- stderr: string;
84
- rawMessage?: string;
85
- exited?: boolean;
86
- isCdpMode?: boolean;
87
- }): ConnectFailureKind {
88
- const haystack = `${args.rawMessage ?? ''}\n${args.stderr}`.toLowerCase();
89
-
90
- if (args.isCdpMode) {
91
- if (args.rawMessage?.startsWith('MCP init failed:')) return 'mcp-init';
92
- if (args.exited) return 'cdp-connection-failed';
93
- return 'cdp-connection-failed';
94
- }
95
-
96
- if (!args.hasExtensionToken)
97
- return 'missing-token';
98
- if (haystack.includes('extension connection timeout') || haystack.includes('playwright mcp bridge'))
99
- return 'extension-not-installed';
100
- if (args.rawMessage?.startsWith('MCP init failed:'))
101
- return 'mcp-init';
102
- if (args.exited)
103
- return 'process-exit';
104
- return 'extension-timeout';
105
35
  }
@@ -7,25 +7,19 @@
7
7
 
8
8
  export { Page } from './page.js';
9
9
  export { PlaywrightMCP } from './mcp.js';
10
- export { getTokenFingerprint, formatBrowserConnectError } from './errors.js';
11
- export type { ConnectFailureKind, ConnectFailureInput } from './errors.js';
12
- export { resolveCdpEndpoint } from './discover.js';
10
+ export { isDaemonRunning } from './daemon-client.js';
11
+
12
+ // Backward compatibility: getTokenFingerprint is no longer needed but kept as no-op export
13
+ export function getTokenFingerprint(_token: string | undefined): string | null {
14
+ return null;
15
+ }
13
16
 
14
- // Test-only helpers — exposed for unit tests
15
- import { createJsonRpcRequest } from './mcp.js';
16
17
  import { extractTabEntries, diffTabIndexes, appendLimited } from './tabs.js';
17
- import { buildMcpArgs, buildMcpLaunchSpec, findMcpServerPath, resetMcpServerPathCache, setMcpDiscoveryTestHooks } from './discover.js';
18
18
  import { withTimeoutMs } from '../runtime.js';
19
19
 
20
20
  export const __test__ = {
21
- createJsonRpcRequest,
22
21
  extractTabEntries,
23
22
  diffTabIndexes,
24
23
  appendLimited,
25
- buildMcpArgs,
26
- buildMcpLaunchSpec,
27
- findMcpServerPath,
28
- resetMcpServerPathCache,
29
- setMcpDiscoveryTestHooks,
30
24
  withTimeoutMs,
31
25
  };