UNPKG

rete-kit

Version:

Rete.js Kit ==== [![Made in Ukraine](https://img.shields.io/badge/made_in-ukraine-ffd700.svg?labelColor=0057b7)](https://stand-with-ukraine.pp.ua) [![Discord](https://img.shields.io/discord/1081223198055604244?color=%237289da&label=Discord)](https://disco

20 lines (19 loc) 582 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Context = void 0; const path_1 = require("path"); const consts_1 = require("../../consts"); class Context { getName() { return this.name; } getInstructions() { const instructionsPath = (0, path_1.join)(consts_1.assetsAI, this.name); return this.instructions.map(instruction => ({ ...instruction, path: (0, path_1.join)(instructionsPath, instruction.file), contextId: this.name })); } } exports.Context = Context;