This commit is contained in:
seb
2026-10-11 12:58:15 +02:00
parent 8262e35e53
commit 1149ffddcb
24 changed files with 575 additions and 261 deletions

View File

@@ -3,6 +3,7 @@ import path from 'path';
import { defineTool, ToolError } from 'libllmorbiter';
import { isReadOnlyDatabasePath, prepareVfs } from './vfs.js';
import { isSkillPath } from './skill.js';
import { TOOL_DESCRIPTIONS, TOOL_PARAMETER_DESCRIPTIONS } from './prompts.js';
/**
* rm — deletes a single file from the virtual filesystem (VFS).
@@ -64,7 +65,7 @@ export function deleteVfsFile(vfsRoot, relPath) {
export function createRmTool({ googleAuthId }) {
return defineTool({
name: 'rm',
description: 'Delete single VFS file (e.g. specific artifact or SKILL file). Irreversible.',
description: TOOL_DESCRIPTIONS.rm,
strict: false,
parameters: {
type: 'object',
@@ -73,7 +74,7 @@ export function createRmTool({ googleAuthId }) {
properties: {
filename: {
type: 'string',
description: 'VFS file path to delete.',
description: TOOL_PARAMETER_DESCRIPTIONS.rm.filename,
},
},
},