@@ -24,7 +24,7 @@ interface Balance {
2424 */
2525export const usage : Command = {
2626 name : "usage" ,
27- description : "Show your Codebase plan usage — credits used, remaining, and reset date ." ,
27+ description : "Show metered credits and included Codebase turn allowances ." ,
2828 handler : async ( _args , ctx ) => {
2929 ctx . emit ( await fetchUsageReport ( ) ) ;
3030 return { handled : true } ;
@@ -68,10 +68,10 @@ export async function fetchUsageReport(): Promise<string> {
6868 lines . push ( "Monthly allowance was not returned yet; showing remaining credits only." ) ;
6969 }
7070 if ( typeof b . anyBuildsRemaining === "number" && b . anyBuildsRemaining >= 0 ) {
71- lines . push ( `Build turns remaining: ${ b . anyBuildsRemaining . toLocaleString ( ) } ` ) ;
71+ lines . push ( `Included web-build turns remaining: ${ b . anyBuildsRemaining . toLocaleString ( ) } ` ) ;
7272 }
7373 if ( typeof b . cheapBuildsRemaining === "number" && b . cheapBuildsRemaining >= 0 ) {
74- lines . push ( `Fast turns remaining: ${ b . cheapBuildsRemaining . toLocaleString ( ) } ` ) ;
74+ lines . push ( `Included fast coding turns remaining: ${ b . cheapBuildsRemaining . toLocaleString ( ) } ` ) ;
7575 }
7676 return lines . join ( "\n" ) ;
7777 } catch ( err ) {
@@ -99,7 +99,7 @@ export function formatUsageBalance(b: Balance): {
9999 b . planName ?? plan ?. name ?? ( typeof b . plan === "string" ? b . plan : undefined ) ?? b . planId ?? "Codebase" ;
100100 if ( ! allowance || allowance <= 0 ) {
101101 return {
102- creditLine : `Credits left: ${ remaining . toLocaleString ( ) } ` ,
102+ creditLine : `Metered credits left: ${ remaining . toLocaleString ( ) } ` ,
103103 days,
104104 pct : null ,
105105 planName,
@@ -108,7 +108,7 @@ export function formatUsageBalance(b: Balance): {
108108 const used = Math . max ( 0 , allowance - remaining ) ;
109109 const pct = Math . max ( 0 , Math . min ( 100 , Math . round ( ( used / allowance ) * 100 ) ) ) ;
110110 return {
111- creditLine : `Credits : ${ used . toLocaleString ( ) } / ${ allowance . toLocaleString ( ) } used · ${ remaining . toLocaleString ( ) } left` ,
111+ creditLine : `Metered credits : ${ used . toLocaleString ( ) } / ${ allowance . toLocaleString ( ) } used · ${ remaining . toLocaleString ( ) } left` ,
112112 days,
113113 pct,
114114 planName,
0 commit comments