MCPcopy Create free account

hub / github.com/aaronjmars/MiroShark / functions

Functions3,647 in github.com/aaronjmars/MiroShark

Methodget_text_stats
Get text statistics
backend/app/services/text_processor.py:176
Functionget_thread_json
Same tweet thread as ``thread.txt`` but as a structured JSON payload. Returns ``{tweets: [...], total: N, inflections_recorded: M, trunca
backend/app/api/simulation.py:6848
Functionget_thread_txt
Twitter / X tweet thread for a published simulation, as plain text. One intro tweet (scenario + consensus), one tweet per belief inflection p
backend/app/api/simulation.py:6826
Functionget_trajectory_csv
Per-round belief trajectory as RFC 4180 CSV. One row per recorded round with the bullish/neutral/bearish split (using the same ±0.2 stance th
backend/app/api/simulation.py:5418
Functionget_trajectory_jsonl
Same per-round belief trajectory as ``trajectory.csv`` but as newline-delimited JSON. One JSON object per line — the format ``pandas.read_jso
backend/app/api/simulation.py:5433
Functionget_transcript_json
Same transcript payload as ``transcript.md`` but as JSON. Same publish gate. Pretty-printed (indent=2) so a ``curl`` to a file is immediately
backend/app/api/simulation.py:5337
Functionget_transcript_md
Citable Markdown transcript of the simulation. Per-round agent posts + stance labels + final consensus, served as ``text/markdown`` so Notion
backend/app/api/simulation.py:5321
Functionget_volatility
Belief volatility analytics for a published simulation. The turbulence counterpart to ``peak-round`` and ``signal.json``. ``signal.json`` ans
backend/app/api/simulation.py:5882
Functionget_waybackclaw_record
Return the persisted WaybackClaw submission record for a sim. Pure read of ``<sim_dir>/waybackclaw-record.json``. Returns 404 when the sim ha
backend/app/api/simulation.py:7667
Functionget_webhook_log
Return the recent webhook delivery attempts for a simulation. Reads ``<sim_dir>/webhook-log.jsonl`` — one line per attempt, bounded to the la
backend/app/api/simulation.py:7262
FunctionhasAnyPrefill
(params)
frontend/src/utils/urlParams.js:86
Functionheading
({ tokens, depth })
frontend/src/utils/markdown.js:8
Functionhealth
()
backend/app/__init__.py:234
Methodhealth_check
Check if embedding endpoint is reachable.
backend/app/storage/embedding_service.py:246
Functionhr
()
frontend/src/utils/markdown.js:54
Functionidle_summary
Public sim that hasn't started running yet — no belief snapshots.
backend/tests/test_unit_watch.py:83
Functionincrement_surface_stat
Increment the counter for ``surface_key`` in the sim's stats file. Fire-and-forget. Never raises. No-op when: * ``sim_dir`` is falsy (privat
backend/app/services/surface_stats.py:189
Functioninfer_filter_schema
Introspect the country's parquet schema and return cohort-selector hints. For each `filter_fields` entry declared in the country pack: - ty
backend/app/services/demographic_sampler.py:218
Functioninfo
(msg: object, *args: object, **kwargs: Any)
backend/app/utils/logger.py:123
Methodinit
(self, action_type, action_args)
backend/wonderwall/environment/env_action.py:33
Methodinit
(self)
backend/wonderwall/environment/env_action.py:42
Methodinitialize
(self)
backend/tests/test_unit_oracle_seed.py:53
FunctioninjectDirectorEvent
(simulationId, data)
frontend/src/api/simulation.js:360
Functioninject_director_event
Inject a breaking event into a running simulation (Director Mode). The event is queued and consumed by the simulation loop at the next r
backend/app/api/simulation.py:10491
Functioninsert_matrix_into_rec_table
(cursor: sqlite3.Cursor, matrix: List[List[int]])
backend/wonderwall/social_platform/database.py:210
Functioninstall
(app)
frontend/src/i18n.js:92
Functioninternal_auth_guard
Protect expensive API routes with internal key authentication
backend/app/__init__.py:93
Methodinterview
r"""Interview an agent with the given prompt. This method invokes an asynchronous action to interview an agent with a specific prompt
backend/wonderwall/social_agent/agent_action.py:658
Methodinterview
Interview an agent with the given prompt and record the response. Args: agent_id (int): The ID of the agent being interviewed.
backend/wonderwall/social_platform/platform.py:1398
FunctioninterviewAgents
(data)
frontend/src/api/simulation.js:224
Functioninterview_agent
Interview single agent Note: This feature requires the simulation environment to be running (after completing simulation loop, entering
backend/app/api/simulation.py:8448
Functioninterview_agents_batch
Batch interview multiple agents Note: This feature requires the simulation environment to be running Request (JSON): {
backend/app/api/simulation.py:8593
Methodinterview_all_agents
Interview all Agents (global interview) Interview all Agents in the simulation with the same question Args: sim
backend/app/services/simulation_runner.py:1692
Functioninvalidate_cache
Drop the cached stats for ``(sim_root, project_id)``. With both arguments ``None`` the entire cache is cleared. With only ``sim_root`` set, e
backend/app/services/project_stats.py:328
Functioninvalidate_cache
Drop the cached stats for ``sim_root`` (or every root when ``None``). Useful in tests so a freshly-written sim is reflected on the next ``com
backend/app/services/platform_stats.py:271
Functioninvalidate_cache
Drop the cached distribution for ``sim_root`` (or every root when ``None``). Useful in tests so a freshly-written sim is reflected on the next
backend/app/services/outcome_distribution.py:356
Methodis_compacted
(self)
backend/scripts/round_memory.py:144
Functionis_configured
``True`` iff ``SMTP_HOST`` *and* at least one recipient are set. Both are required for a valid dispatch — a host without recipients has nowhe
backend/app/services/email_notify.py:188
Functionis_configured
``True`` iff ``DISCORD_WEBHOOK_URL`` is set to a non-empty value.
backend/app/services/discord_notify.py:106
Functionis_configured
``True`` iff both ``TELEGRAM_BOT_TOKEN`` and ``TELEGRAM_CHAT_ID`` are set to non-empty values. Both are required for a valid dispatch — a tok
backend/app/services/telegram_notify.py:112
Functionis_configured
``True`` iff ``SLACK_WEBHOOK_URL`` is set to a non-empty value.
backend/app/services/slack_notify.py:89
Methodis_expired
Whether already expired
backend/app/services/graph_tools.py:124
Methodis_invalid
Whether already invalid
backend/app/services/graph_tools.py:129
Functionis_valid_sim_id
Return ``True`` iff ``sim_id`` is a non-empty string matching :data:`_SAFE_SIM_ID` and free of path-traversal sequences. Used at the API boun
backend/app/services/batch_status.py:227
Functionis_valid_surface_type
Return ``True`` if ``value`` is one of the recognised category strings in ``SURFACE_TYPES``. Used by the ``GET /api/surfaces.json?type=<categ
backend/app/services/surfaces_catalog.py:494
Methodjoin_group
r"""Joins a group with the specified ID. Args: group_id (int): The ID of the group to join. Returns: dict: P
backend/wonderwall/social_agent/agent_action.py:721
Methodjoin_group
(self, agent_id: int, group_id: int)
backend/wonderwall/social_platform/platform.py:1583
Methodleave_group
r"""Leaves a group with the specified ID. Args: group_id (int): The ID of the group to leave. Returns: dict:
backend/wonderwall/social_agent/agent_action.py:733
Methodleave_group
(self, agent_id: int, group_id: int)
backend/wonderwall/social_platform/platform.py:1627
Methodlike_comment
r"""Create a new like for a specified comment. This method invokes an action to create a new like for a comment, identified by the gi
backend/wonderwall/social_agent/agent_action.py:540
Methodlike_comment
(self, agent_id: int, comment_id: int)
backend/wonderwall/social_platform/platform.py:1159
Methodlike_post
r"""Create a new like for a specified post. This method invokes an asynchronous action to create a new like for a post. It is identif
backend/wonderwall/social_agent/agent_action.py:224
Methodlike_post
(self, agent_id: int, post_id: int)
backend/wonderwall/social_platform/platform.py:588
FunctionlistCountries
()
frontend/src/api/countries.js:12
FunctionlistShareLinks
(simulationId)
frontend/src/api/simulation.js:432
FunctionlistSimulations
(projectId)
frontend/src/api/simulation.js:82
FunctionlistTemplates
()
frontend/src/api/templates.js:6
Functionlist_countries
List available demographic country packs. Returns a public-safe summary: code, display name, flag, geography field+label, geography option co
backend/app/api/countries.py:18
Methodlist_projects
List all projects Args: limit: Return count limit Returns: List of projects, sorted by creation tim
backend/app/models/project.py:216
Functionlist_public_simulations
Gallery feed of simulations the operator has toggled public. Every published simulation already has a share card, embed summary, and public l
backend/app/api/simulation.py:8185
Methodlist_reports
List reports
backend/app/services/report_agent.py:3620
Functionlist_share_links
List active share-link tokens for ``simulation_id``. Active = not revoked + not expired. Sorted newest-first by ``created_at_epoch``. Au
backend/app/api/simulation.py:4839
Functionlist_simulations
List all simulations Query parameters: project_id: Filter by project ID (optional)
backend/app/api/simulation.py:2194
Functionlist_summaries
Public-safe summary list — strips dataset paths/repo ids.
backend/app/services/country_registry.py:62
Methodlist_tasks
List tasks
backend/app/models/task.py:164
Functionlist_templates
List all available simulation templates. Returns a summary of each template (without the full seed_document) so the frontend can render
backend/app/api/templates.py:57
Functionlist_tokens
Return active share-link tokens for ``sim_id`` (revoked + expired excluded). Sorted newest-first by ``created_at_epoch`` so the operator UI shows
backend/app/services/share_link_service.py:431
Functionlist_tools
()
backend/mcp_server.py:218
Methodlisten_from_group
(self, agent_id: int)
backend/wonderwall/social_platform/platform.py:1656
Functionlistitem
(item)
frontend/src/utils/markdown.js:35
Functionlive_backend
Assert the backend is reachable before running integration tests. Skips the test (rather than failing) when /health is unreachable so CI with
backend/tests/conftest.py:79
Methodllm
Lazy initialization of smart LLM client (for reasoning tasks)
backend/app/services/graph_tools.py:402
Methodlog_planning_context
Record context information obtained during planning
backend/app/services/report_agent.py:144
Methodlog_react_thought
Record ReACT thinking process
backend/app/services/report_agent.py:176
Functionlog_request
()
backend/app/__init__.py:85
Functionlog_response
(response)
backend/app/__init__.py:161
Functionmain_strict
CI mode: exit 1 only on Type A bugs (clearly wrong: empty EN with non-empty fr). Type B and C are reported but don't fail CI (they can be legi
scripts/scan_i18n.py:449
Functionmake
(*args, **kwargs)
backend/wonderwall/environment/make.py:17
FunctionmanualChunks
(id)
frontend/vite.config.js:64
Methodmatch_score
(text: str)
backend/app/services/graph_tools.py:597
Functionmcp_status
Return the MiroShark MCP server catalog + per-client config snippets.
backend/app/api/mcp.py:296
Methodmodel
(self)
backend/app/storage/embedding_service.py:56
Methodmodel_name
(self)
backend/app/storage/reranker_service.py:42
Methodmute
(self, agent_id: int, mutee_id: int)
backend/wonderwall/social_platform/platform.py:1009
Functionneutral_medium_conf_payload
()
backend/tests/test_unit_webhook_events.py:50
Methodnew_trace
Generate and set a new trace_id, returning it.
backend/app/utils/trace_context.py:47
Functionnormalise_consensus
(value: Optional[str])
backend/app/services/gallery_filters.py:103
Functionnormalise_limit
Clamp ``limit`` into ``[1, MAX_LIMIT]``. Non-numeric → default.
backend/app/services/gallery_filters.py:121
Functionnormalise_offset
Floor at zero. Non-numeric → 0.
backend/app/services/gallery_filters.py:130
Functionnormalise_outcome
(value: Optional[str])
backend/app/services/gallery_filters.py:111
Functionnormalise_quality
(value: Optional[str])
backend/app/services/gallery_filters.py:107
Functionnormalise_query
Trim + cap a raw ``q`` query string. Never returns ``None``. Callers downstream of this can substring-compare directly without re-checking fo
backend/app/services/gallery_filters.py:79
Functionnotifications_config
Expose which notification channels are configured. Returns ``{success, data: {webhook_configured, discord_configured, slack_configured, email
backend/app/api/notifications.py:50
Functionnotify_if_configured
Fire-and-forget email dispatch for a finished simulation. Same contract as :func:`discord_notify.notify_if_configured` and :func:`slack_notif
backend/app/services/email_notify.py:653
Functionnotify_if_configured
Fire-and-forget Discord embed dispatch for a finished simulation. Safe to call from the simulation monitor thread — the POST runs in its own
backend/app/services/discord_notify.py:305
Functionnotify_if_configured
Fire-and-forget Telegram dispatch for a finished simulation. Same contract as :func:`discord_notify.notify_if_configured` and :func:`slack_no
backend/app/services/telegram_notify.py:433
Functionnotify_if_configured
Fire-and-forget Slack Block Kit dispatch for a finished sim. Same contract as :func:`discord_notify.notify_if_configured`. No-op when ``SLACK
backend/app/services/slack_notify.py:301
Functionoembed_provider
oEmbed 1.0 provider — auto-unfurl for MiroShark share URLs. Mounted at the **root** (no ``/api`` prefix) so the discovery tag in the share pa
backend/app/api/share.py:322
Functionoembed_to_xml
Serialize an oEmbed payload dict to the spec's XML representation. The oEmbed spec defines both a JSON and an XML format; a consumer selects
backend/app/services/oembed_service.py:192
Functionoutcome_reader
(sim_dir)
backend/tests/test_unit_feed_filters.py:492
← previousnext →2,001–2,100 of 3,647, ranked by callers