1 viewer
rust 1,859,989 · typescript 235,537 · javascript 132,952 · python 20,426 · 6,407 files · digest 4f42637fac12 · built in 1.2 s · crystals off
crates/cre8-platform-process/src/process_registry.rs
Items
const HISTORY_CAP const COMMAND_DISPLAY_LIMIT const REDACTED_COMMAND_VALUE const ENV_SESSION_ID const ENV_AGENT_ID enum ProcessStatus struct ProcessRecord struct ProcessRegistrySnapshot struct ProcessRegistry struct RegistryInner static GLOBAL struct ScopedAgentRestore impl Drop for ScopedAgentRestore static CACHE struct CommandTokenRedaction impl CommandTokenRedaction impl ProcessRegistry struct TrackedChild impl TrackedChild impl Drop for TrackedChild
Functions
By call-graph weight (PageRank; 1.0 is the average function). 68 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| command_token_is_sensitivesrc/process_registry.rs:292 | fn | 27 | 4 | 2 | 0 | 1.9 | |
| current_identitysrc/process_registry.rs:174 | fn | 6 | 1 | 5 | 0 | 1.8 | |
| globalsrc/process_registry.rs:114 | fn | 3 | 1 | 11 | 0 | 1.8 | |
| TrackedChild::record_statussrc/process_registry.rs:617 | method | 6 | 2 | 3 | 3 | 1.6 | |
| scoped_agent_account_idsrc/process_registry.rs:167 | fn | 3 | 1 | 5 | 0 | 1.5 | |
| redact_command_tokensrc/process_registry.rs:259 | fn | 15 | 4 | 1 | 4 | 1.5 | |
| enter_agent_account_scopesrc/process_registry.rs:146 | fn | 6 | 2 | 1 | 0 | 1.2 | |
| ProcessRegistry::finalizesrc/process_registry.rs:346 | method | 8 | 2 | 4 | 5 | 1.2 | |
| truncate_command_displaysrc/process_registry.rs:223 | fn | 11 | 4 | 2 | 0 | 1.2 | |
| redact_sensitive_commandsrc/process_registry.rs:235 | fn | 12 | 2 | 2 | 1 | 1.2 | |
| spawn_tracked_with_agentsrc/process_registry.rs:566 | fn | 31 | 1 | 1 | 8 | 1.2 | |
| tracked_output_with_agentsrc/process_registry.rs:489 | fn | 67 | 2 | 2 | 11 | 1.1 | |
| format_commandsrc/process_registry.rs:215 | fn | 7 | 1 | 4 | 2 | 1.1 | |
| trim_nonemptysrc/process_registry.rs:189 | fn | 3 | 1 | 2 | 0 | 1 | |
| exit_process_statussrc/process_registry.rs:208 | fn | 6 | 2 | 2 | 0 | 1 | |
| ProcessRegistry::snapshotsrc/process_registry.rs:355 | method | 17 | 1 | 6 | 2 | 1 | |
| output_process_statussrc/process_registry.rs:201 | fn | 6 | 2 | 2 | 0 | 0.9 | |
| echo_cmdsrc/process_registry.rs:685 | fn | 14 | 1 | 6 | 0 | 0.9 | |
| TrackedChild::waitsrc/process_registry.rs:624 | method | 7 | 1 | 5 | 2 | 0.9 | |
| TrackedChild::idsrc/process_registry.rs:609 | method | 3 | 1 | 4 | 0 | 0.9 | |
| with_agent_account_idsrc/process_registry.rs:159 | fn | 4 | 1 | 3 | 1 | 0.9 | |
| CommandTokenRedaction::newsrc/process_registry.rs:254 | method | 3 | 1 | 1 | 0 | 0.8 | |
| redact_inline_sensitive_assignmentsrc/process_registry.rs:275 | fn | 5 | 1 | 1 | 1 | 0.8 | |
| command_token_starts_sensitive_valuesrc/process_registry.rs:281 | fn | 3 | 2 | 1 | 1 | 0.8 | |
| redact_command_token_valuesrc/process_registry.rs:285 | fn | 6 | 3 | 1 | 0 | 0.8 | |
| local_session_idsrc/process_registry.rs:193 | fn | 5 | 1 | 1 | 1 | 0.8 | |
| ProcessRegistry::insert_activesrc/process_registry.rs:326 | method | 19 | 1 | 3 | 1 | 0.8 | |
| spawn_trackedsrc/process_registry.rs:560 | fn | 3 | 1 | 5 | 1 | 0.8 | |
| TrackedChild::record_idsrc/process_registry.rs:613 | method | 3 | 1 | 5 | 0 | 0.8 | |
| TrackedChild::wait_with_outputsrc/process_registry.rs:632 | method | 7 | 1 | 3 | 2 | 0.7 | |
| ProcessRegistry::next_idsrc/process_registry.rs:321 | method | 4 | 1 | 2 | 0 | 0.7 | |
| resolve_identitysrc/process_registry.rs:181 | fn | 7 | 2 | 1 | 2 | 0.7 | |
| tracked_outputsrc/process_registry.rs:481 | fn | 3 | 1 | 2 | 1 | 0.7 | |
| remove_active_recordsrc/process_registry.rs:410 | fn | 4 | 1 | 1 | 0 | 0.7 | |
| complete_process_recordsrc/process_registry.rs:415 | fn | 4 | 1 | 1 | 0 | 0.7 | |
| emit_finalized_process_recordsrc/process_registry.rs:420 | fn | 9 | 4 | 1 | 4 | 0.7 | |
| push_history_recordsrc/process_registry.rs:470 | fn | 6 | 2 | 1 | 0 | 0.7 | |
| TrackedChild::killsrc/process_registry.rs:660 | method | 6 | 2 | 3 | 0 | 0.7 | |
| TrackedChild::detach_with_waitersrc/process_registry.rs:645 | method | 14 | 1 | 2 | 6 | 0.7 | |
| finalized_duration_mssrc/process_registry.rs:430 | fn | 3 | 1 | 1 | 0 | 0.6 | |
| emit_exited_process_recordsrc/process_registry.rs:434 | fn | 11 | 1 | 1 | 0 | 0.6 | |
| emit_nonzero_process_recordsrc/process_registry.rs:446 | fn | 11 | 1 | 1 | 0 | 0.6 | |
| emit_failed_process_recordsrc/process_registry.rs:458 | fn | 11 | 1 | 1 | 0 | 0.6 | |
| exit_cmdsrc/process_registry.rs:700 | fn | 14 | 1 | 1 | 0 | 0.6 | |
| scoped_account_valuesrc/process_registry.rs:730 | fn | 4 | 1 | 1 | 1 | 0.6 | |
| scoped_empty_valuesrc/process_registry.rs:735 | fn | 3 | 1 | 1 | 0 | 0.6 | |
| sleeper_cmdsrc/process_registry.rs:715 | fn | 14 | 1 | 2 | 0 | 0.6 | |
| test_recordsrc/process_registry.rs:739 | fn | 14 | 1 | 1 | 0 | 0.6 | |
| TrackedChild::child_mutsrc/process_registry.rs:605 | method | 3 | 1 | 1 | 0 | 0.5 | |
| ProcessRegistry::snapshot_for_agentsrc/process_registry.rs:378 | method | 30 | 1 | 1 | 2 | 0.5 | |
| ScopedAgentRestore::dropsrc/process_registry.rs:138 | trait impl | 6 | 2 | 0 | 0 | 0.5 | |
| TrackedChild::dropsrc/process_registry.rs:669 | trait impl | 9 | 2 | 0 | 1 | 0.5 | |
| tracked_output_records_active_then_historysrc/process_registry.rs:755 | fn | 10 | 1 | 0 | 4 | 0.5 | |
| spawn_tracked_finalizes_on_waitsrc/process_registry.rs:767 | fn | 9 | 1 | 0 | 6 | 0.5 | |
| spawn_tracked_exposes_child_and_wait_with_outputsrc/process_registry.rs:778 | fn | 13 | 1 | 0 | 8 | 0.5 | |
| spawn_tracked_drop_and_kill_finalize_recordssrc/process_registry.rs:793 | fn | 16 | 1 | 0 | 8 | 0.5 | |
| tracked_output_records_spawn_failure_and_nonzero_exitsrc/process_registry.rs:811 | fn | 13 | 1 | 0 | 4 | 0.5 | |
| scoped_agent_id_applies_restores_and_survives_panicsrc/process_registry.rs:826 | fn | 16 | 1 | 0 | 4 | 0.5 | |
| snapshot_for_agent_filters_active_and_history_recordssrc/process_registry.rs:844 | fn | 18 | 1 | 0 | 10 | 0.5 | |
| detach_with_waiter_records_eventual_exitsrc/process_registry.rs:864 | fn | 17 | 3 | 0 | 6 | 0.5 | |
| local_registry_finalize_handles_running_status_and_history_capsrc/process_registry.rs:883 | fn | 28 | 2 | 0 | 5 | 0.5 | |
| current_identity_is_stablesrc/process_registry.rs:913 | fn | 5 | 1 | 0 | 1 | 0.5 | |
| command_format_redacts_sensitive_valuessrc/process_registry.rs:920 | fn | 22 | 1 | 0 | 2 | 0.5 | |
| command_format_truncates_on_utf8_boundarysrc/process_registry.rs:944 | fn | 13 | 1 | 0 | 2 | 0.5 | |
| process_status_helpers_capture_wait_errorssrc/process_registry.rs:959 | fn | 11 | 1 | 0 | 0 | 0.5 | |
| consumed_tracked_child_methods_report_errorssrc/process_registry.rs:972 | fn | 11 | 1 | 0 | 4 | 0.5 | |
| resolve_identity_covers_trimmed_empty_and_local_fallback_pathssrc/process_registry.rs:990 | fn | 12 | 1 | 0 | 2 | 0.5 | |
| empty_agent_account_id_runs_without_setting_thread_local_scopesrc/process_registry.rs:1004 | fn | 4 | 1 | 0 | 2 | 0.5 |
Source not readable from this process.