UNPKG

alwaysai

Version:

The alwaysAI command-line interface (CLI)

30 lines 1.04 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.spawnerBase = exports.SpawnerBase = void 0; const run_1 = require("./run"); const run_foreground_sync_1 = require("./run-foreground-sync"); const run_foreground_1 = require("./run-foreground"); const run_streaming_1 = require("./run-streaming"); function SpawnerBase(translate) { return { run(cmd) { return (0, run_1.run)(translate(cmd)); }, runForeground(cmd) { return (0, run_foreground_1.runForeground)(translate(cmd)); }, runForegroundSync(cmd) { return (0, run_foreground_sync_1.runForegroundSync)(translate(cmd)); }, runStreaming(cmd) { return (0, run_streaming_1.runStreaming)(translate(cmd)); } }; } exports.SpawnerBase = SpawnerBase; exports.spawnerBase = { run: run_1.run, runForegroundSync: run_foreground_sync_1.runForegroundSync, runStreaming: run_streaming_1.runStreaming }; //# sourceMappingURL=index.js.map