@tiens.nguyen/gonext-local-worker 1.0.173 → 1.0.175

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.
Files changed (2) hide show
  1. package/gonext-repl.mjs +19 -0
  2. package/package.json +1 -1
package/gonext-repl.mjs CHANGED
@@ -34,6 +34,25 @@ const cyan = (s) => `\x1b[36m${s}\x1b[0m`;
34
34
  const green = (s) => `\x1b[32m${s}\x1b[0m`;
35
35
  const red = (s) => `\x1b[31m${s}\x1b[0m`;
36
36
 
37
+ // ---------- flags ----------
38
+ const argv = process.argv.slice(2);
39
+ if (argv.includes("--help") || argv.includes("-h")) {
40
+ console.log(
41
+ "gonext — terminal agent REPL for the current folder\n\n" +
42
+ "Usage: gonext [-v|--verbose]\n\n" +
43
+ " -v, --verbose show the agent's diagnostic logs ([gonext-agent] …) and python stderr\n" +
44
+ " -h, --help this help\n\n" +
45
+ "Auth comes from ~/.gonext/worker.env; models/budgets/RAG come from your web Settings.\n" +
46
+ "Inside the REPL: /exit · /revert [runId] · /help — Ctrl-C aborts the running turn.\n" +
47
+ "Note: REPL turns run in THIS process (no job queue), so the gonext-local-worker\n" +
48
+ "daemon shows no logs for them — use -v to see the agent diagnostics here."
49
+ );
50
+ process.exit(0);
51
+ }
52
+ if (argv.includes("-v") || argv.includes("--verbose")) {
53
+ process.env.GONEXT_REPL_VERBOSE = "1";
54
+ }
55
+
37
56
  // ---------- auth: worker key + API base from ~/.gonext/worker.env ----------
38
57
  dotenv.config({ path: ENV_FILE });
39
58
  dotenv.config();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiens.nguyen/gonext-local-worker",
3
- "version": "1.0.173",
3
+ "version": "1.0.175",
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",