Files
lobehub__lobehub/packages/app-config/package.json
Arvin Xu f8365500c2 ♻️ refactor(desktop): compile against the real @lobechat/types, drop the types stub (#17436)
* ♻️ refactor(desktop): compile against the real @lobechat/types, drop the types stub

Follow-up to #17424: close the remaining isolated-workspace gaps and delete
apps/desktop/stubs/types.

- push the last two @/ imports out of packages/types: MCPErrorType now lives
  with the shared MCP plugin types (src/libs/mcp re-exports it), and
  IFeatureFlagsState is an explicit type in serverConfig.ts that app-config's
  mapFeatureFlagsEnvToState is pinned to via its return-type annotation
- move ModelProviderKey next to the ModelProvider enum in model-bank, removing
  the types → model-runtime type edge
- load packages/const/src/global.d.ts from version.ts (type-only import) so
  __ELECTRON__ exists without the app's ambient declarations
- mirror ENABLE_BUSINESS_FEATURES into the desktop business-const stub
- make model-runtime compile under the desktop tsconfig (strict:false):
  relative import in volcengine, typed runtime-map lookup instead of
  @ts-expect-error, explicit AsyncIterator<T> in convertIterableToStream,
  ternary spreads in google createVideo, unknown-bridged ThinkingConfig cast
- add StrictOnly<T> guard helper: zod 4 inference needs strictNullChecks, so
  satisfies-guards in understanding.ts / userMemory/tools.ts stay strict in
  the root project and relax to any for non-strict consumers

Desktop isolated workspace: 15 type errors → 0, stub deleted.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* 👷 ci(desktop): type-check the isolated workspace in the desktop quality job

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-07-22 12:00:59 +08:00

25 lines
546 B
JSON

{
"name": "@lobechat/app-config",
"version": "0.0.0",
"private": true,
"exports": {
"./*": "./src/*.ts"
},
"scripts": {
"test": "vitest",
"test:coverage": "vitest --coverage --silent='passed-only'"
},
"dependencies": {
"@lobechat/database": "workspace:*",
"@lobechat/types": "workspace:*",
"@lobechat/utils": "workspace:*",
"@t3-oss/env-nextjs": "^0.13.11",
"debug": "^4.4.3",
"lucide-react": "^1.22.0",
"zod": "^4.4.3"
},
"devDependencies": {
"vite-tsconfig-paths": "^6.1.1"
}
}