MemoryBear Equip AI with human-like memory capability
This report summarizes scanner evidence for SuanmoSuanyangTechnology/MemoryBear, a Python project with 7,636 GitHub stars. SynthScan examined 583,990 lines of code across 2457 source files, recording 9495 pattern matches distributed across 24 syntactic categories. The legacy adjusted pattern signal is 20.9 (Elevated pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 4078 finding(s).
Are imports declared and package/API names verified? 1636 finding(s).
Are wrappers, guards, and repeated structures necessary? 6465 finding(s).
Which changes need focused human review? 9495 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 9495 distinct pattern matches across 24 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | web/src/views/Conversation/utils/conversationActions.ts | 78 | export function createConversationActions(deps: ConversationActionDeps) { | CODE |
| LOW | gateway-service/src/config.py | 84 | def user_rate_limit_per_minute(self) -> int: | CODE |
| LOW | gateway-service/src/middleware.py | 49 | def is_kb_public_file_download(path: str, method: str) -> bool: | CODE |
| LOW | mem-knowledge/scripts/check_worker_artifacts.py | 327 | def _metadata_distribution_name_from_text(metadata: str) -> str | None: | CODE |
| LOW | mem-knowledge/scripts/check_worker_artifacts.py | 337 | def _metadata_distribution_name(metadata: Path) -> str | None: | CODE |
| LOW | mem-knowledge/scripts/check_import_boundaries.py | 190 | def _module_path_for_runtime_root( | CODE |
| LOW | mem-knowledge/scripts/check_import_boundaries.py | 203 | def _module_and_package_initializers( | CODE |
| LOW | mem-knowledge/scripts/check_import_boundaries.py | 250 | def _reachable_runtime_modules( | CODE |
| LOW | mem-knowledge/scripts/check_import_boundaries.py | 278 | def _removed_runtime_module_errors( | CODE |
| LOW | mem-knowledge/scripts/check_import_boundaries.py | 298 | def _scan_runtime_reachability( | CODE |
| LOW | mem-knowledge/scripts/check_import_boundaries.py | 409 | def _literal_string_collection(tree: ast.Module, name: str) -> set[str] | None: | CODE |
| LOW | mem-knowledge/scripts/check_import_boundaries.py | 431 | def _scan_worker_observability(root: Path) -> list[str]: | CODE |
| LOW | mem-knowledge/scripts/compare_legacy_contracts.py | 76 | def normalize_internal_operation(method: str, legacy_path: str) -> tuple[str, str]: | CODE |
| LOW | mem-knowledge/scripts/compare_legacy_contracts.py | 162 | def _returns_dynamic_response(node: ast.FunctionDef | ast.AsyncFunctionDef) -> bool: | CODE |
| LOW | mem-knowledge/scripts/compare_legacy_contracts.py | 248 | def _controller_operations_from_source( | CODE |
| LOW | mem-knowledge/scripts/compare_legacy_contracts.py | 295 | def _validate_legacy_inventory( | CODE |
| LOW | mem-knowledge/scripts/compare_legacy_contracts.py | 346 | def collect_legacy_operations( | CODE |
| LOW | mem-knowledge/scripts/compare_legacy_contracts.py | 365 | def collect_legacy_operations_from_git( | CODE |
| LOW | mem-knowledge/scripts/compare_legacy_contracts.py | 408 | def compare_openapi_operations( | CODE |
| LOW | mem-knowledge/scripts/compare_legacy_contracts.py | 433 | def compare_openapi_transport_contracts( | CODE |
| LOW | mem-knowledge/scripts/compare_legacy_contracts.py | 513 | def _operation_response_schema( | CODE |
| LOW | mem-knowledge/scripts/compare_legacy_contracts.py | 531 | 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 | 179 | def _clamp_graph_retrieval_timeout(cls, value: Any) -> int: | CODE |
| LOW | mem-knowledge/src/config.py | 393 | def settings_customise_sources( | CODE |
| LOW | mem-knowledge/src/runtime.py | 207 | def vision_executor_initialized(self) -> bool: | CODE |
| LOW | mem-knowledge/src/runtime.py | 281 | def _current_active_run_locked(self) -> _RuntimeRun | None: | CODE |
| LOW | mem-knowledge/src/runtime.py | 416 | def finish_after_current_submission() -> None: | CODE |
| LOW | mem-knowledge/src/runtime.py | 440 | async def _close_from_bridge_background( | CODE |
| LOW | mem-knowledge/src/runtime.py | 521 | def reset_worker_runtime_after_fork() -> ProcessRuntime: | CODE |
| LOW | mem-knowledge/src/runtime.py | 540 | def shutdown_worker_runtime_sync() -> None: | CODE |
| LOW | mem-knowledge/src/tasks/celery_worker.py | 55 | def validate_worker_role_queues(role: str, queues: set[str]) -> None: | CODE |
| LOW | mem-knowledge/src/tasks/celery_worker.py | 75 | def _log_health_state_failure( | CODE |
| LOW | mem-knowledge/src/tasks/celery_worker.py | 139 | def validate_worker_configuration( | CODE |
| LOW | mem-knowledge/src/tasks/celery_worker.py | 205 | def handle_worker_shutting_down( | CODE |
| LOW | mem-knowledge/src/tasks/celery_worker.py | 241 | def initialize_worker_process(**kwargs: object) -> None: | CODE |
| LOW | mem-knowledge/src/tasks/observability.py | 620 | def reset_observability_after_fork() -> None: | CODE |
| LOW | mem-knowledge/src/tasks/observability.py | 669 | def task_context_from_current_task( | CODE |
| LOW | mem-knowledge/src/tasks/evidence_graph.py | 45 | def process_evidence_document(*args: Any, **kwargs: Any) -> dict[str, Any]: | CODE |
| LOW | mem-knowledge/src/tasks/evidence_graph.py | 459 | def sync_evidence_graph_document( | CODE |
| LOW | mem-knowledge/src/tasks/evidence_graph.py | 496 | def rebuild_evidence_graph_knowledge( | CODE |
| LOW | mem-knowledge/src/tasks/evidence_graph.py | 509 | def clear_all_knowledge_graph_data( | CODE |
| LOW | mem-knowledge/src/tasks/document.py | 30 | def _load_knowledge_sync_processor(): | CODE |
| LOW | mem-knowledge/src/tasks/legacy_compat.py | 56 | def build_graphrag_for_document(document_id: object, knowledge_id: object) -> str: | CODE |
| LOW | mem-knowledge/src/tasks/legacy_compat.py | 73 | def migrate_evidence_graph_knowledge(knowledge_id: object) -> dict[str, str]: | CODE |
| LOW | mem-knowledge/src/tasks/state.py | 148 | async def claim_or_get_rebuild_job_async( | STRING |
| LOW | mem-knowledge/src/tasks/state.py | 219 | async def release_rebuild_job_async( | STRING |
| LOW | mem-knowledge/src/tasks/state.py | 234 | def acquire_rebuild_execution( | STRING |
| LOW | mem-knowledge/src/tasks/state.py | 249 | def release_rebuild_execution( | STRING |
| LOW | mem-knowledge/src/tasks/worker_health.py | 296 | def _current_process_owns_state( | CODE |
| LOW | mem-knowledge/src/tasks/worker_health.py | 333 | def remove_worker_state_if_owned( | 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 | 44 | async def get_by_knowledge_id_async( | CODE |
| LOW | mem-knowledge/src/repositories/knowledge_metadata.py | 56 | async def get_by_knowledge_ids_async( | CODE |
| LOW | mem-knowledge/src/repositories/knowledge_metadata.py | 106 | async def delete_by_knowledge_id_async( | CODE |
| LOW | mem-knowledge/src/repositories/knowledge_metadata.py | 129 | async def get_bindings_by_metadata_id_async( | CODE |
| LOW | mem-knowledge/src/repositories/knowledge_metadata.py | 141 | async def get_bindings_by_document_id_async( | CODE |
| 2546 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | gateway-service/src/auth_strategy.py | 55 | except Exception: | CODE |
| LOW | mem-knowledge/src/auth.py | 180 | except Exception as exc: | CODE |
| LOW | mem-knowledge/src/auth.py | 224 | except Exception as exc: | CODE |
| LOW | mem-knowledge/src/db.py | 121 | except Exception: | CODE |
| LOW | mem-knowledge/src/runtime.py | 79 | except Exception: | CODE |
| LOW | mem-knowledge/src/runtime.py | 329 | except Exception as exc: | CODE |
| LOW | mem-knowledge/src/runtime.py | 340 | except Exception as exc: | CODE |
| LOW | mem-knowledge/src/runtime.py | 351 | except Exception as exc: | CODE |
| LOW | mem-knowledge/src/runtime.py | 375 | except Exception as exc: | CODE |
| LOW | mem-knowledge/src/runtime.py | 381 | except Exception as exc: | CODE |
| LOW | mem-knowledge/src/runtime.py | 394 | except Exception as exc: | CODE |
| LOW | mem-knowledge/src/runtime.py | 404 | except Exception as exc: | CODE |
| LOW | mem-knowledge/src/request_logging.py | 44 | except Exception: | CODE |
| LOW | mem-knowledge/src/request_logging.py | 204 | except Exception as error: | CODE |
| LOW | mem-knowledge/src/request_logging.py | 267 | except Exception as exc: | CODE |
| LOW | mem-knowledge/src/request_logging.py | 332 | except Exception: | CODE |
| LOW | mem-knowledge/src/tasks/dispatch.py | 90 | except Exception as exc: | CODE |
| LOW | mem-knowledge/src/tasks/dispatch.py | 111 | except Exception: | CODE |
| LOW | mem-knowledge/src/tasks/celery_worker.py | 83 | except Exception: | CODE |
| LOW | mem-knowledge/src/tasks/celery_worker.py | 108 | except Exception as error: | CODE |
| LOW | mem-knowledge/src/tasks/celery_worker.py | 119 | except Exception as error: | CODE |
| LOW | mem-knowledge/src/tasks/celery_worker.py | 130 | except Exception as error: | CODE |
| MEDIUM | mem-knowledge/src/tasks/celery_worker.py | 127 | def _remove_health_state() -> None: | CODE |
| LOW | mem-knowledge/src/tasks/observability.py | 387 | except Exception as exc: # noqa: BLE001 - observability must not alter task behavior. | CODE |
| LOW | mem-knowledge/src/tasks/evidence_graph.py | 120 | except Exception as exc: | CODE |
| LOW | mem-knowledge/src/tasks/evidence_graph.py | 274 | except Exception as exc: | CODE |
| LOW | mem-knowledge/src/tasks/evidence_graph.py | 304 | except Exception as exc: | CODE |
| LOW | mem-knowledge/src/tasks/evidence_graph.py | 341 | except Exception as exc: | CODE |
| LOW | mem-knowledge/src/tasks/evidence_graph.py | 352 | except Exception as exc: | CODE |
| LOW | mem-knowledge/src/tasks/evidence_graph.py | 373 | except Exception: | CODE |
| LOW | mem-knowledge/src/tasks/evidence_graph.py | 390 | except Exception as exc: | CODE |
| LOW | mem-knowledge/src/tasks/legacy_compat.py | 23 | except Exception: | CODE |
| LOW | mem-knowledge/src/repositories/file.py | 44 | except Exception: | CODE |
| LOW | mem-knowledge/src/repositories/file.py | 108 | except Exception: | CODE |
| LOW | mem-knowledge/src/repositories/document.py | 49 | except Exception: | CODE |
| LOW⚡ | mem-knowledge/src/repositories/document.py | 103 | except Exception: | CODE |
| LOW | mem-knowledge/src/repositories/document.py | 141 | except Exception: | CODE |
| LOW⚡ | mem-knowledge/src/repositories/knowledge_share.py | 59 | except Exception: | CODE |
| LOW | mem-knowledge/src/repositories/knowledge_share.py | 128 | except Exception: | CODE |
| LOW | mem-knowledge/src/repositories/knowledge_share.py | 151 | except Exception: | CODE |
| LOW | mem-knowledge/src/repositories/model_registry.py | 177 | except Exception as exc: | CODE |
| LOW⚡ | mem-knowledge/src/repositories/knowledge.py | 198 | except Exception: | CODE |
| LOW | mem-knowledge/src/repositories/knowledge.py | 300 | except Exception: | CODE |
| LOW | …-knowledge/src/rag/knowledge_graph/extraction_cache.py | 48 | except Exception as exc: | CODE |
| LOW | …-knowledge/src/rag/knowledge_graph/extraction_cache.py | 58 | except Exception as exc: | CODE |
| LOW | …-knowledge/src/rag/knowledge_graph/extraction_cache.py | 72 | except Exception as exc: | CODE |
| LOW | …nowledge/src/rag/knowledge_graph/retrieval_pipeline.py | 575 | except Exception as exc: | CODE |
| LOW | …nowledge/src/rag/knowledge_graph/retrieval_pipeline.py | 942 | except Exception as exc: | CODE |
| LOW | …nowledge/src/rag/knowledge_graph/retrieval_pipeline.py | 1450 | except Exception as exc: | CODE |
| LOW | mem-knowledge/src/rag/knowledge_graph/index_pipeline.py | 252 | except Exception as exc: # noqa: BLE001 - observability must not alter graph work. | CODE |
| LOW | mem-knowledge/src/rag/knowledge_graph/index_pipeline.py | 402 | except Exception as exc: | CODE |
| LOW | mem-knowledge/src/rag/knowledge_graph/extractor.py | 51 | except Exception as exc: | CODE |
| LOW | mem-knowledge/src/rag/knowledge_graph/lock.py | 142 | except Exception as exc: | STRING |
| LOW | …-knowledge/src/rag/knowledge_graph/query_plan_cache.py | 57 | except Exception as exc: | CODE |
| LOW | …-knowledge/src/rag/knowledge_graph/query_plan_cache.py | 68 | except Exception as exc: | CODE |
| LOW | …-knowledge/src/rag/knowledge_graph/query_plan_cache.py | 81 | except Exception as exc: | CODE |
| LOW⚡ | mem-knowledge/src/rag/chunk/vision.py | 28 | except Exception: | CODE |
| LOW⚡ | mem-knowledge/src/rag/chunk/vision.py | 37 | except Exception as exc: # noqa: BLE001 - preserve best-effort visual enhancement. | CODE |
| LOW⚡ | mem-knowledge/src/rag/chunk/tokenization.py | 137 | except Exception: | CODE |
| LOW⚡ | mem-knowledge/src/rag/chunk/tokenization.py | 142 | except Exception: | CODE |
| 2445 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 |
| 392 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | gateway-service/src/circuit.py | 2 | CODE | |
| LOW | gateway-service/src/auth_strategy.py | 13 | CODE | |
| LOW | gateway-service/src/ratelimit.py | 2 | CODE | |
| LOW | gateway-service/src/forward.py | 11 | CODE | |
| LOW | mem-knowledge/scripts/check_model_ownership.py | 3 | CODE | |
| LOW | mem-knowledge/scripts/check_worker_artifacts.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/auth.py | 13 | 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/error_mapping.py | 3 | CODE | |
| LOW | mem-knowledge/src/runtime.py | 3 | CODE | |
| LOW | mem-knowledge/src/i18n.py | 3 | CODE | |
| LOW | mem-knowledge/src/errors.py | 3 | CODE | |
| LOW | mem-knowledge/src/request_logging.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 | 31 | CODE | |
| LOW | mem-knowledge/src/tasks/celery_worker.py | 31 | CODE | |
| LOW | mem-knowledge/src/tasks/celery_worker.py | 31 | CODE | |
| LOW | mem-knowledge/src/tasks/celery_worker.py | 31 | CODE | |
| LOW | mem-knowledge/src/tasks/observability.py | 3 | CODE | |
| LOW | mem-knowledge/src/tasks/evidence_graph.py | 3 | CODE | |
| LOW | mem-knowledge/src/tasks/qa_import.py | 3 | CODE | |
| LOW | mem-knowledge/src/tasks/document.py | 3 | CODE | |
| LOW | mem-knowledge/src/tasks/legacy_compat.py | 3 | CODE | |
| LOW | mem-knowledge/src/tasks/state.py | 3 | CODE | |
| LOW | mem-knowledge/src/tasks/worker_health.py | 3 | 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/model_registry.py | 33 | 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 | 4 | CODE | |
| LOW | mem-knowledge/src/models/references/__init__.py | 14 | CODE | |
| LOW | mem-knowledge/src/models/references/__init__.py | 15 | 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 | |
| 1537 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 | 100 | 校验 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 | 380 | 快速写入记忆:清洗 → Embedding → 写入 :Dialogue 节点 与 self.write() 并列,复用 __init__/create 已加载到 self.ctx 的 memory_config, | STRING |
| HIGH | api/app/core/memory/llm_tools/openai_embedder.py | 53 | 生成嵌入向量实现 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 | 66 | 聊天接口 Args: messages: 消息列表,每个消息包含 role 和 content **kwargs: 额外参数 Return | STRING |
| HIGH | api/app/core/memory/llm_tools/llm_client.py | 88 | 结构化输出接口 Args: messages: 消息列表 response_model: 期望的响应模型类型(Pydantic BaseModel) | STRING |
| HIGH | api/app/core/memory/llm_tools/llm_client.py | 128 | 带重试机制的聊天接口 Args: messages: 消息列表 **kwargs: 额外参数 Returns: L | STRING |
| HIGH | api/app/core/memory/llm_tools/llm_client.py | 159 | 带重试机制的结构化输出接口 Args: messages: 消息列表 response_model: 期望的响应模型类型 **kwa | STRING |
| HIGH | api/app/core/memory/llm_tools/openai_client.py | 61 | 聊天接口实现 Args: messages: 消息列表 **kwargs: 额外参数 Returns: LLM 响 | STRING |
| HIGH | api/app/core/memory/llm_tools/openai_client.py | 97 | 结构化输出接口实现 Args: messages: 消息列表 response_model: 期望的响应模型类型 **kwargs: | STRING |
| HIGH | api/app/core/memory/utils/llm/llm_utils.py | 97 | Get LLM client from MemoryConfig object. Args: memory_config: Configuration containing llm_ | STRING |
| HIGH | api/app/core/memory/utils/llm/llm_utils.py | 115 | Get embedder client from MemoryConfig object. Args: memory_config: Configuration containing | STRING |
| HIGH | api/app/core/memory/utils/llm/llm_utils.py | 133 | Get reranker client from MemoryConfig object. Args: memory_config: Configuration containing | STRING |
| HIGH | api/app/core/memory/utils/llm/llm_utils.py | 153 | 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 | …ore/memory/storage/custom/reflection_entity_updates.py | 36 | 按业务 id 更新单个存活实体,并校验命中身份。 过滤条件为 ``id`` + ``delete_at IS NULL``。``ExtractedEntity.id`` 有全局唯一约束 (``repositories/ne | STRING |
| HIGH | …ore/memory/storage/custom/reflection_entity_updates.py | 131 | 改写实体名称。 冲突检查(``REFLECTION_RENAME_CHECK_CONFLICT``)是只读查询,留在调用方, 本函数只负责写入。空名字由 ``Layer2Inspector._try_rename_enti | STRING |
| HIGH | …ore/memory/storage/custom/reflection_entity_updates.py | 162 | 写入实体名称向量。 更名后、去重合并后、未识别实体回填后都会重算 name_embedding,三处共用本函数: 写入语义相同,发出的都是同一个实体的 UPSERT 事件。更名与向量更新分两次调用, 避免向量计算超 | 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 | 73 | Process a dialogue by generating chunks and adding them to the DialogData object. Args: dialogue: T | STRING |
| 202 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | mem-knowledge/src/request_logging.py | 332 | except Exception: | CODE |
| HIGH | mem-knowledge/src/rag/chunk/postprocessor.py | 179 | except NotImplementedError: | CODE |
| HIGH | mem-knowledge/src/rag/chunk/tokenization.py | 130 | except ImportError: | CODE |
| HIGH | mem-knowledge/src/rag/chunk/tokenization.py | 137 | except Exception: | CODE |
| HIGH | mem-knowledge/src/rag/chunk/tokenization.py | 142 | except Exception: | CODE |
| HIGH | mem-knowledge/src/rag/chunk/tokenization.py | 190 | except NotImplementedError: | CODE |
| HIGH | mem-knowledge/src/rag/chunk/parser/json.py | 134 | except json.JSONDecodeError: | CODE |
| HIGH | mem-knowledge/src/rag/chunk/parser/json.py | 162 | except json.JSONDecodeError: | CODE |
| HIGH | …m-knowledge/src/rag/integrations/web/url_normalizer.py | 195 | except Exception: | CODE |
| HIGH | mem-knowledge/src/api/routes/knowledge.py | 95 | except (TypeError, ValueError): | CODE |
| HIGH | mem-knowledge/src/services/knowledge_sync.py | 740 | except Exception: | CODE |
| HIGH | mem-knowledge/src/services/qa_export.py | 167 | except FileNotFoundError: | CODE |
| HIGH | sandbox/runtime/pool/zygote_worker.py | 351 | except ProcessLookupError: | CODE |
| HIGH | sandbox/runtime/pool/zygote_worker.py | 382 | except OSError: | CODE |
| HIGH | sandbox/runtime/pool/zygote_worker.py | 413 | except ProcessLookupError: | CODE |
| HIGH | sandbox/runtime/pool/zygote_worker.py | 146 | except LookupError: | CODE |
| HIGH | sandbox/runtime/pool/zygote_worker.py | 331 | except Exception: | CODE |
| HIGH | sandbox/runtime/pool/zygote_worker.py | 339 | except Exception: | CODE |
| HIGH | sandbox/runtime/pool/zygote_worker.py | 244 | except OSError: | CODE |
| HIGH | sandbox/runtime/pool/zygote_worker.py | 274 | except OSError: | CODE |
| HIGH | sandbox/runtime/pool/zygote_worker.py | 459 | except Exception: | CODE |
| HIGH | sandbox/runtime/pool/zygote_worker.py | 465 | except Exception: | CODE |
| HIGH | packages/auth-sdk/src/auth_sdk/audit.py | 36 | except (TimeoutError, RedisError): | CODE |
| HIGH | packages/auth-sdk/src/auth_sdk/snapshot.py | 90 | except (TimeoutError, RedisError): | CODE |
| HIGH | …redbear-model/src/redbear_model/runtime/client_pool.py | 70 | except RuntimeError: | CODE |
| HIGH | identity-service/src/services/notify.py | 78 | except RedisError: | CODE |
| HIGH | identity-service/src/services/audit_consumer.py | 39 | except RedisError: | CODE |
| HIGH | e2b-infra/tests/smoke_test_runtime.py | 104 | except json.JSONDecodeError: | CODE |
| HIGH | e2b-infra/tests/test_e2e.py | 285 | except json.JSONDecodeError: | CODE |
| HIGH | …tes/agent-runtime/runtime/core/utils/datetime_utils.py | 136 | except Exception: | CODE |
| HIGH | …agent-runtime/runtime/core/workflow/nodes/operators.py | 33 | except Exception: | CODE |
| HIGH | …runtime/core/workflow/nodes/human_intervention/node.py | 161 | except (ValueError, TypeError): | CODE |
| HIGH | …-runtime/runtime/core/workflow/engine/variable_pool.py | 380 | except KeyError: | CODE |
| HIGH | …e/runtime/core/workflow/engine/event_stream_handler.py | 186 | except Exception: | CODE |
| HIGH | …mplates/agent-runtime/runtime/services/tool_service.py | 1663 | except: | CODE |
| HIGH | e2b-infra/orchestrator/app/services/pool_manager.py | 54 | except asyncio.CancelledError: | CODE |
| HIGH | e2b-infra/orchestrator/app/services/sandbox_manager.py | 110 | except Exception: | CODE |
| HIGH | api/app/aioRedis.py | 226 | except Exception: | CODE |
| HIGH | api/app/aioRedis.py | 231 | except Exception: | CODE |
| HIGH | api/app/tasks.py | 837 | except Exception: | CODE |
| HIGH | api/app/tasks.py | 1042 | except Exception: | CODE |
| HIGH | api/app/tasks.py | 3432 | except Exception: | CODE |
| HIGH | api/app/tasks.py | 3683 | except Exception: | CODE |
| HIGH | api/app/tasks.py | 4393 | except Exception: | CODE |
| HIGH | api/app/tasks.py | 5273 | except Exception: | CODE |
| HIGH | api/app/tasks.py | 2103 | except Exception: | CODE |
| HIGH | api/app/tasks.py | 3422 | except Exception: | CODE |
| HIGH | api/app/tasks.py | 3673 | except Exception: | CODE |
| HIGH | api/app/tasks.py | 5491 | except Exception: | CODE |
| HIGH | api/app/tasks.py | 6597 | except Exception: | CODE |
| HIGH | api/app/tasks.py | 5362 | except Exception: | CODE |
| HIGH | api/app/tasks.py | 5909 | except Exception: | CODE |
| HIGH | api/app/tasks.py | 6932 | except Exception: | CODE |
| HIGH | api/app/tasks.py | 3164 | except Exception: | CODE |
| HIGH | api/app/tasks.py | 3504 | except Exception: | CODE |
| HIGH | api/app/tasks.py | 3819 | except Exception: | CODE |
| HIGH | api/app/tasks.py | 1450 | except (json.JSONDecodeError, TypeError): | CODE |
| HIGH | api/app/tasks.py | 2579 | except Exception: | CODE |
| HIGH | api/app/celery_worker.py | 26 | except ImportError: | CODE |
| HIGH | api/app/celery_worker.py | 53 | except ImportError: | CODE |
| 158 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | mem-knowledge/scripts/check_model_ownership.py | 52 | CODE | |
| LOW | mem-knowledge/scripts/check_worker_artifacts.py | 267 | CODE | |
| LOW | mem-knowledge/scripts/check_import_boundaries.py | 143 | CODE | |
| LOW | mem-knowledge/scripts/check_import_boundaries.py | 217 | CODE | |
| LOW | mem-knowledge/scripts/check_import_boundaries.py | 378 | CODE | |
| LOW | mem-knowledge/src/i18n.py | 70 | CODE | |
| LOW | mem-knowledge/src/request_logging.py | 105 | CODE | |
| LOW | mem-knowledge/src/tasks/observability.py | 277 | CODE | |
| LOW | mem-knowledge/src/tasks/worker_health.py | 166 | CODE | |
| LOW | …owledge/src/rag/knowledge_graph/elasticsearch_store.py | 245 | CODE | |
| LOW | …owledge/src/rag/knowledge_graph/elasticsearch_store.py | 1333 | CODE | |
| LOW | …nowledge/src/rag/knowledge_graph/retrieval_pipeline.py | 238 | CODE | |
| LOW | …nowledge/src/rag/knowledge_graph/retrieval_pipeline.py | 1067 | CODE | |
| LOW | mem-knowledge/src/rag/knowledge_graph/index_pipeline.py | 113 | CODE | |
| LOW | mem-knowledge/src/rag/chunk/preview.py | 30 | CODE | |
| LOW | mem-knowledge/src/rag/chunk/preview.py | 119 | CODE | |
| LOW | mem-knowledge/src/rag/chunk/preprocessor.py | 168 | CODE | |
| LOW | mem-knowledge/src/rag/chunk/pipeline/text.py | 42 | CODE | |
| LOW | mem-knowledge/src/rag/chunk/parser/html.py | 132 | CODE | |
| LOW | mem-knowledge/src/rag/chunk/parser/html.py | 189 | CODE | |
| LOW | mem-knowledge/src/rag/chunk/parser/excel.py | 225 | CODE | |
| LOW | …nowledge/src/rag/chunk/parser/markdown_preprocessor.py | 97 | CODE | |
| LOW | mem-knowledge/src/rag/chunk/parser/json.py | 64 | CODE | |
| LOW | mem-knowledge/src/rag/chunk/merger/naive.py | 22 | CODE | |
| LOW | mem-knowledge/src/rag/integrations/feishu/client.py | 219 | CODE | |
| LOW | mem-knowledge/src/rag/integrations/web/http_fetcher.py | 37 | CODE | |
| LOW | …m-knowledge/src/rag/integrations/web/url_normalizer.py | 153 | CODE | |
| LOW | mem-knowledge/src/rag/integrations/web/crawler.py | 82 | CODE | |
| LOW | mem-knowledge/src/rag/integrations/yuque/client.py | 201 | CODE | |
| LOW | mem-knowledge/src/rag/retrieval/rerank.py | 46 | CODE | |
| LOW | mem-knowledge/src/rag/retrieval/async_elasticsearch.py | 324 | CODE | |
| LOW | mem-knowledge/src/rag/retrieval/async_elasticsearch.py | 574 | CODE | |
| LOW | mem-knowledge/src/rag/retrieval/async_elasticsearch.py | 944 | CODE | |
| LOW | mem-knowledge/src/rag/metadata/auto_filter.py | 134 | CODE | |
| LOW | mem-knowledge/src/services/document_processing.py | 784 | CODE | |
| LOW | mem-knowledge/src/services/knowledge_metadata.py | 339 | CODE | |
| LOW | mem-knowledge/src/services/knowledge_retrieval.py | 817 | CODE | |
| LOW | mem-knowledge/src/services/knowledge_retrieval.py | 1808 | CODE | |
| LOW | mem-knowledge/src/services/file.py | 470 | CODE | |
| LOW | mem-knowledge/src/services/qa_import_processing.py | 142 | CODE | |
| LOW | mem-knowledge/src/services/qa_import_processing.py | 263 | CODE | |
| LOW | mem-knowledge/src/services/knowledge_sync.py | 423 | CODE | |
| LOW | mem-knowledge/src/services/knowledge_sync.py | 443 | 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 | …kages/redbear-model/src/redbear_model/orchestration.py | 149 | CODE | |
| LOW | …kages/redbear-model/src/redbear_model/orchestration.py | 232 | CODE | |
| LOW | …ear-model/src/redbear_model/providers/dashscope_asr.py | 150 | CODE | |
| LOW | …ear-model/src/redbear_model/providers/dashscope_asr.py | 513 | CODE | |
| LOW | …ear-model/src/redbear_model/providers/dashscope_asr.py | 570 | CODE | |
| LOW | …es/redbear-model/src/redbear_model/providers/openai.py | 118 | CODE | |
| LOW | …dbear_model/providers/dashscope_video_understanding.py | 166 | CODE | |
| LOW | packages/redbear-model/src/redbear_model/runtime/llm.py | 59 | CODE | |
| 670 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | gateway-service/src/auth_strategy.py | 25 | logger = logging.getLogger(__name__) | CODE |
| LOW | gateway-service/src/forward.py | 32 | logger = logging.getLogger(__name__) | CODE |
| LOW | gateway-service/src/middleware.py | 35 | logger = logging.getLogger(__name__) | CODE |
| LOW | gateway-service/src/routes.py | 16 | logger = logging.getLogger(__name__) | CODE |
| LOW | mem-knowledge/src/auth.py | 33 | logger = logging.getLogger(__name__) | CODE |
| LOW | mem-knowledge/src/auth.py | 253 | __all__ = ["KbAuthConfig", "KbAuthMiddleware", "build_kb_auth_middleware", "is_public_path"] | CODE |
| LOW | mem-knowledge/src/error_mapping.py | 251 | __all__ = [ | CODE |
| LOW | mem-knowledge/src/__init__.py | 5 | __all__ = ["__version__"] | CODE |
| LOW | mem-knowledge/src/i18n.py | 18 | logger = logging.getLogger(__name__) | CODE |
| LOW | mem-knowledge/src/errors.py | 13 | logger = logging.getLogger(__name__) | CODE |
| LOW | mem-knowledge/src/request_logging.py | 22 | logger = logging.getLogger(__name__) | CODE |
| LOW | mem-knowledge/src/request_logging.py | 343 | __all__ = [ | CODE |
| LOW | mem-knowledge/src/main.py | 23 | logger = logging.getLogger(__name__) | CODE |
| LOW | mem-knowledge/src/tasks/celery_app.py | 84 | __all__ = [ | CODE |
| LOW | mem-knowledge/src/tasks/dispatch.py | 17 | logger = logging.getLogger(__name__) | CODE |
| LOW | mem-knowledge/src/tasks/dispatch.py | 116 | __all__ = ["TaskDispatcher"] | CODE |
| LOW | mem-knowledge/src/tasks/celery_worker.py | 42 | logger = logging.getLogger(__name__) | CODE |
| LOW | mem-knowledge/src/tasks/celery_worker.py | 365 | __all__ = [ | CODE |
| LOW | mem-knowledge/src/tasks/observability.py | 713 | __all__ = [ | CODE |
| LOW | mem-knowledge/src/tasks/evidence_graph.py | 42 | logger = logging.getLogger(__name__) | CODE |
| LOW | mem-knowledge/src/tasks/evidence_graph.py | 531 | __all__ = [ | CODE |
| LOW | mem-knowledge/src/tasks/qa_import.py | 73 | __all__ = ["import_qa_chunks"] | CODE |
| LOW | mem-knowledge/src/tasks/document.py | 94 | __all__ = ["parse_document", "sync_knowledge_for_kb"] | CODE |
| LOW | mem-knowledge/src/tasks/legacy_compat.py | 17 | logger = logging.getLogger(__name__) | CODE |
| LOW | mem-knowledge/src/tasks/state.py | 278 | __all__ = [ | STRING |
| LOW | mem-knowledge/src/tasks/worker_health.py | 446 | __all__ = [ | 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 | 35 | logger = logging.getLogger(__name__) | CODE |
| LOW | mem-knowledge/src/repositories/model_registry.py | 316 | __all__ = ["AsyncSQLModelRegistry", "SyncSQLModelRegistry", "credential_cipher"] | 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 | 17 | __all__ = [ | CODE |
| LOW | mem-knowledge/src/models/owned/__init__.py | 9 | __all__ = [ | CODE |
| LOW | …knowledge/src/rag/knowledge_graph/structured_output.py | 40 | __all__ = ["unwrap_structured_result"] | CODE |
| LOW | mem-knowledge/src/rag/knowledge_graph/batching.py | 58 | __all__ = ["build_extraction_batches", "select_source_chunks"] | CODE |
| LOW | …owledge/src/rag/knowledge_graph/elasticsearch_store.py | 1658 | __all__ = [ | CODE |
| LOW | mem-knowledge/src/rag/knowledge_graph/models.py | 187 | __all__ = [ | CODE |
| LOW | …-knowledge/src/rag/knowledge_graph/extraction_cache.py | 11 | logger = logging.getLogger(__name__) | CODE |
| LOW | …-knowledge/src/rag/knowledge_graph/extraction_cache.py | 81 | __all__ = ["GraphExtractionCache"] | CODE |
| LOW | …nowledge/src/rag/knowledge_graph/retrieval_pipeline.py | 30 | logger = logging.getLogger(__name__) | CODE |
| LOW | mem-knowledge/src/rag/knowledge_graph/__init__.py | 11 | __all__ = [ | CODE |
| LOW | mem-knowledge/src/rag/knowledge_graph/index_pipeline.py | 31 | logger = logging.getLogger(__name__) | CODE |
| LOW | mem-knowledge/src/rag/knowledge_graph/index_pipeline.py | 706 | __all__ = [ | CODE |
| LOW | mem-knowledge/src/rag/knowledge_graph/extractor.py | 112 | __all__ = ["EntityRelationExtractor", "LLMEntityRelationExtractor"] | CODE |
| LOW | mem-knowledge/src/rag/knowledge_graph/runtime.py | 68 | __all__ = ["GraphRuntimeDisabled", "snapshot_graph_runtime"] | CODE |
| LOW | mem-knowledge/src/rag/knowledge_graph/prompts.py | 93 | __all__ = ["EXTRACTION_PROMPT_VERSION", "EXTRACTION_SYSTEM_PROMPT", "build_extraction_prompt"] | STRING |
| LOW | mem-knowledge/src/rag/knowledge_graph/lock.py | 12 | logger = logging.getLogger(__name__) | CODE |
| LOW | mem-knowledge/src/rag/knowledge_graph/lock.py | 168 | __all__ = ["KnowledgeGraphLock", "create_knowledge_graph_lock"] | STRING |
| LOW | …-knowledge/src/rag/knowledge_graph/query_plan_cache.py | 14 | logger = logging.getLogger(__name__) | CODE |
| LOW | …-knowledge/src/rag/knowledge_graph/query_plan_cache.py | 91 | __all__ = ["GraphQueryPlanCache"] | CODE |
| LOW | mem-knowledge/src/rag/knowledge_graph/normalizer.py | 87 | __all__ = [ | CODE |
| LOW | mem-knowledge/src/rag/chunk/preview.py | 226 | __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/vision.py | 42 | __all__ = ["vision_llm_chunk"] | CODE |
| LOW | mem-knowledge/src/rag/chunk/llm_cache.py | 52 | __all__ = [ | CODE |
| LOW | mem-knowledge/src/rag/chunk/__init__.py | 7 | __all__ = [ | CODE |
| LOW⚡ | mem-knowledge/src/rag/chunk/tokenization.py | 147 | def set_chunk_content(document: dict[str, Any], text: str) -> None: | CODE |
| 492 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 | …storage/provider/elasticsearch/index/migration_lock.py | 0 | if redis.call("get", keys[1]) == argv[1] then return redis.call("del", keys[1]) end return 0 | STRING |
| HIGH | api/app/utils/redis_lock.py | 0 | if redis.call("get", keys[1]) == argv[1] then return redis.call("del", keys[1]) end return 0 | STRING |
| HIGH | api/app/services/workflow_service.py | 0 | if redis.call("get", keys[1]) == argv[1] then return redis.call("del", keys[1]) end return 0 | 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 |
|---|---|---|---|---|
| HIGH⚡ | mem-knowledge/src/repositories/knowledge.py | 9 | from sqlalchemy import delete, func, null, select, text | CODE |
| HIGH | sandbox/tests/stress_test.py | 137 | for (let i = 2; i <= n; i++) if (isPrime[i]) primes.push(i); | CODE |
| HIGH | packages/redbear-model/src/redbear_model/resolver.py | 269 | """§10.1.3 自动匹配:provider 相等 && is_active && 覆盖集命中([]=全量,点名=仅列出名)。 | STRING |
| HIGH | packages/redbear-model/src/redbear_model/resolver.py | 286 | """§10.1.4 speedbear 公共模型候选:provider=speedbear && source=platform,不收窄 model_names。""" | STRING |
| HIGH | packages/redbear-model/src/redbear_model/errors.py | 167 | """租户无 provider=speedbear && source=platform 渠道(替代旧 PublicCredentialUnavailableError 文案面)。""" | STRING |
| 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 | …e/memory/storage/provider/neo4j/graph_write_queries.py | 33 | SET s.delete_at = null, | CODE |
| HIGH | …e/memory/storage/provider/neo4j/graph_write_queries.py | 71 | SET c.delete_at = null, | CODE |
| HIGH | …app/core/memory/storage/custom/reflection_mutations.py | 426 | e.delete_at = null, | CODE |
| HIGH⚡ | …app/core/memory/storage/custom/reflection_mutations.py | 439 | e.activation_value = null, | CODE |
| HIGH⚡ | …app/core/memory/storage/custom/reflection_mutations.py | 442 | e.last_access_time = null, | CODE |
| HIGH⚡ | …app/core/memory/storage/custom/reflection_mutations.py | 447 | e.delete_at = null, | CODE |
| HIGH | api/app/core/workflow/nodes/llm/node.py | 250 | # Optional (required=False) scalar fields allow null; required fields do not | COMMENT |
| HIGH | api/app/core/workflow/nodes/llm/node.py | 334 | (recursively, each child defaults to null) so the full schema | STRING |
| HIGH | api/app/core/workflow/nodes/agent/node.py | 59 | {"tool_id": "uuid", "tool_type": "builtin", "operation": null, "enabled": true} | STRING |
| HIGH⚡ | api/app/repositories/neo4j/cypher_queries.py | 2811 | e.activation_value = null, | CODE |
| HIGH⚡ | api/app/repositories/neo4j/cypher_queries.py | 2814 | e.last_access_time = null, | CODE |
| HIGH⚡ | api/app/repositories/neo4j/cypher_queries.py | 2819 | 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 | 283 | SET c.delete_at = null, | CODE |
| HIGH | api/app/repositories/neo4j/cypher_queries.py | 509 | SET e.delete_at = null, | CODE |
| HIGH | api/app/repositories/neo4j/cypher_queries.py | 527 | SET s.delete_at = null, | CODE |
| HIGH | api/app/repositories/neo4j/cypher_queries.py | 532 | SET o.delete_at = null, | CODE |
| HIGH | api/app/repositories/neo4j/cypher_queries.py | 2798 | e.delete_at = null, | CODE |
| HIGH | api/app/controllers/memory_dashboard_controller.py | 610 | } | null, | STRING |
| HIGH | …controllers/service/memory_dashboard_api_controller.py | 240 | `neo4j_data` / `rag_data` (the other stays null), each holding total_memory / | STRING |
| HIGH | …controllers/service/memory_dashboard_api_controller.py | 244 | ApiResponse: {"storage_type", "neo4j_data": {...} | null, "rag_data": {...} | null} | STRING |
| HIGH | api/app/services/workflow_service.py | 5177 | 第二轮 user 不会成为孤儿(parent=null)。第一轮无已落库 assistant 时返回 None。 | 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/views/MemoryExtractionEngine/constant.ts | 161 | // // Enable reflection engine | COMMENT |
| LOW | web/src/views/MemoryExtractionEngine/constant.ts | 181 | // meaning: 'iterationPeriodDesc', | COMMENT |
| LOW | …rc/views/KnowledgeBase/components/RecallTestDrawer.tsx | 21 | COMMENT | |
| LOW | …rc/views/KnowledgeBase/components/RecallTestResult.tsx | 81 | // Render content via RbMarkdown exclusively. | COMMENT |
| LOW | …/views/KnowledgeBase/components/CreateDatasetModal.tsx | 81 | setVisible(true); | COMMENT |
| LOW | web/src/views/KnowledgeBase/[knowledgeBaseId]/Share.tsx | 41 | // if (knowledgeBaseId) { | COMMENT |
| LOW | …/src/views/KnowledgeBase/[knowledgeBaseId]/Private.tsx | 321 | knowledgeBaseFolderPath, | COMMENT |
| LOW | …/src/views/KnowledgeBase/[knowledgeBaseId]/Private.tsx | 341 | // Not implemented yet | COMMENT |
| LOW | …/src/views/KnowledgeBase/[knowledgeBaseId]/Private.tsx | 361 | // }, | COMMENT |
| LOW | …ents/Properties/SubmitTypeList/SubmitTypeEditModal.tsx | 21 | iconText: 'W', | COMMENT |
| LOW | …orkflow/components/Properties/hooks/useVariableList.ts | 541 | if (!node) return; | COMMENT |
| LOW | …orkflow/components/Properties/hooks/useVariableList.ts | 721 | processNodeVariables(node.getData(), node.getData().id, list, keys); | 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 | 3961 | # """Call read_service and write latest status to Redis. | COMMENT |
| LOW | api/app/tasks.py | 3981 | # resp = requests.post(api_url, json=payload, timeout=15) | COMMENT |
| LOW | api/app/tasks.py | 4561 | COMMENT | |
| LOW | api/app/tasks.py | 4581 | # 遍历所有终端用户,执行遗忘周期。 | COMMENT |
| LOW | api/app/tasks.py | 4601 | # try: | COMMENT |
| LOW | api/app/tasks.py | 4621 | # f"融合 {total_merged} 对, 耗时 {duration:.2f}s") | COMMENT |
| LOW | api/app/dependencies.py | 421 | # 校验当前用户对指定工作空间的访问权限: | COMMENT |
| LOW | api/app/dependencies.py | 441 | # # 超管跨租户访问不允许 | COMMENT |
| LOW | api/app/core/config.py | 561 | WORKFLOW_IMPORT_CACHE_TIMEOUT: int = int(os.getenv("WORKFLOW_IMPORT_CACHE_TIMEOUT", 1800)) | 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 | 161 | ) | COMMENT |
| LOW | api/app/core/memory/models/variate_config.py | 141 | emotion_enabled: bool = Field(default=False, description="是否启用情绪提取旁路") | COMMENT |
| LOW | api/app/core/memory/storage/provider/neo4j/client.py | 681 | # operator=FilterOperator.EQ, | COMMENT |
| LOW | …p/core/memory/storage/provider/elasticsearch/client.py | 781 | # MemoryNodeType.STATEMENT, | COMMENT |
| LOW | …p/core/memory/storage/provider/elasticsearch/client.py | 801 | # | 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 | …vices/reflection_engine/deterministic/cypher_merger.py | 41 | COMMENT | |
| LOW | …vices/reflection_engine/deterministic/cypher_merger.py | 61 | # return 0, 0 | 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 |
| 93 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 | 763 | # Step 2: 解析 memory_config_id(走 workspace 默认配置,与滑动窗口路径一致) | COMMENT |
| LOW⚡ | api/app/core/memory/pipelines/dispatcher.py | 770 | # Step 3: 按 seq 分组逐组处理。 | COMMENT |
| LOW⚡ | api/app/core/memory/pipelines/dispatcher.py | 798 | # Step 4: 清理 pending_conversations Set(先删后校验,避免并发误删) | COMMENT |
| LOW | api/app/core/memory/pipelines/dispatcher.py | 715 | # Step 1: 查询对话信息 + 未写入消息 | COMMENT |
| LOW⚡ | api/app/core/memory/pipelines/write_pipeline.py | 595 | # Step 5: 摘要写入(依赖 Step 4 写入的 CONTAINS 边) | COMMENT |
| LOW⚡ | api/app/core/memory/pipelines/write_pipeline.py | 623 | # Step 6: 聚类(Celery 异步,不阻塞) | COMMENT |
| LOW⚡ | api/app/core/memory/pipelines/write_pipeline.py | 737 | # Step 1: 预处理 | COMMENT |
| LOW⚡ | api/app/core/memory/pipelines/write_pipeline.py | 765 | # Step 2: 萃取 | COMMENT |
| LOW⚡ | api/app/core/memory/pipelines/write_pipeline.py | 875 | # Step 3: 存储 | COMMENT |
| LOW⚡ | api/app/core/memory/pipelines/write_pipeline.py | 1099 | # Step 4: 聚类 | COMMENT |
| LOW | api/app/core/memory/pipelines/write_pipeline.py | 387 | # Step 1: 剪枝 - 统一剪枝所有消息 | COMMENT |
| LOW | api/app/core/memory/pipelines/write_pipeline.py | 475 | # Step 2: 预处理 - 消息分块 | COMMENT |
| LOW | api/app/core/memory/pipelines/write_pipeline.py | 524 | # Step 3: 萃取 + 摘要 LLM 生成并行启动 | COMMENT |
| LOW | api/app/core/memory/pipelines/write_pipeline.py | 556 | # 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 | 1372 | # Step 1: 候选召回(均摊耗时) | COMMENT |
| LOW⚡ | …storage_services/reflection_engine/layer2_inspector.py | 1378 | # Step 2: 综合打分(均摊耗时) | COMMENT |
| LOW⚡ | …storage_services/reflection_engine/layer2_inspector.py | 1384 | # Step 3: LLM 调用(均摊耗时) | COMMENT |
| LOW⚡ | …storage_services/reflection_engine/layer2_inspector.py | 1391 | # Step 4: 策略决策(选择 keeper) | COMMENT |
| LOW⚡ | …storage_services/reflection_engine/layer2_inspector.py | 1421 | # Step 5: 写入 | COMMENT |
| LOW⚡ | …storage_services/reflection_engine/layer2_inspector.py | 1818 | # Step 1: 获取上下文 | COMMENT |
| LOW⚡ | …storage_services/reflection_engine/layer2_inspector.py | 1828 | # Step 2: LLM 消解 + 提取 | COMMENT |
| LOW | …storage_services/reflection_engine/layer2_inspector.py | 1452 | # Step 6: 写 ReflectionLog | COMMENT |
| LOW | …storage_services/reflection_engine/layer2_inspector.py | 1844 | # Step 3: 校验 | COMMENT |
| LOW | …storage_services/reflection_engine/layer2_inspector.py | 1877 | # Step 4: 写入 Neo4j | COMMENT |
| LOW | …storage_services/reflection_engine/layer2_inspector.py | 2027 | # Step 5: 写反思日志(仅 resolved=true 时) | COMMENT |
| LOW | …storage_services/reflection_engine/layer2_inspector.py | 2144 | # Step 1: 碎片拆分 + 备份 timeline | COMMENT |
| 13 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 | 763 | # Step 2: 解析 memory_config_id(走 workspace 默认配置,与滑动窗口路径一致) | COMMENT |
| LOW⚡ | api/app/core/memory/pipelines/dispatcher.py | 770 | # Step 3: 按 seq 分组逐组处理。 | COMMENT |
| LOW⚡ | api/app/core/memory/pipelines/dispatcher.py | 798 | # Step 4: 清理 pending_conversations Set(先删后校验,避免并发误删) | COMMENT |
| LOW | api/app/core/memory/pipelines/dispatcher.py | 715 | # Step 1: 查询对话信息 + 未写入消息 | COMMENT |
| LOW⚡ | api/app/core/memory/pipelines/write_pipeline.py | 595 | # Step 5: 摘要写入(依赖 Step 4 写入的 CONTAINS 边) | COMMENT |
| LOW⚡ | api/app/core/memory/pipelines/write_pipeline.py | 623 | # Step 6: 聚类(Celery 异步,不阻塞) | COMMENT |
| LOW⚡ | api/app/core/memory/pipelines/write_pipeline.py | 737 | # Step 1: 预处理 | COMMENT |
| LOW⚡ | api/app/core/memory/pipelines/write_pipeline.py | 765 | # Step 2: 萃取 | COMMENT |
| LOW⚡ | api/app/core/memory/pipelines/write_pipeline.py | 875 | # Step 3: 存储 | COMMENT |
| LOW⚡ | api/app/core/memory/pipelines/write_pipeline.py | 1099 | # Step 4: 聚类 | COMMENT |
| LOW | api/app/core/memory/pipelines/write_pipeline.py | 387 | # Step 1: 剪枝 - 统一剪枝所有消息 | COMMENT |
| LOW | api/app/core/memory/pipelines/write_pipeline.py | 475 | # Step 2: 预处理 - 消息分块 | COMMENT |
| LOW | api/app/core/memory/pipelines/write_pipeline.py | 524 | # Step 3: 萃取 + 摘要 LLM 生成并行启动 | COMMENT |
| LOW | api/app/core/memory/pipelines/write_pipeline.py | 556 | # 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 | 1372 | # Step 1: 候选召回(均摊耗时) | COMMENT |
| LOW⚡ | …storage_services/reflection_engine/layer2_inspector.py | 1378 | # Step 2: 综合打分(均摊耗时) | COMMENT |
| LOW⚡ | …storage_services/reflection_engine/layer2_inspector.py | 1384 | # Step 3: LLM 调用(均摊耗时) | COMMENT |
| LOW⚡ | …storage_services/reflection_engine/layer2_inspector.py | 1391 | # Step 4: 策略决策(选择 keeper) | COMMENT |
| LOW⚡ | …storage_services/reflection_engine/layer2_inspector.py | 1421 | # Step 5: 写入 | COMMENT |
| LOW⚡ | …storage_services/reflection_engine/layer2_inspector.py | 1818 | # Step 1: 获取上下文 | COMMENT |
| LOW⚡ | …storage_services/reflection_engine/layer2_inspector.py | 1828 | # Step 2: LLM 消解 + 提取 | COMMENT |
| LOW | …storage_services/reflection_engine/layer2_inspector.py | 1452 | # Step 6: 写 ReflectionLog | COMMENT |
| LOW | …storage_services/reflection_engine/layer2_inspector.py | 1844 | # Step 3: 校验 | COMMENT |
| LOW | …storage_services/reflection_engine/layer2_inspector.py | 1877 | # Step 4: 写入 Neo4j | COMMENT |
| LOW | …storage_services/reflection_engine/layer2_inspector.py | 2027 | # Step 5: 写反思日志(仅 resolved=true 时) | COMMENT |
| LOW | …storage_services/reflection_engine/layer2_inspector.py | 2144 | # Step 1: 碎片拆分 + 备份 timeline | COMMENT |
| 13 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …nowledge/src/rag/integrations/web/content_extractor.py | 92 | # Check if content is static | COMMENT |
| LOW | …m-knowledge/src/rag/integrations/web/url_normalizer.py | 147 | # Check if domains match | COMMENT |
| LOW | …m-knowledge/src/rag/integrations/web/url_normalizer.py | 182 | # Check if href starts with http/https (absolute URL) | COMMENT |
| LOW | mem-knowledge/src/rag/integrations/web/crawler.py | 161 | # Check if static content | COMMENT |
| 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 | 901 | # 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 | 525 | # Check if it's a completion marker | COMMENT |
| LOW | api/app/core/workflow/nodes/base_node.py | 707 | # # Check if the node has an error edge defined | COMMENT |
| LOW | …/app/core/workflow/engine/stream_output_coordinator.py | 457 | # 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 | 685 | # Check if config exists but workspace is missing | COMMENT |
| LOW | api/app/repositories/memory_config_repository.py | 792 | # 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 | 714 | # 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 | 246 | # Check if end tag already in buffer | COMMENT |
| LOW | api/app/services/workflow_tool_publish_service.py | 191 | # 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 | 692 | # Check if file exists before starting stream | COMMENT |
| LOW | api/app/services/memory_config_service.py | 1412 | # Check if this is the default config - default configs cannot be deleted | COMMENT |
| LOW | api/app/services/memory_config_service.py | 1523 | # Check if this is the default config - default configs cannot be deleted | COMMENT |
| LOW | api/app/services/memory_config_service.py | 1672 | # 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 | 2614 | CODE | |
| LOW | api/app/tasks.py | 2864 | CODE | |
| LOW | api/app/tasks.py | 2731 | CODE | |
| LOW | api/app/core/memory/memory_service.py | 312 | CODE | |
| LOW | api/app/core/memory/pipelines/write_pipeline.py | 249 | CODE | |
| LOW | api/app/core/memory/agent/utils/get_dialogs.py | 8 | CODE | |
| LOW | api/app/core/memory/retrieval_trace/models.py | 93 | 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 | 80 | CODE | |
| LOW | api/app/core/agent/langchain_agent.py | 221 | CODE | |
| LOW | api/app/core/models/generation.py | 87 | CODE | |
| LOW | api/app/core/models/generation.py | 209 | 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 | 691 | CODE | |
| LOW | api/app/core/workflow/nodes/parameter_extractor/node.py | 276 | CODE | |
| LOW | api/app/core/workflow/adapters/dify/converter.py | 1172 | CODE | |
| LOW | api/app/controllers/file_controller.py | 87 | CODE | |
| LOW | api/app/controllers/api_key_controller.py | 287 | CODE | |
| LOW | api/app/controllers/model_controller.py | 64 | CODE | |
| LOW | api/app/controllers/model_controller.py | 120 | CODE | |
| LOW | api/app/controllers/memory_display_controller.py | 49 | CODE | |
| LOW | api/app/controllers/memory_display_controller.py | 390 | CODE | |
| LOW | api/app/controllers/app_controller.py | 441 | CODE | |
| LOW | api/app/controllers/app_log_controller.py | 35 | CODE | |
| LOW | api/app/controllers/document_controller.py | 112 | CODE | |
| LOW | api/app/controllers/knowledge_controller.py | 297 | CODE | |
| LOW | …p/controllers/service/memory_display_api_controller.py | 201 | CODE | |
| LOW | …p/controllers/service/memory_display_api_controller.py | 301 | CODE | |
| LOW | …app/controllers/service/rag_api_document_controller.py | 33 | CODE | |
| LOW | …pp/controllers/service/rag_api_knowledge_controller.py | 85 | CODE | |
| LOW | api/app/services/prompt_optimizer_service.py | 556 | CODE | |
| LOW | api/app/services/app_chat_service.py | 478 | CODE | |
| LOW | api/app/services/app_chat_service.py | 1081 | CODE | |
| LOW | api/app/services/app_chat_service.py | 2073 | CODE | |
| LOW | api/app/services/app_chat_service.py | 2110 | CODE | |
| LOW | api/app/services/memory_reflection_service.py | 790 | CODE | |
| LOW | api/app/services/multi_agent_orchestrator.py | 436 | CODE | |
| LOW | api/app/services/multi_agent_orchestrator.py | 1786 | CODE | |
| LOW | api/app/services/workspace_service.py | 467 | CODE | |
| LOW | api/app/services/e2b_agent_adapter.py | 36 | CODE | |
| LOW | api/app/services/e2b_agent_adapter.py | 184 | CODE | |
| LOW | api/app/services/draft_run_service.py | 799 | CODE | |
| LOW | api/app/services/draft_run_service.py | 978 | CODE | |
| LOW | api/app/services/draft_run_service.py | 1463 | CODE | |
| LOW | api/app/services/draft_run_service.py | 1990 | CODE | |
| LOW | api/app/services/draft_run_service.py | 3307 | CODE | |
| LOW | api/app/services/draft_run_service.py | 3920 | CODE | |
| LOW | api/app/services/draft_run_service.py | 4150 | CODE | |
| LOW | api/app/services/generation_service.py | 70 | CODE | |
| LOW | api/app/services/generation_service.py | 119 | CODE | |
| LOW | api/app/services/generation_service.py | 158 | CODE | |
| LOW | api/app/services/app_service.py | 2849 | CODE | |
| LOW | api/app/services/app_service.py | 1248 | CODE | |
| 18 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | mem-knowledge/src/rag/integrations/web/robots_parser.py | 72 | # Create a permissive parser | COMMENT |
| 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 | 319 | # 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 | 927 | # Create the workspace without adding any members | COMMENT |
| MEDIUM | api/app/services/workspace_service.py | 974 | # 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 | 49 | # 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 |
|---|---|---|---|---|
| MEDIUM | mem-knowledge/src/services/chunk.py | 523 | # collapse unit docs; skip building the embedding model client entirely. | COMMENT |
| MEDIUM | e2b-infra/templates/agent-runtime/extract_runtime.sh | 11 | # - Document parsing (RAG ingestion happens outside sandbox) | COMMENT |
| MEDIUM | api/app/tasks.py | 2682 | # RAG 存储类型走独立路径 | COMMENT |
| MEDIUM | api/app/core/error_codes.py | 90 | # RAG/知识(9xxx) | COMMENT |
| MEDIUM | api/app/core/rag_utils/README.md | 1 | # RAG Chunk 分析工具 | COMMENT |
| MEDIUM⚡ | api/app/core/memory/pipelines/dispatcher.py | 355 | # 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 | 149 | # RAG存储模式专用字段 - RAG Storage Mode Fields | COMMENT |
| MEDIUM | api/app/controllers/memory_controller.py | 130 | # ── 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 | 442 | # ======== RAG 数据统计 ======== | COMMENT |
| MEDIUM | api/app/services/memory_dashboard_service.py | 521 | # ======== RAG 相关服务 ======== | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | web/src/i18n/en/detail.ts | 91 | portraitSubTitle: 'Personalized insights generated by AI based on your preference tags', | CODE |
| HIGH | api/app/core/memory/models/graph_models.py | 295 | # Core fields (ordered as requested) | COMMENT |
| HIGH | api/app/core/memory/models/graph_models.py | 306 | # Emotion fields (ordered as requested, emotion_intensity first for display) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | api/app/core/models/llm.py | 76 | CODE | |
| 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 | 1079 | CODE | |
| MEDIUM | api/app/repositories/memory_config_repository.py | 1083 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …orkflow/components/Properties/hooks/useVariableList.ts | 552 | // Uses the same robust strategy as useVariableList: | COMMENT |
| MEDIUM | .github/workflows/api-breaking-change.yml | 67 | # Use the same export harness, but import each revision's own application. | 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 | mem-knowledge/src/rag/knowledge_graph/prompts.py | 30 | "name": "Acme Corp", | CODE |
| LOW⚡ | api/app/core/config.py | 291 | 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 | …dbear_model/providers/dashscope_video_understanding.py | 311 | def handle_request(self, request: httpx.Request) -> httpx.Response: | CODE |
| 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 | 152 | 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 |