@mmmbuto/nexuscli 0.5.5 → 0.5.7
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/lib/cli/status.js
CHANGED
|
@@ -11,6 +11,10 @@ const { isInitialized, getConfig } = require('../config/manager');
|
|
|
11
11
|
const { PATHS, HOME } = require('../utils/paths');
|
|
12
12
|
const { isTermux, isTermuxApiWorking } = require('../utils/termux');
|
|
13
13
|
|
|
14
|
+
// Get version from package.json
|
|
15
|
+
const packageJson = require('../../package.json');
|
|
16
|
+
const VERSION = packageJson.version;
|
|
17
|
+
|
|
14
18
|
/**
|
|
15
19
|
* Check if server is running
|
|
16
20
|
*/
|
|
@@ -103,8 +107,10 @@ async function status() {
|
|
|
103
107
|
const workspaceCount = countWorkspaces();
|
|
104
108
|
|
|
105
109
|
// Header
|
|
110
|
+
const header = `NexusCLI Status v${VERSION}`;
|
|
111
|
+
const padding = ' '.repeat(Math.max(0, 41 - header.length));
|
|
106
112
|
console.log(chalk.bold('╔═══════════════════════════════════════════╗'));
|
|
107
|
-
console.log(chalk.bold(
|
|
113
|
+
console.log(chalk.bold(`║ ${header}${padding}║`));
|
|
108
114
|
console.log(chalk.bold('╠═══════════════════════════════════════════╣'));
|
|
109
115
|
|
|
110
116
|
// Server
|
|
@@ -52,21 +52,27 @@ class CodexWrapper {
|
|
|
52
52
|
args.push('-m', baseModel);
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
// Add reasoning effort config override
|
|
56
|
-
if (reasoningEffort) {
|
|
55
|
+
// Add reasoning effort config override (only for new sessions)
|
|
56
|
+
if (reasoningEffort && !threadId) {
|
|
57
57
|
args.push('-c', `model_reasoning_effort="${reasoningEffort}"`);
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
// Add image files for multimodal support
|
|
61
|
-
if (imageFiles && imageFiles.length > 0) {
|
|
60
|
+
// Add image files for multimodal support (only for new sessions)
|
|
61
|
+
if (imageFiles && imageFiles.length > 0 && !threadId) {
|
|
62
62
|
for (const imagePath of imageFiles) {
|
|
63
63
|
args.push('-i', imagePath);
|
|
64
64
|
}
|
|
65
65
|
console.log('[CodexWrapper] Attached', imageFiles.length, 'image(s)');
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
// Add prompt as argument
|
|
69
|
-
|
|
68
|
+
// Add prompt as argument
|
|
69
|
+
// For new sessions: use '--' to separate from options
|
|
70
|
+
// For resume: prompt goes directly after threadId
|
|
71
|
+
if (threadId) {
|
|
72
|
+
args.push(prompt);
|
|
73
|
+
} else {
|
|
74
|
+
args.push('--', prompt);
|
|
75
|
+
}
|
|
70
76
|
|
|
71
77
|
console.log('[CodexWrapper] Model:', model);
|
|
72
78
|
console.log('[CodexWrapper] Reasoning:', reasoningEffort);
|