Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aaronjmars/MiroShark
/ functions
Functions
3,647 in github.com/aaronjmars/MiroShark
⨍
Functions
3,647
◇
Types & classes
172
↳
Endpoints
175
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
Method
add_edge
(self, src_agent_id: int, dst_agent_id: int)
backend/wonderwall/social_agent/agent_graph.py:56
Function
add_progress_callback
(msg, progress_ratio)
backend/app/api/graph.py:461
Method
add_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
Method
add_text_batch
Batch-add text chunks with progress reporting.
backend/app/storage/neo4j_storage.py:467
Method
add_text_batch
Batch-add text chunks. Returns list of episode_ids.
backend/app/storage/graph_storage.py:43
Function
api_base_url
Base URL for the running MiroShark backend under test.
backend/tests/conftest.py:73
Method
api_key
(self)
backend/app/storage/embedding_service.py:64
Function
askMode
(question, opts = {})
frontend/src/api/simulation.js:1850
Function
ask_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
Function
avg_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
Method
base_url
(self)
backend/app/utils/searxng_client.py:52
Method
base_url
(self)
backend/app/storage/embedding_service.py:60
Function
basic_config
A ``simulation_config.json`` dict shape.
backend/tests/test_unit_repro_export.py:135
Function
basic_state
A SimulationState dict at the shape ``state.to_dict()`` returns.
backend/tests/test_unit_repro_export.py:106
Function
batch_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
Function
bearish_low_conf_payload
()
backend/tests/test_unit_webhook_events.py:61
Function
blockquote
({ tokens })
frontend/src/utils/markdown.js:41
Function
boom
(*_a, **_kw)
backend/tests/test_unit_telegram_notify.py:347
Function
boom
(*_args, **_kwargs)
backend/tests/test_unit_discord_notify.py:315
Function
boom
(*_a, **_kw)
backend/tests/test_unit_slack_notify.py:283
Function
boom
(url, payload, timeout)
backend/tests/test_unit_webhook.py:370
Function
branchCounterfactual
(parentSimulationId, opts)
frontend/src/api/simulation.js:1832
Function
branch_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
Method
browse_markets
Browse active markets with current prices.
backend/wonderwall/simulations/polymarket/platform.py:295
Function
buildGraph
(data)
frontend/src/api/graph.js:26
Function
buildScenarioShareUrl
({ origin, scenario, url, ask } = {})
frontend/src/utils/urlParams.js:99
Function
buildTemplateShareUrl
(slug, origin)
frontend/src/utils/urlParams.js:112
Function
buildTitledHeader
({ title, subtitle = '', width })
frontend/src/utils/chartExport.js:33
Function
buildWarpcastComposeUrl
(shareUrl)
frontend/src/api/simulation.js:660
Function
build_activity_feed
Return the activity-feed envelope. Result shape:: { "schema_version": "1", "count": <int>, "results": [
backend/app/services/activity_feed.py:260
Function
build_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
Function
build_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
Function
build_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
Function
build_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
Function
build_batch_status
Return the batch-status envelope for ``sim_ids``. Result shape:: { "schema_version": "1", "count": <int>,
backend/app/services/batch_status.py:247
Function
build_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
Function
build_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
Function
build_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
Function
build_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
Function
build_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
Function
build_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
Function
build_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
Function
build_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
Function
build_response_payload
Build the envelope returned by ``GET /api/surfaces.json``. Shape:: { "schema_version": "1", "count": <int>,
backend/app/services/surfaces_catalog.py:526
Function
build_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
Function
build_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
Function
build_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
Function
build_status
Return the platform-status envelope. Result shape:: { "ok": true, "schema_version": "1", "queue_depth": <i
backend/app/services/platform_status.py:156
Method
build_system_prompt
(self, user_info)
backend/wonderwall/simulations/polymarket/prompts.py:25
Method
build_system_prompt
(self, user_info)
backend/wonderwall/simulations/social_media/prompts.py:68
Method
build_system_prompt
(self, user_info)
backend/wonderwall/simulations/social_media/prompts.py:81
Function
build_task
()
backend/app/api/graph.py:410
Function
build_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
Function
bullish_high_conf_payload
A canonical completed-sim payload: Bullish leader at 75%, excellent quality.
backend/tests/test_unit_webhook_events.py:38
Method
buy_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
Method
buy_shares
Buy shares in a market outcome using the AMM.
backend/wonderwall/simulations/polymarket/platform.py:122
Function
call_tool
(name: str, arguments: Dict[str, Any])
backend/mcp_server.py:332
Method
call_tool
(self, name, args)
backend/tests/test_unit_oracle_seed.py:56
Function
canCopyImageToClipboard
()
frontend/src/utils/chartExport.js:278
Method
cancel_section
Discard buffered steps without flushing (e.g., on error).
backend/app/storage/reasoning_trace.py:117
Function
capture
(url, payload, timeout)
backend/tests/test_unit_webhook.py:415
Function
card_builder
(state, _sim_dir)
backend/tests/test_unit_feed_filters.py:141
Function
catalog_count
Number of surfaces currently catalogued.
backend/app/services/surfaces_catalog.py:489
Function
catalog_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
Function
catalog_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
Method
chat
(self, messages, temperature=0.7, max_tokens=1024)
backend/tests/test_unit_graph_tools_locale.py:32
Function
chatWithReport
(data)
frontend/src/api/report.js:41
Method
chat_json
Send a chat request and return parsed JSON. Args: messages: List of messages temperature: Ignored
backend/app/utils/claude_code_client.py:183
Function
chat_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
Function
check_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
Method
cleanup_handler
Signal handler: clean up simulation processes first, then call original handler
backend/app/services/simulation_runner.py:1460
Method
cleanup_old_tasks
Clean up old tasks
backend/app/models/task.py:172
Function
clearPendingUpload
()
frontend/src/store/pendingUpload.js:45
Function
clear_belief_context
Remove the belief state section from an agent's system message.
backend/wonderwall/social_agent/belief_state.py:282
Function
clear_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
Function
clear_round_memory
Remove the round memory section from an agent's system message.
backend/scripts/round_memory.py:469
Function
client
()
backend/tests/test_unit_notifications_config.py:40
Method
close
Close the Neo4j driver connection.
backend/app/storage/neo4j_storage.py:68
Method
close
(self)
backend/tests/test_unit_oracle_seed.py:59
Method
close
(self)
backend/wonderwall/social_agent/agent_graph.py:34
Function
closeSimulationEnv
(data)
frontend/src/api/simulation.js:196
Function
close_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
Function
cmd_ask
(args: argparse.Namespace)
backend/cli.py:87
Function
cmd_cost
(args: argparse.Namespace)
backend/cli.py:274
Function
cmd_frame
(args: argparse.Namespace)
backend/cli.py:214
Function
cmd_health
(args: argparse.Namespace)
backend/cli.py:304
← previous
next →
1,601–1,700 of 3,647, ranked by callers