Commit graph

5340 commits

Author SHA1 Message Date
CREDO23
0fcb2acfdc Add multi_agent_chat supervisor agent graph and supervisor prompt. 2026-04-30 00:59:57 +02:00
CREDO23
5a0a265b2b Add multi_agent_chat calendar slice with connector tools, agent, and domain prompt. 2026-04-30 00:59:56 +02:00
CREDO23
09a46a282a Add multi_agent_chat gmail slice with connector tools, agent, and domain prompt. 2026-04-30 00:59:55 +02:00
CREDO23
5ff2678253 Add multi_agent_chat shared helpers for prompts, domain agents, deps, and invoke parsing. 2026-04-30 00:59:47 +02:00
CREDO23
b9132f8544 Export supervisor baseline create_surfsense_deep_agent. 2026-04-29 23:41:29 +02:00
CREDO23
93fb4011e9 Add async factory for tool-free supervisor baseline agent. 2026-04-29 23:41:29 +02:00
CREDO23
53adac0cc9 Compose supervisor prompt from SurfSense fragments and composer blocks. 2026-04-29 23:41:29 +02:00
CREDO23
06f4b9b4d5 Clarify memory limits without update_memory tool. 2026-04-29 23:41:29 +02:00
CREDO23
fc68cbf22f Add team-space KB-first policy for supervisor prompts. 2026-04-29 23:41:29 +02:00
CREDO23
26095805a8 Add private-space KB-first policy for supervisor prompts. 2026-04-29 23:41:29 +02:00
CREDO23
b506c79611 Describe LangGraph supervisor scope for baseline. 2026-04-29 23:41:29 +02:00
CREDO23
c1273c41b9 Add prompts package for supervisor baseline fragments. 2026-04-29 23:41:29 +02:00
CREDO23
615a23b3ec Build compiled LangGraph agent without tool-injecting middleware. 2026-04-29 23:41:29 +02:00
CREDO23
15e105454d Map connector enums to searchable KB types. 2026-04-29 23:41:29 +02:00
CREDO23
525527d802 Add deep_agent package for supervisor baseline. 2026-04-29 23:41:29 +02:00
CREDO23
3908131105 Fix stale feature flags cache so specialized subagents respect env. 2026-04-29 21:36:34 +02:00
CREDO23
bf9b606a61 Wire Linear and Slack specialists and prompt routing. 2026-04-29 20:51:06 +02:00
CREDO23
41cb4a567b Harden Linear and Slack MCP subagent permissions. 2026-04-29 20:24:21 +02:00
DESKTOP-RTLN3BA\$punk
a688895115 feat: increase recursion limit for chat streaming to enhance tool iteration capabilities
Some checks are pending
Build and Push Docker Images / tag_release (push) Waiting to run
Build and Push Docker Images / build (./surfsense_backend, ./surfsense_backend/Dockerfile, backend, surfsense-backend, ubuntu-24.04-arm, linux/arm64, arm64) (push) Blocked by required conditions
Build and Push Docker Images / build (./surfsense_backend, ./surfsense_backend/Dockerfile, backend, surfsense-backend, ubuntu-latest, linux/amd64, amd64) (push) Blocked by required conditions
Build and Push Docker Images / build (./surfsense_web, ./surfsense_web/Dockerfile, web, surfsense-web, ubuntu-24.04-arm, linux/arm64, arm64) (push) Blocked by required conditions
Build and Push Docker Images / build (./surfsense_web, ./surfsense_web/Dockerfile, web, surfsense-web, ubuntu-latest, linux/amd64, amd64) (push) Blocked by required conditions
Build and Push Docker Images / create_manifest (backend, surfsense-backend) (push) Blocked by required conditions
Build and Push Docker Images / create_manifest (web, surfsense-web) (push) Blocked by required conditions
2026-04-29 08:03:39 -07:00
DESKTOP-RTLN3BA\$punk
9a114a2d45 feat: enhance tool display names for better user experience in chat UI 2026-04-29 07:40:11 -07:00
CREDO23
3dec2a7327 Add a Slack operations specialist subagent. 2026-04-29 16:25:36 +02:00
CREDO23
8ddfa6ac6f Add shared safety constants for provider subagents. 2026-04-29 16:25:28 +02:00
CREDO23
dce08e8b25 Merge remote-tracking branch 'upstream/dev_mod' into feature/multi-agent-subagents-gmail-calendar 2026-04-29 16:22:13 +02:00
CREDO23
dcae196eea Revert "feat(chat): add multi-agent mode routing scaffold and telemetry."
This reverts commit 7b9a218d62.
2026-04-29 16:21:57 +02:00
CREDO23
2eed81d059 Revert "feat(subagents): export registry helpers."
This reverts commit 8d0a679805.
2026-04-29 16:21:57 +02:00
CREDO23
6e5206e47c Revert "feat(subagents): add shared subagent utility helpers."
This reverts commit 755d20f6ea.
2026-04-29 16:21:57 +02:00
CREDO23
14dbcf0874 Revert "feat(subagents): add read-only calendar subagent."
This reverts commit 6afe65a449.
2026-04-29 16:21:57 +02:00
CREDO23
fa5a209e5a Revert "feat(subagents): add read-only gmail subagent."
This reverts commit e57633dab2.
2026-04-29 16:21:57 +02:00
DESKTOP-RTLN3BA\$punk
c110f5b955 feat: improved agent streaming 2026-04-29 07:20:31 -07:00
Rohan Verma
afb4b09cde
Merge pull request #1322 from guangyang1206/perf/blog-search-derive-results-usememo
Some checks are pending
Build and Push Docker Images / tag_release (push) Waiting to run
Build and Push Docker Images / build (./surfsense_backend, ./surfsense_backend/Dockerfile, backend, surfsense-backend, ubuntu-24.04-arm, linux/arm64, arm64) (push) Blocked by required conditions
Build and Push Docker Images / build (./surfsense_backend, ./surfsense_backend/Dockerfile, backend, surfsense-backend, ubuntu-latest, linux/amd64, amd64) (push) Blocked by required conditions
Build and Push Docker Images / build (./surfsense_web, ./surfsense_web/Dockerfile, web, surfsense-web, ubuntu-24.04-arm, linux/arm64, arm64) (push) Blocked by required conditions
Build and Push Docker Images / build (./surfsense_web, ./surfsense_web/Dockerfile, web, surfsense-web, ubuntu-latest, linux/amd64, amd64) (push) Blocked by required conditions
Build and Push Docker Images / create_manifest (backend, surfsense-backend) (push) Blocked by required conditions
Build and Push Docker Images / create_manifest (web, surfsense-web) (push) Blocked by required conditions
perf(blog): derive search results with useMemo instead of useState+us…
2026-04-29 00:08:49 -07:00
Rohan Verma
cc6da08346
Merge pull request #1321 from guangyang1206/perf/lucide-explicit-icons-whitelist
perf(docs): replace full lucide barrel import with explicit icon whit…
2026-04-29 00:08:27 -07:00
Rohan Verma
619e4b5639
Merge pull request #1320 from guangyang1206/feat/loading-skeletons-async-routes-1243
feat(perf): add loading.tsx skeletons for async marketing routes
2026-04-29 00:07:59 -07:00
Rohan Verma
95200e444f
Merge pull request #1319 from AnishSarkar22/fix/ui-mention-documents
fix: enhance mention documents
2026-04-29 00:07:05 -07:00
Rohan Verma
27d990d5e8
Merge pull request #1323 from MODSetter/dev_mod
feat: updated agent harness
2026-04-28 23:59:57 -07:00
DESKTOP-RTLN3BA\$punk
f9b5367754 chore: cleaned comments slop 2026-04-28 23:52:37 -07:00
DESKTOP-RTLN3BA\$punk
f23be16b35 refactor: citation viewer 2026-04-28 23:25:26 -07:00
DESKTOP-RTLN3BA\$punk
ca9bbee06d chore: linting 2026-04-28 21:37:51 -07:00
yeranyang
942077c773 perf(docs): replace full lucide barrel import with explicit icon whitelist
Fixes #1241

The docs bundle was importing `{ icons }` from lucide-react, which pulls
the entire Lucide icon library (~1 400 SVGs, ~500 kB of JS) into the Next.js
docs bundle even though only nine icons are used in docs frontmatter and
meta.json files.

Replace with a hand-maintained DOCS_ICONS whitelist that imports only the
icons that are actually referenced (BookOpen, ClipboardCheck, Compass,
Container, Download, FlaskConical, Heart, Unplug, Wrench).

To add a new docs icon: import it from lucide-react and add it to the
DOCS_ICONS record. The icon() callback remains the same for callers.
2026-04-29 12:34:13 +08:00
guangyang1206
dcafa364ff feat(perf): add loading.tsx skeletons for async marketing routes
Fixes #1243

Add sibling loading.tsx files for all 6 async route segments that were
missing instant loading UI, causing blank screens during navigation on
slow networks or cold caches.

Routes covered:
- /docs/[[...slug]]   — awaits getDocPage + MDX body
- /blog               — awaits source.getPages()
- /blog/[slug]        — awaits params + MDX body
- /changelog          — awaits source.getPages()
- /free               — awaits getModels() fetch
- /free/[model_slug]  — awaits Promise.all([getModel, getAllModels])

Each loading.tsx is a Server Component returning an animate-pulse
skeleton that matches its route's layout (header, content area,
grid/table/timeline as appropriate). Uses the Skeleton component and
Tailwind classes already present in the project.

Follows the pattern established in:
- app/dashboard/[search_space_id]/logs/loading.tsx
- app/dashboard/[search_space_id]/new-chat/loading.tsx
2026-04-29 12:34:13 +08:00
yeranyang
4845b96209 perf(blog): derive search results with useMemo instead of useState+useEffect
Fixes #1246

Replace the useState/useEffect pattern that synced fuzzy search results
into local state on every search or searcher change with a single useMemo
that derives results directly during render.

Before:
  const [results, setResults] = useState(allBlogs);
  useEffect(() => {
    setResults(searcher.search(search));
  }, [search, searcher]);

After:
  const gridItems = useMemo(() => {
    const results = search.trim() ? searcher.search(search) : allBlogs;
    ...
  }, [search, searcher, allBlogs, featuredSlug]);

This removes an extra re-render per keystroke and eliminates the stale
intermediate state that occurred between the search input change and the
effect firing.
2026-04-29 12:34:12 +08:00
DESKTOP-RTLN3BA\$punk
b9a66cb417 feat: various UI fixes, prompt optimizations, and allowing duplicate docs
- Updated `content_hash` in the `Document` model to remove global uniqueness, allowing identical content across different paths.
- Enhanced `_create_document` function to handle path uniqueness and prevent session-poisoning from `IntegrityError`.
- Added detailed comments for clarity on the changes and their implications.
- Introduced new citation handling in the editor for improved user experience with citation jumps.
- Updated package dependencies in the frontend for better functionality.
2026-04-28 21:30:53 -07:00
Anish Sarkar
e61b410805 Merge remote-tracking branch 'upstream/dev' into fix/ui-mention-documents 2026-04-29 04:29:10 +05:30
Anish Sarkar
8be7f2e05c refactor(mentions): update document mention handling to use document keys for consistency across components 2026-04-29 04:19:07 +05:30
Anish Sarkar
76c91adebc refactor(mentions): replace sidebarSelectedDocumentsAtom with mentionedDocumentsAtom and introduce getMentionDocKey utility for consistent document key generation 2026-04-29 04:12:42 +05:30
CREDO23
e57633dab2 feat(subagents): add read-only gmail subagent. 2026-04-28 18:37:32 +02:00
CREDO23
6afe65a449 feat(subagents): add read-only calendar subagent. 2026-04-28 18:37:32 +02:00
CREDO23
755d20f6ea feat(subagents): add shared subagent utility helpers. 2026-04-28 18:37:32 +02:00
CREDO23
8d0a679805 feat(subagents): export registry helpers. 2026-04-28 18:37:32 +02:00
DESKTOP-RTLN3BA\$punk
e6433f78c4 Merge commit '61f4d05cd1' into dev_mod 2026-04-28 09:25:41 -07:00
DESKTOP-RTLN3BA\$punk
82fe7fd1f3 Merge commit '16587ec789' into dev_mod 2026-04-28 09:23:31 -07:00