neoctl 0.2.59 → 0.2.60

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.
@@ -30,6 +30,8 @@ export interface PromptCacheDiagnostics {
30
30
  export interface ContextMetrics {
31
31
  model?: string;
32
32
  estimatedInputTokens: number;
33
+ /** Prefer this unified estimate/count over generation usage for context display. */
34
+ inputTokenSource?: "estimate";
33
35
  estimatedChars: number;
34
36
  messageCount: number;
35
37
  toolCount: number;
package/dist/web/html.js CHANGED
@@ -405,7 +405,7 @@ function renderStatus() {
405
405
  const displayPhase = minimumDisplayPhase(s.phase || 'ready');
406
406
  const phase = phaseLabel(displayPhase);
407
407
  const ctx = contextParts(s.metrics);
408
- const inputTokens = compactNumber(animatedNumber('input', (s.usage && s.usage.inputTokens) ?? (s.metrics && s.metrics.estimatedInputTokens)));
408
+ const inputTokens = compactNumber(animatedNumber('input', s.metrics?.inputTokenSource ? s.metrics.estimatedInputTokens : (s.usage && s.usage.inputTokens) ?? (s.metrics && s.metrics.estimatedInputTokens)));
409
409
  const outputTokens = compactNumber(animatedNumber('output', (s.usage && s.usage.outputTokens) ?? s.streamedOutputTokens));
410
410
  const model = truncateMiddle((s.metrics && s.metrics.model) || 'model?', window.innerWidth > 900 ? 26 : 14);
411
411
  const phaseActive = isActivePhase(displayPhase);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neoctl",
3
- "version": "0.2.59",
3
+ "version": "0.2.60",
4
4
  "description": "TypeScript scaffold for a streaming agent runtime with a REPL UI layer.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",