"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const registry_1 = require("./registry"); (0, registry_1.registerTool)({ name: 'save_memory', description: 'Persist an important fact about this project to long-term memory. Use this to save decisions, tech stack choices, feature descriptions, constraints, or goals so they are remembered across conversations.', parameters: { type: 'object', properties: { key: { type: 'string', description: 'Short unique label (e.g. "primary_language", "auth_strategy", "deploy_target")' }, type: { type: 'string', enum: ['tech_stack', 'decision', 'feature', 'goal', 'constraint', 'note'], description: 'Category of the memory item' }, value: { type: 'string', description: 'The fact to remember (1-3 sentences)' } }, required: ['key', 'type', 'value'] }, async handler(args, ctx) { ctx.memoryUpdates.push({ key: String(args.key), type: String(args.type), value: String(args.value) }); return { saved: true, key: args.key, type: args.type }; } });