"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const cube_socket_1 = require("./cube-socket");
const cube_project_1 = require("./cube-project");
const cube_pack_1 = require("./cube-pack");
const cube_inspect_1 = require("./cube-inspect");
const cube_server_1 = require("./cube-server");
const cube_lint_1 = require("./cube-lint");
class AntEngine {
    constructor() {
        AntCube.socket.on('connection', ({ client }) => {
            const ftp = AntCube.server.connectInfo();
            AntCube.socket.send({
                token: client.session.token,
                data: JSON.stringify({
                    status: 200,
                    key: 'ide_information',
                    payload: {
                        ftp_host: ftp.ip,
                        ftp_port: ftp.port
                    }
                })
            });
        });
    }
}
exports.AntEngine = AntEngine;
var AntCube;
(function (AntCube) {
    AntCube.project = new cube_project_1.default();
    AntCube.socket = new cube_socket_1.default();
    AntCube.pack = new cube_pack_1.default();
    AntCube.inspect = new cube_inspect_1.default();
    AntCube.server = new cube_server_1.default();
    AntCube.engine = new AntEngine();
    AntCube.lint = new cube_lint_1.default();
})(AntCube = exports.AntCube || (exports.AntCube = {}));
exports.default = AntCube;
//# sourceMappingURL=index.js.map