@tiens.nguyen/gonext-local-worker 1.0.12 → 1.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/gonext-local-worker.mjs +5 -1
- package/package.json +1 -1
package/gonext-local-worker.mjs
CHANGED
|
@@ -6,10 +6,14 @@
|
|
|
6
6
|
* - `gonext-local-worker` starts polling loop
|
|
7
7
|
*/
|
|
8
8
|
import { mkdir, readFile, writeFile } from "node:fs/promises";
|
|
9
|
+
import { execFile as execFileCallback } from "node:child_process";
|
|
9
10
|
import { homedir, platform } from "node:os";
|
|
10
11
|
import { join } from "node:path";
|
|
11
|
-
import {
|
|
12
|
+
import { promisify } from "node:util";
|
|
12
13
|
import dotenv from "dotenv";
|
|
14
|
+
|
|
15
|
+
/** Avoid `node:child_process/promises` — not available on some Node builds / older runtimes. */
|
|
16
|
+
const execFile = promisify(execFileCallback);
|
|
13
17
|
import OpenAI from "openai";
|
|
14
18
|
|
|
15
19
|
const ENV_FILE = join(homedir(), ".gonext", "worker.env");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tiens.nguyen/gonext-local-worker",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.13",
|
|
4
4
|
"description": "Polls GoNext cloud API for async local LLM jobs and runs them against Ollama/OpenAI-compatible servers on this Mac",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|