Handles workflow run lifecycle: tick, approval, and execution.
// Source: https://github.com/JIGGAI/ClawRecipes | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
import type { OpenClawPluginApi } from 'openclaw/plugin-sdk';
import { approveWorkflowRun, enqueueWorkflowRun, pollWorkflowApprovals, resumeWorkflowRun, runWorkflowRunnerOnce, runWorkflowRunnerTick, runWorkflowWorkerTick } from '../lib/workflows/workflow-runner';
import { cleanupQueues } from '../lib/workflows/workflow-queue';
import { resolveTeamDir } from '../lib/workspace';
export async function handleWorkflowsRun(api: OpenClawPluginApi, opts: {
teamId: string;
workflowFile: string;
}) {
if (!opts.teamId) throw new Error('--team-id is required');
if (!opts.workflowFile) thr
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search 40K more like it.
Get a free API key