2026-09-24 10:59:02 +00:00
// Module ID: 17178
// Function ID: 17179
2026-09-16 07:03:15 +00:00
// Name: VibegrationsDebugAgentTab
2026-09-24 10:59:02 +00:00
// Dependencies: [19, 17, 13457, 17159, 21, 4829, 576, 17164, 4825, 17163, 17166, 1115, 3714, 5363, 504, 5273, 17177, 2]
2026-09-16 07:03:15 +00:00
// Exports: default
2026-09-24 10:59:02 +00:00
// Module 17178 (VibegrationsDebugAgentTab)
2026-09-16 07:03:15 +00:00
import nativeDefault from "native" /* 576 */ ;
2026-09-24 10:59:02 +00:00
import Text_Text from "Text/Text" /* 4825 */ ;
import VibegrationsDebugFormat from "VibegrationsDebugFormat" /* 17163 */ ;
import VibegrationsDebugLabels from "VibegrationsDebugLabels" /* 17164 */ ;
2026-09-16 07:03:15 +00:00
import noop from "module_19" /* 19 */ ;
2026-09-24 10:59:02 +00:00
import VibegrationsDebugStore from "VibegrationsDebugStore" /* 17159 */ ;
2026-09-16 07:03:15 +00:00
require = fn ;
function ModelCallRow ( call ) {
call = call . call ;
const tmp = closure_11 ( ) ;
const obj2 = { style : tmp.callRow , children : null } ;
const obj3 = { style : tmp.callHead , children : null } ;
( { text , bad } = VibegrationsDebugLabels . modelCallOutcome ( call ) ) ;
const obj4 = { variant : "text-xs/normal" , color : "text-subtle" , children : null } ;
const modelCallOutcomeResult = VibegrationsDebugLabels . modelCallOutcome ( call ) ;
const tmp3 = React6 ;
const tmp4 = View ;
const tmp5 = React5 ;
obj4 . children = VibegrationsDebugFormat . formatClockTime ( call . observedAt ) ;
const items = [ React5 ( Text_Text . Text , obj4 ) , ] ;
const obj6 = { variant : "text-xs/normal" , color : "text-default" , children : null } ;
const items1 = [ call . role , " \u00B7 " , call . model ] ;
obj6 . children = items1 ;
items [ 1 ] = React6 ( Text_Text . Text , obj6 ) ;
obj3 . children = items ;
const items2 = [ React6 ( View , obj3 ) , ] ;
let str = "text-muted" ;
if ( bad ) {
str = "text-feedback-critical" ;
}
items2 [ 1 ] = tmp5 ( Text_Text . Text , { variant : "text-xs/medium" , color : str , children : text } ) ;
obj2 . children = items2 ;
return tmp3 ( tmp4 , obj2 ) ;
}
const View = fn ( 17 ) . View ;
2026-09-24 10:59:02 +00:00
const forceCompaction = fn ( 13457 ) . forceCompaction ;
2026-09-16 07:03:15 +00:00
const jsxProd = fn ( 21 ) ;
( { jsx : closure_7 , jsxs : closure_8 , Fragment : closure_9 } = jsxProd ) ;
let closure_10 = [ ] ;
2026-09-24 10:59:02 +00:00
const createStyles = fn ( 4829 ) ;
2026-09-16 07:03:15 +00:00
let obj2 = { tab : { gap : nativeDefault.space.PX_24 } , callRow : null , callHead : null , forceCompaction : null } ;
let obj3 = { gap : nativeDefault.space.PX_24 } ;
obj2 . callRow = { gap : nativeDefault.space.PX_4 } ;
let obj4 = { gap : nativeDefault.space.PX_4 } ;
obj2 . callHead = { flexDirection : "row" , gap : nativeDefault.space.PX_8 } ;
const obj5 = { flexDirection : "row" , gap : nativeDefault.space.PX_8 } ;
obj2 . forceCompaction = { gap : nativeDefault.space.PX_8 } ;
let closure_11 = createStyles . createStyles ( obj2 ) ;
const size = fn ( 2 ) ;
const result = size . fileFinishedImporting ( "modules/vibegrations/native/VibegrationsDebugAgentTab.tsx" ) ;
export default function VibegrationsDebugAgentTab ( projectId ) {
projectId = projectId . projectId ;
( { status , traceVisible } = projectId ) ;
( { fetchState , onRefresh } = projectId ) ;
const tmp = closure_11 ( ) ;
const tmp2 = projectId ;
const items = [ VibegrationsDebugStore ] ;
const items1 = [ projectId ] ;
const stateFromStores = projectId ( 504 ) . useStateFromStores ( items , ( ) = > VibegrationsDebugStore . getLastTurnUsage ( projectId ) , items1 ) ;
const obj = projectId ( 504 ) ;
const items2 = [ VibegrationsDebugStore ] ;
const items3 = [ projectId ] ;
const stateFromStores1 = projectId ( 504 ) . useStateFromStores ( items2 , ( ) = > VibegrationsDebugStore . getLastCompaction ( projectId ) , items3 ) ;
const obj2 = projectId ( 504 ) ;
const items4 = [ VibegrationsDebugStore ] ;
const items5 = [ projectId ] ;
const stateFromStores2 = projectId ( 504 ) . useStateFromStores ( items4 , ( ) = > VibegrationsDebugStore . getLastCompactionDecline ( projectId ) , items5 ) ;
const obj3 = projectId ( 504 ) ;
const items6 = [ VibegrationsDebugStore ] ;
const items7 = [ projectId ] ;
const stateFromStores3 = projectId ( 504 ) . useStateFromStores ( items6 , ( ) = > VibegrationsDebugStore . getForceCompactionState ( projectId ) , items7 ) ;
const obj4 = projectId ( 504 ) ;
const items8 = [ VibegrationsDebugStore ] ;
const items9 = [ projectId , traceVisible ] ;
const stateFromStores4 = projectId ( 504 ) . useStateFromStores ( items8 , ( ) = > {
if ( traceVisible ) {
let modelCalls = closure_10 ;
} else {
modelCalls = VibegrationsDebugStore . getModelCalls ( projectId ) ;
}
return modelCalls ;
} , items9 ) ;
const items10 = [ projectId ] ;
const items11 = [ projectId ] ;
const callback = noop . useCallback ( ( ) = > forceCompaction ( projectId ) , items10 ) ;
let lifetime ;
const callback1 = noop . useCallback ( ( ) = > forceCompaction ( projectId , true ) , items11 ) ;
if ( status != null ) {
const agent = status . agent ;
if ( agent != null ) {
lifetime = agent . lifetime ;
}
}
if ( lifetime == null ) {
lifetime = null ;
}
let limits ;
if ( status != null ) {
const agent2 = status . agent ;
if ( agent2 != null ) {
limits = agent2 . limits ;
}
}
if ( limits == null ) {
limits = null ;
}
let session ;
if ( status != null ) {
const agent3 = status . agent ;
if ( agent3 != null ) {
session = agent3 . session ;
}
}
if ( session == null ) {
session = null ;
}
let promptCeiling ;
if ( stateFromStores1 != null ) {
promptCeiling = stateFromStores1 . promptCeiling ;
}
if ( promptCeiling == null ) {
let prop ;
if ( limits != null ) {
prop = limits . context_window_tokens ;
}
promptCeiling = prop ;
}
if ( promptCeiling == null ) {
promptCeiling = null ;
}
let tmp15 = null ;
if ( typeof stateFromStores3 === "object" ) {
tmp15 = stateFromStores3 ;
}
const obj6 = { style : tmp.tab , children : null } ;
let generated_at ;
if ( status != null ) {
generated_at = status . generated_at ;
}
if ( generated_at == null ) {
generated_at = null ;
}
2026-09-24 10:59:02 +00:00
const items12 = [ closure_7 ( tmp2 ( 17166 ) . DebugSnapshotToolbar , { generatedAt : generated_at , fetchState , onRefresh } ) , , , , , , ] ;
2026-09-16 07:03:15 +00:00
const obj7 = { title : null , children : null } ;
const intl = tmp2 ( 1115 ) . intl ;
2026-09-24 10:59:02 +00:00
obj7 . title = intl . string ( traceVisible ( 3714 ) . IYpHtT ) ;
2026-09-16 07:03:15 +00:00
if ( null == lifetime ) {
const obj8 = { children : null } ;
const intl3 = tmp2 ( 1115 ) . intl ;
2026-09-24 10:59:02 +00:00
obj8 . children = intl3 . string ( tmp20 ( 3714 ) . gPabB9 ) ;
let tmp16Result5 = tmp18 ( tmp2 ( 17166 ) . DebugNote , obj8 ) ;
2026-09-16 07:03:15 +00:00
} else {
const obj9 = { label : null , value : null , hint : null } ;
const intl35 = tmp2 ( 1115 ) . intl ;
2026-09-24 10:59:02 +00:00
obj9 . label = intl35 . string ( tmp20 ( 3714 ) [ "8MSJDH" ] ) ;
const tmp2Result = tmp2 ( 17163 ) ;
2026-09-16 07:03:15 +00:00
const tmp48 = closure_9 ;
2026-09-24 10:59:02 +00:00
obj9 . value = tmp2Result . formatCount ( tmp2 ( 5363 ) . runesFromUsd ( lifetime . cost_usd ) ) ;
2026-09-16 07:03:15 +00:00
const intl36 = tmp2 ( 1115 ) . intl ;
const obj10 = { count : null } ;
2026-09-24 10:59:02 +00:00
const tmp2Result44 = tmp2 ( 5363 ) ;
obj10 . count = tmp2 ( 17163 ) . formatCount ( lifetime . turns ) ;
obj9 . hint = intl36 . formatToPlainString ( tmp20 ( 3714 ) [ "6Z2KhK" ] , obj10 ) ;
const items13 = [ tmp18 ( tmp2 ( 17166 ) . DebugStatRow , obj9 ) , , , , ] ;
2026-09-16 07:03:15 +00:00
const intl37 = tmp2 ( 1115 ) . intl ;
const orchestrator = lifetime . orchestrator ;
2026-09-24 10:59:02 +00:00
const tmp2Result45 = tmp2 ( 17163 ) ;
const obj11 = { label : intl37.string ( tmp20 ( 3714 ) . hk4jJr ) , value : null , hint : null } ;
2026-09-16 07:03:15 +00:00
const intl38 = tmp2 ( 1115 ) . intl ;
const obj12 = { count : null } ;
2026-09-24 10:59:02 +00:00
const stringResult = intl37 . string ( tmp20 ( 3714 ) . hk4jJr ) ;
const tmp2Result46 = tmp2 ( 17163 ) ;
obj12 . count = tmp2Result46 . formatCount ( tmp2 ( 5363 ) . runeCount ( orchestrator ) ) ;
obj11 . value = intl38 . formatToPlainString ( tmp20 ( 3714 ) . U98VaN , obj12 ) ;
const tmp2Result47 = tmp2 ( 5363 ) ;
const formatCountResult = tmp2 ( 17163 ) . formatCount ( orchestrator . input_tokens ) ;
const tmp2Result48 = tmp2 ( 17163 ) ;
const tmp2Result49 = tmp2 ( 17163 ) ;
const formatCountResult1 = tmp2 ( 17163 ) . formatCount ( orchestrator . output_tokens ) ;
2026-09-16 07:03:15 +00:00
const _HermesInternal4 = HermesInternal ;
2026-09-24 10:59:02 +00:00
obj11 . hint = "" + formatCountResult + " in \u00B7 " + formatCountResult1 + " out \u00B7 " + tmp2 ( 17163 ) . formatCount ( orchestrator . cache_read_input_tokens ) + " cache read" ;
items13 [ 1 ] = tmp18 ( tmp2 ( 17166 ) . DebugStatRow , obj11 ) ;
2026-09-16 07:03:15 +00:00
const intl39 = tmp2 ( 1115 ) . intl ;
const codegen = lifetime . codegen ;
2026-09-24 10:59:02 +00:00
const tmp2Result50 = tmp2 ( 17163 ) ;
const obj13 = { label : intl39.string ( tmp20 ( 3714 ) . R9aduM ) , value : null , hint : null } ;
2026-09-16 07:03:15 +00:00
const intl40 = tmp2 ( 1115 ) . intl ;
const obj14 = { count : null } ;
2026-09-24 10:59:02 +00:00
const stringResult1 = intl39 . string ( tmp20 ( 3714 ) . R9aduM ) ;
const tmp2Result51 = tmp2 ( 17163 ) ;
obj14 . count = tmp2Result51 . formatCount ( tmp2 ( 5363 ) . runeCount ( codegen ) ) ;
obj13 . value = intl40 . formatToPlainString ( tmp20 ( 3714 ) . U98VaN , obj14 ) ;
const tmp2Result52 = tmp2 ( 5363 ) ;
const formatCountResult2 = tmp2 ( 17163 ) . formatCount ( codegen . input_tokens ) ;
const tmp2Result53 = tmp2 ( 17163 ) ;
const tmp2Result54 = tmp2 ( 17163 ) ;
const formatCountResult3 = tmp2 ( 17163 ) . formatCount ( codegen . output_tokens ) ;
2026-09-16 07:03:15 +00:00
const _HermesInternal5 = HermesInternal ;
2026-09-24 10:59:02 +00:00
obj13 . hint = "" + formatCountResult2 + " in \u00B7 " + formatCountResult3 + " out \u00B7 " + tmp2 ( 17163 ) . formatCount ( codegen . cache_read_input_tokens ) + " cache read" ;
items13 [ 2 ] = tmp18 ( tmp2 ( 17166 ) . DebugStatRow , obj13 ) ;
2026-09-16 07:03:15 +00:00
const intl41 = tmp2 ( 1115 ) . intl ;
2026-09-24 10:59:02 +00:00
const tmp2Result55 = tmp2 ( 17163 ) ;
const stringResult2 = intl41 . string ( tmp20 ( 3714 ) . Tj6b30 ) ;
const usageOrEmptyResult = tmp2 ( 5363 ) . usageOrEmpty ( lifetime . compaction ) ;
2026-09-16 07:03:15 +00:00
const obj15 = { label : stringResult2 , value : null , hint : null } ;
const intl42 = tmp2 ( 1115 ) . intl ;
const obj16 = { count : null } ;
2026-09-24 10:59:02 +00:00
const tmp2Result56 = tmp2 ( 5363 ) ;
const tmp2Result57 = tmp2 ( 17163 ) ;
obj16 . count = tmp2Result57 . formatCount ( tmp2 ( 5363 ) . runeCount ( usageOrEmptyResult ) ) ;
obj15 . value = intl42 . formatToPlainString ( tmp20 ( 3714 ) . U98VaN , obj16 ) ;
const tmp2Result58 = tmp2 ( 5363 ) ;
const formatCountResult4 = tmp2 ( 17163 ) . formatCount ( usageOrEmptyResult . input_tokens ) ;
const tmp2Result59 = tmp2 ( 17163 ) ;
const tmp2Result60 = tmp2 ( 17163 ) ;
const formatCountResult5 = tmp2 ( 17163 ) . formatCount ( usageOrEmptyResult . output_tokens ) ;
2026-09-16 07:03:15 +00:00
const _HermesInternal6 = HermesInternal ;
2026-09-24 10:59:02 +00:00
obj15 . hint = "" + formatCountResult4 + " in \u00B7 " + formatCountResult5 + " out \u00B7 " + tmp2 ( 17163 ) . formatCount ( usageOrEmptyResult . cache_read_input_tokens ) + " cache read" ;
items13 [ 3 ] = tmp18 ( tmp2 ( 17166 ) . DebugStatRow , obj15 ) ;
2026-09-16 07:03:15 +00:00
let outcomes ;
if ( status != null ) {
const agent4 = status . agent ;
if ( agent4 != null ) {
outcomes = agent4 . outcomes ;
}
}
let tmp18Result9 = null ;
if ( null != outcomes ) {
const _Object = Object ;
tmp18Result9 = null ;
if ( Object . keys ( status . agent . outcomes ) . length > 0 ) {
const obj17 = { label : null , value : null } ;
const intl2 = tmp2 ( 1115 ) . intl ;
2026-09-24 10:59:02 +00:00
obj17 . label = intl2 . string ( tmp20 ( 3714 ) . Q2OlgI ) ;
2026-09-16 07:03:15 +00:00
const _Object2 = Object ;
const entries = Object . entries ( status . agent . outcomes ) ;
const sorted = entries . sort ( ( arg0 , arg1 ) = > {
[ , tmp ] = arg0 ;
[ , tmp2 ] = arg1 ;
return tmp2 - tmp ;
} ) ;
const mapped = sorted . map ( ( item ) = > {
[ tmp , tmp2 ] = item ;
return "" + projectId ( dependencyMap [ 9 ] ) . formatCount ( tmp2 ) + " " + tmp ;
} ) ;
obj17 . value = mapped . join ( " \u00B7 " ) ;
2026-09-24 10:59:02 +00:00
tmp18Result9 = tmp18 ( tmp2 ( 17166 ) . DebugStatRow , obj17 ) ;
2026-09-16 07:03:15 +00:00
}
}
const obj18 = { children : null } ;
items13 [ 4 ] = tmp18Result9 ;
obj18 . children = items13 ;
tmp16Result5 = tmp16 ( tmp48 , obj18 ) ;
2026-09-24 10:59:02 +00:00
const tmp2Result61 = tmp2 ( 17163 ) ;
2026-09-16 07:03:15 +00:00
}
obj7 . children = tmp16Result5 ;
2026-09-24 10:59:02 +00:00
items12 [ 1 ] = closure_7 ( tmp2 ( 17166 ) . DebugSection , obj7 ) ;
2026-09-16 07:03:15 +00:00
const obj19 = { title : null , children : null } ;
const intl4 = tmp2 ( 1115 ) . intl ;
2026-09-24 10:59:02 +00:00
obj19 . title = intl4 . string ( traceVisible ( 3714 ) . lo4mY6 ) ;
2026-09-16 07:03:15 +00:00
if ( null == stateFromStores ) {
const obj20 = { children : null } ;
const intl5 = tmp2 ( 1115 ) . intl ;
2026-09-24 10:59:02 +00:00
obj20 . children = intl5 . string ( tmp20 ( 3714 ) . uyPveL ) ;
let tmp18Result10 = tmp18 ( tmp2 ( 17166 ) . DebugNote , obj20 ) ;
2026-09-16 07:03:15 +00:00
} else {
const intl43 = tmp2 ( 1115 ) . intl ;
const total = stateFromStores . total ;
2026-09-24 10:59:02 +00:00
const obj21 = { label : intl43.string ( tmp20 ( 3714 ) [ "VwF+oY" ] ) , value : null , hint : null } ;
2026-09-16 07:03:15 +00:00
const intl44 = tmp2 ( 1115 ) . intl ;
const obj22 = { count : null } ;
2026-09-24 10:59:02 +00:00
const stringResult3 = intl43 . string ( tmp20 ( 3714 ) [ "VwF+oY" ] ) ;
2026-09-16 07:03:15 +00:00
const tmp63 = closure_9 ;
2026-09-24 10:59:02 +00:00
const tmp2Result62 = tmp2 ( 17163 ) ;
obj22 . count = tmp2Result62 . formatCount ( tmp2 ( 5363 ) . runeCount ( total ) ) ;
obj21 . value = intl44 . formatToPlainString ( tmp20 ( 3714 ) . U98VaN , obj22 ) ;
const tmp2Result63 = tmp2 ( 5363 ) ;
const formatCountResult6 = tmp2 ( 17163 ) . formatCount ( total . input_tokens ) ;
const tmp2Result64 = tmp2 ( 17163 ) ;
const tmp2Result65 = tmp2 ( 17163 ) ;
const formatCountResult7 = tmp2 ( 17163 ) . formatCount ( total . output_tokens ) ;
2026-09-16 07:03:15 +00:00
const _HermesInternal7 = HermesInternal ;
2026-09-24 10:59:02 +00:00
obj21 . hint = "" + formatCountResult6 + " in \u00B7 " + formatCountResult7 + " out \u00B7 " + tmp2 ( 17163 ) . formatCount ( total . cache_read_input_tokens ) + " cache read" ;
const items14 = [ tmp18 ( tmp2 ( 17166 ) . DebugStatRow , obj21 ) , ] ;
2026-09-16 07:03:15 +00:00
const obj23 = { label : null , value : null } ;
const intl45 = tmp2 ( 1115 ) . intl ;
2026-09-24 10:59:02 +00:00
obj23 . label = intl45 . string ( tmp20 ( 3714 ) [ "kILb+R" ] ) ;
2026-09-16 07:03:15 +00:00
let cache_hit_rate = stateFromStores . cache_hit_rate ;
if ( cache_hit_rate == null ) {
2026-09-24 10:59:02 +00:00
cache_hit_rate = tmp2 ( 5363 ) . cacheHitRate ( stateFromStores . total ) ;
const tmp2Result67 = tmp2 ( 5363 ) ;
2026-09-16 07:03:15 +00:00
}
const obj24 = { children : null } ;
const _HermesInternal = HermesInternal ;
obj23 . value = "" + Math . round ( 100 * cache_hit_rate ) + "%" ;
2026-09-24 10:59:02 +00:00
items14 [ 1 ] = tmp18 ( tmp2 ( 17166 ) . DebugStatRow , obj23 ) ;
2026-09-16 07:03:15 +00:00
obj24 . children = items14 ;
tmp18Result10 = tmp16 ( tmp63 , obj24 ) ;
2026-09-24 10:59:02 +00:00
const tmp2Result66 = tmp2 ( 17163 ) ;
2026-09-16 07:03:15 +00:00
}
obj19 . children = tmp18Result10 ;
2026-09-24 10:59:02 +00:00
items12 [ 2 ] = closure_7 ( tmp2 ( 17166 ) . DebugSection , obj19 ) ;
2026-09-16 07:03:15 +00:00
const obj25 = { title : null , children : null } ;
const intl6 = tmp2 ( 1115 ) . intl ;
2026-09-24 10:59:02 +00:00
obj25 . title = intl6 . string ( traceVisible ( 3714 ) . mn8279 ) ;
2026-09-16 07:03:15 +00:00
if ( null != stateFromStores1 ) {
if ( null != promptCeiling ) {
const obj26 = { children : null } ;
const obj27 = { label : null , used : null , max : null , formatValue : null } ;
const intl9 = tmp2 ( 1115 ) . intl ;
2026-09-24 10:59:02 +00:00
obj27 . label = intl9 . string ( tmp20 ( 3714 ) . dKFhCg ) ;
2026-09-16 07:03:15 +00:00
obj27 . used = stateFromStores1 . tokensAfter ;
obj27 . max = promptCeiling ;
2026-09-24 10:59:02 +00:00
obj27 . formatValue = tmp2 ( 17163 ) . formatCount ;
const items15 = [ tmp18 ( tmp2 ( 17166 ) . DebugMeter , obj27 ) , ] ;
2026-09-16 07:03:15 +00:00
const obj28 = { label : null , value : null , hint : null } ;
const intl10 = tmp2 ( 1115 ) . intl ;
2026-09-24 10:59:02 +00:00
obj28 . label = intl10 . string ( tmp20 ( 3714 ) . ntZb8d ) ;
const tmp2Result68 = tmp2 ( 17163 ) ;
const formatCountResult8 = tmp2 ( 17163 ) . formatCount ( stateFromStores1 . tokensBefore ) ;
2026-09-16 07:03:15 +00:00
const _HermesInternal2 = HermesInternal ;
2026-09-24 10:59:02 +00:00
obj28 . value = "" + formatCountResult8 + " \u2192 " + tmp2 ( 17163 ) . formatCount ( stateFromStores1 . tokensAfter ) ;
2026-09-16 07:03:15 +00:00
const intl11 = tmp2 ( 1115 ) . intl ;
const obj29 = { count : null , time : null } ;
2026-09-24 10:59:02 +00:00
const tmp2Result69 = tmp2 ( 17163 ) ;
obj29 . count = tmp2 ( 17163 ) . formatCount ( stateFromStores1 . retainedMessages ) ;
const tmp2Result70 = tmp2 ( 17163 ) ;
obj29 . time = tmp2 ( 17163 ) . formatObservedAt ( stateFromStores1 . observedAt ) ;
obj28 . hint = intl11 . formatToPlainString ( tmp20 ( 3714 ) . jA05ru , obj29 ) ;
items15 [ 1 ] = tmp18 ( tmp2 ( 17166 ) . DebugStatRow , obj28 ) ;
2026-09-16 07:03:15 +00:00
obj26 . children = items15 ;
let tmp18Result17 = tmp16 ( closure_9 , obj26 ) ;
2026-09-24 10:59:02 +00:00
const tmp2Result71 = tmp2 ( 17163 ) ;
2026-09-16 07:03:15 +00:00
}
const items16 = [ tmp18Result17 , , ] ;
let tmp18Result11 = null ;
if ( null != stateFromStores2 ) {
const obj30 = { label : null , value : null , critical : true , hint : null } ;
const intl12 = tmp2 ( 1115 ) . intl ;
2026-09-24 10:59:02 +00:00
obj30 . label = intl12 . string ( tmp20 ( 3714 ) [ "se+2ls" ] ) ;
const tmp2Result72 = tmp2 ( 17163 ) ;
const formatCountResult9 = tmp2 ( 17163 ) . formatCount ( stateFromStores2 . projected ) ;
2026-09-16 07:03:15 +00:00
const _HermesInternal3 = HermesInternal ;
2026-09-24 10:59:02 +00:00
obj30 . value = "" + formatCountResult9 + " / " + tmp2 ( 17163 ) . formatCount ( stateFromStores2 . threshold ) ;
2026-09-16 07:03:15 +00:00
const intl13 = tmp2 ( 1115 ) . intl ;
const obj31 = { time : null } ;
2026-09-24 10:59:02 +00:00
const tmp2Result73 = tmp2 ( 17163 ) ;
obj31 . time = tmp2 ( 17163 ) . formatObservedAt ( stateFromStores2 . observedAt ) ;
obj30 . hint = intl13 . formatToPlainString ( tmp20 ( 3714 ) . KHK44U , obj31 ) ;
tmp18Result11 = tmp18 ( tmp2 ( 17166 ) . DebugStatRow , obj30 ) ;
const tmp2Result74 = tmp2 ( 17163 ) ;
2026-09-16 07:03:15 +00:00
}
items16 [ 1 ] = tmp18Result11 ;
const obj32 = { style : tmp.forceCompaction , children : null } ;
const obj33 = { variant : "secondary" , size : "sm" , text : null , disabled : null , onPress : null } ;
const intl14 = tmp2 ( 1115 ) . intl ;
2026-09-24 10:59:02 +00:00
obj33 . text = intl14 . string ( tmp20 ( 3714 ) . B0KV7p ) ;
2026-09-16 07:03:15 +00:00
obj33 . disabled = "pending" === stateFromStores3 ;
obj33 . onPress = callback ;
2026-09-24 10:59:02 +00:00
const items17 = [ tmp18 ( tmp2 ( 5273 ) . Button , obj33 ) , , ] ;
2026-09-16 07:03:15 +00:00
let str9 = "text-muted" ;
if ( null != tmp15 ) {
str9 = "text-muted" ;
if ( "compacted" !== tmp15 . outcome ) {
str9 = "text-feedback-critical" ;
}
}
2026-09-24 10:59:02 +00:00
const obj34 = { variant : "text-xs/normal" , color : str9 , children : tmp2 ( 17164 ) . forceCompactionStatus ( stateFromStores3 ) } ;
items17 [ 1 ] = tmp18 ( tmp2 ( 4825 ) . Text , obj34 ) ;
2026-09-16 07:03:15 +00:00
let pendingTurn ;
if ( tmp15 != null ) {
pendingTurn = tmp15 . pendingTurn ;
}
let tmp16Result6 = null ;
if ( true === pendingTurn ) {
const obj35 = { children : null } ;
const obj36 = { variant : "critical-primary" , size : "sm" , text : null , onPress : null } ;
const intl46 = tmp2 ( 1115 ) . intl ;
2026-09-24 10:59:02 +00:00
obj36 . text = intl46 . string ( tmp20 ( 3714 ) [ "044+ju" ] ) ;
2026-09-16 07:03:15 +00:00
obj36 . onPress = callback1 ;
2026-09-24 10:59:02 +00:00
const items18 = [ tmp18 ( tmp2 ( 5273 ) . Button , obj36 ) , ] ;
2026-09-16 07:03:15 +00:00
const obj37 = { variant : "text-xs/normal" , color : "text-muted" , children : null } ;
const intl47 = tmp2 ( 1115 ) . intl ;
2026-09-24 10:59:02 +00:00
obj37 . children = intl47 . string ( tmp20 ( 3714 ) [ "8D32H6" ] ) ;
items18 [ 1 ] = tmp18 ( tmp2 ( 4825 ) . Text , obj37 ) ;
2026-09-16 07:03:15 +00:00
obj35 . children = items18 ;
tmp16Result6 = tmp16 ( closure_9 , obj35 ) ;
}
items17 [ 2 ] = tmp16Result6 ;
obj32 . children = items17 ;
items16 [ 2 ] = tmp16 ( tmp17 , obj32 ) ;
obj25 . children = items16 ;
2026-09-24 10:59:02 +00:00
items12 [ 3 ] = tmp16 ( tmp2 ( 17166 ) . DebugSection , obj25 ) ;
2026-09-16 07:03:15 +00:00
if ( traceVisible ) {
items12 [ 4 ] = null ;
if ( null != session ) {
const obj38 = { title : null , children : null } ;
const intl18 = tmp2 ( 1115 ) . intl ;
2026-09-24 10:59:02 +00:00
obj38 . title = intl18 . string ( tmp20 ( 3714 ) . ZRxAPD ) ;
2026-09-16 07:03:15 +00:00
let tmp16Result7 = null ;
if ( null != session ) {
const obj39 = { label : null , value : null , hint : null } ;
const intl19 = tmp2 ( 1115 ) . intl ;
2026-09-24 10:59:02 +00:00
obj39 . label = intl19 . string ( tmp20 ( 3714 ) [ "wt5X/o" ] ) ;
obj39 . value = tmp2 ( 17163 ) . formatObservedAt ( session . instance_since ) ;
2026-09-16 07:03:15 +00:00
const intl20 = tmp2 ( 1115 ) . intl ;
2026-09-24 10:59:02 +00:00
obj39 . hint = intl20 . string ( tmp20 ( 3714 ) . QX2UQC ) ;
const items19 = [ tmp18 ( tmp2 ( 17166 ) . DebugStatRow , obj39 ) , , , ] ;
2026-09-16 07:03:15 +00:00
const obj40 = { label : null , value : null } ;
const intl21 = tmp2 ( 1115 ) . intl ;
2026-09-24 10:59:02 +00:00
obj40 . label = intl21 . string ( tmp20 ( 3714 ) [ "4lgurx" ] ) ;
const tmp2Result76 = tmp2 ( 17163 ) ;
2026-09-16 07:03:15 +00:00
const tmp42 = closure_9 ;
2026-09-24 10:59:02 +00:00
obj40 . value = tmp2 ( 17163 ) . formatCount ( session . sockets ) ;
items19 [ 1 ] = tmp18 ( tmp2 ( 17166 ) . DebugStatRow , obj40 ) ;
2026-09-16 07:03:15 +00:00
const obj41 = { label : null , value : null } ;
const intl22 = tmp2 ( 1115 ) . intl ;
2026-09-24 10:59:02 +00:00
obj41 . label = intl22 . string ( tmp20 ( 3714 ) [ "a/LXBt" ] ) ;
2026-09-16 07:03:15 +00:00
const intl23 = tmp2 ( 1115 ) . intl ;
2026-09-24 10:59:02 +00:00
const tmp20Result = tmp20 ( 3714 ) ;
2026-09-16 07:03:15 +00:00
obj41 . value = intl23 . string ( session . turn_inflight ? tmp20Result [ "9KlveJ" ] : tmp20Result [ "4tYZVa" ] ) ;
2026-09-24 10:59:02 +00:00
items19 [ 2 ] = tmp18 ( tmp2 ( 17166 ) . DebugStatRow , obj41 ) ;
2026-09-16 07:03:15 +00:00
let tmp18Result12 = null ;
if ( session . queued_messages > 0 ) {
const obj42 = { label : null , value : null } ;
const intl24 = tmp2 ( 1115 ) . intl ;
2026-09-24 10:59:02 +00:00
obj42 . label = intl24 . string ( tmp20 ( 3714 ) [ "/hOBkc" ] ) ;
obj42 . value = tmp2 ( 17163 ) . formatCount ( session . queued_messages ) ;
tmp18Result12 = tmp18 ( tmp2 ( 17166 ) . DebugStatRow , obj42 ) ;
const tmp2Result78 = tmp2 ( 17163 ) ;
2026-09-16 07:03:15 +00:00
}
const obj43 = { children : null } ;
items19 [ 3 ] = tmp18Result12 ;
obj43 . children = items19 ;
tmp16Result7 = tmp16 ( tmp42 , obj43 ) ;
2026-09-24 10:59:02 +00:00
const tmp2Result77 = tmp2 ( 17163 ) ;
2026-09-16 07:03:15 +00:00
}
const items20 = [ tmp16Result7 , ] ;
let analytics ;
if ( status != null ) {
analytics = status . analytics ;
}
let tmp18Result13 = null ;
if ( null != analytics ) {
const obj44 = { analytics : status.analytics } ;
2026-09-24 10:59:02 +00:00
tmp18Result13 = tmp18 ( tmp2 ( 17177 ) . VibegrationsDebugAgentAnalyticsRows , obj44 ) ;
2026-09-16 07:03:15 +00:00
}
items20 [ 1 ] = tmp18Result13 ;
obj38 . children = items20 ;
2026-09-24 10:59:02 +00:00
let tmp16Result8 = tmp16 ( tmp2 ( 17166 ) . DebugSection , obj38 ) ;
2026-09-16 07:03:15 +00:00
} else {
let analytics1 ;
if ( status != null ) {
analytics1 = status . analytics ;
}
tmp16Result8 = null ;
}
items12 [ 5 ] = tmp16Result8 ;
let tmp16Result9 = null ;
if ( null != limits ) {
const obj45 = { title : null , children : null } ;
const intl25 = tmp2 ( 1115 ) . intl ;
2026-09-24 10:59:02 +00:00
obj45 . title = intl25 . string ( tmp20 ( 3714 ) [ "EmSF+A" ] ) ;
2026-09-16 07:03:15 +00:00
const obj46 = { label : null , value : null } ;
const intl26 = tmp2 ( 1115 ) . intl ;
2026-09-24 10:59:02 +00:00
obj46 . label = intl26 . string ( tmp20 ( 3714 ) [ "5iHZLk" ] ) ;
obj46 . value = tmp2 ( 17163 ) . formatCount ( limits . max_iterations ) ;
const items21 = [ tmp18 ( tmp2 ( 17166 ) . DebugStatRow , obj46 ) , , , , , , ] ;
2026-09-16 07:03:15 +00:00
const obj47 = { label : null , value : null } ;
const intl27 = tmp2 ( 1115 ) . intl ;
2026-09-24 10:59:02 +00:00
obj47 . label = intl27 . string ( tmp20 ( 3714 ) . Rb6m3E ) ;
const tmp2Result79 = tmp2 ( 17163 ) ;
obj47 . value = tmp2 ( 17163 ) . formatCount ( limits . max_subagent_iterations ) ;
items21 [ 1 ] = tmp18 ( tmp2 ( 17166 ) . DebugStatRow , obj47 ) ;
2026-09-16 07:03:15 +00:00
const obj48 = { label : null , value : null } ;
const intl28 = tmp2 ( 1115 ) . intl ;
2026-09-24 10:59:02 +00:00
obj48 . label = intl28 . string ( tmp20 ( 3714 ) . WQ9pMe ) ;
2026-09-16 07:03:15 +00:00
const intl29 = tmp2 ( 1115 ) . intl ;
const obj49 = { count : null } ;
2026-09-24 10:59:02 +00:00
const tmp2Result80 = tmp2 ( 17163 ) ;
obj49 . count = tmp2 ( 17163 ) . formatCount ( limits . context_window_tokens ) ;
obj48 . value = intl29 . formatToPlainString ( tmp20 ( 3714 ) . U98VaN , obj49 ) ;
items21 [ 2 ] = tmp18 ( tmp2 ( 17166 ) . DebugStatRow , obj48 ) ;
2026-09-16 07:03:15 +00:00
const obj50 = { label : null , value : null } ;
const intl30 = tmp2 ( 1115 ) . intl ;
2026-09-24 10:59:02 +00:00
obj50 . label = intl30 . string ( tmp20 ( 3714 ) . iEAvzu ) ;
2026-09-16 07:03:15 +00:00
const intl31 = tmp2 ( 1115 ) . intl ;
const obj51 = { count : null } ;
2026-09-24 10:59:02 +00:00
const tmp2Result81 = tmp2 ( 17163 ) ;
obj51 . count = tmp2 ( 17163 ) . formatCount ( limits . per_turn_max_output_tokens ) ;
obj50 . value = intl31 . formatToPlainString ( tmp20 ( 3714 ) . U98VaN , obj51 ) ;
items21 [ 3 ] = tmp18 ( tmp2 ( 17166 ) . DebugStatRow , obj50 ) ;
2026-09-16 07:03:15 +00:00
const obj52 = { label : null , value : null } ;
const intl32 = tmp2 ( 1115 ) . intl ;
2026-09-24 10:59:02 +00:00
obj52 . label = intl32 . string ( tmp20 ( 3714 ) [ "jbhs+f" ] ) ;
const tmp2Result82 = tmp2 ( 17163 ) ;
obj52 . value = tmp2 ( 17163 ) . formatCount ( limits . max_user_message_chars ) ;
items21 [ 4 ] = tmp18 ( tmp2 ( 17166 ) . DebugStatRow , obj52 ) ;
2026-09-16 07:03:15 +00:00
const obj53 = { label : null , value : null } ;
const intl33 = tmp2 ( 1115 ) . intl ;
2026-09-24 10:59:02 +00:00
obj53 . label = intl33 . string ( tmp20 ( 3714 ) . TOQnq4 ) ;
const tmp2Result83 = tmp2 ( 17163 ) ;
obj53 . value = tmp2 ( 17163 ) . formatCount ( limits . max_build_attempts ) ;
items21 [ 5 ] = tmp18 ( tmp2 ( 17166 ) . DebugStatRow , obj53 ) ;
2026-09-16 07:03:15 +00:00
const obj54 = { label : null , value : null } ;
const intl34 = tmp2 ( 1115 ) . intl ;
2026-09-24 10:59:02 +00:00
obj54 . label = intl34 . string ( tmp20 ( 3714 ) . RIDc6D ) ;
const tmp2Result84 = tmp2 ( 17163 ) ;
obj54 . value = tmp2 ( 17163 ) . formatCount ( limits . max_session_attempts ) ;
items21 [ 6 ] = tmp18 ( tmp2 ( 17166 ) . DebugStatRow , obj54 ) ;
2026-09-16 07:03:15 +00:00
obj45 . children = items21 ;
2026-09-24 10:59:02 +00:00
tmp16Result9 = tmp16 ( tmp2 ( 17166 ) . DebugSection , obj45 ) ;
const tmp2Result85 = tmp2 ( 17163 ) ;
2026-09-16 07:03:15 +00:00
}
items12 [ 6 ] = tmp16Result9 ;
obj6 . children = items12 ;
return tmp16 ( tmp17 , obj6 ) ;
} else {
const obj55 = { title : null , children : null } ;
const intl15 = tmp2 ( 1115 ) . intl ;
2026-09-24 10:59:02 +00:00
obj55 . title = intl15 . string ( tmp20 ( 3714 ) . F5eP7e ) ;
2026-09-16 07:03:15 +00:00
if ( 0 === stateFromStores4 . length ) {
const obj56 = { children : null } ;
const intl17 = tmp2 ( 1115 ) . intl ;
2026-09-24 10:59:02 +00:00
obj56 . children = intl17 . string ( tmp20 ( 3714 ) . j8NMgl ) ;
let tmp18Result14 = tmp18 ( tmp2 ( 17166 ) . DebugNote , obj56 ) ;
2026-09-16 07:03:15 +00:00
} else {
2026-09-24 10:59:02 +00:00
const substr = stateFromStores4 . slice ( - tmp2 ( 17164 ) . MAX_MODEL_CALL_ROWS ) ;
2026-09-16 07:03:15 +00:00
const reversed = substr . reverse ( ) ;
const items22 = [ reversed . map ( ( call ) = > closure_1_7 ( ModelCallRow , { call } , call . id ) ) , ] ;
let tmp18Result15 = null ;
2026-09-24 10:59:02 +00:00
if ( stateFromStores4 . length > tmp2 ( 17164 ) . MAX_MODEL_CALL_ROWS ) {
2026-09-16 07:03:15 +00:00
const obj57 = { variant : "text-xs/normal" , color : "text-muted" , children : null } ;
const intl16 = tmp2 ( 1115 ) . intl ;
2026-09-24 10:59:02 +00:00
const obj58 = { shown : tmp2 ( 17164 ) . MAX_MODEL_CALL_ROWS , total : stateFromStores4.length } ;
obj57 . children = intl16 . formatToPlainString ( tmp20 ( 3714 ) [ "3hYhpp" ] , obj58 ) ;
tmp18Result15 = tmp18 ( tmp2 ( 4825 ) . Text , obj57 ) ;
2026-09-16 07:03:15 +00:00
}
const obj59 = { children : null } ;
items22 [ 1 ] = tmp18Result15 ;
obj59 . children = items22 ;
tmp18Result14 = tmp16 ( closure_9 , obj59 ) ;
}
obj55 . children = tmp18Result14 ;
2026-09-24 10:59:02 +00:00
tmp18 ( tmp2 ( 17166 ) . DebugSection , obj55 ) ;
2026-09-16 07:03:15 +00:00
}
2026-09-24 10:59:02 +00:00
const tmp2Result75 = tmp2 ( 17164 ) ;
2026-09-16 07:03:15 +00:00
}
if ( null != promptCeiling ) {
const intl8 = tmp2 ( 1115 ) . intl ;
2026-09-24 10:59:02 +00:00
const obj60 = { ceiling : tmp2 ( 17163 ) . formatCount ( promptCeiling ) } ;
let formatToPlainStringResult = intl8 . formatToPlainString ( tmp20 ( 3714 ) . LKGmsP , obj60 ) ;
const tmp2Result86 = tmp2 ( 17163 ) ;
2026-09-16 07:03:15 +00:00
} else {
const intl7 = tmp2 ( 1115 ) . intl ;
2026-09-24 10:59:02 +00:00
formatToPlainStringResult = intl7 . string ( tmp20 ( 3714 ) . gPabB9 ) ;
2026-09-16 07:03:15 +00:00
}
2026-09-24 10:59:02 +00:00
tmp18Result17 = tmp18 ( tmp2 ( 17166 ) . DebugNote , { children : formatToPlainStringResult } ) ;
2026-09-16 07:03:15 +00:00
} ;