MCPcopy Create free account

hub / github.com/c4pt0r/pie / functions

Functions2,618 in github.com/c4pt0r/pie

↓ 13 callersFunctiontest_tool
(cell: SkillHarnessCell, dir: &tempfile::TempDir)
crates/coding-agent/src/tools/install_skill.rs:897
↓ 13 callersFunctionuser_message
(text: &str)
crates/agent/tests/session_storage.rs:10
↓ 12 callersFunctionassistant
(content: Vec<ContentBlock>)
crates/coding-agent/tests/tui_render_e2e.rs:22
↓ 12 callersFunctionestimate_text_tokens
Conservative char-class-aware text estimate: ~4 chars per token for ASCII, ~1 token per char for non-ASCII (CJK and similar scripts tokenize close to
crates/agent/src/harness/compaction/compaction.rs:102
↓ 12 callersMethodis_terminal
(&self)
crates/ai/src/types.rs:539
↓ 12 callersFunctionredact
Apply every secret-pattern regex to `input`. Each match is replaced with a fixed placeholder that names which class of secret was caught so the user c
crates/coding-agent/src/bug_report.rs:115
↓ 12 callersMethodresolve
(&self, path: &str)
crates/agent/src/harness/env/native.rs:36
↓ 11 callersFunctionbefore_trigger_action_hook
(registry: DynamicTriggerRegistry)
crates/coding-agent/src/triggers/dynamic.rs:557
↓ 11 callersFunctionenv_lock
()
crates/coding-agent/src/local_models.rs:150
↓ 11 callersMethodhandleAgentMessage
(raw: string)
workers/fefe-hub/src/relay.ts:50
↓ 11 callersMethodnotification_status_snapshot
Point-in-time view of the harness's notification surface — the [`TriggerRuntimeSnapshot`] plus a `Vec<NotificationHookStatus>` collected from each reg
crates/agent/src/harness/agent_harness.rs:1393
↓ 11 callersMethodqueue_user_prompt
(&mut self, display: String, prompt: String, images: Vec<ImageContent>)
crates/coding-agent/src/ui/mod.rs:1082
↓ 11 callersMethodreload_skills_from_disk
Hot-reload the skill catalog from disk via the embedder-supplied [`AgentHarnessOptions::reload_skills_fn`] closure. Used by `InstallSkillTool`, `/skil
crates/agent/src/harness/agent_harness.rs:1538
↓ 11 callersFunctionstarts_with_at
(bytes: &[u8], i: usize, pat: &[u8])
crates/coding-agent/src/tools/web_fetch.rs:224
↓ 11 callersFunctionunregister_custom_model
(provider: &Provider, id: &str)
crates/ai/src/models.rs:47
↓ 10 callersFunctionapply
Apply the overlay to a freshly-loaded skill catalog: for each skill that has an explicit `{source, name}` override, set `disable_model_invocation = !e
crates/coding-agent/src/skills_state.rs:124
↓ 10 callersMethodbranch
( &self, from_id: Option<&str>, )
crates/agent/src/harness/session/session.rs:398
↓ 10 callersFunctioncreateTestApp
( version = DEFAULT_VERSION, relay?: DurableObjectNamespace, )
workers/fefe-hub/src/index.ts:107
↓ 10 callersFunctionimport_session
( repo: &JsonlSessionRepo, archive_path: &Path, cwd: &Path, activate_triggers: ActivateTrigger
crates/coding-agent/src/session_archive.rs:202
↓ 10 callersFunctionload_all_from_paths
(paths: &[PathBuf])
crates/coding-agent/src/local_models.rs:34
↓ 10 callersFunctionparse_partial_json
Parse a (potentially incomplete) JSON document, closing any open structures and trailing strings so the result is still valid JSON. Returns `Value::Nu
crates/ai/src/utils/json_parse.rs:11
↓ 10 callersFunctionpromoting_action_hook
( template: Option<String>, require_approval: bool, )
crates/agent/tests/harness_e2e.rs:3011
↓ 10 callersMethodset
Upsert an explicit `{source, name} -> enabled` override.
crates/coding-agent/src/skills_state.rs:54
↓ 10 callersMethodstop_sync
Idempotent stop. Flips the flag, then synchronously emits the line-clear escape so any subsequent write by the caller lands on a clean line.
crates/coding-agent/src/spinner.rs:100
↓ 9 callersFunctionbuild_args
(name: &str, confirm: bool)
crates/coding-agent/src/tools/skill_builder.rs:465
↓ 9 callersFunctionbuild_client
Build a `reqwest::Client` honoring proxy env vars and pie-ai defaults.
crates/ai/src/utils/node_http_proxy.rs:19
↓ 9 callersFunctioncurrent
(harness: &Arc<AgentHarness>)
crates/coding-agent/src/goal.rs:69
↓ 9 callersFunctionexport_session
( session_path: &Path, output_path: &Path, exclude_triggers: bool, )
crates/coding-agent/src/session_archive.rs:115
↓ 9 callersFunctionget_env_api_key
(provider: &str)
crates/ai/src/env_api_keys.rs:30
↓ 9 callersMethodget_leaf_id
(&self)
crates/agent/src/harness/session/jsonl_storage.rs:163
↓ 9 callersMethodis_aborted
(&self)
crates/ai/src/utils/retry.rs:34
↓ 9 callersMethodname
(&self)
crates/coding-agent/src/commands.rs:311
↓ 9 callersMethodparse
(s: &str)
crates/coding-agent/src/hooks.rs:583
↓ 9 callersFunctionplain_text
(lines: &[Line<'_>])
crates/coding-agent/src/ui/feed.rs:788
↓ 9 callersFunctionread_custom_entries
( storage: Arc<MemorySessionStorage>, kind: &str, )
crates/agent/tests/harness_e2e.rs:5024
↓ 9 callersFunctionresolve_builtins
Build the union of CLI-requested + config-requested built-in skills. `cli_requested` is treated as authoritative: an unknown name is an error returne
crates/coding-agent/src/builtin_skills.rs:74
↓ 9 callersFunctionresponse_text_or_abort
( resp: reqwest::Response, abort: Option<&CancellationToken>, )
crates/ai/src/utils/abort.rs:78
↓ 9 callersMethodsend_line
(&self, line: String)
crates/mcp/tests/client_fixture.rs:20
↓ 9 callersFunctionsend_with_retry
Send a `reqwest::RequestBuilder` with retries. Internally uses `try_clone` to rebuild the request between attempts. For JSON / form / text bodies this
crates/ai/src/utils/retry.rs:42
↓ 9 callersFunctionstart_with
( label: impl Into<String>, sink: Arc<dyn SpinnerSink>, enabled: bool, )
crates/coding-agent/src/spinner.rs:132
↓ 9 callersMethodtext
(text: impl Into<String>)
crates/ai/src/types.rs:269
↓ 9 callersFunctionunregister_ds4_default
()
crates/coding-agent/src/local_models.rs:184
↓ 8 callersFunctionallow_all_control_plane_hook
Auto-approve `on_control_plane_prompt` for tests that exercise tools whose `permission_classification` returns `Prompt` (issue #110 sub-PR 3 — `NewTri
crates/coding-agent/tests/dynamic_trigger_e2e.rs:51
↓ 8 callersFunctionappend
Append a finding. Text is trimmed and capped at [`MAX_ENTRY_TEXT_CHARS`].
crates/coding-agent/src/inbox.rs:47
↓ 8 callersMethodappend_typed
(&self, entry: SessionTreeEntry)
crates/agent/src/harness/session/session.rs:434
↓ 8 callersMethodbuild_context
(&self)
crates/agent/src/harness/session/session.rs:409
↓ 8 callersMethodcreate_entry_id
(&self)
crates/agent/src/harness/session/jsonl_storage.rs:178
↓ 8 callersFunctioncurrent_time_label
()
crates/coding-agent/src/ui/feed.rs:589
↓ 8 callersMethoddown
(&mut self)
crates/coding-agent/src/model_picker.rs:101
↓ 8 callersMethoddrain
(&mut self)
crates/agent/src/agent.rs:90
↓ 8 callersMethodexec
(&self, command: &str, options: ExecOptions)
crates/agent/src/harness/env/native.rs:304
↓ 8 callersFunctionfaux_model
()
crates/coding-agent/tests/dynamic_trigger_e2e.rs:56
↓ 8 callersFunctionframe
(payload_json: &str)
crates/ai/src/bedrock_anthropic.rs:337
↓ 8 callersMethodingest
Feed one event-stream EventMessage. Returns zero or more typed events. Returning `Ok(vec![])` is normal — many incoming frames don't need to be surfac
crates/ai/src/bedrock_anthropic.rs:59
↓ 8 callersFunctionlist_models
()
crates/ai/src/models.rs:34
↓ 8 callersMethodload_from_path
(&self, path: impl Into<PathBuf>)
crates/coding-agent/src/triggers/cron.rs:86
↓ 8 callersFunctionlog
(msg: str)
examples/mcp-weather-python/weather-server.py:49
↓ 8 callersFunctionmodel_json
(provider: &str, id: &str, api: &str, base_url: &str)
crates/coding-agent/src/local_models.rs:188
↓ 8 callersMethodmove_to
Move the session leaf to a specific entry id (or root). When `summary` is provided, records a branch_summary entry so siblings see the fork's contribu
crates/agent/src/harness/agent_harness.rs:1616
↓ 8 callersMethodpush_plain_untimed
(&mut self, text: impl Into<String>, level: Level)
crates/coding-agent/src/ui/feed.rs:237
↓ 8 callersFunctionresolve_compat
(model: &Model)
crates/ai/src/providers/openai_responses.rs:44
↓ 8 callersMethodspawn
Spawn the server, wire stdio, and start the read pump. Caller must then call [`Self::initialize`] before any other method.
crates/coding-agent/src/lsp.rs:69
↓ 8 callersMethodtools_list
Fetch the server's tool catalog and cache it.
crates/mcp/src/client.rs:213
↓ 8 callersFunctionuuidv7
Mint a fresh UUIDv7 string (lowercase, hyphenated).
crates/agent/src/harness/session/uuid.rs:6
↓ 7 callersMethodagentConnected
Reset per-connection state when a fresh agent socket attaches.
workers/fefe-hub/src/relay.ts:46
↓ 7 callersFunctionassistant_tool_call
(id: &str, name: &str, args: serde_json::Value)
crates/coding-agent/tests/dynamic_trigger_e2e.rs:355
↓ 7 callersFunctionbuild
Build a harness whose catalog is `seed` and whose `reload_skills_from_disk` re-derives the catalog from `seed` with the overlay at `base_dir` applied
crates/coding-agent/src/tools/set_skill_state.rs:377
↓ 7 callersFunctionbuild
Harness whose `reload_skills_from_disk` re-scans `<base>/skills` from disk (so a removed dir actually disappears from the reloaded catalog) and applie
crates/coding-agent/src/tools/remove_skill.rs:391
↓ 7 callersFunctionbuild_request_body
( model: &Model, context: &Context, options: &StreamOptions, compat: &Compat, )
crates/ai/src/providers/openai_responses.rs:570
↓ 7 callersFunctiondynamic_trigger_stream
()
crates/coding-agent/tests/dynamic_trigger_e2e.rs:215
↓ 7 callersMethodenqueue_turn
(&mut self, job: QueuedTurn)
crates/coding-agent/src/ui/mod.rs:1090
↓ 7 callersFunctionenv
()
crates/agent/src/harness/env/native.rs:512
↓ 7 callersMethodevaluate
Evaluate a single tool call against the policy in the default [`PermissionCategory::Tool`] category. Preserved for backwards compatibility — new calle
crates/agent/src/harness/permission.rs:101
↓ 7 callersFunctionexec
( tool: &RemoveSkillTool, params: Value, )
crates/coding-agent/src/tools/remove_skill.rs:427
↓ 7 callersFunctionexecute
( tool: &SkillBuilderTool, params: Value, )
crates/coding-agent/src/tools/skill_builder.rs:457
↓ 7 callersMethodexists
(&self, path: &str, _cancel: CancellationToken)
crates/agent/src/harness/env/native.rs:212
↓ 7 callersMethodinput_text
(&self)
crates/coding-agent/src/ui/mod.rs:1344
↓ 7 callersMethodis_closed
True when the consumer has dropped the stream. Providers can short-circuit on this.
crates/ai/src/utils/event_stream.rs:49
↓ 7 callersMethodis_streaming
(&self)
crates/agent/src/agent.rs:146
↓ 7 callersMethodlist
(&self)
crates/agent/src/harness/prompt_templates.rs:27
↓ 7 callersFunctionload
Load the overlay. A missing file is an empty overlay; a malformed file is treated as empty (the disable/enable state simply isn't applied) rather than
crates/coding-agent/src/skills_state.rs:88
↓ 7 callersMethodload_from_path
( &self, path: impl Into<PathBuf>, )
crates/coding-agent/src/triggers/dynamic.rs:75
↓ 7 callersMethodmatches
Completions for the current input. Returns matching `/command` strings when `line` is a bare slash token (`/`, `/he`, …) with no whitespace yet; other
crates/coding-agent/src/readline.rs:43
↓ 7 callersFunctionnext_or_abort
( stream: &mut S, abort: Option<&CancellationToken>, )
crates/ai/src/utils/abort.rs:93
↓ 7 callersFunctionpair
()
crates/mcp/tests/client_fixture.rs:35
↓ 7 callersMethodpush
(&mut self, chunk: &[u8])
crates/mcp/src/http.rs:422
↓ 7 callersMethodregister_notification_hook
Register a [`super::notification_hook::NotificationHook`] with the harness. Spawns two detached tokio tasks: - **Driver**: calls `hook.run(sink)` and
crates/agent/src/harness/agent_harness.rs:1460
↓ 7 callersMethodremove
( &self, path: &str, recursive: bool, _force: bool, _cancel: Cancellat
crates/agent/src/harness/env/native.rs:244
↓ 7 callersMethodrun
(&self, sink: TriggerSink)
crates/coding-agent/src/triggers/mcp_notification_hook.rs:122
↓ 7 callersMethodstorage_path
(&self)
crates/coding-agent/src/triggers/cron.rs:102
↓ 7 callersFunctionwrite_skill
(root: &Path, name: &str, description: &str, body: &str)
crates/coding-agent/tests/cli_skills.rs:63
↓ 6 callersMethodabort
Abort the active run, if any. Subsequent calls are no-ops.
crates/agent/src/agent.rs:159
↓ 6 callersMethodaliases
(&self)
crates/coding-agent/src/commands.rs:862
↓ 6 callersFunctionanthropic_model
(base_url: String)
crates/ai/tests/anthropic_sse_e2e.rs:39
↓ 6 callersFunctionattach_skill_prompt
(text: impl Into<String>, skill_name: Option<&str>)
crates/coding-agent/src/commands.rs:845
↓ 6 callersFunctionbuild_request_body
(context: &Context, options: &StreamOptions)
crates/ai/src/providers/google.rs:417
↓ 6 callersFunctioncrc32
IEEE 802.3 CRC32 (polynomial 0xEDB88320). Hand-rolled with a 256-entry lookup table built at first use.
crates/ai/src/event_stream.rs:213
↓ 6 callersFunctionemit
(tx: &UnboundedSender<FeedUpdate>, text: impl Into<String>)
crates/coding-agent/src/debug.rs:83
↓ 6 callersFunctionexec
( tool: &SetSkillStateTool, params: Value, )
crates/coding-agent/src/tools/set_skill_state.rs:403
↓ 6 callersMethodexecute
( &self, _id: &str, params: Value, cancel: CancellationToken, _on_upda
crates/coding-agent/src/tools/bash.rs:64
← previousnext →101–200 of 2,618, ranked by callers