mastra
Version:
cli for mastra
18 lines • 760 B
TypeScript
/**
* Attempt to acquire the dev lock. If another `mastra dev` instance is
* already running against the same `.mastra` directory, print a
* user-friendly error and exit instead of letting resources fail with
* confusing lock errors.
*/
export declare function acquireDevLock(dotMastraPath: string): Promise<void>;
/**
* Update the lockfile with server host/port once they are known.
*/
export declare function updateDevLock(dotMastraPath: string, host: string, port: number): Promise<void>;
/**
* Best-effort removal of the lockfile on shutdown.
* Synchronous so it can be called from signal handlers without risk of
* being interrupted.
*/
export declare function releaseDevLock(dotMastraPath: string): void;
//# sourceMappingURL=dev-lock.d.ts.map