UNPKG

@tanstack/ai-code-mode

Version:

Secure TypeScript Code Mode for TanStack AI agents to execute sandboxed tool orchestration programs.

19 lines (18 loc) 294 B
function wrapCode(code) { return ` (async function() { try { const __userResult = await (async function() { ${code} })(); return JSON.stringify(__userResult); } catch (__error) { throw __error; } })() `; } export { wrapCode }; //# sourceMappingURL=code-wrapper.js.map