(options: QueryEngineOptions)
| 150 | private readonly sessionPermissionRules: PermissionRuleSet; |
| 151 | private readonly onPermissionRequest?: (request: PermissionRequest) => Promise<PermissionDecision>; |
| 152 | private readonly defaultMaxTurns?: number; |
| 153 | /** Keeps the system prompt fixed for the session; see sessionPromptContext.ts. */ |
| 154 | private readonly promptContext: SessionPromptContext; |
| 155 | private abortController: AbortController | null = null; |
| 156 | /** A submission is running, possibly before it has an abort controller. */ |
| 157 | private submitting = false; |
| 158 | /** An interrupt arrived before the running submission could be aborted. */ |
| 159 | private interruptRequested = false; |
| 160 | private usageAnchorIndex: number = -1; |
| 161 | private lastCallUsage: Usage = { input_tokens: 0, output_tokens: 0 }; |
| 162 | private modeChangeCallback?: (mode: PermissionMode, previousMode: PermissionMode) => void; |
| 163 | private needsPlanModeExitAttachment = false; |
| 164 | /** |
| 165 | * Tracks whether SessionStart hooks have already fired |
nothing calls this directly
no test coverage detected