Commit graph

227 commits

Author SHA1 Message Date
DESKTOP-RTLN3BA\$punk
1e4b8d3e89 feat: enhance document formatting and context management for LLM tools
- Introduced dynamic character budget calculation for document formatting based on model's context window.
- Updated `format_documents_for_context` to respect character limits and improve output quality.
- Added `max_input_tokens` parameter to various functions to facilitate context-aware processing.
- Enhanced error handling for context overflow in LLM router service.
2026-02-26 20:47:19 -08:00
DESKTOP-RTLN3BA\$punk
a4dc84d1ab feat: add should_summarize parameter to task dispatchers
- Introduced should_summarize parameter in TaskDispatcher and CeleryTaskDispatcher to control summary generation.
- Updated InlineTaskDispatcher to support the new parameter for document processing.
2026-02-26 19:12:37 -08:00
DESKTOP-RTLN3BA\$punk
6f4bf11a32 Merge branch 'dev' of https://github.com/MODSetter/SurfSense into dev 2026-02-26 18:25:05 -08:00
DESKTOP-RTLN3BA\$punk
e9892c8fe9 feat: added configable summary calculation and various improvements
- Replaced direct embedding calls with a utility function across various components to streamline embedding logic.
- Added enable_summary flag to several models and routes to control summary generation behavior.
2026-02-26 18:24:57 -08:00
Anish Sarkar
3393e435f9 feat: implement task dispatcher for document processing
- Introduced a TaskDispatcher abstraction to decouple the upload endpoint from Celery, allowing for easier testing with synchronous implementations.
- Updated the create_documents_file_upload function to utilize the new dispatcher for task management.
- Removed direct Celery task imports from the upload function, enhancing modularity.
- Added integration tests for document upload, including page limit enforcement and file size restrictions.
2026-02-26 23:55:47 +05:30
Anish Sarkar
25df3dff64 chore: ran linting 2026-02-26 01:29:25 +05:30
Rohan Verma
d0ee8b12b6
Merge pull request #834 from CREDO23/google-drive-hitl
[Feature] Add human in the loop for google drive sensitive actions (create:docs,sheets & delete)
2026-02-24 16:34:25 -08:00
DESKTOP-RTLN3BA\$punk
a3cd598e01 feat: added improved llm model selector 2026-02-20 14:28:01 -08:00
CREDO23
856d258318 fix bugs and pattern inconsistencies in google drive tools 2026-02-20 19:41:29 +02:00
CREDO23
2220314041 add google drive tool metadata service 2026-02-20 16:05:54 +02:00
CREDO23
c8413ee2bf fix: resolve graphql complexity, json extraction, kb sync, and ui prefill for linear HIL 2026-02-19 18:30:20 +02:00
CREDO23
9b838ec015 fix(linear): use .astext for JSONB text extraction in _resolve_issue
cast(document_metadata["key"], String) generates CAST(col->'key' AS TEXT)
which preserves JSON string quotes (e.g. '"Fix login bug"'), causing
case-insensitive comparisons to never match.

Replace with .astext which generates the ->> operator (unquoted text
extraction), making issue lookups by title and identifier work correctly.
2026-02-19 15:47:40 +02:00
CREDO23
e79ec9234a fix label clear bug, invalid delete URL, and remove dead connector method 2026-02-19 14:35:30 +02:00
CREDO23
c5bd930a71 add create-linear-issue tool UI and multi-account creation context 2026-02-18 20:01:05 +02:00
CREDO23
58955cdc9f feat(linear): add LinearKBSyncService and services __init__ 2026-02-18 17:51:53 +02:00
CREDO23
3fd80a61f9 feat(linear): add LinearToolMetadataService 2026-02-18 17:34:52 +02:00
CREDO23
594379ea69 Disable streaming for KB sync summary LLM to prevent token leaking into chat; remove workspace_icon from update-notion-page 2026-02-18 15:10:51 +02:00
CREDO23
d28aed14b3 Guard KB sync on document_id; fix comment style 2026-02-18 12:31:28 +02:00
CREDO23
64a170efce Fix critical bugs in KB sync implementation
- Add rollback on exception to prevent dirty database state
- Fix block verification threshold from >=1 to >=80%
- Remove technical 'failed' language from user messages
- Add empty content validation with warning
2026-02-17 21:27:58 +02:00
CREDO23
7d1bd1fab4 Implement KB sync after Notion page updates with block ID verification
- Add NotionKBSyncService for immediate KB updates after page changes
- Implement block ID verification to ensure content freshness
- Refactor duplicate block processing logic to shared utils
- Add user-friendly status messages
- Include debug logging for troubleshooting
2026-02-17 20:30:12 +02:00
CREDO23
2f65536c6d use document_id instead of page_id for kb sync lookup 2026-02-17 18:25:56 +02:00
CREDO23
bd3bd701a7 fix jsonb query syntax for page_id lookup 2026-02-17 18:02:00 +02:00
CREDO23
f5195b4c2f fix import path for generate_content_hash 2026-02-17 17:50:47 +02:00
CREDO23
e92aa68523 fix circular import in kb sync service 2026-02-17 17:48:24 +02:00
CREDO23
b240bc3e1a add kb sync for notion updates 2026-02-17 17:37:47 +02:00
DESKTOP-RTLN3BA\$punk
81c70befcf chore: linting 2026-02-15 23:38:15 -08:00
CREDO23
66a6fb685e Merge upstream/dev into feature/human-in-the-loop 2026-02-13 20:17:59 +02:00
CREDO23
9411edf057 Refactor update_notion_page to append-only with simplified parameters 2026-02-13 13:07:19 +02:00
CREDO23
0d1b61d7e6 Implement update notion page tool 2026-02-13 10:45:51 +02:00
Anish Sarkar
a2dd5fb671 chore: ran linting 2026-02-13 02:43:26 +05:30
CREDO23
d33c0dd32f fix: use cast() instead of astext for JSONB query 2026-02-12 19:32:36 +02:00
CREDO23
f7411b9737 Add user_id filter to prevent cross-user document access 2026-02-12 18:14:26 +02:00
CREDO23
9023f2656b Improve notion page creation approval UI 2026-02-12 17:35:27 +02:00
CREDO23
08154b321d remove page counts and fix workspace icon display 2026-02-12 16:29:18 +02:00
CREDO23
d4aa61a12a add interrupt payload normalization for interrupt() primitive 2026-02-12 15:44:03 +02:00
CREDO23
c9b0e55ce9 add notion tool metadata service 2026-02-12 15:21:18 +02:00
Anish Sarkar
adeef35443 feat: add report versioning support with report_group_id 2026-02-12 03:19:38 +05:30
CREDO23
78127243e2 merge upstream/dev: add user_id to configs, provider icons, i18n 2026-02-11 20:05:00 +02:00
Anish Sarkar
e5626342fc feat: add public report content retrieval and enhance report handling 2026-02-11 22:07:31 +05:30
Anish Sarkar
fc64f65876 Merge remote-tracking branch 'upstream/dev' into feat/sur-159 2026-02-11 03:47:51 +05:30
Anish Sarkar
bb4ed3cac6 refactor: update configuration names from "Auto (Load Balanced)" to "Auto (Fastest)" across multiple components for consistency and clarity 2026-02-10 23:04:15 +05:30
Anish Sarkar
f1ce17bde4 chore: ran linting 2026-02-10 19:06:21 +05:30
CREDO23
9751918e41 add interrupt detection, SSE event, and resume schemas 2026-02-10 15:35:42 +02:00
CREDO23
a96d18ec31 Fix GitHub Models provider: use github prefix, fix migration, add Zod enum 2026-02-09 19:14:16 +02:00
CREDO23
a9d6c41964 Add GITHUB_MODELS to provider maps 2026-02-09 17:34:25 +02:00
Anish Sarkar
a33a2161aa feat: enhance user association by integrating member data into public chat and image model managers 2026-02-09 19:00:57 +05:30
Anish Sarkar
0fdd194d92 Merge remote-tracking branch 'upstream/dev' into fix/documents 2026-02-06 12:13:26 +05:30
DESKTOP-RTLN3BA\$punk
0d031cb2c2 refactor: update image generation configuration to remove TPM references and clarify RPM usage in comments 2026-02-05 18:07:27 -08:00
DESKTOP-RTLN3BA\$punk
f85adefe5e chore: made generate_image more agnostic 2026-02-05 17:18:27 -08:00
DESKTOP-RTLN3BA\$punk
19e2857343 feat: added image gen support 2026-02-05 16:43:48 -08:00