Lines 18-58javascript
19var __importStar = (this && this.__importStar) || (function () {
20 var ownKeys = function(o) {
21 ownKeys = Object.getOwnPropertyNames || function (o) {
23 for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
28 return function (mod) {
29 if (mod && mod.__esModule) return mod;
31 if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32 __setModuleDefault(result, mod);
36Object.defineProperty(exports, "__esModule", { value: true });
37const http = __importStar(require("http"));
38const https = __importStar(require("https"));
39const child_process = __importStar(require("child_process"));
40const fs = __importStar(require("fs"));
HighChild Process
Package source references child process execution.
dist/index.jsView on unpkg · L38 41const path = __importStar(require("path"));
42const os = __importStar(require("os"));
43const transformers_1 = require("@xenova/transformers");
44const cron = __importStar(require("node-cron"));
45// Disable local model downloading if we only want to fetch from HF,
46// or let it download once and cache locally (preferred).
47transformers_1.env.allowLocalModels = true;
48const pkgPath = path.join(__dirname, "..", "package.json");
49const CURRENT_VERSION = fs.existsSync(pkgPath) ? JSON.parse(fs.readFileSync(pkgPath, "utf-8")).version : "1.0.4";
51 const args = process.argv.slice(2);
53 let host = "https://aclade.com";
54 for (let i = 0; i < args.length; i++) {
55 if (args[i] === "--token" && args[i + 1]) {