@taj-special/dravix-code 1.1.2 → 1.1.3
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/cli/index.js +2 -2
- package/dist/services/ai.js +1 -1
- package/dist/utils/display.js +1 -2
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import * as path from 'path';
|
|
|
3
3
|
import { randomBytes } from 'crypto';
|
|
4
4
|
import { execSync } from 'child_process';
|
|
5
5
|
import chalk from 'chalk';
|
|
6
|
-
import { banner, printHelp, printError, colors, VERSION
|
|
6
|
+
import { banner, printHelp, printError, colors, VERSION } from '../utils/display.js';
|
|
7
7
|
import { startRepl } from './repl.js';
|
|
8
8
|
import { isLoggedIn, logout, getSavedUser, saveConfig, checkPlan, AUTH_URL } from '../services/auth.js';
|
|
9
9
|
import { checkUsage, usageBar, fmtNum, formatResetTime } from '../services/usage.js';
|
|
@@ -191,7 +191,7 @@ async function checkVersion() {
|
|
|
191
191
|
});
|
|
192
192
|
const data = await res.json();
|
|
193
193
|
const latest = data.version ?? '';
|
|
194
|
-
const current =
|
|
194
|
+
const current = VERSION;
|
|
195
195
|
if (latest && latest !== current) {
|
|
196
196
|
const DIM = chalk.hex('#4b5563');
|
|
197
197
|
const W = chalk.hex('#e2e8f0');
|
package/dist/services/ai.js
CHANGED
|
@@ -60,7 +60,7 @@ async function doSingleRequest(messages, token, abort, onChunk) {
|
|
|
60
60
|
headers: {
|
|
61
61
|
'Content-Type': 'application/json',
|
|
62
62
|
'X-CLI-Token': token,
|
|
63
|
-
'X-CLI-Version': '1.1.
|
|
63
|
+
'X-CLI-Version': '1.1.3',
|
|
64
64
|
},
|
|
65
65
|
body: JSON.stringify({
|
|
66
66
|
provider: 'openrouter',
|
package/dist/utils/display.js
CHANGED
|
@@ -4,8 +4,7 @@ import { fileURLToPath } from 'url';
|
|
|
4
4
|
import { dirname, join } from 'path';
|
|
5
5
|
const _dir = dirname(fileURLToPath(import.meta.url));
|
|
6
6
|
const _pkg = JSON.parse(readFileSync(join(_dir, '../../package.json'), 'utf-8'));
|
|
7
|
-
export const VERSION =
|
|
8
|
-
export const PKG_VERSION = _pkg.version; // internal npm version
|
|
7
|
+
export const VERSION = _pkg.version;
|
|
9
8
|
export const colors = {
|
|
10
9
|
primary: chalk.hex('#6366f1'),
|
|
11
10
|
success: chalk.hex('#34d399'),
|