* fix: use json schema for tool definitions * fix: cubic feedback * fix: eslint * fix: broken tool params type
19 lines
453 B
TypeScript
19 lines
453 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: {
|
|
type: "object",
|
|
properties: {},
|
|
},
|
|
readonly: false,
|
|
isBuiltIn: true,
|
|
run: async (): Promise<string> => {
|
|
const { gracefulExit } = await import("../util/exit.js");
|
|
await gracefulExit(1);
|
|
return "";
|
|
},
|
|
};
|