MCPcopy Create free account

hub / github.com/aaronjmars/MiroShark / functions

Functions3,647 in github.com/aaronjmars/MiroShark

↓ 2 callersMethodrunning
Main message loop. Dispatches actions via getattr.
backend/wonderwall/simulations/base.py:153
↓ 2 callersFunctionsanitizeAskText
(raw)
frontend/src/utils/urlParams.js:44
↓ 2 callersFunctionsanitizeScenarioText
(raw)
frontend/src/utils/urlParams.js:41
↓ 2 callersFunctionsanitizeTemplateSlug
(raw)
frontend/src/utils/urlParams.js:47
↓ 2 callersFunctionsave_json
(name, data)
backend/scripts/test_pipeline_phase5_6.py:39
↓ 2 callersMethodsave_outline
Save report outline Called immediately after planning phase completes
backend/app/services/report_agent.py:3183
↓ 2 callersMethodsave_section
Save a single section Called immediately after each section is generated, enabling section-by-section output Args:
backend/app/services/report_agent.py:3197
↓ 2 callersFunctionsend_discord_payload
Synchronously POST one embed to ``url``. Returns ``(ok, message)``. Exposed so the "Send test event" path can surface the result immediately
backend/app/services/discord_notify.py:280
↓ 2 callersFunctionsend_email
Synchronously POST one message via SMTP. Never raises. Picks transport by port: ``465`` ⇒ ``SMTP_SSL`` (implicit TLS), anything else ⇒ ``SMTP
backend/app/services/email_notify.py:558
↓ 2 callersFunctionsend_push_notification
Fire push notifications to all subscribers of a simulation. Runs in a background daemon thread to avoid blocking the simulation monitor. Expi
backend/app/services/push_notification_service.py:142
↓ 2 callersFunctionsend_slack_payload
Synchronously POST one Block Kit message. Never raises.
backend/app/services/slack_notify.py:277
↓ 2 callersFunctionsend_test_webhook
Synchronously POST a sample payload to ``url`` and return the result. Used by the Settings ``Send test event`` button so the user gets immedia
backend/app/services/webhook_service.py:1153
↓ 2 callersFunctionset_active_locale
Activate ``locale`` for the current context. Returns a token to pass to :func:`reset_active_locale`. Prefer :func:`use_locale` (a context man
backend/app/utils/i18n.py:86
↓ 2 callersMethodset_ontology
Store the ontology JSON on the Graph node for the NER extractor to read.
backend/app/services/graph_builder.py:49
↓ 2 callersFunctionshould_log
(level: str)
backend/app/utils/event_logger.py:38
↓ 2 callersMethodsplit_text
Split text into chunks Args: text: Original text chunk_size: Chunk size overlap: Overlap size
backend/app/services/text_processor.py:18
↓ 2 callersMethodstop_simulation
Stop simulation
backend/app/services/simulation_runner.py:862
↓ 2 callersMethodstop_updater
Stop and remove updater for simulation
backend/app/services/graph_memory_updater.py:451
↓ 2 callersFunctionstripText
(raw, max)
frontend/src/utils/urlParams.js:33
↓ 2 callersFunctionstrip_mcp_call_tags
Remove ``<mcp_call .../>`` tags from agent output before it's posted. Complements :func:`mcp_agent_bridge.parse_tool_calls`: we parse and dis
backend/scripts/mcp_agent_injection.py:88
↓ 2 callersFunctionsurface_stats_path
Return the on-disk path to the surface-stats file for a sim. Pure path join — never touches the filesystem. ``sim_dir`` is expected to be an
backend/app/services/surface_stats.py:111
↓ 2 callersMethodto_custom_system_message
(self, user_info_template: TextPrompt)
backend/wonderwall/social_platform/config/user.py:31
↓ 2 callersMethodto_dict
(self)
backend/app/services/simulation_run_state.py:40
↓ 2 callersMethodto_dict
(self)
backend/wonderwall/social_agent/round_analyzer.py:41
↓ 2 callersMethodto_json
Convert to JSON string
backend/app/services/simulation_config_generator.py:216
↓ 2 callersMethodto_reddit_format
Convert to Reddit platform format
backend/app/services/wonderwall_profile_generator.py:73
↓ 2 callersMethodto_twitter_format
Convert to Twitter platform format
backend/app/services/wonderwall_profile_generator.py:101
↓ 2 callersMethodupdate_prices
Called by the Polymarket loop after each round to publish current prices.
backend/scripts/market_media_bridge.py:155
↓ 2 callersMethodupdate_status
Update environment status (includes PID to prevent stale overwrites)
backend/scripts/run_parallel_simulation.py:319
↓ 2 callersFunctionword_in_any_group
Return the group containing `word`, or None.
scripts/scan_i18n.py:218
↓ 2 callersMethodwrap_fn
Snapshot the caller's context; restore it in the wrapped fn. Use this when submitting to a ThreadPoolExecutor so that child threads i
backend/app/utils/trace_context.py:59
↓ 1 callersMethod__init__
(self, args=None, headers=None, raise_on=None)
backend/tests/test_unit_i18n.py:74
↓ 1 callersMethod__new__
Singleton pattern
backend/app/models/task.py:63
↓ 1 callersFunction_add_axes_and_grid
Draw the y-axis grid (0/25/50/75/100), the x-axis baseline, and the y-axis tick labels. The x-axis ticks (round numbers) are added by the cal
backend/app/services/chart_svg.py:188
↓ 1 callersFunction_add_legend
Render the three-swatch legend inside the top-right padding band. Placed inside the padded region (above the plot but below the title) so it
backend/app/services/chart_svg.py:310
↓ 1 callersFunction_add_lines
Draw the three belief polylines.
backend/app/services/chart_svg.py:290
↓ 1 callersFunction_add_title
Render the chart title near the top-left of the canvas.
backend/app/services/chart_svg.py:360
↓ 1 callersFunction_api_key
()
backend/app/services/oracle_seed.py:52
↓ 1 callersFunction_append_history
Append consumed events to the history file.
backend/scripts/director_events.py:167
↓ 1 callersFunction_append_log_entry
Append ``entry`` as a JSON line; trim to ``WEBHOOK_LOG_MAX_LINES``. Never raises — log writes are best-effort. If the log already has ``WEBHO
backend/app/services/webhook_service.py:330
↓ 1 callersFunction_apply_preset
Mutate Config in-place to match the named preset.
backend/app/api/settings.py:150
↓ 1 callersFunction_ask_cache_get
(key: str)
backend/app/api/simulation.py:656
↓ 1 callersFunction_ask_cache_put
(key: str, value: dict)
backend/app/api/simulation.py:660
↓ 1 callersFunction_ask_clean_result
(payload, question: str)
backend/app/api/simulation.py:667
↓ 1 callersFunction_ask_rate_limited
(client_ip: str)
backend/app/api/simulation.py:647
↓ 1 callersFunction_assertion_name
(simulation_id: str)
backend/app/services/dkg_publisher.py:118
↓ 1 callersMethod_assign_initial_post_agents
Assign suitable publisher Agents to initial posts Matches the most appropriate agent_id based on each post's poster_type
backend/app/services/simulation_config_generator.py:751
↓ 1 callersFunction_atomic_write
Write ``payload`` to ``path`` atomically. A ``tempfile.NamedTemporaryFile`` in the same directory plus ``os.replace`` so the canonical file i
backend/app/services/surface_stats.py:161
↓ 1 callersFunction_bridge_tweet
Single-line bridge between the head and tail inflections when the thread would otherwise exceed ``MAX_THREAD_TWEETS``.
backend/app/services/thread_formatter.py:320
↓ 1 callersFunction_broadcast_js
In-page poller. Pure vanilla JS — no framework dependency.
backend/app/services/watch_renderer.py:422
↓ 1 callersFunction_build_agent_entry
Compose one agent's roster entry from its profile dict + belief map. Returns ``None`` for profiles missing a usable ``user_id`` so the caller
backend/app/services/agent_export.py:280
↓ 1 callersFunction_build_agent_trace
Build a per-round trace of an agent's simulation activity from action JSONL logs. Returns: { 'rounds': {round_num: {'pos
backend/app/api/simulation.py:9984
↓ 1 callersFunction_build_belief_chart_cell
()
backend/app/services/notebook_export.py:312
↓ 1 callersFunction_build_citation_key
Return a BibTeX-safe citation key for ``simulation_id``. Stable across re-renders: same input → same key. Missing / empty input degrades to `
backend/app/services/bibtex_service.py:75
↓ 1 callersFunction_build_config_snippets
Pre-render copy-pasteable config blocks for each supported MCP client. Each entry has: - label: human-readable client name - file:
backend/app/api/mcp.py:120
↓ 1 callersFunction_build_consensus_cell
()
backend/app/services/notebook_export.py:334
↓ 1 callersMethod_build_context
Build LLM context, truncated to max length
backend/app/services/simulation_config_generator.py:435
↓ 1 callersFunction_build_demographics
Optional demographics suffix for Reddit personas.
backend/wonderwall/simulations/social_media/prompts.py:47
↓ 1 callersMethod_build_entity_context
Build complete context information for an entity Includes: 1. Edge information (facts) of the entity itself 2. Detai
backend/app/services/wonderwall_profile_generator.py:523
↓ 1 callersFunction_build_fonts
()
backend/app/services/replay_gif.py:414
↓ 1 callersFunction_build_footer_cell
( sim_id: str, reproduce_url: Optional[str], trajectory_sha256: str, schema_version: str, )
backend/app/services/notebook_export.py:385
↓ 1 callersMethod_build_group_persona_prompt
Build detailed persona prompt for group/institutional entities
backend/app/services/wonderwall_profile_generator.py:836
↓ 1 callersFunction_build_header_cell
( sim_id: str, scenario: str, agent_count: int, total_rounds: int, platforms_summary: str,
backend/app/services/notebook_export.py:230
↓ 1 callersFunction_build_imports_cell
()
backend/app/services/notebook_export.py:281
↓ 1 callersMethod_build_individual_persona_prompt
Build detailed persona prompt for individual entities
backend/app/services/wonderwall_profile_generator.py:773
↓ 1 callersFunction_build_lineage
Compose the ``lineage`` subobject describing the sim's parentage. Three cases: * ``parent_simulation_id`` unset → ``kind = "original"``,
backend/app/services/repro_export.py:189
↓ 1 callersFunction_build_load_cell
(csv_text: str)
backend/app/services/notebook_export.py:296
↓ 1 callersFunction_build_metrics
(summary: dict)
backend/app/services/share_card.py:443
↓ 1 callersFunction_build_platforms
Pull the platform-toggle subset out of a state dict.
backend/app/services/repro_export.py:132
↓ 1 callersMethod_build_posts_seen_from_actions
Build posts_seen per agent from the round's actual actions. An agent "sees" a post if: 1. The post was created by someone they follow
backend/wonderwall/social_agent/round_analyzer.py:409
↓ 1 callersMethod_build_prompt
Convert OpenAI-style messages to a single prompt string.
backend/app/utils/claude_code_client.py:58
↓ 1 callersFunction_build_quality_cell
()
backend/app/services/notebook_export.py:363
↓ 1 callersFunction_build_round
Project one trajectory snapshot into a transcript round entry.
backend/app/services/transcript.py:149
↓ 1 callersFunction_build_social_summary_for_traders
Build a concise social media summary for Polymarket traders' observation prompt. Extracts the most relevant posts/comments from the previous roun
backend/scripts/run_parallel_simulation.py:1160
↓ 1 callersFunction_build_summary_for_watch
Pull just enough state to seed the watch page bootstrap blob. Returns ``None`` when the simulation isn't found OR when it isn't public — both
backend/app/api/watch.py:39
↓ 1 callersFunction_build_surfaces
Collect every successfully-renderable share surface as raw bytes. Each entry is ``(filename, content_bytes)``. The list is returned in the ca
backend/app/services/archive_service.py:196
↓ 1 callersFunction_build_task_impl
()
backend/app/api/graph.py:414
↓ 1 callersFunction_build_time_config
Extract the time-config knobs that actually drive runtime cadence. The full LLM-generated config includes per-agent posting frequency + event
backend/app/services/repro_export.py:144
↓ 1 callersMethod_build_user_message
Build user message
backend/app/services/ontology_generator.py:70
↓ 1 callersFunction_cache_header
``Cache-Control`` value for the status probe. 30 seconds matches the cadence external status-page consumers (Upptime, BetterUptime, Statuspag
backend/app/api/status.py:41
↓ 1 callersFunction_candidate_sims
Filter to public sims with a usable id; sort for stable output. Sorting by ``simulation_id`` ascending (rather than ``created_at`` descending
backend/app/services/sitemap.py:162
↓ 1 callersMethod_check_all_platforms_completed
Check if all enabled platforms have completed simulation Determines if a platform is enabled by checking whether the corresp
backend/app/services/simulation_runner.py:775
↓ 1 callersFunction_check_ip
Raises ValueError if the IP is private/loopback/reserved.
backend/app/utils/url_fetcher.py:33
↓ 1 callersFunction_clamp_expires_in_days
Coerce ``value`` to an integer day count inside the policy bounds. Accepts any caller-shape: ``None`` → default, non-numeric → default, out-o
backend/app/services/share_link_service.py:162
↓ 1 callersFunction_classify_stance
Bucket a continuous belief position into bullish/neutral/bearish.
backend/app/services/agent_export.py:215
↓ 1 callersFunction_classify_stance
Bucket a continuous belief position into bullish/neutral/bearish. Mirrors the ±0.2 threshold every other surface uses so the per-agent label
backend/app/services/agent_sparklines_service.py:104
↓ 1 callersFunction_classify_trend
Bucket the trajectory into ``stable`` / ``converging`` / ``contested``.
backend/app/services/volatility_service.py:118
↓ 1 callersMethod_clean_section_content
Clean section content 1. Remove Markdown heading lines at the beginning that duplicate the section title 2. Convert all ###
backend/app/services/report_agent.py:3234
↓ 1 callersFunction_clean_suggestions
Validate and normalize the LLM's suggestions array. Silently drops malformed entries and clamps the result to 3. Returns [] if nothing surviv
backend/app/api/simulation.py:399
↓ 1 callersFunction_close_tweet
Closing tweet — final verdict + the two URLs that anyone reading the thread should be able to act on (watch the replay; fork the scenario).
backend/app/services/thread_formatter.py:326
↓ 1 callersMethod_cluster
Run Leiden community detection. Returns list of member-index lists.
backend/app/storage/community_builder.py:236
↓ 1 callersFunction_coerce_confidence
Coerce a confidence-shaped value to ``float`` in ``[0, 100]``. Non-numeric / ``None`` becomes ``0.0`` so the badge still renders a (probably-
backend/app/services/badge_service.py:148
↓ 1 callersFunction_coerce_int_or_none
Coerce ``value`` to ``int``, or ``None`` on failure. Used for ``current_round`` reads — a malformed value in state.json should not tank the w
backend/app/services/batch_status.py:209
↓ 1 callersFunction_compact_comment
(c: dict)
backend/lib/env_compact.py:98
↓ 1 callersFunction_compose_title
Return a single-line citation title from the scenario text. Trims to ``max_chars`` with an ellipsis. Collapses internal whitespace. Empty / m
backend/app/services/bibtex_service.py:191
↓ 1 callersFunction_compute_confidence
Return ``confidence_pct`` in ``[0.0, 100.0]`` rounded to 1 dp. ``leading_pct == 33.333`` ⇒ ``0``; ``leading_pct == 100.0`` ⇒ ``100``; ``l
backend/app/services/signal_service.py:147
↓ 1 callersFunction_compute_quality_diagnostics
Compute quality metrics from trajectory.json and action logs.
backend/app/api/simulation.py:4277
↓ 1 callersFunction_confidence_bucket
Map a confidence percentage to ``high`` / ``medium`` / ``low``. ``>= 70`` → ``high``; ``40 <= x < 70`` → ``medium``; ``< 40`` → ``low``. Boun
backend/app/services/outcome_distribution.py:209
↓ 1 callersFunction_confidence_label
(confidence: float)
backend/wonderwall/social_agent/belief_state.py:396
↓ 1 callersFunction_consensus_blurb
One-line stance split — appears in every feed entry's summary so the river view in a reader telegraphs the simulation's outcome without openin
backend/app/services/feed.py:114
← previousnext →701–800 of 3,647, ranked by callers