Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ const nextConfig = {
...config.resolve.fallback,
fs: false,
path: false,
child_process: false,
net: false,
os: false,
};
}
return config;
Expand Down
7 changes: 7 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
"react-resizable-panels": "^4.3.2",
"react-window": "^2.2.5",
"remark-gfm": "^4.0.0",
"server-only": "^0.0.1",
"tailwind-merge": "^3.5.0",
"vaul": "^1.1.2",
"zod": "^3.23.8",
Expand Down
6 changes: 3 additions & 3 deletions src/lib/agent-memory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
*/

// Lazy-load persistence to avoid bundling Node.js 'fs' module in client-side code.
// persistence.ts uses 'fs' which is not available in the browser.
// This is only used in server-side code paths (typeof window === 'undefined').
function getServerPersistence(): { persistence: import('./persistence').PersistenceManager; COLLECTIONS: typeof import('./persistence').COLLECTIONS } | null {
// Only used in server-side code paths (typeof window === 'undefined').
// eslint-disable-next-line @typescript-eslint/no-explicit-any
function getServerPersistence(): { persistence: any; COLLECTIONS: any } | null {
if (typeof window !== 'undefined') return null
try {
// eslint-disable-next-line @typescript-eslint/no-require-imports
Expand Down
1 change: 1 addition & 0 deletions src/lib/agent-precision-system.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* Last Updated: January 14, 2026
*/

import 'server-only'
import type { SpecializedAgent } from './specialized-agents'
import { mlLearningSystem } from './ml-learning-system'
import { ragSystem } from './rag-system'
Expand Down
1 change: 1 addition & 0 deletions src/lib/knowledge-graph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* Last Updated: January 14, 2026
*/

import 'server-only'
import { persistence, COLLECTIONS } from './persistence'

// ============================================================================
Expand Down
1 change: 1 addition & 0 deletions src/lib/ml-learning-system.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* Last Updated: January 14, 2026
*/

import 'server-only'
import type { SpecializedAgent } from './specialized-agents'
import { ragSystem } from './rag-system'
import { knowledgeGraph } from './knowledge-graph'
Expand Down
1 change: 1 addition & 0 deletions src/lib/rag-system.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* Last Updated: January 14, 2026
*/

import 'server-only'
import type { SpecializedAgent } from './specialized-agents'
import { persistence, COLLECTIONS } from './persistence'

Expand Down
1 change: 1 addition & 0 deletions src/lib/tool-executor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
* - Automatic retry with exponential backoff for transient failures
*/

import 'server-only'
import { spawn } from 'child_process'
import * as fs from 'fs'
import * as path from 'path'
Expand Down