export function quoteShellArg(value) {
    if (/^[A-Za-z0-9_./:-]+$/.test(value)) {
        return value;
    }
    return `'${value.replace(/'/g, `'\\''`)}'`;
}
export async function emitToolEvent(observer, event) {
    await observer?.onToolEvent?.(event);
}
//# sourceMappingURL=observer.js.map