Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/block/buzz
/ functions
Functions
12,195 in github.com/block/buzz
⨍
Functions
12,195
◇
Types & classes
799
↓ 13 callers
Function
hastImg
(src)
desktop/src/shared/ui/markdown.test.mjs:323
↓ 13 callers
Function
isRelayUnreachableError
(error: unknown)
desktop/src/shared/lib/relayError.ts:26
↓ 13 callers
Function
load_pack
Load a persona pack from a directory. 1. Read and parse `.plugin/plugin.json` 2. For each persona path in the manifest, read the `.persona.md` file 3
crates/buzz-persona/src/pack.rs:125
↓ 13 callers
Function
make_test_community
(pool: &PgPool)
crates/buzz-db/src/event.rs:1444
↓ 13 callers
Function
mk
(items: &[(&str, bool)])
crates/buzz-dev-mcp/src/todo.rs:254
↓ 13 callers
Function
msg
(over = {})
desktop/src/features/messages/lib/rowHeightEstimate.test.mjs:9
↓ 13 callers
Function
openGeneral
(page: import("@playwright/test").Page)
desktop/tests/e2e/custom-emoji.spec.ts:20
↓ 13 callers
Function
parseMutePayload
(json: unknown)
desktop/src/features/sidebar/lib/channelMutesStorage.ts:22
↓ 13 callers
Function
parseStarPayload
(json: unknown)
desktop/src/features/sidebar/lib/channelStarsStorage.ts:22
↓ 13 callers
Function
parseToolResultValue
(result: string)
desktop/src/features/agents/ui/agentSessionUtils.ts:185
↓ 13 callers
Function
parse_json_persona
(json_bytes: &[u8])
desktop/src-tauri/src/managed_agents/persona_card.rs:221
↓ 13 callers
Function
process_is_running
(pid: u32)
desktop/src-tauri/src/managed_agents/runtime.rs:75
↓ 13 callers
Method
pubkey
This session's ephemeral public key.
crates/buzz-core/src/pairing/session.rs:491
↓ 13 callers
Method
publishSections
(store: ChannelSectionStore)
desktop/src/features/sidebar/lib/channelSectionsSync.ts:83
↓ 13 callers
Method
query_events
Queries events matching the given filter parameters.
crates/buzz-db/src/lib.rs:484
↓ 13 callers
Function
reconcile_mcp_commands_in_file
(path: &Path)
desktop/src-tauri/src/migration.rs:991
↓ 13 callers
Method
recv_for_id
(&mut self, id: i64)
crates/buzz-agent/tests/golden_transcripts.rs:85
↓ 13 callers
Method
register
( &self, conn_id: Uuid, tx: mpsc::Sender<WsMessage>, cancel: CancellationToken
crates/buzz-relay/src/state.rs:67
↓ 13 callers
Function
register_conn
(state: &AppState, pubkey: Option<Vec<u8>>)
crates/buzz-relay/src/handlers/event.rs:1966
↓ 13 callers
Function
resolve_channel_filters
Resolve per-channel NIP-01 filters from config + discovered channels.
crates/buzz-acp/src/config.rs:1117
↓ 13 callers
Function
responses_body
( cfg: &Config, system_prompt: &str, history: &[HistoryItem], tools: &[ToolDef], effective
crates/buzz-agent/src/llm.rs:574
↓ 13 callers
Function
save_key_file
Atomically write the key to disk. Uses `atomic-write-file` which: 1. Writes to a temp file in the same directory 2. Calls fsync on the file 3. Renames
desktop/src-tauri/src/app_state.rs:550
↓ 13 callers
Function
setup_sync_layout
()
desktop/src-tauri/src/migration_tests.rs:69
↓ 13 callers
Function
three_pubkeys
Three real x-only pubkeys (valid for `PublicKey::from_hex`). Distinct, so we can label them clearly in tests.
crates/buzz-relay/src/handlers/req.rs:1492
↓ 13 callers
Function
uniformReadAt
(seconds)
desktop/src/features/messages/lib/unreadMarker.test.mjs:20
↓ 13 callers
Function
url_encode
Percent-encode a relay URL for use as a query parameter value. Uses `percent-encoding` crate's `NON_ALPHANUMERIC` set, which encodes everything excep
crates/buzz-core/src/pairing/qr.rs:228
↓ 13 callers
Function
waitForMockLiveSubscription
( page: import("@playwright/test").Page, channelName: string, )
desktop/tests/e2e/thread-unread.spec.ts:11
↓ 12 callers
Function
any_channel
()
crates/buzz-acp/src/filter.rs:487
↓ 12 callers
Function
applyEditTagOverlay
(originalTags, editTags)
desktop/src/features/messages/lib/applyEditTagOverlay.mjs:31
↓ 12 callers
Function
buildTranscriptDisplayBlocks
( items: TranscriptItem[], )
desktop/src/features/agents/ui/agentSessionTranscriptGrouping.ts:199
↓ 12 callers
Function
build_contact_list
Build a contact list replacement event (kind:3, NIP-02). Each contact is `(pubkey_hex, relay_url, petname)`. `pubkey_hex` must be exactly 64 hex char
crates/buzz-sdk/src/builders.rs:719
↓ 12 callers
Function
call_load_skill
Execute a `load_skill` call. Returns a `ToolResult` on success or a user-visible error result if the skill is not found or cannot be read.
crates/buzz-agent/src/builtin.rs:41
↓ 12 callers
Function
channelWindowKey
(channelId: string)
desktop/src/features/messages/lib/messageQueryKeys.ts:7
↓ 12 callers
Function
check_commit_hex
Validate a git commit-like hex id (commit, parent-commit, euc, merge-commit, applied-as-commit). Git object ids are full SHA-1 (40 hex chars) or SHA-2
crates/buzz-sdk/src/builders.rs:56
↓ 12 callers
Function
check_pubkey
Validate a hex pubkey is exactly 64 hex characters.
desktop/src-tauri/src/events.rs:130
↓ 12 callers
Function
cid
(u: u128)
crates/buzz-conformance/src/checker.rs:144
↓ 12 callers
Method
clear_session_cache
(&self, pubkey: &str)
desktop/src-tauri/src/app_state.rs:134
↓ 12 callers
Function
commandsMatch
(left: string, right: string)
desktop/src/features/agents/agentReuse.ts:22
↓ 12 callers
Method
confirm_sas
(Source) User confirmed the SAS codes match. Build the `sas-confirm` event to publish.
crates/buzz-core/src/pairing/session.rs:200
↓ 12 callers
Function
create_test_channel
Create a real channel in the DB via REST so the relay accepts events for it.
crates/buzz-test-client/tests/e2e_nostr_interop.rs:44
↓ 12 callers
Function
derive_session_id
Derive the session ID from the session secret. ```text session_id = HKDF-SHA256(IKM=session_secret, salt=[], info="nostr-pair-session-id", L=32) ```
crates/buzz-core/src/pairing/crypto.rs:54
↓ 12 callers
Function
emitMockLiveEvent
(channelId: string, event: RelayEvent)
desktop/src/testing/e2eBridge.ts:3177
↓ 12 callers
Function
ev
(tags, createdAt = 1)
desktop/src/shared/api/customEmoji.test.mjs:12
↓ 12 callers
Function
formatTranscriptTimestampTitle
( isoTimestamp: string, )
desktop/src/features/agents/ui/agentSessionUtils.ts:261
↓ 12 callers
Function
friendlyAgentLastError
( raw: string | null, )
desktop/src/features/agents/lib/friendlyAgentLastError.ts:40
↓ 12 callers
Function
getAngle
(circle: AvatarBadgeCircle, point: Point)
desktop/src/features/profile/ui/MaskedAvatarBadgeFrame.tsx:115
↓ 12 callers
Function
getMockMessageStore
(channelId: string)
desktop/src/testing/e2eBridge.ts:2886
↓ 12 callers
Method
handle_payload
(Target) Process the payload event from the source. Only one payload is accepted per session — after this call the state advances to [`SessionState::
crates/buzz-core/src/pairing/session.rs:388
↓ 12 callers
Method
handle_sas_confirm
(Target) Process the `sas-confirm` event from the source. Verifies the transcript hash and returns the SAS code for the user to visually confirm. The
crates/buzz-core/src/pairing/session.rs:329
↓ 12 callers
Method
is_member_cached
Check channel membership with a 10-second cache. Falls back to DB on miss.
crates/buzz-relay/src/state.rs:477
↓ 12 callers
Function
keys_from_hex
(s: &str)
crates/buzz-core/src/engram.rs:611
↓ 12 callers
Function
makeChannel
(overrides = {})
desktop/src/features/onboarding/welcome.test.mjs:15
↓ 12 callers
Function
makeEvent
(tags = [], overrides = {})
desktop/src/features/notifications/lib/shouldNotifyChannelMutes.test.mjs:15
↓ 12 callers
Function
makeStore
(overrides = {})
desktop/src/features/sidebar/lib/channelSectionsStorage.test.mjs:25
↓ 12 callers
Function
make_engram
(tags: &[&[&str]], content: &str)
crates/buzz-relay/src/handlers/ingest.rs:2533
↓ 12 callers
Function
make_event
Build a minimal test event with the given kind and content.
crates/buzz-acp/src/filter.rs:469
↓ 12 callers
Function
make_event_with_tags
(kind: u32, content: &str, tags: &[&[&str]])
crates/buzz-relay/src/handlers/ingest.rs:2503
↓ 12 callers
Function
make_nip98_event
( keys: &Keys, url: &str, method: &str, payload_hex: Option<&str>, cre
crates/buzz-auth/src/nip98.rs:163
↓ 12 callers
Function
make_persona
(tags: &[&[&str]])
crates/buzz-relay/src/handlers/ingest.rs:2871
↓ 12 callers
Function
make_request
()
crates/buzz-relay/src/api/git/policy.rs:425
↓ 12 callers
Function
nest_dir
Returns the nest root path (`~/.buzz` for prod, `~/.buzz-dev` for dev), or `None` if the home directory cannot be resolved. If [`init_nest_dir`] has
desktop/src-tauri/src/managed_agents/nest.rs:99
↓ 12 callers
Function
new_entry
(community_id: Uuid, action: AuditAction)
crates/buzz-audit/src/service.rs:285
↓ 12 callers
Function
normalizeOptionalText
(value: string | null | undefined)
desktop/src/features/agents/ui/personaImportPlan.ts:28
↓ 12 callers
Function
normalizeShortcode
(raw: string)
desktop/src/shared/api/customEmoji.ts:51
↓ 12 callers
Function
parseNotBefore
(raw: string)
desktop/src/features/reminders/lib/reminderService.ts:46
↓ 12 callers
Function
persona_d_tag
Derive the d-tag (persona slug) from a `PersonaRecord`. Uses `source_team_persona_slug` if available, otherwise falls back to `id`, then normalizes t
desktop/src-tauri/src/managed_agents/persona_events.rs:51
↓ 12 callers
Method
requeue_as_cancelled
Requeue a cancelled batch so its events appear as `cancelled_events` in the next `FlushBatch` for this channel (enabling the annotated merged-prompt f
crates/buzz-acp/src/queue.rs:498
↓ 12 callers
Function
setLocalStorageItemWithRecovery
( key: string, value: string, )
desktop/src/shared/lib/localStorageQuota.ts:54
↓ 12 callers
Function
spawn_fake_llm
(responses: Vec<Value>)
crates/buzz-agent/tests/golden_transcripts.rs:110
↓ 12 callers
Function
start
()
desktop/src/shared/ui/SpoilerParticles.tsx:138
↓ 12 callers
Function
storageKey
(relayUrl: string, pubkey: string)
desktop/src/features/profile/lib/selfProfileStorage.ts:63
↓ 12 callers
Function
stripImetaMediaLines
( body: string, imetaMedia: ReadonlyArray<ImetaMedia>, )
desktop/src/features/messages/lib/imetaMediaMarkdown.ts:153
↓ 12 callers
Method
subscribeLive
( filter: RelaySubscriptionFilter, onEvent: (event: RelayEvent) => void, )
desktop/src/shared/api/relayClientSession.ts:423
↓ 12 callers
Method
summary
Human-readable summary (no secrets).
crates/buzz-acp/src/config.rs:991
↓ 12 callers
Function
sync_files
(canonical: &Path, worktree: &Path)
desktop/src-tauri/src/migration_tests.rs:102
↓ 12 callers
Function
sync_managed_agent_processes
( records: &mut [ManagedAgentRecord], runtimes: &mut HashMap<String, ManagedAgentProcess>, instanc
desktop/src-tauri/src/managed_agents/runtime.rs:1345
↓ 12 callers
Function
test_state
()
crates/buzz-relay/src/handlers/event.rs:1320
↓ 12 callers
Function
unreadTimestamp
()
desktop/tests/e2e/thread-unread.spec.ts:85
↓ 12 callers
Function
validate_engram_envelope
Validate the public envelope of a NIP-AE `kind:30174` event before it reaches NIP-33 parameterized replacement. We deliberately do this here (not in
crates/buzz-relay/src/handlers/ingest.rs:894
↓ 12 callers
Function
validate_repo_id
Validate a git repo identifier: `[a-zA-Z0-9._-]{1,64}`, no leading dots, no `..`.
crates/buzz-cli/src/validate.rs:39
↓ 12 callers
Function
write_personas_json
(dir: &Path, records: &serde_json::Value)
desktop/src-tauri/src/migration_test_support.rs:40
↓ 11 callers
Function
assertMatchesTextBetween
(d, p)
desktop/src/features/messages/lib/plainTextProjection.test.mjs:35
↓ 11 callers
Function
build_event
Build a signed `kind:30174` event for a given body. `created_at` is the timestamp to sign — callers MUST supply a value respecting the *Writing* mono
crates/buzz-core/src/engram.rs:435
↓ 11 callers
Function
build_ref_state_event
Build & sign a kind:30618 event from the manifest's ref state. Signed with `relay_keys` — the relay is the authoritative source of ref state for repo
crates/buzz-relay/src/api/git/manifest_event.rs:70
↓ 11 callers
Function
candidate
(overrides = {})
desktop/src/features/messages/lib/mentionRanking.test.mjs:9
↓ 11 callers
Function
cfg_responses
()
crates/buzz-agent/src/llm.rs:1226
↓ 11 callers
Function
collectRuntimeWarnings
( personas: readonly { runtime: string | null }[], runtimes: readonly AcpRuntime[], fallbackRuntime: Acp
desktop/src/features/agents/lib/resolvePersonaRuntime.ts:97
↓ 11 callers
Function
computeThreadReplyUnreadCounts
(params: { timelineMessages: TimelineMessage[]; subtreeReplyIds: Iterable<string>; visibleReplyIds: Iter
desktop/src/features/channels/lib/threadReplyUnreadCounts.ts:28
↓ 11 callers
Function
effective_agent_command
Resolve the agent command (harness) for a spawn/deploy/summary. The linked persona wins so persona harness edits propagate on the next spawn. An expli
desktop/src-tauri/src/managed_agents/discovery.rs:296
↓ 11 callers
Function
emitMockMessage
( page: import("@playwright/test").Page, channelName: string, content: string, options?: { parentE
desktop/tests/e2e/thread-reply-anchor-roleplay.spec.ts:37
↓ 11 callers
Function
emojiDisplayName
(emoji: string)
desktop/src/shared/lib/emojiName.ts:28
↓ 11 callers
Function
encode_persona_json
( display_name: &str, system_prompt: &str, avatar_url: Option<&str>, runtime: Option<&str>,
desktop/src-tauri/src/managed_agents/persona_card.rs:238
↓ 11 callers
Function
error_result
(msg: &str)
crates/buzz-agent/src/builtin.rs:232
↓ 11 callers
Function
event
({ id, kind = 9, createdAt, tags, content = "" })
desktop/src/features/messages/lib/messageQueryKeys.test.mjs:12
↓ 11 callers
Function
event
(tags: serde_json::Value)
crates/buzz-cli/src/commands/channels.rs:676
↓ 11 callers
Function
extractSupportedLinkPreviews
( content: string, )
desktop/src/shared/lib/linkPreview.ts:475
↓ 11 callers
Function
extract_nostr_uris
Extract pubkeys from NIP-27 `nostr:npub1…` URIs in content. Scans `content` (which should already have code regions stripped via [`strip_code_regions
crates/buzz-sdk/src/mentions.rs:353
↓ 11 callers
Function
filter_fanout_by_access
Drop recipients without access before fan-out on a private channel. Open and channel-less events skip membership filtering (open channel-scoped event
crates/buzz-relay/src/handlers/event.rs:114
↓ 11 callers
Function
fmt
(value: float)
perf/relay_bus_scaling.py:93
↓ 11 callers
Function
formatElapsed
(ms: number)
desktop/src/features/agents/ui/agentSessionUtils.ts:299
← previous
next →
401–500 of 12,195, ranked by callers