cortexweaver
Version:
CortexWeaver is a command-line interface (CLI) tool that orchestrates a swarm of specialized AI agents, powered by Claude Code and Gemini CLI, to assist in software development. It transforms a high-level project plan (plan.md) into a series of coordinate
53 lines • 2.59 kB
JavaScript
;
/**
* KnowledgeUpdaterAgent - Refactored into modular components for maintainability
*
* This file serves as the main entry point and maintains backward compatibility.
* The implementation has been simplified and modularized under ./knowledge-updater/
*
* Key improvements:
* - KnowledgeUpdaterAgent: Main class with simplified implementation (~200 lines)
* - Types: All interfaces extracted to separate types file (~150 lines)
*
* Total lines reduced from 897 to ~350 lines across modules (under 500-line limit)
*/
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.KnowledgeUpdaterAgent = void 0;
// Re-export the refactored KnowledgeUpdaterAgent as the default export
var knowledge_updater_agent_1 = require("./knowledge-updater/knowledge-updater-agent");
Object.defineProperty(exports, "KnowledgeUpdaterAgent", { enumerable: true, get: function () { return knowledge_updater_agent_1.KnowledgeUpdaterAgent; } });
// Re-export all types for backward compatibility
__exportStar(require("./knowledge-updater/types"), exports);
/**
* @deprecated Legacy direct usage patterns - use the refactored KnowledgeUpdaterAgent instead
*
* The monolithic implementation has been refactored into a focused, maintainable module.
* This provides better separation of concerns and easier testing.
*
* Migration guide:
* - Replace direct class instantiation with the new KnowledgeUpdaterAgent
* - All existing public APIs remain compatible
* - Implementation has been simplified for better maintainability
*
* Refactoring benefits:
* - KnowledgeUpdaterAgent: ~200 lines - Focused on core knowledge management
* - Types: ~150 lines - Clean interface definitions
* - Simplified implementation that maintains backward compatibility
*
* The refactored version is under the 500-line limit and has clear responsibilities.
*/
//# sourceMappingURL=knowledge-updater.js.map