MCPcopy Create free account

hub / github.com/c4pt0r/pie / functions

Functions2,618 in github.com/c4pt0r/pie

↓ 931 callersMethodclone
(&self)
crates/agent/src/types.rs:289
↓ 696 callersMethodpush
Send one event. Terminal events (`Done`/`Error`) also resolve the final-result oneshot.
crates/ai/src/utils/event_stream.rs:32
↓ 524 callersMethodclone
(&self)
crates/coding-agent/src/spinner.rs:87
↓ 419 callersMethodlock
(&self)
crates/agent/src/harness/session/memory_storage.rs:43
↓ 408 callersMethoditer
(&self)
crates/coding-agent/src/extensions.rs:65
↓ 335 callersMethodget
(id: DurableObjectId)
workers/fefe-hub/src/workers-shim.d.ts:28
↓ 313 callersMethodlen
(&self)
crates/coding-agent/src/hooks.rs:290
↓ 257 callersMethodpath
(&self)
crates/agent/src/harness/session/jsonl_storage.rs:89
↓ 212 callersMethodis_empty
(&self)
crates/coding-agent/src/hooks.rs:286
↓ 164 callersMethodas_str
(&self)
crates/coding-agent/src/goal.rs:32
↓ 117 callersMethodas_str
(self)
crates/ai/src/types.rs:48
↓ 96 callersMethodfind
Lookup by name or alias. `name` is the bare command without `/`.
crates/coding-agent/src/commands.rs:259
↓ 93 callersFunctionwrite
(root: &Path, name: &str, frontmatter_desc: &str, body: &str)
crates/agent/tests/templates_loader.rs:10
↓ 92 callersMethodis_empty
(&self)
crates/coding-agent/src/session/mod.rs:245
↓ 76 callersFunctionfaux_model
()
crates/agent/tests/harness_e2e.rs:20
↓ 70 callersFunctionglobal_registry
()
crates/coding-agent/src/triggers/dynamic.rs:247
↓ 66 callersMethodcount
(&self)
crates/agent/src/harness/session/memory_repo.rs:31
↓ 52 callersFunctiondispatch
(input: &str, registry: &Registry, ctx: &CommandCtx<'_>)
crates/coding-agent/src/commands.rs:3147
↓ 52 callersMethodlines
Render the whole feed to width-wrapped `ratatui` lines, ready to scroll/draw.
crates/coding-agent/src/ui/feed.rs:413
↓ 52 callersMethodsubscribe_harness
Register a harness-level lifecycle listener. Returns an unsubscriber closure. Listener panics are caught — see [`HarnessEvent`] for the isolation con
crates/agent/src/harness/agent_harness.rs:1059
↓ 50 callersMethodhandle_trigger
Accept an incoming [`Trigger`] from a notification adapter. Evaluates it against the runtime's dedup + cycle bookkeeping, persists a `SessionTreeEntry
crates/agent/src/harness/agent_harness.rs:1117
↓ 48 callersMethodlist
(&self)
crates/coding-agent/src/triggers/cron.rs:106
↓ 48 callersMethodprompt
Start a new prompt. Appends a user `AgentMessage`, runs the loop, awaits completion.
crates/agent/src/agent.rs:171
↓ 46 callersMethodstate
Inspect the current agent state. The lock guards against concurrent loop mutations.
crates/agent/src/agent.rs:142
↓ 45 callersFunctionsample_trigger
(idempotency_key: &str, trace_id: &str)
crates/agent/tests/harness_e2e.rs:1233
↓ 44 callersFunctionglobal_cron_registry
()
crates/coding-agent/src/triggers/cron.rs:322
↓ 42 callersMethodclear_for_tests
(&self)
crates/coding-agent/src/triggers/cron.rs:275
↓ 41 callersMethodentries
(&self)
crates/agent/src/harness/session/session.rs:394
↓ 41 callersMethodrender_event
Render one event to any `Write`. Stdout in production, a `Vec<u8>` in tests so we can inspect the exact ANSI-bearing byte stream the agent emits durin
crates/coding-agent/src/tui.rs:142
↓ 39 callersFunctionpanel_line
(text: String, color: Color, width: usize)
crates/coding-agent/src/ui/mod.rs:2117
↓ 38 callersFunctionfaux_model
()
crates/coding-agent/tests/commands.rs:84
↓ 37 callersFunctionfaux_stream_fn
(text: &'static str)
crates/agent/tests/harness_e2e.rs:38
↓ 35 callersMethodagent
(&self)
crates/agent/src/harness/agent_harness.rs:1099
↓ 34 callersMethodexecute
( &self, _id: &str, params: Value, _cancel: CancellationToken, _on_upd
crates/coding-agent/src/tools/ls.rs:32
↓ 33 callersMethodexecute
( &self, _id: &str, params: serde_json::Value, _cancel: CancellationToken,
crates/coding-agent/tests/dynamic_trigger_e2e.rs:114
↓ 33 callersMethodsystem_line
(&mut self, text: impl AsRef<str>)
crates/coding-agent/src/ui/mod.rs:284
↓ 32 callersMethodstatus
(&self)
crates/agent/tests/harness_e2e.rs:1572
↓ 30 callersMethodregister
(&mut self, command: Arc<dyn SlashCommand>)
crates/coding-agent/src/commands.rs:250
↓ 30 callersFunctionset
(harness: &Arc<AgentHarness>, condition: String)
crates/coding-agent/src/goal.rs:74
↓ 30 callersMethodstorage
(&self)
crates/agent/src/harness/session/session.rs:371
↓ 29 callersMethodappend_custom
( &self, custom_type: impl Into<String>, data: Option<Value>, )
crates/agent/src/harness/session/session.rs:507
↓ 29 callersMethodget_metadata_json
(&self)
crates/agent/tests/harness_e2e.rs:114
↓ 29 callersFunctiontest_app
()
crates/coding-agent/src/ui/mod.rs:2334
↓ 27 callersMethodcreate
Mint a new session file under `root` for the given `cwd`. The file is named `<uuidv7>.jsonl` to keep directory listings chronologically sorted.
crates/agent/src/harness/session/jsonl_repo.rs:30
↓ 27 callersFunctionnote
(method: &str, params: serde_json::Value)
crates/coding-agent/src/triggers/mcp_notification_hook.rs:393
↓ 26 callersMethodas_str
(self)
crates/agent/src/types.rs:71
↓ 26 callersMethodskills
(&self)
crates/agent/src/harness/agent_harness.rs:1501
↓ 25 callersFunctionwait_for_event
Helper: wait until a predicate over the captured event log returns Some(value) or the deadline elapses. Polls every 20ms.
crates/agent/tests/harness_e2e.rs:2376
↓ 24 callersMethodappend_message
(&self, message: AgentMessage)
crates/agent/src/harness/session/session.rs:440
↓ 24 callersMethodprompt
Prompt with retry. Same signature as `AgentHarness::prompt` but loops on retryable LLM errors with exponential backoff. If a `fallback_model` is confi
crates/coding-agent/src/agent_session.rs:87
↓ 24 callersFunctionpush_aborted
(sender: &mut AssistantMessageEventSender, model: &Model)
crates/ai/src/utils/abort.rs:116
↓ 23 callersFunctionbase_dir
Base directory: `${PIE_DIR:-$HOME/.pie}`.
crates/coding-agent/src/config.rs:10
↓ 23 callersFunctionload
( cwd: &Path, session_id: impl Into<String>, model: Option<&pie_ai::Model>, thinking_level: Op
crates/coding-agent/src/hooks.rs:152
↓ 23 callersMethodsession
(&self)
crates/agent/src/harness/agent_harness.rs:1497
↓ 22 callersMethodentries
(&self)
crates/coding-agent/src/history.rs:39
↓ 22 callersMethoderror_line
(&mut self, text: impl AsRef<str>)
crates/coding-agent/src/ui/mod.rs:288
↓ 21 callersMethodharness
(&self)
crates/coding-agent/src/ui/kernel.rs:80
↓ 20 callersFunctionemit_from_listeners
Emit a [`HarnessEvent`] to a snapshot of the listener registry, isolating each listener with `catch_unwind` so a single panicking listener cannot pois
crates/agent/src/harness/agent_harness.rs:2369
↓ 20 callersFunctionparse
Split `/cmd arg1 "arg with spaces"` into `(cmd, [arg1, arg with spaces])`. Returns `None` if `input` doesn't start with `/`. Quoting is minimal: balan
crates/coding-agent/src/commands.rs:275
↓ 19 callersMethodevaluate
Decide whether a fresh trigger should be admitted, deduped, or cycle-suppressed. Pure (modulo wall-clock pruning); does NOT advance the trigger state
crates/agent/src/harness/trigger_runtime.rs:191
↓ 19 callersMethodid
(&self)
crates/agent/src/harness/session/session.rs:130
↓ 19 callersMethodopen
Open an existing session file. Path may be absolute or relative to `root`.
crates/agent/src/harness/session/jsonl_repo.rs:42
↓ 19 callersFunctionpush_error
(sender: &mut AssistantMessageEventSender, model: &Model, msg: String)
crates/ai/src/providers/google.rs:466
↓ 19 callersFunctionstrip_ansi
Strip ANSI SGR escapes so assertions can read the textual content directly. Operates on chars to preserve multi-byte UTF-8 glyphs (like the `⚙` gear).
crates/coding-agent/tests/tui_render_e2e.rs:48
↓ 19 callersFunctiontruncate_chars
Truncate to at most `max_chars` characters (not bytes — never splits a multi-byte glyph), appending an ellipsis when shortened.
crates/coding-agent/src/ui/feed.rs:775
↓ 18 callersMethodappend
Append a fresh entry. Deduplicates with the immediately-preceding entry so spamming the same prompt twice doesn't litter the file. Caps total entries
crates/coding-agent/src/history.rs:56
↓ 18 callersFunctionemit
(inner: &Arc<AgentInner>, event: AgentEvent, cancel: &CancellationToken)
crates/agent/src/agent_loop.rs:851
↓ 18 callersFunctionget_model
(provider: &Provider, id: &str)
crates/ai/src/models.rs:23
↓ 18 callersFunctionmap_io_error
(e: std::io::Error, path: Option<&str>)
crates/agent/src/harness/env/native.rs:46
↓ 17 callersMethodadd_rule
( &self, condition: &str, action: &str, )
crates/coding-agent/src/triggers/dynamic.rs:91
↓ 17 callersFunctioncron_sidecar_path
Cron jobs are session-scoped by default, parallel to dynamic trigger sidecars.
crates/coding-agent/src/session/mod.rs:30
↓ 17 callersMethoddisplay
(&self)
crates/coding-agent/src/ui/kernel.rs:59
↓ 17 callersMethodread
(&self, params: &Value)
crates/coding-agent/src/tools/memory.rs:174
↓ 17 callersMethodremove
(&mut self, provider: &str)
crates/coding-agent/src/auth.rs:121
↓ 17 callersFunctionstring_field
(data: &serde_json::Value, name: &str)
crates/coding-agent/src/commands.rs:3043
↓ 16 callersMethodaccept
()
workers/fefe-hub/src/workers-shim.d.ts:11
↓ 16 callersMethodapply
(&mut self, update: FeedUpdate)
crates/coding-agent/src/ui/feed.rs:346
↓ 16 callersMethodas_string
(&self)
crates/coding-agent/src/spinner.rs:68
↓ 16 callersFunctionexecute
( tool: &InstallSkillTool, params: Value, )
crates/coding-agent/src/tools/install_skill.rs:889
↓ 16 callersMethodfetch
(request: Request)
workers/fefe-hub/src/workers-shim.d.ts:23
↓ 16 callersFunctionmake_trigger
(idempotency: &str, trace: &str, policy: ReplacementPolicy)
crates/agent/src/harness/trigger_runtime.rs:305
↓ 16 callersMethodpush_user
Push a user prompt block. Called directly by the loop on submit / on resume replay.
crates/coding-agent/src/ui/feed.rs:183
↓ 16 callersMethodsystem_line
(&self, text: &str)
crates/coding-agent/src/tui.rs:86
↓ 15 callersFunctionfaux_model
()
crates/agent/tests/agent_loop.rs:14
↓ 15 callersFunctionfaux_stream_fn_with
(responses: Arc<Mutex<Vec<AssistantMessage>>>)
crates/agent/tests/agent_loop.rs:49
↓ 15 callersFunctionjson
(body: unknown, status = 200)
workers/fefe-hub/src/relay.ts:362
↓ 15 callersFunctionload_skills
Load skills from one or more directories. Missing directories are silently skipped (they emit no diagnostic). Other filesystem failures DO emit diagno
crates/agent/src/harness/skills.rs:45
↓ 15 callersMethodtext
(&self)
crates/coding-agent/tests/commands.rs:281
↓ 15 callersFunctiontrigger_sidecar_path
Dynamic trigger rules are session-scoped sidecars next to the jsonl transcript.
crates/coding-agent/src/session/mod.rs:25
↓ 14 callersMethodadd_job
(&self, schedule: &str, action: &str)
crates/coding-agent/src/triggers/cron.rs:113
↓ 14 callersFunctionmessage_update
(ev: AssistantMessageEvent, partial: AssistantMessage)
crates/coding-agent/tests/tui_render_e2e.rs:39
↓ 14 callersMethodrender
(&mut self, frame: &mut ratatui::Frame)
crates/coding-agent/src/ui/mod.rs:1465
↓ 14 callersMethodrender_harness_event
(&self, event: &HarnessEvent, out: &mut dyn std::io::Write)
crates/coding-agent/src/tui.rs:213
↓ 13 callersFunctionbuffer_text
(buf: &Buffer)
crates/coding-agent/src/ui/mod.rs:2385
↓ 13 callersFunctionbuild_test_harness
Build a harness whose `reload_skills_from_disk` rescans a single test directory. Returns the harness handle, the cell to plug into the tool, and the t
crates/coding-agent/src/tools/install_skill.rs:850
↓ 13 callersMethodclear
(&mut self)
crates/coding-agent/src/ui/feed.rs:176
↓ 13 callersMethodemit_harness_event
(&self, event: HarnessEvent)
crates/agent/src/harness/agent_harness.rs:1076
↓ 13 callersFunctionfixture
Helper: build a hook over an mpsc, run it on a task, return the sender side so the test can push notifications and a receiver to observe sunk triggers
crates/coding-agent/src/triggers/mcp_notification_hook.rs:402
↓ 13 callersFunctionregister_api_provider
(provider: Box<dyn ApiProvider>, source_id: Option<String>)
crates/ai/src/api_registry.rs:60
↓ 13 callersFunctionstream
( model: &Model, context: &Context, options: Option<&StreamOptions>, )
crates/ai/src/stream.rs:19
next →1–100 of 2,618, ranked by callers