MCPcopy Create free account

hub / github.com/c4pt0r/pie / functions

Functions2,618 in github.com/c4pt0r/pie

↓ 2 callersMethodrelayStub
(token: string, request: Request, innerPath: string)
workers/fefe-hub/src/index.ts:85
↓ 2 callersFunctionremove_and_save
Convenience: load → remove the `{source, name}` override → save. Used by `RemoveSkill` so removing a skill also forgets any disabled state for it. A n
crates/coding-agent/src/skills_state.rs:151
↓ 2 callersFunctionremove_cron_job_tool
Build the session-scoped cron removal tool. This is the model-facing counterpart to `/cron remove`: it previews by default and only removes after expl
crates/coding-agent/src/tools/mod.rs:135
↓ 2 callersMethodremove_job
(&self, id: &str)
crates/coding-agent/src/triggers/cron.rs:162
↓ 2 callersFunctionremove_trigger_tool
Build the dynamic trigger removal tool. This is the model-facing counterpart to `/triggers remove`: when the user asks in ordinary conversation to del
crates/coding-agent/src/tools/mod.rs:165
↓ 2 callersFunctionremovedResponse
(pathname: string)
workers/fefe-hub/src/index.ts:124
↓ 2 callersFunctionrender
(session: &Session)
crates/coding-agent/src/export.rs:14
↓ 2 callersFunctionrender_dynamic_trigger_rules
( rules: &[crate::triggers::dynamic::DynamicTriggerRule], limit: usize, )
crates/coding-agent/src/commands.rs:2771
↓ 2 callersFunctionrender_running_triggers
(running: &[RunningTriggerState])
crates/coding-agent/src/commands.rs:2861
↓ 2 callersFunctionrender_trigger_audit
(rows: &[TriggerAuditRow])
crates/coding-agent/src/commands.rs:2957
↓ 2 callersFunctionrender_trigger_sources
(hooks: &[NotificationHookStatus])
crates/coding-agent/src/commands.rs:2811
↓ 2 callersFunctionrender_user_content
(content: &pie_ai::UserContent)
crates/coding-agent/src/export.rs:85
↓ 2 callersFunctionreplace_images_with_placeholder
( content: &[UserContentBlock], placeholder: &str, )
crates/ai/src/providers/transform_messages.rs:23
↓ 2 callersMethodrequest
( &self, method: &'static str, params: Option<P>, cancel: Option<CancellationT
crates/mcp/src/client.rs:254
↓ 2 callersMethodrequest
( &self, method: &'static str, params: Option<serde_json::Value>, )
crates/coding-agent/src/lsp.rs:225
↓ 2 callersMethodreset
Reset counters. Used by `/cost reset` and on session-switch.
crates/agent/src/harness/cost.rs:54
↓ 2 callersFunctionresolve
(model: &Model)
crates/ai/src/stream.rs:13
↓ 2 callersMethodresolve
(self, decision: ControlPlanePromptDecision)
crates/coding-agent/src/control_plane_prompt.rs:15
↓ 2 callersFunctionresolve_active_skill
( skills: &'a [Skill], name: &str, source: Option<SkillSource>, )
crates/coding-agent/src/commands.rs:763
↓ 2 callersMethodresolve_for_provider
Resolve a credential for `provider`. Env var wins; auth.json is the fallback. Returns the bare API-key string for `api_key` and the access token for `
crates/coding-agent/src/auth.rs:131
↓ 2 callersFunctionresolve_inbox_target
Resolve `<n>` (1-based position in the `new` list) or an `inb-…` id (prefix ok).
crates/coding-agent/src/commands.rs:2600
↓ 2 callersFunctionresolve_skill_shortcut
( skills: &'a [Skill], registry: &Registry, name: &str, )
crates/coding-agent/src/commands.rs:3091
↓ 2 callersFunctionresult_summary
(result: &pie_agent_core::AgentToolResult)
crates/coding-agent/src/hooks.rs:840
↓ 2 callersMethodrewind_failed_assistant
(&self)
crates/coding-agent/src/agent_session.rs:172
↓ 2 callersFunctionrewrite
Rewrite the full file (status changes). Corrupt lines were already dropped by `list`, which is acceptable on an explicit mutation.
crates/coding-agent/src/inbox.rs:150
↓ 2 callersFunctionrm_dangerous_with
(cmd: &str, target_matches: fn(&str) -> bool)
crates/agent/src/harness/permission.rs:269
↓ 2 callersFunctionrow
(id: &str)
crates/coding-agent/src/resume_picker.rs:240
↓ 2 callersFunctionrun_goal_start
(prompt: String, ctx: &CommandCtx<'_>)
crates/coding-agent/src/commands.rs:1010
↓ 2 callersFunctionrun_one
( inner: Arc<AgentInner>, call: PreparedCall, cancel: CancellationToken, )
crates/agent/src/agent_loop.rs:729
↓ 2 callersFunctionrun_session_cli_command
( command: &SessionCliCommand, repo: &JsonlSessionRepo, cwd: &std::path::Path, )
crates/coding-agent/src/main.rs:250
↓ 2 callersFunctionrun_slow_mock_server
Slow mock server: for any `tools/call` it delays the response until a barrier is released (so the client can be cancelled mid-wait), and records every
crates/mcp/tests/client_fixture.rs:278
↓ 2 callersMethodrun_turn_with_continuation
Common driver for one prompt cycle plus zero or more `OnTurnEndHook`-driven continuation cycles. `first_msg = Some(_)` triggers `agent.prompt(msg)` on
crates/agent/src/harness/agent_harness.rs:1750
↓ 2 callersFunctionsafe_control_prompt_label
(text: &str)
crates/coding-agent/src/ui/mod.rs:2135
↓ 2 callersFunctionsave_api_key
(provider: &str, token: &str)
crates/coding-agent/src/commands.rs:1997
↓ 2 callersMethodscroll_down
(&mut self, n: usize)
crates/coding-agent/src/ui/mod.rs:1437
↓ 2 callersMethodscroll_up
(&mut self, n: usize)
crates/coding-agent/src/ui/mod.rs:1432
↓ 2 callersFunctionsend_or_abort
( req: reqwest::RequestBuilder, abort: Option<&CancellationToken>, )
crates/ai/src/utils/abort.rs:21
↓ 2 callersFunctionserialize_conversation
Synchronous helper used by the LLM-backed `generate_summary`. Serialize a message list into a compact text dump for the summarizer prompt.
crates/agent/src/harness/compaction/compaction.rs:286
↓ 2 callersFunctionserve_once
(body: &'static str)
crates/coding-agent/src/local_models.rs:630
↓ 2 callersFunctionset_cron_enabled
( ctx: &CommandCtx<'_>, id: Option<&String>, enabled: bool, )
crates/coding-agent/src/commands.rs:2412
↓ 2 callersFunctionset_cron_job_state_tool
Build the session-scoped cron state tool. This lets the model disable a cron job without deleting the schedule/action text; enable fails closed to `/c
crates/coding-agent/src/tools/mod.rs:142
↓ 2 callersFunctionset_dynamic_trigger_enabled
(target: Option<&String>, enabled: bool)
crates/coding-agent/src/commands.rs:2750
↓ 2 callersMethodset_model_from_spec
(&mut self, spec: &str)
crates/coding-agent/src/ui/mod.rs:910
↓ 2 callersFunctionset_sink
(sink: Sink)
crates/coding-agent/src/commands.rs:33
↓ 2 callersFunctionset_skill_enabled
(argv: &[String], ctx: &CommandCtx<'_>, enabled: bool)
crates/coding-agent/src/commands.rs:560
↓ 2 callersMethodset_thinking_level
( &self, level: ThinkingLevel, )
crates/agent/src/harness/agent_harness.rs:1601
↓ 2 callersFunctionset_trigger_state_tool
Build the dynamic trigger state tool. This lets the model pause/resume a trigger without deleting the rule and losing its condition/action text.
crates/coding-agent/src/tools/mod.rs:171
↓ 2 callersFunctionsha256_hex
(bytes: &[u8])
crates/coding-agent/src/session_archive.rs:604
↓ 2 callersFunctionsha256_hex
Truncate a promotion body to the byte cap on a UTF-8 char boundary. Returns the new string and `truncated: bool`. Walk-back ensures `truncate` never p
crates/agent/src/harness/agent_harness.rs:2959
↓ 2 callersFunctionskill
(name: &str, content: &str, disabled: bool)
crates/coding-agent/tests/commands.rs:180
↓ 2 callersFunctionskill_harness_cell
(ctx: &CommandCtx<'_>)
crates/coding-agent/src/commands.rs:700
↓ 2 callersFunctionsleep_or_abort
( duration: std::time::Duration, abort: Option<&CancellationToken>, )
crates/ai/src/utils/abort.rs:44
↓ 2 callersFunctionslugify
(s: &str)
crates/coding-agent/src/tools/memory.rs:27
↓ 2 callersFunctionspawn_http
( body: &'static str, content_type: &'static str, )
crates/coding-agent/tests/web_fetch_e2e.rs:16
↓ 2 callersMethodstatus
(&self)
crates/coding-agent/src/triggers/mcp_notification_hook.rs:172
↓ 2 callersMethodstatus_line
(&self, width: usize, max_scroll: usize)
crates/coding-agent/src/ui/mod.rs:1934
↓ 2 callersFunctionstop_hook
Build the runtime stop hook used by `/goal`. The harness owns hook execution, but the hook itself needs a handle back to the live harness so it can r
crates/coding-agent/src/goal.rs:223
↓ 2 callersFunctionstream_fn_with_auth_store
()
crates/coding-agent/src/main.rs:1225
↓ 2 callersFunctionstream_one
(message: AssistantMessage)
crates/coding-agent/tests/dynamic_trigger_e2e.rs:338
↓ 2 callersFunctionstream_one
(message: AssistantMessage)
crates/coding-agent/tests/commands.rs:124
↓ 2 callersFunctionstream_simple
( model: &Model, context: &Context, options: Option<&SimpleStreamOptions>, )
crates/ai/src/stream.rs:38
↓ 2 callersMethodstream_simple
( &self, model: &Model, context: &Context, options: Option<&SimpleStreamOption
crates/ai/src/api_registry.rs:128
↓ 2 callersFunctionsummarization_prompt_budget
(model: &Model, settings: &CompactionSettings)
crates/agent/src/harness/compaction/compaction.rs:371
↓ 2 callersFunctionsummary_output_tokens
Output cap sent as `max_tokens` on the summarizer call. Providers fall back to `model.max_tokens` when unset, and `input + max_tokens > context_window
crates/agent/src/harness/compaction/compaction.rs:354
↓ 2 callersFunctiontail_chars
(text: &str, max_chars: usize)
crates/coding-agent/src/goal.rs:407
↓ 2 callersFunctiontemp_inbox
()
crates/coding-agent/src/inbox.rs:163
↓ 2 callersFunctionterminate_child_tree
Best-effort teardown of the child *and any descendants it spawned*. On Unix the child was placed in its own session/process group via `setsid()`, so a
crates/agent/src/harness/env/native.rs:446
↓ 2 callersFunctionterminate_hook_tree
Best-effort SIGKILL of the hook child's whole process group on Unix. On non-Unix targets this is a no-op (the `kill_on_drop(true)` set on the `Command
crates/coding-agent/src/hooks.rs:511
↓ 2 callersFunctiontest_lock
The faux queue is process-global; serialize the tests that touch it.
crates/ai/src/providers/faux.rs:257
↓ 2 callersMethodtoString
()
workers/fefe-hub/src/workers-shim.d.ts:19
↓ 2 callersFunctionto_credentials
(t: TokenResponse)
crates/ai/src/utils/oauth/anthropic.rs:63
↓ 2 callersFunctiontool_call_line
(call_id: u64, tool_call: &ToolCall)
crates/coding-agent/src/debug.rs:128
↓ 2 callersFunctiontool_result_text
(result: &pie_agent_core::AgentToolResult)
crates/coding-agent/src/commands.rs:708
↓ 2 callersFunctiontranslate_simple
Translate `SimpleStreamOptions` into a Gemini `StreamOptions` (thinking budget in extras).
crates/ai/src/providers/google.rs:70
↓ 2 callersFunctiontrigger_json_string
(trigger: &Trigger, path: &[&str])
crates/agent/src/harness/agent_harness.rs:2312
↓ 2 callersFunctiontruncate_chars
Truncate `s` to at most `max_chars` chars (NOT bytes — `String::truncate` panics if the byte offset falls inside a multi-byte UTF-8 character). Return
crates/coding-agent/src/tui.rs:441
↓ 2 callersFunctiontruncate_text
Text truncation primitives. TODO: full 1:1 port of `packages/agent/src/harness/utils/truncate.ts` (~344 lines). For now we expose a basic "truncate to
crates/agent/src/harness/utils/truncate.rs:7
↓ 2 callersFunctiontruncation_marker
(hidden_bytes: usize, hidden_lines: usize)
crates/coding-agent/src/ui/feed.rs:756
↓ 2 callersMethodtry_decode
Try to decode one complete frame from the front of the buffer.
crates/ai/src/utils/aws_eventstream.rs:42
↓ 2 callersFunctiontwo_turn_stream
Two-turn faux stream: first turn issues a `bash` tool call with the supplied command, second turn (after the tool result comes back) emits a final tex
crates/agent/tests/permission_e2e.rs:93
↓ 2 callersMethodtype_str
(&self)
crates/agent/src/harness/session/session.rs:160
↓ 2 callersFunctionunknown_model_error
(provider: &str, id: &str)
crates/coding-agent/src/commands.rs:1370
↓ 2 callersMethodup
(&mut self)
crates/coding-agent/src/model_picker.rs:97
↓ 2 callersFunctionupdate_usage
(usage: &mut Usage, val: &Value)
crates/ai/src/providers/anthropic.rs:556
↓ 2 callersFunctionupdate_usage
(usage: &mut Usage, val: &Value)
crates/ai/src/providers/openai_responses.rs:542
↓ 2 callersFunctionurldecode
(s: &str)
crates/coding-agent/src/oauth.rs:246
↓ 2 callersMethodusage
(&self)
crates/coding-agent/src/commands.rs:317
↓ 2 callersMethoduser_prompt_turn
( &self, prompt_text: String, loaded_images: Vec<ImageContent>, )
crates/coding-agent/src/ui/kernel.rs:106
↓ 2 callersFunctionvalidated_payload_action_class
(trigger: &Trigger, path: &[&str])
crates/agent/src/harness/agent_harness.rs:2307
↓ 2 callersFunctionvisible_window
Compute the `[start, end)` slice of entries visible in a viewport of `height` rows, keeping `selected` in view. `height` is clamped to at least 1.
crates/coding-agent/src/resume_picker.rs:57
↓ 2 callersFunctionweb_feed_lines
(feed: &feed::Feed)
crates/coding-agent/src/ui/web.rs:768
↓ 2 callersFunctionweb_router
(state: HttpState)
crates/coding-agent/src/ui/web.rs:661
↓ 2 callersFunctionwith_auth
(builder: reqwest::RequestBuilder, auth: &HttpMcpAuth)
crates/mcp/src/http.rs:401
↓ 2 callersFunctionwrite_enter_tui_commands
(out: &mut impl std::io::Write)
crates/coding-agent/src/ui/mod.rs:2239
↓ 2 callersMethodwrite_framed
(&self, payload: &str)
crates/coding-agent/src/lsp.rs:273
↓ 2 callersFunctionwrite_leave_tui_commands
(out: &mut impl std::io::Write)
crates/coding-agent/src/ui/mod.rs:2248
↓ 2 callersFunctionwrite_loop_state
(path: &Path, state: &str)
crates/coding-agent/src/triggers/cron.rs:759
↓ 2 callersFunctionwrite_message
(payload: dict)
examples/mcp-notify-python/notify-server.py:39
↓ 2 callersFunctionwrite_message
(payload: dict)
examples/mcp-weather-python/weather-server.py:54
↓ 1 callersMethodabort_all_triggers
Cancel every in-flight sub-agent. Each cancelled task writes its own `trigger_result` and emits `TriggerFailed`. Convenience wrapper around [`Self::ab
crates/agent/src/harness/agent_harness.rs:1429
← previousnext →701–800 of 2,618, ranked by callers