MCPcopy Create free account

hub / github.com/aaronjmars/MiroShark / functions

Functions3,647 in github.com/aaronjmars/MiroShark

↓ 1 callersFunction_consensus_color
Pick the embed colour for ``payload``. A failed sim is always amber regardless of the (often empty) trajectory. A completed sim with no traje
backend/app/services/discord_notify.py:111
↓ 1 callersFunction_consensus_direction
Return ``"Bullish"`` / ``"Neutral"`` / ``"Bearish"`` / ``"Failed"``. Same bucket logic as :func:`email_notify._consensus_direction` so the ch
backend/app/services/telegram_notify.py:172
↓ 1 callersFunction_consensus_swatch
(direction: str)
backend/app/services/email_notify.py:398
↓ 1 callersFunction_content_relates_to_topic
Check if content is related to a topic via keyword overlap. Uses a low bar: any single keyword match counts. For short topics (1-2 words), we
backend/wonderwall/social_agent/belief_state.py:362
↓ 1 callersFunction_counterfactual_path
(simulation_dir: str)
backend/scripts/director_events.py:79
↓ 1 callersMethod_create_model
Create LLM model Uses configuration from the project root .env file (highest priority). WONDERWALL_* overrides LLM_* per-slo
backend/scripts/run_twitter_simulation.py:435
↓ 1 callersMethod_create_model
Create LLM model Uses configuration from the project root .env file (highest priority). WONDERWALL_* overrides LLM_* per-slo
backend/scripts/run_reddit_simulation.py:457
↓ 1 callersMethod_define_tools
Define available tools
backend/app/services/report_agent.py:1175
↓ 1 callersFunction_delta
(ts)
backend/lib/env_compact.py:51
↓ 1 callersFunction_demo_age_bucket
(age)
backend/app/api/simulation.py:10913
↓ 1 callersFunction_demo_classify_archetype
(entity_type)
backend/app/api/simulation.py:10931
↓ 1 callersFunction_demo_extract_stances
Return (initial_stance_map, final_stance_map), keyed by string agent_id.
backend/app/api/simulation.py:10972
↓ 1 callersFunction_demo_finalize_bucket
Convert accumulator lists into summary statistics.
backend/app/api/simulation.py:11014
↓ 1 callersFunction_demo_top_divergence
Pick the most striking subgroup divergence across all dimensions. Returns a dict with {dimension, segment_a, segment_b, delta, headline} or None.
backend/app/api/simulation.py:11064
↓ 1 callersFunction_derive_capabilities
Translate enabled platforms into WaybackClaw capability tags. Capabilities are free-form short strings on the WaybackClaw API; we pick a stab
backend/app/services/waybackclaw_publisher.py:335
↓ 1 callersFunction_derive_total_rounds
Mirror ``_build_embed_summary_payload``'s total-rounds derivation. Prefer the runner's own ``total_rounds`` if it landed on the state dict; o
backend/app/services/repro_export.py:329
↓ 1 callersMethod_determine_agent_platforms
Determine which platform each agent was most active on by counting actions in twitter/actions.jsonl and reddit/actions.jsonl.
backend/app/services/graph_tools.py:1731
↓ 1 callersMethod_do_request
GET /search with retry on connection errors / timeouts / 5xx.
backend/app/utils/searxng_client.py:126
↓ 1 callersFunction_draw_belief_bar
Three-segment horizontal stacked bar — bullish | neutral | bearish. Percentages are normalized so they always fill the bar exactly, even when
backend/app/services/share_card.py:201
↓ 1 callersFunction_draw_belief_bars
Render three labelled horizontal bars, one per stance. Returns the y-coordinate immediately below the rendered block so the caller can stack
backend/app/services/replay_gif.py:201
↓ 1 callersFunction_draw_round_progress
Thin progress bar at the bottom showing where we are in the run.
backend/app/services/replay_gif.py:269
↓ 1 callersFunction_ecosystem_md_names
Extract project names from the ECOSYSTEM.md project table. The Markdown table format is:: | Logo | Project | Links | |------|---
backend/tests/test_unit_ecosystem_catalog.py:153
↓ 1 callersMethod_emit_llm_call_event
Emit an llm_call observability event from the Wonderwall subprocess.
backend/wonderwall/social_agent/agent.py:367
↓ 1 callersFunction_empty_envelope
()
backend/app/services/outcome_distribution.py:269
↓ 1 callersFunction_empty_stats
(project_id: str)
backend/app/services/project_stats.py:232
↓ 1 callersFunction_empty_stats
()
backend/app/services/platform_stats.py:198
↓ 1 callersFunction_enabled
()
backend/app/services/oracle_seed.py:44
↓ 1 callersFunction_endpoint
()
backend/app/services/oracle_seed.py:48
↓ 1 callersFunction_enrich_action_context
Enrich action with context information (post content, usernames, etc.) Args: cursor: Database cursor action_type: Action typ
backend/scripts/run_parallel_simulation.py:845
↓ 1 callersFunction_ensureFontsReady
* Ensure web fonts are available to canvas text rendering before we draw. * Without this, the first export after page load will silently fall back to
frontend/src/utils/chartExport.js:98
↓ 1 callersMethod_ensure_dir
Ensure directory exists
backend/scripts/action_logger.py:40
↓ 1 callersMethod_ensure_loaded
Load the cross-encoder lazily. Returns False on failure.
backend/app/storage/reranker_service.py:64
↓ 1 callersMethod_ensure_log_file
Ensure log file directory exists
backend/app/services/report_agent.py:81
↓ 1 callersMethod_ensure_log_file
Ensure log file directory exists
backend/app/services/report_agent.py:353
↓ 1 callersMethod_ensure_report_node
(self, session)
backend/app/storage/reasoning_trace.py:149
↓ 1 callersMethod_ensure_schema
Create indexes and constraints if they don't exist. Retries with backoff because Neo4j may accept Bolt connections before its index s
backend/app/storage/neo4j_storage.py:72
↓ 1 callersFunction_ensure_utf8_stdout
Ensure stdout/stderr uses UTF-8 encoding Fixes character encoding issues on Windows console
backend/app/utils/logger.py:14
↓ 1 callersMethod_entity_summary_for_prompt
Extract a short summary for the LLM prompt.
backend/app/storage/entity_resolver.py:301
↓ 1 callersFunction_estimate_stance
Quick heuristic stance estimation from post content. Returns a float from -1.0 (strongly negative) to 1.0 (strongly positive), or None only f
backend/wonderwall/social_agent/belief_state.py:296
↓ 1 callersFunction_excerpt
Trim a post to ``limit`` chars with a single-character ellipsis. Trims at a word boundary when one is within 30 chars of the cap so we don't
backend/app/services/transcript.py:104
↓ 1 callersMethod_execute_equilibrium_analysis
Synthesize a 2-player stance game from trajectory.json and solve via nashpy. This is a qualitative bridge between MiroShark's belief state an
backend/app/services/report_agent.py:1536
↓ 1 callersMethod_execute_market_state
Read Polymarket final state from SQLite.
backend/app/services/report_agent.py:1892
↓ 1 callersMethod_execute_simulation_feed
Read actual simulation posts, comments, and trades.
backend/app/services/report_agent.py:1744
↓ 1 callersMethod_execute_trajectory_analysis
Execute the analyze_trajectory tool — reads trajectory.json from the simulation directory.
backend/app/services/report_agent.py:1450
↓ 1 callersMethod_existing_edges_between
Return valid (not-yet-invalidated) edges between the given entity pair, in either direction — contradictions can flow both ways.
backend/app/storage/contradiction_detector.py:128
↓ 1 callersFunction_expires_at_for
Compute the expiry epoch ``days`` whole days from ``now_epoch``. Pulling the ``now_epoch`` parameter out makes the test suite's expiry-arithm
backend/app/services/share_link_service.py:184
↓ 1 callersFunction_explorer_url_for
(ual: str, network: str)
backend/app/services/dkg_publisher.py:140
↓ 1 callersFunction_extract_dkg_sha
Return the ``reproduce.json`` SHA-256 stored on a DKG citation. The DKG publisher persists the hash as ``"sha256:<hex>"`` to make the on-chai
backend/app/services/bibtex_service.py:214
↓ 1 callersFunction_extract_dkg_ual
Return the OriginTrail UAL stored on a DKG citation, if any.
backend/app/services/bibtex_service.py:236
↓ 1 callersMethod_extract_from_md
Extract text from Markdown with automatic encoding detection
backend/app/utils/file_parser.py:113
↓ 1 callersMethod_extract_from_pdf
Extract text from PDF
backend/app/utils/file_parser.py:96
↓ 1 callersMethod_extract_from_txt
Extract text from TXT with automatic encoding detection
backend/app/utils/file_parser.py:118
↓ 1 callersFunction_extract_year_month
Pull ``(year, month_macro)`` from an ISO-8601 timestamp. Accepts the ``YYYY-MM-DDTHH:MM:SS[+-HH:MM|Z]`` shape ``datetime .isoformat()`` produ
backend/app/services/bibtex_service.py:154
↓ 1 callersMethod_fallback_title
Title = most central (first) member's name when LLM fails.
backend/app/storage/community_builder.py:328
↓ 1 callersFunction_fetch_via_firecrawl
Scrape a URL via Firecrawl-for-agents. Returns (title, text). Raises ValueError on HTTP errors or unusable responses.
backend/app/utils/url_fetcher.py:94
↓ 1 callersFunction_fetch_via_llm
Extract a URL's content via the web-search LLM. Returns (title, text). Raises ValueError when no model is configured or the model fails.
backend/app/utils/url_fetcher.py:126
↓ 1 callersFunction_filter_chip
One-line summary of the active filters for the feed title/subtitle. Returns an empty string when no filter is active so the unfiltered feed r
backend/app/services/feed.py:500
↓ 1 callersFunction_final_belief_and_rounds
Return ``((bullish_pct, neutral_pct, bearish_pct), total_rounds)``. The first element is ``None`` when the trajectory is missing / empty / ha
backend/app/services/activity_feed.py:139
↓ 1 callersFunction_final_belief_from_snapshots
Return ``(bullish_pct, neutral_pct, bearish_pct)`` for the final round in ``snapshots``, or ``None`` if the list is empty or carries no parsea
backend/app/services/outcome_distribution.py:147
↓ 1 callersFunction_final_belief_from_trajectory
Return ``(bullish_pct, neutral_pct, bearish_pct)`` for the final round in ``trajectory.json``, or ``None`` if the trajectory is missing / empt
backend/app/services/project_stats.py:133
↓ 1 callersFunction_final_belief_from_trajectory
Return ``(bullish_pct, neutral_pct, bearish_pct, total_rounds)`` for the final round of ``trajectory.json``, or ``None`` if the trajectory is
backend/app/services/batch_status.py:117
↓ 1 callersFunction_final_belief_from_trajectory
Return ``(bullish_pct, neutral_pct, bearish_pct)`` for the final round in ``trajectory.json``, or ``None`` if the trajectory is missing / empt
backend/app/services/platform_stats.py:120
↓ 1 callersFunction_final_consensus_from_trajectory
Walk the trajectory snapshots in reverse and pick the last one with computable belief positions, then bucket stances into bullish / neutral /
backend/app/services/webhook_service.py:724
↓ 1 callersFunction_final_consensus_label
Plain-language label for the final consensus split. Prefers the ``label`` field already computed by the embed-summary pipeline; falls back to
backend/app/services/thread_formatter.py:238
↓ 1 callersMethod_find_candidates
Combined fuzzy name + vector similarity candidate list. Returns up to CANDIDATES_PER_ENTITY items sorted by score desc.
backend/app/storage/entity_resolver.py:173
↓ 1 callersFunction_find_font
(candidates: list[str])
backend/app/services/share_card.py:77
↓ 1 callersFunction_find_font
(candidates: list[str])
backend/app/services/replay_gif.py:84
↓ 1 callersMethod_flush_remaining
Send remaining activities in queue and buffers
backend/app/services/graph_memory_updater.py:370
↓ 1 callersFunction_format_action
Format a single action dict into a readable one-liner.
backend/scripts/round_memory.py:77
↓ 1 callersMethod_format_action
Format a single action entry as a readable line.
backend/scripts/cross_platform_digest.py:151
↓ 1 callersMethod_format_ontology
Format ontology dict into readable text for the LLM prompt.
backend/app/storage/ner_extractor.py:81
↓ 1 callersFunction_format_platform_right_label
Build the right-hand label for the platform badge. Coerces the count to a non-negative integer (anything non-numeric becomes ``0``) and produ
backend/app/services/badge_service.py:356
↓ 1 callersFunction_format_right_label
Build the right-hand label: e.g. ``"Bullish 72%"``. Direction is title-cased so ``"bullish"`` and ``"BULLISH"`` both render as ``"Bullish"``.
backend/app/services/badge_service.py:168
↓ 1 callersMethod_generate_agent_config_by_rule
Generate single Agent configuration based on rules (Chinese daily schedule)
backend/app/services/simulation_config_generator.py:1047
↓ 1 callersMethod_generate_agent_configs_batch
Batch generate Agent configurations
backend/app/services/simulation_config_generator.py:949
↓ 1 callersMethod_generate_event_config
Generate event configuration
backend/app/services/simulation_config_generator.py:668
↓ 1 callersMethod_generate_interview_questions
Use LLM to generate interview questions
backend/app/services/graph_tools.py:1791
↓ 1 callersMethod_generate_profile_with_llm
Use LLM to generate very detailed persona Differentiated by entity type: - Individual entity: Generate specific character pr
backend/app/services/wonderwall_profile_generator.py:636
↓ 1 callersMethod_generate_section_react
Generate single section content using ReACT pattern ReACT loop: 1. Thought - Analyze what information is needed 2. A
backend/app/services/report_agent.py:2126
↓ 1 callersMethod_generate_sub_queries
Use LLM to generate sub-questions
backend/app/services/graph_tools.py:1021
↓ 1 callersMethod_generate_synthesis
Generate cross-section synthesis — patterns, contradictions, and meta-insights. This runs after all sections are generated and identifies:
backend/app/services/report_agent.py:2495
↓ 1 callersMethod_generate_time_config
Generate time configuration
backend/app/services/simulation_config_generator.py:544
↓ 1 callersMethod_get_active_agents_for_round
Determine which Agents to activate this round based on time and configuration Args: env: Wonderwall environment
backend/scripts/run_twitter_simulation.py:479
↓ 1 callersMethod_get_active_agents_for_round
Determine which Agents to activate this round based on time and configuration
backend/scripts/run_reddit_simulation.py:501
↓ 1 callersMethod_get_agent_log_path
Get Agent log file path
backend/app/services/report_agent.py:3050
↓ 1 callersFunction_get_comment_info
Get comment information Args: cursor: Database cursor comment_id: Comment ID agent_names: agent_id -> agent_name map
backend/scripts/run_parallel_simulation.py:1034
↓ 1 callersMethod_get_console_log_path
Get console log file path
backend/app/services/report_agent.py:3055
↓ 1 callersMethod_get_db_path
Get database path
backend/scripts/run_twitter_simulation.py:431
↓ 1 callersMethod_get_db_path
Get database path
backend/scripts/run_reddit_simulation.py:453
↓ 1 callersMethod_get_default_time_config
Get default time configuration (typical daily schedule)
backend/app/services/simulation_config_generator.py:613
↓ 1 callersMethod_get_elapsed_time
Get elapsed time from start (seconds)
backend/app/services/report_agent.py:86
↓ 1 callersMethod_get_engagement_by_agent
Get likes/dislikes received by each agent's posts — single batched query.
backend/wonderwall/social_agent/round_analyzer.py:338
↓ 1 callersMethod_get_env_and_graph
Get the environment and agent_graph for the specified platform Args: platform: Platform name ("twitter" or "reddit")
backend/scripts/run_parallel_simulation.py:374
↓ 1 callersMethod_get_follow_graph
Load the follow graph for active agents (follower -> set of followees).
backend/wonderwall/social_agent/round_analyzer.py:387
↓ 1 callersMethod_get_interview_history_from_db
Get Interview history from a single database
backend/app/services/simulation_runner.py:1800
↓ 1 callersMethod_get_llm
Create an LLM client per call for thread-safe parallel use.
backend/app/services/web_enrichment.py:78
↓ 1 callersFunction_get_model_cost
Estimate cost for a single LLM call.
backend/app/utils/run_summary.py:58
↓ 1 callersMethod_get_outline_path
Get outline file path
backend/app/services/report_agent.py:3035
↓ 1 callersMethod_get_posts_seen_by_agent
Get posts recommended to all active agents — single batched query.
backend/wonderwall/social_agent/round_analyzer.py:363
↓ 1 callersMethod_get_profile_path
Get Profile file path (Wonderwall Twitter uses CSV format)
backend/scripts/run_twitter_simulation.py:427
← previousnext →801–900 of 3,647, ranked by callers