|
| 1 | +"use strict"; |
| 2 | +/** |
| 3 | + * @file index |
| 4 | + * @description The main module for importing functions from `src/main.ts` and executing a version check from `version.ts`. |
| 5 | + * @remarks |
| 6 | + * - Imports `gemini_chat`, `gemini_image`, `gemini_audio`, `gemini_video`, `gemini_history`, `gemini_imgedit`, and `gemini_prompt` functions to make them available for use in other parts of the project. |
| 7 | + * - Calls `versionControl` to check that the current project version is up to date with the latest version of `btch-gemini`. |
| 8 | + * - Retrieves the current project version from `package.json` to use in the version check. |
| 9 | + */ |
| 10 | +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { |
| 11 | + if (k2 === undefined) k2 = k; |
| 12 | + var desc = Object.getOwnPropertyDescriptor(m, k); |
| 13 | + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { |
| 14 | + desc = { enumerable: true, get: function() { return m[k]; } }; |
| 15 | + } |
| 16 | + Object.defineProperty(o, k2, desc); |
| 17 | +}) : (function(o, m, k, k2) { |
| 18 | + if (k2 === undefined) k2 = k; |
| 19 | + o[k2] = m[k]; |
| 20 | +})); |
| 21 | +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { |
| 22 | + Object.defineProperty(o, "default", { enumerable: true, value: v }); |
| 23 | +}) : function(o, v) { |
| 24 | + o["default"] = v; |
| 25 | +}); |
| 26 | +var __importStar = (this && this.__importStar) || (function () { |
| 27 | + var ownKeys = function(o) { |
| 28 | + ownKeys = Object.getOwnPropertyNames || function (o) { |
| 29 | + var ar = []; |
| 30 | + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; |
| 31 | + return ar; |
| 32 | + }; |
| 33 | + return ownKeys(o); |
| 34 | + }; |
| 35 | + return function (mod) { |
| 36 | + if (mod && mod.__esModule) return mod; |
| 37 | + var result = {}; |
| 38 | + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); |
| 39 | + __setModuleDefault(result, mod); |
| 40 | + return result; |
| 41 | + }; |
| 42 | +})(); |
| 43 | +var __importDefault = (this && this.__importDefault) || function (mod) { |
| 44 | + return (mod && mod.__esModule) ? mod : { "default": mod }; |
| 45 | +}; |
| 46 | +Object.defineProperty(exports, "__esModule", { value: true }); |
| 47 | +exports.gemini_imgedit = exports.gemini_prompt = exports.gemini_history = exports.gemini_video = exports.gemini_audio = exports.gemini_image = exports.gemini_chat = void 0; |
| 48 | +const version_1 = require("./version"); |
| 49 | +const main = __importStar(require("./src/main")); |
| 50 | +// ESM exports |
| 51 | +exports.gemini_chat = main.gemini_chat, exports.gemini_image = main.gemini_image, exports.gemini_audio = main.gemini_audio, exports.gemini_video = main.gemini_video, exports.gemini_history = main.gemini_history, exports.gemini_prompt = main.gemini_prompt, exports.gemini_imgedit = main.gemini_imgedit; |
| 52 | +// CJS exports |
| 53 | +module.exports = { |
| 54 | + gemini_chat: exports.gemini_chat, |
| 55 | + gemini_image: exports.gemini_image, |
| 56 | + gemini_audio: exports.gemini_audio, |
| 57 | + gemini_video: exports.gemini_video, |
| 58 | + gemini_history: exports.gemini_history, |
| 59 | + gemini_prompt: exports.gemini_prompt, |
| 60 | + gemini_imgedit: exports.gemini_imgedit, |
| 61 | +}; |
| 62 | +// Run version control |
| 63 | +const package_json_1 = __importDefault(require("./package.json")); |
| 64 | +(0, version_1.versionControl)(package_json_1.default.version); |
0 commit comments