MCPcopy Create free account

hub / github.com/aaronjmars/MiroShark / functions

Functions3,647 in github.com/aaronjmars/MiroShark

↓ 1 callersFunctionmain
Run all smoke tests
scripts/smoke_test.py:88
↓ 1 callersFunctionmain
Main function
scripts/synthetic_seed.py:98
↓ 1 callersFunctionmask_token
Show the leading agent id prefix of a token for log lines / UI. Tokens look like ``agent_abc123:long-secret``. We surface the agent-id half (
backend/app/services/waybackclaw_publisher.py:169
↓ 1 callersFunctionmask_token
Show the first 6 chars of an auth token for log lines / UI. Mirrors :func:`webhook_service.mask_url`: never echo the full secret back to logs
backend/app/services/dkg_publisher.py:177
↓ 1 callersMethodmute
r"""Mute a user. Allows agent to mute another user. Checks for an existing mute record before adding a new one to the database.
backend/wonderwall/social_agent/agent_action.py:445
↓ 1 callersFunctionnormalise_sort
Default to ``date`` for any unrecognised input.
backend/app/services/gallery_filters.py:115
↓ 1 callersFunctionnormalize_similarity_adjustments
Normalize the adjustments to keep them in scale with overall similarities. Args: post_scores (list): List of post scores. ba
backend/wonderwall/social_platform/recsys.py:601
↓ 1 callersFunctionoutcome_reader
(_sim_dir)
backend/tests/test_unit_feed.py:482
↓ 1 callersMethodpanorama_search
[PanoramaSearch - Breadth Search] Get a comprehensive panoramic view, including all related content and historical/expired informati
backend/app/services/graph_tools.py:1095
↓ 1 callersFunctionparseAllowedHosts
Build Vite allowedHosts from Traefik DNS vars + optional extras.
frontend/vite.config.js:11
↓ 1 callersFunctionparse_tr_call
Body starts with `tr(` or `$tr(`, then args, then `)`. Returns (en, de, fr) or None if not parseable.
scripts/scan_i18n.py:99
↓ 1 callersMethodperform_action_by_llm
(self)
backend/wonderwall/social_agent/agent.py:254
↓ 1 callersMethodperform_interview
Perform an interview with the agent.
backend/wonderwall/social_agent/agent.py:487
↓ 1 callersFunctionphase1_ontology
Upload PDF and generate ontology.
backend/scripts/test_e2e_api.py:185
↓ 1 callersFunctionphase1_parse
()
backend/scripts/test_full_pipeline.py:75
↓ 1 callersFunctionphase2_graph
Build knowledge graph (async).
backend/scripts/test_e2e_api.py:217
↓ 1 callersFunctionphase2_ontology
(document_text)
backend/scripts/test_full_pipeline.py:92
↓ 1 callersFunctionphase3_create_simulation
Create simulation record.
backend/scripts/test_e2e_api.py:261
↓ 1 callersFunctionphase3_graph
(document_text, ontology)
backend/scripts/test_full_pipeline.py:120
↓ 1 callersFunctionphase4_prepare
Prepare simulation — generate profiles + config (async).
backend/scripts/test_e2e_api.py:282
↓ 1 callersFunctionphase4_profiles
(storage, graph_id, ontology)
backend/scripts/test_full_pipeline.py:172
↓ 1 callersFunctionphase5_config
(document_text, ontology, profiles)
backend/scripts/test_full_pipeline.py:228
↓ 1 callersFunctionphase5_config
Generate simulation config using the existing graph.
backend/scripts/test_pipeline_phase5_6.py:59
↓ 1 callersFunctionphase5_run
Run simulation for MAX_SIM_ROUNDS rounds.
backend/scripts/test_e2e_api.py:330
↓ 1 callersFunctionphase6_report
Generate analysis report (async).
backend/scripts/test_e2e_api.py:367
↓ 1 callersFunctionphase6_simulation
Run a 3-round simulation with the generated config.
backend/scripts/test_pipeline_phase5_6.py:146
↓ 1 callersFunctionphase7_retrieve_report
Retrieve and display the generated report.
backend/scripts/test_e2e_api.py:400
↓ 1 callersMethodplan_outline
Plan report outline Use LLM to analyze simulation requirements and plan report table of contents Args: progress
backend/app/services/report_agent.py:2041
↓ 1 callersMethodpoll_command
Poll for pending commands
backend/scripts/run_twitter_simulation.py:178
↓ 1 callersMethodpoll_command
Poll for pending commands
backend/scripts/run_parallel_simulation.py:330
↓ 1 callersMethodpoll_command
Poll for pending commands
backend/scripts/run_reddit_simulation.py:188
↓ 1 callersFunctionpoll_simulation
Poll simulation run-status until runner_status != running.
backend/scripts/test_e2e_api.py:155
↓ 1 callersMethodprepare_simulation
Prepare simulation environment (fully automated) Steps: 1. Read and filter entities from graph 2. Generate Wonderwal
backend/app/services/simulation_manager.py:297
↓ 1 callersFunctionprint_db_tables_summary
()
backend/wonderwall/social_platform/database.py:136
↓ 1 callersFunctionprocess_batch
(model: AutoModel, tokenizer: AutoTokenizer, batch_texts: List[str])
backend/wonderwall/social_platform/process_recsys_posts.py:24
↓ 1 callersMethodprocess_commands
Process all pending commands Returns: True means continue running, False means should exit
backend/scripts/run_twitter_simulation.py:351
↓ 1 callersMethodprocess_commands
Process all pending commands Returns: True means continue running, False means should exit
backend/scripts/run_parallel_simulation.py:656
↓ 1 callersMethodprocess_commands
Process all pending commands Returns: True means continue running, False means should exit
backend/scripts/run_reddit_simulation.py:361
↓ 1 callersMethodquick_search
[QuickSearch - Simple Search] Fast and lightweight retrieval tool.
backend/app/services/graph_tools.py:1164
↓ 1 callersFunctionquote_buy
Quote a buy order: spend ``amount_usd`` to get shares of ``outcome``. Uses the **mint-and-swap** mechanism standard in prediction markets: 1
backend/wonderwall/simulations/polymarket/amm.py:53
↓ 1 callersFunctionquote_sell
Quote a sell order: sell ``shares`` of ``outcome`` to get USD back. Uses the **split-swap-and-burn** mechanism: 1. Split ``shares`` into *x*
backend/wonderwall/simulations/polymarket/amm.py:102
↓ 1 callersFunctionreadInitial
()
frontend/src/i18n.js:11
↓ 1 callersFunctionread_citation
Return the persisted citation dict, or ``None`` if absent. Cheap read used by the EmbedDialog to render the existing citation badge without f
backend/app/services/dkg_publisher.py:433
↓ 1 callersMethodread_new_lines
Return complete lines appended since last call.
backend/app/utils/event_logger.py:320
↓ 1 callersFunctionread_record
Return the persisted submission record, or ``None`` if absent. Cheap read used by the EmbedDialog to render the existing snapshot badge witho
backend/app/services/waybackclaw_publisher.py:276
↓ 1 callersFunctionrec_sys_personalized_twh
( user_table: List[Dict[str, Any]], post_table: List[Dict[str, Any]], latest_post_coun
backend/wonderwall/social_platform/recsys.py:419
↓ 1 callersFunctionrec_sys_personalized_with_trace
This version: 1. If the number of posts is less than or equal to the maximum recommended length, each user gets all post IDs 2.
backend/wonderwall/social_platform/recsys.py:674
↓ 1 callersFunctionrec_sys_random
Randomly recommend posts to users. Args: user_table (List[Dict[str, Any]]): List of users. post_table (List[Dict[str, Any]])
backend/wonderwall/social_platform/recsys.py:136
↓ 1 callersFunctionrec_sys_reddit
Recommend posts based on Reddit-like hot score. Args: post_table (List[Dict[str, Any]]): List of posts. rec_matrix (List[Lis
backend/wonderwall/social_platform/recsys.py:213
↓ 1 callersMethodrecord_observation
(self, iteration: int, content: str)
backend/app/storage/reasoning_trace.py:103
↓ 1 callersMethodrecord_thought
(self, iteration: int, content: str)
backend/app/storage/reasoning_trace.py:89
↓ 1 callersMethodrecord_tool_call
( self, iteration: int, tool_name: str, params: Dict[str, Any] )
backend/app/storage/reasoning_trace.py:92
↓ 1 callersMethodrefresh
r"""Refresh to get recommended posts. This method invokes an asynchronous action to refresh and fetch recommended posts. On successfu
backend/wonderwall/social_agent/agent_action.py:97
↓ 1 callersMethodregister_cleanup
Register cleanup function Called when Flask application starts, ensures all simulation processes are cleaned up when server
backend/app/services/simulation_runner.py:1429
↓ 1 callersMethodremove_edge
(self, agent_id_0: int, agent_id_1: int)
backend/wonderwall/social_agent/agent_graph.py:219
↓ 1 callersFunctionrender_badge_svg_bytes
Convenience wrapper returning the SVG document as UTF-8 bytes. Includes the XML declaration so a stdout ``curl > badge.svg`` is a fully self-
backend/app/services/badge_service.py:328
↓ 1 callersFunctionrender_json_bytes
JSON form — pretty-printed (indent=2) so a curl into a file is immediately readable. Sorting is left in payload order so rounds stay chronolog
backend/app/services/transcript.py:581
↓ 1 callersFunctionrender_manifest_bytes
Pretty-print the manifest as UTF-8 bytes for inclusion in the ZIP. ``sort_keys=True`` + ``indent=2`` + trailing newline — same shape as ``rep
backend/app/services/archive_service.py:389
↓ 1 callersFunctionrender_thread_json
Pretty-print the thread payload as JSON. Caller-friendly indent so a ``curl`` to a file is immediately readable.
backend/app/services/thread_formatter.py:453
↓ 1 callersFunctionrender_thread_txt
Render the thread as a plain-text document. Each tweet is its own block separated by ``\\n---\\n`` so the operator can scan visually and copy
backend/app/services/thread_formatter.py:439
↓ 1 callersMethodrerank
Score each (query, doc) pair. Returns scores aligned to docs, or None if reranking is disabled or failed.
backend/app/storage/reranker_service.py:94
↓ 1 callersMethodrerank_with_indices
Return [(original_index, score), ...] sorted by score descending. Convenience wrapper around rerank().
backend/app/storage/reranker_service.py:116
↓ 1 callersMethodreset_graph
(self)
backend/wonderwall/social_agent/agent_graph.py:80
↓ 1 callersMethodresolve_batch
Find canonical matches for each new entity against the existing graph. Args: entities: [{name, type, attributes, ...}] a
backend/app/storage/entity_resolver.py:79
↓ 1 callersFunctionresolve_oracle_tools
Dispatch ``template['oracle_tools']`` and return a markdown evidence block. Returns an empty string if oracle seeds are disabled, the list is emp
backend/app/services/oracle_seed.py:118
↓ 1 callersFunctionretry_webhook_for_simulation
Manually re-dispatch the completion webhook for a finished sim. Mirrors :func:`fire_webhook_for_simulation` but **bypasses the per-process ``
backend/app/services/webhook_service.py:1082
↓ 1 callersFunctionrun_reddit_simulation
Run Reddit simulation Args: config: Simulation configuration simulation_dir: Simulation directory action_logger: Action l
backend/scripts/run_parallel_simulation.py:1623
↓ 1 callersFunctionrun_simulation
(config_path)
backend/scripts/test_3platform_interconnected.py:147
↓ 1 callersFunctionrun_simulation
Run all 3 platforms for 5 rounds.
backend/scripts/test_pipeline_twitter_polymarket.py:171
↓ 1 callersFunctionrun_synchronized_simulation
Run all platforms in lock-step: one round at a time across all platforms. Returns (twitter_result, reddit_result, polymarket_result).
backend/scripts/run_parallel_simulation.py:2332
↓ 1 callersFunctionrun_twitter_simulation
Run Twitter simulation Args: config: Simulation configuration simulation_dir: Simulation directory action_logger: Action
backend/scripts/run_parallel_simulation.py:1307
↓ 1 callersMethodrunning
(self)
backend/wonderwall/social_platform/platform.py:128
↓ 1 callersMethodsave_belief_states
Persist per-agent belief states so resume starts from this round's stance. Best-effort; failures don't block the simulation.
backend/scripts/belief_integration.py:150
↓ 1 callersMethodsave_extracted_text
Save extracted text
backend/app/models/project.py:290
↓ 1 callersMethodsave_file_to_project
Save uploaded file to project directory Args: project_id: Project ID file_storage: Flask FileStorage object
backend/app/models/project.py:259
↓ 1 callersFunctionsave_subscription
Persist a push subscription for a simulation. Deduplicates by endpoint so re-subscribing from the same browser does not create duplicate entr
backend/app/services/push_notification_service.py:108
↓ 1 callersFunctionsave_text
(name, text)
backend/scripts/test_full_pipeline.py:51
↓ 1 callersFunctionsave_text
(name, text)
backend/scripts/test_pipeline_phase5_6.py:46
↓ 1 callersFunctionscan
(frontend_root)
scripts/scan_i18n.py:127
↓ 1 callersMethodsearch_edges
Search edges via vector + BM25 + graph traversal, then rerank. Args: as_of: ISO-8601 point-in-time filter. i
backend/app/storage/search_service.py:173
↓ 1 callersMethodsearch_nodes
Search nodes via vector + BM25 + graph traversal, then rerank. Temporal + kind filters apply to the RELATION edges traversed for
backend/app/storage/search_service.py:219
↓ 1 callersMethodsend_batch_interview
Send a batch interview command Args: interviews: Interview list, each element contains {"agent_id": int, "prompt": str,
backend/app/services/simulation_ipc.py:214
↓ 1 callersMethodsend_close_env
Send a close environment command Args: timeout: Timeout in seconds Returns: IPCResponse
backend/app/services/simulation_ipc.py:244
↓ 1 callersMethodsend_interview
Send a single agent interview command Args: agent_id: Agent ID prompt: Interview question platfo
backend/app/services/simulation_ipc.py:179
↓ 1 callersFunctionsetup
()
backend/scripts/test_3platform_interconnected.py:47
↓ 1 callersFunctionsetup_signal_handlers
Set up signal handlers to ensure graceful exit on SIGTERM/SIGINT Give the program a chance to clean up resources (close database, environment
backend/scripts/run_twitter_simulation.py:769
↓ 1 callersFunctionsetup_signal_handlers
Set up signal handlers to ensure graceful exit on SIGTERM/SIGINT Persistent simulation scenario: does not exit after simulation, waits for i
backend/scripts/run_parallel_simulation.py:3122
↓ 1 callersFunctionsetup_signal_handlers
Set up signal handlers to ensure graceful exit on SIGTERM/SIGINT Give the program a chance to clean up resources (close database, environment
backend/scripts/run_reddit_simulation.py:836
↓ 1 callersFunctionsetup_simulation
Build simulation directory with all required files.
backend/scripts/test_pipeline_twitter_polymarket.py:40
↓ 1 callersFunctionsetup_wonderwall_logging
Configure Wonderwall logging with fixed-name log files
backend/scripts/run_twitter_simulation.py:94
↓ 1 callersFunctionsetup_wonderwall_logging
Configure Wonderwall logging with fixed-name log files
backend/scripts/run_reddit_simulation.py:104
↓ 1 callersMethodshould_enrich
Decide whether web enrichment is warranted. Returns True if: - Entity type is a known notable type (public figures, orgs) - O
backend/app/services/web_enrichment.py:87
↓ 1 callersFunctionshow_expected_formats
Display Wonderwall expected formats
backend/scripts/test_profile_format.py:130
↓ 1 callersMethodshutdown
(self)
backend/scripts/mcp_agent_bridge.py:201
↓ 1 callersMethodshutdown
(self)
backend/scripts/mcp_agent_bridge.py:320
↓ 1 callersFunctionsort_cards
Return a new list sorted by the requested key, newest/largest first.
backend/app/services/gallery_filters.py:334
↓ 1 callersFunctionsplit_text_into_chunks
Split text into smaller chunks Args: text: Original text chunk_size: Number of characters per chunk overlap: Number
backend/app/utils/file_parser.py:146
↓ 1 callersMethodstart_round
Initialize a new round record.
backend/scripts/round_memory.py:192
↓ 1 callersMethodstart_section
Begin buffering steps for a new section. Returns a section UUID.
backend/app/storage/reasoning_trace.py:78
↓ 1 callersMethodstop_all
Stop all updaters
backend/app/services/graph_memory_updater.py:462
← previousnext →1,301–1,400 of 3,647, ranked by callers