MCPcopy Create free account

hub / github.com/c4pt0r/pie / functions

Functions2,618 in github.com/c4pt0r/pie

↓ 1 callersFunctionactive_hook_registrations
Real `*Hook` trait registrations active in this binary. Only names that map to an actual `AgentHarness` extension point — so users reading the panel l
crates/coding-agent/src/main.rs:1111
↓ 1 callersMethodactive_token
Active cancellation token while a run is in flight, otherwise `None`.
crates/agent/src/agent.rs:166
↓ 1 callersFunctionactive_trigger_features
Trigger-runtime features always wired in the current binary. Distinct from hook registrations — these are pipeline behaviors (dedup, cycle suppression
crates/coding-agent/src/main.rs:1129
↓ 1 callersMethodadd_ignore_rules
(&mut self, dir: &str, out: &mut LoadSkillsOutput)
crates/agent/src/harness/skills.rs:189
↓ 1 callersFunctionagent_listener
Build the per-turn agent listener. Maps streaming deltas, tool calls, and turn boundaries into feed updates.
crates/coding-agent/src/ui/listener.rs:21
↓ 1 callersFunctionagent_message_text
(message: &AgentMessage)
crates/coding-agent/src/goal.rs:158
↓ 1 callersFunctionagent_ws_url
Derive the agent WebSocket URL from the configured https base URL.
crates/coding-agent/src/ui/relay.rs:133
↓ 1 callersFunctionallow_all_control_plane_hook
Auto-approve `on_control_plane_prompt` for tests that exercise a tool whose `permission_classification` returns `Prompt` (issue #110 sub-PR 3 — `NewTr
crates/coding-agent/tests/commands.rs:79
↓ 1 callersMethodany_enabled
(&self)
crates/coding-agent/src/session/mod.rs:249
↓ 1 callersFunctionany_trigger_result_summary
(entries: &[pie_agent_core::SessionTreeEntry])
crates/coding-agent/tests/dynamic_trigger_e2e.rs:486
↓ 1 callersMethodappend_session_name
( &self, name: impl Into<String>, )
crates/agent/src/harness/session/session.rs:545
↓ 1 callersFunctionapply_turn_update
(inner: &Arc<AgentInner>, update: AgentLoopTurnUpdate)
crates/agent/src/agent_loop.rs:181
↓ 1 callersMethodarm
(&self)
crates/agent/tests/harness_e2e.rs:1022
↓ 1 callersFunctionas_after_tool_call
Build an `AfterToolCallHook` that attaches LSP diagnostics to write/edit tool results. On non-edit tools, returns the result unmodified.
crates/coding-agent/src/lsp_supervisor.rs:163
↓ 1 callersMethodas_audit_str
Stable `decision` string for the `control_plane_prompt` audit entry. Avoid stringifying the `Debug` representation — these values are part of the audi
crates/agent/src/types.rs:472
↓ 1 callersMethodas_listener
Build an [`crate::agent::AgentListener`] that records every assistant `MessageEnd`. The listener clones the tracker (cheap — `Arc` bump) so the harnes
crates/agent/src/harness/cost.rs:78
↓ 1 callersMethodassistant_error_message
(&self, a: &Option<PiAssistantMessage>)
crates/coding-agent/src/agent_session.rs:162
↓ 1 callersFunctionassistant_event_name
(ev: &pie_ai::AssistantMessageEvent)
crates/coding-agent/src/hooks.rs:853
↓ 1 callersFunctionassistant_log
(message: &AssistantMessage)
crates/coding-agent/src/debug.rs:210
↓ 1 callersFunctionassistant_tool_call
(id: &str, name: &str, args: serde_json::Value)
crates/coding-agent/tests/commands.rs:141
↓ 1 callersFunctionassistant_with
(content: Vec<ContentBlock>, stop_reason: StopReason)
crates/agent/tests/agent_loop.rs:32
↓ 1 callersFunctionattach_diagnostics
( supervisor: Arc<LspSupervisor>, ctx: AfterToolCallContext, _cancel: CancellationToken, )
crates/coding-agent/src/lsp_supervisor.rs:173
↓ 1 callersFunctionaudit_source_reference
(source: &Source)
crates/coding-agent/src/tools/install_skill.rs:344
↓ 1 callersMethodauth
(&self)
crates/mcp/src/http.rs:161
↓ 1 callersMethodauthorize_url
Build the authorize URL + state + verifier.
crates/coding-agent/src/oauth.rs:62
↓ 1 callersMethodback
Esc: model list → provider list (returns `false`), provider list → close (returns `true`).
crates/coding-agent/src/model_picker.rs:138
↓ 1 callersFunctionbackoff_ms
(attempt: u32, base: u64, max: u64)
crates/coding-agent/src/agent_session.rs:213
↓ 1 callersMethodbanner
Render the startup banner. `tool_names` comes from the registered tool definitions so adding/removing a tool in `tools::default_tools()` flows through
crates/coding-agent/src/tui.rs:47
↓ 1 callersFunctionbasename_env_path
(path: &str)
crates/agent/src/harness/skills.rs:417
↓ 1 callersFunctionbounded_preview
(input: &str)
crates/coding-agent/src/debug.rs:230
↓ 1 callersFunctionbranch_summary
(summary: impl Into<String>)
crates/agent/src/harness/messages.rs:16
↓ 1 callersFunctionbudget_for
(b: &ThinkingBudgets, level: ThinkingLevel)
crates/ai/src/providers/anthropic.rs:153
↓ 1 callersFunctionbuild_argv
(subcommand: &str, extra: &[String])
crates/coding-agent/src/tools/git.rs:124
↓ 1 callersFunctionbuild_cache_control
(retention: CacheRetention, compat: &Compat)
crates/ai/src/providers/anthropic.rs:632
↓ 1 callersFunctionbuild_responses_url
Normalize the Responses endpoint URL. The catalog sets `baseUrl` to either the host root (`https://api.openai.com`) or already includes the `/v1` pref
crates/ai/src/providers/openai_responses.rs:759
↓ 1 callersFunctionbuild_template_context
Inputs allowlisted for the promotion template per RFC 1 §5.C. Constructed once per promotion and exposed to the renderer as a sealed map; references t
crates/agent/src/harness/agent_harness.rs:2821
↓ 1 callersMethodbuild_trigger
(&self, rule_count: usize)
crates/coding-agent/src/triggers/dynamic.rs:284
↓ 1 callersFunctionbuild_trigger_prompt_request
(trigger: &Trigger, reason: String)
crates/agent/src/harness/agent_harness.rs:2249
↓ 1 callersFunctioncalculate_context_tokens
(usage: &Usage)
crates/agent/src/harness/compaction/compaction.rs:60
↓ 1 callersFunctioncall_llm
( inner: &Arc<AgentInner>, cancel: &CancellationToken, )
crates/agent/src/agent_loop.rs:205
↓ 1 callersMethodcanonical_path
(&self, path: &str, _cancel: CancellationToken)
crates/agent/src/harness/env/native.rs:221
↓ 1 callersFunctioncanonical_uri
(url: &url::Url)
crates/ai/src/sigv4.rs:118
↓ 1 callersFunctioncapped_text
(response: reqwest::Response, cap: usize)
crates/mcp/src/http.rs:320
↓ 1 callersFunctionclean_action
(raw: &str)
crates/coding-agent/src/triggers/dynamic.rs:543
↓ 1 callersFunctionclean_condition
(raw: &str)
crates/coding-agent/src/triggers/dynamic.rs:523
↓ 1 callersFunctionclear
(harness: &Arc<AgentHarness>)
crates/coding-agent/src/goal.rs:109
↓ 1 callersFunctionclearWebSessionCookie
()
workers/fefe-hub/src/index.ts:132
↓ 1 callersFunctionclear_sink
()
crates/coding-agent/src/commands.rs:40
↓ 1 callersFunctionclear_stale_running_state
(jobs: &mut [CronJob])
crates/coding-agent/src/triggers/cron.rs:310
↓ 1 callersMethodclient_for_ext
Lazily get or spawn the LSP client for `ext`. Caches per language id.
crates/coding-agent/src/lsp_supervisor.rs:117
↓ 1 callersFunctionclient_id
Client id, base64-obfuscated in the TS source. Decoded at runtime to match 1:1.
crates/ai/src/utils/oauth/anthropic.rs:21
↓ 1 callersMethodclone_for_rename
Re-bind the service name without poisoning the existing inner's queue. Used only by `with_service_name`.
crates/coding-agent/src/otlp.rs:127
↓ 1 callersMethodclose
(&self)
crates/mcp/tests/client_fixture.rs:30
↓ 1 callersMethodcloseAll
()
workers/fefe-hub/src/relay.ts:336
↓ 1 callersFunctionclose_partial
Walk the input and append closing tokens needed to balance braces/brackets/strings. Mirrors the closing logic in the `partial-json` package; minimal b
crates/ai/src/utils/json_parse.rs:29
↓ 1 callersFunctioncommand_help_text
(registry: &Registry, topic: &str, skills: &[Skill])
crates/coding-agent/src/commands.rs:1203
↓ 1 callersFunctioncompact_tool_content_blocks
Extract text blocks from a tool result and build the same display-only compact preview used for live tool events. This keeps resume replay, headless o
crates/coding-agent/src/ui/feed.rs:746
↓ 1 callersFunctioncompaction_summary
(summary: impl Into<String>)
crates/agent/src/harness/messages.rs:8
↓ 1 callersFunctioncompaction_trigger
(from_hook: bool)
crates/coding-agent/src/hooks.rs:743
↓ 1 callersMethodcompaction_turn
(&self, custom: Option<String>)
crates/coding-agent/src/ui/kernel.rs:143
↓ 1 callersFunctioncompose_system_prompt
(cwd: &std::path::Path, memory: &str, tool_names: &[String])
crates/coding-agent/src/main.rs:1187
↓ 1 callersFunctioncompute_sub_agent_outcome
Inspect the sub-agent's terminal state to summarize the outcome. Returns `(success, summary, message_count)`. `summary` is the text of the sub-agent'
crates/agent/src/harness/agent_harness.rs:3347
↓ 1 callersFunctionconnect_one
( s: &ServerConfig, )
crates/coding-agent/src/mcp_loader.rs:211
↓ 1 callersFunctionconnect_stdio
(s: &ServerConfig)
crates/coding-agent/src/mcp_loader.rs:239
↓ 1 callersFunctionconsume
( resp: reqwest::Response, model: &Model, mut sender: AssistantMessageEventSender, abort_token
crates/ai/src/providers/amazon_bedrock.rs:139
↓ 1 callersFunctioncontent_length
(headers: &str)
crates/coding-agent/tests/hooks_e2e.rs:140
↓ 1 callersFunctioncontinuation_prompt
(condition: &str, reason: &str)
crates/coding-agent/src/goal.rs:401
↓ 1 callersMethodcontinue_
(&self)
crates/agent/src/harness/agent_harness.rs:1732
↓ 1 callersMethodcontinue_turn
(&self)
crates/coding-agent/src/ui/kernel.rs:156
↓ 1 callersFunctioncontrollable_stream_fn
Controllable stream factory. The first call (parent's initial prompt) waits on `release` so we can race a trigger promotion against the in-flight stre
crates/agent/tests/harness_e2e.rs:4444
↓ 1 callersFunctionconvert
(r: RawModel)
crates/ai/src/models_generated.rs:68
↓ 1 callersFunctionconvert_messages
(msgs: &[Message], cc: Option<&Value>)
crates/ai/src/providers/anthropic.rs:664
↓ 1 callersFunctionconvert_messages
Convert pi messages into Gemini `contents`. The system prompt is handled separately by the provider (as `systemInstruction`), so it is not included he
crates/ai/src/providers/google_shared.rs:41
↓ 1 callersFunctionconvert_messages
( msgs: &[Message], system_prompt: Option<&str>, replay_reasoning: bool, )
crates/ai/src/providers/openai_responses.rs:662
↓ 1 callersFunctionconvert_messages
(msgs: &[Message])
crates/ai/src/providers/openai_completions.rs:518
↓ 1 callersFunctionconvert_messages
(msgs: &[Message])
crates/ai/src/providers/amazon_bedrock.rs:405
↓ 1 callersFunctionconvert_messages
(msgs: &[Message])
crates/ai/src/providers/mistral.rs:393
↓ 1 callersMethodconvert_to_llm
(&self, msgs: &[AgentMessage])
crates/agent/src/agent.rs:207
↓ 1 callersFunctioncreateApp
(env: Env)
workers/fefe-hub/src/index.ts:120
↓ 1 callersFunctioncreate_archive_file
The archive carries the full transcript, so it is created owner-only and never truncates an existing file.
crates/coding-agent/src/session_archive.rs:487
↓ 1 callersMethodcurrent_model_accepts_images
(&self)
crates/coding-agent/src/ui/kernel.rs:92
↓ 1 callersFunctioncustom
(role: impl Into<String>, payload: serde_json::Value)
crates/agent/src/harness/messages.rs:24
↓ 1 callersFunctioncustom_test_model
(provider: &str, id: &str)
crates/coding-agent/src/commands.rs:3202
↓ 1 callersMethodcwd_for
(&self, rule: &HookRule)
crates/coding-agent/src/hooks.rs:557
↓ 1 callersFunctioncwd_hash
Deterministic short hash of an absolute cwd path. Same input → same dir, so reopening from the same project always finds prior sessions.
crates/coding-agent/src/config.rs:33
↓ 1 callersMethoddebug_status_handle
(&self)
crates/coding-agent/src/triggers/mcp_notification_hook.rs:111
↓ 1 callersFunctiondecode_headers
(mut h: &[u8], msg: &mut EventStreamMessage)
crates/ai/src/utils/aws_eventstream.rs:71
↓ 1 callersFunctiondedupe_project_wins
Insert `skill` into `combined`, replacing any existing entry with the same name. Since we load user first and project second, a later (project-side) s
crates/coding-agent/src/skills.rs:62
↓ 1 callersFunctiondefault_budget_for
(level: ThinkingLevel)
crates/ai/src/providers/anthropic.rs:162
↓ 1 callersFunctiondefault_convert_to_llm
Default convert-to-llm: keep only `AgentMessage::Llm` variants.
crates/agent/src/types.rs:650
↓ 1 callersFunctiondefault_danger_patterns
The canonical "this almost certainly causes harm" corpus. Patterns are anchored *loosely (substring match within the full command), so flag ordering f
crates/agent/src/harness/permission.rs:205
↓ 1 callersFunctiondefault_dest
()
crates/coding-agent/src/bug_report.rs:24
↓ 1 callersFunctiondefault_predicate_rules
Token-aware predicates for rules where regex alone is fragile. Currently only `rm` with recursive + force flags; intentionally small so the cost of ru
crates/agent/src/harness/permission.rs:234
↓ 1 callersFunctiondefault_prompt_payload
Default **redaction-safe by construction** prompt payload synthesized from the classifier outcome. Per @Provider-Auth-Lead + @CLI-TUI-Dev-Lead on PR #
crates/agent/src/agent_loop.rs:925
↓ 1 callersFunctiondefault_tools
Default tool set the coding agent ships with. Order matches the TS `createCodingTools()` + the read-only quartet (`grep`/`find`/`ls`) the TS exposes v
crates/coding-agent/src/tools/mod.rs:31
↓ 1 callersMethoddefinition
(&self)
crates/coding-agent/src/tools/web_search.rs:75
↓ 1 callersFunctiondelayed_thinking_then_text_stream
A faux stream that emits a thinking delta, then waits before emitting text + done. Lets the spinner animate while the model is still thinking.
crates/coding-agent/tests/spinner_e2e.rs:49
↓ 1 callersFunctiondelete_session_cmd
(repo: &JsonlSessionRepo, id: &str)
crates/coding-agent/src/main.rs:503
↓ 1 callersFunctiondeletion_target
Compute what to delete for a skill whose SKILL.md is `file_path`, given the skills root. Returns the direct child of `skills_root` on the path (a `<na
crates/coding-agent/src/tools/remove_skill.rs:284
↓ 1 callersMethoddiagnostics_for
Return the most recent diagnostics for `uri` (empty if none received yet).
crates/coding-agent/src/lsp.rs:196
← previousnext →801–900 of 2,618, ranked by callers