Skip to content

Commit 5877472

Browse files
committed
Merge branch 'development' of github.com:ColdBox/coldbox-cli into development
2 parents b391150 + 4b13bbd commit 5877472

1 file changed

Lines changed: 17 additions & 13 deletions

File tree

models/AIService.cfc

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -470,14 +470,14 @@ component singleton {
470470

471471
var stats = {
472472
"guidelines" : {
473-
"total" : info.guidelines.len(),
474-
"core" : 0,
475-
"module" : 0,
476-
"custom" : 0,
477-
"override" : 0,
478-
"totalSize" : 0,
479-
"avgSize" : 0,
480-
"inlinedSize" : 0,
473+
"total" : info.guidelines.len(),
474+
"core" : 0,
475+
"module" : 0,
476+
"custom" : 0,
477+
"override" : 0,
478+
"totalSize" : 0,
479+
"avgSize" : 0,
480+
"inlinedSize" : 0,
481481
"onDemandSize" : 0
482482
},
483483
"skills" : {
@@ -558,7 +558,9 @@ component singleton {
558558
// Calculate total guidelines size
559559
if ( directoryExists( guidelinesDir ) ) {
560560
stats.guidelines.totalSize = calculateDirectorySize( guidelinesDir );
561-
stats.guidelines.avgSize = stats.guidelines.total > 0 ? int( stats.guidelines.totalSize / stats.guidelines.total ) : 0;
561+
stats.guidelines.avgSize = stats.guidelines.total > 0 ? int(
562+
stats.guidelines.totalSize / stats.guidelines.total
563+
) : 0;
562564
}
563565

564566
// Count skills by type (all skills are on-demand)
@@ -608,13 +610,15 @@ component singleton {
608610

609611
// Calculate context estimates
610612
// Base context = agent files (includes inlined guidelines + inventories)
611-
stats.contextEstimate.baseContextKB = int( stats.agents.filesSize / 1024 );
613+
stats.contextEstimate.baseContextKB = int( stats.agents.filesSize / 1024 );
612614
// Inlined guidelines (part of base context, shown separately for clarity)
613-
stats.contextEstimate.inlinedKB = int( stats.guidelines.inlinedSize / 1024 );
615+
stats.contextEstimate.inlinedKB = int( stats.guidelines.inlinedSize / 1024 );
614616
// On-demand resources (not in base context, but available)
615-
stats.contextEstimate.onDemandKB = int( ( stats.guidelines.onDemandSize + stats.skills.totalSize ) / 1024 );
617+
stats.contextEstimate.onDemandKB = int( ( stats.guidelines.onDemandSize + stats.skills.totalSize ) / 1024 );
616618
// Total available if all resources were loaded
617-
stats.contextEstimate.totalAvailableKB = int( ( stats.agents.filesSize + stats.guidelines.onDemandSize + stats.skills.totalSize ) / 1024 );
619+
stats.contextEstimate.totalAvailableKB = int(
620+
( stats.agents.filesSize + stats.guidelines.onDemandSize + stats.skills.totalSize ) / 1024
621+
);
618622

619623
return stats;
620624
}

0 commit comments

Comments
 (0)