UNPKG

spaider

Version:

Deterministic-first AI code assistant that crawls your codebase to implement changes using open source LLMs

16 lines 685 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.generateChanges = void 0; const ai_1 = require("../services/ai"); const logger_1 = require("../services/logger"); const generateChanges = async (ctx) => { if (!ctx.intent) { throw new Error("Intent analysis must be completed before generating changes"); } logger_1.Logger.info("Generating changes ..."); ctx.changes = await ai_1.AI.generateChanges(ctx.userPrompt, ctx.intent, ctx.files, ctx.projectTree); logger_1.Logger.debug(`✓ Generated ${ctx.changes.length} changes`); return ctx; }; exports.generateChanges = generateChanges; //# sourceMappingURL=changes.js.map