MCPcopy Create free account

hub / github.com/c4pt0r/pie / functions

Functions2,618 in github.com/c4pt0r/pie

↓ 3 callersMethodcommands
(&self)
crates/coding-agent/src/commands.rs:254
↓ 3 callersFunctioncompact_tool_output_lines
Build a compact, display-only preview of tool output. The full tool result still flows to the model/session; this only limits what the TUI/feed shows
crates/coding-agent/src/ui/feed.rs:694
↓ 3 callersFunctioncompleter
()
crates/coding-agent/src/readline.rs:90
↓ 3 callersFunctioncompose_stateful_prompt
Assemble the stateful-loop prompt: previous state, the job's action, and the output protocol the listener parses afterwards.
crates/coding-agent/src/triggers/cron.rs:773
↓ 3 callersFunctionconnect_all
Connect to each configured server. Returns the tools collected, the `McpNotificationHook` per successful connection, per-server failure diagnostics, a
crates/coding-agent/src/mcp_loader.rs:150
↓ 3 callersFunctionconsume_responses_sse
Shared Responses-API SSE consumer. Reused by the Azure provider, which differs only in URL shape and auth header. Pushes `Start`, drains the SSE strea
crates/ai/src/providers/openai_responses.rs:226
↓ 3 callersFunctioncontext_line
(call_id: u64, context: &PiContext)
crates/coding-agent/src/debug.rs:119
↓ 3 callersFunctioncron_harness_listener
(registry: CronRegistry, inbox_path: PathBuf)
crates/coding-agent/src/triggers/cron.rs:901
↓ 3 callersFunctioncron_sidecar_path_for_session
Return the cron sidecar for a live session.
crates/coding-agent/src/session/mod.rs:60
↓ 3 callersFunctioncron_trigger_for_job
(job: &CronJob, due_at: DateTime<Utc>, trace_id: String)
crates/coding-agent/src/triggers/cron.rs:695
↓ 3 callersMethodcycle_completion
(&mut self)
crates/coding-agent/src/ui/mod.rs:1378
↓ 3 callersFunctiondefault_export_path
(session_id: &str)
crates/coding-agent/src/export.rs:99
↓ 3 callersMethoddefinition
(&self)
crates/agent/tests/agent_loop.rs:164
↓ 3 callersMethoddelete
Delete a session file. Returns `Ok(false)` if it was already missing.
crates/agent/src/harness/session/jsonl_repo.rs:74
↓ 3 callersFunctiondone_message
(text: &str)
crates/agent/src/harness/compaction/compaction.rs:736
↓ 3 callersFunctionemit_multiline
(text: &str)
crates/coding-agent/src/commands.rs:1275
↓ 3 callersFunctionempty_context
()
crates/ai/src/api_registry.rs:263
↓ 3 callersMethodenqueue
(&mut self, m: AgentMessage)
crates/agent/src/agent.rs:86
↓ 3 callersFunctionestimate_tokens
Conservative per-message estimate built on [`estimate_text_tokens`].
crates/agent/src/harness/compaction/compaction.rs:116
↓ 3 callersMethodexecute
( &self, _id: &str, params: Value, _cancel: CancellationToken, _on_upd
crates/coding-agent/src/tools/edit.rs:23
↓ 3 callersMethodexecute
( &self, _id: &str, params: Value, cancel: CancellationToken, _on_upda
crates/coding-agent/src/tools/find.rs:36
↓ 3 callersMethodexecute
( &self, _id: &str, params: Value, cancel: CancellationToken, _on_upda
crates/coding-agent/src/tools/grep.rs:36
↓ 3 callersFunctionfallback_description
()
crates/coding-agent/src/tools/install_skill.rs:626
↓ 3 callersFunctionfaux_model
()
crates/coding-agent/tests/hooks_e2e.rs:53
↓ 3 callersFunctionfaux_stream
(text: &'static str)
crates/coding-agent/tests/hooks_e2e.rs:71
↓ 3 callersFunctionfaux_stream
(text: &'static str)
crates/coding-agent/tests/task_tool_e2e.rs:39
↓ 3 callersFunctionfaux_vision_model
()
crates/coding-agent/src/ui/mod.rs:2326
↓ 3 callersFunctionfind_cut_point
Find a safe cut point keeping at least `keep_recent_tokens` of trailing context. Always lands on a turn boundary.
crates/agent/src/harness/compaction/compaction.rs:246
↓ 3 callersFunctionfind_session_path
( repo: &JsonlSessionRepo, files: &[PathBuf], id: &str, )
crates/coding-agent/src/session/mod.rs:191
↓ 3 callersFunctionfire_once_harness_listener
(registry: DynamicTriggerRegistry)
crates/coding-agent/src/triggers/dynamic.rs:672
↓ 3 callersFunctionfixed_now
()
crates/agent/src/harness/trigger_runtime.rs:339
↓ 3 callersFunctionflush
( result: &mut Vec<Message>, pending: &mut Vec<ToolCall>, existing_ids: &mut HashSet<S
crates/ai/src/providers/transform_messages.rs:159
↓ 3 callersFunctionformat_skill_invocation
Render a skill into the `<skill>` block expected by the system prompt.
crates/agent/src/harness/skills.rs:23
↓ 3 callersFunctionget
(id)
workers/fefe-hub/tests/relay.test.mjs:95
↓ 3 callersMethodharness_listener
(&self)
crates/coding-agent/src/tui.rs:112
↓ 3 callersFunctionharness_with_reloadable_skills
(base_dir: &Path, seed: Vec<Skill>)
crates/coding-agent/tests/commands.rs:207
↓ 3 callersMethodheader_str
(&self, key: &str)
crates/ai/src/event_stream.rs:59
↓ 3 callersFunctionhelp_text_with_skills
(registry: &Registry, topic: Option<&str>, skills: &[Skill])
crates/coding-agent/src/commands.rs:1141
↓ 3 callersMethodinput_is_single_line
(&self)
crates/coding-agent/src/ui/mod.rs:1348
↓ 3 callersFunctionkey
(provider: &Provider, id: &str)
crates/ai/src/models.rs:19
↓ 3 callersFunctionlast_assistant_text
Extract the text of the last assistant message, if any. Returns `None` if the agent produced no assistant content (e.g. aborted before the first turn)
crates/agent/src/harness/agent_harness.rs:3365
↓ 3 callersFunctionlist_cron_jobs_tool
Build the session-scoped cron listing tool. This is the model-facing counterpart to `/cron list` and returns redacted previews rather than raw action
crates/coding-agent/src/tools/mod.rs:128
↓ 3 callersFunctionload_all_from_paths_with_base_url
( paths: &[PathBuf], cli_base_url: Option<&str>, )
crates/coding-agent/src/local_models.rs:38
↓ 3 callersFunctionload_memory_block
Load existing memory into a text block suitable for the system prompt. Returns an empty string when no memory exists. Walks `<dir>/*.md` (excluding `M
crates/coding-agent/src/tools/memory.rs:257
↓ 3 callersFunctionload_one
Load a single image into a pie-ai ImageContent. Enforces the size cap.
crates/coding-agent/src/images.rs:32
↓ 3 callersFunctionload_web_prompt_images
(images: &[WebPromptImage])
crates/coding-agent/src/ui/web.rs:802
↓ 3 callersFunctionmodel
(provider: &str)
crates/coding-agent/src/main.rs:1345
↓ 3 callersFunctionmodel_catalog_text
(provider_filter: Option<&str>)
crates/coding-agent/src/commands.rs:1297
↓ 3 callersFunctionmodel_with_limits
(context_window: u32, max_tokens: u32)
crates/agent/src/harness/compaction/compaction.rs:714
↓ 3 callersFunctionnew_count
Count of `new` entries; 0 when the file is missing or unreadable (badge path — rendering must never fail on inbox problems).
crates/coding-agent/src/inbox.rs:110
↓ 3 callersMethodnext_after
(&self, after: DateTime<Utc>)
crates/coding-agent/src/triggers/cron.rs:1015
↓ 3 callersMethodnotify
(&self, method: &'static str, params: Option<serde_json::Value>)
crates/coding-agent/src/lsp.rs:263
↓ 3 callersFunctionone_pixel_clipboard_image
()
crates/coding-agent/src/ui/mod.rs:2381
↓ 3 callersMethodparent_id
(&self)
crates/agent/src/harness/session/session.rs:145
↓ 3 callersFunctionparse_and_validate_skill_md
Validate complete `SKILL.md` text (frontmatter + body) and normalize it. Shared with `SkillBuilder`, which renders its own content and runs it through
crates/coding-agent/src/tools/install_skill.rs:550
↓ 3 callersFunctionparse_callback_query
(path: &str)
crates/ai/src/utils/oauth/anthropic.rs:198
↓ 3 callersFunctionparse_frontmatter
(content: &str)
crates/agent/src/harness/skills.rs:337
↓ 3 callersFunctionparse_number
(field: &str, raw: &str, min: u32, max: u32)
crates/coding-agent/src/triggers/cron.rs:1089
↓ 3 callersFunctionparse_skill_source
(raw: &str)
crates/coding-agent/src/commands.rs:754
↓ 3 callersMethodpermission_classification
Issue #110 sub-PR 3 classifier — branches on the prepared `enabled` arg: - `enabled: false` (disable) is **narrowing** — the model cannot use a skill
crates/coding-agent/src/tools/set_skill_state.rs:110
↓ 3 callersMethodpermission_classification
The preview phase is a pure read (render + validate, no fs writes), so it runs under `Allow` — the user-initiated "summarize recent work into a skill"
crates/coding-agent/src/tools/skill_builder.rs:147
↓ 3 callersFunctionprepend_path
(dir: &Path)
crates/coding-agent/tests/commands.rs:2003
↓ 3 callersMethodprompt
Prompt the agent with text. Runs auto-compaction first, persists results to session.
crates/agent/src/harness/agent_harness.rs:1684
↓ 3 callersMethodprompt_from_template
Pick a template by name, interpolate, and prompt the agent.
crates/agent/src/harness/agent_harness.rs:1662
↓ 3 callersMethodpush_assistant
(&mut self, text: impl Into<String>)
crates/coding-agent/src/ui/feed.rs:201
↓ 3 callersFunctionpush_rules
( file: HooksFile, source: &str, rules: &mut Vec<HookRule>, diagnostics: &mut Vec<String>, )
crates/coding-agent/src/hooks.rs:243
↓ 3 callersMethodpush_tool
(&mut self, name: impl Into<String>, args: impl Into<String>)
crates/coding-agent/src/ui/feed.rs:255
↓ 3 callersMethodpush_tool_result
( &mut self, tool_call_id: impl Into<String>, lines: Vec<String>, is_error: bo
crates/coding-agent/src/ui/feed.rs:282
↓ 3 callersFunctionrace_model
(api: &str)
crates/ai/src/api_registry.rs:245
↓ 3 callersFunctionrandom_token
(len: usize)
crates/coding-agent/src/oauth.rs:183
↓ 3 callersMethodread_text_file
(&self, path: &str, _cancel: CancellationToken)
crates/agent/src/harness/env/native.rs:102
↓ 3 callersMethodregister
(&mut self, ext: Arc<dyn AgentExtension>)
crates/coding-agent/src/extensions.rs:61
↓ 3 callersFunctionregistry_test_lock
()
crates/ai/src/api_registry.rs:182
↓ 3 callersFunctionrelative_env_path
(root: &str, path: &str)
crates/agent/src/harness/skills.rs:422
↓ 3 callersMethodremove
(key: &'static str)
crates/coding-agent/src/commands.rs:3186
↓ 3 callersMethodremove_rule
( &self, id: &str, )
crates/coding-agent/src/triggers/dynamic.rs:156
↓ 3 callersFunctionrender_cron_jobs
(jobs: &[crate::triggers::cron::CronJob])
crates/coding-agent/src/commands.rs:2621
↓ 3 callersFunctionrender_triggers_status
(snapshot: &NotificationStatusSnapshot)
crates/coding-agent/src/commands.rs:2667
↓ 3 callersMethodreset_cost
Reset the cost tracker — `/cost reset` and on session-switch.
crates/agent/src/harness/agent_harness.rs:1051
↓ 3 callersFunctionresolve_http_auth_from_store
( auth: Option<&HttpAuthConfig>, store: &AuthStore, )
crates/coding-agent/src/mcp_loader.rs:324
↓ 3 callersFunctionresolve_kind
( env: &dyn ExecutionEnv, info: &FileInfo, diagnostics: &mut Vec<SkillDiagnostic>, cancel: &Ca
crates/agent/src/harness/skills.rs:467
↓ 3 callersFunctionresume
(harness: &Arc<AgentHarness>)
crates/coding-agent/src/goal.rs:96
↓ 3 callersFunctionresume
Resume the most recent session for this cwd, or a specific one by id when supplied.
crates/coding-agent/src/session/mod.rs:82
↓ 3 callersMethodrun_auto_compaction
(&self)
crates/agent/src/harness/agent_harness.rs:2020
↓ 3 callersMethodrun_evaluator
Run a tool-less, in-memory evaluator sub-agent and return its last assistant text. Used by `OnTurnEndHook` implementations (e.g. the `/goal` stop hook
crates/agent/src/harness/agent_harness.rs:1974
↓ 3 callersFunctionrun_mock_server
Mock server: handles initialize → tools/list → tools/call by writing back canned responses.
crates/mcp/tests/client_fixture.rs:50
↓ 3 callersFunctionsafe_control_prompt_text
(text: &str, cap: usize)
crates/coding-agent/src/ui/mod.rs:2139
↓ 3 callersFunctionsave
Atomically persist the overlay (tempfile + rename within the same dir).
crates/coding-agent/src/skills_state.rs:100
↓ 3 callersFunctionsave
(session: &Session, dest: &Path)
crates/coding-agent/src/export.rs:103
↓ 3 callersMethodsave
(&self)
crates/coding-agent/src/auth.rs:94
↓ 3 callersMethodsendSse
(viewer: SseViewer, event: string, data: string)
workers/fefe-hub/src/relay.ts:328
↓ 3 callersMethodsendViewersCount
()
workers/fefe-hub/src/relay.ts:309
↓ 3 callersMethodsend_line
(&self, line: String)
crates/mcp/src/http.rs:168
↓ 3 callersFunctionserialize_conversation_for_summary_budget
( messages: &[AgentMessage], budget_tokens: u64, custom_instructions: Option<&str>, )
crates/agent/src/harness/compaction/compaction.rs:459
↓ 3 callersFunctionserve_once
Serve one canned HTTP/1.1 response carrying the given SSE body, then exit.
crates/ai/tests/anthropic_sse_e2e.rs:20
↓ 3 callersMethodset
(key: &'static str, value: impl AsRef<std::ffi::OsStr>)
crates/coding-agent/src/commands.rs:3180
↓ 3 callersMethodset_job_enabled
( &self, id: &str, enabled: bool, )
crates/coding-agent/src/triggers/cron.rs:177
↓ 3 callersMethodset_rule_enabled
( &self, id: &str, enabled: bool, )
crates/coding-agent/src/triggers/dynamic.rs:174
↓ 3 callersFunctionset_status
Set one entry's status by id. Returns the updated entry, or `None` when absent.
crates/coding-agent/src/inbox.rs:115
↓ 3 callersFunctionshort_hash
(s: &str)
crates/ai/src/utils/hash.rs:11
← previousnext →401–500 of 2,618, ranked by callers