MCPcopy Create free account

hub / github.com/brightbeanxyz/brightbean-studio / functions

Functions3,156 in github.com/brightbeanxyz/brightbean-studio

↓ 2 callersFunction_e
(t,e,n,r,o)
static/js/htmx.min.js:1
↓ 2 callersFunction_enabled_accounts
(workspace)
apps/analytics/views.py:41
↓ 2 callersFunction_ensure_entry
Return the post's QueueEntry, creating it (appended) if absent.
apps/calendar/services.py:169
↓ 2 callersMethod_expire
(self, token)
apps/client_portal/tests.py:33
↓ 2 callersFunction_extract_atom_link
(entry)
apps/composer/views.py:3453
↓ 2 callersMethod_fail_permanently
Mark a post FAILED with no further retries.
apps/publisher/engine.py:527
↓ 2 callersFunction_finalize_local_subscription
Write the IntelligenceSubscription row + redirect. Handles the api_key_minted=False replay case by calling /rotate-key if the local row has n
apps/intelligence/views.py:820
↓ 2 callersFunction_first_media_preview
First attachment's preview: {"url", "kind"} where kind is "image" or "video". Prefers the asset's generated thumbnail (always an image). Falls ba
apps/analytics/services.py:693
↓ 2 callersMethod_get_account_id
Return the account ID from credentials or by listing accounts.
providers/google_business.py:163
↓ 2 callersFunction_get_account_scope
Return the validated ``account_scope`` POST value, or ``None`` when unscoped. The hidden input is server-rendered from a UUID-validated ``?accoun
apps/composer/views.py:90
↓ 2 callersFunction_get_calendar_slot_occurrences
Return PostingSlot occurrences grouped by display date/hour. PostingSlot times are defined in the workspace timezone. Convert concrete occurr
apps/calendar/views.py:214
↓ 2 callersFunction_get_filtered_posts
Apply calendar filters from query params.
apps/calendar/views.py:111
↓ 2 callersMethod_get_ig_user_id
Resolve the Instagram Business Account ID from the connected Facebook Page. The IG user ID can be stored in credentials to avoid an e
providers/instagram.py:547
↓ 2 callersFunction_get_pending_client_invites
Get pending invitations that assign CLIENT role to this workspace.
apps/client_portal/views_admin.py:219
↓ 2 callersFunction_get_tab_context
Build the template context for one publish tab partial. Used both by `calendar_view` (initial server render) and the four `publish_tab_*` HTM
apps/calendar/views.py:416
↓ 2 callersFunction_get_valid_channel_filter
Return a UUID-safe channel filter value, or blank when malformed.
apps/calendar/views.py:100
↓ 2 callersFunction_grantable_permissions
Return ``[(perm_key, label), ...]`` of permissions the user can grant in ``workspace``. ``include_hidden`` keeps issuance-hidden permissions
apps/api_keys/views.py:271
↓ 2 callersMethod_handle_response
(resp: httpx.Response)
apps/intelligence/services/client.py:361
↓ 2 callersFunction_hmac_hex
(random_part: str)
apps/api_keys/services.py:81
↓ 2 callersFunction_idea_columns
Build Kanban columns from IdeaGroup for a workspace, optionally filtered by tag.
apps/composer/views.py:2204
↓ 2 callersMethod_image_asset
(self)
apps/approvals/test_workflow.py:365
↓ 2 callersFunction_incr_counter
Atomic increment with TTL bootstrap.
apps/oauth_server/views.py:65
↓ 2 callersMethod_init_video_publish
POST to /post/publish/video/init/ and return the parsed body. Permanent TikTok error codes are re-raised as non-retryable PublishErro
providers/tiktok.py:361
↓ 2 callersMethod_invited_email
(self)
apps/accounts/views_signup.py:10
↓ 2 callersFunction_issued_key
(workspace, user, social_accounts)
apps/api/tests/test_account_capabilities.py:85
↓ 2 callersMethod_latest
(self)
apps/composer/tests/test_proposed_publish_at.py:102
↓ 2 callersFunction_latest_post_stats
For each post, return ``{metric_key: latest value}``.
apps/analytics/services.py:631
↓ 2 callersFunction_log_mcp_audit
Translate an MCP method into a coarse audit-log action label. For ``tools/call`` we drill in to ``params.name`` so a forensic review can tell
apps/mcp/transport.py:259
↓ 2 callersFunction_make_lookup
(random_part: str)
apps/api_keys/services.py:89
↓ 2 callersFunction_make_workspace
()
apps/composer/tests/test_proposed_publish_at.py:29
↓ 2 callersFunction_media_kind
Best-effort media-kind label for the table filter and detail header.
apps/analytics/services.py:674
↓ 2 callersFunction_meta_receive
Validate the HMAC signature and dispatch incoming Meta webhook events. A delivery is signed by exactly one Meta app. We accept the request only i
apps/inbox/webhooks.py:64
↓ 2 callersFunction_meta_verify
Handle Meta webhook verification handshake. Meta hits this endpoint with hub.mode=subscribe + hub.verify_token + hub.challenge. We compare th
apps/inbox/webhooks.py:27
↓ 2 callersFunction_missing_slot_response
Idempotent no-op response for a slot that is already gone. Reached on a stale page, a concurrent delete, or a double-click. The workspace-sco
apps/calendar/views.py:60
↓ 2 callersFunction_month_view
Render month view calendar grid.
apps/calendar/views.py:800
↓ 2 callersFunction_needs_empty_follower_count_refresh
(account)
apps/analytics/tasks.py:386
↓ 2 callersFunction_next_available_slot
First upcoming PostingSlot datetime not already occupied, or ``None``. ``None`` means every slot within the lookahead horizon (``_next_slot_datet
apps/calendar/services.py:127
↓ 2 callersFunction_normalize_mastodon_instance_url
Normalize user-supplied Mastodon instance input to `scheme://host[:port]`. Accepts: bare hosts (`mastodon.social`), URLs with paths (`https://mas
apps/social_accounts/views.py:135
↓ 2 callersMethod_notify_new_message
Send notification for a new inbox message.
apps/inbox/tasks.py:124
↓ 2 callersFunction_override_or
Pick the per-key override rate or fall back to the default. ``is not None`` (rather than ``if override:``) so that an explicit ``0`` value is
apps/api/limits.py:205
↓ 2 callersFunction_parse_days_filter
Parse the All-posts table's date filter: 7|30|90 or "all".
apps/analytics/views.py:60
↓ 2 callersFunction_parse_expires_at
Parse the optional ``expires_at`` form value. Accepts either a full ISO timestamp or a date-only value from ``<input type="date">`` (treated
apps/api_keys/views.py:308
↓ 2 callersFunction_parse_feed_document
Parse RSS/Atom document into metadata and raw entries. Uses safe_xml_fromstring to bound size and reject DTD/entity-bearing payloads (billion
apps/composer/views.py:3505
↓ 2 callersFunction_parse_media_tags
Validate an optional ``tags`` arg as a list of strings.
apps/mcp/handlers.py:98
↓ 2 callersFunction_parse_page
Coerce ``?page=`` into a positive int, defaulting to 1 on bad input. Without this, a request like ``?page=abc`` raises ValueError and 500s be
apps/analytics/views.py:71
↓ 2 callersFunction_parse_rate_num
(rate: str)
apps/api/limits.py:284
↓ 2 callersFunction_parse_tags_csv
(value: str | None)
apps/api/routers/media.py:65
↓ 2 callersFunction_post_metrics_to_dict
Flatten ``providers.types.PostMetrics`` into ``{metric_key: value}``. Uses per-platform overrides so each provider's idiosyncratic field choices
apps/analytics/tasks.py:143
↓ 2 callersFunction_post_sparklines_with_freshness
Same as :func:`_post_sparklines` but also returns the max ``captured_at``. Used by :func:`post_detail` so the freshness side-channel (:func:`
apps/analytics/services.py:655
↓ 2 callersFunction_post_summed_series_for_metric
Per-day deltas of cumulative post snapshots, summed across all posts. ``PostInsightsSnapshot.value`` stores the cumulative-lifetime count for
apps/analytics/services.py:122
↓ 2 callersMethod_post_with_note
(self, ws, user, sa, note="board-only context")
apps/mcp/tests/test_oauth_auth.py:277
↓ 2 callersMethod_post_with_note
(self, workspace, user, social_account, note="eyes only")
apps/api/tests/test_routers.py:289
↓ 2 callersMethod_pre_auth_reject
Pre-auth defenses shared by every bearer (API key OR OAuth token). Returns True if the request must be refused — the caller returns `
apps/api/auth.py:97
↓ 2 callersFunction_prepare_idea_for_kanban
Attach computed media/tag fields used by Kanban templates.
apps/composer/views.py:2307
↓ 2 callersMethod_process_retries
Process platform posts that are due for retry.
apps/publisher/engine.py:561
↓ 2 callersFunction_process_stage
Process reminders for a specific approval stage.
apps/approvals/tasks.py:48
↓ 2 callersMethod_publish_container
(self, access_token: str, ig_user_id: str, container_id: str)
providers/instagram.py:396
↓ 2 callersMethod_publish_container
(self, access_token: str, container_id: str)
providers/instagram_login.py:393
↓ 2 callersMethod_published_entry
(self, position)
apps/calendar/tests.py:350
↓ 2 callersFunction_published_platform_post
(account)
apps/analytics/tests/test_services.py:30
↓ 2 callersMethod_queue_post
(self, slot_dt)
apps/calendar/tests.py:1195
↓ 2 callersFunction_record_usage
(*, organization, user, endpoint, status_code, credits_charged=0, latency_ms=None)
apps/intelligence/views.py:137
↓ 2 callersFunction_remove_deselected_platform_posts
Delete PlatformPosts the user deselected in the composer form. When the composer was opened scoped to a single account (``?account=`` → hidde
apps/composer/views.py:105
↓ 2 callersMethod_render
(self, tags)
apps/media_library/tests/test_models_and_filters.py:100
↓ 2 callersFunction_render_idea_card_fragment
Render a single Kanban idea card fragment.
apps/composer/views.py:2317
↓ 2 callersFunction_require_approval_gate_passes
Raise ``ValueError`` if the workspace forbids direct scheduling. Drafts are always allowed (they're explicit save-for-later); scheduling impl
apps/composer/services.py:356
↓ 2 callersFunction_resolve_account
Resolve the target account and verify it is in the key's allowlist. Defence against confused-deputy attacks: even though the bearer is valid,
apps/api/routers/posts.py:70
↓ 2 callersFunction_resolve_account_allowlist
Resolve posted ``social_account_ids`` to SocialAccounts in ``workspace``. Returns ``(accounts, error | None)``. A tampered POST can carry a non-U
apps/api_keys/views.py:345
↓ 2 callersFunction_resolve_channels
Determine which channels are enabled for this user + event_type. Checks user preferences first; falls back to DEFAULT_CHANNELS. Accepts an op
apps/notifications/engine.py:125
↓ 2 callersFunction_resolve_mastodon_extra_creds
Resolve Mastodon instance-specific credentials from the OAuth session. Returns a dict suitable for `_get_provider_for_platform(**extra_creds)`
apps/social_accounts/views.py:165
↓ 2 callersFunction_resolve_media_folder
Resolve an optional ``folder_id`` arg to a MediaFolder in the workspace's org. Shared by the upload tools so they scope folders identically.
apps/mcp/handlers.py:79
↓ 2 callersFunction_resolve_plan_slug
Return the org's active subscription plan_slug, or ``""``. Wrapped so import order can't cause cycles — Intelligence imports media_library mo
apps/media_library/quotas.py:55
↓ 2 callersFunction_resolve_queues_for_post
Resolve the Queues to add a post to. Returns a list of Queue objects - one per selected social account when no explicit ``queue_id`` is suppl
apps/composer/views.py:291
↓ 2 callersFunction_safe_fetch_feed
Fetch *url* with manual redirect handling, re-validating each hop with is_safe_url. Returns (response, final_url) on success or (None, None) on
apps/composer/views.py:3598
↓ 2 callersFunction_safe_file_url
Return ``file_field.url`` if the field is set, else ``""``. ``FileField.url`` raises ``ValueError`` when the field is blank, which happens fo
apps/api/schemas.py:409
↓ 2 callersFunction_seed_post_snapshots
Write a since-publish snapshot history for every post-level metric.
apps/api/tests/test_analytics_router.py:212
↓ 2 callersFunction_send_invite_email
Send the invite email for an invitation.
apps/members/services.py:367
↓ 2 callersFunction_series_for
Return ``2 * days`` values ending at ``end`` (older first). Missing days fill as 0.0 so the derive math has a contiguous series.
apps/analytics/services.py:77
↓ 2 callersFunction_setup
()
apps/composer/tests/test_create_post_media_ids.py:19
↓ 2 callersFunction_split
Return (current, previous) windows of ``days`` length, latest-last.
apps/analytics/derive.py:38
↓ 2 callersFunction_status_for_response
Pick the audit-log status code that reflects what actually happened. Codex review found that the previous code hardcoded ``200`` for every di
apps/mcp/transport.py:221
↓ 2 callersMethod_stream_cm
(self, *, status_code=200, content=b"jpeg-bytes", content_type="image/jpeg", content_length=None)
apps/composer/tests/test_unsplash.py:224
↓ 2 callersFunction_supports_post_fallback
Which metric keys can be derived by summing per-post deltas. Counts and minutes sum linearly. Account-only growth (subscribers, follows, foll
apps/analytics/services.py:105
↓ 2 callersMethod_sync_parent_published_at
Reflect the latest child published_at onto the parent Post. Status itself lives entirely on PlatformPost now (Post.status is a derive
apps/publisher/engine.py:605
↓ 2 callersFunction_sync_post_metrics
Fetch this post's current metrics and write today's snapshot rows.
apps/analytics/tasks.py:532
↓ 2 callersFunction_t
(e)
static/js/alpine.min.js:5
↓ 2 callersFunction_unavailable
(reason)
apps/composer/views.py:1821
↓ 2 callersMethod_upload_blob
Upload a blob to the PDS and return the blob reference.
providers/bluesky.py:337
↓ 2 callersMethod_upsert_message
Create or update an inbox message, deduplicating by platform_message_id.
apps/inbox/tasks.py:102
↓ 2 callersFunction_visible_assets_qs
Workspace-scoped assets plus org-shared (workspace_id IS NULL).
apps/api/routers/media.py:56
↓ 2 callersFunction_visible_media_qs
(api_key)
apps/mcp/handlers.py:553
↓ 2 callersFunction_week_view_data
Populate context with week view data (no rendering).
apps/calendar/views.py:807
↓ 2 callersFunction_write_account_snapshot
( account, metric_values: dict[str, float], on_date: dt_date, *, raw: dict | None = None,
apps/analytics/tasks.py:305
↓ 2 callersFunction_write_post_snapshot
( post, metric_values: dict[str, float], on_date: dt_date, *, raw: dict | None = None,
apps/analytics/tasks.py:329
↓ 2 callersFunction_youtube_account
(workspace, *, platform_id, needs_reconnect)
apps/analytics/tests/test_tasks.py:18
↓ 2 callersFunctionaccount_series_map
Return ``{metric_key: 2*days-long series}`` for every platform metric. Kept as a thin wrapper around :func:`account_analytics_bundle` for cal
apps/analytics/services.py:227
↓ 2 callersFunctionall_tools
Sorted catalog — sort is stable so ``tools/list`` is deterministic.
apps/mcp/tools.py:47
↓ 2 callersFunctionan
(e)
static/js/htmx.min.js:1
↓ 2 callersFunctionanalyze_sentiment
Analyze sentiment of text using keyword matching. Returns 'positive', 'negative', or 'neutral'.
apps/inbox/sentiment.py:60
↓ 2 callersFunctionat
(e)
static/js/htmx.min.js:1
← previousnext →501–600 of 3,156, ranked by callers