MCPcopy Create free account

hub / github.com/block/buzz / functions

Functions12,195 in github.com/block/buzz

↓ 8 callersMethodregister_scoped
Replaces any existing subscription with the same sub_id (NIP-01), scoped to the server-resolved community that owns the connection.
crates/buzz-relay/src/subscription.rs:69
↓ 8 callersFunctionreject
Increment the rejection counter with a bounded reason label.
crates/buzz-relay/src/handlers/event.rs:30
↓ 8 callersFunctionrelay_url
()
crates/buzz-test-client/tests/e2e_long_form.rs:28
↓ 8 callersFunctionrelay_url
()
crates/buzz-test-client/tests/e2e_event_reminder.rs:28
↓ 8 callersMethodrelease_topic
Release local interest in a scoped Redis event topic. When the last retain is released, unsubscribe is delayed by the configured debounce. If another
crates/buzz-pubsub/src/lib.rs:199
↓ 8 callersFunctionreplaceItem
(d: TranscriptDraft, id: string, updated: TranscriptItem)
desktop/src/features/agents/ui/agentSessionTranscript.ts:108
↓ 8 callersFunctionresolveDeepLinkTarget
( messages: readonly TimelineMessage[], targetMessageId: string | null | undefined, )
desktop/src/features/messages/lib/timelineSnapshot.ts:148
↓ 8 callersFunctionresolveEffectiveTimestamp
(args: { effectiveState: Map<string, number>; contextId: string; parentResolver: ContextParentResolver |
desktop/src/features/channels/readState/readStateManager.ts:86
↓ 8 callersFunctionresolveEventAuthorPubkey
(input: { pubkey: string; tags: string[][]; preferActorTag?: boolean; requireChannelTagForPTags?: bool
desktop/src/shared/lib/authors.ts:24
↓ 8 callersFunctionresolveManagedAgentAvatarUrl
( avatarUrl: string | null | undefined, upload: UploadMediaBytes = defaultUploadMediaBytes, fallbackAvat
desktop/src/features/agents/ui/managedAgentAvatar.ts:14
↓ 8 callersFunctionresolve_reply_anchor
Resolve the `--reply-to` anchor for a non-DM turn. Returns `Some(id)` only for human-facing turns (see [`turn_is_human_facing`]): - in a thread → the
crates/buzz-acp/src/queue.rs:1149
↓ 8 callersMethodretain_topic
Retain local interest in a scoped Redis event topic. The first retain for a topic asks the subscriber task to `SUBSCRIBE`. Additional retains only in
crates/buzz-pubsub/src/lib.rs:176
↓ 8 callersFunctionrootBadge
(messages, getReadAt, currentPubkey)
desktop/src/features/channels/lib/threadBadgeCollapseOnOpen.test.mjs:38
↓ 8 callersFunctionrow_to_stored_event
(row: sqlx::postgres::PgRow)
crates/buzz-db/src/event.rs:510
↓ 8 callersFunctionrun
(state: &SharedState, p: ReadFileParams)
crates/buzz-dev-mcp/src/read_file.rs:23
↓ 8 callersFunctionrunPlugin
(tree, emoji = EMOJI)
desktop/src/shared/lib/remarkCustomEmoji.test.mjs:11
↓ 8 callersMethodsave
Persist a token to disk and the in-memory cell.
crates/buzz-agent/src/auth.rs:191
↓ 8 callersFunctionscopeByChannel
( items: readonly T[], channelId: string | null | undefined, )
desktop/src/features/agents/ui/agentSessionPanelLayout.ts:7
↓ 8 callersFunctionsession_info_update_msg
Build a `session/update` JSON-RPC notification carrying a `session_info_update` with the given `_meta.goose.activeRunId` value. Pass `None` to omit th
crates/buzz-acp/src/acp.rs:2598
↓ 8 callersMethodset_status
(&self, s: ModelStatus)
desktop/src-tauri/src/huddle/models.rs:439
↓ 8 callersFunctionsetup_db
()
crates/buzz-db/src/user.rs:405
↓ 8 callersFunctionshallowArrayEqual
(a, b)
desktop/src/shared/ui/markdown.test.mjs:8
↓ 8 callersFunctionshouldClearModelForRuntimeChange
( previousRuntime: string, nextRuntime: string, )
desktop/src/features/agents/ui/personaRuntimeModel.ts:1
↓ 8 callersFunctionshouldScheduleReconnect
(inputs: RelayReconnectInputs)
desktop/src/shared/api/relayReconnectPolicy.ts:32
↓ 8 callersFunctionsnapshotAnchor
(timeline: Locator)
desktop/tests/e2e/timeline-no-shift.spec.ts:45
↓ 8 callersFunctionspawn_capturing_llm
(responses: Vec<Value>)
crates/buzz-agent/tests/hints_integration.rs:20
↓ 8 callersFunctionsplit_sentences
Split text into sentence-sized chunks. Combines regex-based boundary detection with: - Abbreviation awareness (`Dr.`, `Mr.`, etc. don't split) - Digi
desktop/src-tauri/src/huddle/preprocessing.rs:41
↓ 8 callersFunctionstore_feed_event
( pool: &PgPool, community: CommunityId, kind: u32, content: &str, cha
crates/buzz-db/src/feed.rs:296
↓ 8 callersFunctionstring_value
(value: &serde_json::Value, key: &str)
desktop/src-tauri/src/mesh_llm/discovery.rs:164
↓ 8 callersFunctionstrip_code_regions
Remove fenced code blocks and inline code spans from content. Returns a copy of `content` with ` ```…``` ` blocks and `` `…` `` spans replaced by spa
crates/buzz-sdk/src/mentions.rs:244
↓ 8 callersFunctionsub_id
(name: &str)
crates/buzz-test-client/tests/e2e_long_form.rs:32
↓ 8 callersMethodsubscribeToReconnects
(listener: () => void)
desktop/src/shared/api/relayClientSession.ts:449
↓ 8 callersFunctionsyncMockRelayAgentsFromManagedAgents
()
desktop/src/testing/e2eBridge.ts:2565
↓ 8 callersFunctionteam_dir
Build the native-separator `<base>/agents/teams/<id>` string the way production does (per-component `Path::join`), so test expectations match reconcil
desktop/src-tauri/src/migration_test_support.rs:8
↓ 8 callersFunctiontext
(value)
desktop/src/shared/lib/remarkCustomEmoji.test.mjs:19
↓ 8 callersFunctiontext
(value)
desktop/src/shared/ui/markdown.test.mjs:539
↓ 8 callersFunctiontrimContextsToBudget
( contexts: Record<string, number>, clientId: string, maxBytes: number, )
desktop/src/features/channels/readState/readStateManager.ts:255
↓ 8 callersFunctiontrim_optional
(value: Option<String>)
desktop/src-tauri/src/commands/personas/mod.rs:28
↓ 8 callersFunctionuniformReadAt
(seconds)
desktop/src/features/channels/lib/threadReplyUnreadCounts.test.mjs:31
↓ 8 callersFunctionuploadMediaBytes
( data: number[], filename?: string, /** Correlation id for `media-upload-progress` events from the Rust
desktop/src/shared/api/tauri.ts:887
↓ 8 callersFunctionuseChannelMembersQuery
( channelId: string | null, enabled = true, )
desktop/src/features/channels/hooks.ts:225
↓ 8 callersFunctionuseOpenDmMutation
()
desktop/src/features/channels/hooks.ts:164
↓ 8 callersFunctionuseSmoothCorners
( ref: React.RefObject<T | null>, options: SmoothCornersOptions = {}, )
desktop/src/shared/ui/smoothCorners.ts:405
↓ 8 callersMethodvalidate
Validate pre-commit invariants. Writers must call this before `canonical_bytes` → `put_manifest`. A manifest that hydrators reject (unsafe refname, m
crates/buzz-relay/src/api/git/manifest.rs:198
↓ 8 callersFunctionvalidate_content
Validate uploaded bytes for the **image** upload path. Checks magic bytes, MIME allowlist (images only), size, and pixel dimensions. Rejects `video/m
crates/buzz-media/src/validation.rs:172
↓ 8 callersFunctionvalidate_video_file
Validate an MP4 file on disk. Checks: - Container is MP4 (ftyp brand is not QuickTime `qt `) - First video track codec is `avc1` (H.264 only — rejec
crates/buzz-media/src/validation.rs:219
↓ 8 callersFunctionwaitForBadgeState
( page: import("@playwright/test").Page, expected: { state: string; count?: number }, )
desktop/tests/e2e/badge.spec.ts:49
↓ 8 callersFunctionwaitForMockLiveSubscription
( page: import("@playwright/test").Page, channelName: string, kind?: number, )
desktop/tests/e2e/mentions.spec.ts:110
↓ 8 callersFunctionwf_event
Build a signed kind:30620 workflow definition event with the given YAML content and d/h tags.
desktop/src-tauri/src/commands/workflows_tests.rs:11
↓ 8 callersFunctionworkspaceRailIndicators
(unread: WorkspaceUnreadState)
desktop/src/features/sidebar/ui/WorkspaceRail.tsx:36
↓ 8 callersFunctionwriteMessageSnapshot
( relayUrl: string, channelId: string, events: RelayEvent[], )
desktop/src/features/messages/lib/messageSnapshot.ts:124
↓ 7 callersFunctionanimationsFor
( config: PartTimings, duration: string, repeatCount: string, )
desktop/src/shared/ui/buzz-logo/BuzzLogoAnimation.tsx:380
↓ 7 callersFunctionapplyOptimisticReaction
( reactions: TimelineReaction[], emoji: string, remove: boolean, emojiUrl?: string, )
desktop/src/features/messages/ui/useReactionHandler.ts:26
↓ 7 callersFunctionapply_inbound_persona
Merge a parsed inbound persona into the local set: patch the matching record in place, or push it when none matches. The match key is `persona_d_tag`
desktop/src-tauri/src/commands/personas/mod.rs:701
↓ 7 callersFunctionblossom_auth_header
(event: &nostr::Event)
crates/buzz-test-client/tests/e2e_media_video.rs:43
↓ 7 callersFunctionbranches_only_manifest
()
crates/buzz-relay/src/api/git/transport.rs:1549
↓ 7 callersFunctionbuildCustomEmojiTags
( content: string, customEmoji: ReadonlyArray<CustomEmoji>, )
desktop/src/shared/lib/customEmojiTags.ts:22
↓ 7 callersFunctionbuildOutgoingMessage
( body: string, pendingImeta: ReadonlyArray<ImetaMedia>, spoileredMediaUrls: ReadonlySet<string> = new S
desktop/src/features/messages/lib/imetaMediaMarkdown.ts:272
↓ 7 callersFunctionbuild_descriptor
( config: &MediaConfig, sha256: &str, ext: &str, mime: &str, size: u64, meta: Option<&
crates/buzz-media/src/upload.rs:431
↓ 7 callersFunctionbuild_envelope
Build the canonical JSON envelope (compact, deterministic field order). NIP-GS requires byte-exact canonical form for verification: field order is `v
crates/git-sign-nostr/src/lib.rs:924
↓ 7 callersFunctionbuild_git_auth_config
(state: &AppState)
desktop/src-tauri/src/commands/project_git_exec.rs:122
↓ 7 callersFunctionbuild_git_pull_request
Build a git pull-request event (kind:1618, NIP-34). `content` is the markdown PR description.
crates/buzz-sdk/src/builders.rs:1266
↓ 7 callersFunctionbuild_mcp_servers
(config: &Config)
crates/buzz-acp/src/lib.rs:3311
↓ 7 callersFunctionbuild_mp4_bytes
Construct a minimal but parseable MP4 byte stream. Layout (fast-start): ftyp | moov | mdat Layout (non-fast-start): ftyp | mdat | moov The moov cont
crates/buzz-media/src/validation.rs:596
↓ 7 callersFunctionbuild_respond_to_env
Pure decision function for the inbound author gate env vars. Returns the env vars to **set** and the env vars to **remove**. Removal is belt-and-susp
desktop/src-tauri/src/managed_agents/runtime.rs:1589
↓ 7 callersFunctionbuild_test_mp4
Build a minimal but structurally valid fast-start MP4 (H.264, 1s, 320×240). Layout: ftyp | moov(mvhd + trak(tkhd + mdia(mdhd + hdlr + minf(vmhd + din
crates/buzz-test-client/tests/e2e_media_video.rs:54
↓ 7 callersFunctioncanSubmitPersonaDialog
(args: { displayName: string; isPending: boolean; })
desktop/src/features/agents/ui/personaDialogState.ts:27
↓ 7 callersFunctioncheck_nip98_replay_with_guard
( replay_guard: &dyn Nip98ReplayGuard, tenant: &TenantContext, event_id_bytes: [u8; 32], )
crates/buzz-relay/src/api/bridge.rs:87
↓ 7 callersFunctionclaim_scheduled_workflow_fire
Claim a scheduled workflow fire for an authoritative schedule instant. Returns `Some` only for the first pod that claims `(community_id, workflow_id,
crates/buzz-db/src/workflow.rs:494
↓ 7 callersFunctionclassifyTool
( input: ToolClassificationInput, )
desktop/src/features/agents/ui/agentSessionToolClassifier.ts:110
↓ 7 callersFunctioncoalesce
(candidates, options = {})
desktop/src/features/agents/lib/agentAutocompleteEligibility.test.mjs:19
↓ 7 callersFunctioncompose_after
Compose `m_after` from the parent manifest and the new ref/pack state. Encodes `Inv_Closed` at the construction site: `m_after.packs ⊇ m_after.parent
crates/buzz-relay/src/api/git/cas_publish.rs:496
↓ 7 callersFunctionconversation_key
Derive the conversation key `K_c` for the agent ↔ owner pair (NIP-44 v2). `K_c` is symmetric: `derive(seckey_a, pubkey_o) == derive(seckey_o, pubkey_
crates/buzz-core/src/engram.rs:136
↓ 7 callersFunctioncounts
(messages, getReadAt, isNotified = notifiedAll, currentPubkey)
desktop/src/features/channels/lib/threadBadgeInvariants.test.mjs:47
↓ 7 callersFunctioncreateOptimisticMessage
( channelId: string, content: string, identity: Identity, currentMessages: RelayEvent[], mentionPubk
desktop/src/features/messages/hooks.ts:138
↓ 7 callersFunctioncreatePersona
(id, displayName)
desktop/src/features/agents/lib/useBotRecents.test.mjs:6
↓ 7 callersFunctioncreateWorkflow
( page: import("@playwright/test").Page, name: string, options?: { description?: string; enabled
desktop/tests/e2e/workflows.spec.ts:16
↓ 7 callersFunctioncursor
(item)
desktop/src/features/messages/lib/channelWindowStore.test.mjs:24
↓ 7 callersMethoddestroy
()
desktop/src/features/sidebar/lib/channelStarsSync.ts:198
↓ 7 callersFunctiondrop_channel_on_access_denied
Handle a CLOSED that denies access to a single channel: drop just that channel's subscription (the proven Unsubscribe cleanup) and keep the socket. R
crates/buzz-acp/src/relay.rs:2604
↓ 7 callersFunctiondummy_state
()
crates/buzz-relay/src/conformance/mod.rs:458
↓ 7 callersFunctionenforce_relay_membership
Enforce relay membership for a pubkey, with NIP-OA agent delegation fallback. Returns `Ok(Some(owner_pubkey))` when the agent is not a direct member
crates/buzz-relay/src/api/mod.rs:120
↓ 7 callersFunctionenv_or_process_value
(env: &BTreeMap<String, String>, key: &str)
desktop/src-tauri/src/commands/agent_models.rs:307
↓ 7 callersFunctionevaluate_filter
Evaluate a boolean filter expression against a `FilterContext`. - Caps expression length at [`MAX_EXPR_LEN`] bytes. - Acquires an owned permit from [
crates/buzz-acp/src/filter.rs:197
↓ 7 callersFunctionevent
(id, kind, overrides = {})
desktop/src/features/messages/lib/renderScopedReactions.test.mjs:20
↓ 7 callersFunctionevent_with_payload
(kind: &str, payload: serde_json::Value)
crates/buzz-acp/src/lib.rs:4087
↓ 7 callersFunctionexpectHomeView
(page: import("@playwright/test").Page)
desktop/tests/e2e/profile.spec.ts:10
↓ 7 callersFunctionfake_nip44_v2
Minimal syntactically-plausible NIP-44 v2 payload (99 zero-filled bytes with the 0x02 version prefix). Real ciphertexts are larger and have real MACs;
crates/buzz-relay/src/handlers/ingest.rs:2540
↓ 7 callersFunctionfilter_to_query_params
Convert a single NIP-01 filter into an [`EventQuery`] for the database. Each filter is queried independently so that per-filter `limit` and time wind
crates/buzz-relay/src/handlers/req.rs:835
↓ 7 callersFunctionfindReusableAgent
( agents: ManagedAgent[], channelMemberPubkeys: ReadonlySet<string>, input: { personaId?: string | n
desktop/src/features/agents/agentReuse.ts:81
↓ 7 callersFunctionfindReusablePersonaAgent
( agents: ManagedAgent[], personaId: string, channelMemberPubkeys: ReadonlySet<string>, )
desktop/src/features/agents/agentReuse.ts:49
↓ 7 callersFunctionformatMemberName
( member: ChannelMember, currentPubkey?: string, )
desktop/src/features/channels/lib/memberUtils.ts:15
↓ 7 callersFunctionformatWorkingTooltip
( summary: ActiveChannelTurnSummary, )
desktop/src/features/sidebar/ui/SidebarSection.tsx:106
↓ 7 callersFunctionframed_system_prompt
Frame the `session/new` `systemPrompt` so each present prompt carries its own header, keeping the base/persona boundary recoverable downstream. The h
crates/buzz-acp/src/pool.rs:943
↓ 7 callersFunctiongetActivityHeadline
(item: TranscriptItem)
desktop/src/features/agents/ui/agentSessionTranscriptPresentation.ts:30
↓ 7 callersFunctiongetImportButtonTone
({ isWindowFileDragOver, isImportDragOver, importErrorMessage, }: ImportButtonStateInput)
desktop/src/features/agents/ui/teamDialogImportState.ts:28
↓ 7 callersFunctiongetPresenceLabel
(status: PresenceStatus)
desktop/src/features/presence/lib/presence.ts:39
↓ 7 callersFunctiongetReplyParent
(note: UserNote)
desktop/src/features/pulse/lib/replies.ts:3
↓ 7 callersFunctiongetSettledBadgeState
(page: import("@playwright/test").Page)
desktop/tests/e2e/badge.spec.ts:63
↓ 7 callersFunctiongetThreadReplyIndentRem
(depth: number)
desktop/src/features/messages/lib/threadTreeLayout.ts:48
← previousnext →801–900 of 12,195, ranked by callers