You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
chalk is an optionalDependency but QUICServer imports it unconditionally (breaks --omit=optional installs) #50
What happens: agentdb lists chalk in optionalDependencies (npm view [email protected] optionalDependencies.chalk → ^5.3.0). But dist/src/controllers/QUICServer.js imports it at module load. With npm install --omit=optional, importing anything that reaches QUICServer fails with ERR_MODULE_NOT_FOUND: chalk.
Where we hit it: ruflo ADR-525 (ruvnet/ruflo#4866) tried to install agentic-flow's learning stack lean:
The same install without --omit=optional: 29 s, 1842 MB.
The lean install fails at import('agentic-flow/dist/reasoningbank') → agentdb QUICServer.js → chalk. Measured in a fresh node:22 container with an empty npm cache.
Ask (either works):
Move chalk to dependencies. It's small.
Or load it lazily or guarded in QUICServer, so the module loads without it.
Related:better-sqlite3 behaves the same way through agentic-flow's ReasoningBank: optional, but required at import. Once both are fixed, consumers can skip onnxruntime (~690 MB, via @huggingface/transformers) with --omit=optional and still have working learning.
Activity
docs(adr-525): link upstream chalk dependency issue (ruvnet/agentdb#50)