Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.diff = void 0; const checks_1 = require("../utils/checks"); const flows_1 = require("../lib/flows"); const endpoints_1 = require("../lib/endpoints"); const lexicons_1 = require("../lib/lexicons"); const aiagents_1 = require("../lib/aiagents"); const diff = async (resourceType, resourceId, mode = 'full') => { await (0, checks_1.checkProject)(); (0, checks_1.checkAgentDir)(); switch (resourceType) { case 'flow': await (0, flows_1.diffFlows)(resourceId, mode); break; case 'endpoint': await (0, endpoints_1.diffEndpoints)(resourceId, mode); break; case 'lexicon': await (0, lexicons_1.diffLexicons)(resourceId, mode); break; case 'aiAgent': await (0, aiagents_1.diffAiAgents)(resourceId, mode); break; default: console.log(`Resource type ${resourceType} can't be compared.`); } }; exports.diff = diff; |