Browse Source

Address TUI review feedback

Alvin Unreal 3 months ago
parent
commit
98ca6b75ee
3 changed files with 7 additions and 3 deletions
  1. 3 1
      bun.lock
  2. 3 1
      package.json
  3. 1 1
      src/cli/paths.ts

+ 3 - 1
bun.lock

@@ -10,7 +10,6 @@
         "@mozilla/readability": "^0.6.0",
         "@opencode-ai/plugin": "^1.3.17",
         "@opencode-ai/sdk": "^1.3.17",
-        "@opentui/solid": "0.1.97",
         "jsdom": "^26.1.0",
         "lru-cache": "^11.3.3",
         "turndown": "^7.2.4",
@@ -25,6 +24,9 @@
         "typescript": "^5.9.3",
         "zod": "^4.3.6",
       },
+      "optionalDependencies": {
+        "@opentui/solid": "^0.1.97",
+      },
       "peerDependencies": {
         "zod": "^4.0.0",
       },

+ 3 - 1
package.json

@@ -74,11 +74,13 @@
     "@mozilla/readability": "^0.6.0",
     "@opencode-ai/plugin": "^1.3.17",
     "@opencode-ai/sdk": "^1.3.17",
-    "@opentui/solid": "0.1.97",
     "jsdom": "^26.1.0",
     "lru-cache": "^11.3.3",
     "turndown": "^7.2.4"
   },
+  "optionalDependencies": {
+    "@opentui/solid": "^0.1.97"
+  },
   "devDependencies": {
     "@biomejs/biome": "2.4.11",
     "@types/jsdom": "^21.1.7",

+ 1 - 1
src/cli/paths.ts

@@ -100,7 +100,7 @@ export function getExistingTuiConfigPath(): string {
   const customConfigPath = getCustomTuiConfigPath();
   if (customConfigPath) return customConfigPath;
 
-  const jsonPath = getTuiConfig();
+  const jsonPath = join(getConfigDir(), 'tui.json');
   if (existsSync(jsonPath)) return jsonPath;
 
   const jsoncPath = getTuiConfigJsonc();