Merge main into massive-terminal-upgrade

Resolves merge conflicts:
- apps/server/src/routes/terminal/common.ts: Keep randomBytes import, use @automaker/utils for createLogger
- apps/ui/eslint.config.mjs: Use main's explicit globals list with XMLHttpRequest and MediaQueryListEvent additions
- apps/ui/src/components/views/terminal-view.tsx: Keep our terminal improvements (killAllSessions, beforeunload, better error handling)
- apps/ui/src/config/terminal-themes.ts: Keep our search highlight colors for all themes
- apps/ui/src/store/app-store.ts: Keep our terminal settings persistence improvements (merge function)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
SuperComboGamer
2025-12-21 20:27:44 -05:00
393 changed files with 32473 additions and 17974 deletions

View File

@@ -1,5 +1,5 @@
import { create } from "zustand";
import { persist } from "zustand/middleware";
import { create } from 'zustand';
import { persist } from 'zustand/middleware';
// CLI Installation Status
export interface CliStatus {
@@ -22,13 +22,13 @@ export interface GhCliStatus {
// Claude Auth Method - all possible authentication sources
export type ClaudeAuthMethod =
| "oauth_token_env"
| "oauth_token" // Stored OAuth token from claude login
| "api_key_env" // ANTHROPIC_API_KEY environment variable
| "api_key" // Manually stored API key
| "credentials_file" // Generic credentials file detection
| "cli_authenticated" // Claude CLI is installed and has active sessions/activity
| "none";
| 'oauth_token_env'
| 'oauth_token' // Stored OAuth token from claude login
| 'api_key_env' // ANTHROPIC_API_KEY environment variable
| 'api_key' // Manually stored API key
| 'credentials_file' // Generic credentials file detection
| 'cli_authenticated' // Claude CLI is installed and has active sessions/activity
| 'none';
// Claude Auth Status
export interface ClaudeAuthStatus {
@@ -52,11 +52,12 @@ export interface InstallProgress {
}
export type SetupStep =
| "welcome"
| "claude_detect"
| "claude_auth"
| "github"
| "complete";
| 'welcome'
| 'theme'
| 'claude_detect'
| 'claude_auth'
| 'github'
| 'complete';
export interface SetupState {
// Setup wizard state
@@ -99,18 +100,18 @@ export interface SetupActions {
const initialInstallProgress: InstallProgress = {
isInstalling: false,
currentStep: "",
currentStep: '',
progress: 0,
output: [],
};
// Check if setup should be skipped (for E2E testing)
const shouldSkipSetup = import.meta.env.VITE_SKIP_SETUP === "true";
const shouldSkipSetup = import.meta.env.VITE_SKIP_SETUP === 'true';
const initialState: SetupState = {
isFirstRun: !shouldSkipSetup,
setupComplete: shouldSkipSetup,
currentStep: shouldSkipSetup ? "complete" : "welcome",
currentStep: shouldSkipSetup ? 'complete' : 'welcome',
claudeCliStatus: null,
claudeAuthStatus: null,
@@ -132,11 +133,10 @@ export const useSetupStore = create<SetupState & SetupActions>()(
setSetupComplete: (complete) =>
set({
setupComplete: complete,
currentStep: complete ? "complete" : "welcome",
currentStep: complete ? 'complete' : 'welcome',
}),
completeSetup: () =>
set({ setupComplete: true, currentStep: "complete" }),
completeSetup: () => set({ setupComplete: true, currentStep: 'complete' }),
resetSetup: () =>
set({
@@ -171,7 +171,7 @@ export const useSetupStore = create<SetupState & SetupActions>()(
setSkipClaudeSetup: (skip) => set({ skipClaudeSetup: skip }),
}),
{
name: "automaker-setup",
name: 'automaker-setup',
partialize: (state) => ({
isFirstRun: state.isFirstRun,
setupComplete: state.setupComplete,