This commit is contained in:
seb
2026-09-22 20:59:58 +02:00
parent 96d2b80b6c
commit ab2f953e06
23 changed files with 1678 additions and 65 deletions

View File

@@ -4,6 +4,7 @@ import fs from 'fs';
import { defineTool, ToolError } from 'llmorbiter';
import { resolveSafe } from '../sandbox.js';
import { pushUndo } from '../undo.js';
import { emitToolCall, clip } from './notify.js';
export const mkdirTool = defineTool({
name: 'mkdir',
@@ -32,3 +33,10 @@ export const mkdirTool = defineTool({
return { message: `Directory created: "${dirname}"`, created: true };
},
});
/**
* Call notification: the directory to create.
*/
export function notifyCall(args = {}) {
emitToolCall(mkdirTool.name, clip(JSON.stringify(args.dirname ?? '')));
}