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.
- package/dist/core/context-token-calibration.d.ts +10 -0
- package/dist/core/context-token-calibration.js +45 -0
- package/dist/core/context-token-calibration.js.map +1 -0
- package/dist/core/query-engine.d.ts +1 -0
- package/dist/core/query-engine.js +15 -3
- package/dist/core/query-engine.js.map +1 -1
- package/dist/core/query.d.ts +2 -0
- package/dist/core/query.js +23 -4
- package/dist/core/query.js.map +1 -1
- package/dist/model/anthropic-adapter.d.ts +5 -0
- package/dist/model/anthropic-adapter.js +69 -0
- package/dist/model/anthropic-adapter.js.map +1 -1
- package/dist/model/communication-logger.d.ts +2 -0
- package/dist/model/communication-logger.js +2 -0
- package/dist/model/communication-logger.js.map +1 -1
- package/dist/model/composition-runtime.js +20 -18
- package/dist/model/composition-runtime.js.map +1 -1
- package/dist/model/model-gateway.d.ts +2 -0
- package/dist/model/model-gateway.js.map +1 -1
- package/dist/repl/index.js +1 -1
- package/dist/repl/index.js.map +1 -1
- package/dist/types/events.d.ts +2 -0
- package/dist/web/html.js +1 -1
- package/package.json +1 -1
package/dist/types/events.d.ts
CHANGED
|
@@ -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);
|