Commit graph

27 commits

Author SHA1 Message Date
Vasilije
4ac49dd27f
Merge branch 'dev' into feat/mcp-add-support-for-non-standalone-mode 2025-10-12 13:57:55 +02:00
vasilije
19431a41d6 tried adding cli fix 2025-10-12 11:25:41 +02:00
Vasilije
fb8e6ae47c
Fix exception handling across cognee - lost exception stacktraces and exception metadata (#1518)
<!-- .github/pull_request_template.md -->

## Description
<!--
Please provide a clear, human-generated description of the changes in
this PR.
DO NOT use AI-generated descriptions. We want to understand your thought
process and reasoning.
-->

In several places, our exception handling discards valuable debugging
context - either by losing the original stack trace or omitting metadata
from the underlying error. This makes diagnosing root causes
significantly harder.

This PR updates exception throwing to use [`raise ...
from`](https://docs.python.org/3/reference/simple_stmts.html#raise),
which:
1. The original stack trace is always preserved, even when wrapping
exceptions
2. Custom exceptions explicitly reference their underlying cause, making
error chains clearer



## Type of Change
<!-- Please check the relevant option -->
- [ ] Bug fix (non-breaking change that fixes an issue)
- [ ] New feature (non-breaking change that adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] Documentation update
- [ ] Code refactoring
- [ ] Performance improvement
- [ ] Other (please specify):

## Screenshots/Videos (if applicable)
<!-- Add screenshots or videos to help explain your changes -->

## Pre-submission Checklist
<!-- Please check all boxes that apply before submitting your PR -->
- [ ] **I have tested my changes thoroughly before submitting this PR**
- [ ] **This PR contains minimal changes necessary to address the
issue/feature**
- [ ] My code follows the project's coding standards and style
guidelines
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] I have added necessary documentation (if applicable)
- [ ] All new and existing tests pass
- [ ] I have searched existing PRs to ensure this change hasn't been
submitted already
- [ ] I have linked any relevant issues in the description
- [ ] My commits have clear and descriptive messages

## DCO Affirmation
I affirm that all code in every commit of this pull request conforms to
the terms of the Topoteretes Developer Certificate of Origin.
2025-10-12 10:29:26 +02:00
Daulet Amirkhanov
2c8d8e8058 feat: handle cli processes cleanup when terminal window is closed 2025-10-09 19:47:52 +01:00
Daulet Amirkhanov
079a5528b0 handle mcp shutdown cleanly, and remove the need for .env if in standalone mode 2025-10-09 16:09:43 +01:00
Daulet Amirkhanov
97f90c95ed Remove all references to SearchType.INSIGHTS across the codebase, meaningfully replacing it with SearchType.GRAPH_COMPLETION where applicable. 2025-10-08 12:13:59 +01:00
Daulet Amirkhanov
6acc44de16 Improve exception handling to provide clearer error context 2025-10-08 12:09:21 +01:00
Daulet Amirkhanov
a92f4bdf3f fix: update failing tests and refactor delete_preview implementation 2025-10-02 15:05:39 +01:00
Daulet Amirkhanov
d5dd6c2fc2
Merge branch 'dev' into feature/delete-preview 2025-10-02 12:02:16 +01:00
shehab-badawy
9c87a10848 feat: Add delete preview for --dataset-name and --all flags
This commit introduces the preview functionality for the  command. The preview displays a summary of what will be deleted before asking for user confirmation.

The feature is fully functional for the following flags:
-  / : Correctly counts the number of data entries within the specified dataset.
- : Correctly counts the total number of datasets, data entries, and users in the system.

The logic for the  flag is a work in progress. The current implementation uses a placeholder and needs a method to query a user directly by their ID to be completed.
2025-10-02 01:44:11 -04:00
Vasilije
52265a67f2
Merge branch 'dev' into feature/windows-compatibility-fixes 2025-09-29 20:51:17 +02:00
Daulet Amirkhanov
0fac104fc7 fix: update UI server startup message to reflect dynamic frontend port 2025-09-27 20:11:39 +01:00
shehab-badawy
de162cb491 feat: Add preview step to delete command
Signed-off-by: shehab-badawy <shehab.badawy001@gmail.com>
2025-09-26 22:38:16 -04:00
Daulet Amirkhanov
c518f149f2 refactor: streamline UI server startup and port availability checks 2025-09-26 14:26:43 +01:00
Daulet Amirkhanov
921c4481f0 feat: start cognee-mcp as part of cognee -ui 2025-09-25 22:04:06 +01:00
Nikoloz Turazashvili
1fc8e5ad08 feat: Add Windows compatibility and error handling improvements
- Fix Windows process termination using taskkill instead of killpg
- Add Windows-compatible npm detection and commands
- Fix Next.js SSR error with dynamic imports
- Improve cloud API error handling for local mode
- Add frontend connection retry mechanism with 5 retries
- Fix string formatting in prompt loading
- Add cognee CLI entry point alongside cognee-cli

Resolves Windows compatibility issues and improves error handling
across CLI and frontend components.
2025-09-25 03:51:01 +07:00
Daulet Amirkhanov
19ab2e04fc auto-download ui on cognee -ui 2025-09-11 19:24:44 +01:00
Daulet Amirkhanov
be73e2ee41 add more robust process cleanup to avoid dangling subprocesses 2025-09-11 19:18:11 +01:00
Daulet Amirkhanov
8df2ffd991 start backend alongside with frontend on cognee -ui 2025-09-11 17:43:38 +01:00
Daulet Amirkhanov
0807ce4d5c
default -ui port to 3000 (instead of 3001) (#1371)
<!-- .github/pull_request_template.md -->

## Description
<!-- Provide a clear description of the changes in this PR -->

## DCO Affirmation
I affirm that all code in every commit of this pull request conforms to
the terms of the Topoteretes Developer Certificate of Origin.
2025-09-11 17:48:32 +02:00
Daulet Amirkhanov
151e5ea6ea ruff format 2025-09-11 15:21:41 +01:00
Daulet Amirkhanov
7220052ca6 handle cli started ui closure gracefully 2025-09-11 15:21:31 +01:00
Daulet Amirkhanov
527db2abdf cognee cli - add "-ui" flag to start ui server 2025-09-11 15:08:53 +01:00
vasilije
c933290886 fixes to CLI 2025-08-27 15:49:38 +02:00
vasilije
9a17aa73b9 added fix 2025-08-18 22:16:44 +02:00
vasilije
9017b634cd simplify logging utils and refactor 2025-08-18 22:14:12 +02:00
vasilije
af94012e46 added files 2025-07-26 18:14:19 +02:00