continue-custom/extensions/cli/src/tools/exit.ts
Dallin Romney 1821a72d16
fix: use json schema for tool definitions (#7904)
* fix: use json schema for tool definitions

* fix: cubic feedback

* fix: eslint

* fix: broken tool params type
2025-09-22 19:40:25 -07:00

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 "";
},
};