MemoryBear Equip AI with human-like memory capability
This report presents the forensic synthetic code analysis of SuanmoSuanyangTechnology/MemoryBear, a Python project with 5,197 GitHub stars. SynthScan v2.0 examined 493,119 lines of code across 2099 source files, recording 7699 pattern matches distributed across 23 syntactic categories. The overall adjusted score of 19.4 places this repository in the Moderate AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 7699 distinct pattern matches across 23 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | mem-knowledge/src/db.py | 121 | except Exception: | CODE |
| LOW | mem-knowledge/src/runtime.py | 68 | except Exception as exc: | CODE |
| LOW | mem-knowledge/src/tasks/dispatch.py | 51 | except Exception as exc: | CODE |
| LOW | mem-knowledge/src/tasks/dispatch.py | 72 | except Exception: | CODE |
| LOW | mem-knowledge/src/repositories/file.py | 45 | except Exception: | CODE |
| LOW | mem-knowledge/src/repositories/file.py | 92 | except Exception: | CODE |
| LOW | mem-knowledge/src/repositories/document.py | 50 | except Exception: | CODE |
| LOW⚡ | mem-knowledge/src/repositories/document.py | 106 | except Exception: | CODE |
| LOW⚡ | mem-knowledge/src/repositories/document.py | 120 | except Exception: | CODE |
| LOW⚡ | mem-knowledge/src/repositories/knowledge_share.py | 59 | except Exception: | CODE |
| LOW | mem-knowledge/src/repositories/knowledge_share.py | 114 | except Exception: | CODE |
| LOW | mem-knowledge/src/repositories/knowledge_share.py | 137 | except Exception: | CODE |
| LOW⚡ | mem-knowledge/src/repositories/knowledge.py | 86 | except Exception: | CODE |
| LOW⚡ | mem-knowledge/src/repositories/knowledge.py | 216 | except Exception: | CODE |
| LOW | mem-knowledge/src/rag/retrieval/async_elasticsearch.py | 419 | except Exception: | CODE |
| LOW | mem-knowledge/src/rag/metadata/auto_filter.py | 119 | except Exception: | CODE |
| LOW | mem-knowledge/src/api/routes/health.py | 35 | except Exception as exc: | CODE |
| LOW | mem-knowledge/src/api/routes/chunk.py | 77 | except Exception as exc: | CODE |
| LOW | mem-knowledge/src/api/routes/knowledge.py | 310 | except Exception: | CODE |
| LOW | mem-knowledge/src/api/routes/knowledge.py | 325 | except Exception: | CODE |
| LOW | mem-knowledge/src/infrastructure/storage.py | 95 | except Exception: | CODE |
| LOW | mem-knowledge/src/services/knowledge_metadata.py | 313 | except Exception: | CODE |
| LOW | mem-knowledge/src/services/knowledge_metadata.py | 432 | except Exception: | CODE |
| LOW | mem-knowledge/src/services/knowledge_metadata.py | 492 | except Exception: | CODE |
| LOW | mem-knowledge/src/services/knowledge_metadata.py | 584 | except Exception: | CODE |
| LOW | mem-knowledge/src/services/knowledge_retrieval.py | 215 | except Exception as exc: | CODE |
| LOW | mem-knowledge/src/services/chunk.py | 377 | except Exception: | CODE |
| LOW | mem-knowledge/src/services/chunk.py | 398 | except Exception as exc: | CODE |
| LOW | mem-knowledge/src/services/chunk.py | 424 | except Exception as exc: | CODE |
| LOW⚡ | mem-knowledge/src/services/chunk.py | 539 | except Exception: | CODE |
| LOW | mem-knowledge/src/services/file.py | 213 | except Exception: | CODE |
| LOW | mem-knowledge/src/services/file.py | 217 | except Exception: | CODE |
| LOW | mem-knowledge/src/services/file.py | 242 | except Exception: | CODE |
| LOW | mem-knowledge/src/services/file.py | 282 | except Exception: | CODE |
| LOW | mem-knowledge/src/services/file.py | 302 | except Exception: | CODE |
| LOW | mem-knowledge/src/services/file.py | 380 | except Exception: | CODE |
| LOW | mem-knowledge/src/services/qa_import.py | 91 | except Exception: | CODE |
| LOW | mem-knowledge/src/services/qa_import.py | 112 | except Exception: | CODE |
| LOW | mem-knowledge/src/services/document.py | 224 | except Exception: | STRING |
| LOW | mem-knowledge/src/services/document.py | 339 | except Exception: | STRING |
| LOW | mem-knowledge/src/services/document.py | 410 | except Exception: | STRING |
| LOW | mem-knowledge/src/services/document.py | 447 | except Exception: | STRING |
| LOW | …wledge/src/services/knowledge_retrieval_preparation.py | 313 | except Exception: | CODE |
| LOW | mem-knowledge/src/services/knowledge_commands.py | 65 | except Exception: | CODE |
| LOW | mem-knowledge/src/services/knowledge_commands.py | 89 | except Exception: | CODE |
| LOW | mem-knowledge/src/services/knowledge.py | 537 | except Exception: | CODE |
| LOW | mem-knowledge/src/services/qa_export.py | 107 | except Exception: | CODE |
| LOW | mem-knowledge/src/services/qa_export.py | 128 | except Exception: | CODE |
| LOW | sandbox/runtime/pool/zygote_worker.py | 154 | except Exception as e: # noqa: BLE001 - best effort | CODE |
| LOW | sandbox/runtime/pool/zygote_worker.py | 168 | except Exception as e: # noqa: BLE001 - best effort, skip failures | CODE |
| LOW | sandbox/runtime/pool/zygote_worker.py | 239 | except Exception: | CODE |
| LOW | sandbox/runtime/pool/zygote_worker.py | 331 | except Exception: | CODE |
| LOW | sandbox/runtime/pool/zygote_worker.py | 339 | except Exception: | CODE |
| LOW | sandbox/runtime/pool/zygote_worker.py | 459 | except Exception: | CODE |
| LOW | sandbox/runtime/pool/zygote_worker.py | 465 | except Exception: | CODE |
| MEDIUM | sandbox/runtime/pool/zygote_worker.py | 195 | def _read_ctrl_frames(self): | CODE |
| LOW | sandbox/tests/stress_test.py | 352 | except Exception as e: | CODE |
| LOW | sandbox/tests/stress_test.py | 889 | except Exception as e: | CODE |
| LOW | packages/storage-core/src/mem_storage/local.py | 53 | except Exception as exc: | CODE |
| LOW | packages/storage-core/src/mem_storage/local.py | 78 | except Exception as exc: | CODE |
| 2182 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | web/src/views/Conversation/utils/conversationActions.ts | 78 | export function createConversationActions(deps: ConversationActionDeps) { | CODE |
| LOW | mem-knowledge/scripts/compare_legacy_contracts.py | 61 | def normalize_internal_operation(method: str, legacy_path: str) -> tuple[str, str]: | CODE |
| LOW | mem-knowledge/scripts/compare_legacy_contracts.py | 108 | def collect_legacy_operations( | CODE |
| LOW | mem-knowledge/scripts/compare_legacy_contracts.py | 137 | def compare_openapi_operations( | CODE |
| LOW | mem-knowledge/scripts/compare_legacy_contracts.py | 177 | def _operation_response_schema( | CODE |
| LOW | mem-knowledge/scripts/compare_legacy_contracts.py | 195 | def compare_openapi_responses( | CODE |
| LOW | mem-knowledge/src/db.py | 85 | def _get_sync_session_factory(self) -> sessionmaker[Session]: | CODE |
| LOW | mem-knowledge/src/db.py | 95 | def _get_async_session_factory(self) -> async_sessionmaker[AsyncSession]: | CODE |
| LOW | mem-knowledge/src/config.py | 262 | def settings_customise_sources( | CODE |
| LOW | mem-knowledge/src/runtime.py | 86 | def reset_worker_runtime_after_fork() -> ProcessRuntime: | CODE |
| LOW | mem-knowledge/src/runtime.py | 105 | def shutdown_worker_runtime_sync() -> None: | CODE |
| LOW | mem-knowledge/src/tasks/celery_worker.py | 18 | def initialize_worker_process(**kwargs: object) -> None: | CODE |
| LOW | mem-knowledge/src/utils/datetime_utils.py | 54 | def normalize_progress_message_timestamps( | CODE |
| LOW | mem-knowledge/src/utils/datetime_utils.py | 76 | def parse_timestamp_to_utc_naive(timestamp: int | float | None) -> datetime | None: | CODE |
| LOW | mem-knowledge/src/utils/datetime_utils.py | 107 | def parse_metadata_time_to_utc_naive( | CODE |
| LOW | mem-knowledge/src/repositories/knowledge_metadata.py | 35 | async def get_by_knowledge_id_async( | CODE |
| LOW | mem-knowledge/src/repositories/knowledge_metadata.py | 47 | async def get_by_knowledge_ids_async( | CODE |
| LOW | mem-knowledge/src/repositories/knowledge_metadata.py | 97 | async def delete_by_knowledge_id_async( | CODE |
| LOW | mem-knowledge/src/repositories/knowledge_metadata.py | 120 | async def get_bindings_by_metadata_id_async( | CODE |
| LOW | mem-knowledge/src/repositories/knowledge_metadata.py | 132 | async def get_bindings_by_document_id_async( | CODE |
| LOW | mem-knowledge/src/repositories/knowledge_metadata.py | 144 | async def delete_bindings_by_metadata_id_async( | CODE |
| LOW | mem-knowledge/src/repositories/knowledge_metadata.py | 157 | async def delete_bindings_by_document_id_async( | CODE |
| LOW | mem-knowledge/src/repositories/knowledge_metadata.py | 186 | async def count_active_bindings_by_metadata_ids_async( | CODE |
| LOW | mem-knowledge/src/repositories/file.py | 17 | async def get_files_paginated_async( | CODE |
| LOW | mem-knowledge/src/repositories/file.py | 56 | async def get_file_by_id_in_workspace_async( | CODE |
| LOW | mem-knowledge/src/repositories/file.py | 76 | async def get_files_by_parent_id_async( | CODE |
| LOW | mem-knowledge/src/repositories/document.py | 22 | async def get_documents_paginated_async( | CODE |
| LOW | mem-knowledge/src/repositories/document.py | 64 | async def get_document_by_id_in_workspace_async( | CODE |
| LOW | mem-knowledge/src/repositories/document.py | 84 | async def reset_documents_progress_by_kb_id_async( | CODE |
| LOW⚡ | mem-knowledge/src/repositories/document.py | 112 | async def delete_document_by_id_async( | CODE |
| LOW | mem-knowledge/src/repositories/knowledge_share.py | 17 | async def get_knowledgeshares_paginated_async( | CODE |
| LOW | mem-knowledge/src/repositories/knowledge_share.py | 38 | async def get_source_kb_ids_by_target_kb_id_async( | CODE |
| LOW⚡ | mem-knowledge/src/repositories/knowledge_share.py | 49 | async def create_knowledgeshare_async( | CODE |
| LOW⚡ | mem-knowledge/src/repositories/knowledge_share.py | 67 | async def get_knowledgeshare_by_id_async( | CODE |
| LOW | mem-knowledge/src/repositories/knowledge_share.py | 82 | async def get_knowledgeshare_by_id_in_source_workspace_async( | CODE |
| LOW | mem-knowledge/src/repositories/knowledge_share.py | 99 | async def delete_knowledgeshare_by_id_async( | CODE |
| LOW | mem-knowledge/src/repositories/knowledge_share.py | 120 | async def delete_knowledgeshare_by_id_in_source_workspace_async( | CODE |
| LOW | mem-knowledge/src/repositories/knowledge.py | 38 | async def get_knowledges_paginated_async( | CODE |
| LOW | mem-knowledge/src/repositories/knowledge.py | 61 | async def get_chunked_knowledgeids_async(db: AsyncSession, filters: list) -> list: | CODE |
| LOW⚡ | mem-knowledge/src/repositories/knowledge.py | 92 | async def get_knowledge_by_id_async( | CODE |
| LOW⚡ | mem-knowledge/src/repositories/knowledge.py | 100 | async def get_knowledge_by_id_in_workspace_async( | CODE |
| LOW | mem-knowledge/src/repositories/knowledge.py | 114 | async def get_knowledge_by_external_id_async( | CODE |
| LOW | mem-knowledge/src/repositories/knowledge.py | 129 | async def get_knowledge_ids_by_external_ids_async( | CODE |
| LOW | mem-knowledge/src/repositories/knowledge.py | 144 | async def get_knowledges_by_parent_id_async( | CODE |
| LOW | mem-knowledge/src/repositories/knowledge.py | 157 | async def get_knowledges_by_parent_ids_async( | CODE |
| LOW | mem-knowledge/src/repositories/knowledge.py | 175 | async def get_document_counts_by_knowledge_ids_async( | CODE |
| LOW | mem-knowledge/src/repositories/knowledge.py | 193 | async def get_knowledge_by_name_async( | CODE |
| LOW⚡ | mem-knowledge/src/repositories/knowledge.py | 208 | async def delete_knowledge_by_id_async( | CODE |
| LOW⚡ | mem-knowledge/src/repositories/knowledge.py | 222 | async def get_total_doc_num_by_workspace_async( | CODE |
| LOW | mem-knowledge/src/repositories/knowledge.py | 235 | async def get_total_chunk_num_by_workspace_async( | CODE |
| LOW | mem-knowledge/src/repositories/knowledge.py | 248 | async def get_total_kb_count_by_workspace_async( | CODE |
| LOW | mem-knowledge/src/repositories/knowledge.py | 260 | async def get_user_kb_chunk_num_by_workspace_async( | CODE |
| LOW | mem-knowledge/src/repositories/knowledge.py | 274 | async def get_non_user_kb_count_by_workspace_async( | CODE |
| LOW | mem-knowledge/src/rag/parser_config.py | 27 | def build_default_knowledge_parser_config() -> dict[str, Any]: | CODE |
| LOW | mem-knowledge/src/rag/parser_config.py | 53 | def build_default_document_parser_config() -> dict[str, Any]: | CODE |
| LOW | mem-knowledge/src/rag/parser_config.py | 78 | def normalize_new_knowledge_parser_config( | CODE |
| LOW | mem-knowledge/src/rag/parser_config.py | 107 | def normalize_knowledge_parser_config_update( | CODE |
| LOW | mem-knowledge/src/rag/parser_config.py | 133 | def set_graph_pipeline_for_migration( | CODE |
| LOW | mem-knowledge/src/rag/chunk/hierarchy.py | 10 | def validate_parent_child_result( | CODE |
| LOW | mem-knowledge/src/rag/vdb/pit_search.py | 9 | async def iter_async_search_after_hits( | CODE |
| 1890 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | web/src/components/D3Graph/types.ts | 4 | // ─── Raw input types (mirror of API response, no external dependency) ───────── | COMMENT |
| MEDIUM | web/src/components/D3Graph/types.ts | 45 | // ─── D3 graph types ─────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | web/src/components/D3Graph/CommunityGraph.tsx | 8 | // ─── Component ──────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | web/src/components/D3Graph/utils/initGraph.ts | 7 | // ─── Community graph init ───────────────────────────────────────────────────── | COMMENT |
| MEDIUM | web/src/components/D3Graph/utils/transform.ts | 4 | // ─── Community graph data transform ───────────────────────────────────────── | COMMENT |
| MEDIUM | web/src/components/D3Graph/utils/forces.ts | 3 | // ─── Colors ─────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | web/src/components/D3Graph/utils/forces.ts | 16 | // ─── Arrow markers ──────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | web/src/components/D3Graph/utils/forces.ts | 33 | // ─── Zoom ───────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | web/src/components/D3Graph/utils/forces.ts | 45 | // ─── Node drag ──────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | web/src/components/D3Graph/utils/forces.ts | 56 | // ─── Cluster force ──────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | web/src/components/D3Graph/utils/forces.ts | 111 | // ─── Group centers ──────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | web/src/components/D3Graph/utils/hull.ts | 4 | // ─── Hull helpers ───────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | web/src/components/D3Graph/utils/hull.ts | 83 | // ─── Hull render ────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | web/src/components/D3Graph/utils/legend.ts | 4 | // ─── Legend ─────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …views/UserMemoryDetail/components/CommunityNetwork.tsx | 11 | // ─── Tooltip ────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …views/UserMemoryDetail/components/CommunityNetwork.tsx | 37 | // ─── Component ──────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | sandbox/tests/stress_test.py | 41 | # ── Config ────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | sandbox/tests/stress_test.py | 66 | # ── Task Definitions ───────────────────────────────────────────────────── | COMMENT |
| MEDIUM | sandbox/tests/stress_test.py | 84 | # ── Task: JSON parsing ─────────────────────────────────────────────────── | COMMENT |
| MEDIUM | sandbox/tests/stress_test.py | 308 | # ── Request sender ─────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | sandbox/tests/stress_test.py | 406 | # ── Single-run executor ────────────────────────────────────────────────── | COMMENT |
| MEDIUM | sandbox/tests/stress_test.py | 504 | # ── Output helpers ─────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | sandbox/tests/stress_test.py | 539 | # ── Console report ─────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | sandbox/tests/stress_test.py | 644 | # ── JSON report ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | sandbox/tests/stress_test.py | 686 | # ── Markdown report ────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | sandbox/tests/stress_test.py | 779 | # ── Main ───────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | sandbox/tests/stress_test.py | 107 | # ── Task: Computation ──────────────────────────────────────────────────── | STRING |
| MEDIUM | sandbox/tests/stress_test.py | 148 | # ── Task: String processing ────────────────────────────────────────────── | STRING |
| MEDIUM | sandbox/tests/stress_test.py | 173 | # ── Task: Data structures ──────────────────────────────────────────────── | STRING |
| MEDIUM | sandbox/tests/stress_test.py | 200 | # ── Task: Mixed ────────────────────────────────────────────────────────── | STRING |
| MEDIUM | sandbox/tests/stress_test.py | 237 | # ── Registry ───────────────────────────────────────────────────────────── | STRING |
| MEDIUM | sandbox/tests/stress_test.py | 255 | # ── HTTP client ────────────────────────────────────────────────────────── | STRING |
| MEDIUM | e2b-infra/tests/test_e2e.py | 27 | # ─── Configuration ──────────────────────────────────────────── | COMMENT |
| MEDIUM | e2b-infra/tests/test_e2e.py | 73 | # ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | e2b-infra/tests/test_e2e.py | 75 | # ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | e2b-infra/tests/test_e2e.py | 362 | # ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | e2b-infra/tests/test_e2e.py | 364 | # ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | e2b-infra/templates/agent-runtime/extract_runtime.sh | 29 | # ────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | e2b-infra/templates/agent-runtime/extract_runtime.sh | 31 | # ────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | e2b-infra/templates/agent-runtime/extract_runtime.sh | 41 | # ────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | e2b-infra/templates/agent-runtime/extract_runtime.sh | 43 | # ────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | e2b-infra/templates/agent-runtime/extract_runtime.sh | 52 | # ────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | e2b-infra/templates/agent-runtime/extract_runtime.sh | 54 | # ────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | e2b-infra/templates/agent-runtime/extract_runtime.sh | 80 | # ────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | e2b-infra/templates/agent-runtime/extract_runtime.sh | 82 | # ────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | e2b-infra/templates/agent-runtime/extract_runtime.sh | 94 | # ────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | e2b-infra/templates/agent-runtime/extract_runtime.sh | 96 | # ────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | e2b-infra/templates/agent-runtime/extract_runtime.sh | 105 | # ────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | e2b-infra/templates/agent-runtime/extract_runtime.sh | 107 | # ────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | e2b-infra/templates/agent-runtime/extract_runtime.sh | 112 | # ────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | e2b-infra/templates/agent-runtime/extract_runtime.sh | 114 | # ────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …/agent-runtime/runtime/core/workflow/nodes/llm/node.py | 313 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | …/agent-runtime/runtime/core/workflow/nodes/llm/node.py | 315 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | …gent-runtime/runtime/core/workflow/nodes/agent/node.py | 438 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | …gent-runtime/runtime/core/workflow/nodes/agent/node.py | 440 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | …gent-runtime/runtime/core/workflow/nodes/agent/node.py | 572 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | …gent-runtime/runtime/core/workflow/nodes/agent/node.py | 574 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | …gent-runtime/runtime/core/workflow/nodes/agent/node.py | 79 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | …gent-runtime/runtime/core/workflow/nodes/agent/node.py | 81 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | …gent-runtime/runtime/core/workflow/nodes/agent/node.py | 381 | # ------------------------------------------------------------------ | COMMENT |
| 345 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …untime/runtime/core/workflow/variable/base_variable.py | 41 | Maps a Python value to a corresponding VariableType. Args: var: The Python value to map. R | STRING |
| HIGH | …untime/runtime/core/workflow/variable/base_variable.py | 88 | Returns the default value for a given VariableType. Args: var_type: The variable type for which to get the | STRING |
| HIGH | …untime/runtime/core/workflow/variable/base_variable.py | 171 | Validates or converts a value to the correct type for the variable. Args: value: The value to valid | STRING |
| HIGH | …nt-runtime/runtime/core/workflow/nodes/node_factory.py | 125 | 创建节点实例 Args: node_config: 节点配置 workflow_config: 工作流配置 down_stream_nodes: 下游 | STRING |
| HIGH | …ntime/runtime/core/workflow/nodes/jinja_render/node.py | 25 | Execute the node: render the Jinja2 template with mapped variables. The rendered result is returned in | STRING |
| HIGH | …/agent-runtime/runtime/core/workflow/nodes/llm/node.py | 968 | 处理 LLM 调用异常,根据 error_handle 配置决定行为 Args: error: LLM 调用中捕获的异常 Returns: | STRING |
| HIGH | …gent-runtime/runtime/core/workflow/nodes/start/node.py | 84 | 处理自定义变量 从输入数据中提取自定义变量,应用默认值和验证。 Args: pool: 变量池实例 Returns | STRING |
| HIGH | …untime/runtime/core/workflow/nodes/cycle_graph/node.py | 152 | Execute the cycle node at runtime. Based on the node type: - LOOP: Executes LoopRuntime, repea | STRING |
| HIGH | …-runtime/runtime/core/workflow/engine/variable_pool.py | 252 | Retrieve a variable instance from the variable pool. Args: selector: Variable selec | STRING |
| HIGH | …-runtime/runtime/core/workflow/engine/variable_pool.py | 282 | Retrieve a variable value from the variable pool. Args: selector: Variable selector | STRING |
| HIGH | …-runtime/runtime/core/workflow/engine/variable_pool.py | 317 | Retrieve a variable value from the variable pool. Args: selector: Variable selector | STRING |
| HIGH | …-runtime/runtime/core/workflow/engine/graph_builder.py | 89 | Retrieve the type of node given its ID. Args: node_id (str): The unique identifier of the node. | STRING |
| HIGH | …time/core/workflow/engine/stream_output_coordinator.py | 364 | Process and yield all currently active output segments for the currently active End node. This method | STRING |
| HIGH | api/app/dependencies.py | 46 | Extract API Key from request headers Args: request: FastAPI Request object | STRING |
| HIGH | api/app/dependencies.py | 854 | Get App or Workspace from API Key Supports two API Key formats: 1. Authorization: Bearer <api_key> | STRING |
| HIGH | api/app/core/language_utils.py | 25 | 校验语言参数,确保其为有效值。 Args: language: 待校验的语言代码,可以是 None、"zh"、"en" 或其他值 Returns: 有效的 | STRING |
| HIGH | api/app/core/language_utils.py | 67 | 从请求头获取并校验语言参数。 这是一个便捷函数,用于在 controller 层统一处理 X-Language-Type Header。 Args: language_type: | STRING |
| HIGH | api/app/core/storage_strategy.py | 183 | Get the appropriate storage strategy for the given context. Args: context: The upl | STRING |
| HIGH | api/app/core/api_key_utils.py | 98 | 校验 end_user 是否存在且属于指定 workspace。 Args: db: 数据库会话 end_user_id: 终端用户 ID workspace_id: 工作空间 ID | STRING |
| HIGH | api/app/core/upload_policies.py | 66 | 根据上传上下文获取对应的上传策略 Args: context: 上传上下文 Returns: 对应的上传策略 Raises: | STRING |
| HIGH | api/app/core/tools/langchain_adapter.py | 198 | 根据工具参数创建Pydantic schema Args: parameters: 工具参数列表 operation: 特定操作(用于过滤参数) | STRING |
| HIGH | api/app/core/tools/base.py | 80 | 验证参数 Args: parameters: 输入参数 Returns: 验证错误字典,空字典表示验证通过 | STRING |
| HIGH | api/app/core/tools/builtin/database_tool.py | 80 | 根据连接参数同步建立一个 PostgreSQL 连接(阻塞调用,请在线程池中执行) Args: conn_args: 包含 driver/host/port/user/password/database/conne | STRING |
| HIGH | api/app/core/tools/builtin/mineru_tool.py | 169 | 调用 MinerUV3Client 解析单个文件,返回 markdown 字符串。 Args: **kwargs: file_name (str, 推荐 — 用于服 | STRING |
| HIGH | api/app/core/memory/memory_service.py | 374 | 快速写入记忆:清洗 → Embedding → 写入 :Dialogue 节点 与 self.write() 并列,复用 __init__/create 已加载到 self.ctx 的 memory_config, | STRING |
| HIGH | api/app/core/memory/llm_tools/openai_embedder.py | 62 | 生成嵌入向量实现 Args: messages: 文本列表 **kwargs: 额外参数 Returns: 嵌入向 | STRING |
| HIGH | api/app/core/memory/llm_tools/embedder_client.py | 68 | 生成嵌入向量 Args: messages: 文本列表 **kwargs: 额外参数 Returns: 嵌入向量列 | STRING |
| HIGH | api/app/core/memory/llm_tools/embedder_client.py | 107 | 带重试机制的嵌入向量生成接口 Args: messages: 文本列表 **kwargs: 额外参数 Returns: | STRING |
| HIGH | api/app/core/memory/llm_tools/embedder_client.py | 133 | 为单个文本生成嵌入向量 Args: text: 单个文本 **kwargs: 额外参数 Returns: 嵌入向量 | STRING |
| HIGH | api/app/core/memory/llm_tools/embedder_client.py | 155 | 批量生成嵌入向量(支持大批量文本) Args: texts: 文本列表 batch_size: 每批处理的文本数量 **kwargs | STRING |
| HIGH | api/app/core/memory/llm_tools/llm_client.py | 68 | 聊天接口 Args: messages: 消息列表,每个消息包含 role 和 content **kwargs: 额外参数 Return | STRING |
| HIGH | api/app/core/memory/llm_tools/llm_client.py | 90 | 结构化输出接口 Args: messages: 消息列表 response_model: 期望的响应模型类型(Pydantic BaseModel) | STRING |
| HIGH | api/app/core/memory/llm_tools/llm_client.py | 130 | 带重试机制的聊天接口 Args: messages: 消息列表 **kwargs: 额外参数 Returns: L | STRING |
| HIGH | api/app/core/memory/llm_tools/llm_client.py | 161 | 带重试机制的结构化输出接口 Args: messages: 消息列表 response_model: 期望的响应模型类型 **kwa | STRING |
| HIGH | api/app/core/memory/llm_tools/openai_client.py | 73 | 聊天接口实现 Args: messages: 消息列表 **kwargs: 额外参数 Returns: LLM 响 | STRING |
| HIGH | api/app/core/memory/llm_tools/openai_client.py | 109 | 结构化输出接口实现 Args: messages: 消息列表 response_model: 期望的响应模型类型 **kwargs: | STRING |
| HIGH | api/app/core/memory/utils/llm/llm_utils.py | 116 | Get LLM client from MemoryConfig object. Args: memory_config: Configuration containing llm_ | STRING |
| HIGH | api/app/core/memory/utils/llm/llm_utils.py | 134 | Get embedder client from MemoryConfig object. Args: memory_config: Configuration containing | STRING |
| HIGH | api/app/core/memory/utils/llm/llm_utils.py | 152 | Get reranker client from MemoryConfig object. Args: memory_config: Configuration containing | STRING |
| HIGH | api/app/core/memory/utils/llm/llm_utils.py | 172 | Get LLM client from MemoryConfig object. DEPRECATED: Use MemoryClientFactory(db).get_llm_client_from_config(mem | STRING |
| HIGH | api/app/core/memory/utils/embedder/embedder_utils.py | 18 | Get embedder client from MemoryConfig object. **PREFERRED METHOD**: Use this function in production code w | STRING |
| HIGH | api/app/core/memory/utils/embedder/embedder_utils.py | 44 | Get embedder client by model ID. **LEGACY/TEST METHOD**: Use this function only for: - Test/evaluation | STRING |
| HIGH | …app/core/memory/utils/validation/ontology_validator.py | 49 | Validate that a class name follows OWL naming conventions. Validation rules: 1. Must not be emp | STRING |
| HIGH | …app/core/memory/utils/validation/ontology_validator.py | 115 | Attempt to sanitize an invalid class name into a valid format. Sanitization steps: 1. Strip whi | STRING |
| HIGH | …app/core/memory/utils/validation/ontology_validator.py | 179 | Remove duplicate ontology classes based on case-insensitive name comparison. When duplicates are found, | STRING |
| HIGH | …app/core/memory/utils/validation/ontology_validator.py | 234 | Truncate a description to a maximum length. If the description exceeds max_length, it will be truncated | STRING |
| HIGH | api/app/core/memory/utils/validation/owl_validator.py | 53 | Validate extracted ontology classes against OWL standards. This method creates an OWL ontology from the | STRING |
| HIGH | api/app/core/memory/utils/validation/owl_validator.py | 256 | Export ontology to OWL file in specified format. Supported formats: - rdfxml: RDF/XML format (d | STRING |
| HIGH | api/app/core/memory/utils/validation/owl_validator.py | 521 | Validate that ontology classes are compatible with Protégé editor. Protégé compatibility checks: | STRING |
| HIGH | api/app/core/memory/utils/validation/owl_validator.py | 592 | 从 OWL 内容解析出本体类型 支持解析 RDF/XML、Turtle 和 JSON 格式的 OWL 文件, 提取其中定义的 owl:Class 及其 rdfs:label 和 rdfs:c | STRING |
| HIGH | api/app/core/memory/agent/utils/template_tools.py | 49 | Load a template from disk with caching. Args: template_name: Relative path to temp | STRING |
| HIGH | api/app/core/memory/agent/utils/template_tools.py | 77 | Load and render a Jinja2 template. Args: template_name: Relative path to template | STRING |
| HIGH | api/app/core/memory/models/base_response.py | 36 | Handle cases where LLM returns a list instead of a dict. Some LLMs may wrap the response in a list like [{"fiel | STRING |
| HIGH | api/app/core/memory/models/ontology_scenario_models.py | 74 | Validate that the class name follows PascalCase convention. PascalCase rules: - Must start with an uppe | STRING |
| HIGH | …/extraction_engine/extraction_pipeline_orchestrator.py | 145 | Run a critical coroutine concurrently with sidecar steps. Args: critical_coro: The awaitable for th | STRING |
| HIGH | …es/extraction_engine/deduplication/entity_dedup_llm.py | 294 | Use LLM to assist fuzzy deduplication among candidate entity pairs and produce an `id_redirect` mapping plus au | STRING |
| HIGH | …action_engine/knowledge_extraction/chunk_extraction.py | 81 | Process a dialogue by generating chunks and adding them to the DialogData object. Args: dialogue: T | STRING |
| HIGH | …action_engine/knowledge_extraction/chunk_extraction.py | 147 | Save the chunking results to a file and return the output path. Args: chunks: List of Chunk objects | STRING |
| HIGH | …ion_engine/knowledge_extraction/ontology_extraction.py | 68 | Extract ontology classes from a scenario description. This is the main extraction method that orchestra | STRING |
| HIGH | …ion_engine/knowledge_extraction/ontology_extraction.py | 268 | Call LLM to extract ontology classes from scenario. This method renders the extraction prompt using the | STRING |
| 197 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | mem-knowledge/scripts/check_model_ownership.py | 3 | CODE | |
| LOW | mem-knowledge/scripts/export_openapi.py | 3 | CODE | |
| LOW | mem-knowledge/scripts/check_import_boundaries.py | 3 | CODE | |
| LOW | mem-knowledge/scripts/compare_legacy_contracts.py | 3 | CODE | |
| LOW | mem-knowledge/src/bootstrap.py | 3 | CODE | |
| LOW | mem-knowledge/src/logging.py | 3 | CODE | |
| LOW | mem-knowledge/src/db.py | 3 | CODE | |
| LOW | mem-knowledge/src/trace.py | 3 | CODE | |
| LOW | mem-knowledge/src/config.py | 3 | CODE | |
| LOW | mem-knowledge/src/runtime.py | 3 | CODE | |
| LOW | mem-knowledge/src/errors.py | 3 | CODE | |
| LOW | mem-knowledge/src/main.py | 3 | CODE | |
| LOW | mem-knowledge/src/tasks/celery_app.py | 3 | CODE | |
| LOW | mem-knowledge/src/tasks/dispatch.py | 3 | CODE | |
| LOW | mem-knowledge/src/tasks/celery_worker.py | 3 | CODE | |
| LOW | mem-knowledge/src/tasks/celery_worker.py | 12 | CODE | |
| LOW | mem-knowledge/src/utils/datetime_utils.py | 3 | CODE | |
| LOW | mem-knowledge/src/repositories/knowledge_metadata.py | 3 | CODE | |
| LOW | mem-knowledge/src/repositories/file.py | 3 | CODE | |
| LOW | mem-knowledge/src/repositories/document.py | 3 | CODE | |
| LOW | mem-knowledge/src/repositories/reference.py | 3 | CODE | |
| LOW | mem-knowledge/src/repositories/knowledge_share.py | 3 | CODE | |
| LOW | mem-knowledge/src/repositories/model_registry.py | 3 | CODE | |
| LOW | mem-knowledge/src/repositories/knowledge.py | 3 | CODE | |
| LOW | mem-knowledge/src/models/__init__.py | 3 | CODE | |
| LOW | mem-knowledge/src/models/__init__.py | 3 | CODE | |
| LOW | mem-knowledge/src/models/references/__init__.py | 3 | CODE | |
| LOW | mem-knowledge/src/models/references/__init__.py | 4 | CODE | |
| LOW | mem-knowledge/src/models/references/__init__.py | 4 | CODE | |
| LOW | mem-knowledge/src/models/references/__init__.py | 4 | CODE | |
| LOW | mem-knowledge/src/models/references/__init__.py | 4 | CODE | |
| LOW | mem-knowledge/src/models/references/__init__.py | 4 | CODE | |
| LOW | mem-knowledge/src/models/references/__init__.py | 4 | CODE | |
| LOW | mem-knowledge/src/models/references/__init__.py | 4 | CODE | |
| LOW | mem-knowledge/src/models/references/__init__.py | 13 | CODE | |
| LOW | mem-knowledge/src/models/references/__init__.py | 14 | CODE | |
| LOW | mem-knowledge/src/models/owned/__init__.py | 3 | CODE | |
| LOW | mem-knowledge/src/models/owned/__init__.py | 4 | CODE | |
| LOW | mem-knowledge/src/models/owned/__init__.py | 4 | CODE | |
| LOW | mem-knowledge/src/models/owned/__init__.py | 4 | CODE | |
| LOW | mem-knowledge/src/models/owned/__init__.py | 5 | CODE | |
| LOW | mem-knowledge/src/models/owned/__init__.py | 5 | CODE | |
| LOW | mem-knowledge/src/models/owned/__init__.py | 5 | CODE | |
| LOW | mem-knowledge/src/models/owned/__init__.py | 5 | CODE | |
| LOW | mem-knowledge/src/models/owned/__init__.py | 6 | CODE | |
| LOW | mem-knowledge/src/models/owned/__init__.py | 6 | CODE | |
| LOW | mem-knowledge/src/models/owned/__init__.py | 7 | CODE | |
| LOW | …owledge/src/rag/knowledge_graph/elasticsearch_store.py | 3 | CODE | |
| LOW | mem-knowledge/src/rag/knowledge_graph/__init__.py | 3 | CODE | |
| LOW | mem-knowledge/src/rag/knowledge_graph/__init__.py | 3 | CODE | |
| LOW | mem-knowledge/src/rag/knowledge_graph/__init__.py | 3 | CODE | |
| LOW | mem-knowledge/src/rag/knowledge_graph/__init__.py | 3 | CODE | |
| LOW | mem-knowledge/src/rag/knowledge_graph/__init__.py | 3 | CODE | |
| LOW | mem-knowledge/src/rag/chunk/preview.py | 3 | CODE | |
| LOW | mem-knowledge/src/rag/chunk/__init__.py | 3 | CODE | |
| LOW | mem-knowledge/src/rag/chunk/__init__.py | 3 | CODE | |
| LOW | mem-knowledge/src/rag/chunk/__init__.py | 4 | CODE | |
| LOW | mem-knowledge/src/rag/chunk/__init__.py | 5 | CODE | |
| LOW | mem-knowledge/src/rag/models/__init__.py | 3 | CODE | |
| LOW | mem-knowledge/src/rag/models/__init__.py | 3 | CODE | |
| 1197 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | mem-knowledge/scripts/check_model_ownership.py | 52 | CODE | |
| LOW | mem-knowledge/src/rag/chunk/preview.py | 32 | CODE | |
| LOW | mem-knowledge/src/rag/chunk/preview.py | 122 | CODE | |
| LOW | mem-knowledge/src/rag/retrieval/graph_bridge.py | 16 | CODE | |
| LOW | mem-knowledge/src/rag/metadata/auto_filter.py | 134 | CODE | |
| LOW | mem-knowledge/src/services/knowledge_metadata.py | 345 | CODE | |
| LOW | mem-knowledge/src/services/file.py | 263 | CODE | |
| LOW | mem-knowledge/src/services/file.py | 340 | CODE | |
| LOW | sandbox/runtime/pool/zygote_worker.py | 216 | CODE | |
| LOW | sandbox/runtime/pool/zygote_worker.py | 248 | CODE | |
| LOW | sandbox/runtime/pool/zygote_worker.py | 424 | CODE | |
| LOW | sandbox/tests/stress_test.py | 542 | CODE | |
| LOW | sandbox/tests/stress_test.py | 689 | CODE | |
| LOW | sandbox/tests/stress_test.py | 875 | CODE | |
| LOW | packages/storage-core/src/mem_storage/oss.py | 195 | CODE | |
| LOW | packages/scripts/check_import_boundaries.py | 78 | CODE | |
| LOW | packages/scripts/check_import_boundaries.py | 88 | CODE | |
| LOW | …es/redbear-model/src/redbear_model/providers/openai.py | 118 | CODE | |
| LOW | e2b-infra/tests/smoke_test_runtime.py | 32 | CODE | |
| LOW | e2b-infra/tests/test_e2e.py | 95 | CODE | |
| LOW | e2b-infra/tests/test_e2e.py | 176 | CODE | |
| LOW | e2b-infra/templates/agent-runtime/runtime/entrypoint.py | 46 | CODE | |
| LOW | e2b-infra/templates/agent-runtime/runtime/entrypoint.py | 190 | CODE | |
| LOW | …-infra/templates/agent-runtime/runtime/tools/loader.py | 25 | CODE | |
| LOW | e2b-infra/templates/agent-runtime/runtime/tools/base.py | 13 | CODE | |
| LOW | e2b-infra/templates/agent-runtime/runtime/tools/base.py | 250 | CODE | |
| LOW | …es/agent-runtime/runtime/core/agent/langchain_agent.py | 172 | CODE | |
| LOW | …es/agent-runtime/runtime/core/agent/langchain_agent.py | 471 | CODE | |
| LOW | …es/agent-runtime/runtime/core/agent/langchain_agent.py | 587 | CODE | |
| LOW | …es/agent-runtime/runtime/core/agent/langchain_agent.py | 606 | CODE | |
| LOW | …es/agent-runtime/runtime/core/agent/langchain_agent.py | 638 | CODE | |
| LOW | …es/agent-runtime/runtime/core/agent/langchain_agent.py | 651 | CODE | |
| LOW | …es/agent-runtime/runtime/core/agent/langchain_agent.py | 916 | CODE | |
| LOW | …untime/runtime/core/workflow/variable/base_variable.py | 40 | CODE | |
| LOW | …agent-runtime/runtime/core/workflow/nodes/base_node.py | 874 | CODE | |
| LOW | …agent-runtime/runtime/core/workflow/nodes/base_node.py | 923 | CODE | |
| LOW | …runtime/core/workflow/nodes/document_extractor/node.py | 38 | CODE | |
| LOW | …runtime/core/workflow/nodes/document_extractor/node.py | 138 | CODE | |
| LOW | …/agent-runtime/runtime/core/workflow/nodes/llm/node.py | 245 | CODE | |
| LOW | …/agent-runtime/runtime/core/workflow/nodes/llm/node.py | 347 | CODE | |
| LOW | …/agent-runtime/runtime/core/workflow/nodes/llm/node.py | 455 | CODE | |
| LOW | …/agent-runtime/runtime/core/workflow/nodes/llm/node.py | 500 | CODE | |
| LOW | …/agent-runtime/runtime/core/workflow/nodes/llm/node.py | 797 | CODE | |
| LOW | …/agent-runtime/runtime/core/workflow/nodes/llm/node.py | 1005 | CODE | |
| LOW | …ent-runtime/runtime/core/workflow/nodes/memory/node.py | 98 | CODE | |
| LOW | …runtime/core/workflow/nodes/human_intervention/node.py | 232 | CODE | |
| LOW | …runtime/core/workflow/nodes/human_intervention/node.py | 268 | CODE | |
| LOW | …agent-runtime/runtime/core/workflow/nodes/code/node.py | 197 | CODE | |
| LOW | …gent-runtime/runtime/core/workflow/nodes/start/node.py | 83 | CODE | |
| LOW | …gent-runtime/runtime/core/workflow/nodes/agent/node.py | 95 | CODE | |
| LOW | …gent-runtime/runtime/core/workflow/nodes/agent/node.py | 384 | CODE | |
| LOW | …gent-runtime/runtime/core/workflow/nodes/agent/node.py | 441 | CODE | |
| LOW | …time/core/workflow/nodes/variable_aggregator/config.py | 25 | CODE | |
| LOW | …e/runtime/core/workflow/nodes/cycle_graph/iteration.py | 143 | CODE | |
| LOW | …e/runtime/core/workflow/nodes/cycle_graph/iteration.py | 247 | CODE | |
| LOW | …untime/runtime/core/workflow/nodes/cycle_graph/loop.py | 181 | CODE | |
| LOW | …untime/runtime/core/workflow/nodes/cycle_graph/node.py | 41 | CODE | |
| LOW | …ime/runtime/core/workflow/nodes/http_request/config.py | 80 | CODE | |
| LOW | …ntime/runtime/core/workflow/nodes/http_request/node.py | 106 | CODE | |
| LOW | …ntime/runtime/core/workflow/nodes/http_request/node.py | 243 | CODE | |
| 585 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | mem-knowledge/src/__init__.py | 5 | __all__ = ["__version__"] | CODE |
| LOW | mem-knowledge/src/errors.py | 83 | __all__ = [ | CODE |
| LOW | mem-knowledge/src/main.py | 23 | logger = logging.getLogger(__name__) | CODE |
| LOW | mem-knowledge/src/tasks/celery_app.py | 69 | __all__ = [ | CODE |
| LOW | mem-knowledge/src/tasks/dispatch.py | 13 | logger = logging.getLogger(__name__) | CODE |
| LOW | mem-knowledge/src/tasks/dispatch.py | 77 | __all__ = ["TaskDispatcher"] | CODE |
| LOW | mem-knowledge/src/tasks/celery_worker.py | 14 | logger = logging.getLogger(__name__) | CODE |
| LOW | mem-knowledge/src/tasks/celery_worker.py | 41 | __all__ = ["celery_app"] | CODE |
| LOW | mem-knowledge/src/utils/datetime_utils.py | 134 | __all__ = [ | CODE |
| LOW | mem-knowledge/src/repositories/file.py | 14 | logger = logging.getLogger(__name__) | CODE |
| LOW | mem-knowledge/src/repositories/document.py | 15 | logger = logging.getLogger(__name__) | CODE |
| LOW | mem-knowledge/src/repositories/knowledge_share.py | 14 | logger = logging.getLogger(__name__) | CODE |
| LOW | mem-knowledge/src/repositories/model_registry.py | 117 | __all__ = ["AsyncSQLModelRegistry"] | CODE |
| LOW | mem-knowledge/src/repositories/knowledge.py | 19 | logger = logging.getLogger(__name__) | CODE |
| LOW | mem-knowledge/src/models/__init__.py | 5 | __all__ = ["owned", "references"] | CODE |
| LOW | mem-knowledge/src/models/references/__init__.py | 16 | __all__ = [ | CODE |
| LOW | mem-knowledge/src/models/owned/__init__.py | 9 | __all__ = [ | CODE |
| LOW | …owledge/src/rag/knowledge_graph/elasticsearch_store.py | 204 | __all__ = ["GraphElasticsearchStore", "graph_index_name"] | CODE |
| LOW | mem-knowledge/src/rag/knowledge_graph/__init__.py | 11 | __all__ = [ | CODE |
| LOW | mem-knowledge/src/rag/chunk/preview.py | 227 | __all__ = ["preview_binary"] | CODE |
| LOW | mem-knowledge/src/rag/chunk/metadata.py | 36 | __all__ = ["SYSTEM_METADATA_KEYS", "merge_parser_metadata"] | CODE |
| LOW | mem-knowledge/src/rag/chunk/__init__.py | 7 | __all__ = [ | CODE |
| LOW | mem-knowledge/src/rag/chunk/hierarchy.py | 43 | __all__ = ["GroupedChildChunks", "validate_parent_child_result"] | CODE |
| LOW | mem-knowledge/src/rag/models/__init__.py | 14 | __all__ = [ | CODE |
| LOW | mem-knowledge/src/rag/integrations/feishu/models.py | 18 | __all__ = ["FileInfo"] | CODE |
| LOW | mem-knowledge/src/rag/integrations/feishu/client.py | 125 | __all__ = ["FeishuAPIClient"] | CODE |
| LOW | mem-knowledge/src/rag/integrations/feishu/__init__.py | 5 | __all__ = ["FeishuAPIClient"] | CODE |
| LOW | mem-knowledge/src/rag/integrations/feishu/exceptions.py | 18 | __all__ = ["FeishuAPIError", "FeishuAuthError", "FeishuError"] | CODE |
| LOW | mem-knowledge/src/rag/integrations/yuque/models.py | 21 | __all__ = ["YuqueRepoInfo"] | CODE |
| LOW | mem-knowledge/src/rag/integrations/yuque/client.py | 89 | __all__ = ["YuqueAPIClient"] | CODE |
| LOW | mem-knowledge/src/rag/integrations/yuque/__init__.py | 5 | __all__ = ["YuqueAPIClient"] | CODE |
| LOW | mem-knowledge/src/rag/integrations/yuque/exceptions.py | 18 | __all__ = ["YuqueAPIError", "YuqueAuthError", "YuqueError"] | CODE |
| LOW | mem-knowledge/src/rag/retrieval/models.py | 91 | __all__ = [ | CODE |
| LOW | mem-knowledge/src/rag/retrieval/__init__.py | 5 | __all__ = ["AsyncChunkStore"] | CODE |
| LOW | …m-knowledge/src/rag/retrieval/elasticsearch_queries.py | 166 | __all__ = [ | CODE |
| LOW | mem-knowledge/src/rag/retrieval/graph_bridge.py | 113 | __all__ = ["GraphRetrievalBridge"] | CODE |
| LOW | mem-knowledge/src/rag/retrieval/async_elasticsearch.py | 424 | __all__ = [ | CODE |
| LOW | mem-knowledge/src/rag/metadata/filter_strategies.py | 131 | __all__ = ["NumberFilterStrategy", "StringFilterStrategy", "TimeFilterStrategy", "_escape_like"] | CODE |
| LOW | mem-knowledge/src/rag/metadata/filter_engine.py | 167 | __all__ = ["FilterCondition", "FilterGroup", "MetadataFilterEngine"] | CODE |
| LOW | mem-knowledge/src/rag/metadata/__init__.py | 6 | __all__ = [ | CODE |
| LOW | mem-knowledge/src/rag/metadata/auto_filter.py | 169 | __all__ = ["generate_filter_groups"] | CODE |
| LOW | mem-knowledge/src/api/router.py | 22 | __all__ = ["internal_v1_router"] | CODE |
| LOW | mem-knowledge/src/api/dependencies.py | 54 | __all__ = ["Principal", "get_principal", "get_runtime"] | CODE |
| LOW | mem-knowledge/src/api/schemas/__init__.py | 15 | __all__ = [ | CODE |
| LOW | mem-knowledge/src/api/schemas/common.py | 54 | __all__ = ["ApiResponse", "SuccessEnvelope", "fail", "success"] | CODE |
| LOW | mem-knowledge/src/api/routes/chunk.py | 468 | __all__ = ["router"] | CODE |
| LOW | mem-knowledge/src/api/routes/document.py | 317 | __all__ = ["router"] | CODE |
| LOW | mem-knowledge/src/api/routes/knowledge.py | 58 | logger = logging.getLogger(__name__) | CODE |
| LOW | mem-knowledge/src/infrastructure/__init__.py | 8 | __all__ = [ | CODE |
| LOW | mem-knowledge/src/services/knowledge_retrieval.py | 35 | logger = logging.getLogger(__name__) | CODE |
| LOW | mem-knowledge/src/services/knowledge_retrieval.py | 330 | __all__ = ["KnowledgeRetrievalService"] | CODE |
| LOW | mem-knowledge/src/services/graph.py | 71 | __all__ = ["delete_graph", "get_graph", "graph_entity_types", "rebuild_graph"] | CODE |
| LOW | mem-knowledge/src/services/chunk.py | 32 | logger = logging.getLogger(__name__) | CODE |
| LOW⚡ | mem-knowledge/src/services/chunk.py | 548 | __all__ = [ | CODE |
| LOW | mem-knowledge/src/services/file.py | 36 | logger = logging.getLogger(__name__) | CODE |
| LOW | mem-knowledge/src/services/qa_import.py | 121 | __all__ = [ | CODE |
| LOW | mem-knowledge/src/services/document.py | 34 | logger = logging.getLogger(__name__) | CODE |
| LOW | mem-knowledge/src/services/document.py | 455 | __all__ = [ | STRING |
| LOW | …wledge/src/services/knowledge_retrieval_preparation.py | 37 | logger = logging.getLogger(__name__) | CODE |
| LOW | …wledge/src/services/knowledge_retrieval_preparation.py | 374 | __all__ = ["KnowledgeRetrievalPreparation"] | CODE |
| 342 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | mem-knowledge/src/utils/datetime_utils.py | 0 | parse an iso datetime and normalize it to naive utc. | STRING |
| HIGH | …tes/agent-runtime/runtime/core/utils/datetime_utils.py | 0 | parse an iso datetime and normalize it to naive utc. | STRING |
| HIGH | api/app/core/utils/datetime_utils.py | 0 | parse an iso datetime and normalize it to naive utc. | STRING |
| HIGH | mem-knowledge/src/models/owned/file.py | 0 | knowledge model copied from the legacy api service. | STRING |
| HIGH | mem-knowledge/src/models/owned/document.py | 0 | knowledge model copied from the legacy api service. | STRING |
| HIGH | mem-knowledge/src/models/owned/knowledge_share.py | 0 | knowledge model copied from the legacy api service. | STRING |
| HIGH | mem-knowledge/src/models/owned/knowledge.py | 0 | knowledge model copied from the legacy api service. | STRING |
| HIGH | mem-knowledge/src/api/schemas/file.py | 0 | knowledge request and response schemas copied from the legacy api. | STRING |
| HIGH | mem-knowledge/src/api/schemas/document.py | 0 | knowledge request and response schemas copied from the legacy api. | STRING |
| HIGH | mem-knowledge/src/api/schemas/knowledge_share.py | 0 | knowledge request and response schemas copied from the legacy api. | STRING |
| HIGH | mem-knowledge/src/api/schemas/knowledge.py | 0 | knowledge request and response schemas copied from the legacy api. | STRING |
| HIGH | api/app/core/rag_utils/chunk_insight.py | 0 | get llm client from user-connected config. raises if no config found. | STRING |
| HIGH | api/app/core/rag_utils/chunk_summary.py | 0 | get llm client from user-connected config. raises if no config found. | STRING |
| HIGH | api/app/core/rag_utils/chunk_tags.py | 0 | get llm client from user-connected config. raises if no config found. | STRING |
| HIGH | …ore/memory/analytics/implicit_memory/habit_detector.py | 0 | initialize the habit analyzer. args: db: database session llm_model_id: optional llm model id to use for analysis tenant | STRING |
| HIGH | …alytics/implicit_memory/analyzers/interest_analyzer.py | 0 | initialize the habit analyzer. args: db: database session llm_model_id: optional llm model id to use for analysis tenant | STRING |
| HIGH | …ytics/implicit_memory/analyzers/preference_analyzer.py | 0 | initialize the habit analyzer. args: db: database session llm_model_id: optional llm model id to use for analysis tenant | STRING |
| HIGH | …lytics/implicit_memory/analyzers/dimension_analyzer.py | 0 | initialize the habit analyzer. args: db: database session llm_model_id: optional llm model id to use for analysis tenant | STRING |
| HIGH | …/analytics/implicit_memory/analyzers/habit_analyzer.py | 0 | initialize the habit analyzer. args: db: database session llm_model_id: optional llm model id to use for analysis tenant | STRING |
| HIGH | api/app/core/rag/deepdoc/vision/recognizer.py | 0 | if you have trouble downloading huggingface models, -_^ this might help!! for linux: export hf_endpoint=https://hf-mirro | STRING |
| HIGH | api/app/core/rag/deepdoc/vision/ocr.py | 0 | if you have trouble downloading huggingface models, -_^ this might help!! for linux: export hf_endpoint=https://hf-mirro | STRING |
| HIGH | api/app/core/rag/deepdoc/parser/pdf_parser.py | 0 | if you have trouble downloading huggingface models, -_^ this might help!! for linux: export hf_endpoint=https://hf-mirro | STRING |
| HIGH | api/app/core/rag/graphrag/general/graph_extractor.py | 0 | reference: - [graphrag](https://github.com/microsoft/graphrag) | STRING |
| HIGH | api/app/core/rag/graphrag/general/leiden.py | 0 | reference: - [graphrag](https://github.com/microsoft/graphrag) | STRING |
| HIGH | …re/rag/graphrag/general/community_reports_extractor.py | 0 | reference: - [graphrag](https://github.com/microsoft/graphrag) | STRING |
| HIGH | api/app/core/rag/graphrag/general/entity_embedding.py | 0 | reference: - [graphrag](https://github.com/microsoft/graphrag) | STRING |
| HIGH | api/app/core/rag/graphrag/light/graph_extractor.py | 0 | reference: - [graphrag](https://github.com/microsoft/graphrag) | STRING |
| HIGH | api/app/core/storage/local.py | 0 | download a file from the storage backend. args: file_key: unique identifier for the file in the storage system. returns: | STRING |
| HIGH | api/app/core/storage/oss.py | 0 | download a file from the storage backend. args: file_key: unique identifier for the file in the storage system. returns: | STRING |
| HIGH | api/app/core/storage/s3.py | 0 | download a file from the storage backend. args: file_key: unique identifier for the file in the storage system. returns: | STRING |
| HIGH | api/app/core/storage/base.py | 0 | download a file from the storage backend. args: file_key: unique identifier for the file in the storage system. returns: | STRING |
| HIGH | api/app/core/storage/local.py | 0 | check if a file exists in the storage backend. args: file_key: unique identifier for the file in the storage system. ret | STRING |
| HIGH | api/app/core/storage/oss.py | 0 | check if a file exists in the storage backend. args: file_key: unique identifier for the file in the storage system. ret | STRING |
| HIGH | api/app/core/storage/s3.py | 0 | check if a file exists in the storage backend. args: file_key: unique identifier for the file in the storage system. ret | STRING |
| HIGH | api/app/core/storage/base.py | 0 | check if a file exists in the storage backend. args: file_key: unique identifier for the file in the storage system. ret | STRING |
| HIGH | api/app/controllers/document_controller.py | 0 | paged query file list - support filtering by kb_id and parent_id - support keyword search for file names - support dynam | STRING |
| HIGH | …app/controllers/service/rag_api_document_controller.py | 0 | paged query file list - support filtering by kb_id and parent_id - support keyword search for file names - support dynam | STRING |
| HIGH | api/app/controllers/service/rag_api_file_controller.py | 0 | paged query file list - support filtering by kb_id and parent_id - support keyword search for file names - support dynam | STRING |
| HIGH | …p/controllers/service/memory_display_api_controller.py | 0 | encode result for json serialization, preserving response objects as-is. | STRING |
| HIGH | api/app/controllers/service/memory_api_controller.py | 0 | encode result for json serialization, preserving response objects as-is. | STRING |
| HIGH | api/app/controllers/service/ontology_api_controller.py | 0 | encode result for json serialization, preserving response objects as-is. | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | web/src/utils/timezones.ts | 41 | 'America/New_York', // New York, USA | COMMENT |
| LOW | web/src/utils/timezones.ts | 61 | // 'Asia/Istanbul', // Istanbul, Turkey | COMMENT |
| LOW | web/src/utils/timezones.ts | 81 | // 'America/Denver', // Denver, USA | COMMENT |
| LOW | web/src/utils/timezones.ts | 121 | 'Asia/Kolkata': hi_IN, // Kolkata, India - Hindi | COMMENT |
| LOW | web/src/utils/timezones.ts | 141 | COMMENT | |
| LOW | web/src/utils/timezones.ts | 161 | // 'America/Toronto': 'en_CA', // Toronto, Canada - English (Canada) | COMMENT |
| LOW | web/src/utils/timezones.ts | 181 | // 'Africa/Cairo': 'ar_EG', // Cairo, Egypt - Arabic (Egypt) | COMMENT |
| LOW | web/src/components/Markdown/index.tsx | 441 | disallowedElements={['script', 'iframe', 'head', 'html', 'meta', 'link', 'style', 'body']} | COMMENT |
| LOW | web/src/views/MemoryExtractionEngine/constant.ts | 161 | }, | COMMENT |
| LOW | web/src/views/MemoryExtractionEngine/constant.ts | 181 | // { label: 'threeHours', value: '3' }, | COMMENT |
| LOW | web/src/views/MemoryExtractionEngine/constant.ts | 201 | // { | COMMENT |
| LOW | …rc/views/KnowledgeBase/components/RecallTestResult.tsx | 81 | // Render content via RbMarkdown exclusively. | COMMENT |
| LOW | …/views/KnowledgeBase/components/CreateDatasetModal.tsx | 81 | // // 调用父组件传递的回调函数,传递选中的数据 | COMMENT |
| LOW | …/src/views/KnowledgeBase/[knowledgeBaseId]/Private.tsx | 341 | key: '2', | COMMENT |
| LOW | …/src/views/KnowledgeBase/[knowledgeBaseId]/Private.tsx | 361 | // createImageDataset?.current?.handleOpen(knowledgeBaseId || '', parentId || '') | COMMENT |
| LOW | …/src/views/KnowledgeBase/[knowledgeBaseId]/Private.tsx | 381 | // onClick: () => { | COMMENT |
| LOW | …ents/Properties/SubmitTypeList/SubmitTypeEditModal.tsx | 21 | iconText: 'W', | COMMENT |
| LOW | …orkflow/components/Properties/hooks/useVariableList.ts | 541 | processNodeVariables(node.getData(), node.getData().id, list, keys); | COMMENT |
| LOW | …orkflow/components/Properties/hooks/useVariableList.ts | 721 | // | COMMENT |
| LOW | web/src/views/Workflow/constant/nodeLibraryPart1.ts | 21 | }, | COMMENT |
| LOW | web/src/views/Workflow/constant/nodeFlags.ts | 41 | // time: { | COMMENT |
| LOW | sandbox/server/src/config.rs | 61 | COMMENT | |
| LOW | sandbox/server/src/main.rs | 21 | /// Only available on Unix (Linux Docker). | COMMENT |
| LOW | e2b-infra/templates/agent-runtime/extract_runtime.sh | 1 | #!/bin/bash | COMMENT |
| LOW | …ent-runtime/runtime/core/workflow/nodes/base_config.py | 121 | # | COMMENT |
| LOW | …agent-runtime/runtime/core/workflow/nodes/base_node.py | 661 | "token_usage": None, | COMMENT |
| LOW | …nt-runtime/runtime/core/workflow/nodes/start/config.py | 21 | ) | COMMENT |
| LOW | …nt-runtime/runtime/core/workflow/nodes/start/config.py | 41 | # VariableDefinition( | COMMENT |
| LOW | …agent-runtime/runtime/core/workflow/engine/__init__.py | 1 | # -*- coding: UTF-8 -*- | COMMENT |
| LOW | api/alembic.ini | 1 | # A generic, single database configuration. | COMMENT |
| LOW | api/alembic.ini | 21 | # string value is passed to ZoneInfo() | COMMENT |
| LOW | api/alembic.ini | 41 | # The path separator used here should be the separator specified by "version_path_separator" below. | COMMENT |
| LOW | api/alembic.ini | 61 | # output_encoding = utf-8 | COMMENT |
| LOW | api/app/tasks.py | 3861 | # db=settings.REDIS_DB, | COMMENT |
| LOW | api/app/tasks.py | 3881 | # status = "Fail" | COMMENT |
| LOW | api/app/tasks.py | 4541 | # bind=True, | COMMENT |
| LOW | api/app/tasks.py | 4561 | # return {"status": "SUCCESS", "message": "没有终端用户", | COMMENT |
| LOW | api/app/tasks.py | 4581 | # processed_users += 1 | COMMENT |
| LOW | api/app/tasks.py | 4601 | # "failed_users": failed_users | COMMENT |
| LOW | api/app/dependencies.py | 421 | # 校验当前用户对指定工作空间的访问权限: | COMMENT |
| LOW | api/app/dependencies.py | 441 | # # 超管跨租户访问不允许 | COMMENT |
| LOW | api/app/core/config.py | 441 | # workflow_node_executions 保留策略开关。 | COMMENT |
| LOW | api/app/core/__init__.py | 1 | # -*- coding: UTF-8 -*- | COMMENT |
| LOW | …re/memory/utils/visualization/forgetting_visualizer.py | 361 | config = ForgettingEngineConfig(offset=0.1, lambda_time=0.5, lambda_mem=0.5) | COMMENT |
| LOW | api/app/core/memory/utils/prompt/prompt_utils.py | 141 | COMMENT | |
| LOW | api/app/core/memory/models/variate_config.py | 141 | emotion_enabled: bool = Field(default=False, description="是否启用情绪提取旁路") | COMMENT |
| LOW | …/extraction_engine/deduplication/deduped_and_disamb.py | 141 | # TODO: fact_summary 功能暂时禁用,待后续开发完善后启用 | COMMENT |
| LOW | …/extraction_engine/deduplication/deduped_and_disamb.py | 161 | # src_a = _extract_sources(fact_a) | COMMENT |
| LOW | …storage_services/reflection_engine/layer2_inspector.py | 1561 | COMMENT | |
| LOW | …vices/reflection_engine/deterministic/cypher_merger.py | 41 | # async def fetch_degrees( | COMMENT |
| LOW | …vices/reflection_engine/deterministic/cypher_merger.py | 61 | # async def fetch_degrees_batch( | COMMENT |
| LOW | api/app/core/memory/src/search.py | 461 | ) -> Dict[str, List[Dict[str, Any]]]: | COMMENT |
| LOW | api/app/core/memory/src/search.py | 481 | # base = float(it.get("combined_score", it.get("score", 0.0)) or 0.0) | COMMENT |
| LOW | api/app/core/memory/src/search.py | 501 | # """ | COMMENT |
| LOW | api/app/core/memory/src/search.py | 521 | COMMENT | |
| LOW | api/app/core/memory/src/search.py | 541 | # # Get model name for metadata | COMMENT |
| LOW | api/app/core/memory/src/search.py | 561 | COMMENT | |
| LOW | api/app/core/memory/src/search.py | 581 | # item_text = extract_text(item) | COMMENT |
| LOW | api/app/core/memory/src/search.py | 601 | # - 0.0 means completely irrelevant | COMMENT |
| LOW | api/app/core/memory/src/search.py | 621 | # # Clamp to [0.0, 1.0] | COMMENT |
| 91 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | …plicationManagement/components/UploadWorkflowModal.tsx | 37 | 'upload', // Step 1: File upload | CODE |
| LOW⚡ | …plicationManagement/components/UploadWorkflowModal.tsx | 38 | 'complex', // Step 2: Error/warning display | CODE |
| LOW⚡ | …plicationManagement/components/UploadWorkflowModal.tsx | 39 | 'sureInfo', // Step 3: Information confirmation | CODE |
| LOW⚡ | …plicationManagement/components/UploadWorkflowModal.tsx | 40 | 'completed' // Step 4: Success message | CODE |
| LOW | …plicationManagement/components/UploadWorkflowModal.tsx | 95 | case 0: // Step 1: Upload file | CODE |
| LOW | …plicationManagement/components/UploadWorkflowModal.tsx | 130 | case 1: // Step 2: Error/warning display | CODE |
| LOW | …plicationManagement/components/UploadWorkflowModal.tsx | 144 | case 2: // Step 3: Confirm information | CODE |
| LOW | …plicationManagement/components/UploadWorkflowModal.tsx | 215 | case 0: // Step 1: Upload | CODE |
| LOW | …plicationManagement/components/UploadWorkflowModal.tsx | 229 | case 3: // Step 4: Completed | CODE |
| LOW⚡ | …views/ApplicationManagement/components/UploadModal.tsx | 40 | 'upload', // Step 1: File upload | CODE |
| LOW⚡ | …views/ApplicationManagement/components/UploadModal.tsx | 41 | 'complex', // Step 2: Error/warning display | CODE |
| LOW⚡ | …views/ApplicationManagement/components/UploadModal.tsx | 42 | 'completed' // Step 4: Success message | CODE |
| LOW | …views/ApplicationManagement/components/UploadModal.tsx | 96 | case 0: // Step 1: Upload file | CODE |
| LOW | …views/ApplicationManagement/components/UploadModal.tsx | 164 | case 0: // Step 1: Upload | CODE |
| LOW⚡ | …src/views/ApplicationConfig/components/Skill/index.tsx | 25 | 'receiveTask', // Step 1: Receive task | CODE |
| LOW⚡ | …src/views/ApplicationConfig/components/Skill/index.tsx | 26 | 'analyTask', // Step 2: Analyze task intent | CODE |
| LOW⚡ | …src/views/ApplicationConfig/components/Skill/index.tsx | 27 | 'dynamicMatchSkill', // Step 3: Dynamically match appropriate skill | CODE |
| LOW⚡ | …src/views/ApplicationConfig/components/Skill/index.tsx | 28 | 'executeTask' // Step 4: Execute the task | CODE |
| LOW⚡ | e2b-infra/tests/test_e2e.py | 376 | # Step 1: Health | COMMENT |
| LOW⚡ | e2b-infra/tests/test_e2e.py | 383 | # Step 2: Template | COMMENT |
| LOW⚡ | e2b-infra/tests/test_e2e.py | 390 | # Step 3: Create sandbox | COMMENT |
| LOW⚡ | e2b-infra/tests/test_e2e.py | 396 | # Step 4: Wait ready | COMMENT |
| LOW⚡ | e2b-infra/tests/test_e2e.py | 405 | # Step 5: Write file | COMMENT |
| LOW⚡ | e2b-infra/tests/test_e2e.py | 409 | # Step 6: Run command | COMMENT |
| LOW⚡ | e2b-infra/tests/test_e2e.py | 413 | # Step 7: Stream command | COMMENT |
| LOW⚡ | e2b-infra/tests/test_e2e.py | 417 | # Step 8: Read file | COMMENT |
| LOW⚡ | e2b-infra/tests/test_e2e.py | 421 | # Step 9: Kill sandbox | COMMENT |
| LOW⚡ | api/app/core/memory/pipelines/dispatcher.py | 735 | # Step 2: 解析 memory_config_id(走 workspace 默认配置,与滑动窗口路径一致) | COMMENT |
| LOW⚡ | api/app/core/memory/pipelines/dispatcher.py | 742 | # Step 3: 逐条处理 | COMMENT |
| LOW | api/app/core/memory/pipelines/dispatcher.py | 693 | # Step 1: 查询对话信息 + 未写入消息 | COMMENT |
| LOW | api/app/core/memory/pipelines/dispatcher.py | 764 | # Step 4: 清理 pending_conversations Set | COMMENT |
| LOW⚡ | api/app/core/memory/pipelines/write_pipeline.py | 563 | # Step 5: 摘要写入(依赖 Step 4 写入的 CONTAINS 边) | COMMENT |
| LOW⚡ | api/app/core/memory/pipelines/write_pipeline.py | 588 | # Step 6: 聚类(Celery 异步,不阻塞) | COMMENT |
| LOW⚡ | api/app/core/memory/pipelines/write_pipeline.py | 617 | # Step 1: 预处理 | COMMENT |
| LOW⚡ | api/app/core/memory/pipelines/write_pipeline.py | 645 | # Step 2: 萃取 | COMMENT |
| LOW⚡ | api/app/core/memory/pipelines/write_pipeline.py | 755 | # Step 3: 存储 | COMMENT |
| LOW⚡ | api/app/core/memory/pipelines/write_pipeline.py | 989 | # Step 4: 聚类 | COMMENT |
| LOW | api/app/core/memory/pipelines/write_pipeline.py | 358 | # Step 1: 剪枝 - 统一剪枝所有消息 | COMMENT |
| LOW | api/app/core/memory/pipelines/write_pipeline.py | 446 | # Step 2: 预处理 - 消息分块 | COMMENT |
| LOW | api/app/core/memory/pipelines/write_pipeline.py | 492 | # Step 3: 萃取 + 摘要 LLM 生成并行启动 | COMMENT |
| LOW | api/app/core/memory/pipelines/write_pipeline.py | 524 | # Step 4: Store + Stats 并行(Neo4j + Redis 互不依赖) | COMMENT |
| LOW | …ion_engine/knowledge_extraction/ontology_extraction.py | 124 | # Step 1: Call LLM for extraction with timeout | COMMENT |
| LOW | …ion_engine/knowledge_extraction/ontology_extraction.py | 169 | # Step 2: First-layer validation (string validation and cleaning) | COMMENT |
| LOW⚡ | …ion_engine/knowledge_extraction/ontology_extraction.py | 191 | # Step 3: Second-layer validation (OWL semantic validation) | COMMENT |
| LOW⚡ | …xtraction_engine/data_preprocessing/pruning_service.py | 74 | # Step 1: 从 DB 刷新 pruned_content | COMMENT |
| LOW⚡ | …xtraction_engine/data_preprocessing/pruning_service.py | 78 | # Step 2: 遍历消息,收集 LLM 任务 | COMMENT |
| LOW | …xtraction_engine/data_preprocessing/pruning_service.py | 139 | # Step 3: 并发执行 LLM 任务 | COMMENT |
| LOW⚡ | …xtraction_engine/data_preprocessing/pruning_service.py | 195 | # Step 4: 批量回写 DB | COMMENT |
| LOW⚡ | …storage_services/reflection_engine/layer2_inspector.py | 1312 | # Step 1: 候选召回(均摊耗时) | COMMENT |
| LOW⚡ | …storage_services/reflection_engine/layer2_inspector.py | 1318 | # Step 2: 综合打分(均摊耗时) | COMMENT |
| LOW⚡ | …storage_services/reflection_engine/layer2_inspector.py | 1324 | # Step 3: LLM 调用(均摊耗时) | COMMENT |
| LOW⚡ | …storage_services/reflection_engine/layer2_inspector.py | 1331 | # Step 4: 策略决策(选择 keeper) | COMMENT |
| LOW⚡ | …storage_services/reflection_engine/layer2_inspector.py | 1361 | # Step 5: 写入 | COMMENT |
| LOW⚡ | …storage_services/reflection_engine/layer2_inspector.py | 1752 | # Step 1: 获取上下文 | COMMENT |
| LOW⚡ | …storage_services/reflection_engine/layer2_inspector.py | 1762 | # Step 2: LLM 消解 + 提取 | COMMENT |
| LOW | …storage_services/reflection_engine/layer2_inspector.py | 1391 | # Step 6: 写 ReflectionLog | COMMENT |
| LOW | …storage_services/reflection_engine/layer2_inspector.py | 1778 | # Step 3: 校验 | COMMENT |
| LOW | …storage_services/reflection_engine/layer2_inspector.py | 1811 | # Step 4: 写入 Neo4j | COMMENT |
| LOW | …storage_services/reflection_engine/layer2_inspector.py | 1956 | # Step 5: 写反思日志(仅 resolved=true 时) | COMMENT |
| LOW | …storage_services/reflection_engine/layer2_inspector.py | 2073 | # Step 1: 碎片拆分 + 备份 timeline | COMMENT |
| 14 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | …plicationManagement/components/UploadWorkflowModal.tsx | 37 | 'upload', // Step 1: File upload | CODE |
| LOW⚡ | …plicationManagement/components/UploadWorkflowModal.tsx | 38 | 'complex', // Step 2: Error/warning display | CODE |
| LOW⚡ | …plicationManagement/components/UploadWorkflowModal.tsx | 39 | 'sureInfo', // Step 3: Information confirmation | CODE |
| LOW⚡ | …plicationManagement/components/UploadWorkflowModal.tsx | 40 | 'completed' // Step 4: Success message | CODE |
| LOW | …plicationManagement/components/UploadWorkflowModal.tsx | 95 | case 0: // Step 1: Upload file | CODE |
| LOW | …plicationManagement/components/UploadWorkflowModal.tsx | 130 | case 1: // Step 2: Error/warning display | CODE |
| LOW | …plicationManagement/components/UploadWorkflowModal.tsx | 144 | case 2: // Step 3: Confirm information | CODE |
| LOW | …plicationManagement/components/UploadWorkflowModal.tsx | 215 | case 0: // Step 1: Upload | CODE |
| LOW | …plicationManagement/components/UploadWorkflowModal.tsx | 229 | case 3: // Step 4: Completed | CODE |
| LOW⚡ | …views/ApplicationManagement/components/UploadModal.tsx | 40 | 'upload', // Step 1: File upload | CODE |
| LOW⚡ | …views/ApplicationManagement/components/UploadModal.tsx | 41 | 'complex', // Step 2: Error/warning display | CODE |
| LOW⚡ | …views/ApplicationManagement/components/UploadModal.tsx | 42 | 'completed' // Step 4: Success message | CODE |
| LOW | …views/ApplicationManagement/components/UploadModal.tsx | 96 | case 0: // Step 1: Upload file | CODE |
| LOW | …views/ApplicationManagement/components/UploadModal.tsx | 164 | case 0: // Step 1: Upload | CODE |
| LOW⚡ | …src/views/ApplicationConfig/components/Skill/index.tsx | 25 | 'receiveTask', // Step 1: Receive task | CODE |
| LOW⚡ | …src/views/ApplicationConfig/components/Skill/index.tsx | 26 | 'analyTask', // Step 2: Analyze task intent | CODE |
| LOW⚡ | …src/views/ApplicationConfig/components/Skill/index.tsx | 27 | 'dynamicMatchSkill', // Step 3: Dynamically match appropriate skill | CODE |
| LOW⚡ | …src/views/ApplicationConfig/components/Skill/index.tsx | 28 | 'executeTask' // Step 4: Execute the task | CODE |
| LOW⚡ | e2b-infra/tests/test_e2e.py | 376 | # Step 1: Health | COMMENT |
| LOW⚡ | e2b-infra/tests/test_e2e.py | 383 | # Step 2: Template | COMMENT |
| LOW⚡ | e2b-infra/tests/test_e2e.py | 390 | # Step 3: Create sandbox | COMMENT |
| LOW⚡ | e2b-infra/tests/test_e2e.py | 396 | # Step 4: Wait ready | COMMENT |
| LOW⚡ | e2b-infra/tests/test_e2e.py | 405 | # Step 5: Write file | COMMENT |
| LOW⚡ | e2b-infra/tests/test_e2e.py | 409 | # Step 6: Run command | COMMENT |
| LOW⚡ | e2b-infra/tests/test_e2e.py | 413 | # Step 7: Stream command | COMMENT |
| LOW⚡ | e2b-infra/tests/test_e2e.py | 417 | # Step 8: Read file | COMMENT |
| LOW⚡ | e2b-infra/tests/test_e2e.py | 421 | # Step 9: Kill sandbox | COMMENT |
| LOW⚡ | api/app/core/memory/pipelines/dispatcher.py | 735 | # Step 2: 解析 memory_config_id(走 workspace 默认配置,与滑动窗口路径一致) | COMMENT |
| LOW⚡ | api/app/core/memory/pipelines/dispatcher.py | 742 | # Step 3: 逐条处理 | COMMENT |
| LOW | api/app/core/memory/pipelines/dispatcher.py | 693 | # Step 1: 查询对话信息 + 未写入消息 | COMMENT |
| LOW | api/app/core/memory/pipelines/dispatcher.py | 764 | # Step 4: 清理 pending_conversations Set | COMMENT |
| LOW⚡ | api/app/core/memory/pipelines/write_pipeline.py | 563 | # Step 5: 摘要写入(依赖 Step 4 写入的 CONTAINS 边) | COMMENT |
| LOW⚡ | api/app/core/memory/pipelines/write_pipeline.py | 588 | # Step 6: 聚类(Celery 异步,不阻塞) | COMMENT |
| LOW⚡ | api/app/core/memory/pipelines/write_pipeline.py | 617 | # Step 1: 预处理 | COMMENT |
| LOW⚡ | api/app/core/memory/pipelines/write_pipeline.py | 645 | # Step 2: 萃取 | COMMENT |
| LOW⚡ | api/app/core/memory/pipelines/write_pipeline.py | 755 | # Step 3: 存储 | COMMENT |
| LOW⚡ | api/app/core/memory/pipelines/write_pipeline.py | 989 | # Step 4: 聚类 | COMMENT |
| LOW | api/app/core/memory/pipelines/write_pipeline.py | 358 | # Step 1: 剪枝 - 统一剪枝所有消息 | COMMENT |
| LOW | api/app/core/memory/pipelines/write_pipeline.py | 446 | # Step 2: 预处理 - 消息分块 | COMMENT |
| LOW | api/app/core/memory/pipelines/write_pipeline.py | 492 | # Step 3: 萃取 + 摘要 LLM 生成并行启动 | COMMENT |
| LOW | api/app/core/memory/pipelines/write_pipeline.py | 524 | # Step 4: Store + Stats 并行(Neo4j + Redis 互不依赖) | COMMENT |
| LOW | …ion_engine/knowledge_extraction/ontology_extraction.py | 124 | # Step 1: Call LLM for extraction with timeout | COMMENT |
| LOW | …ion_engine/knowledge_extraction/ontology_extraction.py | 169 | # Step 2: First-layer validation (string validation and cleaning) | COMMENT |
| LOW⚡ | …ion_engine/knowledge_extraction/ontology_extraction.py | 191 | # Step 3: Second-layer validation (OWL semantic validation) | COMMENT |
| LOW⚡ | …xtraction_engine/data_preprocessing/pruning_service.py | 74 | # Step 1: 从 DB 刷新 pruned_content | COMMENT |
| LOW⚡ | …xtraction_engine/data_preprocessing/pruning_service.py | 78 | # Step 2: 遍历消息,收集 LLM 任务 | COMMENT |
| LOW | …xtraction_engine/data_preprocessing/pruning_service.py | 139 | # Step 3: 并发执行 LLM 任务 | COMMENT |
| LOW⚡ | …xtraction_engine/data_preprocessing/pruning_service.py | 195 | # Step 4: 批量回写 DB | COMMENT |
| LOW⚡ | …storage_services/reflection_engine/layer2_inspector.py | 1312 | # Step 1: 候选召回(均摊耗时) | COMMENT |
| LOW⚡ | …storage_services/reflection_engine/layer2_inspector.py | 1318 | # Step 2: 综合打分(均摊耗时) | COMMENT |
| LOW⚡ | …storage_services/reflection_engine/layer2_inspector.py | 1324 | # Step 3: LLM 调用(均摊耗时) | COMMENT |
| LOW⚡ | …storage_services/reflection_engine/layer2_inspector.py | 1331 | # Step 4: 策略决策(选择 keeper) | COMMENT |
| LOW⚡ | …storage_services/reflection_engine/layer2_inspector.py | 1361 | # Step 5: 写入 | COMMENT |
| LOW⚡ | …storage_services/reflection_engine/layer2_inspector.py | 1752 | # Step 1: 获取上下文 | COMMENT |
| LOW⚡ | …storage_services/reflection_engine/layer2_inspector.py | 1762 | # Step 2: LLM 消解 + 提取 | COMMENT |
| LOW | …storage_services/reflection_engine/layer2_inspector.py | 1391 | # Step 6: 写 ReflectionLog | COMMENT |
| LOW | …storage_services/reflection_engine/layer2_inspector.py | 1778 | # Step 3: 校验 | COMMENT |
| LOW | …storage_services/reflection_engine/layer2_inspector.py | 1811 | # Step 4: 写入 Neo4j | COMMENT |
| LOW | …storage_services/reflection_engine/layer2_inspector.py | 1956 | # Step 5: 写反思日志(仅 resolved=true 时) | COMMENT |
| LOW | …storage_services/reflection_engine/layer2_inspector.py | 2073 | # Step 1: 碎片拆分 + 备份 timeline | COMMENT |
| 14 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | sandbox/tests/stress_test.py | 137 | for (let i = 2; i <= n; i++) if (isPrime[i]) primes.push(i); | CODE |
| HIGH | e2b-infra/tests/test_e2e.py | 230 | "cmd": "echo $TEST_VAR && python -c \"import json; data=json.load(open('/app/test_config.json')); print( | CODE |
| HIGH | e2b-infra/tests/test_e2e.py | 265 | cmd = "for i in 1 2 3; do echo \"line_$i\"; sleep 0.5; done && echo '{\"event\": \"done\", \"data\": {\"count\": | CODE |
| HIGH | …/agent-runtime/runtime/core/workflow/nodes/llm/node.py | 247 | # Optional (required=False) scalar fields allow null; required fields do not | COMMENT |
| HIGH | …/agent-runtime/runtime/core/workflow/nodes/llm/node.py | 331 | (recursively, each child defaults to null) so the full schema | STRING |
| HIGH | …gent-runtime/runtime/core/workflow/nodes/agent/node.py | 53 | {"tool_id": "uuid", "tool_type": "builtin", "operation": null, "enabled": true} | STRING |
| HIGH | api/app/core/workflow/nodes/llm/node.py | 248 | # Optional (required=False) scalar fields allow null; required fields do not | COMMENT |
| HIGH | api/app/core/workflow/nodes/llm/node.py | 332 | (recursively, each child defaults to null) so the full schema | STRING |
| HIGH | api/app/core/workflow/nodes/agent/node.py | 56 | {"tool_id": "uuid", "tool_type": "builtin", "operation": null, "enabled": true} | STRING |
| HIGH⚡ | api/app/repositories/neo4j/cypher_queries.py | 2812 | e.activation_value = null, | CODE |
| HIGH⚡ | api/app/repositories/neo4j/cypher_queries.py | 2815 | e.last_access_time = null, | CODE |
| HIGH⚡ | api/app/repositories/neo4j/cypher_queries.py | 2820 | e.delete_at = null, | CODE |
| HIGH | api/app/repositories/neo4j/cypher_queries.py | 45 | SET s.delete_at = null, | CODE |
| HIGH | api/app/repositories/neo4j/cypher_queries.py | 284 | SET c.delete_at = null, | CODE |
| HIGH | api/app/repositories/neo4j/cypher_queries.py | 510 | SET e.delete_at = null, | CODE |
| HIGH | api/app/repositories/neo4j/cypher_queries.py | 528 | SET s.delete_at = null, | CODE |
| HIGH | api/app/repositories/neo4j/cypher_queries.py | 533 | SET o.delete_at = null, | CODE |
| HIGH | api/app/repositories/neo4j/cypher_queries.py | 2799 | e.delete_at = null, | CODE |
| HIGH | api/app/controllers/memory_dashboard_controller.py | 592 | } | null, | STRING |
| HIGH | api/app/services/workflow_service.py | 5194 | 第二轮 user 不会成为孤儿(parent=null)。第一轮无已落库 assistant 时返回 None。 | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | sandbox/runtime/script/env.sh | 3 | # Check if the correct number of arguments are provided | COMMENT |
| LOW | sandbox/runtime/script/env.sh | 30 | # Check if src is a file or directory | COMMENT |
| LOW | e2b-infra/tests/test_e2e.py | 99 | # Check if template already exists | COMMENT |
| LOW | e2b-infra/tests/setup_and_test.sh | 99 | # Check if httpx is available | COMMENT |
| LOW | …agent-runtime/runtime/core/workflow/nodes/base_node.py | 492 | # Check if it's a completion marker | COMMENT |
| LOW | …agent-runtime/runtime/core/workflow/nodes/base_node.py | 635 | # # Check if the node has an error edge defined | COMMENT |
| LOW | …time/core/workflow/engine/stream_output_coordinator.py | 423 | # Check if this variable's scope was already fully streamed via node_chunk events. | COMMENT |
| LOW | api/app/dependencies.py | 497 | # Check if user is a member | COMMENT |
| LOW⚡ | …app/core/memory/utils/validation/ontology_validator.py | 77 | # Check if empty | COMMENT |
| LOW⚡ | …app/core/memory/utils/validation/ontology_validator.py | 85 | # Check if it's an OWL reserved word | COMMENT |
| LOW⚡ | …app/core/memory/utils/validation/ontology_validator.py | 91 | # Check if starts with uppercase letter (only for ASCII letters) | COMMENT |
| LOW | api/app/core/memory/utils/validation/owl_validator.py | 142 | # Check if parent exists | COMMENT |
| LOW | api/app/core/memory/agent/logger_file/log_streamer.py | 105 | # Check if file exists | COMMENT |
| LOW | api/app/core/memory/agent/logger_file/log_streamer.py | 204 | # Check if file exists | COMMENT |
| LOW | api/app/core/memory/agent/logger_file/log_streamer.py | 218 | # Open file and seek to end to start streaming new content | COMMENT |
| LOW | api/app/core/memory/agent/logger_file/log_streamer.py | 227 | # Check if file has new content | COMMENT |
| LOW⚡ | …ion_engine/knowledge_extraction/ontology_extraction.py | 184 | # Check if we have enough classes after first-layer validation | COMMENT |
| LOW | api/app/core/memory/src/search.py | 171 | # Check if we've seen this ID or content before | COMMENT |
| LOW | api/app/core/memory/src/search.py | 522 | # # Check if reranking is enabled | COMMENT |
| LOW | api/app/core/models/llm.py | 551 | # Check if there's a fallback method | COMMENT |
| LOW | api/app/core/rag/graphrag/general/index.py | 463 | # Check if task has been canceled before resolution | COMMENT |
| LOW | api/app/core/rag/crawler/content_extractor.py | 87 | # Check if content is static | COMMENT |
| LOW | api/app/core/rag/crawler/url_normalizer.py | 120 | # Check if domains match | COMMENT |
| LOW | api/app/core/rag/crawler/url_normalizer.py | 155 | # Check if href starts with http/https (absolute URL) | COMMENT |
| LOW | api/app/core/rag/crawler/web_crawler.py | 143 | # Check if static content | COMMENT |
| LOW | api/app/core/workflow/nodes/base_node.py | 492 | # Check if it's a completion marker | COMMENT |
| LOW | api/app/core/workflow/nodes/base_node.py | 635 | # # Check if the node has an error edge defined | COMMENT |
| LOW | …/app/core/workflow/engine/stream_output_coordinator.py | 469 | # Check if this variable's scope was already fully streamed via node_chunk events. | COMMENT |
| LOW | api/app/core/validators/file_validator.py | 223 | # Check if the detected type matches the extension | COMMENT |
| LOW | api/app/repositories/memory_config_repository.py | 680 | # Check if config exists but workspace is missing | COMMENT |
| LOW | api/app/repositories/memory_config_repository.py | 787 | # Check if config exists but workspace is missing | COMMENT |
| LOW | api/app/controllers/mcp_market_controller.py | 186 | # Check if the mcp market name already exists | COMMENT |
| LOW | api/app/controllers/file_storage_controller.py | 201 | # Read file contents | COMMENT |
| LOW | api/app/controllers/i18n_controller.py | 116 | # Check if locale exists | COMMENT |
| LOW | api/app/controllers/i18n_controller.py | 176 | # Check if language already exists | COMMENT |
| LOW | api/app/controllers/i18n_controller.py | 228 | # Check if language exists | COMMENT |
| LOW | api/app/controllers/i18n_controller.py | 316 | # Check if locale exists | COMMENT |
| LOW | api/app/controllers/i18n_controller.py | 355 | # Check if locale exists | COMMENT |
| LOW | api/app/controllers/i18n_controller.py | 417 | # Check if locale exists | COMMENT |
| LOW | api/app/controllers/knowledge_controller.py | 659 | # Check if the knowledge base name already exists | COMMENT |
| LOW | api/app/controllers/upload_controller.py | 242 | # Check if physical file exists | COMMENT |
| LOW | api/app/services/prompt_optimizer_service.py | 253 | # Check if end tag already in buffer | COMMENT |
| LOW | api/app/services/workflow_tool_publish_service.py | 185 | # Check if already published | COMMENT |
| LOW | api/app/services/memory_agent_service.py | 54 | # Check if AI message contains tool calls | COMMENT |
| LOW | api/app/services/memory_agent_service.py | 70 | # Check if tool message | COMMENT |
| LOW | api/app/services/memory_agent_service.py | 116 | # Check if pool usage is too high | COMMENT |
| LOW | api/app/services/memory_agent_service.py | 186 | # Check if file exists before starting stream | COMMENT |
| LOW | api/app/services/memory_agent_service.py | 699 | # Check if file exists before starting stream | COMMENT |
| LOW | api/app/services/memory_config_service.py | 1156 | # Check if this is the default config - default configs cannot be deleted | COMMENT |
| LOW | api/app/services/memory_config_service.py | 1267 | # Check if this is the default config - default configs cannot be deleted | COMMENT |
| LOW | api/app/services/memory_config_service.py | 1416 | # Check if it's a numeric string (legacy int format) | COMMENT |
| LOW | api/app/services/user_memory_service.py | 206 | # Check if time distribution is too concentrated (likely batch imported data) | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …/redbear-model/src/redbear_model/runtime/generation.py | 92 | CODE | |
| LOW | …/redbear-model/src/redbear_model/runtime/generation.py | 179 | CODE | |
| LOW | …es/agent-runtime/runtime/core/agent/langchain_agent.py | 219 | CODE | |
| LOW | …untime/core/workflow/nodes/parameter_extractor/node.py | 249 | CODE | |
| LOW | api/app/tasks.py | 2572 | CODE | |
| LOW | api/app/tasks.py | 2822 | CODE | |
| LOW | api/app/tasks.py | 2689 | CODE | |
| LOW | api/app/core/memory/memory_service.py | 307 | CODE | |
| LOW | api/app/core/memory/pipelines/write_pipeline.py | 250 | CODE | |
| LOW | api/app/core/memory/agent/utils/get_dialogs.py | 8 | CODE | |
| LOW | …ion_engine/knowledge_extraction/ontology_extraction.py | 55 | CODE | |
| LOW | …y/storage_services/reflection_engine/self_reflexion.py | 160 | CODE | |
| LOW | …e/memory/read_services/search_engine/content_search.py | 60 | CODE | |
| LOW | api/app/core/agent/langchain_agent.py | 221 | CODE | |
| LOW | api/app/core/models/generation.py | 77 | CODE | |
| LOW | api/app/core/models/generation.py | 197 | CODE | |
| LOW | api/app/core/rag/deepdoc/parser/mineru_parser.py | 440 | CODE | |
| LOW | api/app/core/rag/graphrag/utils.py | 423 | CODE | |
| LOW | api/app/core/rag/graphrag/general/graph_extractor.py | 51 | CODE | |
| LOW | api/app/core/rag/nlp/search.py | 696 | CODE | |
| LOW | api/app/core/workflow/nodes/parameter_extractor/node.py | 290 | CODE | |
| LOW | api/app/core/workflow/adapters/dify/converter.py | 1172 | CODE | |
| LOW | api/app/controllers/api_key_controller.py | 287 | CODE | |
| LOW | api/app/controllers/model_controller.py | 44 | CODE | |
| LOW | api/app/controllers/model_controller.py | 112 | CODE | |
| LOW | api/app/controllers/memory_display_controller.py | 38 | CODE | |
| LOW | api/app/controllers/app_controller.py | 473 | CODE | |
| LOW | api/app/controllers/app_log_controller.py | 24 | CODE | |
| LOW | api/app/controllers/document_controller.py | 109 | CODE | |
| LOW | api/app/controllers/knowledge_controller.py | 279 | CODE | |
| LOW | …app/controllers/service/rag_api_document_controller.py | 30 | CODE | |
| LOW | …pp/controllers/service/rag_api_knowledge_controller.py | 69 | CODE | |
| LOW | api/app/services/prompt_optimizer_service.py | 563 | CODE | |
| LOW | api/app/services/app_chat_service.py | 482 | CODE | |
| LOW | api/app/services/app_chat_service.py | 1057 | CODE | |
| LOW | api/app/services/app_chat_service.py | 1971 | CODE | |
| LOW | api/app/services/app_chat_service.py | 2008 | CODE | |
| LOW | api/app/services/memory_reflection_service.py | 790 | CODE | |
| LOW | api/app/services/multi_agent_orchestrator.py | 140 | CODE | |
| LOW | api/app/services/multi_agent_orchestrator.py | 1404 | CODE | |
| LOW | api/app/services/workspace_service.py | 418 | CODE | |
| LOW | api/app/services/e2b_agent_adapter.py | 35 | CODE | |
| LOW | api/app/services/e2b_agent_adapter.py | 169 | CODE | |
| LOW | api/app/services/draft_run_service.py | 669 | CODE | |
| LOW | api/app/services/draft_run_service.py | 1130 | CODE | |
| LOW | api/app/services/draft_run_service.py | 1596 | CODE | |
| LOW | api/app/services/draft_run_service.py | 2798 | CODE | |
| LOW | api/app/services/draft_run_service.py | 3423 | CODE | |
| LOW | api/app/services/draft_run_service.py | 3653 | CODE | |
| LOW | api/app/services/generation_service.py | 77 | CODE | |
| LOW | api/app/services/generation_service.py | 132 | CODE | |
| LOW | api/app/services/generation_service.py | 177 | CODE | |
| LOW | api/app/services/app_service.py | 2755 | CODE | |
| LOW | api/app/services/app_service.py | 1243 | CODE | |
| LOW | api/app/services/workflow_service.py | 931 | CODE | |
| LOW | api/app/services/workflow_service.py | 1293 | CODE | |
| LOW | api/app/services/workflow_service.py | 6314 | CODE | |
| LOW | api/app/services/workflow_service.py | 6836 | CODE | |
| LOW | api/app/services/memory_storage_service.py | 1168 | CODE | |
| LOW | api/app/services/memory_storage_service.py | 1177 | CODE | |
| 11 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | e2b-infra/templates/agent-runtime/extract_runtime.sh | 11 | # - Document parsing (RAG ingestion happens outside sandbox) | COMMENT |
| MEDIUM | api/app/tasks.py | 2640 | # RAG 存储类型走独立路径 | COMMENT |
| MEDIUM | api/app/core/error_codes.py | 85 | # RAG/知识(9xxx) | COMMENT |
| MEDIUM | api/app/core/rag_utils/README.md | 1 | # RAG Chunk 分析工具 | COMMENT |
| MEDIUM⚡ | api/app/core/memory/pipelines/dispatcher.py | 333 | # RAG 写入 | COMMENT |
| MEDIUM | api/app/core/rag/llm/embedding_model.py | 54 | # between cl100k_base (used by truncate) and the actual embedding model | COMMENT |
| MEDIUM | api/app/models/end_user_model.py | 98 | # RAG存储模式专用字段 - RAG Storage Mode Fields | COMMENT |
| MEDIUM | api/app/controllers/memory_controller.py | 88 | # ── RAG 路径:保持不变,直接拼接文本写向量库 ── | COMMENT |
| MEDIUM | api/app/controllers/multi_agent_controller.py | 26 | # "/{app_id}/multi-agent", | COMMENT |
| MEDIUM | api/app/controllers/multi_agent_controller.py | 118 | # "/{app_id}/multi-agent", | COMMENT |
| MEDIUM | api/app/controllers/multi_agent_controller.py | 135 | # "/{app_id}/multi-agent/run", | COMMENT |
| MEDIUM | api/app/controllers/multi_agent_controller.py | 163 | # "/{app_id}/multi-agent/test-routing", | COMMENT |
| MEDIUM | api/app/controllers/multi_agent_controller.py | 283 | # "/{app_id}/multi-agent/test-master-agent", | COMMENT |
| MEDIUM | api/app/controllers/multi_agent_controller.py | 437 | # "/{app_id}/multi-agent/batch-test-routing", | COMMENT |
| MEDIUM | api/app/controllers/memory_dashboard_controller.py | 424 | # ======== RAG 数据统计 ======== | COMMENT |
| MEDIUM | api/app/services/memory_dashboard_service.py | 450 | # ======== RAG 相关服务 ======== | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | sandbox/runtime/script/env.sh | 45 | # Create the same directory structure in the destination | COMMENT |
| MEDIUM | …t-runtime/runtime/core/workflow/nodes/assigner/node.py | 52 | # Initialize a variable pool for accessing conversation, node, and system variables | COMMENT |
| MEDIUM | api/app/core/memory/utils/validation/owl_validator.py | 86 | # Create a new world (isolated ontology environment) | COMMENT |
| MEDIUM | …alytics/implicit_memory/analyzers/interest_analyzer.py | 41 | # Define the four interest categories we analyze | COMMENT |
| MEDIUM | …lytics/implicit_memory/analyzers/dimension_analyzer.py | 42 | # Define the four dimensions we analyze | COMMENT |
| MEDIUM | api/app/core/rag/crawler/robots_parser.py | 67 | # Create a permissive parser | COMMENT |
| MEDIUM | api/app/core/workflow/executor.py | 210 | # Initialize the variable pool and system variables | COMMENT |
| MEDIUM | api/app/core/workflow/nodes/assigner/node.py | 52 | # Initialize a variable pool for accessing conversation, node, and system variables | COMMENT |
| MEDIUM | api/app/services/file_storage_service.py | 358 | # Create a default instance for convenience | COMMENT |
| MEDIUM | api/app/services/workspace_service.py | 821 | # Create the workspace without adding any members | COMMENT |
| MEDIUM | api/app/services/workspace_service.py | 868 | # Create the workspace without adding any members | COMMENT |
| MEDIUM | api/app/services/memory_konwledges_server.py | 326 | # Create a document | COMMENT |
| MEDIUM | api/app/services/user_service.py | 48 | # Create a default tenant for the superuser | COMMENT |
| MEDIUM | api/app/services/upload_service.py | 163 | # Create a temporary UoW wrapper for the existing session | COMMENT |
| MEDIUM | api/tests/workflow/nodes/base.py | 51 | # Initialize system variables (sys namespace) | COMMENT |
| MEDIUM | api/tests/workflow/nodes/base.py | 56 | # Initialize system variables (sys namespace) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | web/src/i18n/en/detail.ts | 90 | portraitSubTitle: 'Personalized insights generated by AI based on your preference tags', | CODE |
| HIGH | api/app/core/memory/models/graph_models.py | 274 | # Core fields (ordered as requested) | COMMENT |
| HIGH | api/app/core/memory/models/graph_models.py | 285 | # Emotion fields (ordered as requested, emotion_intensity first for display) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | api/app/core/rag/deepdoc/parser/pdf_parser.py | 550 | CODE | |
| MEDIUM | api/app/core/rag/deepdoc/parser/pdf_parser.py | 566 | CODE | |
| MEDIUM | api/app/core/rag/deepdoc/parser/pdf_parser.py | 567 | CODE | |
| MEDIUM | api/app/core/rag/deepdoc/parser/pdf_parser.py | 568 | CODE | |
| MEDIUM | api/app/core/rag/deepdoc/parser/pdf_parser.py | 625 | CODE | |
| MEDIUM | api/app/core/rag/deepdoc/parser/pdf_parser.py | 626 | CODE | |
| MEDIUM | api/app/core/rag/deepdoc/parser/pdf_parser.py | 647 | CODE | |
| MEDIUM | api/app/repositories/memory_config_repository.py | 1074 | CODE | |
| MEDIUM | api/app/repositories/memory_config_repository.py | 1078 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …orkflow/components/Properties/hooks/useVariableList.ts | 547 | // Uses the same robust strategy as useVariableList: | COMMENT |
| MEDIUM | api/app/core/memory/agent/logger_file/log_streamer.py | 35 | # This pattern is comprehensive to handle various log formats | COMMENT |
| MEDIUM | api/app/core/memory/models/base_response.py | 15 | """Base class for LLM response models with robust validation. | STRING |
| MEDIUM | api/app/core/rag/graphrag/light/graph_prompt.py | 140 | PROMPTS["summarize_entity_descriptions"] = """You are a helpful assistant responsible for generating a comprehensive sum | CODE |
| MEDIUM | api/app/controllers/memory_short_term_controller.py | 109 | # Compile comprehensive memory statistics response | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | api/app/core/config.py | 201 | FIRST_SUPERUSER_EMAIL: str = os.getenv("FIRST_SUPERUSER_EMAIL", "admin@example.com") | CODE |
| LOW | api/app/core/memory/src/search.py | 476 | # model_name = rc.get("model", "placeholder") | COMMENT |
| LOW | api/app/core/rag/knowledge_graph/prompts.py | 29 | "name": "Acme Corp", | CODE |
| LOW | api/app/core/rag/prompts/structured_output_prompt.md | 14 | {"name": "John Doe", "age": 30} | CODE |
| LOW | api/app/schemas/order_schema.py | 25 | "customer_name": "John Doe", | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | api/app/services/dynamic_handoff_tools.py | 309 | api_key="your-api-key", | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …e/runtime/core/workflow/nodes/cycle_graph/iteration.py | 143 | async def run_task(self, item, idx): | CODE |
| LOW | api/app/core/workflow/nodes/cycle_graph/iteration.py | 143 | async def run_task(self, item, idx): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …re/memory/utils/visualization/forgetting_visualizer.py | 353 | # Example usage | COMMENT |