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

style: apply Biome formatting and cleanup

alvinreal 2 месяцев назад
Родитель
Сommit
7a66ce3c97
3 измененных файлов с 12 добавлено и 4 удалено
  1. 8 2
      src/cli/config-io.test.ts
  2. 3 1
      src/cli/config-io.ts
  3. 1 1
      src/companion/manager.ts

+ 8 - 2
src/cli/config-io.test.ts

@@ -585,7 +585,10 @@ describe('config-io', () => {
     const litePath = join(tmpDir, 'opencode', 'oh-my-opencode-slim.json');
     paths.ensureConfigDir();
 
-    writeFileSync(configPath, JSON.stringify({ plugin: ['oh-my-opencode-slim'] }));
+    writeFileSync(
+      configPath,
+      JSON.stringify({ plugin: ['oh-my-opencode-slim'] }),
+    );
     writeFileSync(
       litePath,
       JSON.stringify({
@@ -593,7 +596,10 @@ describe('config-io', () => {
         presets: {
           dev: {
             orchestrator: {
-              model: ['openai/gpt-5.4-mini', { id: 'anthropic/claude-opus-4-6' }],
+              model: [
+                'openai/gpt-5.4-mini',
+                { id: 'anthropic/claude-opus-4-6' },
+              ],
             },
           },
         },

+ 3 - 1
src/cli/config-io.ts

@@ -692,7 +692,9 @@ export function detectCurrentConfig(): DetectedConfig {
       result.hasOpenAI ||= models.some((m) => m.startsWith('openai/'));
       result.hasAnthropic ||= models.some((m) => m.startsWith('anthropic/'));
       result.hasCopilot ||= models.some((m) => m.startsWith('github-copilot/'));
-      result.hasZaiPlan ||= models.some((m) => m.startsWith('zai-coding-plan/'));
+      result.hasZaiPlan ||= models.some((m) =>
+        m.startsWith('zai-coding-plan/'),
+      );
       result.hasOpencodeZen ||= models.some((m) => m.startsWith('opencode/'));
       if (models.some((m) => m.startsWith('google/'))) {
         result.hasAntigravity = true;

+ 1 - 1
src/companion/manager.ts

@@ -1,4 +1,4 @@
-import { spawn, type ChildProcess } from 'node:child_process';
+import { type ChildProcess, spawn } from 'node:child_process';
 import {
   existsSync,
   mkdirSync,