chore(gemini-ops): 导入 sleep 工具函数,用于延迟操作
This commit is contained in:
@@ -6,6 +6,7 @@
|
|||||||
* 全部通过 CDP 实现,不往页面注入任何对象。
|
* 全部通过 CDP 实现,不往页面注入任何对象。
|
||||||
*/
|
*/
|
||||||
import { createOperator } from './operator.js';
|
import { createOperator } from './operator.js';
|
||||||
|
import { sleep } from './util.js';
|
||||||
|
|
||||||
// ── Gemini 页面元素选择器 ──
|
// ── Gemini 页面元素选择器 ──
|
||||||
const SELECTORS = {
|
const SELECTORS = {
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ import { join } from "node:path";
|
|||||||
// 复用已有的统一入口,不修改原有逻辑
|
// 复用已有的统一入口,不修改原有逻辑
|
||||||
import { createGeminiSession, disconnect } from './index.js';
|
import { createGeminiSession, disconnect } from './index.js';
|
||||||
import config from './config.js';
|
import config from './config.js';
|
||||||
|
import { sleep } from './util.js';
|
||||||
|
|
||||||
const server = new McpServer({
|
const server = new McpServer({
|
||||||
name: "gemini-mcp-server",
|
name: "gemini-mcp-server",
|
||||||
|
|||||||
Reference in New Issue
Block a user