13 lines
No EOL
332 B
TypeScript
13 lines
No EOL
332 B
TypeScript
import { Tool } from "./types.js";
|
|
|
|
export const exitTool: Tool = {
|
|
name: "exit",
|
|
displayName: "Exit",
|
|
description:
|
|
"Exit the current process with status code 1, indicating a failure or error",
|
|
parameters: {},
|
|
readonly: false,
|
|
run: async (args: { dirpath: string }): Promise<string> => {
|
|
process.exit(1);
|
|
},
|
|
}; |