@juspay/neurolink
Version:
Universal AI Development Platform with working MCP integration, multi-provider support, voice (TTS/STT/realtime), and professional CLI. 58+ external MCP servers discoverable, multimodal file processing, RAG pipelines. Build, test, and deploy AI applicatio
59 lines (58 loc) • 2.47 kB
TypeScript
/**
* Task CLI Commands for NeuroLink
*
* Implements commands for task scheduling and management:
* - neurolink task create — Create a scheduled task (pure store write, exits immediately)
* - neurolink task list — List all tasks
* - neurolink task get — Show task details
* - neurolink task run — Run a task immediately
* - neurolink task pause — Pause a task
* - neurolink task resume — Resume a paused task
* - neurolink task update — Update a task
* - neurolink task delete — Delete a task
* - neurolink task logs — View run history
* - neurolink task start — Start worker (keeps process alive for scheduled tasks)
* - neurolink task stop — Stop a running daemon worker
* - neurolink task status — Show worker status
*/
import type { CommandModule } from "yargs";
export declare class TaskCommandFactory {
static createTaskCommands(): CommandModule;
/**
* Get a full NeuroLink instance (with MCP, tools, providers).
* Used only by commands that execute AI: run, start/_worker.
*/
private static getNeuroLink;
/**
* Get a direct TaskStore instance for pure store operations.
* Bypasses NeuroLink entirely — no MCP, no providers, no tools.
* Respects the same backend selection as TaskManager so both paths
* read/write the same store (Redis for bullmq, file for node-timeout).
*
* Used by all management commands: create, list, get, delete, logs, pause, resume, update.
*/
private static getStore;
/** Attach autoresearch-specific event listeners for worker log output */
private static attachAutoresearchEventListeners;
/** Attach event listeners and keep the process alive for scheduled task execution */
private static enterWorkerMode;
/**
* Create — pure store write, no NeuroLink needed.
* Builds the Task object directly, saves to the task store, exits immediately.
*/
private static executeCreate;
private static executeList;
private static executeGet;
private static executeRun;
private static executePause;
private static executeResume;
private static executeUpdate;
private static executeDelete;
private static executeLogs;
private static executeStart;
private static executeStop;
private static executeStatus;
private static spawnDaemon;
private static runForegroundWorker;
private static executeWorkerProcess;
}