import { wrapToolExecution } from '@allternit/runtime';
const result = await wrapToolExecution(
{
kernel,
sessionId: 'sess-xxx',
agentId: 'agent-1',
workspaceRoot: '/project',
wihId: 'P3-T0301',
originalExecutor: runtimeExecutor,
},
'read_file',
{ path: '/project/file.txt' }
);
if (result.decision === 'allow') {
console.log('Result:', result.result);
}