MCPcopy Create free account

hub / github.com/aaronjmars/MiroShark / functions

Functions3,647 in github.com/aaronjmars/MiroShark

Function_send
()
backend/app/services/discord_notify.py:294
Function_send
()
backend/app/services/telegram_notify.py:419
Function_send
()
backend/app/services/slack_notify.py:285
Method_set
(tx)
backend/app/storage/neo4j_storage.py:171
Function_spy
(a, b)
backend/tests/test_unit_admin_auth.py:224
Function_trending_fetch_one
Fetch and parse a single feed. Returns [] on any failure.
backend/app/api/simulation.py:1035
Function_trending_key
Sort key for ``trending`` — highest cumulative share-surface serves first, breaks ties on date so the most-served-and-most-recent floats above
backend/app/services/gallery_filters.py:315
Function_utf8_open
Wrapper for open() that defaults to UTF-8 encoding for text mode This fixes the issue where third-party libraries (e.g., Wonderwall)
backend/scripts/run_parallel_simulation.py:57
Function_validate_url_simulation_id
Reject requests whose URL-derived simulation_id could cause path traversal.
backend/app/api/report.py:25
Function_validate_url_simulation_id
Reject requests whose URL-derived simulation_id could cause path traversal.
backend/app/api/simulation.py:34
Method_worker_loop
Background worker loop - batch send activities to graph by platform
backend/app/services/graph_memory_updater.py:278
Method_wrapped
(*args, **kwargs)
backend/app/utils/trace_context.py:76
Function_wrapper
(*args, **kwargs)
backend/app/api/simulation.py:120
Method_write_loop
(self)
backend/app/utils/event_logger.py:222
Methodadd_edge
(self, src_agent_id: int, dst_agent_id: int)
backend/wonderwall/social_agent/agent_graph.py:56
Functionadd_progress_callback
(msg, progress_ratio)
backend/app/api/graph.py:461
Methodadd_text
Process text: NER/RE → create nodes/edges → return episode_id. This is synchronous (unlike Zep Cloud's async episodes).
backend/app/storage/graph_storage.py:36
Methodadd_text_batch
Batch-add text chunks with progress reporting.
backend/app/storage/neo4j_storage.py:467
Methodadd_text_batch
Batch-add text chunks. Returns list of episode_ids.
backend/app/storage/graph_storage.py:43
Functionapi_base_url
Base URL for the running MiroShark backend under test.
backend/tests/conftest.py:73
Methodapi_key
(self)
backend/app/storage/embedding_service.py:64
FunctionaskMode
(question, opts = {})
frontend/src/api/simulation.js:1850
Functionask_mode
Question-only pipeline: turn a bare question into a seed document. Request (JSON): ``{"question": "..."}``. Returns a synthesized title, simu
backend/app/api/simulation.py:710
Functionavg_position
Mean of an agent's per-topic belief positions for one round. ``positions`` is the ``{topic: float}`` dict from one agent's entry in a snapsho
backend/app/utils/belief.py:54
Methodbase_url
(self)
backend/app/utils/searxng_client.py:52
Methodbase_url
(self)
backend/app/storage/embedding_service.py:60
Functionbasic_config
A ``simulation_config.json`` dict shape.
backend/tests/test_unit_repro_export.py:135
Functionbasic_state
A SimulationState dict at the shape ``state.to_dict()`` returns.
backend/tests/test_unit_repro_export.py:106
Functionbatch_status_lookup
Multi-sim status lookup — poll up to 20 simulations in one call. The publish-gated per-sim surfaces in this codebase answer the question *"wh
backend/app/api/simulation.py:8057
Functionbearish_low_conf_payload
()
backend/tests/test_unit_webhook_events.py:61
Functionblockquote
({ tokens })
frontend/src/utils/markdown.js:41
Functionboom
(*_a, **_kw)
backend/tests/test_unit_telegram_notify.py:347
Functionboom
(*_args, **_kwargs)
backend/tests/test_unit_discord_notify.py:315
Functionboom
(*_a, **_kw)
backend/tests/test_unit_slack_notify.py:283
Functionboom
(url, payload, timeout)
backend/tests/test_unit_webhook.py:370
FunctionbranchCounterfactual
(parentSimulationId, opts)
frontend/src/api/simulation.js:1832
Functionbranch_counterfactual_simulation
Branch a simulation with a narrative injection at a chosen round. Request (JSON):: { "parent_simulation_id": "sim_xxxx",
backend/app/api/simulation.py:1479
Methodbrowse_markets
Browse active markets with current prices.
backend/wonderwall/simulations/polymarket/platform.py:295
FunctionbuildGraph
(data)
frontend/src/api/graph.js:26
FunctionbuildScenarioShareUrl
({ origin, scenario, url, ask } = {})
frontend/src/utils/urlParams.js:99
FunctionbuildTemplateShareUrl
(slug, origin)
frontend/src/utils/urlParams.js:112
FunctionbuildTitledHeader
({ title, subtitle = '', width })
frontend/src/utils/chartExport.js:33
FunctionbuildWarpcastComposeUrl
(shareUrl)
frontend/src/api/simulation.js:660
Functionbuild_activity_feed
Return the activity-feed envelope. Result shape:: { "schema_version": "1", "count": <int>, "results": [
backend/app/services/activity_feed.py:260
Functionbuild_agent_export
Compose the agents.json envelope for a published sim. Reads ``reddit_profiles.json`` (then ``polymarket_profiles.json``) for the roster and `
backend/app/services/agent_export.py:355
Functionbuild_agent_sparklines
Assemble the full sparklines payload for a simulation directory. Returns ``None`` when no agent holds a usable belief position in any round (
backend/app/services/agent_sparklines_service.py:176
Functionbuild_agent_toolset
Return the subset of the registry this persona may call. An empty return means the agent has no tools (either globally off, persona opted out
backend/app/services/agent_mcp_tools.py:119
Functionbuild_archive
Top-level entry point: bundle a published simulation into a ZIP. Args: sim_id: The simulation identifier — used in the manifest and
backend/app/services/archive_service.py:439
Functionbuild_batch_status
Return the batch-status envelope for ``sim_ids``. Result shape:: { "schema_version": "1", "count": <int>,
backend/app/services/batch_status.py:247
Functionbuild_clone_payload
Compose the clone-payload response for a published sim. Reads ``state.json`` (the structural fields ``/create`` accepts) and ``simulation_con
backend/app/services/clone_service.py:182
Functionbuild_cost_payload
Build the ``cost.json`` payload for a simulation, or ``None`` when no LLM-call events have been logged yet. ``sim_dir`` is the absolute per-s
backend/app/services/cost_service.py:77
Functionbuild_frame_metadata
Return the Farcaster Frame v2 metadata dict for a simulation. Returns a stable shape regardless of whether the sim has trajectory data — the
backend/app/services/frame_metadata.py:147
Functionbuild_graph
API 2: Build graph based on project_id Request (JSON): { "project_id": "proj_xxxx", // Required, from API 1
backend/app/api/graph.py:286
Functionbuild_lineage_payload
Compose the full lineage response payload for ``simulation_id``. Args: simulation_id: The sim whose lineage view we're building.
backend/app/services/lineage_service.py:310
Functionbuild_notebook
Compose the nbformat 4 notebook dict from its inputs. Args: sim_id: The simulation id (echoed in header / footer). csv_text: The
backend/app/services/notebook_export.py:424
Functionbuild_oembed_payload
Build the oEmbed ``rich`` payload for a published simulation. ``base_url`` is the deployment's canonical origin (no trailing slash); the ``th
backend/app/services/oembed_service.py:158
Functionbuild_repro_config
Compose a reproducibility blob from on-disk simulation artifacts. Args: state_dict: The serialized ``SimulationState`` dict (typically
backend/app/services/repro_export.py:360
Functionbuild_response_payload
Build the envelope returned by ``GET /api/surfaces.json``. Shape:: { "schema_version": "1", "count": <int>,
backend/app/services/surfaces_catalog.py:526
Functionbuild_response_payload
Build the full envelope returned by ``GET /api/ecosystem.json``. Shape:: { "schema_version": "1", "count": <int>,
backend/app/services/ecosystem_catalog.py:248
Functionbuild_robots_txt
Render the ``robots.txt`` document for the public deployment. Always allows crawlers on the public discovery surfaces (``/share/``, ``/watch/
backend/app/services/sitemap.py:324
Functionbuild_sitemap
Render the sitemap XML document for the public simulation corpus. Each public sim contributes two ``<url>`` blocks: the canonical ``/share/<i
backend/app/services/sitemap.py:235
Functionbuild_status
Return the platform-status envelope. Result shape:: { "ok": true, "schema_version": "1", "queue_depth": <i
backend/app/services/platform_status.py:156
Methodbuild_system_prompt
(self, user_info)
backend/wonderwall/simulations/polymarket/prompts.py:25
Methodbuild_system_prompt
(self, user_info)
backend/wonderwall/simulations/social_media/prompts.py:68
Methodbuild_system_prompt
(self, user_info)
backend/wonderwall/simulations/social_media/prompts.py:81
Functionbuild_task
()
backend/app/api/graph.py:410
Functionbuild_test_payload
Build the sample :class:`WebhookPayload` used by the Settings ``Send test event`` flow. Each notify channel (``slack``/``discord``/``telegram
backend/app/services/webhook_service.py:871
Functionbullish_high_conf_payload
A canonical completed-sim payload: Bullish leader at 75%, excellent quality.
backend/tests/test_unit_webhook_events.py:38
Methodbuy_shares
Buy shares of an outcome in a prediction market. Spend USD to buy shares. The price is determined by the AMM — buying more shares pus
backend/wonderwall/simulations/polymarket/actions.py:47
Methodbuy_shares
Buy shares in a market outcome using the AMM.
backend/wonderwall/simulations/polymarket/platform.py:122
Functioncall_tool
(name: str, arguments: Dict[str, Any])
backend/mcp_server.py:332
Methodcall_tool
(self, name, args)
backend/tests/test_unit_oracle_seed.py:56
FunctioncanCopyImageToClipboard
()
frontend/src/utils/chartExport.js:278
Methodcancel_section
Discard buffered steps without flushing (e.g., on error).
backend/app/storage/reasoning_trace.py:117
Functioncapture
(url, payload, timeout)
backend/tests/test_unit_webhook.py:415
Functioncard_builder
(state, _sim_dir)
backend/tests/test_unit_feed_filters.py:141
Functioncatalog_count
Number of surfaces currently catalogued.
backend/app/services/surfaces_catalog.py:489
Functioncatalog_etag
Short ETag derived from the catalog length. Changes whenever a new surface is appended — same posture as the ``/api/stats`` ETag (derived fro
backend/app/services/surfaces_catalog.py:507
Functioncatalog_etag
Short ETag derived from the catalog length + schema version. Changes whenever a new integrator is appended — same posture as the ``surfaces_c
backend/app/services/ecosystem_catalog.py:238
Methodchat
(self, messages, temperature=0.7, max_tokens=1024)
backend/tests/test_unit_graph_tools_locale.py:32
FunctionchatWithReport
(data)
frontend/src/api/report.js:41
Methodchat_json
Send a chat request and return parsed JSON. Args: messages: List of messages temperature: Ignored
backend/app/utils/claude_code_client.py:183
Functionchat_with_report_agent
Chat with Report Agent Report Agent can autonomously call retrieval tools during conversation to answer questions Request (JSON):
backend/app/api/report.py:484
Functioncheck_report_status
Check if a simulation has a report and its status Used by frontend to determine whether to unlock Interview feature Returns: {
backend/app/api/report.py:595
Methodcleanup_handler
Signal handler: clean up simulation processes first, then call original handler
backend/app/services/simulation_runner.py:1460
Methodcleanup_old_tasks
Clean up old tasks
backend/app/models/task.py:172
FunctionclearPendingUpload
()
frontend/src/store/pendingUpload.js:45
Functionclear_belief_context
Remove the belief state section from an agent's system message.
backend/wonderwall/social_agent/belief_state.py:282
Functionclear_cross_platform_context
Remove the cross-platform digest section from an agent's system message. Args: agent: A SocialAgent instance.
backend/scripts/cross_platform_digest.py:221
Functionclear_round_memory
Remove the round memory section from an agent's system message.
backend/scripts/round_memory.py:469
Functionclient
()
backend/tests/test_unit_notifications_config.py:40
Methodclose
Close the Neo4j driver connection.
backend/app/storage/neo4j_storage.py:68
Methodclose
(self)
backend/tests/test_unit_oracle_seed.py:59
Methodclose
(self)
backend/wonderwall/social_agent/agent_graph.py:34
FunctioncloseSimulationEnv
(data)
frontend/src/api/simulation.js:196
Functionclose_simulation_env
Shut down simulation environment Send shutdown command to simulation for graceful exit from command waiting mode. Note: This is differe
backend/app/api/simulation.py:8949
Functioncmd_ask
(args: argparse.Namespace)
backend/cli.py:87
Functioncmd_cost
(args: argparse.Namespace)
backend/cli.py:274
Functioncmd_frame
(args: argparse.Namespace)
backend/cli.py:214
Functioncmd_health
(args: argparse.Namespace)
backend/cli.py:304
← previousnext →1,601–1,700 of 3,647, ranked by callers