MCPcopy Create free account

hub / github.com/c4pt0r/pie / functions

Functions2,618 in github.com/c4pt0r/pie

↓ 4 callersMethodbadge
Short badge for session listings: enabled counts ("2 cron, 1 trigger"), or "automation off" when everything present is disabled. `None` when there is
crates/coding-agent/src/session/mod.rs:255
↓ 4 callersFunctionbind_addr
(options: &WebOptions)
crates/coding-agent/src/ui/web.rs:831
↓ 4 callersFunctionbuild_session_context
(path_entries: &[SessionTreeEntry])
crates/agent/src/harness/session/session.rs:259
↓ 4 callersMethodclear_input
(&mut self)
crates/coding-agent/src/ui/mod.rs:1352
↓ 4 callersMethodclose
Shut down the transport. Subsequent calls fail with `NotInitialized` / transport error.
crates/mcp/src/client.rs:249
↓ 4 callersFunctioncompact
Top-level compaction entry point. Picks a cut point, summarizes the prefix, returns the summary plus metadata for the harness to record on the session
crates/agent/src/harness/compaction/compaction.rs:635
↓ 4 callersFunctioncontext
(tools: Option<Vec<Tool>>)
crates/coding-agent/src/local_models.rs:618
↓ 4 callersFunctioncreate
Create a brand-new session under the current cwd's sessions dir.
crates/coding-agent/src/session/mod.rs:77
↓ 4 callersFunctioncustom_registry
()
crates/ai/src/models.rs:14
↓ 4 callersMethoddefinition
(&self)
crates/coding-agent/tests/dynamic_trigger_e2e.rs:106
↓ 4 callersFunctiondelete_by_id
Delete a session by id (full UUIDv7) or a unique prefix.
crates/coding-agent/src/session/mod.rs:164
↓ 4 callersFunctionencode_rgba_clipboard_image
( width: usize, height: usize, rgba_bytes: Vec<u8>, )
crates/coding-agent/src/clipboard_image.rs:49
↓ 4 callersFunctionensure_block
(partial: &mut AssistantMessage, idx: usize, default: ContentBlock)
crates/ai/src/providers/anthropic.rs:549
↓ 4 callersMethodenter
Enter: descend at provider level (returns `None`), select at model level (returns the `provider:id` spec).
crates/coding-agent/src/model_picker.rs:109
↓ 4 callersFunctionerror_stream
Construct an instantly-errored stream. Per the TS contract, providers must encode failures in the returned stream rather than throw — same applies to
crates/ai/src/api_registry.rs:147
↓ 4 callersFunctionfaux_model
()
crates/coding-agent/tests/task_tool_e2e.rs:21
↓ 4 callersFunctionfaux_stream_fn_classifier_then_stop
Two-shot stream_fn: first message asks for `prompter` tool call, second is plain stop. Used by the audit tests below to drive the classifier → prompt
crates/agent/tests/harness_e2e.rs:5456
↓ 4 callersMethodfile_info
(&self, path: &str, _cancel: CancellationToken)
crates/agent/src/harness/env/native.rs:174
↓ 4 callersMethodforce_compact
Force a compaction immediately, regardless of token thresholds. Useful for `/compact`- style slash commands.
crates/agent/src/harness/agent_harness.rs:1946
↓ 4 callersMethodforward
(frame: { type: string; [k: string]: unknown })
workers/fefe-hub/src/relay.ts:297
↓ 4 callersFunctionget_api_provider
Lookup. Returns a handle that delegates to the registered provider while holding no lock — we clone-by-reference using a shim because trait objects in
crates/ai/src/api_registry.rs:77
↓ 4 callersMethodget_entry
(&self, id: &str)
crates/agent/src/harness/session/session.rs:390
↓ 4 callersFunctiongoal_payload
(state: &GoalState, ok: Option<bool>)
crates/coding-agent/src/goal.rs:354
↓ 4 callersMethodinitialize
Send the initialize request and the matching `initialized` notification.
crates/coding-agent/src/lsp.rs:163
↓ 4 callersFunctionisValidToken
(token: string)
workers/fefe-hub/src/relay.ts:111
↓ 4 callersMethodleaf_id
(&self)
crates/agent/src/harness/session/session.rs:386
↓ 4 callersFunctionlist_entries
List sessions for this cwd, oldest → newest, with a short preview from the first user message when available.
crates/coding-agent/src/session/mod.rs:100
↓ 4 callersMethodload
()
crates/coding-agent/src/auth.rs:76
↓ 4 callersFunctionload_all
(cwd: &Path, base_dir: &Path)
crates/coding-agent/tests/cli_skills.rs:34
↓ 4 callersFunctionload_bytes
Build an image attachment from already-read bytes. Used by both `--image` paths and clipboard paste, so format and size validation stay identical.
crates/coding-agent/src/images.rs:41
↓ 4 callersFunctionload_templates
Load templates from each directory. Missing directories are silently skipped. `.md` files at the directory root become templates; directory recursion
crates/agent/src/harness/prompt_templates.rs:74
↓ 4 callersFunctionloop_state_path
`<sess>.cron.toml` + `cron-abcdef…` → `<sess>.loop-cron-abcdef12.md` (8-char id prefix after the `cron-` marker keeps names short but unambiguous in p
crates/coding-agent/src/triggers/cron.rs:735
↓ 4 callersFunctionmake_trigger_at
( idempotency: &str, trace: &str, policy: ReplacementPolicy, received_at: Date
crates/agent/src/harness/trigger_runtime.rs:309
↓ 4 callersMethodmark_rules_fired
( &self, ids: &[String], )
crates/coding-agent/src/triggers/dynamic.rs:210
↓ 4 callersMethodmatches
(&self, dt: DateTime<Utc>)
crates/coding-agent/src/triggers/cron.rs:1004
↓ 4 callersFunctionmessage_kind
(message: &AgentMessage)
crates/coding-agent/src/hooks.rs:793
↓ 4 callersFunctionmessage_summary
(message: &AgentMessage)
crates/coding-agent/src/hooks.rs:802
↓ 4 callersMethodmetadata
(&self)
crates/agent/src/harness/session/jsonl_storage.rs:93
↓ 4 callersFunctionmodel_credential_hint
(provider: &str)
crates/coding-agent/src/commands.rs:941
↓ 4 callersFunctionmodel_groups
()
crates/coding-agent/src/commands.rs:1331
↓ 4 callersFunctionnew_textarea
()
crates/coding-agent/src/ui/mod.rs:2220
↓ 4 callersFunctionnew_token
Generate a URL-safe 160-bit random token (40 lowercase hex chars). Sourced from two v4 UUIDs (OS RNG) so no extra dependency is needed.
crates/coding-agent/src/ui/relay.rs:126
↓ 4 callersFunctionpersist_state_best_effort
(harness: &Arc<AgentHarness>, state: &GoalState)
crates/coding-agent/src/goal.rs:341
↓ 4 callersFunctionpicker_groups
()
crates/coding-agent/src/ui/mod.rs:3311
↓ 4 callersFunctionpreview_for_banner
Bounded preview text for status banners. Avoids panicking on multi-byte char boundaries by walking char count, not byte count.
crates/agent/src/harness/agent_harness.rs:3392
↓ 4 callersMethodpush_plain
(&mut self, text: impl Into<String>, level: Level)
crates/coding-agent/src/ui/feed.rs:233
↓ 4 callersFunctionread_archive
(path: &Path)
crates/coding-agent/src/session_archive.rs:534
↓ 4 callersFunctionread_trigger_poll_interval_secs
Resolve the local dynamic trigger poll interval. CLI overrides config; config overrides the built-in default. A malformed config reports a diagnostic
crates/coding-agent/src/main.rs:1284
↓ 4 callersMethodrecord_turn_end_decision
Persist a `turn_end_decision` audit entry and emit the matching [`HarnessEvent::TurnEnded`] event. Best-effort: persistence failures do not abort the
crates/agent/src/harness/agent_harness.rs:1911
↓ 4 callersMethodrehydrate_from_session
Replace the agent's in-memory state with the session's active branch. Messages, model, and thinking level are restored from `Session::build_context()`
crates/agent/src/harness/agent_harness.rs:1639
↓ 4 callersMethodrender_line
(&mut self, line: &str)
crates/coding-agent/src/markdown.rs:124
↓ 4 callersFunctionrender_lines
Render the full menu (header, entries in the window, scroll indicators, footer) for a terminal of `width` columns with `height` entry rows visible.
crates/coding-agent/src/resume_picker.rs:72
↓ 4 callersFunctionrender_skill_md
Render the canonical `SKILL.md`. Frontmatter goes through `serde_yaml` so special characters in `description` are escaped correctly; the description i
crates/coding-agent/src/tools/skill_builder.rs:78
↓ 4 callersMethodreplace_skills
Replace the skill catalog. Rebuilds the system prompt so the in-flight Agent state has the new `<skills>` block on its next LLM call.
crates/agent/src/harness/agent_harness.rs:1517
↓ 4 callersMethodreplay_message
(&mut self, message: &AgentMessage)
crates/coding-agent/src/ui/mod.rs:304
↓ 4 callersMethodrequest_abort
(&mut self, turn: &mut TurnState)
crates/coding-agent/src/ui/mod.rs:1311
↓ 4 callersMethodresolve_control_plane_prompt
( &mut self, decision: pie_agent_core::ControlPlanePromptDecision, )
crates/coding-agent/src/ui/mod.rs:655
↓ 4 callersFunctionresponse_queue
()
crates/ai/src/providers/faux.rs:20
↓ 4 callersMethodresult
Resolve the final `AssistantMessage`. Returns the message stored by the terminal event; if the sender was dropped without emitting a terminal event, r
crates/ai/src/utils/event_stream.rs:87
↓ 4 callersFunctionrun
( model: Model, context: Context, options: StreamOptions, mut sender: AssistantMessageEventSen
crates/ai/src/providers/google.rs:93
↓ 4 callersFunctionsample_event_trigger
()
crates/coding-agent/tests/dynamic_trigger_e2e.rs:427
↓ 4 callersMethodsave_to
Atomic write: rename-temp + chmod 600. Best-effort on platforms without unix perms.
crates/coding-agent/src/auth.rs:99
↓ 4 callersFunctionsend_response
(request_id, result=None, error=None)
examples/mcp-notify-python/notify-server.py:46
↓ 4 callersFunctionsend_response
(request_id, result=None, error=None)
examples/mcp-weather-python/weather-server.py:61
↓ 4 callersMethodset_model
Switch model. Persists a `ModelChange` session entry so resume sees the right one.
crates/agent/src/harness/agent_harness.rs:1593
↓ 4 callersFunctionskill_shortcuts
(skills: &[Skill], registry: &Registry)
crates/coding-agent/src/commands.rs:3068
↓ 4 callersFunctionsnapshot_context
(inner: &Arc<AgentInner>)
crates/agent/src/agent_loop.rs:196
↓ 4 callersMethodsubscribe
Subscribe to lifecycle events. Returns an unsubscribe closure.
crates/agent/src/agent.rs:130
↓ 4 callersMethodsystem_prompt
(&self)
crates/agent/src/harness/agent_harness.rs:1511
↓ 4 callersMethodtake_notifications
Take ownership of the server-notification receiver. Returns `Some(rx)` on the first call and `None` on every call thereafter. Intended for `McpNotific
crates/mcp/src/client.rs:179
↓ 4 callersFunctiontarget_model
()
crates/ai/src/providers/transform_messages.rs:224
↓ 4 callersFunctiontest_app_with_model
(model: pie_ai::Model)
crates/coding-agent/src/ui/mod.rs:2338
↓ 4 callersFunctiontransform_messages
Rewrite `messages` for the destination `model`.
crates/ai/src/providers/transform_messages.rs:73
↓ 4 callersFunctiontwo_groups
()
crates/coding-agent/src/model_picker.rs:264
↓ 4 callersFunctionuser
(text: &str)
crates/agent/src/harness/compaction/compaction.rs:706
↓ 4 callersFunctionweb_prompt_text
(text: &str, cap: usize)
crates/coding-agent/src/ui/web.rs:798
↓ 4 callersFunctionwrite_user_skill
Write a `<base>/skills/<name>/SKILL.md` on disk and return the absolute SKILL.md path.
crates/coding-agent/src/tools/remove_skill.rs:368
↓ 3 callersMethodabort_trigger
Cancel the in-flight sub-agent for `trace_id`. No-op if the trigger has already completed or was never accepted. The spawned task will observe the can
crates/agent/src/harness/agent_harness.rs:1420
↓ 3 callersFunctionactivate_imported
Re-enable the given trigger/cron ids on an imported session's sidecars — the second half of the interactive "activate imported automation now?" flow.
crates/coding-agent/src/session_archive.rs:321
↓ 3 callersMethodapi
(&self)
crates/ai/src/api_registry.rs:220
↓ 3 callersMethodappend_model_change
( &self, provider: impl Into<String>, model_id: impl Into<String>, )
crates/agent/src/harness/session/session.rs:467
↓ 3 callersFunctionargs
(cmd: &str)
crates/agent/src/harness/permission.rs:385
↓ 3 callersMethodas_before_tool_call
Convert this policy into a `BeforeToolCallHook` ready to assign to [`crate::agent::AgentOptions::before_tool_call`].
crates/agent/src/harness/permission.rs:155
↓ 3 callersMethodas_str
(self)
crates/coding-agent/src/hooks.rs:600
↓ 3 callersFunctionassert_full_timestamp_prefix
(row: &str, rendered: &str)
crates/coding-agent/src/ui/mod.rs:3304
↓ 3 callersFunctionassistant_text
(text: &str)
crates/coding-agent/tests/dynamic_trigger_e2e.rs:365
↓ 3 callersFunctionauth_path
()
crates/coding-agent/src/auth.rs:21
↓ 3 callersFunctionautomation_elsewhere_hint
When other sessions in this repo hold *enabled* automation, return a one-line hint naming the newest such session so the user can resume it. `current`
crates/coding-agent/src/session/mod.rs:315
↓ 3 callersFunctionavailable_builtin_names
List every built-in name in stable alphabetical order. Used by error/diagnostic messages so the `Available: ...` list is reproducible across runs.
crates/coding-agent/src/builtin_skills.rs:50
↓ 3 callersMethodbearer
(mut self, token: impl Into<String>)
crates/mcp/src/http.rs:93
↓ 3 callersFunctionbuild_request_body
(model: &Model, context: &Context, options: &StreamOptions)
crates/ai/src/providers/openai_completions.rs:472
↓ 3 callersFunctioncap_control_plane_audit_label
(label: &str)
crates/agent/src/harness/agent_harness.rs:2237
↓ 3 callersFunctioncap_trigger_prompt_reason
(reason: &str)
crates/agent/src/harness/agent_harness.rs:2338
↓ 3 callersFunctioncapture_one_request
()
crates/coding-agent/tests/hooks_e2e.rs:101
↓ 3 callersFunctioncatalog
Filtered + grouped catalog with live credential detection.
crates/coding-agent/src/model_picker.rs:33
↓ 3 callersFunctioncatalog_with
Testable core: credential detection injected.
crates/coding-agent/src/model_picker.rs:38
↓ 3 callersMethodcheck_budget_cap
Shared budget-cap precondition used by every entry path (`prompt` / `prompt_with_images` / `continue_` / continuation iterations).
crates/agent/src/harness/agent_harness.rs:1884
↓ 3 callersFunctionclose_open_block
( open: u8, partial: &mut AssistantMessage, sender: &mut AssistantMessageEventSender, )
crates/ai/src/providers/google.rs:363
↓ 3 callersMethodclose_thinking
(&self, out: &mut dyn std::io::Write)
crates/coding-agent/src/tui.rs:328
↓ 3 callersFunctioncollect_turn_end_decisions
( received: &Arc<parking_lot::Mutex<Vec<HarnessEvent>>>, )
crates/agent/tests/harness_e2e.rs:5006
← previousnext →301–400 of 2,618, ranked by callers