@taj-special/dravix-code 1.1.8 → 1.1.10

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.
Files changed (2) hide show
  1. package/dist/cli/repl.js +5 -5
  2. package/package.json +1 -1
package/dist/cli/repl.js CHANGED
@@ -2,7 +2,7 @@ import * as fs from 'fs';
2
2
  import * as path from 'path';
3
3
  import * as os from 'os';
4
4
  import chalk from 'chalk';
5
- import { streamChat, fetchSystemPrompt, FLASH_MODEL, PRO_MODEL } from '../services/ai.js';
5
+ import { streamChat, fetchSystemPrompt, FLASH_MODEL } from '../services/ai.js';
6
6
  import { buildContext } from '../services/context.js';
7
7
  import { parseOps, executeSingleOp, computeDiff } from '../services/executor.js';
8
8
  import { handleCommand } from './commands.js';
@@ -2241,7 +2241,6 @@ export async function startRepl(cwd) {
2241
2241
  let pendingOutputTokens = 0;
2242
2242
  let pendingUserTokens = 0;
2243
2243
  let hasPendingReport = false;
2244
- let useProModel = false; // switched to PRO_MODEL after file op errors
2245
2244
  process.stdin.once('end', () => {
2246
2245
  console.log(colors.muted('\n Goodbye!\n'));
2247
2246
  process.exit(0);
@@ -2394,7 +2393,6 @@ export async function startRepl(cwd) {
2394
2393
  if (!skipInput) {
2395
2394
  readFileTurnCount = 0; // reset loop counter for each new user message
2396
2395
  forcedEditMode = false; // reset forced edit mode for each new user message
2397
- useProModel = false; // reset model selection for each new user message
2398
2396
  // ── Refresh project context (files may have changed since last turn) ──
2399
2397
  history[0] = buildSystemMsg(activeCwd);
2400
2398
  // ── Clear stale operational messages left from previous auto-continue turns ──
@@ -2805,7 +2803,9 @@ export async function startRepl(cwd) {
2805
2803
  }
2806
2804
  const normalized = normalizeResponse(fullResponse);
2807
2805
  lastAIResponse = normalized;
2808
- history.push({ role: 'assistant', content: normalized });
2806
+ if (normalized.trim()) {
2807
+ history.push({ role: 'assistant', content: normalized });
2808
+ }
2809
2809
  if (conversationTitle === null) {
2810
2810
  const _msgs = history.slice(1).filter(m => m.role === 'user' || m.role === 'assistant');
2811
2811
  const _u = _msgs.find(m => m.role === 'user');
@@ -3205,7 +3205,7 @@ export async function startRepl(cwd) {
3205
3205
  : raw;
3206
3206
  printError(msg);
3207
3207
  resolve();
3208
- }, streamAbort.signal, useProModel ? PRO_MODEL : FLASH_MODEL);
3208
+ }, streamAbort.signal, FLASH_MODEL);
3209
3209
  });
3210
3210
  // ── Remove streaming key listener ─────────────────────────
3211
3211
  process.stdin.removeListener('data', onStreamKey);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taj-special/dravix-code",
3
- "version": "1.1.8",
3
+ "version": "1.1.10",
4
4
  "description": "AI-powered coding assistant CLI — Dravix Code",
5
5
  "type": "module",
6
6
  "bin": {