@krmxd/onegpt 0.1.8-beta → 0.1.8-fix-beta

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/bin/ogpt.js CHANGED
@@ -99,13 +99,14 @@ async function main() {
99
99
  let sessionId = "";
100
100
 
101
101
  for (let i = 0; i < args.length; i++) {
102
- if (args[i] === "--no-stream" || args[i] === "-s") {
102
+ if (args[i] === "--no-stream") {
103
103
  noStream = true;
104
104
  } else if (args[i] === "--auto") {
105
105
  autoApprove = true;
106
106
  } else if (args[i] === "--continue" || args[i] === "-c") {
107
107
  continueLast = true;
108
- } else if (args[i] === "--session") {
108
+ } else if (args[i] === "--session" || args[i] === "-s") {
109
+ // -s <id> = resume session, matching the Python build's argparse
109
110
  sessionId = args[++i] || "";
110
111
  } else if (args[i] === "--model" || args[i] === "-m") {
111
112
  const name = args[++i];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@krmxd/onegpt",
3
- "version": "0.1.8-beta",
3
+ "version": "0.1.8-fix-beta",
4
4
  "description": "OGPT - AI coding assistant for the terminal with a built-in local engine",
5
5
  "main": "src/index.js",
6
6
  "bin": {
package/src/web.js CHANGED
@@ -2,6 +2,7 @@
2
2
  // Same endpoints, same single-file UI, zero npm dependencies: served with
3
3
  // the plain http module and wired into the SAME agent singleton the
4
4
  // terminal uses, so dashboard and TUI share one brain and one counter.
5
+ const _PKG_VER = require("../package.json").version;
5
6
  const fs = require("fs");
6
7
  const os = require("os");
7
8
  const path = require("path");
@@ -111,7 +112,7 @@ function createDashboard(cli) {
111
112
  return json(res, 200, {
112
113
  ok: true,
113
114
  app: "OGPT",
114
- version: "0.1.8-beta(devices-all)",
115
+ version: `${_PKG_VER}(devices-all)`,
115
116
  model: name,
116
117
  provider: "Ollama",
117
118
  uptime_s: Math.round((Date.now() - STARTED_AT) / 100) / 10,
@@ -140,7 +141,7 @@ function createDashboard(cli) {
140
141
  } catch {}
141
142
  return json(res, 200, {
142
143
  ok: true,
143
- version: "0.1.8-beta(devices-all)",
144
+ version: `${_PKG_VER}(devices-all)`,
144
145
  model: name,
145
146
  model_id: name,
146
147
  provider: "Ollama",