@mastra/core
Version:
Mastra is a framework for building AI-powered applications and agents with a modern TypeScript stack.
44 lines • 1.81 kB
TypeScript
export declare const WORKSPACE_TOOLS_PREFIX: "mastra_workspace";
/**
* Workspace tool name constants.
* Use these to reference workspace tools by name.
*
* @example
* ```typescript
* import { WORKSPACE_TOOLS } from '@mastra/core/workspace';
*
* if (toolName === WORKSPACE_TOOLS.SANDBOX.EXECUTE_COMMAND) {
* // Handle sandbox execution
* }
* ```
*/
export declare const WORKSPACE_TOOLS: {
readonly FILESYSTEM: {
readonly READ_FILE: "mastra_workspace_read_file";
readonly WRITE_FILE: "mastra_workspace_write_file";
readonly EDIT_FILE: "mastra_workspace_edit_file";
readonly LIST_FILES: "mastra_workspace_list_files";
readonly DELETE: "mastra_workspace_delete";
readonly FILE_STAT: "mastra_workspace_file_stat";
readonly MKDIR: "mastra_workspace_mkdir";
readonly GREP: "mastra_workspace_grep";
readonly AST_EDIT: "mastra_workspace_ast_edit";
};
readonly SANDBOX: {
readonly EXECUTE_COMMAND: "mastra_workspace_execute_command";
readonly GET_PROCESS_OUTPUT: "mastra_workspace_get_process_output";
readonly KILL_PROCESS: "mastra_workspace_kill_process";
};
readonly SEARCH: {
readonly SEARCH: "mastra_workspace_search";
readonly INDEX: "mastra_workspace_index";
};
readonly LSP: {
readonly LSP_INSPECT: "mastra_workspace_lsp_inspect";
};
};
/**
* Type representing any workspace tool name.
*/
export type WorkspaceToolName = (typeof WORKSPACE_TOOLS.FILESYSTEM)[keyof typeof WORKSPACE_TOOLS.FILESYSTEM] | (typeof WORKSPACE_TOOLS.SEARCH)[keyof typeof WORKSPACE_TOOLS.SEARCH] | (typeof WORKSPACE_TOOLS.SANDBOX)[keyof typeof WORKSPACE_TOOLS.SANDBOX] | (typeof WORKSPACE_TOOLS.LSP)[keyof typeof WORKSPACE_TOOLS.LSP];
//# sourceMappingURL=index.d.ts.map