@mmmbuto/nexuscli 0.5.6 → 0.5.8
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
|
|
@@ -42,8 +42,9 @@ class CodexWrapper {
|
|
|
42
42
|
// Build CLI arguments
|
|
43
43
|
// If threadId exists, use 'exec --json resume <threadId>' to continue session
|
|
44
44
|
// Otherwise use 'exec --json' for new session
|
|
45
|
+
// Note: --skip-git-repo-check is needed for both new and resume sessions
|
|
45
46
|
const args = threadId
|
|
46
|
-
? ['exec', '--json', 'resume', threadId]
|
|
47
|
+
? ['exec', '--json', '--skip-git-repo-check', 'resume', threadId]
|
|
47
48
|
: ['exec', '--json', '--skip-git-repo-check', '--dangerously-bypass-approvals-and-sandbox', '-C', cwd];
|
|
48
49
|
|
|
49
50
|
// Add model if specified (only for new sessions)
|