mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-23 16:42:19 +00:00
Switches terminal engine to xterm.js and removes Ghostty
Replaces the Ghostty Web terminal backend with xterm.js, updating references, dependencies, and styles accordingly. Removes Ghostty-specific initialization, CSS, and dependencies for improved compatibility and maintainability. Updates terminal and SFTP mounting to use React lazy loading for better performance. Improves Electron window startup to avoid initial white flash. Cleans up cloud adapter dynamic imports for more efficient loading. Updates documentation to reflect the terminal engine change.
This commit is contained in:
13 files changed
+159
-123
No files matched your search
@@ -1,5 +1,5 @@
|
||||
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
||||
import { activeTabStore, useActiveTabId, useIsVaultActive } from './application/state/activeTabStore';
|
||||
import React, { Suspense, lazy, useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
||||
import { activeTabStore, useActiveTabId, useIsSftpActive, useIsTerminalLayerVisible, useIsVaultActive } from './application/state/activeTabStore';
|
||||
import { useAutoSync } from './application/state/useAutoSync';
|
||||
import { useSessionState } from './application/state/useSessionState';
|
||||
import { useSettingsState } from './application/state/useSettingsState';
|
||||
@@ -12,8 +12,6 @@ import { netcattyBridge } from './infrastructure/services/netcattyBridge';
|
||||
import LogView from './components/LogView.tsx';
|
||||
import ProtocolSelectDialog from './components/ProtocolSelectDialog';
|
||||
import { QuickSwitcher } from './components/QuickSwitcher';
|
||||
import { SftpView } from './components/SftpView';
|
||||
import { TerminalLayer } from './components/TerminalLayer';
|
||||
import { TopTabs } from './components/TopTabs';
|
||||
import { Button } from './components/ui/button';
|
||||
import { Dialog, DialogContent, DialogFooter, DialogHeader, DialogTitle } from './components/ui/dialog';
|
||||
@@ -24,6 +22,8 @@ import { VaultView, VaultSection } from './components/VaultView';
|
||||
import { cn } from './lib/utils';
|
||||
import { ConnectionLog, Host, HostProtocol, TerminalTheme } from './types';
|
||||
import { LogView as LogViewType } from './application/state/useSessionState';
|
||||
import type { SftpView as SftpViewComponent } from './components/SftpView';
|
||||
import type { TerminalLayer as TerminalLayerComponent } from './components/TerminalLayer';
|
||||
|
||||
// Visibility container for VaultView - isolates isActive subscription
|
||||
const VaultViewContainer: React.FC<{ children: React.ReactNode }> = ({ children }) => {
|
||||
@@ -71,8 +71,60 @@ const LogViewWrapper: React.FC<LogViewWrapperProps> = ({ logView, defaultTermina
|
||||
);
|
||||
};
|
||||
|
||||
function App() {
|
||||
console.log('[App] render');
|
||||
const LazySftpView = lazy(() =>
|
||||
import('./components/SftpView').then((m) => ({ default: m.SftpView })),
|
||||
);
|
||||
|
||||
const LazyTerminalLayer = lazy(() =>
|
||||
import('./components/TerminalLayer').then((m) => ({ default: m.TerminalLayer })),
|
||||
);
|
||||
|
||||
type SettingsState = ReturnType<typeof useSettingsState>;
|
||||
type SftpViewProps = React.ComponentProps<typeof SftpViewComponent>;
|
||||
type TerminalLayerProps = React.ComponentProps<typeof TerminalLayerComponent>;
|
||||
|
||||
const SftpViewMount: React.FC<SftpViewProps> = (props) => {
|
||||
const isActive = useIsSftpActive();
|
||||
const [shouldMount, setShouldMount] = useState(isActive);
|
||||
|
||||
useEffect(() => {
|
||||
if (isActive) setShouldMount(true);
|
||||
}, [isActive]);
|
||||
|
||||
if (!shouldMount) return null;
|
||||
|
||||
return (
|
||||
<Suspense fallback={null}>
|
||||
<LazySftpView {...props} />
|
||||
</Suspense>
|
||||
);
|
||||
};
|
||||
|
||||
const TerminalLayerMount: React.FC<TerminalLayerProps> = (props) => {
|
||||
const isVisible = useIsTerminalLayerVisible(props.draggingSessionId);
|
||||
const [shouldMount, setShouldMount] = useState(isVisible);
|
||||
|
||||
useEffect(() => {
|
||||
if (isVisible) setShouldMount(true);
|
||||
}, [isVisible]);
|
||||
|
||||
useEffect(() => {
|
||||
if (shouldMount) return;
|
||||
// Warm up the terminal layer shortly after first paint to reduce latency when opening a session.
|
||||
const id = window.setTimeout(() => setShouldMount(true), 1200);
|
||||
return () => window.clearTimeout(id);
|
||||
}, [shouldMount]);
|
||||
|
||||
if (!shouldMount) return null;
|
||||
|
||||
return (
|
||||
<Suspense fallback={null}>
|
||||
<LazyTerminalLayer {...props} />
|
||||
</Suspense>
|
||||
);
|
||||
};
|
||||
|
||||
function App({ settings }: { settings: SettingsState }) {
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
@@ -95,10 +147,7 @@ function App() {
|
||||
terminalSettings,
|
||||
hotkeyScheme,
|
||||
keyBindings,
|
||||
} = useSettingsState();
|
||||
|
||||
// Debug: log hotkeyScheme and keyBindings on every render
|
||||
console.log('[App] hotkeyScheme:', hotkeyScheme, 'keyBindings length:', keyBindings.length);
|
||||
} = settings;
|
||||
|
||||
const {
|
||||
hosts,
|
||||
@@ -657,9 +706,9 @@ function App() {
|
||||
/>
|
||||
</VaultViewContainer>
|
||||
|
||||
<SftpView hosts={hosts} keys={keys} identities={identities} />
|
||||
<SftpViewMount hosts={hosts} keys={keys} identities={identities} />
|
||||
|
||||
<TerminalLayer
|
||||
<TerminalLayerMount
|
||||
hosts={hosts}
|
||||
keys={keys}
|
||||
identities={identities}
|
||||
@@ -784,11 +833,11 @@ function App() {
|
||||
}
|
||||
|
||||
function AppWithProviders() {
|
||||
const { uiLanguage } = useSettingsState();
|
||||
const settings = useSettingsState();
|
||||
return (
|
||||
<I18nProvider locale={uiLanguage}>
|
||||
<I18nProvider locale={settings.uiLanguage}>
|
||||
<ToastProvider>
|
||||
<App />
|
||||
<App settings={settings} />
|
||||
</ToastProvider>
|
||||
</I18nProvider>
|
||||
);
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
[](screenshot.png)
|
||||
|
||||
Netcatty is a modern SSH manager and terminal app that brings host grouping, drag-to-organize, SFTP side panel, keychain, port forwarding, and a rich UI theme. It ships with the Ghostty Web terminal (VT100) and an Electron desktop bridge for native SSH/SFTP.
|
||||
Netcatty is a modern SSH manager and terminal app that brings host grouping, drag-to-organize, SFTP side panel, keychain, port forwarding, and a rich UI theme. It ships with an xterm.js-based terminal and an Electron desktop bridge for native SSH/SFTP.
|
||||
|
||||
---
|
||||
|
||||
@@ -10,7 +10,7 @@ Netcatty is a modern SSH manager and terminal app that brings host grouping, dra
|
||||
- 🧭 **Host groups & breadcrumbs**: right-click to create/delete groups, drag hosts or groups into target groups, double-click to drill into a group, and breadcrumb navigation back to root.
|
||||
- 🗂️ **SFTP panel**: collapsible sidebar, single-click to enter directories, upload/delete/download, and loading animations.
|
||||
- 🗝️ **Keychain**: import/generate SSH keys, choose password/key auth; single-click a host to connect.
|
||||
- 🖥️ **Terminal UX**: Ghostty Web engine, auto-resize on window changes, connection logs, timeout/cancel, and connection progress UI.
|
||||
- 🖥️ **Terminal UX**: xterm.js engine, auto-resize on window changes, connection logs, timeout/cancel, and connection progress UI.
|
||||
- 🌗 **Themes & branding**: light/dark toggle, custom accent color, Netcatty logo baked in.
|
||||
- 🔌 **Electron bridge**: native SSH/SFTP channels without extra browser plugins.
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import { Terminal as XTerm } from "@xterm/xterm";
|
||||
import { FitAddon } from "@xterm/addon-fit";
|
||||
import { WebglAddon } from "@xterm/addon-webgl";
|
||||
import "@xterm/xterm/css/xterm.css";
|
||||
import { FileText, Palette, X } from "lucide-react";
|
||||
import React, { memo, useCallback, useEffect, useMemo, useRef, useState } from "react";
|
||||
import { useI18n } from "../application/i18n/I18nProvider";
|
||||
|
||||
@@ -2,7 +2,6 @@ import { Terminal as XTerm } from "@xterm/xterm";
|
||||
import { FitAddon } from "@xterm/addon-fit";
|
||||
import { SerializeAddon } from "@xterm/addon-serialize";
|
||||
import { SearchAddon } from "@xterm/addon-search";
|
||||
import "@xterm/xterm/css/xterm.css";
|
||||
import { Maximize2, Radio } from "lucide-react";
|
||||
import React, { memo, useEffect, useMemo, useRef, useState } from "react";
|
||||
import { useI18n } from "../application/i18n/I18nProvider";
|
||||
|
||||
@@ -100,6 +100,7 @@ async function createWindow(electronModule, options) {
|
||||
height: 900,
|
||||
backgroundColor: themeConfig.background,
|
||||
icon: appIcon,
|
||||
show: false,
|
||||
frame: isMac,
|
||||
titleBarStyle: isMac ? "hiddenInset" : undefined,
|
||||
trafficLightPosition: isMac ? { x: 12, y: 12 } : undefined,
|
||||
@@ -113,6 +114,15 @@ async function createWindow(electronModule, options) {
|
||||
|
||||
mainWindow = win;
|
||||
|
||||
// Show window when renderer is ready to prevent initial white flash.
|
||||
win.once("ready-to-show", () => {
|
||||
try {
|
||||
win.show();
|
||||
} catch {
|
||||
// ignore
|
||||
}
|
||||
});
|
||||
|
||||
// Register window control handlers
|
||||
registerWindowHandlers(electronModule.ipcMain, nativeTheme);
|
||||
|
||||
|
||||
@@ -261,33 +261,6 @@ body {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Ghostty terminal canvas - fill container completely */
|
||||
[data-ghostty-surface] {
|
||||
width: 100% !important;
|
||||
height: 100% !important;
|
||||
}
|
||||
|
||||
/* Override Ghostty's internal padding/margin */
|
||||
[data-ghostty-surface]>div {
|
||||
padding: 0 !important;
|
||||
margin: 0 !important;
|
||||
}
|
||||
|
||||
/* Make terminal scrollbar overlay instead of taking space */
|
||||
[data-ghostty-surface] ::-webkit-scrollbar {
|
||||
width: 8px;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
[data-ghostty-surface] ::-webkit-scrollbar-thumb {
|
||||
background: rgba(255, 255, 255, 0.2);
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
[data-ghostty-surface] ::-webkit-scrollbar-thumb:hover {
|
||||
background: rgba(255, 255, 255, 0.3);
|
||||
}
|
||||
|
||||
.workspace-pane {
|
||||
outline: none;
|
||||
overflow: visible;
|
||||
@@ -307,4 +280,4 @@ body {
|
||||
|
||||
.workspace-pane:focus-within::after {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
+30
-1
@@ -7,10 +7,11 @@
|
||||
<meta http-equiv="Content-Security-Policy"
|
||||
content="default-src 'self'; script-src 'self' 'unsafe-inline' 'wasm-unsafe-eval'; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com https://cdn.jsdelivr.net; font-src 'self' https://fonts.gstatic.com; connect-src 'self' data: blob: ws: wss: https:; img-src 'self' data: https:;" />
|
||||
<title>netcatty SSH</title>
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||||
<link
|
||||
href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap"
|
||||
rel="stylesheet">
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/xterm@5.3.0/css/xterm.css" />
|
||||
<style>
|
||||
/* Load extended Unicode ranges for terminal box drawing characters */
|
||||
@font-face {
|
||||
@@ -67,6 +68,9 @@
|
||||
|
||||
body {
|
||||
font-family: 'Space Grotesk', 'Inter', sans-serif;
|
||||
margin: 0;
|
||||
background: hsl(var(--background));
|
||||
color: hsl(var(--foreground));
|
||||
}
|
||||
|
||||
/* Global Modern Scrollbar */
|
||||
@@ -105,6 +109,31 @@
|
||||
scrollbar-width: none;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
(function () {
|
||||
try {
|
||||
var theme = localStorage.getItem('netcatty_theme_v1');
|
||||
var color = localStorage.getItem('netcatty_color_v1');
|
||||
var lang = localStorage.getItem('netcatty_ui_language_v1');
|
||||
var root = document.documentElement;
|
||||
|
||||
if (theme === 'dark' || theme === 'light') {
|
||||
root.classList.remove('light', 'dark');
|
||||
root.classList.add(theme);
|
||||
}
|
||||
|
||||
if (color) {
|
||||
root.style.setProperty('--primary', color);
|
||||
root.style.setProperty('--accent', color);
|
||||
root.style.setProperty('--ring', color);
|
||||
}
|
||||
|
||||
if (lang) root.lang = lang;
|
||||
} catch (e) {
|
||||
// ignore
|
||||
}
|
||||
})();
|
||||
</script>
|
||||
<link rel="stylesheet" href="/index.css">
|
||||
</head>
|
||||
|
||||
|
||||
@@ -1,14 +1,9 @@
|
||||
import { init as initGhostty } from 'ghostty-web';
|
||||
import ReactDOM from 'react-dom/client';
|
||||
import '@xterm/xterm/css/xterm.css';
|
||||
import App from './App';
|
||||
import SettingsPage from './components/SettingsPage';
|
||||
import { ToastProvider } from './components/ui/toast';
|
||||
|
||||
// Pre-load Ghostty WASM immediately on app start for faster terminal open
|
||||
initGhostty().catch((err) => {
|
||||
console.warn('[Ghostty] WASM preload failed, will retry on terminal open:', err);
|
||||
});
|
||||
|
||||
const rootElement = document.getElementById('root');
|
||||
if (!rootElement) {
|
||||
throw new Error("Could not find root element to mount to");
|
||||
|
||||
@@ -78,7 +78,6 @@ export class CloudSyncManager {
|
||||
constructor() {
|
||||
this.state = this.loadInitialState();
|
||||
this.stateSnapshot = { ...this.state };
|
||||
this.initializeAdapters();
|
||||
this.setupCrossWindowSync();
|
||||
}
|
||||
|
||||
@@ -296,22 +295,30 @@ export class CloudSyncManager {
|
||||
|
||||
const resourceChanged = (adapter?.resourceId || null) !== (next.resourceId || null);
|
||||
|
||||
if (!adapter || tokenChanged || resourceChanged) {
|
||||
this.adapters.set(provider, createAdapter(provider, nextTokens, next.resourceId));
|
||||
if (adapter && (tokenChanged || resourceChanged)) {
|
||||
adapter.signOut();
|
||||
this.adapters.delete(provider);
|
||||
}
|
||||
|
||||
this.notifyStateChange();
|
||||
}
|
||||
};
|
||||
|
||||
private initializeAdapters(): void {
|
||||
for (const provider of ['github', 'google', 'onedrive'] as CloudProvider[]) {
|
||||
const connection = this.state.providers[provider];
|
||||
if (connection.tokens) {
|
||||
const adapter = createAdapter(provider, connection.tokens, connection.resourceId);
|
||||
this.adapters.set(provider, adapter);
|
||||
}
|
||||
private async getConnectedAdapter(provider: CloudProvider): Promise<CloudAdapter> {
|
||||
const connection = this.state.providers[provider];
|
||||
const tokens = connection?.tokens;
|
||||
if (!tokens) {
|
||||
throw new Error('Provider not connected');
|
||||
}
|
||||
|
||||
const existing = this.adapters.get(provider);
|
||||
if (existing?.isAuthenticated) {
|
||||
return existing;
|
||||
}
|
||||
|
||||
const adapter = await createAdapter(provider, tokens, connection.resourceId);
|
||||
this.adapters.set(provider, adapter);
|
||||
return adapter;
|
||||
}
|
||||
|
||||
// ==========================================================================
|
||||
@@ -534,14 +541,13 @@ export class CloudSyncManager {
|
||||
type: 'device_code' | 'url';
|
||||
data: unknown;
|
||||
}> {
|
||||
const adapter = createAdapter(provider);
|
||||
const adapter = await createAdapter(provider);
|
||||
this.adapters.set(provider, adapter);
|
||||
|
||||
this.updateProviderStatus(provider, 'connecting');
|
||||
|
||||
if (provider === 'github') {
|
||||
// GitHub uses Device Flow
|
||||
await import('./adapters/GitHubAdapter'); // Ensure adapter is loaded
|
||||
const ghAdapter = adapter as GitHubAdapter;
|
||||
const deviceFlow = await ghAdapter.startAuth();
|
||||
|
||||
@@ -554,12 +560,10 @@ export class CloudSyncManager {
|
||||
const redirectUri = 'http://127.0.0.1:45678/oauth/callback';
|
||||
|
||||
if (provider === 'google') {
|
||||
await import('./adapters/GoogleDriveAdapter');
|
||||
const gdAdapter = adapter as GoogleDriveAdapter;
|
||||
const url = await gdAdapter.startAuth(redirectUri);
|
||||
return { type: 'url', data: { url, redirectUri } };
|
||||
} else {
|
||||
await import('./adapters/OneDriveAdapter');
|
||||
const odAdapter = adapter as OneDriveAdapter;
|
||||
const url = await odAdapter.startAuth(redirectUri);
|
||||
return { type: 'url', data: { url, redirectUri } };
|
||||
@@ -581,7 +585,6 @@ export class CloudSyncManager {
|
||||
throw new Error('GitHub adapter not initialized');
|
||||
}
|
||||
|
||||
await import('./adapters/GitHubAdapter');
|
||||
const ghAdapter = adapter as GitHubAdapter;
|
||||
|
||||
try {
|
||||
@@ -630,12 +633,10 @@ export class CloudSyncManager {
|
||||
let account;
|
||||
|
||||
if (provider === 'google') {
|
||||
await import('./adapters/GoogleDriveAdapter');
|
||||
const gdAdapter = adapter as GoogleDriveAdapter;
|
||||
tokens = await gdAdapter.completeAuth(code, redirectUri);
|
||||
account = gdAdapter.accountInfo;
|
||||
} else {
|
||||
await import('./adapters/OneDriveAdapter');
|
||||
const odAdapter = adapter as OneDriveAdapter;
|
||||
tokens = await odAdapter.completeAuth(code, redirectUri);
|
||||
account = odAdapter.accountInfo;
|
||||
@@ -745,8 +746,10 @@ export class CloudSyncManager {
|
||||
};
|
||||
}
|
||||
|
||||
const adapter = this.adapters.get(provider);
|
||||
if (!adapter?.isAuthenticated) {
|
||||
let adapter: CloudAdapter;
|
||||
try {
|
||||
adapter = await this.getConnectedAdapter(provider);
|
||||
} catch {
|
||||
return {
|
||||
success: false,
|
||||
provider,
|
||||
@@ -872,10 +875,7 @@ export class CloudSyncManager {
|
||||
throw new Error('Vault is locked');
|
||||
}
|
||||
|
||||
const adapter = this.adapters.get(provider);
|
||||
if (!adapter?.isAuthenticated) {
|
||||
throw new Error('Provider not connected');
|
||||
}
|
||||
const adapter = await this.getConnectedAdapter(provider);
|
||||
|
||||
try {
|
||||
const remoteFile = await adapter.download();
|
||||
|
||||
@@ -2,13 +2,6 @@
|
||||
* Cloud Sync Adapters - Unified Export
|
||||
*/
|
||||
|
||||
export { GitHubAdapter, type DeviceFlowState } from './GitHubAdapter';
|
||||
export { GoogleDriveAdapter } from './GoogleDriveAdapter';
|
||||
export { OneDriveAdapter } from './OneDriveAdapter';
|
||||
|
||||
import { GitHubAdapter } from './GitHubAdapter';
|
||||
import { GoogleDriveAdapter } from './GoogleDriveAdapter';
|
||||
import { OneDriveAdapter } from './OneDriveAdapter';
|
||||
import type { CloudProvider, SyncedFile, OAuthTokens, ProviderAccount } from '../../../domain/sync';
|
||||
|
||||
/**
|
||||
@@ -30,18 +23,24 @@ export interface CloudAdapter {
|
||||
/**
|
||||
* Create adapter for a specific provider
|
||||
*/
|
||||
export const createAdapter = (
|
||||
export const createAdapter = async (
|
||||
provider: CloudProvider,
|
||||
tokens?: OAuthTokens,
|
||||
resourceId?: string
|
||||
): CloudAdapter => {
|
||||
): Promise<CloudAdapter> => {
|
||||
switch (provider) {
|
||||
case 'github':
|
||||
case 'github': {
|
||||
const { GitHubAdapter } = await import('./GitHubAdapter');
|
||||
return new GitHubAdapter(tokens, resourceId);
|
||||
case 'google':
|
||||
}
|
||||
case 'google': {
|
||||
const { GoogleDriveAdapter } = await import('./GoogleDriveAdapter');
|
||||
return new GoogleDriveAdapter(tokens, resourceId);
|
||||
case 'onedrive':
|
||||
}
|
||||
case 'onedrive': {
|
||||
const { OneDriveAdapter } = await import('./OneDriveAdapter');
|
||||
return new OneDriveAdapter(tokens, resourceId);
|
||||
}
|
||||
default:
|
||||
throw new Error(`Unknown provider: ${provider}`);
|
||||
}
|
||||
|
||||
Generated
+17
-24
@@ -25,7 +25,6 @@
|
||||
"@xterm/addon-webgl": "^0.18.0",
|
||||
"@xterm/xterm": "^5.5.0",
|
||||
"clsx": "2.1.1",
|
||||
"ghostty-web": "^0.4.0",
|
||||
"lucide-react": "0.560.0",
|
||||
"node-pty": "1.1.0-beta19",
|
||||
"react": "^19.2.1",
|
||||
@@ -107,7 +106,6 @@
|
||||
"integrity": "sha512-e7jT4DxYvIDLk1ZHmU/m/mB19rex9sv0c2ftBtjSBv+kVM/902eh0fINUzD7UwLLNR+jU585GxUJ8/EBfAM5fw==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@babel/code-frame": "^7.27.1",
|
||||
"@babel/generator": "^7.28.5",
|
||||
@@ -1175,6 +1173,7 @@
|
||||
"dev": true,
|
||||
"license": "BSD-2-Clause",
|
||||
"optional": true,
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"cross-dirname": "^0.1.0",
|
||||
"debug": "^4.3.4",
|
||||
@@ -1196,6 +1195,7 @@
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"graceful-fs": "^4.2.0",
|
||||
"jsonfile": "^6.0.1",
|
||||
@@ -1212,6 +1212,7 @@
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"universalify": "^2.0.0"
|
||||
},
|
||||
@@ -1226,6 +1227,7 @@
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"peer": true,
|
||||
"engines": {
|
||||
"node": ">= 10.0.0"
|
||||
}
|
||||
@@ -4064,7 +4066,6 @@
|
||||
"integrity": "sha512-JXij0vzIaTtCwu6SxTh8qBc66kmf1xs7pI4UOiMDFVct6q86G0Zs7KRcEoJgY3Cav3x5Tq0MF5jwgpgLqgKG3A==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@eslint-community/regexpp": "^4.10.0",
|
||||
"@typescript-eslint/scope-manager": "8.49.0",
|
||||
@@ -4094,7 +4095,6 @@
|
||||
"integrity": "sha512-N9lBGA9o9aqb1hVMc9hzySbhKibHmB+N3IpoShyV6HyQYRGIhlrO5rQgttypi+yEeKsKI4idxC8Jw6gXKD4THA==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@typescript-eslint/scope-manager": "8.49.0",
|
||||
"@typescript-eslint/types": "8.49.0",
|
||||
@@ -4373,8 +4373,7 @@
|
||||
"version": "5.5.0",
|
||||
"resolved": "https://registry.npmmirror.com/@xterm/xterm/-/xterm-5.5.0.tgz",
|
||||
"integrity": "sha512-hqJHYaQb5OptNunnyAnkHyM8aCjZ1MEIDTQu1iIbbTD/xops91NB5yq1ZK/dC2JDbVWtF23zUtl9JE2NqwT87A==",
|
||||
"license": "MIT",
|
||||
"peer": true
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/7zip-bin": {
|
||||
"version": "5.2.0",
|
||||
@@ -4389,7 +4388,6 @@
|
||||
"integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"bin": {
|
||||
"acorn": "bin/acorn"
|
||||
},
|
||||
@@ -4449,7 +4447,6 @@
|
||||
"integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"fast-deep-equal": "^3.1.1",
|
||||
"fast-json-stable-stringify": "^2.0.0",
|
||||
@@ -4837,7 +4834,6 @@
|
||||
}
|
||||
],
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"baseline-browser-mapping": "^2.9.0",
|
||||
"caniuse-lite": "^1.0.30001759",
|
||||
@@ -5491,7 +5487,8 @@
|
||||
"integrity": "sha512-+R08/oI0nl3vfPcqftZRpytksBXDzOUveBq/NBVx0sUp1axwzPQrKinNx5yd5sxPu8j1wIy8AfnVQ+5eFdha6Q==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"optional": true
|
||||
"optional": true,
|
||||
"peer": true
|
||||
},
|
||||
"node_modules/cross-env": {
|
||||
"version": "10.1.0",
|
||||
@@ -5723,7 +5720,6 @@
|
||||
"integrity": "sha512-59CAAjAhTaIMCN8y9kD573vDkxbs1uhDcrFLHSgutYdPcGOU35Rf95725snvzEOy4BFB7+eLJ8djCNPmGwG67w==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"app-builder-lib": "26.0.12",
|
||||
"builder-util": "26.0.11",
|
||||
@@ -6041,6 +6037,7 @@
|
||||
"dev": true,
|
||||
"hasInstallScript": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@electron/asar": "^3.2.1",
|
||||
"debug": "^4.1.1",
|
||||
@@ -6061,6 +6058,7 @@
|
||||
"integrity": "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"graceful-fs": "^4.1.2",
|
||||
"jsonfile": "^4.0.0",
|
||||
@@ -6273,7 +6271,6 @@
|
||||
"integrity": "sha512-BhHmn2yNOFA9H9JmmIVKJmd288g9hrVRDkdoIgRCRuSySRUHH7r/DI6aAXW9T1WwUuY3DFgrcaqB+deURBLR5g==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@eslint-community/eslint-utils": "^4.8.0",
|
||||
"@eslint-community/regexpp": "^4.12.1",
|
||||
@@ -6935,12 +6932,6 @@
|
||||
"url": "https://github.com/sponsors/sindresorhus"
|
||||
}
|
||||
},
|
||||
"node_modules/ghostty-web": {
|
||||
"version": "0.4.0",
|
||||
"resolved": "https://registry.npmmirror.com/ghostty-web/-/ghostty-web-0.4.0.tgz",
|
||||
"integrity": "sha512-0puDBik2qapbD/QQBW9o5ZHfXnZBqZWx/ctBiVtKZ6ZLds4NYb+wZuw1cRLXZk9zYovIQ908z3rvFhexAvc5Hg==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/glob": {
|
||||
"version": "10.5.0",
|
||||
"resolved": "https://registry.npmmirror.com/glob/-/glob-10.5.0.tgz",
|
||||
@@ -8686,7 +8677,6 @@
|
||||
"integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
},
|
||||
@@ -8745,6 +8735,7 @@
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"commander": "^9.4.0"
|
||||
},
|
||||
@@ -8762,6 +8753,7 @@
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"peer": true,
|
||||
"engines": {
|
||||
"node": "^12.20.0 || >=14"
|
||||
}
|
||||
@@ -8853,7 +8845,6 @@
|
||||
"resolved": "https://registry.npmmirror.com/react/-/react-19.2.3.tgz",
|
||||
"integrity": "sha512-Ku/hhYbVjOQnXDZFv2+RibmLFGwFdeeKHFcOTlrt7xplBnya5OGn/hIRDsqDiSUcfORsDC7MPxwork8jBwsIWA==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
}
|
||||
@@ -8863,7 +8854,6 @@
|
||||
"resolved": "https://registry.npmmirror.com/react-dom/-/react-dom-19.2.3.tgz",
|
||||
"integrity": "sha512-yELu4WmLPw5Mr/lmeEpox5rw3RETacE++JgHqQzd2dg+YbJuat3jH4ingc+WPZhxaoFzdv9y33G+F7Nl5O0GBg==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"scheduler": "^0.27.0"
|
||||
},
|
||||
@@ -9695,6 +9685,7 @@
|
||||
"integrity": "sha512-yYrrsWnrXMcdsnu/7YMYAofM1ktpL5By7vZhf15CrXijWWrEYZks5AXBudalfSWJLlnen/QUJUB5aoB0kqZUGA==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"mkdirp": "^0.5.1",
|
||||
"rimraf": "~2.6.2"
|
||||
@@ -9758,6 +9749,7 @@
|
||||
"integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"balanced-match": "^1.0.0",
|
||||
"concat-map": "0.0.1"
|
||||
@@ -9770,6 +9762,7 @@
|
||||
"deprecated": "Glob versions prior to v9 are no longer supported",
|
||||
"dev": true,
|
||||
"license": "ISC",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"fs.realpath": "^1.0.0",
|
||||
"inflight": "^1.0.4",
|
||||
@@ -9791,6 +9784,7 @@
|
||||
"integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
|
||||
"dev": true,
|
||||
"license": "ISC",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"brace-expansion": "^1.1.7"
|
||||
},
|
||||
@@ -9804,6 +9798,7 @@
|
||||
"integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"minimist": "^1.2.6"
|
||||
},
|
||||
@@ -9818,6 +9813,7 @@
|
||||
"deprecated": "Rimraf versions prior to v4 are no longer supported",
|
||||
"dev": true,
|
||||
"license": "ISC",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"glob": "^7.1.3"
|
||||
},
|
||||
@@ -9966,7 +9962,6 @@
|
||||
"integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",
|
||||
"dev": true,
|
||||
"license": "Apache-2.0",
|
||||
"peer": true,
|
||||
"bin": {
|
||||
"tsc": "bin/tsc",
|
||||
"tsserver": "bin/tsserver"
|
||||
@@ -10124,7 +10119,6 @@
|
||||
"integrity": "sha512-ITcnkFeR3+fI8P1wMgItjGrR10170d8auB4EpMLPqmx6uxElH3a/hHGQabSHKdqd4FXWO1nFIp9rRn7JQ34ACQ==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"esbuild": "^0.25.0",
|
||||
"fdir": "^6.5.0",
|
||||
@@ -10505,7 +10499,6 @@
|
||||
"integrity": "sha512-AvvthqfqrAhNH9dnfmrfKzX5upOdjUVJYFqNSlkmGf64gRaTzlPwz99IHYnVs28qYAybvAlBV+H7pn0saFY4Ig==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/colinhacks"
|
||||
}
|
||||
|
||||
@@ -37,7 +37,6 @@
|
||||
"@xterm/addon-webgl": "^0.18.0",
|
||||
"@xterm/xterm": "^5.5.0",
|
||||
"clsx": "2.1.1",
|
||||
"ghostty-web": "^0.4.0",
|
||||
"lucide-react": "0.560.0",
|
||||
"node-pty": "1.1.0-beta19",
|
||||
"react": "^19.2.1",
|
||||
|
||||
@@ -20,17 +20,8 @@ export default defineConfig(() => {
|
||||
build: {
|
||||
chunkSizeWarningLimit: 3000,
|
||||
target: 'esnext', // Required for top-level await in WASM modules
|
||||
rollupOptions: {
|
||||
output: {
|
||||
// Disable code splitting for Electron compatibility with file:// protocol
|
||||
manualChunks: undefined,
|
||||
},
|
||||
},
|
||||
},
|
||||
plugins: [tailwindcss(), react()],
|
||||
optimizeDeps: {
|
||||
exclude: ['ghostty-web'], // Don't pre-bundle ghostty-web to preserve WASM imports
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': path.resolve(__dirname, '.'),
|
||||
|
||||
Reference in new issue
Block a user