Skip to content
1 viewer

rust 1,859,753 · typescript 235,218 · javascript 132,950 · python 20,426 · 6,405 files · digest 8b5a693e3c82 · built in 1.7 s · crystals off

crates/cre8-app-intelligence/src/spend.rs

cre8-app-intelligence · module spend · src · 958 lines (671 code, 196 comment) · sha 6762f7c043ecd072

Items

const LLM_SPEND_CONTRACT_ID const LLM_SPEND_INTENT const LLM_SPEND_TARGET_PATTERN const PROTOCOL_POOL_ACCOUNT const QUOTA_DENOM const LIGHT_COST const PREMIUM_COST struct LlmSpend enum LlmSpendError impl Display for LlmSpendError impl Error for LlmSpendError

Functions

By call-graph weight (PageRank; 1.0 is the average function). 39 functions in all.

functionkindlinescyclomaticcallerscalleesweightcrystal
settle_llm_spendsrc/spend.rs:356fn118111262.3
quota_tier_for_modelsrc/spend.rs:86fn85301.9
spendsrc/spend.rs:479fn1111301.7
check_llm_spend_capssrc/spend.rs:198fn406531.6
permissive_policysrc/spend.rs:491fn31101.4
check_llm_spendsrc/spend.rs:171fn173301.3
llm_spend_receiptsrc/spend.rs:325fn201441.2
provider_segmentsrc/spend.rs:282fn84201.2
fundsrc/spend.rs:495fn51911.1
llm_spend_contractsrc/spend.rs:261fn81321.1
balance_ofsrc/spend.rs:501fn31801.1
quota_tier_pricesrc/spend.rs:74fn62201
context_with_real_chokepointsrc/spend.rs:649fn4218131
resolve_ownersrc/spend.rs:309fn122201
quota_price_for_modelsrc/spend.rs:96fn31821
cap_denial_from_reportssrc/spend.rs:243fn132200.9
plant_quota_contractsrc/spend.rs:747fn111550.8
quota_capsrc/spend.rs:763fn71510.8
deterministic_ts_from_refsrc/spend.rs:275fn31100.7
spend_refsrc/spend.rs:293fn111100.7
advance_one_millisecond_so_the_earlier_flow_countssrc/spend.rs:774fn31300.6
LlmSpendError::fmtsrc/spend.rs:146trait impl173000.5
check_llm_spend_passes_unpriced_and_funded_and_refuses_shortfallssrc/spend.rs:506fn151010.5
receipt_binds_the_full_spend_tuple_and_the_contract_resolves_a_transfersrc/spend.rs:523fn251040.5
same_invocation_hashes_identically_and_distinct_invocations_do_notsrc/spend.rs:550fn81020.5
provider_segment_is_one_safe_asset_segmentsrc/spend.rs:560fn61010.5
unpriced_spend_settles_as_an_explicit_no_opsrc/spend.rs:568fn111030.5
insufficient_balance_is_typed_and_moves_nothingsrc/spend.rs:581fn81050.5
without_a_chokepoint_the_spend_still_debits_and_credits_atomicallysrc/spend.rs:591fn141050.5
owner_resolution_prefers_spend_then_local_peer_then_protocol_poolsrc/spend.rs:607fn121030.5
quota_tier_price_and_model_tier_are_the_one_pricing_tablesrc/spend.rs:621fn183030.5
happy_debit_moves_the_quoted_denom_from_agent_to_owner_through_the_chokepointsrc/spend.rs:693fn131050.5
a_re_settle_of_the_same_invocation_replays_without_debiting_twicesrc/spend.rs:708fn171050.5
insufficient_balance_through_the_chokepoint_path_is_typed_and_moves_nothingsrc/spend.rs:727fn91050.5
a_per_peer_cap_refuses_the_spend_at_the_chokepoint_as_a_typed_denialsrc/spend.rs:779fn5840110.5
a_cli_provider_round_is_capped_because_the_cap_names_the_denom_not_the_providersrc/spend.rs:839fn212070.5
a_global_cap_is_shared_across_agents_while_a_per_peer_cap_is_notsrc/spend.rs:862fn433080.5
cap_preflight_refuses_before_the_provider_and_permits_an_ungoverned_assetsrc/spend.rs:907fn391090.5
preflight_ignores_a_role_scoped_cap_the_peer_does_not_holdsrc/spend.rs:948fn101050.5

Source not readable from this process.