UNPKG

spaider

Version:

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

13 lines 587 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.analyzeIntent = void 0; const ai_1 = require("../services/ai"); const logger_1 = require("../services/logger"); const analyzeIntent = async (ctx) => { logger_1.Logger.info(`Analyzing intent for prompt: "${ctx.userPrompt.slice(0, 50)}..."`); ctx.intent = await ai_1.AI.analyzeIntent(ctx.userPrompt, ctx.files, ctx.projectTree); logger_1.Logger.info(`✓ Intent analyzed\n`, ctx.intent.description); return ctx; }; exports.analyzeIntent = analyzeIntent; //# sourceMappingURL=intent.js.map