ornold-mcp 1.1.2 → 1.2.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 (2) hide show
  1. package/dist/cli.js +0 -89
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -2133,24 +2133,6 @@ function connectServer() {
2133
2133
  p.resolve(msg.result);
2134
2134
  }
2135
2135
  }
2136
- if (msg.type === "flow_progress") {
2137
- const { executionId, progressType, stepNumber, totalSteps, tool, text } = msg;
2138
- if (progressType === "step-start") {
2139
- console.error(`[flow] Step ${stepNumber}/${totalSteps}: starting`);
2140
- } else if (progressType === "step-complete") {
2141
- console.error(`[flow] Step ${stepNumber}: ${msg.success ? "done" : "failed"} (${msg.toolCalls} tool calls, ${msg.executionTimeMs}ms)`);
2142
- } else if (progressType === "step-error") {
2143
- console.error(`[flow] Step ${stepNumber}: error \u2014 ${msg.error}`);
2144
- } else if (progressType === "tool-call") {
2145
- console.error(`[flow] Tool: ${tool}`);
2146
- }
2147
- }
2148
- if (msg.type === "flow_complete") {
2149
- console.error(`[flow] Complete: ${msg.status} (${msg.totalTimeMs}ms)`);
2150
- }
2151
- if (msg.type === "flow_error") {
2152
- console.error(`[flow] Error: ${msg.error}`);
2153
- }
2154
2136
  if (msg.type === "execute") {
2155
2137
  handleExecuteCommand(msg).then((result) => {
2156
2138
  ws?.send(JSON.stringify({
@@ -2902,24 +2884,6 @@ ${LINKEN_PORT !== void 0 ? "- Linken Sphere (linken_* tools)" : ""}${WADEX_PORT
2902
2884
 
2903
2885
  ## Flow execution (AI-powered automation)
2904
2886
  Flows delegate multi-step tasks to a cheaper model on the server.
2905
- IMPORTANT: Flows run in an isolated context \u2014 they do NOT see your currently open browsers.
2906
- The first step of any flow MUST start/connect a browser (linken_start_instances, dolphin_start_profile, etc).
2907
-
2908
- **Create and save a flow:**
2909
- flow_create({ title: "Register on site", steps: [
2910
- { id: "s1", prompt: "Start Linken session <uuid> and navigate to temp-mail.org, get email" },
2911
- { id: "s2", prompt: "Go to example.com/signup, fill form with email from step 1" },
2912
- { id: "s3", prompt: "Return to temp-mail.org, get verification code" },
2913
- { id: "s4", prompt: "Enter code on example.com" }
2914
- ]})
2915
-
2916
- **Run a saved flow:** flow_execute({ taskId: "uuid-from-flow_list" })
2917
- **Run inline flow:** flow_execute({ steps: [...] })
2918
- **Manage flows:** flow_list, flow_get, flow_update, flow_delete
2919
- **Check results:** flow_status, flow_get_logs, flow_get_executions
2920
-
2921
- Flow steps share conversation context \u2014 each step sees outputs from previous steps.
2922
-
2923
2887
  ## Captcha solving
2924
2888
  - browser_detect_captcha \u2192 browser_solve_captcha (reCAPTCHA/hCaptcha via 2captcha)
2925
2889
  - browser_detect_press_hold \u2192 browser_solve_press_hold (PerimeterX)
@@ -3125,59 +3089,6 @@ Flow steps share conversation context \u2014 each step sees outputs from previou
3125
3089
  server.tool("captcha_solve", "Solve captcha (reCAPTCHA/hCaptcha)", {
3126
3090
  browserIds: browserIdsArg
3127
3091
  }, (args2) => toolHandler("captcha_solve", args2));
3128
- server.tool("flow_execute", "Execute a multi-step browser automation flow. Pass taskId to run a saved flow, or inline steps.", {
3129
- taskId: z.string().optional().describe("ID of saved flow to execute (from flow_list)"),
3130
- steps: z.array(z.object({
3131
- id: z.string(),
3132
- prompt: z.string(),
3133
- delay: z.number().optional()
3134
- })).optional().describe("Inline flow steps (if no taskId)"),
3135
- title: z.string().optional(),
3136
- enabledTools: z.array(z.string()).optional()
3137
- }, (args2) => toolHandler("flow_execute", args2));
3138
- server.tool("flow_status", "Get status of a running flow execution", {
3139
- executionId: z.string()
3140
- }, (args2) => toolHandler("flow_status", args2));
3141
- server.tool("flow_cancel", "Cancel a running flow execution", {
3142
- executionId: z.string()
3143
- }, (args2) => toolHandler("flow_cancel", args2));
3144
- server.tool("flow_list", "List all saved flows for current user", {}, () => toolHandler("flow_list", {}));
3145
- server.tool("flow_get", "Get a saved flow with its steps", {
3146
- taskId: z.string()
3147
- }, (args2) => toolHandler("flow_get", args2));
3148
- server.tool("flow_create", "Create and save a new flow", {
3149
- title: z.string(),
3150
- steps: z.array(z.object({
3151
- id: z.string(),
3152
- prompt: z.string(),
3153
- delay: z.number().optional()
3154
- })),
3155
- tags: z.array(z.string()).optional(),
3156
- projectId: z.string().optional()
3157
- }, (args2) => toolHandler("flow_create", args2));
3158
- server.tool("flow_update", "Update a saved flow", {
3159
- taskId: z.string(),
3160
- title: z.string().optional(),
3161
- steps: z.array(z.object({
3162
- id: z.string(),
3163
- prompt: z.string(),
3164
- delay: z.number().optional()
3165
- })).optional(),
3166
- tags: z.array(z.string()).optional(),
3167
- status: z.string().optional()
3168
- }, (args2) => toolHandler("flow_update", args2));
3169
- server.tool("flow_delete", "Delete a saved flow", {
3170
- taskId: z.string()
3171
- }, (args2) => toolHandler("flow_delete", args2));
3172
- server.tool("flow_get_logs", "Get execution logs for a flow", {
3173
- executionId: z.string().optional(),
3174
- taskId: z.string().optional(),
3175
- limit: z.number().optional()
3176
- }, (args2) => toolHandler("flow_get_logs", args2));
3177
- server.tool("flow_get_executions", "Get past flow executions", {
3178
- taskId: z.string().optional(),
3179
- limit: z.number().optional()
3180
- }, (args2) => toolHandler("flow_get_executions", args2));
3181
3092
  return server;
3182
3093
  }
3183
3094
  async function main() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ornold-mcp",
3
- "version": "1.1.2",
3
+ "version": "1.2.0",
4
4
  "type": "module",
5
5
  "main": "./dist/cli.js",
6
6
  "files": [