UNPKG

mycoder-agent

Version:

Agent module for mycoder - an AI-powered software development assistant

12 lines 453 B
export const stringify2 = (value, valueCharacterLimit = 1024) => { const processedObject = Object.fromEntries(Object.entries(value) .filter(([, val]) => val !== undefined) .map(([key, val]) => [ key, val === null ? 'null' : JSON.stringify(val, null, 2).slice(0, valueCharacterLimit), ])); return JSON.stringify(processedObject, null, 2); }; //# sourceMappingURL=stringifyLimited.js.map