codemaxxing 0.4.4 → 0.4.5
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/dist/index.js +4 -2
- package/package.json +1 -1
- package/src/index.tsx +4 -2
package/dist/index.js
CHANGED
|
@@ -16,7 +16,9 @@ import { listServers, addServer, removeServer, getConnectedServers } from "./uti
|
|
|
16
16
|
import { detectHardware, formatBytes } from "./utils/hardware.js";
|
|
17
17
|
import { getRecommendationsWithLlmfit, getFitIcon, isLlmfitAvailable } from "./utils/models.js";
|
|
18
18
|
import { isOllamaInstalled, isOllamaRunning, getOllamaInstallCommand, startOllama, stopOllama, pullModel, listInstalledModelsDetailed, deleteModel, getGPUMemoryUsage } from "./utils/ollama.js";
|
|
19
|
-
|
|
19
|
+
import { createRequire } from "module";
|
|
20
|
+
const _require = createRequire(import.meta.url);
|
|
21
|
+
const VERSION = _require("../package.json").version;
|
|
20
22
|
// ── Helpers ──
|
|
21
23
|
function formatTimeAgo(date) {
|
|
22
24
|
const secs = Math.floor((Date.now() - date.getTime()) / 1000);
|
|
@@ -1468,7 +1470,7 @@ function App() {
|
|
|
1468
1470
|
try {
|
|
1469
1471
|
// Use pipe instead of inherit — Ink TUI conflicts with inherit stdio
|
|
1470
1472
|
const parts = installCmd.split(" ");
|
|
1471
|
-
const result =
|
|
1473
|
+
const result = _require("child_process").spawnSync(parts[0], parts.slice(1), {
|
|
1472
1474
|
stdio: "pipe",
|
|
1473
1475
|
timeout: 180000,
|
|
1474
1476
|
shell: true,
|
package/package.json
CHANGED
package/src/index.tsx
CHANGED
|
@@ -17,7 +17,9 @@ import { detectHardware, formatBytes, type HardwareInfo } from "./utils/hardware
|
|
|
17
17
|
import { getRecommendations, getRecommendationsWithLlmfit, getFitIcon, isLlmfitAvailable, type ScoredModel } from "./utils/models.js";
|
|
18
18
|
import { isOllamaInstalled, isOllamaRunning, getOllamaInstallCommand, startOllama, stopOllama, pullModel, listInstalledModelsDetailed, deleteModel, getGPUMemoryUsage, type PullProgress } from "./utils/ollama.js";
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
import { createRequire } from "module";
|
|
21
|
+
const _require = createRequire(import.meta.url);
|
|
22
|
+
const VERSION = _require("../package.json").version;
|
|
21
23
|
|
|
22
24
|
// ── Helpers ──
|
|
23
25
|
function formatTimeAgo(date: Date): string {
|
|
@@ -1492,7 +1494,7 @@ function App() {
|
|
|
1492
1494
|
try {
|
|
1493
1495
|
// Use pipe instead of inherit — Ink TUI conflicts with inherit stdio
|
|
1494
1496
|
const parts = installCmd.split(" ");
|
|
1495
|
-
const result =
|
|
1497
|
+
const result = _require("child_process").spawnSync(parts[0], parts.slice(1), {
|
|
1496
1498
|
stdio: "pipe",
|
|
1497
1499
|
timeout: 180000,
|
|
1498
1500
|
shell: true,
|