MCPcopy Create free account

hub / github.com/c4pt0r/pie / functions

Functions2,618 in github.com/c4pt0r/pie

↓ 2 callersFunctionentry_count
Total selectable entries: the pinned clean row + every session row.
crates/coding-agent/src/resume_picker.rs:51
↓ 2 callersFunctionerr_msg
(text: &str)
crates/ai/src/utils/overflow.rs:106
↓ 2 callersFunctionestimate_context_tokens
(messages: &[AgentMessage])
crates/agent/src/harness/compaction/compaction.rs:166
↓ 2 callersMethodevaluate
Evaluate against the sub-agent's structured `details`. Returns the intersection on match (so the caller can write `promote_eligible_rule_ids` for audi
crates/agent/src/harness/agent_harness.rs:560
↓ 2 callersMethodevaluate_with_category
Evaluate a single tool call against the policy in the given category. Pure function — no IO. Runtime ships a permissive default for [`PermissionCateg
crates/agent/src/harness/permission.rs:110
↓ 2 callersMethodevent_stream
(&self, label: &str)
crates/ai/src/api_registry.rs:194
↓ 2 callersMethodexecute
( &self, _id: &str, params: Value, _cancel: CancellationToken, _on_upd
crates/coding-agent/src/tools/skill.rs:63
↓ 2 callersFunctionextract_mentions
Scan for `@<path>` tokens. Stops a path at whitespace, semicolon, comma, parenthesis, or quote. Leading punctuation around the `@` (e.g. wrapping in p
crates/coding-agent/src/mentions.rs:65
↓ 2 callersFunctionextract_user_message_text
Extract the text body of a `Message::User`, joining `Blocks` text content. Returns `None` for image-only messages or empty text. Used to fill [`OnTurn
crates/agent/src/harness/agent_harness.rs:3405
↓ 2 callersFunctionfaux_model
()
crates/ai/src/providers/faux.rs:262
↓ 2 callersFunctionfaux_model
()
crates/coding-agent/src/ui/mod.rs:2308
↓ 2 callersFunctionfaux_model
()
crates/coding-agent/tests/export_e2e.rs:24
↓ 2 callersFunctionfaux_model
()
crates/coding-agent/tests/cli_session.rs:20
↓ 2 callersFunctionfaux_model
()
crates/agent/tests/permission_e2e.rs:20
↓ 2 callersFunctionfaux_stream
(text: &'static str)
crates/coding-agent/tests/export_e2e.rs:42
↓ 2 callersFunctionfaux_stream_fn
StreamFn that always emits a Done with the supplied text. Equivalent to the harness_e2e helper but inlined so this test stays self-contained.
crates/coding-agent/tests/cli_session.rs:40
↓ 2 callersFunctionfaux_stream_fn_sequence
Per-call stream_fn that returns successive assistant texts from a shared queue. Used to differentiate iterations in continuation-loop tests so we can
crates/agent/tests/harness_e2e.rs:4965
↓ 2 callersFunctionfeed_lines_text
(lines: &[Line<'_>])
crates/coding-agent/src/ui/mod.rs:2412
↓ 2 callersFunctionfile_info_from_meta
(name: String, path: String, m: std::fs::Metadata)
crates/agent/src/harness/env/native.rs:61
↓ 2 callersFunctionfinalize
(inner: &Arc<AgentInner>, cancel: CancellationToken)
crates/agent/src/agent_loop.rs:859
↓ 2 callersMethodfinish_turn
Wrap up a finished turn: clear the busy state and surface an aborted/error line.
crates/coding-agent/src/ui/mod.rs:458
↓ 2 callersFunctionfirst_dynamic_rule_id
(text: &str)
crates/coding-agent/tests/dynamic_trigger_e2e.rs:318
↓ 2 callersMethodflush_current
(&mut self)
crates/ai/src/utils/sse.rs:39
↓ 2 callersFunctionframe
Build a single frame with one `:event-type` string header and a JSON payload.
crates/ai/src/utils/aws_eventstream.rs:174
↓ 2 callersFunctiongenerate_summary
Call the LLM to produce a single text summary of the supplied messages.
crates/agent/src/harness/compaction/compaction.rs:506
↓ 2 callersMethodget_entries
(&self)
crates/agent/src/harness/session/jsonl_storage.rs:203
↓ 2 callersMethodget_entries
(&self)
crates/agent/tests/harness_e2e.rs:135
↓ 2 callersMethodget_path_to_root
( &self, leaf_id: Option<&str>, )
crates/agent/src/harness/session/jsonl_storage.rs:207
↓ 2 callersFunctiongoal_start_prompt
(argv: &[String])
crates/coding-agent/src/commands.rs:1006
↓ 2 callersMethodguard_not_streaming
(&self)
crates/agent/src/agent.rs:187
↓ 2 callersMethodhandle_data
(&self, data: EventData, cancel: CancellationToken)
crates/coding-agent/src/hooks.rs:329
↓ 2 callersMethodhandle_harness_event
(&self, event: &HarnessEvent, cancel: CancellationToken)
crates/coding-agent/src/hooks.rs:322
↓ 2 callersMethodhandle_web_relay
Handle `/web-connect` family outcomes. Shared by the TUI and web event loops.
crates/coding-agent/src/ui/mod.rs:486
↓ 2 callersFunctionharness_with_disk_skill_reload
(base_dir: &Path, seed: Vec<Skill>)
crates/coding-agent/tests/commands.rs:232
↓ 2 callersFunctionhex_random
(bytes: usize)
crates/coding-agent/src/otlp.rs:202
↓ 2 callersFunctionhttp_auth_recovery
(auth: &HttpAuthConfig)
crates/coding-agent/src/mcp_loader.rs:345
↓ 2 callersFunctioninit_repo
Initialise a fresh repo at `dir` with one committed file and one staged change.
crates/coding-agent/tests/git_tool_e2e.rs:15
↓ 2 callersFunctioninject_and_run_action_hook
Inject-and-run delivery hook: injects `prompt` into the parent conversation and runs one turn in the parent's context (`TriggerDelivery::InjectAndRun`
crates/agent/tests/harness_e2e.rs:3275
↓ 2 callersFunctioninject_summary_action_hook
Inject-summary delivery hook: returns [`TriggerDelivery::InjectSummary`] with a verbatim `{{trigger.payload_summary}}` template (the source-as-feed sh
crates/agent/tests/harness_e2e.rs:3107
↓ 2 callersFunctionio_err
(e: std::io::Error)
crates/agent/src/harness/session/jsonl_repo.rs:89
↓ 2 callersMethodis_empty
(&self)
crates/coding-agent/src/lsp_supervisor.rs:106
↓ 2 callersMethodis_empty
(&self)
crates/coding-agent/src/history.rs:49
↓ 2 callersMethodis_ignored
(&self, rel: &str, is_dir: bool)
crates/agent/src/harness/skills.rs:238
↓ 2 callersMethodis_initialized
(&self)
crates/mcp/src/client.rs:208
↓ 2 callersFunctionleave_tui
()
crates/coding-agent/src/ui/mod.rs:2233
↓ 2 callersMethodlen
(&self)
crates/coding-agent/src/history.rs:44
↓ 2 callersMethodlist_dir
(&self, path: &str, _cancel: CancellationToken)
crates/agent/src/harness/env/native.rs:190
↓ 2 callersFunctionlist_triggers_tool
Build the dynamic trigger listing tool. This is the model-facing counterpart to `/triggers rules`: it lets the assistant inspect current rule ids befo
crates/coding-agent/src/tools/mod.rs:158
↓ 2 callersMethodlistener
Build an `AgentListener` that prints lifecycle events. Holds onto `self` (cheaply clonable Arc state) so deltas accumulate across events.
crates/coding-agent/src/tui.rs:102
↓ 2 callersFunctionload_service_account
Load the service-account file from `GOOGLE_APPLICATION_CREDENTIALS` (or the explicit path supplied by the caller).
crates/ai/src/vertex_adc.rs:81
↓ 2 callersMethodload_skill_from_file
(&self, file_path: &str, out: &mut LoadSkillsOutput)
crates/agent/src/harness/skills.rs:250
↓ 2 callersFunctionmanifest_from_archive
(path: &Path)
crates/coding-agent/src/session_archive.rs:1212
↓ 2 callersFunctionmap_notification
Translate one MCP push frame to a `Trigger`, or `None` if the frame should be dropped at the adapter (custom method without `_pie_dedup_key` / `_meta.
crates/coding-agent/src/triggers/mcp_notification_hook.rs:182
↓ 2 callersMethodmark_completed
(&self, trace_id: &str, error: Option<String>)
crates/coding-agent/src/triggers/cron.rs:254
↓ 2 callersFunctionmk
(name: &str, desc: &str)
crates/agent/src/harness/system_prompt.rs:44
↓ 2 callersFunctionmk_model
()
crates/ai/src/providers/openai_completions.rs:675
↓ 2 callersFunctionmk_model
()
crates/ai/src/providers/azure_openai_responses.rs:199
↓ 2 callersFunctionmk_msg
()
crates/ai/src/utils/event_stream.rs:116
↓ 2 callersFunctionmodel_help_summary_lines
()
crates/coding-agent/src/commands.rs:1281
↓ 2 callersFunctionmodel_with_base
(base: &str)
crates/ai/src/providers/cloudflare.rs:67
↓ 2 callersFunctionmodel_with_context_window
(context_window: u32)
crates/agent/src/harness/compaction/compaction.rs:732
↓ 2 callersFunctionnew_cron_job_tool
Build the session-scoped cron creation tool. This is the model-facing counterpart to `/cron add`: when the user asks in ordinary conversation for a sc
crates/coding-agent/src/tools/mod.rs:122
↓ 2 callersFunctionnew_trigger_extraction_stream
()
crates/coding-agent/tests/commands.rs:102
↓ 2 callersFunctionnormalize_operand
Normalize a single shell token before the target predicate sees it. Strips one balanced layer of single or double quotes and rewrites `${HOME}` (with
crates/agent/src/harness/permission.rs:322
↓ 2 callersFunctionnormalize_tool_call_id
Mistral requires tool-call ids to be alphanumeric and exactly 9 chars.
crates/ai/src/providers/mistral.rs:84
↓ 2 callersMethodnote
(&self)
crates/coding-agent/src/tools/truncate.rs:17
↓ 2 callersFunctionnow_ns
()
crates/coding-agent/src/otlp.rs:137
↓ 2 callersFunctionnumber_field
(data: &serde_json::Value, name: &str)
crates/coding-agent/src/commands.rs:3049
↓ 2 callersFunctionon_disk_skill_hash
Hash the on-disk SKILL.md bytes at `target_path` using the same SHA256 + line-ending normalization the new-content hash uses, so an idempotent re-inst
crates/coding-agent/src/tools/install_skill.rs:693
↓ 2 callersFunctionoptional_skill_source
(raw: Option<&String>)
crates/coding-agent/src/commands.rs:749
↓ 2 callersFunctionoversized_entries
(count: usize)
crates/agent/src/harness/compaction/compaction.rs:753
↓ 2 callersFunctionparse_and_validate
(fetched: &Fetched)
crates/coding-agent/src/tools/install_skill.rs:556
↓ 2 callersFunctionparse_callback_query
(path: &str)
crates/coding-agent/src/oauth.rs:214
↓ 2 callersFunctionparse_decision
(text: &str)
crates/coding-agent/src/goal.rs:381
↓ 2 callersFunctionparse_frontmatter
(content: &str)
crates/agent/src/harness/prompt_templates.rs:154
↓ 2 callersFunctionparse_model_spec
(spec: &str)
crates/coding-agent/src/commands.rs:927
↓ 2 callersFunctionparse_session_jsonl
(text: &str)
crates/coding-agent/src/session_archive.rs:365
↓ 2 callersMethodpermission_classification
Issue #110 sub-PR 3 classifier — every install is a persistent control-plane write that grows the model's tool surface, so always route through the `o
crates/coding-agent/src/tools/install_skill.rs:149
↓ 2 callersFunctionpreview
Render a short, single-line preview of tool-call arguments — the first few keys with truncated values. Mirrors the old `tui::preview` shape (`(k="v",
crates/coding-agent/src/ui/feed.rs:671
↓ 2 callersFunctionprint_session_archive_warning
()
crates/coding-agent/src/main.rs:377
↓ 2 callersFunctionprompt_display
(text: &str, image_count: usize)
crates/coding-agent/src/ui/mod.rs:2172
↓ 2 callersMethodprompt_import_activation
`/session import` brought automation that the source had enabled. Raise the shared confirm surface; approval restores exactly the source enablement.
crates/coding-agent/src/ui/mod.rs:559
↓ 2 callersMethodprompt_with_message
(&self, msg: AgentMessage)
crates/agent/src/harness/agent_harness.rs:1716
↓ 2 callersFunctionprune_expired_cycle
( map: &mut HashMap<String, CycleEntry>, now: DateTime<Utc>, window: Duration, )
crates/agent/src/harness/trigger_runtime.rs:288
↓ 2 callersMethodpush_assistant_with_timestamp
( &mut self, text: impl Into<String>, timestamp: Option<String>, )
crates/coding-agent/src/ui/feed.rs:209
↓ 2 callersMethodpush_plain_with_timestamp
( &mut self, text: impl Into<String>, level: Level, timestamp: Option<String>,
crates/coding-agent/src/ui/feed.rs:241
↓ 2 callersMethodpush_relay_snapshot
Queue the current state to the relay, if one is connected. Cheap when off; the relay task debounces actual sends.
crates/coding-agent/src/ui/mod.rs:551
↓ 2 callersMethodpush_snapshot
Queue a snapshot for the relay. Cheap; the task debounces on the wire.
crates/coding-agent/src/ui/relay.rs:97
↓ 2 callersMethodpush_tool_result_with_timestamp
( &mut self, tool_call_id: impl Into<String>, lines: Vec<String>, is_error: bo
crates/coding-agent/src/ui/feed.rs:306
↓ 2 callersMethodpush_tool_with_timestamp
( &mut self, name: impl Into<String>, args: impl Into<String>, timestamp: Opti
crates/coding-agent/src/ui/feed.rs:268
↓ 2 callersMethodpush_user_with_timestamp
(&mut self, text: impl Into<String>, timestamp: Option<String>)
crates/coding-agent/src/ui/feed.rs:191
↓ 2 callersFunctionqr_lines
Render the viewer URL as a scannable QR code for the TUI feed. Unicode half-block rendering, inverted so modules read dark-on-light on dark terminal t
crates/coding-agent/src/ui/relay.rs:155
↓ 2 callersFunctionqueue_preview
(text: &str)
crates/coding-agent/src/ui/mod.rs:2167
↓ 2 callersFunctionread_file
(path: &Path, label: &str, diagnostics: &mut Vec<String>)
crates/coding-agent/src/hooks.rs:217
↓ 2 callersFunctionread_jobs_file
(path: &Path)
crates/coding-agent/src/triggers/cron.rs:286
↓ 2 callersFunctionread_loop_state
(path: &Path)
crates/coding-agent/src/triggers/cron.rs:746
↓ 2 callersFunctionread_optional_sidecar
(path: &Path)
crates/coding-agent/src/session_archive.rs:507
↓ 2 callersFunctionread_sse_response
( response: reqwest::Response, body_cap_bytes: usize, idle_timeout: Option<Duration>, tx: mpsc
crates/mcp/src/http.rs:335
↓ 2 callersMethodrecv_line
(&self)
crates/mcp/tests/client_fixture.rs:27
↓ 2 callersFunctionredact_notification_text
(value: &str)
crates/coding-agent/src/triggers/mcp_notification_hook.rs:217
← previousnext →601–700 of 2,618, ranked by callers