Pārlūkot izejas kodu

refactor: client-namespace projection file named client/types.ts (layout ruling)

imccyu 2 mēneši atpakaļ
vecāks
revīzija
dcd9789226

+ 2 - 2
packages/session-title/session-title/package.json

@@ -20,8 +20,8 @@
       "default": "./lib/types/types.js"
     },
     "./client/types": {
-      "types": "./lib/types/client/index.d.ts",
-      "default": "./lib/types/client/index.js"
+      "types": "./lib/types/client/types.d.ts",
+      "default": "./lib/types/client/types.js"
     },
     "./src/*": "./src/*",
     "./package.json": "./package.json"

+ 1 - 1
packages/session-title/session-title/src/client/index.ts → packages/session-title/session-title/src/client/types.ts

@@ -1,5 +1,5 @@
 /**
- * Browser half-entry of the title domain: a pure re-export of the package's
+ * Client-namespace projection of the title domain: a pure re-export of the package's
  * types outlet. Client code imports ONLY the client namespace (repo
  * discipline), so `./client/types` projects the same single-source content
  * `./types` serves to host consumers — zero duplication.

+ 3 - 7
packages/todo/tool-todo/package.json

@@ -15,13 +15,9 @@
       "types": "./lib/types/invariant.d.ts",
       "default": "./lib/invariant.js"
     },
-    "./types": {
-      "types": "./lib/types/types.d.ts",
-      "default": "./lib/types/types.js"
-    },
-    "./client/types": {
-      "types": "./lib/types/client/index.d.ts",
-      "default": "./lib/types/client/index.js"
+    "./client": {
+      "types": "./lib/types/client.d.ts",
+      "default": "./lib/types/client.js"
     },
     "./src/*": "./src/*",
     "./package.json": "./package.json"

+ 1 - 1
packages/todo/tool-todo/src/client/index.ts → packages/todo/tool-todo/src/client/types.ts

@@ -1,5 +1,5 @@
 /**
- * Browser half-entry of the todo domain: a pure re-export of the package's
+ * Client-namespace projection of the todo domain: a pure re-export of the package's
  * types outlet. Client code imports ONLY the client namespace (repo
  * discipline), so `./client/types` projects the same single-source content
  * `./types` serves to host consumers — zero duplication.

+ 2 - 2
tsconfig.base.json

@@ -43,9 +43,9 @@
       "@deepseek-ai/dsh-session/surface": ["./packages/core/session/src/surface.ts"],
       "@deepseek-ai/dsh-session-projection/types": ["./packages/session-projection/session-projection/src/types.ts"],
       "@deepseek-ai/dsh-tool-todo/types": ["./packages/todo/tool-todo/src/types.ts"],
-      "@deepseek-ai/dsh-tool-todo/client/types": ["./packages/todo/tool-todo/src/client/index.ts"],
+      "@deepseek-ai/dsh-tool-todo/client/types": ["./packages/todo/tool-todo/src/client/types.ts"],
       "@deepseek-ai/dsh-session-title/types": ["./packages/session-title/session-title/src/types.ts"],
-      "@deepseek-ai/dsh-session-title/client/types": ["./packages/session-title/session-title/src/client/index.ts"],
+      "@deepseek-ai/dsh-session-title/client/types": ["./packages/session-title/session-title/src/client/types.ts"],
       "@deepseek-ai/dsh-llm/types": ["./packages/llm/llm/src/types.ts"],
       "@deepseek-ai/dsh-llm/brand": ["./packages/llm/llm/src/brand.ts"],
       "@deepseek-ai/dsh-tools/presentation": ["./packages/core/tools/src/presentation.ts"],