πŸ“„ File detail

utils/immediateCommand.ts

🧩 .tsπŸ“ 16 linesπŸ’Ύ 547 bytesπŸ“ text
← Back to All Files

🎯 Use case

This file lives under β€œutils/”, which covers cross-cutting helpers (shell, tempfiles, settings, messages, process input, …). On the API surface it exposes shouldInferenceConfigCommandBeImmediate β€” mainly functions, hooks, or classes. It composes internal code from services (relative imports).

Generated from folder role, exports, dependency roots, and inline comments β€” not hand-reviewed for every path.

🧠 Inline summary

import { getFeatureValue_CACHED_MAY_BE_STALE } from '../services/analytics/growthbook.js' /** * Whether inference-config commands (/model, /fast, /effort) should execute * immediately (during a running query) rather than waiting for the current

πŸ“€ Exports (heuristic)

  • shouldInferenceConfigCommandBeImmediate

πŸ–₯️ Source preview

import { getFeatureValue_CACHED_MAY_BE_STALE } from '../services/analytics/growthbook.js'

/**
 * Whether inference-config commands (/model, /fast, /effort) should execute
 * immediately (during a running query) rather than waiting for the current
 * turn to finish.
 *
 * Always enabled for ants; gated by experiment for external users.
 */
export function shouldInferenceConfigCommandBeImmediate(): boolean {
  return (
    process.env.USER_TYPE === 'ant' ||
    getFeatureValue_CACHED_MAY_BE_STALE('tengu_immediate_model_command', false)
  )
}