Просмотр исходного кода

refactor: packages/tsconfig.json in packages use lib/typings/ as output subfolder

imccyu 4 месяцев назад
Родитель
Сommit
6b15b606d7
36 измененных файлов с 90 добавлено и 72 удалено
  1. 4 3
      packages/acp/package.json
  2. 1 1
      packages/acp/tsconfig.json
  3. 4 3
      packages/agent-loop/package.json
  4. 1 1
      packages/agent-loop/tsconfig.json
  5. 4 3
      packages/agent/package.json
  6. 1 1
      packages/agent/tsconfig.json
  7. 4 3
      packages/bash-local/package.json
  8. 1 1
      packages/bash-local/tsconfig.json
  9. 4 3
      packages/bash/package.json
  10. 1 1
      packages/bash/tsconfig.json
  11. 4 3
      packages/invariants/package.json
  12. 1 1
      packages/invariants/tsconfig.json
  13. 4 3
      packages/llm-deepseek/package.json
  14. 1 1
      packages/llm-deepseek/tsconfig.json
  15. 4 3
      packages/llm-pi-ai/package.json
  16. 1 1
      packages/llm-pi-ai/tsconfig.json
  17. 4 3
      packages/llm-replay/package.json
  18. 1 1
      packages/llm-replay/tsconfig.json
  19. 4 3
      packages/llm/package.json
  20. 1 1
      packages/llm/tsconfig.json
  21. 4 3
      packages/session-persistence-jsonl/package.json
  22. 1 1
      packages/session-persistence-jsonl/tsconfig.json
  23. 4 3
      packages/session-persistence-sqlite/package.json
  24. 1 1
      packages/session-persistence-sqlite/tsconfig.json
  25. 4 3
      packages/session-persistence/package.json
  26. 1 1
      packages/session-persistence/tsconfig.json
  27. 4 3
      packages/session/package.json
  28. 1 1
      packages/session/tsconfig.json
  29. 4 3
      packages/system-prompt/package.json
  30. 1 1
      packages/system-prompt/tsconfig.json
  31. 4 3
      packages/tool-bash/package.json
  32. 1 1
      packages/tool-bash/tsconfig.json
  33. 4 3
      packages/tools/package.json
  34. 1 1
      packages/tools/tsconfig.json
  35. 4 3
      packages/ui-stdio/package.json
  36. 1 1
      packages/ui-stdio/tsconfig.json

+ 4 - 3
packages/acp/package.json

@@ -5,17 +5,18 @@
   "private": true,
   "type": "module",
   "main": "lib/index.js",
-  "types": "lib/index.d.ts",
+  "types": "lib/typings/index.d.ts",
   "exports": {
     ".": {
-      "types": "./lib/index.d.ts",
+      "types": "./lib/typings/index.d.ts",
       "default": "./lib/index.js"
     },
     "./src/*": "./src/*",
     "./package.json": "./package.json"
   },
   "files": [
-    "lib",
+    "lib/index.js",
+    "lib/typings/**/*.d.ts",
     "src"
   ],
   "license": "BSD-3-Clause",

+ 1 - 1
packages/acp/tsconfig.json

@@ -2,7 +2,7 @@
   "extends": "../../tsconfig.base.json",
   "compilerOptions": {
     "rootDir": "src",
-    "outDir": "lib"
+    "outDir": "lib/typings"
   },
   "include": ["src"],
   "references": [

+ 4 - 3
packages/agent-loop/package.json

@@ -5,17 +5,18 @@
   "private": true,
   "type": "module",
   "main": "lib/index.js",
-  "types": "lib/index.d.ts",
+  "types": "lib/typings/index.d.ts",
   "exports": {
     ".": {
-      "types": "./lib/index.d.ts",
+      "types": "./lib/typings/index.d.ts",
       "default": "./lib/index.js"
     },
     "./src/*": "./src/*",
     "./package.json": "./package.json"
   },
   "files": [
-    "lib",
+    "lib/index.js",
+    "lib/typings/**/*.d.ts",
     "src"
   ],
   "license": "BSD-3-Clause",

+ 1 - 1
packages/agent-loop/tsconfig.json

@@ -2,7 +2,7 @@
   "extends": "../../tsconfig.base.json",
   "compilerOptions": {
     "rootDir": "src",
-    "outDir": "lib"
+    "outDir": "lib/typings"
   },
   "include": ["src"],
   "references": [

+ 4 - 3
packages/agent/package.json

@@ -5,17 +5,18 @@
   "private": true,
   "type": "module",
   "main": "lib/index.js",
-  "types": "lib/index.d.ts",
+  "types": "lib/typings/index.d.ts",
   "exports": {
     ".": {
-      "types": "./lib/index.d.ts",
+      "types": "./lib/typings/index.d.ts",
       "default": "./lib/index.js"
     },
     "./src/*": "./src/*",
     "./package.json": "./package.json"
   },
   "files": [
-    "lib",
+    "lib/index.js",
+    "lib/typings/**/*.d.ts",
     "src"
   ],
   "license": "BSD-3-Clause",

+ 1 - 1
packages/agent/tsconfig.json

@@ -2,7 +2,7 @@
   "extends": "../../tsconfig.base.json",
   "compilerOptions": {
     "rootDir": "src",
-    "outDir": "lib"
+    "outDir": "lib/typings"
   },
   "include": ["src"],
   "references": [

+ 4 - 3
packages/bash-local/package.json

@@ -5,17 +5,18 @@
   "private": true,
   "type": "module",
   "main": "lib/index.js",
-  "types": "lib/index.d.ts",
+  "types": "lib/typings/index.d.ts",
   "exports": {
     ".": {
-      "types": "./lib/index.d.ts",
+      "types": "./lib/typings/index.d.ts",
       "default": "./lib/index.js"
     },
     "./src/*": "./src/*",
     "./package.json": "./package.json"
   },
   "files": [
-    "lib",
+    "lib/index.js",
+    "lib/typings/**/*.d.ts",
     "src"
   ],
   "license": "BSD-3-Clause",

+ 1 - 1
packages/bash-local/tsconfig.json

@@ -2,7 +2,7 @@
   "extends": "../../tsconfig.base.json",
   "compilerOptions": {
     "rootDir": "src",
-    "outDir": "lib"
+    "outDir": "lib/typings"
   },
   "include": ["src"],
   "references": [

+ 4 - 3
packages/bash/package.json

@@ -5,17 +5,18 @@
   "private": true,
   "type": "module",
   "main": "lib/index.js",
-  "types": "lib/index.d.ts",
+  "types": "lib/typings/index.d.ts",
   "exports": {
     ".": {
-      "types": "./lib/index.d.ts",
+      "types": "./lib/typings/index.d.ts",
       "default": "./lib/index.js"
     },
     "./src/*": "./src/*",
     "./package.json": "./package.json"
   },
   "files": [
-    "lib",
+    "lib/index.js",
+    "lib/typings/**/*.d.ts",
     "src"
   ],
   "license": "BSD-3-Clause",

+ 1 - 1
packages/bash/tsconfig.json

@@ -2,7 +2,7 @@
   "extends": "../../tsconfig.base.json",
   "compilerOptions": {
     "rootDir": "src",
-    "outDir": "lib"
+    "outDir": "lib/typings"
   },
   "include": ["src"],
   "references": [

+ 4 - 3
packages/invariants/package.json

@@ -5,17 +5,18 @@
   "private": true,
   "type": "module",
   "main": "lib/index.js",
-  "types": "lib/index.d.ts",
+  "types": "lib/typings/index.d.ts",
   "exports": {
     ".": {
-      "types": "./lib/index.d.ts",
+      "types": "./lib/typings/index.d.ts",
       "default": "./lib/index.js"
     },
     "./src/*": "./src/*",
     "./package.json": "./package.json"
   },
   "files": [
-    "lib",
+    "lib/index.js",
+    "lib/typings/**/*.d.ts",
     "src"
   ],
   "license": "BSD-3-Clause",

+ 1 - 1
packages/invariants/tsconfig.json

@@ -2,7 +2,7 @@
   "extends": "../../tsconfig.base.json",
   "compilerOptions": {
     "rootDir": "src",
-    "outDir": "lib"
+    "outDir": "lib/typings"
   },
   "include": ["src"],
   "references": [

+ 4 - 3
packages/llm-deepseek/package.json

@@ -5,17 +5,18 @@
   "private": true,
   "type": "module",
   "main": "lib/index.js",
-  "types": "lib/index.d.ts",
+  "types": "lib/typings/index.d.ts",
   "exports": {
     ".": {
-      "types": "./lib/index.d.ts",
+      "types": "./lib/typings/index.d.ts",
       "default": "./lib/index.js"
     },
     "./src/*": "./src/*",
     "./package.json": "./package.json"
   },
   "files": [
-    "lib",
+    "lib/index.js",
+    "lib/typings/**/*.d.ts",
     "src"
   ],
   "license": "BSD-3-Clause",

+ 1 - 1
packages/llm-deepseek/tsconfig.json

@@ -2,7 +2,7 @@
   "extends": "../../tsconfig.base.json",
   "compilerOptions": {
     "rootDir": "src",
-    "outDir": "lib"
+    "outDir": "lib/typings"
   },
   "include": ["src"],
   "references": [

+ 4 - 3
packages/llm-pi-ai/package.json

@@ -5,17 +5,18 @@
   "private": true,
   "type": "module",
   "main": "lib/index.js",
-  "types": "lib/index.d.ts",
+  "types": "lib/typings/index.d.ts",
   "exports": {
     ".": {
-      "types": "./lib/index.d.ts",
+      "types": "./lib/typings/index.d.ts",
       "default": "./lib/index.js"
     },
     "./src/*": "./src/*",
     "./package.json": "./package.json"
   },
   "files": [
-    "lib",
+    "lib/index.js",
+    "lib/typings/**/*.d.ts",
     "src"
   ],
   "license": "BSD-3-Clause",

+ 1 - 1
packages/llm-pi-ai/tsconfig.json

@@ -2,7 +2,7 @@
   "extends": "../../tsconfig.base.json",
   "compilerOptions": {
     "rootDir": "src",
-    "outDir": "lib"
+    "outDir": "lib/typings"
   },
   "include": ["src"],
   "references": [

+ 4 - 3
packages/llm-replay/package.json

@@ -5,17 +5,18 @@
   "private": true,
   "type": "module",
   "main": "lib/index.js",
-  "types": "lib/index.d.ts",
+  "types": "lib/typings/index.d.ts",
   "exports": {
     ".": {
-      "types": "./lib/index.d.ts",
+      "types": "./lib/typings/index.d.ts",
       "default": "./lib/index.js"
     },
     "./src/*": "./src/*",
     "./package.json": "./package.json"
   },
   "files": [
-    "lib",
+    "lib/index.js",
+    "lib/typings/**/*.d.ts",
     "src"
   ],
   "license": "BSD-3-Clause",

+ 1 - 1
packages/llm-replay/tsconfig.json

@@ -2,7 +2,7 @@
   "extends": "../../tsconfig.base.json",
   "compilerOptions": {
     "rootDir": "src",
-    "outDir": "lib"
+    "outDir": "lib/typings"
   },
   "include": ["src"],
   "references": [

+ 4 - 3
packages/llm/package.json

@@ -5,17 +5,18 @@
   "private": true,
   "type": "module",
   "main": "lib/index.js",
-  "types": "lib/index.d.ts",
+  "types": "lib/typings/index.d.ts",
   "exports": {
     ".": {
-      "types": "./lib/index.d.ts",
+      "types": "./lib/typings/index.d.ts",
       "default": "./lib/index.js"
     },
     "./src/*": "./src/*",
     "./package.json": "./package.json"
   },
   "files": [
-    "lib",
+    "lib/index.js",
+    "lib/typings/**/*.d.ts",
     "src"
   ],
   "license": "BSD-3-Clause",

+ 1 - 1
packages/llm/tsconfig.json

@@ -2,7 +2,7 @@
   "extends": "../../tsconfig.base.json",
   "compilerOptions": {
     "rootDir": "src",
-    "outDir": "lib"
+    "outDir": "lib/typings"
   },
   "include": ["src"],
   "references": [

+ 4 - 3
packages/session-persistence-jsonl/package.json

@@ -5,17 +5,18 @@
   "private": true,
   "type": "module",
   "main": "lib/index.js",
-  "types": "lib/index.d.ts",
+  "types": "lib/typings/index.d.ts",
   "exports": {
     ".": {
-      "types": "./lib/index.d.ts",
+      "types": "./lib/typings/index.d.ts",
       "default": "./lib/index.js"
     },
     "./src/*": "./src/*",
     "./package.json": "./package.json"
   },
   "files": [
-    "lib",
+    "lib/index.js",
+    "lib/typings/**/*.d.ts",
     "src"
   ],
   "license": "BSD-3-Clause",

+ 1 - 1
packages/session-persistence-jsonl/tsconfig.json

@@ -2,7 +2,7 @@
   "extends": "../../tsconfig.base.json",
   "compilerOptions": {
     "rootDir": "src",
-    "outDir": "lib"
+    "outDir": "lib/typings"
   },
   "include": ["src"],
   "references": [

+ 4 - 3
packages/session-persistence-sqlite/package.json

@@ -5,17 +5,18 @@
   "private": true,
   "type": "module",
   "main": "lib/index.js",
-  "types": "lib/index.d.ts",
+  "types": "lib/typings/index.d.ts",
   "exports": {
     ".": {
-      "types": "./lib/index.d.ts",
+      "types": "./lib/typings/index.d.ts",
       "default": "./lib/index.js"
     },
     "./src/*": "./src/*",
     "./package.json": "./package.json"
   },
   "files": [
-    "lib",
+    "lib/index.js",
+    "lib/typings/**/*.d.ts",
     "src"
   ],
   "license": "BSD-3-Clause",

+ 1 - 1
packages/session-persistence-sqlite/tsconfig.json

@@ -2,7 +2,7 @@
   "extends": "../../tsconfig.base.json",
   "compilerOptions": {
     "rootDir": "src",
-    "outDir": "lib"
+    "outDir": "lib/typings"
   },
   "include": ["src"],
   "references": [

+ 4 - 3
packages/session-persistence/package.json

@@ -5,17 +5,18 @@
   "private": true,
   "type": "module",
   "main": "lib/index.js",
-  "types": "lib/index.d.ts",
+  "types": "lib/typings/index.d.ts",
   "exports": {
     ".": {
-      "types": "./lib/index.d.ts",
+      "types": "./lib/typings/index.d.ts",
       "default": "./lib/index.js"
     },
     "./src/*": "./src/*",
     "./package.json": "./package.json"
   },
   "files": [
-    "lib",
+    "lib/index.js",
+    "lib/typings/**/*.d.ts",
     "src"
   ],
   "license": "BSD-3-Clause",

+ 1 - 1
packages/session-persistence/tsconfig.json

@@ -2,7 +2,7 @@
   "extends": "../../tsconfig.base.json",
   "compilerOptions": {
     "rootDir": "src",
-    "outDir": "lib"
+    "outDir": "lib/typings"
   },
   "include": ["src"],
   "references": [

+ 4 - 3
packages/session/package.json

@@ -5,17 +5,18 @@
   "private": true,
   "type": "module",
   "main": "lib/index.js",
-  "types": "lib/index.d.ts",
+  "types": "lib/typings/index.d.ts",
   "exports": {
     ".": {
-      "types": "./lib/index.d.ts",
+      "types": "./lib/typings/index.d.ts",
       "default": "./lib/index.js"
     },
     "./src/*": "./src/*",
     "./package.json": "./package.json"
   },
   "files": [
-    "lib",
+    "lib/index.js",
+    "lib/typings/**/*.d.ts",
     "src"
   ],
   "license": "BSD-3-Clause",

+ 1 - 1
packages/session/tsconfig.json

@@ -2,7 +2,7 @@
   "extends": "../../tsconfig.base.json",
   "compilerOptions": {
     "rootDir": "src",
-    "outDir": "lib"
+    "outDir": "lib/typings"
   },
   "include": ["src"],
   "references": [

+ 4 - 3
packages/system-prompt/package.json

@@ -5,17 +5,18 @@
   "private": true,
   "type": "module",
   "main": "lib/index.js",
-  "types": "lib/index.d.ts",
+  "types": "lib/typings/index.d.ts",
   "exports": {
     ".": {
-      "types": "./lib/index.d.ts",
+      "types": "./lib/typings/index.d.ts",
       "default": "./lib/index.js"
     },
     "./src/*": "./src/*",
     "./package.json": "./package.json"
   },
   "files": [
-    "lib",
+    "lib/index.js",
+    "lib/typings/**/*.d.ts",
     "src"
   ],
   "license": "BSD-3-Clause",

+ 1 - 1
packages/system-prompt/tsconfig.json

@@ -2,7 +2,7 @@
   "extends": "../../tsconfig.base.json",
   "compilerOptions": {
     "rootDir": "src",
-    "outDir": "lib"
+    "outDir": "lib/typings"
   },
   "include": ["src"],
   "references": [

+ 4 - 3
packages/tool-bash/package.json

@@ -5,17 +5,18 @@
   "private": true,
   "type": "module",
   "main": "lib/index.js",
-  "types": "lib/index.d.ts",
+  "types": "lib/typings/index.d.ts",
   "exports": {
     ".": {
-      "types": "./lib/index.d.ts",
+      "types": "./lib/typings/index.d.ts",
       "default": "./lib/index.js"
     },
     "./src/*": "./src/*",
     "./package.json": "./package.json"
   },
   "files": [
-    "lib",
+    "lib/index.js",
+    "lib/typings/**/*.d.ts",
     "src"
   ],
   "license": "BSD-3-Clause",

+ 1 - 1
packages/tool-bash/tsconfig.json

@@ -2,7 +2,7 @@
   "extends": "../../tsconfig.base.json",
   "compilerOptions": {
     "rootDir": "src",
-    "outDir": "lib"
+    "outDir": "lib/typings"
   },
   "include": ["src"],
   "references": [

+ 4 - 3
packages/tools/package.json

@@ -5,17 +5,18 @@
   "private": true,
   "type": "module",
   "main": "lib/index.js",
-  "types": "lib/index.d.ts",
+  "types": "lib/typings/index.d.ts",
   "exports": {
     ".": {
-      "types": "./lib/index.d.ts",
+      "types": "./lib/typings/index.d.ts",
       "default": "./lib/index.js"
     },
     "./src/*": "./src/*",
     "./package.json": "./package.json"
   },
   "files": [
-    "lib",
+    "lib/index.js",
+    "lib/typings/**/*.d.ts",
     "src"
   ],
   "license": "BSD-3-Clause",

+ 1 - 1
packages/tools/tsconfig.json

@@ -2,7 +2,7 @@
   "extends": "../../tsconfig.base.json",
   "compilerOptions": {
     "rootDir": "src",
-    "outDir": "lib"
+    "outDir": "lib/typings"
   },
   "include": ["src"],
   "references": [

+ 4 - 3
packages/ui-stdio/package.json

@@ -5,17 +5,18 @@
   "private": true,
   "type": "module",
   "main": "lib/index.js",
-  "types": "lib/index.d.ts",
+  "types": "lib/typings/index.d.ts",
   "exports": {
     ".": {
-      "types": "./lib/index.d.ts",
+      "types": "./lib/typings/index.d.ts",
       "default": "./lib/index.js"
     },
     "./src/*": "./src/*",
     "./package.json": "./package.json"
   },
   "files": [
-    "lib",
+    "lib/index.js",
+    "lib/typings/**/*.d.ts",
     "src"
   ],
   "license": "BSD-3-Clause",

+ 1 - 1
packages/ui-stdio/tsconfig.json

@@ -2,7 +2,7 @@
   "extends": "../../tsconfig.base.json",
   "compilerOptions": {
     "rootDir": "src",
-    "outDir": "lib"
+    "outDir": "lib/typings"
   },
   "include": ["src"],
   "references": [