UNPKG

@autobe/agent

Version:

AI backend server code generator

16 lines 875 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createAutoBeState = void 0; const createAutoBeState = (histories) => { var _a, _b, _c, _d, _e; const reversed = histories.slice().reverse(); return { analyze: (_a = reversed.find((h) => h.type === "analyze")) !== null && _a !== void 0 ? _a : null, prisma: (_b = reversed.find((h) => h.type === "prisma")) !== null && _b !== void 0 ? _b : null, interface: (_c = reversed.find((h) => h.type === "interface")) !== null && _c !== void 0 ? _c : null, test: (_d = reversed.find((h) => h.type === "test")) !== null && _d !== void 0 ? _d : null, realize: (_e = reversed.find((h) => h.type === "realize")) !== null && _e !== void 0 ? _e : null, }; }; exports.createAutoBeState = createAutoBeState; //# sourceMappingURL=createAutoBeState.js.map