1 viewer
rust 1,860,549 · typescript 235,540 · javascript 132,956 · python 20,426 · 6,408 files · digest f04d4637f52b · built in 1.5 s · crystals off
crates/cre8-app-agent/src/swarm_tick.rs
Items
const KIND_SWARM_TICK_RECEIPT const KIND_SWARM_TICK_LAST const MIN_TICK_GAP_S const DEFAULT_SWEEP_LIMIT const TICK_MAX_TOKENS struct SwarmTickReceipt impl SwarmTickReceipt const DEFAULT_RECEIPT_QUERY_LIMIT const DEFAULT_RECEIPT_KEEP_PER_AGENT const RECEIPT_KEEP_ENV const ACCOUNT_DDL const PASSPORT_DDL struct UnreachableProvider impl LlmProvider for UnreachableProvider
Functions
By call-graph weight (PageRank; 1.0 is the average function). 50 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| context_with_graphsrc/swarm_tick.rs:698 | fn | 9 | 1 | 13 | 5 | 1.5 | |
| handle_agent_swarm_receiptssrc/swarm_tick.rs:549 | fn | 24 | 2 | 4 | 3 | 1.3 | |
| agent_recordsrc/swarm_tick.rs:708 | fn | 17 | 2 | 8 | 0 | 1.2 | |
| handle_agent_swarm_ticksrc/swarm_tick.rs:146 | fn | 41 | 3 | 9 | 9 | 1.2 | |
| SwarmTickReceipt::ransrc/swarm_tick.rs:137 | method | 3 | 1 | 2 | 0 | 1.1 | |
| record_swarm_tick_receiptsrc/swarm_tick.rs:481 | fn | 30 | 3 | 4 | 3 | 1 | |
| seed_agentsrc/swarm_tick.rs:726 | fn | 3 | 1 | 9 | 1 | 1 | |
| last_tick_vidsrc/swarm_tick.rs:428 | fn | 3 | 1 | 3 | 0 | 1 | |
| should_sleep_for_budgetsrc/swarm_tick.rs:268 | fn | 3 | 2 | 2 | 0 | 0.9 | |
| receipt_vidsrc/swarm_tick.rs:420 | fn | 7 | 1 | 2 | 0 | 0.9 | |
| install_registry_with_defaultsrc/swarm_tick.rs:745 | fn | 6 | 1 | 7 | 4 | 0.9 | |
| swarm_tick_receipt_rowssrc/swarm_tick.rs:588 | fn | 38 | 5 | 1 | 2 | 0.9 | |
| run_receiptsrc/swarm_tick.rs:1031 | fn | 11 | 1 | 3 | 0 | 0.8 | |
| store_receiptssrc/swarm_tick.rs:1043 | fn | 9 | 2 | 3 | 2 | 0.8 | |
| storedsrc/swarm_tick.rs:837 | fn | 3 | 1 | 5 | 1 | 0.7 | |
| quota_balance_ofsrc/swarm_tick.rs:244 | fn | 5 | 1 | 3 | 1 | 0.7 | |
| fund_quotasrc/swarm_tick.rs:820 | fn | 10 | 1 | 4 | 0 | 0.7 | |
| prune_swarm_tick_receiptssrc/swarm_tick.rs:638 | fn | 26 | 5 | 2 | 2 | 0.6 | |
| budget_dormant_recordsrc/swarm_tick.rs:833 | fn | 3 | 1 | 3 | 2 | 0.6 | |
| reactivate_budget_dormantsrc/swarm_tick.rs:253 | fn | 7 | 2 | 1 | 3 | 0.6 | |
| swarm_tick_responsesrc/swarm_tick.rs:188 | fn | 20 | 1 | 1 | 1 | 0.6 | |
| swarm_brokersrc/swarm_tick.rs:213 | fn | 7 | 2 | 1 | 5 | 0.6 | |
| sweep_candidatessrc/swarm_tick.rs:226 | fn | 15 | 6 | 1 | 4 | 0.6 | |
| tick_one_agentsrc/swarm_tick.rs:282 | fn | 99 | 10 | 1 | 17 | 0.6 | |
| persist_run_receiptssrc/swarm_tick.rs:462 | fn | 12 | 3 | 1 | 5 | 0.6 | |
| receipt_keep_per_agentsrc/swarm_tick.rs:531 | fn | 8 | 1 | 1 | 0 | 0.6 | |
| mark_agent_budget_dormantsrc/swarm_tick.rs:275 | fn | 6 | 2 | 2 | 2 | 0.6 | |
| SwarmTickReceipt::skippedsrc/swarm_tick.rs:125 | method | 11 | 1 | 1 | 0 | 0.5 | |
| quota_balancesrc/swarm_tick.rs:382 | fn | 7 | 1 | 1 | 0 | 0.5 | |
| persona_forsrc/swarm_tick.rs:394 | fn | 18 | 5 | 1 | 2 | 0.5 | |
| preferred_modelsrc/swarm_tick.rs:413 | fn | 4 | 1 | 1 | 2 | 0.5 | |
| receipt_existssrc/swarm_tick.rs:432 | fn | 4 | 1 | 1 | 3 | 0.5 | |
| cooldown_remaining_ssrc/swarm_tick.rs:440 | fn | 10 | 2 | 1 | 3 | 0.5 | |
| UnreachableProvider::idsrc/swarm_tick.rs:734 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| UnreachableProvider::default_modelsrc/swarm_tick.rs:737 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| UnreachableProvider::completesrc/swarm_tick.rs:740 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| empty_registry_sweep_is_cheap_and_oksrc/swarm_tick.rs:753 | fn | 10 | 1 | 0 | 2 | 0.5 | |
| missing_default_provider_skips_sweep_without_receiptssrc/swarm_tick.rs:765 | fn | 12 | 1 | 0 | 6 | 0.5 | |
| dormant_agents_are_excluded_and_missing_prereqs_skip_with_reasonssrc/swarm_tick.rs:779 | fn | 40 | 1 | 0 | 6 | 0.5 | |
| budget_exhaustion_puts_the_agent_to_sleep_with_a_reason_and_a_stampsrc/swarm_tick.rs:842 | fn | 22 | 1 | 0 | 8 | 0.5 | |
| a_budget_dormant_agent_is_skipped_while_broke_and_swept_again_once_fundedsrc/swarm_tick.rs:866 | fn | 29 | 1 | 0 | 10 | 0.5 | |
| an_operator_dormant_agent_is_never_woken_however_rich_it_issrc/swarm_tick.rs:897 | fn | 11 | 1 | 0 | 8 | 0.5 | |
| waking_needs_at_least_the_light_pricesrc/swarm_tick.rs:910 | fn | 27 | 1 | 0 | 9 | 0.5 | |
| only_an_unaffordable_round_is_a_reason_to_sleepsrc/swarm_tick.rs:939 | fn | 19 | 1 | 0 | 1 | 0.5 | |
| the_sweep_still_excludes_archived_agents_and_reports_them_in_totalsrc/swarm_tick.rs:960 | fn | 16 | 1 | 0 | 9 | 0.5 | |
| explicit_tick_id_replay_is_idempotentsrc/swarm_tick.rs:978 | fn | 26 | 1 | 0 | 7 | 0.5 | |
| recent_run_puts_agent_on_cooldownsrc/swarm_tick.rs:1006 | fn | 24 | 1 | 0 | 7 | 0.5 | |
| swarm_receipts_query_returns_newest_first_with_quota_deltasrc/swarm_tick.rs:1054 | fn | 38 | 1 | 0 | 4 | 0.5 | |
| swarm_receipts_query_filters_by_agent_idsrc/swarm_tick.rs:1094 | fn | 24 | 1 | 0 | 4 | 0.5 | |
| prune_keeps_newest_per_agent_and_spares_the_last_markersrc/swarm_tick.rs:1120 | fn | 38 | 2 | 0 | 9 | 0.5 |
Source not readable from this process.