mirror of
https://github.com/lobehub/lobehub.git
synced 2026-09-20 04:56:13 +08:00
a5e74a9eb4
* ⚡️ perf(spa): cut the editor runtime, ajv and database models from the boot path Four package-level import edges put ~1.5 MB raw on the first screen: - GlobalProvider/Editor.tsx imported @lobehub/editor/react, and rolldown does not shake that entry down to EditorProvider, so lexical, yjs and fuse landed in the entry chunk. The provider is reached by path until the package exposes a provider-only entry. - @lobechat/types re-exported the ajv-backed AgentGraphSchema through the barrel that every store touches; it now lives on the @lobechat/types/agent/graph subpath and the agent barrel re-exports types only. - @lobechat/context-engine's root barrel dragged the database models barrel (drizzle) in through AgentDocumentInjector; the app reaches the ./agent-document subpath and the injector reads loadPolicy directly. - packages/locales bundled locales/en-US/*.json on top of the default sources it mirrors; the overlay now applies only in development. Web production build: first-screen gzip 2299 KB -> 1968 KB. Claude-Session: https://claude.ai/code/session_01QKr8CsFLYmrgqbRTSipTNH * 🐛 fix(vite): keep one EditorContext in dev for the path-imported provider Claude-Session: https://claude.ai/code/session_01QKr8CsFLYmrgqbRTSipTNH * 🐛 fix(locales): refresh consumers after the dev English overlay lands Claude-Session: https://claude.ai/code/session_01QKr8CsFLYmrgqbRTSipTNH
43 lines
1.1 KiB
JSON
43 lines
1.1 KiB
JSON
{
|
|
"name": "@lobechat/context-engine",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"description": "Context Pipeline Engine for LobeChat - A flexible and configurable context processing system",
|
|
"keywords": [
|
|
"context",
|
|
"pipeline",
|
|
"processor",
|
|
"chat",
|
|
"ai",
|
|
"lobe"
|
|
],
|
|
"exports": {
|
|
".": "./src/index.ts",
|
|
"./agent-document": "./src/providers/AgentDocumentInjector/shared.ts"
|
|
},
|
|
"main": "src/index.ts",
|
|
"scripts": {
|
|
"test": "vitest",
|
|
"test:coverage": "vitest --coverage --silent='passed-only'",
|
|
"test:update": "vitest -u"
|
|
},
|
|
"dependencies": {
|
|
"@lobechat/const": "workspace:*",
|
|
"@lobechat/database": "workspace:*",
|
|
"@lobechat/prompts": "workspace:*",
|
|
"@lobechat/utils": "workspace:*",
|
|
"debug": "^4.4.3",
|
|
"es-toolkit": "^1.49.0",
|
|
"immer": "^10.2.0",
|
|
"tokenx": "^1.3.0",
|
|
"ts-md5": "^2.0.1",
|
|
"unist-builder": "^4.0.0",
|
|
"xast-util-to-xml": "^4.0.0",
|
|
"xastscript": "^4.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@lobechat/types": "workspace:*",
|
|
"@types/debug": "^4.1.13"
|
|
}
|
|
}
|