Преглед изворни кода

fix(experimental): declare react as a build input of the agent team client

@deepseek-ai/dsh-experimental-client-ui-agent-team listed react under
dependencies, which the shipped client packages never do: react reaches the
browser through the web build. Now that the agent team web profile is an
optional bundle of @deepseek-ai/dsh, that dependency pulled react into the
npm install layout, where verify-npm-install-layout rejects it.
Yichen Jiang пре 4 недеља
родитељ
комит
b017b2861c
2 измењених фајлова са 4 додато и 7 уклоњено
  1. 1 3
      packages/experimental/client-ui-agent-team/package.json
  2. 3 4
      pnpm-lock.yaml

+ 1 - 3
packages/experimental/client-ui-agent-team/package.json

@@ -42,9 +42,6 @@
     "watch": "tsdown --watch"
   },
   "license": "MIT",
-  "dependencies": {
-    "react": "^18.2.0"
-  },
   "peerDependencies": {
     "@deepseek-ai/dsh-api-remotes": "workspace:^",
     "@deepseek-ai/dsh-api-session-controller": "workspace:^",
@@ -75,6 +72,7 @@
     "@testing-library/react": "^16.1.0",
     "@types/react": "~18.3.1",
     "@deepseek-ai/cordis": "workspace:^",
+    "react": "^18.2.0",
     "react-dom": "^18.2.0"
   },
   "files": [

+ 3 - 4
pnpm-lock.yaml

@@ -6200,10 +6200,6 @@ importers:
         version: 4.22.4
 
   packages/experimental/client-ui-agent-team:
-    dependencies:
-      react:
-        specifier: ^18.2.0
-        version: 18.3.1
     devDependencies:
       '@deepseek-ai/cordis':
         specifier: workspace:^
@@ -6250,6 +6246,9 @@ importers:
       '@types/react':
         specifier: ~18.3.1
         version: 18.3.31
+      react:
+        specifier: ^18.2.0
+        version: 18.3.1
       react-dom:
         specifier: ^18.2.0
         version: 18.3.1(react@18.3.1)