@taj-special/dravix-code 1.1.9 → 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 +2 -6
  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 ──
@@ -2843,7 +2841,6 @@ export async function startRepl(cwd) {
2843
2841
  if (inlineFileOpErrors.length > 0) {
2844
2842
  history.push({ role: 'system', content: inlineFileOpErrors.join('\n\n') + '\n\nFix the above errors and retry the failed operations.' });
2845
2843
  readFileContinue = true;
2846
- useProModel = true;
2847
2844
  }
2848
2845
  const allOps = parseOps(normalized);
2849
2846
  // ── Detect incomplete plan: AI described steps but didn't output tags ──
@@ -3166,7 +3163,6 @@ export async function startRepl(cwd) {
3166
3163
  if (fileOpErrors.length > 0) {
3167
3164
  history.push({ role: 'system', content: fileOpErrors.join('\n\n') + '\n\nFix the above errors and retry the failed operations.' });
3168
3165
  readFileContinue = true;
3169
- useProModel = true;
3170
3166
  }
3171
3167
  if (declinedCmds.length > 0) {
3172
3168
  const content = declinedCmds.map(cmd => `[User declined to run — ${cmd}]: User pressed No. Do not retry or ask about this command.`).join('\n\n');
@@ -3209,7 +3205,7 @@ export async function startRepl(cwd) {
3209
3205
  : raw;
3210
3206
  printError(msg);
3211
3207
  resolve();
3212
- }, streamAbort.signal, useProModel ? PRO_MODEL : FLASH_MODEL);
3208
+ }, streamAbort.signal, FLASH_MODEL);
3213
3209
  });
3214
3210
  // ── Remove streaming key listener ─────────────────────────
3215
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.9",
3
+ "version": "1.1.10",
4
4
  "description": "AI-powered coding assistant CLI — Dravix Code",
5
5
  "type": "module",
6
6
  "bin": {