MCPcopy Create free account

hub / github.com/aaronjmars/MiroShark / functions

Functions3,647 in github.com/aaronjmars/MiroShark

↓ 2,202 callersMethodget
Read a context field.
backend/app/utils/trace_context.py:37
↓ 838 callersMethodget
(self, key, default=None)
backend/tests/test_unit_i18n.py:86
↓ 305 callersMethodinfo
(self, message: str)
backend/scripts/action_logger.py:193
↓ 184 callersMethodwarning
(self, message: str)
backend/scripts/action_logger.py:196
↓ 179 callersMethoderror
(self, message: str)
backend/scripts/action_logger.py:199
↓ 107 callersFunctionget_locale
Resolve the active locale from the Flask request object. Order of precedence: ``?lang=`` query param → ``X-MiroShark-Locale`` header → ``Acce
backend/app/utils/i18n.py:52
↓ 97 callersMethodget
(self, key, default=None)
backend/wonderwall/social_platform/channel.py:28
↓ 96 callersFunctionlist
(token)
frontend/src/utils/markdown.js:20
↓ 83 callersMethod_execute_db_command
(self, command, args=(), commit=False)
backend/wonderwall/social_platform/platform_utils.py:47
↓ 80 callersFunctionlog_info
(msg)
backend/scripts/run_parallel_simulation.py:1332
↓ 67 callersMethodrun
(self)
backend/wonderwall/simulations/base.py:196
↓ 63 callersFunctionget_prompt
Look up a prompt template and substitute placeholders. ``key`` is ``<module>.<name>``. The lookup tries the requested locale first, then Engl
backend/app/prompts/registry.py:83
↓ 60 callersMethodkeys
(self)
backend/wonderwall/social_platform/channel.py:36
↓ 53 callersFunction_card
( sid: str, *, scenario: str = "", bullish: float = 0.0, neutral: float = 0.0, bearish
backend/tests/test_unit_gallery_filters.py:46
↓ 47 callersMethoddebug
(self, message: str)
backend/scripts/action_logger.py:202
↓ 47 callersMethodfind
(x)
backend/app/storage/neo4j_storage.py:1070
↓ 46 callersFunctionget_logger
Get a logger (create one if it doesn't exist) Args: name: Logger name Returns: Logger instance
backend/app/utils/logger.py:100
↓ 42 callersFunction_write_sim
Write a fake simulation folder under ``root`` with the minimum files ``compute_project_stats`` reads.
backend/tests/test_unit_project_stats.py:50
↓ 42 callersMethodto_dict
Convert to dictionary
backend/app/models/task.py:37
↓ 40 callersMethodpop
(self, key, default=None)
backend/wonderwall/social_platform/channel.py:32
↓ 38 callersFunctionget_active_locale
Return the locale set for the current execution context.
backend/app/utils/i18n.py:81
↓ 35 callersFunction_write_sim
Write a fake simulation folder under ``root`` with the minimum files ``build_distribution`` reads. ``final_belief`` is the per-stance percent
backend/tests/test_unit_outcome_distribution.py:50
↓ 34 callersMethodget_simulation
Get simulation state
backend/app/services/simulation_manager.py:555
↓ 34 callersMethodset
Set one or more context fields (simulation_id, round_num, agent_id, agent_name, platform, trace_id, run_id, sim_phase, prompt_type).
backend/app/utils/trace_context.py:31
↓ 33 callersFunction_write_sim
Build a minimum sim folder under ``root``. Snapshots defaults to a one-round bullish trajectory so the signal pipeline yields a non-null dire
backend/tests/test_unit_activity_feed.py:63
↓ 32 callersFunction_make_round
Shorthand for a stance-split row matching the peak-round projection.
backend/tests/test_unit_volatility.py:45
↓ 31 callersFunctionok
(msg)
backend/scripts/test_e2e_api.py:74
↓ 31 callersMethodperform_action
(self, message: Any, type: str)
backend/wonderwall/social_agent/agent_action.py:63
↓ 30 callersFunction_make_profile
Wonderwall reddit-shape profile with the manager-default fields.
backend/tests/test_unit_agent_export.py:74
↓ 29 callersMethod_record_trace
r"""If, in addition to the trace, the operation function also records time in other tables of the database, use the time of entering t
backend/wonderwall/social_platform/platform_utils.py:188
↓ 29 callersFunctionpayload_passes_event_filter
Decide whether ``payload`` should be dispatched under ``events``. Returns ``(passes, trace)``. ``trace`` is a small dict captured for the log
backend/app/services/webhook_service.py:552
↓ 29 callersFunctionprogress_callback
(stage, progress, message)
backend/app/api/report.py:179
↓ 28 callersFunction_build_embed_summary_payload
Assemble the same dict the embed-summary endpoint returns. Extracted so the share-card renderer can reuse the data pipeline without going bac
backend/app/api/simulation.py:4932
↓ 27 callersFunction_format_float
Trim trailing zeros so ``120.0`` serialises as ``120`` — keeps the SVG body small and bytewise stable across float repr quirks.
backend/app/services/chart_svg.py:115
↓ 26 callersFunction_write_state
Create a sim directory with a minimal state.json.
backend/tests/test_unit_lineage.py:91
↓ 26 callersFunctionnormalize_locale
Normalise a free-form locale string to one of ``SUPPORTED``.
backend/app/utils/i18n.py:30
↓ 26 callersFunctionvalidate_simulation_id
Validate that a simulation_id is safe for use in filesystem paths. Rejects any value containing path separators, parent-directory refere
backend/app/utils/validation.py:12
↓ 25 callersMethod_execute_db_command
(self, command, args=(), commit=False)
backend/wonderwall/simulations/base.py:203
↓ 24 callersFunctionbuild_distribution
Return the platform-wide outcome distribution for every public, completed simulation under ``sim_root``. Result shape:: {
backend/app/services/outcome_distribution.py:287
↓ 24 callersMethodsearch
Run a search and return normalized result dicts. Each result has keys: url, title, content, engine, score, publishedDate (all present
backend/app/utils/searxng_client.py:62
↓ 23 callersFunctionbuild_bibtex
Render a single ``@misc{…}`` BibTeX entry for a published sim. Keyword args: simulation_id: The canonical sim id (``sim_…``). Drives the
backend/app/services/bibtex_service.py:249
↓ 23 callersMethodclose
(self)
backend/app/utils/event_logger.py:305
↓ 23 callersFunctioncompute_project_stats
Return per-project aggregate statistics for ``project_id`` under ``sim_root``. Result shape:: { "schema_version": "1",
backend/app/services/project_stats.py:263
↓ 23 callersFunctioncompute_signal
Derive the trading-signal payload from an embed-summary dict. Returns ``None`` when the summary is missing the data required to produce a mea
backend/app/services/signal_service.py:161
↓ 23 callersMethodtime_transfer
(self, now_time: datetime, start_time: datetime)
backend/wonderwall/clock/clock.py:25
↓ 22 callersFunction_write_sim
Write a fake simulation folder under ``root`` with the minimum files ``compute_platform_stats`` reads.
backend/tests/test_unit_platform_stats.py:46
↓ 22 callersFunction_write_sim
Write a minimum ``state.json`` for one sim under ``root``.
backend/tests/test_unit_platform_status.py:63
↓ 22 callersFunctionbuild_badge_svg
Render a flat Shields.io-style status badge as an SVG string. Returns a complete SVG 1.1 document — XML declaration, namespace, ``viewBox``,
backend/app/services/badge_service.py:310
↓ 22 callersMethodget_time_step
(self)
backend/wonderwall/clock/clock.py:32
↓ 21 callersMethod_call_with_retry
Execute a function with retry on Neo4j transient errors. Replaces 3 different retry patterns from the Zep codebase.
backend/app/storage/neo4j_storage.py:100
↓ 21 callersFunction_payload
(**overrides)
backend/tests/test_unit_email_notify.py:148
↓ 21 callersMethodget_run_state
Get run state
backend/app/services/simulation_runner.py:115
↓ 20 callersFunction_signal
A signal-shaped dict — matches the keys ``signal_service`` emits.
backend/tests/test_unit_signed_result.py:51
↓ 20 callersFunction_write_reddit_profiles
(sim_dir: Path, profiles: list[dict])
backend/tests/test_unit_agent_export.py:50
↓ 20 callersFunctionbuild_signed_result
Build the full signed-result envelope. Parameters ---------- signal: The dict returned by ``signal_service.compute_signal`` — eve
backend/app/services/signed_result.py:136
↓ 20 callersMethodget_agent
(self, agent_id: int)
backend/wonderwall/social_agent/agent_graph.py:226
↓ 20 callersMethodis_configured
(self)
backend/app/utils/searxng_client.py:59
↓ 20 callersMethodstep
r"""Update the recommendation system and perform the actions. Args: actions(dict[SocialAgent, Union[ManualAction, LLMAction,
backend/wonderwall/environment/env.py:199
↓ 19 callersFunction_summary
Minimal embed-summary-shaped dict for the signal derivation.
backend/tests/test_unit_signal_service.py:41
↓ 19 callersMethodclear
Remove all context fields.
backend/app/utils/trace_context.py:54
↓ 18 callersFunction_esc
HTML-attribute escape — quotes are critical here since values land inside ``content="..."``.
backend/app/services/watch_renderer.py:52
↓ 18 callersFunctioncompute_polymarket
Derive the Polymarket-shaped prediction payload from an embed summary. Returns ``None`` when: * ``summary`` is not a dict. * The simulat
backend/app/services/polymarket_service.py:171
↓ 17 callersFunction_esc
HTML attribute escape — quotes are critical here since values land inside ``content="..."``.
backend/app/api/share.py:48
↓ 17 callersFunction_make_sim_dir
Create a sim subdir with a minimal ``state.json`` so the layout matches what the route handler would have produced.
backend/tests/test_unit_share_link.py:39
↓ 17 callersMethod_save_simulation_state
Save simulation state to file
backend/app/services/simulation_manager.py:189
↓ 17 callersFunction_write_state
Drop a state.json with the manager-shaped defaults + overrides.
backend/tests/test_unit_clone_service.py:47
↓ 17 callersFunctionselect_public_cards
Filter + sort + truncate the gallery cards used to render a feed. Mirrors the exact selection ``GET /api/simulation/public`` performs so a su
backend/app/services/feed.py:666
↓ 16 callersFunction_make_card
Mirror the shape ``_build_gallery_card_payload`` returns.
backend/tests/test_unit_feed.py:47
↓ 16 callersFunction_write_state
Write a minimum ``state.json`` for one sim under ``root``.
backend/tests/test_unit_batch_status.py:72
↓ 16 callersMethodlog
Record a log entry Args: action: Action type, e.g. 'start', 'tool_call', 'llm_response', 'section_complete', etc.
backend/app/services/report_agent.py:90
↓ 16 callersMethodstart
Start background worker thread
backend/app/services/graph_memory_updater.py:221
↓ 16 callersMethodupdate_task
Update task status Args: task_id: Task ID status: New status progress: Progress mess
backend/app/models/task.py:106
↓ 15 callersFunction_make_card
Mirror the shape ``_build_gallery_card_payload`` returns.
backend/tests/test_unit_feed_filters.py:61
↓ 15 callersFunction_summary
Minimal embed-summary-shaped dict for the polymarket derivation.
backend/tests/test_unit_polymarket_service.py:43
↓ 15 callersFunctionapi
Make an API call, return parsed JSON. Fail on HTTP errors.
backend/scripts/test_e2e_api.py:98
↓ 15 callersMethodget_simulation_config
Get simulation config
backend/app/services/simulation_manager.py:592
↓ 15 callersMethodlog_round_end
Log round end
backend/scripts/action_logger.py:81
↓ 15 callersMethodreset
Clear the set. Test-only convenience.
backend/app/services/_notify_base.py:42
↓ 14 callersFunction_child_text
(url_el: ET.Element, name: str)
backend/tests/test_unit_sitemap.py:126
↓ 14 callersMethodchat_json
Send a chat request and return JSON Args: messages: List of messages temperature: Temperature parameter
backend/app/utils/llm_client.py:411
↓ 13 callersFunction_parse
Verify the document round-trips through ElementTree.
backend/tests/test_unit_sitemap.py:117
↓ 13 callersFunction_payload
(**overrides)
backend/tests/test_unit_discord_notify.py:64
↓ 13 callersFunction_urls
(root: ET.Element)
backend/tests/test_unit_sitemap.py:122
↓ 13 callersFunctionbuild_transcript_data
Assemble the full transcript payload from the embed summary + on-disk artifacts. The ``summary`` arg is the same dict ``_build_embed_summary_
backend/app/services/transcript.py:239
↓ 13 callersFunctioninfo
(msg)
backend/scripts/test_e2e_api.py:78
↓ 12 callersFunction_escape
Escape ``<`` / ``>`` / ``&`` for Telegram HTML parse mode. Telegram rejects the whole message with HTTP 400 if any HTML tag fails to parse —
backend/app/services/telegram_notify.py:125
↓ 12 callersFunction_payload
(**overrides)
backend/tests/test_unit_telegram_notify.py:117
↓ 12 callersFunction_print_json
(obj: Any)
backend/cli.py:81
↓ 12 callersFunctionbuild_payload
Assemble the webhook JSON payload for one simulation. Reads ``simulation_config.json``, ``quality.json``, ``trajectory.json``, ``resolution.j
backend/app/services/webhook_service.py:760
↓ 12 callersFunctioncreate_llm_client
Factory: returns ClaudeCodeClient when LLM_PROVIDER=claude-code, otherwise returns the standard LLMClient.
backend/app/utils/llm_client.py:76
↓ 12 callersMethodformat
(self, record)
backend/scripts/run_reddit_simulation.py:78
↓ 12 callersMethodget_entity_type
Get entity type (exclude default Entity label)
backend/app/services/entity_reader.py:33
↓ 12 callersFunctionrender_chart_svg_bytes
Render the trajectory chart for a sim directory. Returns ``None`` when the trajectory is empty so the route handler can emit a clean 404 — be
backend/app/services/chart_svg.py:422
↓ 12 callersFunctionrequestWithRetry
(requestFn, maxRetries = 3, delay = 1000)
frontend/src/api/index.js:72
↓ 11 callersFunction_absolute
Resolve a relative path (``/api/simulation/sim_x/share-card.png``) against the deployment base URL. Returns ``None`` when the input is falsy s
backend/app/services/feed.py:191
↓ 11 callersFunction_api
( method: str, path: str, body: Optional[dict] = None, params: Optional[dict] = None, time
backend/cli.py:37
↓ 11 callersFunction_die
(msg: str, code: int = 1)
backend/cli.py:76
↓ 11 callersMethod_execute_many_db_command
(self, command, args_list, commit=False)
backend/wonderwall/social_platform/platform_utils.py:53
↓ 11 callersMethod_get_report_folder
Get report folder path
backend/app/services/report_agent.py:3013
↓ 11 callersFunction_make_snapshot
Single trajectory snapshot in the shape agent_sparklines_service reads.
backend/tests/test_unit_agent_export.py:95
next →1–100 of 3,647, ranked by callers