Skip to content
1 viewer

rust 1,847,280 · typescript 232,434 · javascript 131,101 · python 19,227 · 6,362 files · digest 755e2ee30522 · built in 2.3 s · crystals off

cre8-app-intelligence intelligence cargo crate

IntelligenceApp — LLM provider registry + adapters (anthropic/openai-compat/cli). Extracted from src/apps/intelligence (2026-05-23, step 15 of src/apps elimination).

crates/cre8-app-intelligence · level 11 · 8,125 lines (6,159 code) · 24 files · 469 fns (163 tests) · cyclomatic Σ 808

20workspace deps
15direct dependents
94transitive dependents
199calls out
170calls in
395call-graph weight
0.0%exact crystals

Neighbourhood

Left: crates that declare this one. Right: crates it declares (dev-dependencies included). Edge width grows with resolved calls.

Declared but never named in this crate's source: cre8-app-truth-api (normal).

normal dep · 59 callsnormal dep · 0 calls · never namednormal dep · 17 callsdev dep · 0 calls · never namednormal dep · 12 callsnormal dep · 2 callsnormal dep · 0 calls · never namednormal dep · 8 callsnormal dep · 0 callsnormal dep · 22 callsnormal dep · 16 callsnormal dep · 27 callsnormal dep · 1 callsnormal dep · 5 callsnormal dep · 7 callsnormal dep · 8 callsnormal dep · 4 callsnormal dep · 0 calls · never namednormal dep · 11 callsnormal dep · 14 callsnormal dep · 3 callsnormal dep · 6 callsnormal dep · 3 callsnormal dep · 0 callsnormal dep · 0 callsnormal dep · 17 callsnormal dep · 2 callsnormal dep · 39 callsdev dep · 14 callsnormal dep · 3 callsnormal dep · 44 callsnormal dep · 2 callsnormal dep · 2 callsnormal dep · 4 callsnormal dep · 5 callsnormal dep · 12 callsdev dep · 0 calls · never namednormal dep · 0 callsdev dep · 0 calls · never namedapp-intelligenceL11 · 6,159 linescre8-app-intelligenceapp-agentL23 · 25,432 linescre8-app-agentapp-code_changeL21 · 2,183 linescre8-app-code_changeapp-collabL17 · 4,974 linescre8-app-collabapp-computeL13 · 93,890 linescre8-app-computeapp-docL12 · 2,463 linescre8-app-docapp-emulationL12 · 17,259 linescre8-app-emulationapp-gatewayL12 · 23,741 linescre8-app-gatewayapp-imageL12 · 5,783 linescre8-app-imageapp-collab-modelL0 · 24 linescre8-app-collab-modelapp-intelligence-apiL4 · 1,046 linescre8-app-intelligence-apiapp-manifoldL9 · 18,864 linescre8-app-manifoldapp-matching-modelL4 · 7,768 linescre8-app-matching-modelapp-matching-storeL6 · 195 linescre8-app-matching-storeapp-meteringL10 · 4,358 linescre8-app-meteringapp-passport-modelL4 · 2,418 linescre8-app-passport-modelapp-protocolL8 · 25,151 linescre8-app-protocolapp-truthL6 · 20,464 linescre8-app-truthapp-truth-apiL5 · 888 linescre8-app-truth-apiplatform-envL3 · 316 linescre8-platform-envplatform-httpL3 · 852 linescre8-platform-httpplatform-timeL3 · 65 linescre8-platform-timeruntime-app-typesL5 · 2,860 linescre8-runtime-app-typesruntime-contractsL0 · 6,077 linescre8-runtime-contractsruntime-coreL2 · 747 linescre8-runtime-coreruntime-hostL1 · 1,649 linescre8-runtime-hostutil-lock-extL0 · 195 linescre8-util-lock-extutil-quotaL0 · 237 linescre8-util-quotautil-secretL0 · 109 linescre8-util-secrettest-helpersL28 · 557 linescre8-test-helpersapp-memoryL18 · 1,911 linescre8-app-memoryapp-messagingL19 · 25,534 linescre8-app-messagingapp-radioL16 · 10,706 linescre8-app-radioapp-realmL26 · 7,526 linescre8-app-realmapp-tvL17 · 19,696 linescre8-app-tvapp-virtual_agentL24 · 21,761 linescre8-app-virtual_agentapp-voiceL15 · 8,197 linescre8-app-voiceruntimeL30 · 4 linescre8-runtimeruntime-app-catalogL27 · 676 linescre8-runtime-app-catalogruntime-test-suiteL0 · 0 linescre8-runtime-test-suite

Files

lowhigh
crates/cre8-app-intelligence/src/adapters/anthropic.rs · 483 lines · 32 fnsanthropic.rscrates/cre8-app-intelligence/src/adapters/cli_subprocess.rs · 691 lines · 69 fnscli_subprocess.rscrates/cre8-app-intelligence/src/adapters/hash_embed.rs · 89 lines · 10 fnshash_embed…crates/cre8-app-intelligence/src/adapters/key_manager.rs · 37 lines · 2 fnskey_m…crates/cre8-app-intelligence/src/adapters/mod.rs · 20 lines · 0 fnscrates/cre8-app-intelligence/src/adapters/openai_compat.rs · 951 lines · 85 fnsopenai_compat.rscrates/cre8-app-intelligence/src/adapters/openrouter_key_manager.rs · 95 lines · 5 fnsopenrouter_…crates/cre8-app-intelligence/src/app.rs · 162 lines · 8 fnsapp.rscrates/cre8-app-intelligence/src/boot.rs · 88 lines · 2 fnsboot.rscrates/cre8-app-intelligence/src/connection.rs · 120 lines · 12 fnsconnection.rscrates/cre8-app-intelligence/src/context_ext.rs · 23 lines · 4 fnscrates/cre8-app-intelligence/src/key_pool.rs · 285 lines · 24 fnskey_pool.rscrates/cre8-app-intelligence/src/lib.rs · 31 lines · 0 fnscrates/cre8-app-intelligence/src/pool_registry.rs · 357 lines · 23 fnspool_registry.rscrates/cre8-app-intelligence/src/provider.rs · 1 lines · 0 fnscrates/cre8-app-intelligence/src/registry.rs · 635 lines · 43 fnsregistry.rscrates/cre8-app-intelligence/src/router.rs · 393 lines · 25 fnsrouter.rscrates/cre8-app-intelligence/src/spend.rs · 671 lines · 39 fnsspend.rscrates/cre8-app-intelligence/src/tool.rs · 1 lines · 0 fnscrates/cre8-app-intelligence/src/tools/cre8vm_exec.rs · 187 lines · 15 fnscre8vm_exec.rscrates/cre8-app-intelligence/src/tools/graph_query.rs · 358 lines · 30 fnsgraph_query.rscrates/cre8-app-intelligence/src/tools/mod.rs · 8 lines · 0 fnscrates/cre8-app-intelligence/src/tools/vector_search.rs · 203 lines · 17 fnsvector_search.rscrates/cre8-app-intelligence/src/tools/vm_os.rs · 270 lines · 24 fnsvm_os.rs

File call graph

Resolved calls between this crate's files, callers left of callees.

Heaviest functions

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

functionkindlinescyclomaticcallerscalleesweightcrystal
RuntimeContext::intelligence_optsrc/context_ext.rs:55trait impl411608
IntelligenceRegistry::get_defaultsrc/registry.rs:95method412827.9
RuntimeContext::intelligencesrc/context_ext.rs:50trait impl411015.2
IntelligenceRegistry::emptysrc/registry.rs:67method714115
OpenAiCompat::newsrc/adapters/openai_compat.rs:176method2111705
tool_with_fakesrc/tools/graph_query.rs:256fn73101034.5
OpenAiCompat::with_kindsrc/adapters/openai_compat.rs:230method411204.5
IntelligenceRegistry::getsrc/registry.rs:84method31314.3
GraphQueryTool::required_string_argsrc/tools/graph_query.rs:101method71603.7
tool_that_recordssrc/tools/vm_os.rs:256fn91823.2
HashEmbedProvider::newsrc/adapters/hash_embed.rs:23method31903
install_intelligence_arcsrc/context_ext.rs:69fn311803
which_binsrc/adapters/cli_subprocess.rs:638fn154512.9
IntelligenceRegistry::set_defaultsrc/registry.rs:91method312512.9
tool_that_recordssrc/tools/cre8vm_exec.rs:163fn141722.8
parse_cli_outputsrc/adapters/cli_subprocess.rs:758fn4810502.5
OpenAiCompat::ollamasrc/adapters/openai_compat.rs:244method41632.4
settle_llm_spendsrc/spend.rs:356fn118111262.4
connectsrc/connection.rs:43fn114332.3
VmOsTool::newsrc/tools/vm_os.rs:122method201302.1
poolsrc/key_pool.rs:263fn41922
get_or_initsrc/pool_registry.rs:240fn154952
AnthropicProvider::newsrc/adapters/anthropic.rs:112method311002
with_pool_failoversrc/pool_registry.rs:324fn8661082
quota_tier_for_modelsrc/spend.rs:86fn85301.9
OpenAiCompat::clear_model_reference_cachesrc/adapters/openai_compat.rs:478method52301.9
ApiKeyPool::from_secretssrc/key_pool.rs:80method51301.9
OpenAiCompat::openaisrc/adapters/openai_compat.rs:237method31821.8
GraphQueryTool::newsrc/tools/graph_query.rs:60method131101.8
FakeGraph::fixturesrc/tools/graph_query.rs:239method151101.8
toolsrc/tools/vector_search.rs:208fn121331.8
IntelligenceRegistry::discover_from_vaultsrc/registry.rs:176method1011141.7
spendsrc/spend.rs:479fn1111301.7
Cre8VmExecTool::newsrc/tools/cre8vm_exec.rs:63method141101.7
ApiKeyPool::picksrc/key_pool.rs:135method279711.7
push_prompt_sectionsrc/adapters/cli_subprocess.rs:609fn61201.7
Cre8Router::is_model_compatiblesrc/router.rs:124method189201.6
validate_selection_idsrc/registry.rs:387fn126201.6
IntelligenceRegistry::listsrc/registry.rs:154method141511.6
providers_jsonsrc/connection.rs:55fn141231.6

Outside the workspace

anyhow base64 cre8-lib-math hyperdb serde serde_json sha2 tracing