diff --git a/.gitignore b/.gitignore
index ad625af1..c29a83db 100644
--- a/.gitignore
+++ b/.gitignore
@@ -15,6 +15,9 @@ dist-ssr
*.apk
*.aab
+# Electron build output
+electron-dist
+
# Editor directories and files
.idea
.DS_Store
diff --git a/AGENTS.md b/AGENTS.md
index a87c1361..9dfe87df 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -33,7 +33,7 @@ This architecture allows Shakespeare to provide a full development environment e
Shakespeare provides AI agents with specialized tools for project development (note: these are different from the tools available during Shakespeare's own development). These tools are defined in `src/lib/tools/`:
-- **ShellTool**: Execute shell commands in the virtual filesystem environment
+- **ShellTool**: Execute shell commands (virtual in browser, real OS shell in Electron)
- **TextEditorViewTool**: Read file contents and view directory structures
- **TextEditorWriteTool**: Create or overwrite files with new content
- **TextEditorStrReplaceTool**: Replace strings in files
@@ -55,6 +55,7 @@ Shakespeare provides AI agents with specialized tools for project development (n
#### Shell Commands
+**In Browser Mode:**
Shakespeare provides a comprehensive set of shell commands that are JavaScript reimplementations of common Unix commands. These commands operate on the virtual filesystem (VFS) and are accessible through the ShellTool. The shell commands are implemented in `src/lib/commands/` and provide familiar Unix-like functionality for file and directory operations.
**Available Commands:**
@@ -63,6 +64,16 @@ Shakespeare provides a comprehensive set of shell commands that are JavaScript r
- **System Commands**: `echo`, `which`, `wc`, `head`, `tail`
- **Git Commands**: `git add`, `git commit`, `git push`, `git pull`, `git status`, `git log`, etc.
+**In Electron Mode:**
+When running in Electron, the ShellTool automatically uses the **real OS terminal** instead of the virtual terminal. This means:
+- **All OS commands available**: Not limited to built-in commands
+- **Native shell features**: Pipes, redirection, environment variables work natively
+- **Package managers**: `npm`, `yarn`, `pnpm` work directly
+- **Build tools**: `vite`, `webpack`, `tsc`, etc. available
+- **System utilities**: Full access to OS commands
+
+The ShellTool detects the environment automatically and uses the appropriate execution method.
+
#### Security
AI filesystem access through tools (including shell commands via ShellTool) has path restrictions to ensure safe operation:
diff --git a/README.md b/README.md
index 5eaa2d15..6aa984a6 100644
--- a/README.md
+++ b/README.md
@@ -12,6 +12,7 @@ https://shakespeare.diy
- **Buy credits anonymously** with Nostr and Lightning ⚡
- **Redeem gift cards** with shareable links for instant credits
- **Runs entirely in the browser** No backend required
+- **Desktop app available** Run as a native Electron application on macOS, Windows, and Linux
## How it Works
@@ -29,6 +30,32 @@ Shakespeare can work on any type of project. But it is specialized to build Reac
Shakespeare is proudly Open Source software licensed under the GNU AGPLv3. The purpose of Shakespeare is to provide a free and open platform for building AI applications that respects user privacy and freedom.
+## Desktop App
+
+Shakespeare can be built and run as a native desktop application using Electron. This provides:
+
+- **Local filesystem access** - Projects stored at `~/shakespeare` on your OS
+- **Real OS terminal** - Execute any system command, not just built-in commands
+- **Direct file access** - Use any code editor, Git client, or file manager
+- **No storage limits** - Only limited by your disk space
+- **Native window management** and OS integration
+- **Offline-first experience**
+- **Better performance** for intensive operations
+- **Platform-specific installers** (DMG, NSIS, AppImage, etc.)
+
+### Quick Start
+
+**Development Mode:**
+```bash
+npm run electron:dev
+```
+
+**Build for Your Platform:**
+```bash
+npm run electron:build
+```
+
+For detailed instructions, see [electron/QUICKSTART.md](electron/QUICKSTART.md).
## Mirrors
Shakespeare is available on the following URLs:
diff --git a/electron/AGENTS.md b/electron/AGENTS.md
new file mode 100644
index 00000000..f1b35efc
--- /dev/null
+++ b/electron/AGENTS.md
@@ -0,0 +1,582 @@
+# Shakespeare Electron - Complete Guide
+
+This guide provides comprehensive documentation for developing, building, and troubleshooting the Shakespeare Electron desktop application.
+
+## Table of Contents
+
+1. [Filesystem Architecture](#filesystem-architecture)
+2. [Terminal Integration](#terminal-integration)
+3. [Development Workflow](#development-workflow)
+4. [Building for Distribution](#building-for-distribution)
+5. [Troubleshooting](#troubleshooting)
+
+---
+
+## Filesystem Architecture
+
+### Overview
+
+The Electron version uses your local OS filesystem at `~/shakespeare` instead of IndexedDB, providing direct file access and unlimited storage.
+
+### Path Resolution
+
+All paths are relative to `~/shakespeare`:
+- `/projects/my-app/` → `~/shakespeare/projects/my-app/`
+- `/tmp/upload.txt` → `~/shakespeare/tmp/upload.txt`
+- `/config/ai.json` → `~/shakespeare/config/ai.json`
+
+### Implementation
+
+**Automatic Adapter Selection** (`src/App.tsx`):
+```typescript
+const fs = window.electron?.isElectron
+ ? new NodeFSAdapter() // Real filesystem
+ : new LightningFSAdapter(new LightningFS('shakespeare-fs').promises);
+```
+
+**IPC Communication Flow:**
+1. **Renderer** (`NodeFSAdapter.ts`) - Calls `window.electron.fs.*` methods
+2. **Preload** (`preload.js`) - Exposes API via `contextBridge`
+3. **Main** (`main.js`) - Handles IPC with `ipcMain.handle()`, performs filesystem operations
+
+### Supported Operations
+
+All standard filesystem operations are supported:
+- **Files**: `readFile`, `writeFile`, `unlink`, `rename`
+- **Directories**: `readdir`, `mkdir`, `rmdir`
+- **Metadata**: `stat`, `lstat`
+- **Symlinks**: `readlink`, `symlink`
+
+### Benefits
+
+✅ **No storage limits** - Only limited by disk space
+✅ **Direct access** - Use any editor, file manager, or Git client
+✅ **Easy backup** - Standard backup tools work
+✅ **Better performance** - Faster for large projects
+✅ **Data portability** - Copy projects between machines
+
+### Data Migration
+
+**Browser to Electron:**
+1. Export project as ZIP from browser
+2. Import ZIP in Electron version
+
+**Electron to Browser:**
+1. Export project as ZIP from Electron
+2. Import ZIP in browser version
+
+---
+
+## Terminal Integration
+
+### Overview
+
+The Electron version uses the **real OS terminal** instead of the virtual terminal, providing access to all system commands.
+
+### Architecture
+
+**ShellTool Detection** (`src/lib/tools/ShellTool.ts`):
+```typescript
+if (window.electron?.shell) {
+ // Use real OS shell
+ const result = await window.electron.shell.exec(command, workingDir);
+} else {
+ // Use virtual command system
+ const result = await executeCommand(command, workingDir, fs);
+}
+```
+
+**Shell Execution** (`electron/main.js`):
+- Uses `child_process.spawn()` to execute commands
+- Windows: Uses `cmd.exe`
+- macOS/Linux: Uses `/bin/sh`
+- Executes in project directory: `~/shakespeare/projects/{projectId}`
+
+### Features
+
+**All OS Commands Available:**
+```bash
+# Package managers
+$ npm install
+$ yarn add lodash
+$ pnpm update
+
+# Build tools
+$ vite build
+$ webpack --config webpack.config.js
+$ tsc --noEmit
+
+# Git operations
+$ git commit -m "Update"
+$ git push origin main
+
+# System utilities
+$ grep -r "TODO" src/
+$ curl https://api.example.com
+$ python script.py
+```
+
+**Native Shell Features:**
+- Pipes: `ls | grep ".ts$"`
+- Redirection: `echo "test" > file.txt`
+- Environment variables: `$PATH`, `$HOME`
+- Command chaining: `npm install && npm run build`
+
+### ANSI Code Stripping
+
+Output from shell commands is cleaned for AI consumption:
+- Color codes removed (e.g., `\u001b[31m`)
+- Cursor control sequences stripped
+- Text formatting removed (bold, italic)
+- Newlines preserved
+
+**Example:**
+```
+Input: \u001b[1m\u001b[32madded 142 packages\u001b[39m\u001b[22m in 3s
+Output: added 142 packages in 3s
+```
+
+Terminal UI still shows colored output for users.
+
+### Platform Support
+
+| Platform | Shell | Notes |
+|----------|-------|-------|
+| macOS | `/bin/sh` | All Unix commands available |
+| Linux | `/bin/sh` | Standard Linux utilities |
+| Windows | `cmd.exe` | Windows commands, consider Git Bash for Unix tools |
+
+### Security
+
+- Commands run with user permissions (no sudo/elevation)
+- Working directory sandboxed to `~/shakespeare`
+- Environment variables inherited from Electron process
+
+---
+
+## Development Workflow
+
+### Running in Development Mode
+
+```bash
+npm run electron:dev
+```
+
+This will:
+1. Start Vite dev server on http://localhost:5173
+2. Wait for server to be ready
+3. Launch Electron with hot reload
+4. Open DevTools automatically
+
+### Testing Shell Execution
+
+Use the provided test script to verify shell functionality:
+
+```bash
+# Start Electron in dev mode
+npm run electron:dev
+
+# Open DevTools (View > Toggle Developer Tools)
+# Paste contents of electron/test-terminal.js into console
+```
+
+The test script verifies:
+- Basic command execution
+- File listing
+- Node.js version check
+- Error handling
+- Working directory
+
+### Debugging
+
+**Renderer Process:**
+- DevTools open automatically in dev mode
+- Or press `Cmd+Option+I` (macOS) / `Ctrl+Shift+I` (Windows/Linux)
+
+**Main Process:**
+```bash
+# Enable verbose logging
+ELECTRON_ENABLE_LOGGING=1 npm run electron:dev
+```
+
+**Check Configuration:**
+```bash
+node electron/test-config.js
+```
+
+### File Watching
+
+In development mode:
+- Vite provides hot module replacement
+- Changes to React components reload instantly
+- Electron process restarts on main.js changes (via `nodemon` in the script)
+
+---
+
+## Building for Distribution
+
+### Prerequisites
+
+- Node.js 18+ installed
+- All dependencies installed: `npm install`
+- Web build completed: `npm run build`
+
+### Build Commands
+
+**Current Platform:**
+```bash
+npm run electron:build
+```
+
+**Specific Platforms:**
+```bash
+npm run electron:build:mac # macOS (DMG + ZIP)
+npm run electron:build:win # Windows (NSIS + Portable)
+npm run electron:build:linux # Linux (AppImage, DEB, RPM)
+npm run electron:build:all # All platforms
+```
+
+### Build Output
+
+```
+electron-dist/
+├── mac/
+│ ├── Shakespeare.app # macOS application bundle
+│ ├── Shakespeare.dmg # DMG installer
+│ └── Shakespeare-mac.zip # ZIP archive
+├── win-unpacked/
+│ └── Shakespeare.exe # Windows executable
+├── Shakespeare Setup.exe # NSIS installer
+├── Shakespeare Portable.exe # Portable executable
+├── shakespeare-*.AppImage # Linux AppImage
+├── shakespeare_*.deb # Debian package
+└── shakespeare-*.rpm # RPM package
+```
+
+### Platform-Specific Notes
+
+**macOS:**
+- Builds for Intel (x64) and Apple Silicon (arm64)
+- Code signing optional for development
+- For distribution: Requires Apple Developer account
+
+**Windows:**
+- Builds for x64 and ARM64
+- No code signing required for development
+- For distribution: EV certificate recommended for SmartScreen
+
+**Linux:**
+- Builds for x64 and ARM64
+- AppImage requires FUSE: `sudo apt-get install fuse`
+- DEB/RPM packages can be installed with package managers
+
+### Cross-Platform Limitations
+
+- **macOS builds require macOS** (for code signing)
+- Windows/Linux can be built from any platform
+- Use GitHub Actions or CI/CD for multi-platform builds
+
+### Code Signing
+
+**Development (Disable Signing):**
+
+Edit `electron/builder.config.js`:
+```javascript
+mac: {
+ identity: null, // Disable code signing
+}
+```
+
+**Production (macOS):**
+1. Obtain Apple Developer account
+2. Create certificates in Xcode
+3. Configure signing in builder.config.js
+4. See: https://www.electron.build/code-signing
+
+**Production (Windows):**
+1. Obtain EV code signing certificate
+2. Configure in builder.config.js
+3. Builds reputation with SmartScreen over time
+
+---
+
+## Troubleshooting
+
+### Development Issues
+
+#### Port 5173 Already in Use
+
+**Solution:**
+```bash
+# Find and kill the process
+lsof -i :5173 # macOS/Linux
+netstat -ano | findstr :5173 # Windows
+
+# Or change the port in vite.config.ts
+export default defineConfig({
+ server: { port: 5174 },
+});
+```
+
+#### Blank Screen on Launch
+
+**Browser Mode:**
+1. Check Vite server is running: http://localhost:5173
+2. Check Electron console for errors
+3. Verify URL in `electron/main.js` matches Vite server
+4. Clear cache: Delete `node_modules/.vite`
+
+**Production Build:**
+1. Ensure `base: './'` is set in `vite.config.ts`
+2. Check `dist/` directory contains all files
+3. Look for "Failed to load resource" errors in console
+4. Verify file:// protocol is used in loadURL
+
+#### Assets Fail to Load: "net::ERR_FILE_NOT_FOUND"
+
+**Problem:** CSS/JS fail to load with `file:///assets/npm/...` errors
+
+**Solution:** Add to `vite.config.ts`:
+```typescript
+export default defineConfig(() => ({
+ base: './', // Required for Electron
+ // ... rest of config
+}))
+```
+
+Then rebuild: `npm run build`
+
+#### 404 Error: Page Not Found
+
+**Problem:** App shows "404: Oops! Page not found" on launch
+
+**Solution:** Verify `HashRouter` is used in Electron.
+
+Check `src/AppRouter.tsx`:
+```typescript
+const Router = window.electron?.isElectron ? HashRouter : BrowserRouter;
+```
+
+Rebuild: `npm run build && npm run electron:build`
+
+#### Service Worker Errors
+
+**Solution:** Service workers don't work with `file://` protocol.
+
+Check `src/main.tsx`:
+```typescript
+if ('serviceWorker' in navigator && !window.electron?.isElectron) {
+ // Only register in web environment
+}
+```
+
+#### CSP Font Errors
+
+**Solution:** Update CSP in `index.html`:
+```html
+
+```
+
+#### Broken SVG Images
+
+**Problem:** Logo/SVG files show as broken
+
+**Solution:** Import SVG files properly:
+```typescript
+// ❌ Wrong
+
+
+// ✅ Correct
+import logo from '/shakespeare.svg?url';
+
+```
+
+#### Preload Script ESM Errors
+
+**Solution:** Requires `sandbox: false` in webPreferences.
+
+Check `electron/main.js`:
+```javascript
+webPreferences: {
+ preload: path.join(__dirname, 'preload.js'),
+ nodeIntegration: false,
+ contextIsolation: true, // Still enabled
+ sandbox: false, // Disabled for ESM
+ webSecurity: true,
+}
+```
+
+### Build Issues
+
+#### Build Fails with "Cannot find module"
+
+**Solutions:**
+1. Install dependencies: `npm install`
+2. Clear and reinstall: `rm -rf node_modules package-lock.json && npm install`
+3. Build web first: `npm run build`
+4. Verify `dist/` exists
+5. Check config: `node electron/test-config.js`
+
+#### Icons Not Appearing
+
+**Solution:** Should work automatically with `public/shakespeare-512x512.png`.
+
+If not:
+1. Verify PNG exists
+2. Check build output for icon errors
+3. Try: `npm run electron:icons` (requires ImageMagick)
+4. Check paths in `electron/builder.config.js`
+
+#### Code Signing Errors (macOS)
+
+**Development:** Disable signing:
+```javascript
+mac: {
+ identity: null,
+}
+```
+
+**Production:** Requires Apple Developer account and certificates.
+
+#### App Won't Launch After Build
+
+**Solutions:**
+1. Check console/terminal for errors
+2. Try unpacked version first
+3. macOS: Check Security & Privacy settings
+4. Windows: Check Windows Defender logs
+5. Verify `dist/` contains valid files
+
+### Runtime Issues
+
+#### App Crashes on Startup
+
+**Solutions:**
+1. Check crash logs:
+ - macOS: `~/Library/Logs/Shakespeare/`
+ - Windows: `%APPDATA%\Shakespeare\logs\`
+ - Linux: `~/.config/Shakespeare/logs/`
+2. Run from terminal to see errors
+3. Test web build in browser first
+
+#### Shell Execution Error: "spawn /bin/sh ENOENT"
+
+**Problem:** Terminal commands fail with spawn error
+
+**Root Cause:** Working directory doesn't exist
+
+**Solution:** Should be fixed - main.js creates directories automatically.
+
+**Debug:**
+1. Open DevTools
+2. Check console for "Shell exec in directory: ..."
+3. Verify directory exists: `ls -la ~/shakespeare/projects/`
+4. Manually create if needed: `mkdir -p ~/shakespeare/projects`
+
+#### External Links Not Opening
+
+**Solution:** Should open in default browser automatically.
+
+Check `electron/main.js` has:
+```javascript
+mainWindow.webContents.setWindowOpenHandler(({ url }) => {
+ shell.openExternal(url);
+ return { action: 'deny' };
+});
+```
+
+### Platform-Specific Issues
+
+#### macOS: "App is damaged and can't be opened"
+
+**Solutions:**
+1. Development: `xattr -cr /path/to/Shakespeare.app`
+2. Distribution: Requires code signing
+3. Users: Right-click → Open (instead of double-click)
+
+#### Windows: "Windows protected your PC"
+
+**Solutions:**
+1. Testing: Click "More info" → "Run anyway"
+2. Distribution: Requires EV code signing
+3. Build reputation over time
+
+#### Linux: "Permission denied"
+
+**Solutions:**
+1. Make executable: `chmod +x Shakespeare*.AppImage`
+2. Install FUSE: `sudo apt-get install fuse`
+3. Try DEB/RPM package instead
+
+### Performance Issues
+
+#### App Feels Slow
+
+**Solutions:**
+1. Close DevTools
+2. Check system resources
+3. Use production build
+4. Disable hardware acceleration in `main.js`:
+ ```javascript
+ app.disableHardwareAcceleration();
+ ```
+
+#### High Memory Usage
+
+**Solutions:**
+1. Normal for Chromium-based apps
+2. Close unused projects
+3. Restart app periodically
+4. Check for memory leaks in web code
+
+---
+
+## Getting Help
+
+If issues persist:
+
+1. **Check existing issues:** https://gitlab.com/soapbox-pub/shakespeare/-/issues
+2. **Create new issue** with:
+ - OS and version
+ - Electron version: `npm list electron`
+ - Steps to reproduce
+ - Error messages/logs
+ - Screenshots
+3. **Community support:** Check project README for links
+
+## Useful Commands
+
+**Complete rebuild:**
+```bash
+rm -rf node_modules dist electron-dist package-lock.json
+npm install
+npm run build
+npm run electron:build
+```
+
+**Check versions:**
+```bash
+npm list electron
+node --version
+npm --version
+```
+
+**Verbose logging:**
+```bash
+ELECTRON_ENABLE_LOGGING=1 npm run electron:dev
+```
+
+**Check build contents:**
+```bash
+npm run electron:build -- --dir
+ls -la electron-dist/[platform]-unpacked/
+```
+
+## Additional Resources
+
+- [Electron Documentation](https://www.electronjs.org/docs)
+- [electron-builder Documentation](https://www.electron.build/)
+- [Electron Security](https://www.electronjs.org/docs/latest/tutorial/security)
+- [Debugging Electron](https://www.electronjs.org/docs/latest/tutorial/debugging-main-process)
+- [Shakespeare Main Docs](../README.md)
diff --git a/electron/README.md b/electron/README.md
new file mode 100644
index 00000000..f51451b0
--- /dev/null
+++ b/electron/README.md
@@ -0,0 +1,195 @@
+# Shakespeare Electron Desktop App
+
+Shakespeare can run as a native desktop application on macOS, Windows, and Linux using Electron. The desktop version provides enhanced features over the browser version, including real OS filesystem access and native terminal execution.
+
+## Quick Start
+
+### Development Mode
+```bash
+npm run electron:dev
+```
+
+### Build for Distribution
+```bash
+# Build for your current platform
+npm run electron:build
+
+# Build for specific platforms
+npm run electron:build:mac # macOS (DMG + ZIP)
+npm run electron:build:win # Windows (NSIS + Portable)
+npm run electron:build:linux # Linux (AppImage, DEB, RPM)
+npm run electron:build:all # All platforms
+```
+
+Built applications will be in the `electron-dist/` directory.
+
+## Key Features
+
+### 1. Real OS Filesystem
+
+Projects are stored at `~/shakespeare` on your local filesystem instead of browser IndexedDB:
+
+- **No storage limits** - Only limited by disk space
+- **Direct file access** - Use any code editor, file manager, or Git client
+- **Easy backup** - Standard filesystem backup tools work
+- **Better performance** - Faster for large projects
+
+**Directory Structure:**
+```
+~/shakespeare/
+├── projects/ # Your Shakespeare projects
+├── config/ # AI and Git settings
+└── tmp/ # Temporary files
+```
+
+**Opening the directory:**
+- macOS: `open ~/shakespeare`
+- Linux: `xdg-open ~/shakespeare`
+- Windows: `explorer %USERPROFILE%\shakespeare`
+
+### 2. Real OS Terminal
+
+All OS commands are available, not just built-in commands:
+
+- **Package managers**: `npm`, `yarn`, `pnpm` work directly
+- **Build tools**: `vite`, `webpack`, `tsc`, etc.
+- **Git CLI**: Full Git command-line interface
+- **Native shell features**: Pipes, redirection, environment variables
+- **System utilities**: All your favorite command-line tools
+
+Commands execute in the project directory at `~/shakespeare/projects/{projectId}` with your user's permissions.
+
+### 3. Clean UI
+
+- **No menu bar** - Frameless interface focused on Shakespeare
+- **Native window controls** - Standard minimize/maximize/close buttons
+- **Auto-updates ready** - Can be configured for automatic updates
+
+## Project Structure
+
+```
+electron/
+├── main.js # Main process (window management, IPC)
+├── preload.js # Secure IPC bridge
+├── builder.config.js # Build configuration
+├── resources/ # Icons and build assets
+├── test-config.js # Configuration validator
+├── test-terminal.js # Terminal testing script
+├── generate-icons.sh # Icon generation script
+├── README.md # This file
+└── GUIDE.md # Detailed guide and troubleshooting
+```
+
+## Icons
+
+No icon setup required! The build automatically uses `public/shakespeare-512x512.png` and converts it for each platform:
+
+- **macOS**: Converts to `.icns`
+- **Windows**: Converts to `.ico`
+- **Linux**: Uses PNG directly
+
+For custom icons, run `npm run electron:icons` (requires ImageMagick) or place platform-specific icons in `electron/resources/`.
+
+## Platform-Specific Builds
+
+### macOS
+- Creates DMG installer and ZIP archive
+- Builds for both Intel (x64) and Apple Silicon (arm64)
+- Requires macOS for code signing (optional for development)
+
+### Windows
+- Creates NSIS installer and portable executable
+- Builds for both x64 and ARM64
+- No code signing required for development
+
+### Linux
+- Creates AppImage, DEB, and RPM packages
+- Builds for both x64 and ARM64
+- Works from any platform
+
+## Security
+
+The Electron build follows security best practices:
+
+- **Context Isolation**: Enabled to prevent renderer access to Node.js
+- **Web Security**: Enforces same-origin policy
+- **Navigation Protection**: Blocks navigation to external sites
+- **Minimal IPC API**: Only essential functionality exposed
+- **Sandboxed Execution**: Commands run with user permissions
+
+## API Exposed to Renderer
+
+The preload script exposes a minimal API via `window.electron`:
+
+```typescript
+window.electron.isElectron // Boolean: true in Electron
+window.electron.platform() // Returns: 'darwin' | 'win32' | 'linux'
+window.electron.version() // Returns app version
+window.electron.fs.* // Filesystem operations
+window.electron.shell.exec() // Execute shell commands
+```
+
+## Customization
+
+### Window Configuration
+Edit `electron/main.js` to customize:
+- Window size and position
+- Minimum/maximum dimensions
+- Background color
+- Title bar style
+
+### Build Settings
+Edit `electron/builder.config.js` to configure:
+- App metadata (ID, name, category)
+- Platform-specific options
+- Installer settings
+- Auto-update configuration
+
+### Additional Features
+Add to `electron/main.js` and `electron/preload.js`:
+- Native menus
+- System tray icon
+- File associations
+- Custom URL schemes
+- Native dialogs
+
+## Development vs Production
+
+**Development Mode** (`npm run electron:dev`):
+- Loads from Vite dev server (http://localhost:5173)
+- Hot reload enabled
+- DevTools open automatically
+- Faster iteration
+
+**Production Build** (`npm run electron:build`):
+- Loads from built files (file:// protocol)
+- Optimized and minified
+- No DevTools by default
+- Ready for distribution
+
+## Common Issues
+
+See [GUIDE.md](./GUIDE.md) for detailed troubleshooting, including:
+- Port conflicts
+- Blank screen issues
+- Asset loading errors
+- Build failures
+- Platform-specific problems
+
+## Next Steps
+
+1. **Try it out**: Run `npm run electron:dev` to test locally
+2. **Build it**: Create a distributable with `npm run electron:build`
+3. **Customize**: Modify window settings, add native features
+4. **Distribute**: Set up code signing and auto-updates for production
+
+## Resources
+
+- [Electron Documentation](https://www.electronjs.org/docs)
+- [electron-builder Documentation](https://www.electron.build/)
+- [Shakespeare Main Documentation](../README.md)
+- [Detailed Guide](./GUIDE.md)
+
+---
+
+**Note:** For comprehensive documentation including filesystem details, terminal usage, and troubleshooting, see [GUIDE.md](./GUIDE.md).
diff --git a/electron/builder.config.js b/electron/builder.config.js
new file mode 100644
index 00000000..6f8eff88
--- /dev/null
+++ b/electron/builder.config.js
@@ -0,0 +1,106 @@
+export default {
+ appId: 'pub.soapbox.shakespeare',
+ productName: 'Shakespeare',
+
+ directories: {
+ output: 'electron-dist',
+ buildResources: 'electron/resources',
+ },
+
+ files: [
+ 'dist/**/*',
+ 'electron/main.js',
+ 'electron/preload.js',
+ 'public/shakespeare-512x512.png',
+ 'public/shakespeare.svg',
+ ],
+
+ extraMetadata: {
+ main: 'electron/main.js',
+ },
+
+ // macOS configuration
+ mac: {
+ category: 'public.app-category.developer-tools',
+ icon: 'public/shakespeare-512x512.png', // Will be converted automatically
+ target: [
+ {
+ target: 'dmg',
+ arch: ['x64', 'arm64'],
+ },
+ {
+ target: 'zip',
+ arch: ['x64', 'arm64'],
+ },
+ ],
+ darkModeSupport: true,
+ },
+
+ dmg: {
+ contents: [
+ {
+ x: 130,
+ y: 220,
+ },
+ {
+ x: 410,
+ y: 220,
+ type: 'link',
+ path: '/Applications',
+ },
+ ],
+ window: {
+ width: 540,
+ height: 380,
+ },
+ },
+
+ // Windows configuration
+ win: {
+ icon: 'public/shakespeare-512x512.png', // Will be converted automatically
+ target: [
+ {
+ target: 'nsis',
+ arch: ['x64', 'arm64'],
+ },
+ {
+ target: 'portable',
+ arch: ['x64', 'arm64'],
+ },
+ ],
+ },
+
+ nsis: {
+ oneClick: false,
+ allowToChangeInstallationDirectory: true,
+ createDesktopShortcut: true,
+ createStartMenuShortcut: true,
+ },
+
+ // Linux configuration
+ linux: {
+ icon: 'public/shakespeare-512x512.png',
+ category: 'Development',
+ target: [
+ {
+ target: 'AppImage',
+ arch: ['x64', 'arm64'],
+ },
+ {
+ target: 'deb',
+ arch: ['x64', 'arm64'],
+ },
+ {
+ target: 'rpm',
+ arch: ['x64', 'arm64'],
+ },
+ ],
+ },
+
+ appImage: {
+ license: 'LICENSE',
+ },
+
+ // Publish configuration (optional - for auto-updates)
+ publish: null,
+};
diff --git a/electron/electron.d.ts b/electron/electron.d.ts
new file mode 100644
index 00000000..ef41da91
--- /dev/null
+++ b/electron/electron.d.ts
@@ -0,0 +1,94 @@
+/**
+ * TypeScript definitions for the Electron API exposed to the renderer process.
+ *
+ * Add this to your tsconfig.json include array to use these types:
+ * "include": ["src", "electron/electron.d.ts"]
+ */
+
+interface DirectoryEntry {
+ name: string;
+ isDirectory: boolean;
+ isFile: boolean;
+}
+
+interface StatResult {
+ isDirectory: boolean;
+ isFile: boolean;
+ isBlockDevice: boolean;
+ isCharacterDevice: boolean;
+ isSymbolicLink: boolean;
+ isFIFO: boolean;
+ isSocket: boolean;
+ size: number;
+ mtimeMs: number;
+ ctimeMs: number;
+ atimeMs: number;
+ // Timestamps (serialized as numbers for IPC)
+ mtime: number;
+ ctime: number;
+ atime: number;
+}
+
+interface ElectronFSAPI {
+ readFile(path: string, encoding?: string): Promise;
+ writeFile(path: string, data: string | number[], encoding?: string): Promise;
+ readdir(path: string, withFileTypes?: boolean): Promise;
+ mkdir(path: string, recursive?: boolean): Promise;
+ stat(path: string): Promise;
+ lstat(path: string): Promise;
+ unlink(path: string): Promise;
+ rmdir(path: string): Promise;
+ rename(oldPath: string, newPath: string): Promise;
+ readlink(path: string): Promise;
+ symlink(target: string, path: string): Promise;
+}
+
+interface ShellExecResult {
+ stdout: string;
+ stderr: string;
+ exitCode: number;
+}
+
+interface ElectronShellAPI {
+ /**
+ * Execute a shell command on the host OS.
+ * @param command - The command to execute
+ * @param cwd - Working directory (relative to ~/shakespeare)
+ * @returns Promise with stdout, stderr, and exit code
+ */
+ exec(command: string, cwd?: string): Promise;
+}
+
+interface ElectronAPI {
+ /**
+ * Get the current platform.
+ * @returns 'darwin' | 'win32' | 'linux'
+ */
+ platform(): Promise;
+
+ /**
+ * Get the application version from package.json.
+ * @returns Version string (e.g., "1.0.0")
+ */
+ version(): Promise;
+
+ /**
+ * Filesystem API for accessing the local OS filesystem.
+ * All paths are relative to ~/shakespeare directory.
+ */
+ fs: ElectronFSAPI;
+
+ /**
+ * Shell API for executing real shell commands on the host OS.
+ * All paths in commands are relative to ~/shakespeare directory.
+ */
+ shell: ElectronShellAPI;
+}
+
+interface Window {
+ /**
+ * Electron API exposed via preload script.
+ * Only available when running in Electron.
+ */
+ electron?: ElectronAPI;
+}
diff --git a/electron/generate-icons.sh b/electron/generate-icons.sh
new file mode 100755
index 00000000..ba61a447
--- /dev/null
+++ b/electron/generate-icons.sh
@@ -0,0 +1,92 @@
+#!/bin/bash
+
+# Script to generate Electron icons from the Shakespeare logo
+# Requires ImageMagick to be installed: brew install imagemagick (macOS) or apt-get install imagemagick (Linux)
+
+set -e
+
+echo "🎭 Generating Electron icons for Shakespeare..."
+
+# Check if ImageMagick is installed
+if ! command -v convert &> /dev/null; then
+ echo "❌ ImageMagick is not installed."
+ echo ""
+ echo "Please install ImageMagick:"
+ echo " macOS: brew install imagemagick"
+ echo " Ubuntu: sudo apt-get install imagemagick"
+ echo " Windows: Download from https://imagemagick.org/script/download.php"
+ echo ""
+ echo "Alternatively, use an online tool or electron-icon-builder:"
+ echo " npm install -g electron-icon-builder"
+ echo " electron-icon-builder --input=public/shakespeare-512x512.png --output=electron/resources"
+ exit 1
+fi
+
+# Source image
+SOURCE="public/shakespeare-512x512.png"
+
+if [ ! -f "$SOURCE" ]; then
+ echo "❌ Source image not found: $SOURCE"
+ exit 1
+fi
+
+# Create resources directory if it doesn't exist
+mkdir -p electron/resources/icons
+
+echo "📦 Generating macOS icon (icon.icns)..."
+# Create iconset directory
+mkdir -p electron/resources/icon.iconset
+
+# Generate different sizes for macOS
+convert "$SOURCE" -resize 16x16 electron/resources/icon.iconset/icon_16x16.png
+convert "$SOURCE" -resize 32x32 electron/resources/icon.iconset/icon_16x16@2x.png
+convert "$SOURCE" -resize 32x32 electron/resources/icon.iconset/icon_32x32.png
+convert "$SOURCE" -resize 64x64 electron/resources/icon.iconset/icon_32x32@2x.png
+convert "$SOURCE" -resize 128x128 electron/resources/icon.iconset/icon_128x128.png
+convert "$SOURCE" -resize 256x256 electron/resources/icon.iconset/icon_128x128@2x.png
+convert "$SOURCE" -resize 256x256 electron/resources/icon.iconset/icon_256x256.png
+convert "$SOURCE" -resize 512x512 electron/resources/icon.iconset/icon_256x256@2x.png
+convert "$SOURCE" -resize 512x512 electron/resources/icon.iconset/icon_512x512.png
+convert "$SOURCE" -resize 1024x1024 electron/resources/icon.iconset/icon_512x512@2x.png
+
+# Convert to icns (macOS only)
+if command -v iconutil &> /dev/null; then
+ iconutil -c icns electron/resources/icon.iconset -o electron/resources/icon.icns
+ echo "✅ Created icon.icns"
+else
+ echo "⚠️ iconutil not found (macOS only). Skipping .icns generation."
+ echo " You can use an online converter or run this on macOS."
+fi
+
+# Clean up iconset
+rm -rf electron/resources/icon.iconset
+
+echo "📦 Generating Windows icon (icon.ico)..."
+# Generate ico file with multiple sizes
+convert "$SOURCE" -resize 256x256 \
+ \( -clone 0 -resize 16x16 \) \
+ \( -clone 0 -resize 32x32 \) \
+ \( -clone 0 -resize 48x48 \) \
+ \( -clone 0 -resize 64x64 \) \
+ \( -clone 0 -resize 128x128 \) \
+ \( -clone 0 -resize 256x256 \) \
+ -delete 0 electron/resources/icon.ico
+echo "✅ Created icon.ico"
+
+echo "📦 Generating Linux icons (PNG)..."
+# Generate PNG icons for Linux
+for size in 16 32 48 64 128 256 512 1024; do
+ convert "$SOURCE" -resize ${size}x${size} electron/resources/icons/${size}x${size}.png
+done
+echo "✅ Created Linux PNG icons"
+
+echo ""
+echo "✨ Icon generation complete!"
+echo ""
+echo "Generated files:"
+echo " - electron/resources/icon.icns (macOS)"
+echo " - electron/resources/icon.ico (Windows)"
+echo " - electron/resources/icons/*.png (Linux)"
+echo ""
+echo "You can now build Electron apps with:"
+echo " npm run electron:build"
diff --git a/electron/main.js b/electron/main.js
new file mode 100644
index 00000000..53ac62d0
--- /dev/null
+++ b/electron/main.js
@@ -0,0 +1,522 @@
+import { app, BrowserWindow, ipcMain, shell, Menu, protocol } from 'electron';
+import { spawn } from 'child_process';
+import path from 'path';
+import { fileURLToPath } from 'url';
+import fs from 'fs/promises';
+import os from 'os';
+
+// ESM equivalent of __dirname
+const __filename = fileURLToPath(import.meta.url);
+const __dirname = path.dirname(__filename);
+
+let mainWindow;
+
+function createWindow() {
+ // Remove the default menu (File, Edit, View, etc.)
+ Menu.setApplicationMenu(null);
+
+ // Create the browser window.
+ mainWindow = new BrowserWindow({
+ width: 1400,
+ height: 900,
+ minWidth: 800,
+ minHeight: 600,
+ webPreferences: {
+ preload: path.join(__dirname, 'preload.js'),
+ nodeIntegration: false,
+ contextIsolation: true,
+ sandbox: false, // Disabled to support ESM in preload
+ webSecurity: true,
+ },
+ icon: path.join(__dirname, '../public/shakespeare-512x512.png'),
+ title: 'Shakespeare',
+ backgroundColor: '#ffffff',
+ });
+
+ // Enable DevTools keyboard shortcut (Ctrl+Shift+I / Cmd+Option+I)
+ mainWindow.webContents.on('before-input-event', (event, input) => {
+ // Check for Ctrl+Shift+I (Windows/Linux) or Cmd+Option+I (Mac)
+ if (input.control && input.shift && input.key.toLowerCase() === 'i') {
+ mainWindow.webContents.toggleDevTools();
+ event.preventDefault();
+ }
+ // Also support F12
+ if (input.key === 'F12') {
+ mainWindow.webContents.toggleDevTools();
+ event.preventDefault();
+ }
+ });
+
+ // Load the app
+ if (process.env.ELECTRON_DEV) {
+ // Development mode - load from Vite dev server
+ console.log('Loading from Vite dev server: http://localhost:5173');
+ mainWindow.loadURL('http://localhost:5173');
+ mainWindow.webContents.openDevTools();
+ } else {
+ // Production mode - load from custom protocol
+ // This allows absolute paths like /shakespeare.svg to work naturally
+ console.log('Loading from app:// protocol: app://./index.html');
+ mainWindow.loadURL('app://./index.html');
+ }
+
+ // Log any load errors
+ mainWindow.webContents.on('did-fail-load', (event, errorCode, errorDescription, validatedURL) => {
+ console.error('Failed to load:', validatedURL, errorCode, errorDescription);
+ });
+
+ // Log successful load
+ mainWindow.webContents.on('did-finish-load', () => {
+ console.log('Successfully loaded app');
+ });
+
+ // Handle window close
+ mainWindow.on('closed', () => {
+ mainWindow = null;
+ });
+}
+
+// Register custom protocol scheme before app is ready (required for privileges)
+if (!process.env.ELECTRON_DEV) {
+ protocol.registerSchemesAsPrivileged([
+ {
+ scheme: 'app',
+ privileges: {
+ standard: true,
+ secure: true,
+ supportFetchAPI: true,
+ corsEnabled: false,
+ },
+ },
+ ]);
+}
+
+// This method will be called when Electron has finished
+// initialization and is ready to create browser windows.
+app.whenReady().then(async () => {
+ // Register the app:// protocol to serve files from dist/
+ // This allows absolute paths (/) to work naturally without base: './'
+ if (!process.env.ELECTRON_DEV) {
+ protocol.registerFileProtocol('app', (request, callback) => {
+ // Remove 'app://' prefix and normalize path
+ let filePath = request.url.replace('app://', '');
+
+ // Remove trailing slashes
+ filePath = filePath.replace(/\/+$/, '');
+
+ // Handle root path
+ if (filePath === '' || filePath === '/') {
+ filePath = 'index.html';
+ }
+
+ // Remove leading slash if present
+ if (filePath.startsWith('/')) {
+ filePath = filePath.substring(1);
+ }
+
+ // Resolve to dist directory
+ const fullPath = path.join(__dirname, '../dist', filePath);
+
+ console.log('Protocol handler:', request.url, '->', fullPath);
+ callback({ path: fullPath });
+ });
+ }
+
+ createWindow();
+
+ app.on('activate', () => {
+ // On macOS it's common to re-create a window in the app when the
+ // dock icon is clicked and there are no other windows open.
+ if (BrowserWindow.getAllWindows().length === 0) {
+ createWindow();
+ }
+ });
+});
+
+// Quit when all windows are closed, except on macOS.
+app.on('window-all-closed', () => {
+ if (process.platform !== 'darwin') {
+ app.quit();
+ }
+});
+
+// Handle app-level events
+app.on('web-contents-created', (event, contents) => {
+ // Security: Prevent navigation to external sites
+ contents.on('will-navigate', (event, navigationUrl) => {
+ const parsedUrl = new URL(navigationUrl);
+
+ // Allow navigation within the app
+ if (parsedUrl.origin === 'http://localhost:5173' ||
+ parsedUrl.protocol === 'file:') {
+ return;
+ }
+
+ // Block all other navigation
+ event.preventDefault();
+ });
+
+ // Security: Prevent opening new windows
+ contents.setWindowOpenHandler(({ url }) => {
+ // Open external links in the default browser
+ shell.openExternal(url);
+ return { action: 'deny' };
+ });
+});
+
+// IPC handlers can be added here if needed for future Electron-specific features
+// For example: file system access, native dialogs, etc.
+
+// Example: Handle getting app version
+ipcMain.handle('get-app-version', () => {
+ return app.getVersion();
+});
+
+// Example: Handle getting platform
+ipcMain.handle('get-platform', () => {
+ return process.platform;
+});
+
+// Helper function to expand tilde (~) in paths
+function expandTilde(filepath) {
+ if (filepath.startsWith('~/') || filepath === '~') {
+ return path.join(os.homedir(), filepath.slice(1));
+ }
+ return filepath;
+}
+
+// Filesystem IPC handlers
+ipcMain.handle('fs:readFile', async (event, filePath, encoding) => {
+ if (!filePath) {
+ const err = new Error('Failed to read file: path is required');
+ err.code = 'EINVAL';
+ throw err;
+ }
+ try {
+ const fullPath = expandTilde(filePath);
+ const data = await fs.readFile(fullPath, encoding ? { encoding } : undefined);
+ // If no encoding, convert Buffer to array for IPC serialization
+ return encoding ? data : Array.from(data);
+ } catch (error) {
+ // Re-throw with original error code preserved for ENOENT handling
+ // Serialize the error code as a regular property so it survives IPC
+ const err = new Error(`Failed to read file ${filePath}: ${error.message}`);
+ // Copy enumerable properties including code
+ if (error.code) {
+ Object.defineProperty(err, 'code', {
+ value: error.code,
+ enumerable: true,
+ writable: true,
+ configurable: true,
+ });
+ }
+ throw err;
+ }
+});
+
+ipcMain.handle('fs:writeFile', async (event, filePath, data, encoding) => {
+ if (!filePath) {
+ const err = new Error('Failed to write file: path is required');
+ err.code = 'EINVAL';
+ throw err;
+ }
+ try {
+ const fullPath = expandTilde(filePath);
+ // Ensure parent directory exists
+ await fs.mkdir(path.dirname(fullPath), { recursive: true });
+ // Convert array back to Buffer if needed
+ const dataToWrite = Array.isArray(data) ? Buffer.from(data) : data;
+ await fs.writeFile(fullPath, dataToWrite, encoding ? { encoding } : undefined);
+ } catch (error) {
+ const err = new Error(`Failed to write file ${filePath}: ${error.message}`);
+ if (error.code) {
+ Object.defineProperty(err, 'code', {
+ value: error.code,
+ enumerable: true,
+ writable: true,
+ configurable: true,
+ });
+ }
+ throw err;
+ }
+});
+
+ipcMain.handle('fs:readdir', async (event, dirPath, withFileTypes) => {
+ try {
+ const fullPath = expandTilde(dirPath);
+ const entries = await fs.readdir(fullPath, { withFileTypes: !!withFileTypes });
+
+ if (withFileTypes) {
+ // Convert Dirent objects to plain objects for IPC
+ return entries.map(entry => ({
+ name: entry.name,
+ isDirectory: entry.isDirectory(),
+ isFile: entry.isFile(),
+ }));
+ }
+
+ return entries;
+ } catch (error) {
+ // Re-throw with original error code preserved for ENOENT handling
+ const err = new Error(`Failed to read directory ${dirPath}: ${error.message}`);
+ if (error.code) {
+ Object.defineProperty(err, 'code', {
+ value: error.code,
+ enumerable: true,
+ writable: true,
+ configurable: true,
+ });
+ }
+ throw err;
+ }
+});
+
+ipcMain.handle('fs:mkdir', async (event, dirPath, recursive) => {
+ try {
+ const fullPath = expandTilde(dirPath);
+ await fs.mkdir(fullPath, { recursive: !!recursive });
+ } catch (error) {
+ const err = new Error(`Failed to create directory ${dirPath}: ${error.message}`);
+ if (error.code) {
+ Object.defineProperty(err, 'code', {
+ value: error.code,
+ enumerable: true,
+ writable: true,
+ configurable: true,
+ });
+ }
+ throw err;
+ }
+});
+
+ipcMain.handle('fs:stat', async (event, filePath) => {
+ try {
+ const fullPath = expandTilde(filePath);
+ const stats = await fs.stat(fullPath);
+ const now = Date.now();
+ return {
+ isDirectory: stats.isDirectory(),
+ isFile: stats.isFile(),
+ isBlockDevice: stats.isBlockDevice(),
+ isCharacterDevice: stats.isCharacterDevice(),
+ isSymbolicLink: stats.isSymbolicLink(),
+ isFIFO: stats.isFIFO(),
+ isSocket: stats.isSocket(),
+ size: stats.size,
+ mtimeMs: stats.mtimeMs ?? now,
+ ctimeMs: stats.ctimeMs ?? now,
+ atimeMs: stats.atimeMs ?? now,
+ // Date objects need to be serialized as timestamps for IPC
+ // Use optional chaining and fallback to now to prevent valueOf errors
+ mtime: stats.mtime?.getTime() ?? now,
+ ctime: stats.ctime?.getTime() ?? now,
+ atime: stats.atime?.getTime() ?? now,
+ };
+ } catch (error) {
+ // Re-throw with original error code preserved for ENOENT handling
+ const err = new Error(`Failed to stat ${filePath}: ${error.message}`);
+ if (error.code) {
+ Object.defineProperty(err, 'code', {
+ value: error.code,
+ enumerable: true,
+ writable: true,
+ configurable: true,
+ });
+ }
+ throw err;
+ }
+});
+
+ipcMain.handle('fs:lstat', async (event, filePath) => {
+ try {
+ const fullPath = expandTilde(filePath);
+ const stats = await fs.lstat(fullPath);
+ const now = Date.now();
+ return {
+ isDirectory: stats.isDirectory(),
+ isFile: stats.isFile(),
+ isBlockDevice: stats.isBlockDevice(),
+ isCharacterDevice: stats.isCharacterDevice(),
+ isSymbolicLink: stats.isSymbolicLink(),
+ isFIFO: stats.isFIFO(),
+ isSocket: stats.isSocket(),
+ size: stats.size,
+ mtimeMs: stats.mtimeMs ?? now,
+ ctimeMs: stats.ctimeMs ?? now,
+ atimeMs: stats.atimeMs ?? now,
+ // Date objects need to be serialized as timestamps for IPC
+ // Use optional chaining and fallback to now to prevent valueOf errors
+ mtime: stats.mtime?.getTime() ?? now,
+ ctime: stats.ctime?.getTime() ?? now,
+ atime: stats.atime?.getTime() ?? now,
+ };
+ } catch (error) {
+ const err = new Error(`Failed to lstat ${filePath}: ${error.message}`);
+ if (error.code) {
+ Object.defineProperty(err, 'code', {
+ value: error.code,
+ enumerable: true,
+ writable: true,
+ configurable: true,
+ });
+ }
+ throw err;
+ }
+});
+
+ipcMain.handle('fs:unlink', async (event, filePath) => {
+ try {
+ const fullPath = expandTilde(filePath);
+ await fs.unlink(fullPath);
+ } catch (error) {
+ const err = new Error(`Failed to unlink ${filePath}: ${error.message}`);
+ if (error.code) {
+ Object.defineProperty(err, 'code', {
+ value: error.code,
+ enumerable: true,
+ writable: true,
+ configurable: true,
+ });
+ }
+ throw err;
+ }
+});
+
+ipcMain.handle('fs:rmdir', async (event, dirPath) => {
+ try {
+ const fullPath = expandTilde(dirPath);
+ await fs.rmdir(fullPath);
+ } catch (error) {
+ // Re-throw with original error code preserved for ENOENT handling
+ const err = new Error(`Failed to remove directory ${dirPath}: ${error.message}`);
+ if (error.code) {
+ Object.defineProperty(err, 'code', {
+ value: error.code,
+ enumerable: true,
+ writable: true,
+ configurable: true,
+ });
+ }
+ throw err;
+ }
+});
+
+ipcMain.handle('fs:rename', async (event, oldPath, newPath) => {
+ try {
+ const fullOldPath = expandTilde(oldPath);
+ const fullNewPath = expandTilde(newPath);
+ // Ensure parent directory of new path exists
+ await fs.mkdir(path.dirname(fullNewPath), { recursive: true });
+ await fs.rename(fullOldPath, fullNewPath);
+ } catch (error) {
+ const err = new Error(`Failed to rename ${oldPath} to ${newPath}: ${error.message}`);
+ if (error.code) {
+ Object.defineProperty(err, 'code', {
+ value: error.code,
+ enumerable: true,
+ writable: true,
+ configurable: true,
+ });
+ }
+ throw err;
+ }
+});
+
+ipcMain.handle('fs:readlink', async (event, filePath) => {
+ try {
+ const fullPath = expandTilde(filePath);
+ return await fs.readlink(fullPath);
+ } catch (error) {
+ const err = new Error(`Failed to read link ${filePath}: ${error.message}`);
+ if (error.code) {
+ Object.defineProperty(err, 'code', {
+ value: error.code,
+ enumerable: true,
+ writable: true,
+ configurable: true,
+ });
+ }
+ throw err;
+ }
+});
+
+ipcMain.handle('fs:symlink', async (event, target, filePath) => {
+ try {
+ const fullPath = expandTilde(filePath);
+ // Ensure parent directory exists
+ await fs.mkdir(path.dirname(fullPath), { recursive: true });
+ await fs.symlink(target, fullPath);
+ } catch (error) {
+ const err = new Error(`Failed to create symlink ${filePath}: ${error.message}`);
+ if (error.code) {
+ Object.defineProperty(err, 'code', {
+ value: error.code,
+ enumerable: true,
+ writable: true,
+ configurable: true,
+ });
+ }
+ throw err;
+ }
+});
+
+// Shell execution handler
+ipcMain.handle('shell:exec', async (event, command, cwd) => {
+ return new Promise(async (resolve, reject) => {
+ try {
+ // Determine the shell and command execution method based on platform
+ const isWindows = process.platform === 'win32';
+ const shellCmd = isWindows ? 'cmd.exe' : '/bin/sh';
+ const shellArgs = isWindows ? ['/c', command] : ['-c', command];
+
+ // Expand tilde in working directory if provided, otherwise use home directory
+ const workingDir = cwd ? expandTilde(cwd) : os.homedir();
+
+ // Ensure the working directory exists before spawning
+ try {
+ await fs.mkdir(workingDir, { recursive: true });
+ console.log(`Shell exec in directory: ${workingDir}`);
+ console.log(`Command: ${command}`);
+ } catch (mkdirError) {
+ console.warn(`Failed to create directory ${workingDir}:`, mkdirError.message);
+ // Continue anyway - directory might already exist
+ }
+
+ const child = spawn(shellCmd, shellArgs, {
+ cwd: workingDir,
+ env: { ...process.env },
+ shell: false, // We're already using the shell
+ });
+
+ let stdout = '';
+ let stderr = '';
+
+ child.stdout?.on('data', (data) => {
+ stdout += data.toString();
+ });
+
+ child.stderr?.on('data', (data) => {
+ stderr += data.toString();
+ });
+
+ child.on('error', (error) => {
+ console.error('Shell execution error:', error);
+ console.error('Working directory:', workingDir);
+ console.error('Shell command:', shellCmd);
+ console.error('Shell args:', shellArgs);
+ reject(new Error(`Failed to execute command: ${error.message} (cwd: ${workingDir})`));
+ });
+
+ child.on('close', (code) => {
+ resolve({
+ stdout,
+ stderr,
+ exitCode: code ?? 0,
+ });
+ });
+ } catch (error) {
+ console.error('Shell setup error:', error);
+ reject(new Error(`Failed to setup shell execution: ${error.message}`));
+ }
+ });
+});
diff --git a/electron/preload.js b/electron/preload.js
new file mode 100644
index 00000000..dd554c3c
--- /dev/null
+++ b/electron/preload.js
@@ -0,0 +1,31 @@
+import { contextBridge, ipcRenderer } from 'electron';
+
+// Expose protected methods that allow the renderer process to use
+// ipcRenderer without exposing the entire object
+contextBridge.exposeInMainWorld('electron', {
+ // Platform information
+ platform: () => ipcRenderer.invoke('get-platform'),
+
+ // App version
+ version: () => ipcRenderer.invoke('get-app-version'),
+
+ // Filesystem API - paths support tilde (~) expansion for home directory
+ fs: {
+ readFile: (path, encoding) => ipcRenderer.invoke('fs:readFile', path, encoding),
+ writeFile: (path, data, encoding) => ipcRenderer.invoke('fs:writeFile', path, data, encoding),
+ readdir: (path, withFileTypes) => ipcRenderer.invoke('fs:readdir', path, withFileTypes),
+ mkdir: (path, recursive) => ipcRenderer.invoke('fs:mkdir', path, recursive),
+ stat: (path) => ipcRenderer.invoke('fs:stat', path),
+ lstat: (path) => ipcRenderer.invoke('fs:lstat', path),
+ unlink: (path) => ipcRenderer.invoke('fs:unlink', path),
+ rmdir: (path) => ipcRenderer.invoke('fs:rmdir', path),
+ rename: (oldPath, newPath) => ipcRenderer.invoke('fs:rename', oldPath, newPath),
+ readlink: (path) => ipcRenderer.invoke('fs:readlink', path),
+ symlink: (target, path) => ipcRenderer.invoke('fs:symlink', target, path),
+ },
+
+ // Shell API - execute real shell commands
+ shell: {
+ exec: (command, cwd) => ipcRenderer.invoke('shell:exec', command, cwd),
+ },
+});
diff --git a/electron/resources/.gitkeep b/electron/resources/.gitkeep
new file mode 100644
index 00000000..e6afaa33
--- /dev/null
+++ b/electron/resources/.gitkeep
@@ -0,0 +1,7 @@
+# Place your platform-specific icons here:
+#
+# - icon.icns (macOS)
+# - icon.ico (Windows)
+# - icons/ directory with PNG files (Linux)
+#
+# See electron/README.md for details on creating these icons.
diff --git a/electron/test-config.js b/electron/test-config.js
new file mode 100755
index 00000000..7c68eb0c
--- /dev/null
+++ b/electron/test-config.js
@@ -0,0 +1,148 @@
+#!/usr/bin/env node
+
+/**
+ * Test script to validate electron-builder configuration
+ */
+
+import fs from 'fs';
+import path from 'path';
+import { fileURLToPath } from 'url';
+
+const __filename = fileURLToPath(import.meta.url);
+const __dirname = path.dirname(__filename);
+
+console.log('🔍 Validating Electron build configuration...\n');
+
+const errors = [];
+const warnings = [];
+
+// Check if required files exist
+const requiredFiles = [
+ 'electron/main.js',
+ 'electron/preload.js',
+ 'electron/builder.config.js',
+ 'public/shakespeare-512x512.png',
+ 'package.json',
+];
+
+console.log('📁 Checking required files:');
+requiredFiles.forEach(file => {
+ if (fs.existsSync(file)) {
+ console.log(` ✅ ${file}`);
+ } else {
+ console.log(` ❌ ${file}`);
+ errors.push(`Missing required file: ${file}`);
+ }
+});
+
+// Check if dist directory exists
+console.log('\n📦 Checking build output:');
+if (fs.existsSync('dist')) {
+ const distFiles = fs.readdirSync('dist');
+ if (distFiles.includes('index.html')) {
+ console.log(' ✅ dist/index.html exists');
+ } else {
+ console.log(' ❌ dist/index.html missing');
+ errors.push('Run "npm run build" first to create dist/index.html');
+ }
+} else {
+ console.log(' ❌ dist directory missing');
+ errors.push('Run "npm run build" first to create the dist directory');
+}
+
+// Check package.json
+console.log('\n📄 Checking package.json:');
+try {
+ const pkg = JSON.parse(fs.readFileSync('package.json', 'utf8'));
+
+ if (pkg.main === 'electron/main.js') {
+ console.log(' ✅ main entry point set correctly');
+ } else {
+ console.log(` ⚠️ main entry point is "${pkg.main}" (expected "electron/main.js")`);
+ warnings.push('package.json main should be "electron/main.js"');
+ }
+
+ if (pkg.devDependencies?.electron) {
+ console.log(' ✅ electron dependency found');
+ } else {
+ console.log(' ❌ electron dependency missing');
+ errors.push('Install electron: npm install --save-dev electron');
+ }
+
+ if (pkg.devDependencies?.['electron-builder']) {
+ console.log(' ✅ electron-builder dependency found');
+ } else {
+ console.log(' ❌ electron-builder dependency missing');
+ errors.push('Install electron-builder: npm install --save-dev electron-builder');
+ }
+} catch (e) {
+ console.log(' ❌ Error reading package.json');
+ errors.push(`Failed to read package.json: ${e.message}`);
+}
+
+// Check builder config
+console.log('\n⚙️ Checking builder configuration:');
+try {
+ const configModule = await import('./builder.config.js');
+ const config = configModule.default;
+
+ if (config.appId) {
+ console.log(` ✅ appId: ${config.appId}`);
+ } else {
+ console.log(' ⚠️ appId not set');
+ warnings.push('Consider setting appId in builder.config.js');
+ }
+
+ if (config.productName) {
+ console.log(` ✅ productName: ${config.productName}`);
+ } else {
+ console.log(' ⚠️ productName not set');
+ warnings.push('Consider setting productName in builder.config.js');
+ }
+
+ // Check icon paths
+ const iconPaths = [];
+ if (config.mac?.icon) iconPaths.push({ platform: 'macOS', path: config.mac.icon });
+ if (config.win?.icon) iconPaths.push({ platform: 'Windows', path: config.win.icon });
+ if (config.linux?.icon) iconPaths.push({ platform: 'Linux', path: config.linux.icon });
+
+ console.log('\n🎨 Checking icon configuration:');
+ iconPaths.forEach(({ platform, path: iconPath }) => {
+ if (fs.existsSync(iconPath)) {
+ console.log(` ✅ ${platform}: ${iconPath}`);
+ } else {
+ console.log(` ⚠️ ${platform}: ${iconPath} (will be generated from PNG)`);
+ }
+ });
+
+} catch (e) {
+ console.log(' ❌ Error reading builder.config.js');
+ errors.push(`Failed to read builder.config.js: ${e.message}`);
+}
+
+// Summary
+console.log('\n' + '='.repeat(60));
+if (errors.length === 0 && warnings.length === 0) {
+ console.log('✅ Configuration is valid! Ready to build.');
+ console.log('\nNext steps:');
+ console.log(' Development: npm run electron:dev');
+ console.log(' Build: npm run electron:build');
+ process.exit(0);
+} else {
+ if (errors.length > 0) {
+ console.log('❌ Errors found:');
+ errors.forEach(err => console.log(` - ${err}`));
+ }
+ if (warnings.length > 0) {
+ console.log('\n⚠️ Warnings:');
+ warnings.forEach(warn => console.log(` - ${warn}`));
+ }
+
+ if (errors.length > 0) {
+ console.log('\n❌ Fix errors before building.');
+ process.exit(1);
+ } else {
+ console.log('\n✅ Configuration is valid (with warnings).');
+ process.exit(0);
+ }
+}
diff --git a/electron/test-terminal.js b/electron/test-terminal.js
new file mode 100644
index 00000000..e52b3725
--- /dev/null
+++ b/electron/test-terminal.js
@@ -0,0 +1,84 @@
+/**
+ * Test script to verify real terminal execution in Electron
+ *
+ * This script can be run in the Electron console to test the shell execution:
+ *
+ * 1. Start Electron: npm run electron:dev
+ * 2. Open DevTools
+ * 3. Copy and paste this code into the console
+ */
+
+async function testElectronShell() {
+ console.log('Testing Electron Shell Execution...\n');
+
+ if (!window.electron?.shell) {
+ console.error('❌ Not running in Electron or shell API not available');
+ return;
+ }
+
+ console.log('✅ Electron shell API detected\n');
+
+ // Test 1: Simple echo command
+ console.log('Test 1: Echo command');
+ try {
+ const result1 = await window.electron.shell.exec('echo "Hello from real shell!"');
+ console.log('stdout:', result1.stdout);
+ console.log('stderr:', result1.stderr);
+ console.log('exitCode:', result1.exitCode);
+ console.log(result1.exitCode === 0 ? '✅ PASS\n' : '❌ FAIL\n');
+ } catch (error) {
+ console.error('❌ FAIL:', error.message, '\n');
+ }
+
+ // Test 2: List files
+ console.log('Test 2: List files');
+ try {
+ const listCmd = process.platform === 'win32' ? 'dir' : 'ls -la';
+ const result2 = await window.electron.shell.exec(listCmd);
+ console.log('stdout:', result2.stdout.substring(0, 200) + '...');
+ console.log('exitCode:', result2.exitCode);
+ console.log(result2.exitCode === 0 ? '✅ PASS\n' : '❌ FAIL\n');
+ } catch (error) {
+ console.error('❌ FAIL:', error.message, '\n');
+ }
+
+ // Test 3: Check Node.js version
+ console.log('Test 3: Node.js version');
+ try {
+ const result3 = await window.electron.shell.exec('node --version');
+ console.log('stdout:', result3.stdout);
+ console.log('exitCode:', result3.exitCode);
+ console.log(result3.exitCode === 0 ? '✅ PASS\n' : '❌ FAIL\n');
+ } catch (error) {
+ console.error('❌ FAIL:', error.message, '\n');
+ }
+
+ // Test 4: Error handling (non-existent command)
+ console.log('Test 4: Non-existent command');
+ try {
+ const result4 = await window.electron.shell.exec('this-command-does-not-exist');
+ console.log('stdout:', result4.stdout);
+ console.log('stderr:', result4.stderr);
+ console.log('exitCode:', result4.exitCode);
+ console.log(result4.exitCode !== 0 ? '✅ PASS (expected failure)\n' : '❌ FAIL\n');
+ } catch (error) {
+ console.log('✅ PASS (error caught as expected)\n');
+ }
+
+ // Test 5: Working directory
+ console.log('Test 5: Working directory');
+ try {
+ const pwdCmd = process.platform === 'win32' ? 'cd' : 'pwd';
+ const result5 = await window.electron.shell.exec(pwdCmd);
+ console.log('stdout:', result5.stdout);
+ console.log('Should contain "shakespeare":', result5.stdout.includes('shakespeare'));
+ console.log(result5.stdout.includes('shakespeare') ? '✅ PASS\n' : '❌ FAIL\n');
+ } catch (error) {
+ console.error('❌ FAIL:', error.message, '\n');
+ }
+
+ console.log('All tests completed!');
+}
+
+// Run the tests
+testElectronShell();
diff --git a/package-lock.json b/package-lock.json
index 9a2e3b70..e3ae5ef0 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -111,6 +111,8 @@
"@types/uri-templates": "^0.1.34",
"@vitejs/plugin-react-swc": "^3.5.0",
"autoprefixer": "^10.4.20",
+ "electron": "^38.4.0",
+ "electron-builder": "^26.0.12",
"eslint": "^9.9.0",
"eslint-plugin-react-hooks": "^5.1.0-rc.0",
"eslint-plugin-react-refresh": "^0.4.9",
@@ -1851,6 +1853,24 @@
"node": ">=18"
}
},
+ "node_modules/@develar/schema-utils": {
+ "version": "2.6.5",
+ "resolved": "https://registry.npmjs.org/@develar/schema-utils/-/schema-utils-2.6.5.tgz",
+ "integrity": "sha512-0cp4PsWQ/9avqTVMCtZ+GirikIA36ikvjtHweU4/j8yLtgObI0+JUPhYFScgwlteveGB1rt3Cm8UhN04XayDig==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ajv": "^6.12.0",
+ "ajv-keywords": "^3.4.1"
+ },
+ "engines": {
+ "node": ">= 8.9.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/webpack"
+ }
+ },
"node_modules/@dnd-kit/accessibility": {
"version": "3.1.1",
"resolved": "https://registry.npmjs.org/@dnd-kit/accessibility/-/accessibility-3.1.1.tgz",
@@ -1904,6 +1924,493 @@
"react": ">=16.8.0"
}
},
+ "node_modules/@electron/asar": {
+ "version": "3.2.18",
+ "resolved": "https://registry.npmjs.org/@electron/asar/-/asar-3.2.18.tgz",
+ "integrity": "sha512-2XyvMe3N3Nrs8cV39IKELRHTYUWFKrmqqSY1U+GMlc0jvqjIVnoxhNd2H4JolWQncbJi1DCvb5TNxZuI2fEjWg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "commander": "^5.0.0",
+ "glob": "^7.1.6",
+ "minimatch": "^3.0.4"
+ },
+ "bin": {
+ "asar": "bin/asar.js"
+ },
+ "engines": {
+ "node": ">=10.12.0"
+ }
+ },
+ "node_modules/@electron/asar/node_modules/commander": {
+ "version": "5.1.0",
+ "resolved": "https://registry.npmjs.org/commander/-/commander-5.1.0.tgz",
+ "integrity": "sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/@electron/asar/node_modules/glob": {
+ "version": "7.2.3",
+ "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz",
+ "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==",
+ "deprecated": "Glob versions prior to v9 are no longer supported",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "fs.realpath": "^1.0.0",
+ "inflight": "^1.0.4",
+ "inherits": "2",
+ "minimatch": "^3.1.1",
+ "once": "^1.3.0",
+ "path-is-absolute": "^1.0.0"
+ },
+ "engines": {
+ "node": "*"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
+ "node_modules/@electron/fuses": {
+ "version": "1.8.0",
+ "resolved": "https://registry.npmjs.org/@electron/fuses/-/fuses-1.8.0.tgz",
+ "integrity": "sha512-zx0EIq78WlY/lBb1uXlziZmDZI4ubcCXIMJ4uGjXzZW0nS19TjSPeXPAjzzTmKQlJUZm0SbmZhPKP7tuQ1SsEw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "chalk": "^4.1.1",
+ "fs-extra": "^9.0.1",
+ "minimist": "^1.2.5"
+ },
+ "bin": {
+ "electron-fuses": "dist/bin.js"
+ }
+ },
+ "node_modules/@electron/get": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/@electron/get/-/get-2.0.3.tgz",
+ "integrity": "sha512-Qkzpg2s9GnVV2I2BjRksUi43U5e6+zaQMcjoJy0C+C5oxaKl+fmckGDQFtRpZpZV0NQekuZZ+tGz7EA9TVnQtQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "debug": "^4.1.1",
+ "env-paths": "^2.2.0",
+ "fs-extra": "^8.1.0",
+ "got": "^11.8.5",
+ "progress": "^2.0.3",
+ "semver": "^6.2.0",
+ "sumchecker": "^3.0.1"
+ },
+ "engines": {
+ "node": ">=12"
+ },
+ "optionalDependencies": {
+ "global-agent": "^3.0.0"
+ }
+ },
+ "node_modules/@electron/get/node_modules/fs-extra": {
+ "version": "8.1.0",
+ "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz",
+ "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "graceful-fs": "^4.2.0",
+ "jsonfile": "^4.0.0",
+ "universalify": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=6 <7 || >=8"
+ }
+ },
+ "node_modules/@electron/get/node_modules/jsonfile": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz",
+ "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==",
+ "dev": true,
+ "license": "MIT",
+ "optionalDependencies": {
+ "graceful-fs": "^4.1.6"
+ }
+ },
+ "node_modules/@electron/get/node_modules/semver": {
+ "version": "6.3.1",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",
+ "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",
+ "dev": true,
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ }
+ },
+ "node_modules/@electron/get/node_modules/universalify": {
+ "version": "0.1.2",
+ "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz",
+ "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 4.0.0"
+ }
+ },
+ "node_modules/@electron/node-gyp": {
+ "version": "10.2.0-electron.1",
+ "resolved": "git+ssh://git@github.com/electron/node-gyp.git#06b29aafb7708acef8b3669835c8a7857ebc92d2",
+ "integrity": "sha512-CrYo6TntjpoMO1SHjl5Pa/JoUsECNqNdB7Kx49WLQpWzPw53eEITJ2Hs9fh/ryUYDn4pxZz11StaBYBrLFJdqg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "env-paths": "^2.2.0",
+ "exponential-backoff": "^3.1.1",
+ "glob": "^8.1.0",
+ "graceful-fs": "^4.2.6",
+ "make-fetch-happen": "^10.2.1",
+ "nopt": "^6.0.0",
+ "proc-log": "^2.0.1",
+ "semver": "^7.3.5",
+ "tar": "^6.2.1",
+ "which": "^2.0.2"
+ },
+ "bin": {
+ "node-gyp": "bin/node-gyp.js"
+ },
+ "engines": {
+ "node": ">=12.13.0"
+ }
+ },
+ "node_modules/@electron/node-gyp/node_modules/brace-expansion": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
+ "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "balanced-match": "^1.0.0"
+ }
+ },
+ "node_modules/@electron/node-gyp/node_modules/glob": {
+ "version": "8.1.0",
+ "resolved": "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz",
+ "integrity": "sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==",
+ "deprecated": "Glob versions prior to v9 are no longer supported",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "fs.realpath": "^1.0.0",
+ "inflight": "^1.0.4",
+ "inherits": "2",
+ "minimatch": "^5.0.1",
+ "once": "^1.3.0"
+ },
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
+ "node_modules/@electron/node-gyp/node_modules/minimatch": {
+ "version": "5.1.6",
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz",
+ "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "brace-expansion": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@electron/notarize": {
+ "version": "2.5.0",
+ "resolved": "https://registry.npmjs.org/@electron/notarize/-/notarize-2.5.0.tgz",
+ "integrity": "sha512-jNT8nwH1f9X5GEITXaQ8IF/KdskvIkOFfB2CvwumsveVidzpSc+mvhhTMdAGSYF3O+Nq49lJ7y+ssODRXu06+A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "debug": "^4.1.1",
+ "fs-extra": "^9.0.1",
+ "promise-retry": "^2.0.1"
+ },
+ "engines": {
+ "node": ">= 10.0.0"
+ }
+ },
+ "node_modules/@electron/osx-sign": {
+ "version": "1.3.1",
+ "resolved": "https://registry.npmjs.org/@electron/osx-sign/-/osx-sign-1.3.1.tgz",
+ "integrity": "sha512-BAfviURMHpmb1Yb50YbCxnOY0wfwaLXH5KJ4+80zS0gUkzDX3ec23naTlEqKsN+PwYn+a1cCzM7BJ4Wcd3sGzw==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "compare-version": "^0.1.2",
+ "debug": "^4.3.4",
+ "fs-extra": "^10.0.0",
+ "isbinaryfile": "^4.0.8",
+ "minimist": "^1.2.6",
+ "plist": "^3.0.5"
+ },
+ "bin": {
+ "electron-osx-flat": "bin/electron-osx-flat.js",
+ "electron-osx-sign": "bin/electron-osx-sign.js"
+ },
+ "engines": {
+ "node": ">=12.0.0"
+ }
+ },
+ "node_modules/@electron/osx-sign/node_modules/fs-extra": {
+ "version": "10.1.0",
+ "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz",
+ "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "graceful-fs": "^4.2.0",
+ "jsonfile": "^6.0.1",
+ "universalify": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@electron/osx-sign/node_modules/isbinaryfile": {
+ "version": "4.0.10",
+ "resolved": "https://registry.npmjs.org/isbinaryfile/-/isbinaryfile-4.0.10.tgz",
+ "integrity": "sha512-iHrqe5shvBUcFbmZq9zOQHBoeOhZJu6RQGrDpBgenUm/Am+F3JM2MgQj+rK3Z601fzrL5gLZWtAPH2OBaSVcyw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 8.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/gjtorikian/"
+ }
+ },
+ "node_modules/@electron/rebuild": {
+ "version": "3.7.0",
+ "resolved": "https://registry.npmjs.org/@electron/rebuild/-/rebuild-3.7.0.tgz",
+ "integrity": "sha512-VW++CNSlZwMYP7MyXEbrKjpzEwhB5kDNbzGtiPEjwYysqyTCF+YbNJ210Dj3AjWsGSV4iEEwNkmJN9yGZmVvmw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@electron/node-gyp": "git+https://github.com/electron/node-gyp.git#06b29aafb7708acef8b3669835c8a7857ebc92d2",
+ "@malept/cross-spawn-promise": "^2.0.0",
+ "chalk": "^4.0.0",
+ "debug": "^4.1.1",
+ "detect-libc": "^2.0.1",
+ "fs-extra": "^10.0.0",
+ "got": "^11.7.0",
+ "node-abi": "^3.45.0",
+ "node-api-version": "^0.2.0",
+ "ora": "^5.1.0",
+ "read-binary-file-arch": "^1.0.6",
+ "semver": "^7.3.5",
+ "tar": "^6.0.5",
+ "yargs": "^17.0.1"
+ },
+ "bin": {
+ "electron-rebuild": "lib/cli.js"
+ },
+ "engines": {
+ "node": ">=12.13.0"
+ }
+ },
+ "node_modules/@electron/rebuild/node_modules/ansi-regex": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/@electron/rebuild/node_modules/cliui": {
+ "version": "8.0.1",
+ "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz",
+ "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "string-width": "^4.2.0",
+ "strip-ansi": "^6.0.1",
+ "wrap-ansi": "^7.0.0"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@electron/rebuild/node_modules/emoji-regex": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@electron/rebuild/node_modules/fs-extra": {
+ "version": "10.1.0",
+ "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz",
+ "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "graceful-fs": "^4.2.0",
+ "jsonfile": "^6.0.1",
+ "universalify": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@electron/rebuild/node_modules/string-width": {
+ "version": "4.2.3",
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
+ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "emoji-regex": "^8.0.0",
+ "is-fullwidth-code-point": "^3.0.0",
+ "strip-ansi": "^6.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/@electron/rebuild/node_modules/strip-ansi": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-regex": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/@electron/rebuild/node_modules/wrap-ansi": {
+ "version": "7.0.0",
+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
+ "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-styles": "^4.0.0",
+ "string-width": "^4.1.0",
+ "strip-ansi": "^6.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/wrap-ansi?sponsor=1"
+ }
+ },
+ "node_modules/@electron/rebuild/node_modules/y18n": {
+ "version": "5.0.8",
+ "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz",
+ "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@electron/rebuild/node_modules/yargs": {
+ "version": "17.7.2",
+ "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz",
+ "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "cliui": "^8.0.1",
+ "escalade": "^3.1.1",
+ "get-caller-file": "^2.0.5",
+ "require-directory": "^2.1.1",
+ "string-width": "^4.2.3",
+ "y18n": "^5.0.5",
+ "yargs-parser": "^21.1.1"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@electron/rebuild/node_modules/yargs-parser": {
+ "version": "21.1.1",
+ "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz",
+ "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@electron/universal": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/@electron/universal/-/universal-2.0.1.tgz",
+ "integrity": "sha512-fKpv9kg4SPmt+hY7SVBnIYULE9QJl8L3sCfcBsnqbJwwBwAeTLokJ9TRt9y7bK0JAzIW2y78TVVjvnQEms/yyA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@electron/asar": "^3.2.7",
+ "@malept/cross-spawn-promise": "^2.0.0",
+ "debug": "^4.3.1",
+ "dir-compare": "^4.2.0",
+ "fs-extra": "^11.1.1",
+ "minimatch": "^9.0.3",
+ "plist": "^3.1.0"
+ },
+ "engines": {
+ "node": ">=16.4"
+ }
+ },
+ "node_modules/@electron/universal/node_modules/brace-expansion": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
+ "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "balanced-match": "^1.0.0"
+ }
+ },
+ "node_modules/@electron/universal/node_modules/fs-extra": {
+ "version": "11.3.2",
+ "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.3.2.tgz",
+ "integrity": "sha512-Xr9F6z6up6Ws+NjzMCZc6WXg2YFRlrLP9NQDO3VQrWrfiojdhS56TzueT88ze0uBdCTwEIhQ3ptnmKeWGFAe0A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "graceful-fs": "^4.2.0",
+ "jsonfile": "^6.0.1",
+ "universalify": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=14.14"
+ }
+ },
+ "node_modules/@electron/universal/node_modules/minimatch": {
+ "version": "9.0.5",
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz",
+ "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "brace-expansion": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=16 || 14 >=14.17"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
"node_modules/@esbuild/aix-ppc64": {
"version": "0.25.5",
"resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.5.tgz",
@@ -2540,6 +3047,13 @@
"url": "https://github.com/sponsors/ayuhito"
}
},
+ "node_modules/@gar/promisify": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/@gar/promisify/-/promisify-1.1.3.tgz",
+ "integrity": "sha512-k2Ty1JcVojjJFwrg/ThKi2ujJ7XNLYaFGNB/bWT9wGR+oSMJHMa5w+CUq6p/pVrKeNNgA7pCqEcjSnHVoqJQFw==",
+ "dev": true,
+ "license": "MIT"
+ },
"node_modules/@getalby/lightning-tools": {
"version": "5.2.1",
"resolved": "https://registry.npmjs.org/@getalby/lightning-tools/-/lightning-tools-5.2.1.tgz",
@@ -2692,6 +3206,29 @@
"url": "https://github.com/sponsors/nzakas"
}
},
+ "node_modules/@isaacs/balanced-match": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/@isaacs/balanced-match/-/balanced-match-4.0.1.tgz",
+ "integrity": "sha512-yzMTt9lEb8Gv7zRioUilSglI0c0smZ9k5D65677DLWLtWJaXIS3CqcGyUFByYKlnUj6TkjLVs54fBl6+TiGQDQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "20 || >=22"
+ }
+ },
+ "node_modules/@isaacs/brace-expansion": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/@isaacs/brace-expansion/-/brace-expansion-5.0.0.tgz",
+ "integrity": "sha512-ZT55BDLV0yv0RBm2czMiZ+SqCGO7AvmOM3G/w2xhVPH+te0aKgFjmBvGlL1dH+ql2tgGO3MVrbb3jCKyvpgnxA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@isaacs/balanced-match": "^4.0.1"
+ },
+ "engines": {
+ "node": "20 || >=22"
+ }
+ },
"node_modules/@isaacs/cliui": {
"version": "8.0.2",
"resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz",
@@ -2816,6 +3353,45 @@
"resolved": "https://npm.jsr.io/~/11/@jsr/std__encoding/0.224.3.tgz",
"integrity": "sha512-zAuX2QV1zwJ5RSmrnDGVerAtN3pBXpYYNlGzhERW9AiQ1UJd2/xruyB3i5NdTWy2OK2pjETswOj+0+prYTPlxQ=="
},
+ "node_modules/@malept/cross-spawn-promise": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/@malept/cross-spawn-promise/-/cross-spawn-promise-2.0.0.tgz",
+ "integrity": "sha512-1DpKU0Z5ThltBwjNySMC14g0CkbyhCaz9FkhxqNsZI6uAPJXFS8cMXlBKo26FJ8ZuW6S9GCMcR9IO5k2X5/9Fg==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "individual",
+ "url": "https://github.com/sponsors/malept"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/subscription/pkg/npm-.malept-cross-spawn-promise?utm_medium=referral&utm_source=npm_fund"
+ }
+ ],
+ "license": "Apache-2.0",
+ "dependencies": {
+ "cross-spawn": "^7.0.1"
+ },
+ "engines": {
+ "node": ">= 12.13.0"
+ }
+ },
+ "node_modules/@malept/flatpak-bundler": {
+ "version": "0.4.0",
+ "resolved": "https://registry.npmjs.org/@malept/flatpak-bundler/-/flatpak-bundler-0.4.0.tgz",
+ "integrity": "sha512-9QOtNffcOF/c1seMCDnjckb3R9WHcG34tky+FHpNKKCW0wc/scYLwMtO+ptyGUfMW0/b/n4qRiALlaFHc9Oj7Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "debug": "^4.1.1",
+ "fs-extra": "^9.0.0",
+ "lodash": "^4.17.15",
+ "tmp-promise": "^3.0.2"
+ },
+ "engines": {
+ "node": ">= 10.0.0"
+ }
+ },
"node_modules/@mixmark-io/domino": {
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/@mixmark-io/domino/-/domino-2.2.0.tgz",
@@ -2937,6 +3513,35 @@
"react": "^18.0.0"
}
},
+ "node_modules/@npmcli/fs": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/@npmcli/fs/-/fs-2.1.2.tgz",
+ "integrity": "sha512-yOJKRvohFOaLqipNtwYB9WugyZKhC/DZC4VYPmpaCzDBrA8YpK3qHZ8/HGscMnE4GqbkLNuVcCnxkeQEdGt6LQ==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "@gar/promisify": "^1.1.3",
+ "semver": "^7.3.5"
+ },
+ "engines": {
+ "node": "^12.13.0 || ^14.15.0 || >=16.0.0"
+ }
+ },
+ "node_modules/@npmcli/move-file": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/@npmcli/move-file/-/move-file-2.0.1.tgz",
+ "integrity": "sha512-mJd2Z5TjYWq/ttPLLGqArdtnC74J6bOzg4rMDnN+p1xTacZ2yPRCk2y0oSWQtygLR9YVQXgOcONrwtnk3JupxQ==",
+ "deprecated": "This functionality has been moved to @npmcli/fs",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "mkdirp": "^1.0.4",
+ "rimraf": "^3.0.2"
+ },
+ "engines": {
+ "node": "^12.13.0 || ^14.15.0 || >=16.0.0"
+ }
+ },
"node_modules/@pkgjs/parseargs": {
"version": "0.11.0",
"resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz",
@@ -4796,6 +5401,19 @@
"integrity": "sha512-83yeghZ2xxin3Nj8z1NMd/NCuca+gsYXswywDy5bHvwlWL8tpTQmzGeUuHd9FC3E/SBEMvzJRwWEOz5gGes9Qg==",
"license": "MIT"
},
+ "node_modules/@sindresorhus/is": {
+ "version": "4.6.0",
+ "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-4.6.0.tgz",
+ "integrity": "sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sindresorhus/is?sponsor=1"
+ }
+ },
"node_modules/@std/encoding": {
"name": "@jsr/std__encoding",
"version": "1.0.10",
@@ -5051,6 +5669,19 @@
"@swc/counter": "^0.1.3"
}
},
+ "node_modules/@szmarczak/http-timer": {
+ "version": "4.0.6",
+ "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-4.0.6.tgz",
+ "integrity": "sha512-4BAffykYOgO+5nzBWYwE3W90sBgLJoUPRWWcL8wlyiM8IB8ipJz3UMJ9KXQd1RKQXpKp8Tutn80HZtWsu2u76w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "defer-to-connect": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
"node_modules/@tailwindcss/typography": {
"version": "0.5.16",
"resolved": "https://registry.npmjs.org/@tailwindcss/typography/-/typography-0.5.16.tgz",
@@ -5198,6 +5829,16 @@
"@testing-library/dom": ">=7.21.4"
}
},
+ "node_modules/@tootallnate/once": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-2.0.0.tgz",
+ "integrity": "sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 10"
+ }
+ },
"node_modules/@types/aria-query": {
"version": "5.0.4",
"resolved": "https://registry.npmjs.org/@types/aria-query/-/aria-query-5.0.4.tgz",
@@ -5206,6 +5847,19 @@
"license": "MIT",
"peer": true
},
+ "node_modules/@types/cacheable-request": {
+ "version": "6.0.3",
+ "resolved": "https://registry.npmjs.org/@types/cacheable-request/-/cacheable-request-6.0.3.tgz",
+ "integrity": "sha512-IQ3EbTzGxIigb1I3qPZc1rWJnH0BmSKv5QYTalEwweFvyBDLSAe24zP0le/hyi7ecGfZVlIVAg4BZqb8WBwKqw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/http-cache-semantics": "*",
+ "@types/keyv": "^3.1.4",
+ "@types/node": "*",
+ "@types/responselike": "^1.0.0"
+ }
+ },
"node_modules/@types/chrome": {
"version": "0.0.74",
"resolved": "https://registry.npmjs.org/@types/chrome/-/chrome-0.0.74.tgz",
@@ -5317,6 +5971,16 @@
"integrity": "sha512-xFU8ZXTw4gd358lb2jw25nxY9QAgqn2+bKKjKOYfNCzN4DKCFetK7sPtrlpg66Ywe3vWY9FNxprZawAh9wfJ3g==",
"license": "MIT"
},
+ "node_modules/@types/fs-extra": {
+ "version": "9.0.13",
+ "resolved": "https://registry.npmjs.org/@types/fs-extra/-/fs-extra-9.0.13.tgz",
+ "integrity": "sha512-nEnwB++1u5lVDM2UI4c1+5R+FYaKfaAzS4OococimjVm3nQw3TuzH5UNsocrcTBbhnerblyHj4A49qXbIiZdpA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/node": "*"
+ }
+ },
"node_modules/@types/hast": {
"version": "3.0.4",
"resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.4.tgz",
@@ -5326,6 +5990,13 @@
"@types/unist": "*"
}
},
+ "node_modules/@types/http-cache-semantics": {
+ "version": "4.0.4",
+ "resolved": "https://registry.npmjs.org/@types/http-cache-semantics/-/http-cache-semantics-4.0.4.tgz",
+ "integrity": "sha512-1m0bIFVc7eJWyve9S0RnuRgcQqF/Xd5QsUZAZeQFr1Q3/p9JWoQQEqmVy+DPTNpGXwhgIetAoYF8JSc33q29QA==",
+ "dev": true,
+ "license": "MIT"
+ },
"node_modules/@types/json-schema": {
"version": "7.0.15",
"resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz",
@@ -5349,6 +6020,16 @@
"integrity": "sha512-HMwFiRujE5PjrgwHQ25+bsLJgowjGjm5Z8FVSf0N6PwgJrwxH0QxzHYDcKsTfV3wva0vzrpqMTJS2jXPr5BMEQ==",
"license": "MIT"
},
+ "node_modules/@types/keyv": {
+ "version": "3.1.4",
+ "resolved": "https://registry.npmjs.org/@types/keyv/-/keyv-3.1.4.tgz",
+ "integrity": "sha512-BQ5aZNSCpj7D6K2ksrRCTmKRLEpnPvWDiLPfoGyhZ++8YtiK9d/3DBKPJgry359X/P1PfruyYwvnvwFjuEiEIg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/node": "*"
+ }
+ },
"node_modules/@types/mdast": {
"version": "4.0.4",
"resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-4.0.4.tgz",
@@ -5381,6 +6062,18 @@
"dev": true,
"license": "MIT"
},
+ "node_modules/@types/plist": {
+ "version": "3.0.5",
+ "resolved": "https://registry.npmjs.org/@types/plist/-/plist-3.0.5.tgz",
+ "integrity": "sha512-E6OCaRmAe4WDmWNsL/9RMqdkkzDCY1etutkflWk4c+AcjDU07Pcz1fQwTX0TQz+Pxqn9i4L1TU3UFpjnrcDgxA==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "@types/node": "*",
+ "xmlbuilder": ">=11.0.1"
+ }
+ },
"node_modules/@types/prismjs": {
"version": "1.26.5",
"resolved": "https://registry.npmjs.org/@types/prismjs/-/prismjs-1.26.5.tgz",
@@ -5431,6 +6124,16 @@
"dev": true,
"license": "MIT"
},
+ "node_modules/@types/responselike": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/@types/responselike/-/responselike-1.0.3.tgz",
+ "integrity": "sha512-H/+L+UkTV33uf49PH5pCAUBVPNj2nDBXTN+qS1dOwyyg24l3CcicicCA7ca+HMvJBZcFgl5r8e+RR6elsb4Lyw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/node": "*"
+ }
+ },
"node_modules/@types/trusted-types": {
"version": "2.0.7",
"resolved": "https://registry.npmjs.org/@types/trusted-types/-/trusted-types-2.0.7.tgz",
@@ -5457,6 +6160,25 @@
"dev": true,
"license": "MIT"
},
+ "node_modules/@types/verror": {
+ "version": "1.10.11",
+ "resolved": "https://registry.npmjs.org/@types/verror/-/verror-1.10.11.tgz",
+ "integrity": "sha512-RlDm9K7+o5stv0Co8i8ZRGxDbrTxhJtgjqjFyVh/tXQyl/rYtTKlnTvZ88oSTeYREWurwx20Js4kTuKCsFkUtg==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true
+ },
+ "node_modules/@types/yauzl": {
+ "version": "2.10.3",
+ "resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.10.3.tgz",
+ "integrity": "sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "@types/node": "*"
+ }
+ },
"node_modules/@typescript-eslint/eslint-plugin": {
"version": "8.31.1",
"resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.31.1.tgz",
@@ -5838,6 +6560,30 @@
"url": "https://opencollective.com/vitest"
}
},
+ "node_modules/@xmldom/xmldom": {
+ "version": "0.8.11",
+ "resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.8.11.tgz",
+ "integrity": "sha512-cQzWCtO6C8TQiYl1ruKNn2U6Ao4o4WBBcbL61yJl84x+j5sOWWFU9X7DpND8XZG3daDppSsigMdfAIl2upQBRw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=10.0.0"
+ }
+ },
+ "node_modules/7zip-bin": {
+ "version": "5.2.0",
+ "resolved": "https://registry.npmjs.org/7zip-bin/-/7zip-bin-5.2.0.tgz",
+ "integrity": "sha512-ukTPVhqG4jNzMro2qA9HSCSSVJN3aN7tlb+hfqYCt3ER0yWroeA2VR38MNrOHLQ/cVj+DaIMad0kFCtWWowh/A==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/abbrev": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz",
+ "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==",
+ "dev": true,
+ "license": "ISC"
+ },
"node_modules/acorn": {
"version": "8.15.0",
"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz",
@@ -5870,6 +6616,33 @@
"node": ">= 14"
}
},
+ "node_modules/agentkeepalive": {
+ "version": "4.6.0",
+ "resolved": "https://registry.npmjs.org/agentkeepalive/-/agentkeepalive-4.6.0.tgz",
+ "integrity": "sha512-kja8j7PjmncONqaTsB8fQ+wE2mSU2DJ9D4XKoJ5PFWIdRMa6SLSN1ff4mOr4jCbfRSsxR4keIiySJU0N9T5hIQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "humanize-ms": "^1.2.1"
+ },
+ "engines": {
+ "node": ">= 8.0.0"
+ }
+ },
+ "node_modules/aggregate-error": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz",
+ "integrity": "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "clean-stack": "^2.0.0",
+ "indent-string": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
"node_modules/ajv": {
"version": "6.12.6",
"resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz",
@@ -5887,6 +6660,16 @@
"url": "https://github.com/sponsors/epoberezkin"
}
},
+ "node_modules/ajv-keywords": {
+ "version": "3.5.2",
+ "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz",
+ "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==",
+ "dev": true,
+ "license": "MIT",
+ "peerDependencies": {
+ "ajv": "^6.9.1"
+ }
+ },
"node_modules/ansi-regex": {
"version": "6.1.0",
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.1.0.tgz",
@@ -5933,6 +6716,93 @@
"node": ">= 8"
}
},
+ "node_modules/app-builder-bin": {
+ "version": "5.0.0-alpha.12",
+ "resolved": "https://registry.npmjs.org/app-builder-bin/-/app-builder-bin-5.0.0-alpha.12.tgz",
+ "integrity": "sha512-j87o0j6LqPL3QRr8yid6c+Tt5gC7xNfYo6uQIQkorAC6MpeayVMZrEDzKmJJ/Hlv7EnOQpaRm53k6ktDYZyB6w==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/app-builder-lib": {
+ "version": "26.0.12",
+ "resolved": "https://registry.npmjs.org/app-builder-lib/-/app-builder-lib-26.0.12.tgz",
+ "integrity": "sha512-+/CEPH1fVKf6HowBUs6LcAIoRcjeqgvAeoSE+cl7Y7LndyQ9ViGPYibNk7wmhMHzNgHIuIbw4nWADPO+4mjgWw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@develar/schema-utils": "~2.6.5",
+ "@electron/asar": "3.2.18",
+ "@electron/fuses": "^1.8.0",
+ "@electron/notarize": "2.5.0",
+ "@electron/osx-sign": "1.3.1",
+ "@electron/rebuild": "3.7.0",
+ "@electron/universal": "2.0.1",
+ "@malept/flatpak-bundler": "^0.4.0",
+ "@types/fs-extra": "9.0.13",
+ "async-exit-hook": "^2.0.1",
+ "builder-util": "26.0.11",
+ "builder-util-runtime": "9.3.1",
+ "chromium-pickle-js": "^0.2.0",
+ "config-file-ts": "0.2.8-rc1",
+ "debug": "^4.3.4",
+ "dotenv": "^16.4.5",
+ "dotenv-expand": "^11.0.6",
+ "ejs": "^3.1.8",
+ "electron-publish": "26.0.11",
+ "fs-extra": "^10.1.0",
+ "hosted-git-info": "^4.1.0",
+ "is-ci": "^3.0.0",
+ "isbinaryfile": "^5.0.0",
+ "js-yaml": "^4.1.0",
+ "json5": "^2.2.3",
+ "lazy-val": "^1.0.5",
+ "minimatch": "^10.0.0",
+ "plist": "3.1.0",
+ "resedit": "^1.7.0",
+ "semver": "^7.3.8",
+ "tar": "^6.1.12",
+ "temp-file": "^3.4.0",
+ "tiny-async-pool": "1.3.0"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ },
+ "peerDependencies": {
+ "dmg-builder": "26.0.12",
+ "electron-builder-squirrel-windows": "26.0.12"
+ }
+ },
+ "node_modules/app-builder-lib/node_modules/fs-extra": {
+ "version": "10.1.0",
+ "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz",
+ "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "graceful-fs": "^4.2.0",
+ "jsonfile": "^6.0.1",
+ "universalify": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/app-builder-lib/node_modules/minimatch": {
+ "version": "10.0.3",
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.0.3.tgz",
+ "integrity": "sha512-IPZ167aShDZZUMdRk66cyQAW3qr0WzbHkPdMYa8bzZhlHhO3jALbKdxcaak7W9FfT2rZNpQuUu4Od7ILEpXSaw==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "@isaacs/brace-expansion": "^5.0.0"
+ },
+ "engines": {
+ "node": "20 || >=22"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
"node_modules/arg": {
"version": "5.0.2",
"resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz",
@@ -6007,6 +6877,17 @@
"url": "https://github.com/sponsors/ljharb"
}
},
+ "node_modules/assert-plus": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz",
+ "integrity": "sha512-NfJ4UzBCcQGLDlQq7nHxH+tv3kyZ0hHQqF5BO6J7tNJeP5do1llPr8dZ8zHonfhAu0PHAdMkSo+8o0wxg9lZWw==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "engines": {
+ "node": ">=0.8"
+ }
+ },
"node_modules/assertion-error": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-2.0.1.tgz",
@@ -6033,6 +6914,17 @@
"url": "https://github.com/sponsors/sxzz"
}
},
+ "node_modules/astral-regex": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz",
+ "integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "engines": {
+ "node": ">=8"
+ }
+ },
"node_modules/async": {
"version": "3.2.6",
"resolved": "https://registry.npmjs.org/async/-/async-3.2.6.tgz",
@@ -6040,6 +6932,16 @@
"dev": true,
"license": "MIT"
},
+ "node_modules/async-exit-hook": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/async-exit-hook/-/async-exit-hook-2.0.1.tgz",
+ "integrity": "sha512-NW2cX8m1Q7KPA7a5M2ULQeZ2wR5qI5PAbw5L0UOMxdioVk9PMZ0h1TmyZEkPYrCvYjDlFICusOu1dlEKAAeXBw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.12.0"
+ }
+ },
"node_modules/async-function": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/async-function/-/async-function-1.0.0.tgz",
@@ -6056,6 +6958,13 @@
"integrity": "sha512-Az2ZTpuytrtqENulXwO3GGv1Bztugx6TT37NIo7imr/Qo0gsYiGtSdBa2B6fsXhTpVZDNfu1Qn3pk531e3q+nQ==",
"license": "MIT"
},
+ "node_modules/asynckit": {
+ "version": "0.4.0",
+ "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
+ "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==",
+ "dev": true,
+ "license": "MIT"
+ },
"node_modules/at-least-node": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz",
@@ -6229,6 +7138,52 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
+ "node_modules/bl": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz",
+ "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "buffer": "^5.5.0",
+ "inherits": "^2.0.4",
+ "readable-stream": "^3.4.0"
+ }
+ },
+ "node_modules/bl/node_modules/buffer": {
+ "version": "5.7.1",
+ "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz",
+ "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "base64-js": "^1.3.1",
+ "ieee754": "^1.1.13"
+ }
+ },
+ "node_modules/boolean": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/boolean/-/boolean-3.2.0.tgz",
+ "integrity": "sha512-d0II/GO9uf9lfUHH2BQsjxzRJZBdsjgsBiW4BvhWk/3qoKwQFjIDVN19PfX8F2D/r9PCMTtLWjYVCFrpeYUzsw==",
+ "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.",
+ "dev": true,
+ "license": "MIT",
+ "optional": true
+ },
"node_modules/brace-expansion": {
"version": "1.1.12",
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz",
@@ -6310,6 +7265,16 @@
"ieee754": "^1.2.1"
}
},
+ "node_modules/buffer-crc32": {
+ "version": "0.2.13",
+ "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz",
+ "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "*"
+ }
+ },
"node_modules/buffer-from": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz",
@@ -6317,6 +7282,61 @@
"dev": true,
"license": "MIT"
},
+ "node_modules/builder-util": {
+ "version": "26.0.11",
+ "resolved": "https://registry.npmjs.org/builder-util/-/builder-util-26.0.11.tgz",
+ "integrity": "sha512-xNjXfsldUEe153h1DraD0XvDOpqGR0L5eKFkdReB7eFW5HqysDZFfly4rckda6y9dF39N3pkPlOblcfHKGw+uA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/debug": "^4.1.6",
+ "7zip-bin": "~5.2.0",
+ "app-builder-bin": "5.0.0-alpha.12",
+ "builder-util-runtime": "9.3.1",
+ "chalk": "^4.1.2",
+ "cross-spawn": "^7.0.6",
+ "debug": "^4.3.4",
+ "fs-extra": "^10.1.0",
+ "http-proxy-agent": "^7.0.0",
+ "https-proxy-agent": "^7.0.0",
+ "is-ci": "^3.0.0",
+ "js-yaml": "^4.1.0",
+ "sanitize-filename": "^1.6.3",
+ "source-map-support": "^0.5.19",
+ "stat-mode": "^1.0.0",
+ "temp-file": "^3.4.0",
+ "tiny-async-pool": "1.3.0"
+ }
+ },
+ "node_modules/builder-util-runtime": {
+ "version": "9.3.1",
+ "resolved": "https://registry.npmjs.org/builder-util-runtime/-/builder-util-runtime-9.3.1.tgz",
+ "integrity": "sha512-2/egrNDDnRaxVwK3A+cJq6UOlqOdedGA7JPqCeJjN2Zjk1/QB/6QUi3b714ScIGS7HafFXTyzJEOr5b44I3kvQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "debug": "^4.3.4",
+ "sax": "^1.2.4"
+ },
+ "engines": {
+ "node": ">=12.0.0"
+ }
+ },
+ "node_modules/builder-util/node_modules/fs-extra": {
+ "version": "10.1.0",
+ "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz",
+ "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "graceful-fs": "^4.2.0",
+ "jsonfile": "^6.0.1",
+ "universalify": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
"node_modules/cac": {
"version": "6.7.14",
"resolved": "https://registry.npmjs.org/cac/-/cac-6.7.14.tgz",
@@ -6327,6 +7347,139 @@
"node": ">=8"
}
},
+ "node_modules/cacache": {
+ "version": "16.1.3",
+ "resolved": "https://registry.npmjs.org/cacache/-/cacache-16.1.3.tgz",
+ "integrity": "sha512-/+Emcj9DAXxX4cwlLmRI9c166RuL3w30zp4R7Joiv2cQTtTtA+jeuCAjH3ZlGnYS3tKENSrKhAzVVP9GVyzeYQ==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "@npmcli/fs": "^2.1.0",
+ "@npmcli/move-file": "^2.0.0",
+ "chownr": "^2.0.0",
+ "fs-minipass": "^2.1.0",
+ "glob": "^8.0.1",
+ "infer-owner": "^1.0.4",
+ "lru-cache": "^7.7.1",
+ "minipass": "^3.1.6",
+ "minipass-collect": "^1.0.2",
+ "minipass-flush": "^1.0.5",
+ "minipass-pipeline": "^1.2.4",
+ "mkdirp": "^1.0.4",
+ "p-map": "^4.0.0",
+ "promise-inflight": "^1.0.1",
+ "rimraf": "^3.0.2",
+ "ssri": "^9.0.0",
+ "tar": "^6.1.11",
+ "unique-filename": "^2.0.0"
+ },
+ "engines": {
+ "node": "^12.13.0 || ^14.15.0 || >=16.0.0"
+ }
+ },
+ "node_modules/cacache/node_modules/brace-expansion": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
+ "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "balanced-match": "^1.0.0"
+ }
+ },
+ "node_modules/cacache/node_modules/glob": {
+ "version": "8.1.0",
+ "resolved": "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz",
+ "integrity": "sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==",
+ "deprecated": "Glob versions prior to v9 are no longer supported",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "fs.realpath": "^1.0.0",
+ "inflight": "^1.0.4",
+ "inherits": "2",
+ "minimatch": "^5.0.1",
+ "once": "^1.3.0"
+ },
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
+ "node_modules/cacache/node_modules/lru-cache": {
+ "version": "7.18.3",
+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz",
+ "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/cacache/node_modules/minimatch": {
+ "version": "5.1.6",
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz",
+ "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "brace-expansion": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/cacache/node_modules/minipass": {
+ "version": "3.3.6",
+ "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz",
+ "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "yallist": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/cacache/node_modules/yallist": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
+ "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/cacheable-lookup": {
+ "version": "5.0.4",
+ "resolved": "https://registry.npmjs.org/cacheable-lookup/-/cacheable-lookup-5.0.4.tgz",
+ "integrity": "sha512-2/kNscPhpcxrOigMZzbiWF7dz8ilhb/nIHU3EyZiXWXpeq/au8qJ8VhdftMkty3n7Gj6HIGalQG8oiBNB3AJgA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=10.6.0"
+ }
+ },
+ "node_modules/cacheable-request": {
+ "version": "7.0.4",
+ "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-7.0.4.tgz",
+ "integrity": "sha512-v+p6ongsrp0yTGbJXjgxPow2+DL93DASP4kXCDKb8/bwRtt9OEF3whggkkDkGNzgcWy2XaF4a8nZglC7uElscg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "clone-response": "^1.0.2",
+ "get-stream": "^5.1.0",
+ "http-cache-semantics": "^4.0.0",
+ "keyv": "^4.0.0",
+ "lowercase-keys": "^2.0.0",
+ "normalize-url": "^6.0.1",
+ "responselike": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
"node_modules/call-bind": {
"version": "1.0.8",
"resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.8.tgz",
@@ -6523,6 +7676,39 @@
"node": ">= 6"
}
},
+ "node_modules/chownr": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz",
+ "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/chromium-pickle-js": {
+ "version": "0.2.0",
+ "resolved": "https://registry.npmjs.org/chromium-pickle-js/-/chromium-pickle-js-0.2.0.tgz",
+ "integrity": "sha512-1R5Fho+jBq0DDydt+/vHWj5KJNJCKdARKOCwZUen84I5BreWoLqRLANH1U87eJy1tiASPtMnGqJJq0ZsLoRPOw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/ci-info": {
+ "version": "3.9.0",
+ "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz",
+ "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/sibiraj-s"
+ }
+ ],
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
"node_modules/class-variance-authority": {
"version": "0.7.1",
"resolved": "https://registry.npmjs.org/class-variance-authority/-/class-variance-authority-0.7.1.tgz",
@@ -6541,6 +7727,109 @@
"integrity": "sha512-bLSptAy2P0s6hU4PzuIMKmMJJSE6gLXGH1cntDu7bWJUksvuM+7ReOK61mozULErYvP6a15rnYl0zFDef+pyPw==",
"license": "Apache-2.0"
},
+ "node_modules/clean-stack": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz",
+ "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/cli-cursor": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz",
+ "integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "restore-cursor": "^3.1.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/cli-spinners": {
+ "version": "2.9.2",
+ "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.9.2.tgz",
+ "integrity": "sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/cli-truncate": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-2.1.0.tgz",
+ "integrity": "sha512-n8fOixwDD6b/ObinzTrp1ZKFzbgvKZvuz/TvejnLn1aQfC6r52XEx85FmuC+3HI+JM7coBRXUvNqEU2PHVrHpg==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "slice-ansi": "^3.0.0",
+ "string-width": "^4.2.0"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/cli-truncate/node_modules/ansi-regex": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/cli-truncate/node_modules/emoji-regex": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true
+ },
+ "node_modules/cli-truncate/node_modules/string-width": {
+ "version": "4.2.3",
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
+ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "emoji-regex": "^8.0.0",
+ "is-fullwidth-code-point": "^3.0.0",
+ "strip-ansi": "^6.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/cli-truncate/node_modules/strip-ansi": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "ansi-regex": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
"node_modules/cliui": {
"version": "6.0.0",
"resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz",
@@ -6607,6 +7896,39 @@
"node": ">=8"
}
},
+ "node_modules/clone": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz",
+ "integrity": "sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.8"
+ }
+ },
+ "node_modules/clone-response": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.3.tgz",
+ "integrity": "sha512-ROoL94jJH2dUVML2Y/5PEDNaSHgeOdSDicUyS7izcF63G6sTc/FTjLub4b8Il9S8S0beOfYt0TaA5qvFK+w0wA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "mimic-response": "^1.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/clone-response/node_modules/mimic-response": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz",
+ "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
"node_modules/clsx": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz",
@@ -6650,6 +7972,19 @@
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
"license": "MIT"
},
+ "node_modules/combined-stream": {
+ "version": "1.0.8",
+ "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
+ "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "delayed-stream": "~1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
"node_modules/comma-separated-tokens": {
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-2.0.3.tgz",
@@ -6679,6 +8014,16 @@
"node": ">=4.0.0"
}
},
+ "node_modules/compare-version": {
+ "version": "0.1.2",
+ "resolved": "https://registry.npmjs.org/compare-version/-/compare-version-0.1.2.tgz",
+ "integrity": "sha512-pJDh5/4wrEnXX/VWRZvruAGHkzKdr46z11OlTPN+VrATlWWhSKewNCJ1futCO5C7eJB3nPMFZA1LeYtcFboZ2A==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
"node_modules/concat-map": {
"version": "0.0.1",
"resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
@@ -6692,6 +8037,17 @@
"integrity": "sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w==",
"license": "MIT"
},
+ "node_modules/config-file-ts": {
+ "version": "0.2.8-rc1",
+ "resolved": "https://registry.npmjs.org/config-file-ts/-/config-file-ts-0.2.8-rc1.tgz",
+ "integrity": "sha512-GtNECbVI82bT4RiDIzBSVuTKoSHufnU7Ce7/42bkWZJZFLjmDF2WBpVsvRkhKCfKBnTBb3qZrBwPpFBU/Myvhg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "glob": "^10.3.12",
+ "typescript": "^5.4.3"
+ }
+ },
"node_modules/convert-source-map": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz",
@@ -6719,6 +8075,17 @@
"integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==",
"license": "MIT"
},
+ "node_modules/crc": {
+ "version": "3.8.0",
+ "resolved": "https://registry.npmjs.org/crc/-/crc-3.8.0.tgz",
+ "integrity": "sha512-iX3mfgcTMIq3ZKLIsVFAbv7+Mc10kxabAGQb8HvjA1o3T1PIYprbakQ65d3I+2HGHt6nSKkM9PYjgoJO2KcFBQ==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "buffer": "^5.1.0"
+ }
+ },
"node_modules/crc-32": {
"version": "1.2.2",
"resolved": "https://registry.npmjs.org/crc-32/-/crc-32-1.2.2.tgz",
@@ -6731,6 +8098,32 @@
"node": ">=0.8"
}
},
+ "node_modules/crc/node_modules/buffer": {
+ "version": "5.7.1",
+ "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz",
+ "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ],
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "base64-js": "^1.3.1",
+ "ieee754": "^1.1.13"
+ }
+ },
"node_modules/cross-spawn": {
"version": "7.0.6",
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",
@@ -7097,6 +8490,29 @@
"node": ">=0.10.0"
}
},
+ "node_modules/defaults": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.4.tgz",
+ "integrity": "sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "clone": "^1.0.2"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/defer-to-connect": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-2.0.1.tgz",
+ "integrity": "sha512-4tvttepXG1VaYGrRibk5EwJd1t4udunSOVMdLSAL6mId1ix438oPwPZMALY41FCijukO1L0twNcGsdzS7dHgDg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ }
+ },
"node_modules/define-data-property": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz",
@@ -7132,6 +8548,16 @@
"url": "https://github.com/sponsors/ljharb"
}
},
+ "node_modules/delayed-stream": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
+ "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.4.0"
+ }
+ },
"node_modules/dequal": {
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz",
@@ -7141,6 +8567,24 @@
"node": ">=6"
}
},
+ "node_modules/detect-libc": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz",
+ "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/detect-node": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/detect-node/-/detect-node-2.1.0.tgz",
+ "integrity": "sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true
+ },
"node_modules/detect-node-es": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/detect-node-es/-/detect-node-es-1.1.0.tgz",
@@ -7178,12 +8622,83 @@
"integrity": "sha512-qiSlmBq9+BCdCA/L46dw8Uy93mloxsPSbwnm5yrKn2vMPiy8KyAskTF6zuV/j5BMsmOGZDPs7KjU+mjb670kfA==",
"license": "MIT"
},
+ "node_modules/dir-compare": {
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/dir-compare/-/dir-compare-4.2.0.tgz",
+ "integrity": "sha512-2xMCmOoMrdQIPHdsTawECdNPwlVFB9zGcz3kuhmBO6U3oU+UQjsue0i8ayLKpgBcm+hcXPMVSGUN9d+pvJ6+VQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "minimatch": "^3.0.5",
+ "p-limit": "^3.1.0 "
+ }
+ },
"node_modules/dlv": {
"version": "1.1.3",
"resolved": "https://registry.npmjs.org/dlv/-/dlv-1.1.3.tgz",
"integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==",
"license": "MIT"
},
+ "node_modules/dmg-builder": {
+ "version": "26.0.12",
+ "resolved": "https://registry.npmjs.org/dmg-builder/-/dmg-builder-26.0.12.tgz",
+ "integrity": "sha512-59CAAjAhTaIMCN8y9kD573vDkxbs1uhDcrFLHSgutYdPcGOU35Rf95725snvzEOy4BFB7+eLJ8djCNPmGwG67w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "app-builder-lib": "26.0.12",
+ "builder-util": "26.0.11",
+ "builder-util-runtime": "9.3.1",
+ "fs-extra": "^10.1.0",
+ "iconv-lite": "^0.6.2",
+ "js-yaml": "^4.1.0"
+ },
+ "optionalDependencies": {
+ "dmg-license": "^1.0.11"
+ }
+ },
+ "node_modules/dmg-builder/node_modules/fs-extra": {
+ "version": "10.1.0",
+ "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz",
+ "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "graceful-fs": "^4.2.0",
+ "jsonfile": "^6.0.1",
+ "universalify": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/dmg-license": {
+ "version": "1.0.11",
+ "resolved": "https://registry.npmjs.org/dmg-license/-/dmg-license-1.0.11.tgz",
+ "integrity": "sha512-ZdzmqwKmECOWJpqefloC5OJy1+WZBBse5+MR88z9g9Zn4VY+WYUkAyojmhzJckH5YbbZGcYIuGAkY5/Ys5OM2Q==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "dependencies": {
+ "@types/plist": "^3.0.1",
+ "@types/verror": "^1.10.3",
+ "ajv": "^6.10.0",
+ "crc": "^3.8.0",
+ "iconv-corefoundation": "^1.1.7",
+ "plist": "^3.0.4",
+ "smart-buffer": "^4.0.2",
+ "verror": "^1.10.0"
+ },
+ "bin": {
+ "dmg-license": "bin/dmg-license.js"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
"node_modules/dom-accessibility-api": {
"version": "0.5.16",
"resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.5.16.tgz",
@@ -7202,6 +8717,35 @@
"csstype": "^3.0.2"
}
},
+ "node_modules/dotenv": {
+ "version": "16.6.1",
+ "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.6.1.tgz",
+ "integrity": "sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://dotenvx.com"
+ }
+ },
+ "node_modules/dotenv-expand": {
+ "version": "11.0.7",
+ "resolved": "https://registry.npmjs.org/dotenv-expand/-/dotenv-expand-11.0.7.tgz",
+ "integrity": "sha512-zIHwmZPRshsCdpMDyVsqGmgyP0yT8GAgXUnkdAoJisxvf33k7yO6OuoKmcTGuXPWSsm8Oh88nZicRLA9Y0rUeA==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "dotenv": "^16.4.5"
+ },
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://dotenvx.com"
+ }
+ },
"node_modules/dunder-proto": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",
@@ -7238,6 +8782,241 @@
"node": ">=0.10.0"
}
},
+ "node_modules/electron": {
+ "version": "38.4.0",
+ "resolved": "https://registry.npmjs.org/electron/-/electron-38.4.0.tgz",
+ "integrity": "sha512-9CsXKbGf2qpofVe2pQYSgom2E//zLDJO2rGLLbxgy9tkdTOs7000Gte+d/PUtzLjI/DS95jDK0ojYAeqjLvpYg==",
+ "dev": true,
+ "hasInstallScript": true,
+ "license": "MIT",
+ "dependencies": {
+ "@electron/get": "^2.0.0",
+ "@types/node": "^22.7.7",
+ "extract-zip": "^2.0.1"
+ },
+ "bin": {
+ "electron": "cli.js"
+ },
+ "engines": {
+ "node": ">= 12.20.55"
+ }
+ },
+ "node_modules/electron-builder": {
+ "version": "26.0.12",
+ "resolved": "https://registry.npmjs.org/electron-builder/-/electron-builder-26.0.12.tgz",
+ "integrity": "sha512-cD1kz5g2sgPTMFHjLxfMjUK5JABq3//J4jPswi93tOPFz6btzXYtK5NrDt717NRbukCUDOrrvmYVOWERlqoiXA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "app-builder-lib": "26.0.12",
+ "builder-util": "26.0.11",
+ "builder-util-runtime": "9.3.1",
+ "chalk": "^4.1.2",
+ "dmg-builder": "26.0.12",
+ "fs-extra": "^10.1.0",
+ "is-ci": "^3.0.0",
+ "lazy-val": "^1.0.5",
+ "simple-update-notifier": "2.0.0",
+ "yargs": "^17.6.2"
+ },
+ "bin": {
+ "electron-builder": "cli.js",
+ "install-app-deps": "install-app-deps.js"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ }
+ },
+ "node_modules/electron-builder-squirrel-windows": {
+ "version": "26.0.12",
+ "resolved": "https://registry.npmjs.org/electron-builder-squirrel-windows/-/electron-builder-squirrel-windows-26.0.12.tgz",
+ "integrity": "sha512-kpwXM7c/ayRUbYVErQbsZ0nQZX4aLHQrPEG9C4h9vuJCXylwFH8a7Jgi2VpKIObzCXO7LKHiCw4KdioFLFOgqA==",
+ "dev": true,
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "app-builder-lib": "26.0.12",
+ "builder-util": "26.0.11",
+ "electron-winstaller": "5.4.0"
+ }
+ },
+ "node_modules/electron-builder/node_modules/ansi-regex": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/electron-builder/node_modules/cliui": {
+ "version": "8.0.1",
+ "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz",
+ "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "string-width": "^4.2.0",
+ "strip-ansi": "^6.0.1",
+ "wrap-ansi": "^7.0.0"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/electron-builder/node_modules/emoji-regex": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/electron-builder/node_modules/fs-extra": {
+ "version": "10.1.0",
+ "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz",
+ "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "graceful-fs": "^4.2.0",
+ "jsonfile": "^6.0.1",
+ "universalify": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/electron-builder/node_modules/string-width": {
+ "version": "4.2.3",
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
+ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "emoji-regex": "^8.0.0",
+ "is-fullwidth-code-point": "^3.0.0",
+ "strip-ansi": "^6.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/electron-builder/node_modules/strip-ansi": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-regex": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/electron-builder/node_modules/wrap-ansi": {
+ "version": "7.0.0",
+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
+ "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-styles": "^4.0.0",
+ "string-width": "^4.1.0",
+ "strip-ansi": "^6.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/wrap-ansi?sponsor=1"
+ }
+ },
+ "node_modules/electron-builder/node_modules/y18n": {
+ "version": "5.0.8",
+ "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz",
+ "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/electron-builder/node_modules/yargs": {
+ "version": "17.7.2",
+ "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz",
+ "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "cliui": "^8.0.1",
+ "escalade": "^3.1.1",
+ "get-caller-file": "^2.0.5",
+ "require-directory": "^2.1.1",
+ "string-width": "^4.2.3",
+ "y18n": "^5.0.5",
+ "yargs-parser": "^21.1.1"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/electron-builder/node_modules/yargs-parser": {
+ "version": "21.1.1",
+ "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz",
+ "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/electron-publish": {
+ "version": "26.0.11",
+ "resolved": "https://registry.npmjs.org/electron-publish/-/electron-publish-26.0.11.tgz",
+ "integrity": "sha512-a8QRH0rAPIWH9WyyS5LbNvW9Ark6qe63/LqDB7vu2JXYpi0Gma5Q60Dh4tmTqhOBQt0xsrzD8qE7C+D7j+B24A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/fs-extra": "^9.0.11",
+ "builder-util": "26.0.11",
+ "builder-util-runtime": "9.3.1",
+ "chalk": "^4.1.2",
+ "form-data": "^4.0.0",
+ "fs-extra": "^10.1.0",
+ "lazy-val": "^1.0.5",
+ "mime": "^2.5.2"
+ }
+ },
+ "node_modules/electron-publish/node_modules/fs-extra": {
+ "version": "10.1.0",
+ "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz",
+ "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "graceful-fs": "^4.2.0",
+ "jsonfile": "^6.0.1",
+ "universalify": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/electron-publish/node_modules/mime": {
+ "version": "2.6.0",
+ "resolved": "https://registry.npmjs.org/mime/-/mime-2.6.0.tgz",
+ "integrity": "sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "mime": "cli.js"
+ },
+ "engines": {
+ "node": ">=4.0.0"
+ }
+ },
"node_modules/electron-to-chromium": {
"version": "1.5.240",
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.240.tgz",
@@ -7245,6 +9024,66 @@
"dev": true,
"license": "ISC"
},
+ "node_modules/electron-winstaller": {
+ "version": "5.4.0",
+ "resolved": "https://registry.npmjs.org/electron-winstaller/-/electron-winstaller-5.4.0.tgz",
+ "integrity": "sha512-bO3y10YikuUwUuDUQRM4KfwNkKhnpVO7IPdbsrejwN9/AABJzzTQ4GeHwyzNSrVO+tEH3/Np255a3sVZpZDjvg==",
+ "dev": true,
+ "hasInstallScript": true,
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "@electron/asar": "^3.2.1",
+ "debug": "^4.1.1",
+ "fs-extra": "^7.0.1",
+ "lodash": "^4.17.21",
+ "temp": "^0.9.0"
+ },
+ "engines": {
+ "node": ">=8.0.0"
+ },
+ "optionalDependencies": {
+ "@electron/windows-sign": "^1.1.2"
+ }
+ },
+ "node_modules/electron-winstaller/node_modules/fs-extra": {
+ "version": "7.0.1",
+ "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz",
+ "integrity": "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==",
+ "dev": true,
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "graceful-fs": "^4.1.2",
+ "jsonfile": "^4.0.0",
+ "universalify": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=6 <7 || >=8"
+ }
+ },
+ "node_modules/electron-winstaller/node_modules/jsonfile": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz",
+ "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==",
+ "dev": true,
+ "license": "MIT",
+ "peer": true,
+ "optionalDependencies": {
+ "graceful-fs": "^4.1.6"
+ }
+ },
+ "node_modules/electron-winstaller/node_modules/universalify": {
+ "version": "0.1.2",
+ "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz",
+ "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==",
+ "dev": true,
+ "license": "MIT",
+ "peer": true,
+ "engines": {
+ "node": ">= 4.0.0"
+ }
+ },
"node_modules/embla-carousel": {
"version": "8.6.0",
"resolved": "https://registry.npmjs.org/embla-carousel/-/embla-carousel-8.6.0.tgz",
@@ -7279,6 +9118,27 @@
"integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==",
"license": "MIT"
},
+ "node_modules/encoding": {
+ "version": "0.1.13",
+ "resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.13.tgz",
+ "integrity": "sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "iconv-lite": "^0.6.2"
+ }
+ },
+ "node_modules/end-of-stream": {
+ "version": "1.4.5",
+ "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.5.tgz",
+ "integrity": "sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "once": "^1.4.0"
+ }
+ },
"node_modules/entities": {
"version": "6.0.0",
"resolved": "https://registry.npmjs.org/entities/-/entities-6.0.0.tgz",
@@ -7291,6 +9151,23 @@
"url": "https://github.com/fb55/entities?sponsor=1"
}
},
+ "node_modules/env-paths": {
+ "version": "2.2.1",
+ "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz",
+ "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/err-code": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/err-code/-/err-code-2.0.3.tgz",
+ "integrity": "sha512-2bmlRpNKBxT/CRmPOlyISQpNj+qSeYvcym/uT0Jx2bMOlKLtSy1ZmLuVxSEKKyor/N5yhvp/ZiG1oE3DEYMSFA==",
+ "dev": true,
+ "license": "MIT"
+ },
"node_modules/es-abstract": {
"version": "1.24.0",
"resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.24.0.tgz",
@@ -7438,6 +9315,14 @@
"url": "https://github.com/sponsors/ljharb"
}
},
+ "node_modules/es6-error": {
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/es6-error/-/es6-error-4.1.1.tgz",
+ "integrity": "sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true
+ },
"node_modules/esbuild": {
"version": "0.25.5",
"resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.5.tgz",
@@ -7737,12 +9622,51 @@
"node": ">=12.0.0"
}
},
+ "node_modules/exponential-backoff": {
+ "version": "3.1.3",
+ "resolved": "https://registry.npmjs.org/exponential-backoff/-/exponential-backoff-3.1.3.tgz",
+ "integrity": "sha512-ZgEeZXj30q+I0EN+CbSSpIyPaJ5HVQD18Z1m+u1FXbAeT94mr1zw50q4q6jiiC447Nl/YTcIYSAftiGqetwXCA==",
+ "dev": true,
+ "license": "Apache-2.0"
+ },
"node_modules/extend": {
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz",
"integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==",
"license": "MIT"
},
+ "node_modules/extract-zip": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-2.0.1.tgz",
+ "integrity": "sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "debug": "^4.1.1",
+ "get-stream": "^5.1.0",
+ "yauzl": "^2.10.0"
+ },
+ "bin": {
+ "extract-zip": "cli.js"
+ },
+ "engines": {
+ "node": ">= 10.17.0"
+ },
+ "optionalDependencies": {
+ "@types/yauzl": "^2.9.1"
+ }
+ },
+ "node_modules/extsprintf": {
+ "version": "1.4.1",
+ "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.4.1.tgz",
+ "integrity": "sha512-Wrk35e8ydCKDj/ArClo1VrPVmN8zph5V4AtHwIuHhvMXsKf73UT3BOD+azBIW+3wOJ4FhEH7zyaJCFvChjYvMA==",
+ "dev": true,
+ "engines": [
+ "node >=0.6.0"
+ ],
+ "license": "MIT",
+ "optional": true
+ },
"node_modules/fast-deep-equal": {
"version": "3.1.3",
"resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
@@ -7833,6 +9757,16 @@
"reusify": "^1.0.4"
}
},
+ "node_modules/fd-slicer": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz",
+ "integrity": "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "pend": "~1.2.0"
+ }
+ },
"node_modules/file-entry-cache": {
"version": "8.0.0",
"resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz",
@@ -7960,6 +9894,23 @@
"url": "https://github.com/sponsors/isaacs"
}
},
+ "node_modules/form-data": {
+ "version": "4.0.4",
+ "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.4.tgz",
+ "integrity": "sha512-KrGhL9Q4zjj0kiUt5OO4Mr/A/jlI2jDYs5eHBpYHPcBEVSiipAvn2Ko2HnPe20rmcuuvMHNdZFp+4IlGTMF0Ow==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "asynckit": "^0.4.0",
+ "combined-stream": "^1.0.8",
+ "es-set-tostringtag": "^2.1.0",
+ "hasown": "^2.0.2",
+ "mime-types": "^2.1.12"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
"node_modules/fraction.js": {
"version": "4.3.7",
"resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.3.7.tgz",
@@ -7990,6 +9941,39 @@
"node": ">=10"
}
},
+ "node_modules/fs-minipass": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz",
+ "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "minipass": "^3.0.0"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/fs-minipass/node_modules/minipass": {
+ "version": "3.3.6",
+ "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz",
+ "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "yallist": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/fs-minipass/node_modules/yallist": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
+ "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",
+ "dev": true,
+ "license": "ISC"
+ },
"node_modules/fs.realpath": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
@@ -8133,6 +10117,22 @@
"node": ">= 0.4"
}
},
+ "node_modules/get-stream": {
+ "version": "5.2.0",
+ "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz",
+ "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "pump": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
"node_modules/get-symbol-description": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.1.0.tgz",
@@ -8207,6 +10207,25 @@
"url": "https://github.com/sponsors/isaacs"
}
},
+ "node_modules/global-agent": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/global-agent/-/global-agent-3.0.0.tgz",
+ "integrity": "sha512-PT6XReJ+D07JvGoxQMkT6qji/jVNfX/h364XHZOWeRzy64sSFr+xJ5OX7LI3b4MPQzdL4H8Y8M0xzPpsVMwA8Q==",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "optional": true,
+ "dependencies": {
+ "boolean": "^3.0.1",
+ "es6-error": "^4.1.1",
+ "matcher": "^3.0.0",
+ "roarr": "^2.15.3",
+ "semver": "^7.3.2",
+ "serialize-error": "^7.0.1"
+ },
+ "engines": {
+ "node": ">=10.0"
+ }
+ },
"node_modules/globals": {
"version": "15.15.0",
"resolved": "https://registry.npmjs.org/globals/-/globals-15.15.0.tgz",
@@ -8249,6 +10268,32 @@
"url": "https://github.com/sponsors/ljharb"
}
},
+ "node_modules/got": {
+ "version": "11.8.6",
+ "resolved": "https://registry.npmjs.org/got/-/got-11.8.6.tgz",
+ "integrity": "sha512-6tfZ91bOr7bOXnK7PRDCGBLa1H4U080YHNaAQ2KsMGlLEzRbk44nsZF2E1IeRc3vtJHPVbKCYgdFbaGO2ljd8g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@sindresorhus/is": "^4.0.0",
+ "@szmarczak/http-timer": "^4.0.5",
+ "@types/cacheable-request": "^6.0.1",
+ "@types/responselike": "^1.0.0",
+ "cacheable-lookup": "^5.0.3",
+ "cacheable-request": "^7.0.2",
+ "decompress-response": "^6.0.0",
+ "http2-wrapper": "^1.0.0-beta.5.2",
+ "lowercase-keys": "^2.0.0",
+ "p-cancelable": "^2.0.0",
+ "responselike": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=10.19.0"
+ },
+ "funding": {
+ "url": "https://github.com/sindresorhus/got?sponsor=1"
+ }
+ },
"node_modules/graceful-fs": {
"version": "4.2.11",
"resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz",
@@ -8560,6 +10605,39 @@
"integrity": "sha512-Yc+BQe8SvoXH1643Qez1zqLRmbA5rCL+sSmk6TVos0LWVfNIB7PGncdlId77WzLGSIB5KaWgTaNTs2lNVEI6VQ==",
"license": "MIT"
},
+ "node_modules/hosted-git-info": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.1.0.tgz",
+ "integrity": "sha512-kyCuEOWjJqZuDbRHzL8V93NzQhwIB71oFWSyzVo+KPZI+pnQPPxucdkrOZvkLRnrf5URsQM+IJ09Dw29cRALIA==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "lru-cache": "^6.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/hosted-git-info/node_modules/lru-cache": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",
+ "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "yallist": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/hosted-git-info/node_modules/yallist": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
+ "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",
+ "dev": true,
+ "license": "ISC"
+ },
"node_modules/html-encoding-sniffer": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-4.0.0.tgz",
@@ -8602,6 +10680,13 @@
"url": "https://github.com/sponsors/wooorm"
}
},
+ "node_modules/http-cache-semantics": {
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.2.0.tgz",
+ "integrity": "sha512-dTxcvPXqPvXBQpq5dUr6mEMJX4oIEFv6bwom3FDwKRDsuIjjJGANqhBuoAn9c1RQJIdAKav33ED65E2ys+87QQ==",
+ "dev": true,
+ "license": "BSD-2-Clause"
+ },
"node_modules/http-proxy-agent": {
"version": "7.0.2",
"resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz",
@@ -8616,6 +10701,20 @@
"node": ">= 14"
}
},
+ "node_modules/http2-wrapper": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/http2-wrapper/-/http2-wrapper-1.0.3.tgz",
+ "integrity": "sha512-V+23sDMr12Wnz7iTcDeJr3O6AIxlnvT/bmaAAAP/Xda35C90p9599p0F1eHR/N1KILWSoWVAiOMFjBBXaXSMxg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "quick-lru": "^5.1.1",
+ "resolve-alpn": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=10.19.0"
+ }
+ },
"node_modules/https-proxy-agent": {
"version": "7.0.6",
"resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz",
@@ -8630,6 +10729,16 @@
"node": ">= 14"
}
},
+ "node_modules/humanize-ms": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/humanize-ms/-/humanize-ms-1.2.1.tgz",
+ "integrity": "sha512-Fl70vYtsAFb/C06PTS9dZBo7ihau+Tu/DNCk/OyHhea07S+aeMWpFFkUaXRa8fI+ScZbEI8dfSxwY7gxZ9SAVQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ms": "^2.0.0"
+ }
+ },
"node_modules/i18next": {
"version": "25.5.2",
"resolved": "https://registry.npmjs.org/i18next/-/i18next-25.5.2.tgz",
@@ -8661,6 +10770,24 @@
}
}
},
+ "node_modules/iconv-corefoundation": {
+ "version": "1.1.7",
+ "resolved": "https://registry.npmjs.org/iconv-corefoundation/-/iconv-corefoundation-1.1.7.tgz",
+ "integrity": "sha512-T10qvkw0zz4wnm560lOEg0PovVqUXuOFhhHAkixw8/sycy7TJt7v/RrkEKEQnAw2viPSJu6iAkErxnzR0g8PpQ==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "dependencies": {
+ "cli-truncate": "^2.1.0",
+ "node-addon-api": "^1.6.3"
+ },
+ "engines": {
+ "node": "^8.11.2 || >=10"
+ }
+ },
"node_modules/iconv-lite": {
"version": "0.6.3",
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz",
@@ -8753,6 +10880,13 @@
"node": ">=8"
}
},
+ "node_modules/infer-owner": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmjs.org/infer-owner/-/infer-owner-1.0.4.tgz",
+ "integrity": "sha512-IClj+Xz94+d7irH5qRyfJonOdfTzuDaifE6ZPWfx0N0+/ATZCbuTPq2prFl526urkQd90WyUKIh1DfBQ2hMz9A==",
+ "dev": true,
+ "license": "ISC"
+ },
"node_modules/inflight": {
"version": "1.0.6",
"resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
@@ -8811,6 +10945,16 @@
"node": ">=12"
}
},
+ "node_modules/ip-address": {
+ "version": "10.0.1",
+ "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-10.0.1.tgz",
+ "integrity": "sha512-NWv9YLW4PoW2B7xtzaS3NCot75m6nK7Icdv0o3lfMceJVRfSoQwqD4wEH5rLwoKJwUiZ/rfpiVBhnaF0FK4HoA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 12"
+ }
+ },
"node_modules/is-array-buffer": {
"version": "3.0.5",
"resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.5.tgz",
@@ -8906,6 +11050,19 @@
"url": "https://github.com/sponsors/ljharb"
}
},
+ "node_modules/is-ci": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-3.0.1.tgz",
+ "integrity": "sha512-ZYvCgrefwqoQ6yTyYUbQu64HsITZ3NfKX1lzaEYdkTDcfKzzCI/wthRRYKkdjHKFVgNiXKAKm65Zo1pk2as/QQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ci-info": "^3.2.0"
+ },
+ "bin": {
+ "is-ci": "bin.js"
+ }
+ },
"node_modules/is-core-module": {
"version": "2.16.1",
"resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz",
@@ -9022,6 +11179,23 @@
"node": ">=0.10.0"
}
},
+ "node_modules/is-interactive": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-1.0.0.tgz",
+ "integrity": "sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/is-lambda": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/is-lambda/-/is-lambda-1.0.1.tgz",
+ "integrity": "sha512-z7CMFGNrENq5iFB9Bqo64Xk6Y9sg+epq1myIcdHaGnbMTYOxvzsEtdYqQUylB7LxfkvgrrjP32T6Ywciio9UIQ==",
+ "dev": true,
+ "license": "MIT"
+ },
"node_modules/is-map": {
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.3.tgz",
@@ -9231,6 +11405,19 @@
"url": "https://github.com/sponsors/ljharb"
}
},
+ "node_modules/is-unicode-supported": {
+ "version": "0.1.0",
+ "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz",
+ "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
"node_modules/is-weakmap": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.2.tgz",
@@ -9283,6 +11470,19 @@
"integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==",
"license": "MIT"
},
+ "node_modules/isbinaryfile": {
+ "version": "5.0.6",
+ "resolved": "https://registry.npmjs.org/isbinaryfile/-/isbinaryfile-5.0.6.tgz",
+ "integrity": "sha512-I+NmIfBHUl+r2wcDd6JwE9yWje/PIVY/R5/CmV8dXLZd5K+L9X2klAOwfAHNnondLXkbHyTAleQAWonpTJBTtw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 18.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/gjtorikian/"
+ }
+ },
"node_modules/isexe": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
@@ -9483,6 +11683,14 @@
"dev": true,
"license": "MIT"
},
+ "node_modules/json-stringify-safe": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz",
+ "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==",
+ "dev": true,
+ "license": "ISC",
+ "optional": true
+ },
"node_modules/json5": {
"version": "2.2.3",
"resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",
@@ -9620,6 +11828,13 @@
"json-buffer": "3.0.1"
}
},
+ "node_modules/lazy-val": {
+ "version": "1.0.5",
+ "resolved": "https://registry.npmjs.org/lazy-val/-/lazy-val-1.0.5.tgz",
+ "integrity": "sha512-0/BnGCCfyUMkBpeDgWihanIAF9JmZhHBgUhEqzvf+adhNGLoP6TaiI5oF8oyb3I45P+PcnrqihSf01M0l0G5+Q==",
+ "dev": true,
+ "license": "MIT"
+ },
"node_modules/leven": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz",
@@ -9728,6 +11943,23 @@
"dev": true,
"license": "MIT"
},
+ "node_modules/log-symbols": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz",
+ "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "chalk": "^4.1.0",
+ "is-unicode-supported": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
"node_modules/longest-streak": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/longest-streak/-/longest-streak-3.1.0.tgz",
@@ -9757,6 +11989,16 @@
"dev": true,
"license": "MIT"
},
+ "node_modules/lowercase-keys": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz",
+ "integrity": "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
"node_modules/lru-cache": {
"version": "10.4.3",
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz",
@@ -9807,6 +12049,106 @@
"url": "https://github.com/sponsors/sxzz"
}
},
+ "node_modules/make-fetch-happen": {
+ "version": "10.2.1",
+ "resolved": "https://registry.npmjs.org/make-fetch-happen/-/make-fetch-happen-10.2.1.tgz",
+ "integrity": "sha512-NgOPbRiaQM10DYXvN3/hhGVI2M5MtITFryzBGxHM5p4wnFxsVCbxkrBrDsk+EZ5OB4jEOT7AjDxtdF+KVEFT7w==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "agentkeepalive": "^4.2.1",
+ "cacache": "^16.1.0",
+ "http-cache-semantics": "^4.1.0",
+ "http-proxy-agent": "^5.0.0",
+ "https-proxy-agent": "^5.0.0",
+ "is-lambda": "^1.0.1",
+ "lru-cache": "^7.7.1",
+ "minipass": "^3.1.6",
+ "minipass-collect": "^1.0.2",
+ "minipass-fetch": "^2.0.3",
+ "minipass-flush": "^1.0.5",
+ "minipass-pipeline": "^1.2.4",
+ "negotiator": "^0.6.3",
+ "promise-retry": "^2.0.1",
+ "socks-proxy-agent": "^7.0.0",
+ "ssri": "^9.0.0"
+ },
+ "engines": {
+ "node": "^12.13.0 || ^14.15.0 || >=16.0.0"
+ }
+ },
+ "node_modules/make-fetch-happen/node_modules/agent-base": {
+ "version": "6.0.2",
+ "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz",
+ "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "debug": "4"
+ },
+ "engines": {
+ "node": ">= 6.0.0"
+ }
+ },
+ "node_modules/make-fetch-happen/node_modules/http-proxy-agent": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-5.0.0.tgz",
+ "integrity": "sha512-n2hY8YdoRE1i7r6M0w9DIw5GgZN0G25P8zLCRQ8rjXtTU3vsNFBI/vWK/UIeE6g5MUUz6avwAPXmL6Fy9D/90w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@tootallnate/once": "2",
+ "agent-base": "6",
+ "debug": "4"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/make-fetch-happen/node_modules/https-proxy-agent": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz",
+ "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "agent-base": "6",
+ "debug": "4"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/make-fetch-happen/node_modules/lru-cache": {
+ "version": "7.18.3",
+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz",
+ "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/make-fetch-happen/node_modules/minipass": {
+ "version": "3.3.6",
+ "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz",
+ "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "yallist": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/make-fetch-happen/node_modules/yallist": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
+ "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",
+ "dev": true,
+ "license": "ISC"
+ },
"node_modules/markdown-table": {
"version": "3.0.4",
"resolved": "https://registry.npmjs.org/markdown-table/-/markdown-table-3.0.4.tgz",
@@ -9829,6 +12171,20 @@
"node": ">= 20"
}
},
+ "node_modules/matcher": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/matcher/-/matcher-3.0.0.tgz",
+ "integrity": "sha512-OkeDaAZ/bQCxeFAozM55PKcKU0yJMPGifLwV4Qgjitu+5MoAfSQN4lsLJeXZ1b8w0x+/Emda6MZgXS1jvsapng==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "escape-string-regexp": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
"node_modules/math-intrinsics": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",
@@ -10847,6 +13203,39 @@
"node": ">=16"
}
},
+ "node_modules/mime-db": {
+ "version": "1.52.0",
+ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
+ "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/mime-types": {
+ "version": "2.1.35",
+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
+ "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "mime-db": "1.52.0"
+ },
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/mimic-fn": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz",
+ "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
"node_modules/mimic-response": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz",
@@ -10909,6 +13298,223 @@
"node": ">=16 || 14 >=14.17"
}
},
+ "node_modules/minipass-collect": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/minipass-collect/-/minipass-collect-1.0.2.tgz",
+ "integrity": "sha512-6T6lH0H8OG9kITm/Jm6tdooIbogG9e0tLgpY6mphXSm/A9u8Nq1ryBG+Qspiub9LjWlBPsPS3tWQ/Botq4FdxA==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "minipass": "^3.0.0"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/minipass-collect/node_modules/minipass": {
+ "version": "3.3.6",
+ "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz",
+ "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "yallist": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/minipass-collect/node_modules/yallist": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
+ "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/minipass-fetch": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/minipass-fetch/-/minipass-fetch-2.1.2.tgz",
+ "integrity": "sha512-LT49Zi2/WMROHYoqGgdlQIZh8mLPZmOrN2NdJjMXxYe4nkN6FUyuPuOAOedNJDrx0IRGg9+4guZewtp8hE6TxA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "minipass": "^3.1.6",
+ "minipass-sized": "^1.0.3",
+ "minizlib": "^2.1.2"
+ },
+ "engines": {
+ "node": "^12.13.0 || ^14.15.0 || >=16.0.0"
+ },
+ "optionalDependencies": {
+ "encoding": "^0.1.13"
+ }
+ },
+ "node_modules/minipass-fetch/node_modules/minipass": {
+ "version": "3.3.6",
+ "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz",
+ "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "yallist": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/minipass-fetch/node_modules/yallist": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
+ "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/minipass-flush": {
+ "version": "1.0.5",
+ "resolved": "https://registry.npmjs.org/minipass-flush/-/minipass-flush-1.0.5.tgz",
+ "integrity": "sha512-JmQSYYpPUqX5Jyn1mXaRwOda1uQ8HP5KAT/oDSLCzt1BYRhQU0/hDtsB1ufZfEEzMZ9aAVmsBw8+FWsIXlClWw==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "minipass": "^3.0.0"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/minipass-flush/node_modules/minipass": {
+ "version": "3.3.6",
+ "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz",
+ "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "yallist": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/minipass-flush/node_modules/yallist": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
+ "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/minipass-pipeline": {
+ "version": "1.2.4",
+ "resolved": "https://registry.npmjs.org/minipass-pipeline/-/minipass-pipeline-1.2.4.tgz",
+ "integrity": "sha512-xuIq7cIOt09RPRJ19gdi4b+RiNvDFYe5JH+ggNvBqGqpQXcru3PcRmOZuHBKWK1Txf9+cQ+HMVN4d6z46LZP7A==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "minipass": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/minipass-pipeline/node_modules/minipass": {
+ "version": "3.3.6",
+ "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz",
+ "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "yallist": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/minipass-pipeline/node_modules/yallist": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
+ "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/minipass-sized": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/minipass-sized/-/minipass-sized-1.0.3.tgz",
+ "integrity": "sha512-MbkQQ2CTiBMlA2Dm/5cY+9SWFEN8pzzOXi6rlM5Xxq0Yqbda5ZQy9sU75a673FE9ZK0Zsbr6Y5iP6u9nktfg2g==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "minipass": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/minipass-sized/node_modules/minipass": {
+ "version": "3.3.6",
+ "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz",
+ "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "yallist": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/minipass-sized/node_modules/yallist": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
+ "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/minizlib": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz",
+ "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "minipass": "^3.0.0",
+ "yallist": "^4.0.0"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/minizlib/node_modules/minipass": {
+ "version": "3.3.6",
+ "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz",
+ "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "yallist": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/minizlib/node_modules/yallist": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
+ "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/mkdirp": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz",
+ "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "mkdirp": "bin/cmd.js"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
"node_modules/mlly": {
"version": "1.7.4",
"resolved": "https://registry.npmjs.org/mlly/-/mlly-1.7.4.tgz",
@@ -10963,6 +13569,47 @@
"dev": true,
"license": "MIT"
},
+ "node_modules/negotiator": {
+ "version": "0.6.4",
+ "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.4.tgz",
+ "integrity": "sha512-myRT3DiWPHqho5PrJaIRyaMv2kgYf0mUVgBNOYMuCH5Ki1yEiQaf/ZJuQ62nvpc44wL5WDbTX7yGJi1Neevw8w==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/node-abi": {
+ "version": "3.78.0",
+ "resolved": "https://registry.npmjs.org/node-abi/-/node-abi-3.78.0.tgz",
+ "integrity": "sha512-E2wEyrgX/CqvicaQYU3Ze1PFGjc4QYPGsjUrlYkqAE0WjHEZwgOsGMPMzkMse4LjJbDmaEuDX3CM036j5K2DSQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "semver": "^7.3.5"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/node-addon-api": {
+ "version": "1.7.2",
+ "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-1.7.2.tgz",
+ "integrity": "sha512-ibPK3iA+vaY1eEjESkQkM0BbCqFOaZMiXRTtdB0u7b4djtY6JnsjvPdUHVMg6xQt3B8fpTTWHI9A+ADjM9frzg==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true
+ },
+ "node_modules/node-api-version": {
+ "version": "0.2.1",
+ "resolved": "https://registry.npmjs.org/node-api-version/-/node-api-version-0.2.1.tgz",
+ "integrity": "sha512-2xP/IGGMmmSQpI1+O/k72jF/ykvZ89JeuKX3TLJAYPDVLUalrshrLHkeVcCCZqG/eEa635cr8IBYzgnDvM2O8Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "semver": "^7.3.5"
+ }
+ },
"node_modules/node-releases": {
"version": "2.0.26",
"resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.26.tgz",
@@ -10970,6 +13617,22 @@
"dev": true,
"license": "MIT"
},
+ "node_modules/nopt": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/nopt/-/nopt-6.0.0.tgz",
+ "integrity": "sha512-ZwLpbTgdhuZUnZzjd7nb1ZV+4DoiC6/sfiVKok72ym/4Tlf+DFdlHYmT2JPmcNNWV6Pi3SDf1kT+A4r9RTuT9g==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "abbrev": "^1.0.0"
+ },
+ "bin": {
+ "nopt": "bin/nopt.js"
+ },
+ "engines": {
+ "node": "^12.13.0 || ^14.15.0 || >=16.0.0"
+ }
+ },
"node_modules/normalize-path": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz",
@@ -10989,6 +13652,19 @@
"node": ">=0.10.0"
}
},
+ "node_modules/normalize-url": {
+ "version": "6.1.0",
+ "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-6.1.0.tgz",
+ "integrity": "sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
"node_modules/nostr-tools": {
"version": "2.16.2",
"resolved": "https://registry.npmjs.org/nostr-tools/-/nostr-tools-2.16.2.tgz",
@@ -11096,6 +13772,22 @@
"wrappy": "1"
}
},
+ "node_modules/onetime": {
+ "version": "5.1.2",
+ "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz",
+ "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "mimic-fn": "^2.1.0"
+ },
+ "engines": {
+ "node": ">=6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
"node_modules/oniguruma-parser": {
"version": "0.12.1",
"resolved": "https://registry.npmjs.org/oniguruma-parser/-/oniguruma-parser-0.12.1.tgz",
@@ -11152,6 +13844,53 @@
"node": ">= 0.8.0"
}
},
+ "node_modules/ora": {
+ "version": "5.4.1",
+ "resolved": "https://registry.npmjs.org/ora/-/ora-5.4.1.tgz",
+ "integrity": "sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "bl": "^4.1.0",
+ "chalk": "^4.1.0",
+ "cli-cursor": "^3.1.0",
+ "cli-spinners": "^2.5.0",
+ "is-interactive": "^1.0.0",
+ "is-unicode-supported": "^0.1.0",
+ "log-symbols": "^4.1.0",
+ "strip-ansi": "^6.0.0",
+ "wcwidth": "^1.0.1"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/ora/node_modules/ansi-regex": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/ora/node_modules/strip-ansi": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-regex": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
"node_modules/own-keys": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/own-keys/-/own-keys-1.0.1.tgz",
@@ -11170,6 +13909,16 @@
"url": "https://github.com/sponsors/ljharb"
}
},
+ "node_modules/p-cancelable": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-2.1.1.tgz",
+ "integrity": "sha512-BZOr3nRQHOntUjTrH8+Lh54smKHoHyur8We1V8DSMVrl5A2malOOwuJRnKRDjSnkoeBh4at6BwEnb5I7Jl31wg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
"node_modules/p-limit": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz",
@@ -11202,6 +13951,22 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
+ "node_modules/p-map": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz",
+ "integrity": "sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "aggregate-error": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
"node_modules/p-try": {
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz",
@@ -11320,6 +14085,28 @@
"node": ">= 14.16"
}
},
+ "node_modules/pe-library": {
+ "version": "0.4.1",
+ "resolved": "https://registry.npmjs.org/pe-library/-/pe-library-0.4.1.tgz",
+ "integrity": "sha512-eRWB5LBz7PpDu4PUlwT0PhnQfTQJlDDdPa35urV4Osrm0t0AqQFGn+UIkU3klZvwJ8KPO3VbBFsXquA6p6kqZw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12",
+ "npm": ">=6"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/jet2jet"
+ }
+ },
+ "node_modules/pend": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz",
+ "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==",
+ "dev": true,
+ "license": "MIT"
+ },
"node_modules/picocolors": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",
@@ -11367,6 +14154,21 @@
"pathe": "^2.0.1"
}
},
+ "node_modules/plist": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/plist/-/plist-3.1.0.tgz",
+ "integrity": "sha512-uysumyrvkUX0rX/dEVqt8gC3sTBzd4zoWfLeS29nb53imdaXVvLINYXTI2GNqzaMuvacNx4uJQ8+b3zXR0pkgQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@xmldom/xmldom": "^0.8.8",
+ "base64-js": "^1.5.1",
+ "xmlbuilder": "^15.1.1"
+ },
+ "engines": {
+ "node": ">=10.4.0"
+ }
+ },
"node_modules/pngjs": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/pngjs/-/pngjs-5.0.0.tgz",
@@ -11623,12 +14425,53 @@
"node": ">=6"
}
},
+ "node_modules/proc-log": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/proc-log/-/proc-log-2.0.1.tgz",
+ "integrity": "sha512-Kcmo2FhfDTXdcbfDH76N7uBYHINxc/8GW7UAVuVP9I+Va3uHSerrnKV6dLooga/gh7GlgzuCCr/eoldnL1muGw==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": "^12.13.0 || ^14.15.0 || >=16.0.0"
+ }
+ },
"node_modules/process-nextick-args": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz",
"integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==",
"license": "MIT"
},
+ "node_modules/progress": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz",
+ "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.4.0"
+ }
+ },
+ "node_modules/promise-inflight": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/promise-inflight/-/promise-inflight-1.0.1.tgz",
+ "integrity": "sha512-6zWPyEOFaQBJYcGMHBKTKJ3u6TBsnMFOIZSa6ce1e/ZrrsOlnHRHbabMjLiBYKp+n44X9eUI6VUPaukCXHuG4g==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/promise-retry": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/promise-retry/-/promise-retry-2.0.1.tgz",
+ "integrity": "sha512-y+WKFlBR8BGXnsNlIHFGPZmyDf3DFMoLhaflAnyZgV6rG6xu+JwesTo2Q9R6XwYmtmwAFCkAk3e35jEdoeh/3g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "err-code": "^2.0.2",
+ "retry": "^0.12.0"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
"node_modules/prop-types": {
"version": "15.8.1",
"resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz",
@@ -11656,6 +14499,17 @@
"url": "https://github.com/sponsors/wooorm"
}
},
+ "node_modules/pump": {
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.3.tgz",
+ "integrity": "sha512-todwxLMY7/heScKmntwQG8CXVkWUOdYxIvY2s0VWAAMh/nd8SoYiRaKjlr7+iCs984f2P8zvrfWcDDYVb73NfA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "end-of-stream": "^1.1.0",
+ "once": "^1.3.1"
+ }
+ },
"node_modules/punycode": {
"version": "2.3.1",
"resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz",
@@ -11703,6 +14557,19 @@
],
"license": "MIT"
},
+ "node_modules/quick-lru": {
+ "version": "5.1.1",
+ "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-5.1.1.tgz",
+ "integrity": "sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
"node_modules/randombytes": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz",
@@ -11969,6 +14836,19 @@
"react-dom": ">=16.6.0"
}
},
+ "node_modules/read-binary-file-arch": {
+ "version": "1.0.6",
+ "resolved": "https://registry.npmjs.org/read-binary-file-arch/-/read-binary-file-arch-1.0.6.tgz",
+ "integrity": "sha512-BNg9EN3DD3GsDXX7Aa8O4p92sryjkmzYYgmgTAc6CA4uGLEDzFfxOxugu21akOxpcXHiEgsYkC6nPsQvLLLmEg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "debug": "^4.3.4"
+ },
+ "bin": {
+ "read-binary-file-arch": "cli.js"
+ }
+ },
"node_modules/read-cache": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz",
@@ -12302,6 +15182,24 @@
"integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==",
"license": "ISC"
},
+ "node_modules/resedit": {
+ "version": "1.7.2",
+ "resolved": "https://registry.npmjs.org/resedit/-/resedit-1.7.2.tgz",
+ "integrity": "sha512-vHjcY2MlAITJhC0eRD/Vv8Vlgmu9Sd3LX9zZvtGzU5ZImdTN3+d6e/4mnTyV8vEbyf1sgNIrWxhWlrys52OkEA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "pe-library": "^0.4.1"
+ },
+ "engines": {
+ "node": ">=12",
+ "npm": ">=6"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/jet2jet"
+ }
+ },
"node_modules/resolve": {
"version": "1.22.10",
"resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.10.tgz",
@@ -12322,6 +15220,13 @@
"url": "https://github.com/sponsors/ljharb"
}
},
+ "node_modules/resolve-alpn": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/resolve-alpn/-/resolve-alpn-1.2.1.tgz",
+ "integrity": "sha512-0a1F4l73/ZFZOakJnQ3FvkJ2+gSTQWz/r2KE5OdDY0TxPm5h4GkqkWWfM47T7HsbnOtcJVEF4epCVy6u7Q3K+g==",
+ "dev": true,
+ "license": "MIT"
+ },
"node_modules/resolve-from": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz",
@@ -12332,6 +15237,50 @@
"node": ">=4"
}
},
+ "node_modules/responselike": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/responselike/-/responselike-2.0.1.tgz",
+ "integrity": "sha512-4gl03wn3hj1HP3yzgdI7d3lCkF95F21Pz4BPGvKHinyQzALR5CapwC8yIi0Rh58DEMQ/SguC03wFj2k0M/mHhw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "lowercase-keys": "^2.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/restore-cursor": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz",
+ "integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "onetime": "^5.1.0",
+ "signal-exit": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/restore-cursor/node_modules/signal-exit": {
+ "version": "3.0.7",
+ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz",
+ "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/retry": {
+ "version": "0.12.0",
+ "resolved": "https://registry.npmjs.org/retry/-/retry-0.12.0.tgz",
+ "integrity": "sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 4"
+ }
+ },
"node_modules/reusify": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz",
@@ -12342,6 +15291,64 @@
"node": ">=0.10.0"
}
},
+ "node_modules/rimraf": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",
+ "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",
+ "deprecated": "Rimraf versions prior to v4 are no longer supported",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "glob": "^7.1.3"
+ },
+ "bin": {
+ "rimraf": "bin.js"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
+ "node_modules/rimraf/node_modules/glob": {
+ "version": "7.2.3",
+ "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz",
+ "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==",
+ "deprecated": "Glob versions prior to v9 are no longer supported",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "fs.realpath": "^1.0.0",
+ "inflight": "^1.0.4",
+ "inherits": "2",
+ "minimatch": "^3.1.1",
+ "once": "^1.3.0",
+ "path-is-absolute": "^1.0.0"
+ },
+ "engines": {
+ "node": "*"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
+ "node_modules/roarr": {
+ "version": "2.15.4",
+ "resolved": "https://registry.npmjs.org/roarr/-/roarr-2.15.4.tgz",
+ "integrity": "sha512-CHhPh+UNHD2GTXNYhPWLnU8ONHdI+5DI+4EYIAOaiD63rHeYlZvyh8P+in5999TTSFgUYuKUAjzRI4mdh/p+2A==",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "optional": true,
+ "dependencies": {
+ "boolean": "^3.0.1",
+ "detect-node": "^2.0.4",
+ "globalthis": "^1.0.1",
+ "json-stringify-safe": "^5.0.1",
+ "semver-compare": "^1.0.0",
+ "sprintf-js": "^1.1.2"
+ },
+ "engines": {
+ "node": ">=8.0"
+ }
+ },
"node_modules/rollup": {
"version": "4.40.1",
"resolved": "https://registry.npmjs.org/rollup/-/rollup-4.40.1.tgz",
@@ -12494,6 +15501,23 @@
"dev": true,
"license": "MIT"
},
+ "node_modules/sanitize-filename": {
+ "version": "1.6.3",
+ "resolved": "https://registry.npmjs.org/sanitize-filename/-/sanitize-filename-1.6.3.tgz",
+ "integrity": "sha512-y/52Mcy7aw3gRm7IrcGDFx/bCk4AhRh2eI9luHOQM86nZsqwiRkkq2GekHXBBD+SmPidc8i2PqtYZl+pWJ8Oeg==",
+ "dev": true,
+ "license": "WTFPL OR ISC",
+ "dependencies": {
+ "truncate-utf8-bytes": "^1.0.0"
+ }
+ },
+ "node_modules/sax": {
+ "version": "1.4.1",
+ "resolved": "https://registry.npmjs.org/sax/-/sax-1.4.1.tgz",
+ "integrity": "sha512-+aWOz7yVScEGoKNd4PA10LZ8sk0A/z5+nXQG5giUO5rprX9jgYsTdov9qCchZiPIZezbZH+jRut8nPodFAX4Jg==",
+ "dev": true,
+ "license": "ISC"
+ },
"node_modules/saxes": {
"version": "6.0.0",
"resolved": "https://registry.npmjs.org/saxes/-/saxes-6.0.0.tgz",
@@ -12529,6 +15553,45 @@
"node": ">=10"
}
},
+ "node_modules/semver-compare": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/semver-compare/-/semver-compare-1.0.0.tgz",
+ "integrity": "sha512-YM3/ITh2MJ5MtzaM429anh+x2jiLVjqILF4m4oyQB18W7Ggea7BfqdH/wGMK7dDiMghv/6WG7znWMwUDzJiXow==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true
+ },
+ "node_modules/serialize-error": {
+ "version": "7.0.1",
+ "resolved": "https://registry.npmjs.org/serialize-error/-/serialize-error-7.0.1.tgz",
+ "integrity": "sha512-8I8TjW5KMOKsZQTvoxjuSIa7foAwPWGOts+6o7sgjz41/qMD9VQHEDxi6PBvK2l0MXUmqZyNpUK+T2tQaaElvw==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "type-fest": "^0.13.1"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/serialize-error/node_modules/type-fest": {
+ "version": "0.13.1",
+ "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.13.1.tgz",
+ "integrity": "sha512-34R7HTnG0XIJcBSn5XhDd7nNFPRcXYRZrBB2O2jdKqYODldSzBAqzsWoZYYvduky73toYS/ESqxPvkDf/F0XMg==",
+ "dev": true,
+ "license": "(MIT OR CC0-1.0)",
+ "optional": true,
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
"node_modules/serialize-javascript": {
"version": "6.0.2",
"resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.2.tgz",
@@ -12796,6 +15859,46 @@
"simple-concat": "^1.0.0"
}
},
+ "node_modules/simple-update-notifier": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/simple-update-notifier/-/simple-update-notifier-2.0.0.tgz",
+ "integrity": "sha512-a2B9Y0KlNXl9u/vsW6sTIu9vGEpfKu2wRV6l1H3XEas/0gUIzGzBoP/IouTcUQbm9JWZLH3COxyn03TYlFax6w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "semver": "^7.5.3"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/slice-ansi": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-3.0.0.tgz",
+ "integrity": "sha512-pSyv7bSTC7ig9Dcgbw9AuRNUb5k5V6oDudjZoMBSr13qpLBG7tB+zgCkARjq7xIUgdz5P1Qe8u+rSGdouOOIyQ==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "ansi-styles": "^4.0.0",
+ "astral-regex": "^2.0.0",
+ "is-fullwidth-code-point": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/smart-buffer": {
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz",
+ "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 6.0.0",
+ "npm": ">= 3.0.0"
+ }
+ },
"node_modules/smob": {
"version": "1.5.0",
"resolved": "https://registry.npmjs.org/smob/-/smob-1.5.0.tgz",
@@ -12803,6 +15906,49 @@
"dev": true,
"license": "MIT"
},
+ "node_modules/socks": {
+ "version": "2.8.7",
+ "resolved": "https://registry.npmjs.org/socks/-/socks-2.8.7.tgz",
+ "integrity": "sha512-HLpt+uLy/pxB+bum/9DzAgiKS8CX1EvbWxI4zlmgGCExImLdiad2iCwXT5Z4c9c3Eq8rP2318mPW2c+QbtjK8A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ip-address": "^10.0.1",
+ "smart-buffer": "^4.2.0"
+ },
+ "engines": {
+ "node": ">= 10.0.0",
+ "npm": ">= 3.0.0"
+ }
+ },
+ "node_modules/socks-proxy-agent": {
+ "version": "7.0.0",
+ "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-7.0.0.tgz",
+ "integrity": "sha512-Fgl0YPZ902wEsAyiQ+idGd1A7rSFx/ayC1CQVMw5P+EQx2V0SgpGtf6OKFhVjPflPUl9YMmEOnmfjCdMUsygww==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "agent-base": "^6.0.2",
+ "debug": "^4.3.3",
+ "socks": "^2.6.2"
+ },
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/socks-proxy-agent/node_modules/agent-base": {
+ "version": "6.0.2",
+ "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz",
+ "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "debug": "4"
+ },
+ "engines": {
+ "node": ">= 6.0.0"
+ }
+ },
"node_modules/source-map": {
"version": "0.8.0-beta.0",
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.8.0-beta.0.tgz",
@@ -12894,6 +16040,47 @@
"url": "https://github.com/sponsors/wooorm"
}
},
+ "node_modules/sprintf-js": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.3.tgz",
+ "integrity": "sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "optional": true
+ },
+ "node_modules/ssri": {
+ "version": "9.0.1",
+ "resolved": "https://registry.npmjs.org/ssri/-/ssri-9.0.1.tgz",
+ "integrity": "sha512-o57Wcn66jMQvfHG1FlYbWeZWW/dHZhJXjpIcTfXldXEk5nz5lStPo3mK0OJQfGR3RbZUlbISexbljkJzuEj/8Q==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "minipass": "^3.1.1"
+ },
+ "engines": {
+ "node": "^12.13.0 || ^14.15.0 || >=16.0.0"
+ }
+ },
+ "node_modules/ssri/node_modules/minipass": {
+ "version": "3.3.6",
+ "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz",
+ "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "yallist": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/ssri/node_modules/yallist": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
+ "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",
+ "dev": true,
+ "license": "ISC"
+ },
"node_modules/stackback": {
"version": "0.0.2",
"resolved": "https://registry.npmjs.org/stackback/-/stackback-0.0.2.tgz",
@@ -12901,6 +16088,16 @@
"dev": true,
"license": "MIT"
},
+ "node_modules/stat-mode": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/stat-mode/-/stat-mode-1.0.0.tgz",
+ "integrity": "sha512-jH9EhtKIjuXZ2cWxmXS8ZP80XyC3iasQxMDV8jzhNJpfDb7VbQLVW4Wvsxz9QZvzV+G4YoSfBUVKDOyxLzi/sg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 6"
+ }
+ },
"node_modules/std-env": {
"version": "3.9.0",
"resolved": "https://registry.npmjs.org/std-env/-/std-env-3.9.0.tgz",
@@ -13270,6 +16467,19 @@
"node": ">=16 || 14 >=14.17"
}
},
+ "node_modules/sumchecker": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/sumchecker/-/sumchecker-3.0.1.tgz",
+ "integrity": "sha512-MvjXzkz/BOfyVDkG0oFOtBxHX2u3gKbMHIF/dXblZsgD3BWOFLmHovIpZY7BykJdAjcqRCBi1WYBNdEC9yI7vg==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "debug": "^4.1.0"
+ },
+ "engines": {
+ "node": ">= 8.0"
+ }
+ },
"node_modules/supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
@@ -13386,6 +16596,56 @@
"node": ">=4"
}
},
+ "node_modules/tar": {
+ "version": "6.2.1",
+ "resolved": "https://registry.npmjs.org/tar/-/tar-6.2.1.tgz",
+ "integrity": "sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "chownr": "^2.0.0",
+ "fs-minipass": "^2.0.0",
+ "minipass": "^5.0.0",
+ "minizlib": "^2.1.1",
+ "mkdirp": "^1.0.3",
+ "yallist": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/tar/node_modules/minipass": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz",
+ "integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/tar/node_modules/yallist": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
+ "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/temp": {
+ "version": "0.9.4",
+ "resolved": "https://registry.npmjs.org/temp/-/temp-0.9.4.tgz",
+ "integrity": "sha512-yYrrsWnrXMcdsnu/7YMYAofM1ktpL5By7vZhf15CrXijWWrEYZks5AXBudalfSWJLlnen/QUJUB5aoB0kqZUGA==",
+ "dev": true,
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "mkdirp": "^0.5.1",
+ "rimraf": "~2.6.2"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
"node_modules/temp-dir": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/temp-dir/-/temp-dir-2.0.0.tgz",
@@ -13396,6 +16656,84 @@
"node": ">=8"
}
},
+ "node_modules/temp-file": {
+ "version": "3.4.0",
+ "resolved": "https://registry.npmjs.org/temp-file/-/temp-file-3.4.0.tgz",
+ "integrity": "sha512-C5tjlC/HCtVUOi3KWVokd4vHVViOmGjtLwIh4MuzPo/nMYTV/p1urt3RnMz2IWXDdKEGJH3k5+KPxtqRsUYGtg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "async-exit-hook": "^2.0.1",
+ "fs-extra": "^10.0.0"
+ }
+ },
+ "node_modules/temp-file/node_modules/fs-extra": {
+ "version": "10.1.0",
+ "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz",
+ "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "graceful-fs": "^4.2.0",
+ "jsonfile": "^6.0.1",
+ "universalify": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/temp/node_modules/glob": {
+ "version": "7.2.3",
+ "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz",
+ "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==",
+ "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",
+ "inherits": "2",
+ "minimatch": "^3.1.1",
+ "once": "^1.3.0",
+ "path-is-absolute": "^1.0.0"
+ },
+ "engines": {
+ "node": "*"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
+ "node_modules/temp/node_modules/mkdirp": {
+ "version": "0.5.6",
+ "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz",
+ "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==",
+ "dev": true,
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "minimist": "^1.2.6"
+ },
+ "bin": {
+ "mkdirp": "bin/cmd.js"
+ }
+ },
+ "node_modules/temp/node_modules/rimraf": {
+ "version": "2.6.3",
+ "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz",
+ "integrity": "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==",
+ "deprecated": "Rimraf versions prior to v4 are no longer supported",
+ "dev": true,
+ "license": "ISC",
+ "peer": true,
+ "dependencies": {
+ "glob": "^7.1.3"
+ },
+ "bin": {
+ "rimraf": "bin.js"
+ }
+ },
"node_modules/tempy": {
"version": "0.6.0",
"resolved": "https://registry.npmjs.org/tempy/-/tempy-0.6.0.tgz",
@@ -13462,6 +16800,26 @@
"node": ">=0.8"
}
},
+ "node_modules/tiny-async-pool": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/tiny-async-pool/-/tiny-async-pool-1.3.0.tgz",
+ "integrity": "sha512-01EAw5EDrcVrdgyCLgoSPvqznC0sVxDSVeiOz09FUpjh71G79VCqneOr+xvt7T1r76CF6ZZfPjHorN2+d+3mqA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "semver": "^5.5.0"
+ }
+ },
+ "node_modules/tiny-async-pool/node_modules/semver": {
+ "version": "5.7.2",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz",
+ "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==",
+ "dev": true,
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver"
+ }
+ },
"node_modules/tiny-invariant": {
"version": "1.3.3",
"resolved": "https://registry.npmjs.org/tiny-invariant/-/tiny-invariant-1.3.3.tgz",
@@ -13577,6 +16935,26 @@
"dev": true,
"license": "MIT"
},
+ "node_modules/tmp": {
+ "version": "0.2.5",
+ "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.5.tgz",
+ "integrity": "sha512-voyz6MApa1rQGUxT3E+BK7/ROe8itEx7vD8/HEvt4xwXucvQ5G5oeEiHkmHZJuBO21RpOf+YYm9MOivj709jow==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=14.14"
+ }
+ },
+ "node_modules/tmp-promise": {
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/tmp-promise/-/tmp-promise-3.0.3.tgz",
+ "integrity": "sha512-RwM7MoPojPxsOBYnyd2hy0bxtIlVrihNs9pj5SUvY8Zz1sQcQG2tG1hSr8PDxfgEB8RNKDhqbIlroIarSNDNsQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "tmp": "^0.2.0"
+ }
+ },
"node_modules/to-buffer": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/to-buffer/-/to-buffer-1.2.1.tgz",
@@ -13649,6 +17027,16 @@
"url": "https://github.com/sponsors/wooorm"
}
},
+ "node_modules/truncate-utf8-bytes": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/truncate-utf8-bytes/-/truncate-utf8-bytes-1.0.2.tgz",
+ "integrity": "sha512-95Pu1QXQvruGEhv62XCMO3Mm90GscOCClvrIUwCM0PYOXK3kaF3l3sIHxx71ThJfcbM2O5Au6SO3AWCSEfW4mQ==",
+ "dev": true,
+ "license": "WTFPL",
+ "dependencies": {
+ "utf8-byte-length": "^1.0.1"
+ }
+ },
"node_modules/ts-api-utils": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.1.0.tgz",
@@ -13930,6 +17318,32 @@
"url": "https://opencollective.com/unified"
}
},
+ "node_modules/unique-filename": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/unique-filename/-/unique-filename-2.0.1.tgz",
+ "integrity": "sha512-ODWHtkkdx3IAR+veKxFV+VBkUMcN+FaqzUUd7IZzt+0zhDZFPFxhlqwPF3YQvMHx1TD0tdgYl+kuPnJ8E6ql7A==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "unique-slug": "^3.0.0"
+ },
+ "engines": {
+ "node": "^12.13.0 || ^14.15.0 || >=16.0.0"
+ }
+ },
+ "node_modules/unique-slug": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/unique-slug/-/unique-slug-3.0.0.tgz",
+ "integrity": "sha512-8EyMynh679x/0gqE9fT9oilG+qEt+ibFyqjuVTsZn1+CMxH+XLlpvr2UZx4nVcCwTpx81nICr2JQFkM+HPLq4w==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "imurmurhash": "^0.1.4"
+ },
+ "engines": {
+ "node": "^12.13.0 || ^14.15.0 || >=16.0.0"
+ }
+ },
"node_modules/unique-string": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/unique-string/-/unique-string-2.0.0.tgz",
@@ -14212,6 +17626,13 @@
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
}
},
+ "node_modules/utf8-byte-length": {
+ "version": "1.0.5",
+ "resolved": "https://registry.npmjs.org/utf8-byte-length/-/utf8-byte-length-1.0.5.tgz",
+ "integrity": "sha512-Xn0w3MtiQ6zoz2vFyUVruaCL53O/DwUvkEeOvj+uulMm0BkUGYWmBYVyElqZaSLhY6ZD0ulfU3aBra2aVT4xfA==",
+ "dev": true,
+ "license": "(WTFPL OR MIT)"
+ },
"node_modules/util-deprecate": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
@@ -14231,6 +17652,30 @@
"react-dom": "^16.8 || ^17.0 || ^18.0"
}
},
+ "node_modules/verror": {
+ "version": "1.10.1",
+ "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.1.tgz",
+ "integrity": "sha512-veufcmxri4e3XSrT0xwfUR7kguIkaxBeosDg00yDWhk49wdwkSUrvvsm7nc75e1PUyvIeZj6nS8VQRYz2/S4Xg==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "assert-plus": "^1.0.0",
+ "core-util-is": "1.0.2",
+ "extsprintf": "^1.2.0"
+ },
+ "engines": {
+ "node": ">=0.6.0"
+ }
+ },
+ "node_modules/verror/node_modules/core-util-is": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz",
+ "integrity": "sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true
+ },
"node_modules/vfile": {
"version": "6.0.3",
"resolved": "https://registry.npmjs.org/vfile/-/vfile-6.0.3.tgz",
@@ -14545,6 +17990,16 @@
"node": ">=18"
}
},
+ "node_modules/wcwidth": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz",
+ "integrity": "sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "defaults": "^1.0.3"
+ }
+ },
"node_modules/web-namespaces": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/web-namespaces/-/web-namespaces-2.0.1.tgz",
@@ -15263,6 +18718,16 @@
"node": ">=18"
}
},
+ "node_modules/xmlbuilder": {
+ "version": "15.1.1",
+ "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-15.1.1.tgz",
+ "integrity": "sha512-yMqGBqtXyeN1e3TGYvgNgDVZ3j84W4cwkOXQswghol6APgZWaff9lnbvN7MHYJOiXsvGPXtjTYJEiC9J2wv9Eg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8.0"
+ }
+ },
"node_modules/xmlchars": {
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz",
@@ -15423,6 +18888,17 @@
"node": ">=8"
}
},
+ "node_modules/yauzl": {
+ "version": "2.10.0",
+ "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz",
+ "integrity": "sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "buffer-crc32": "~0.2.3",
+ "fd-slicer": "~1.1.0"
+ }
+ },
"node_modules/yocto-queue": {
"version": "0.1.0",
"resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz",
diff --git a/package.json b/package.json
index 2d957909..fedb8a5a 100644
--- a/package.json
+++ b/package.json
@@ -6,6 +6,7 @@
"private": true,
"version": "0.0.0",
"type": "module",
+ "main": "electron/main.js",
"author": {
"name": "shakespeare.diy",
"email": "contact@shakespeare.diy"
@@ -19,7 +20,15 @@
"build": "npm i --silent && vite build -l error && cp dist/index.html dist/404.html && echo 'Project built successfully!'",
"typecheck": "npm i --silent && tsc --noEmit",
"test": "npm i --silent && eslint && vitest run --reporter=dot --silent && echo 'All tests passed!'",
- "deploy": "npm run build && npx -y nostr-deploy-cli deploy --skip-setup"
+ "deploy": "npm run build && npx -y nostr-deploy-cli deploy --skip-setup",
+ "electron:dev": "npm run build && electron .",
+ "electron:build": "npm run build && electron-builder --config electron/builder.config.js",
+ "electron:build:mac": "npm run build && electron-builder --mac --config electron/builder.config.js",
+ "electron:build:win": "npm run build && electron-builder --win --config electron/builder.config.js",
+ "electron:build:linux": "npm run build && electron-builder --linux --config electron/builder.config.js",
+ "electron:build:all": "npm run build && electron-builder --mac --win --linux --config electron/builder.config.js",
+ "electron:icons": "bash electron/generate-icons.sh",
+ "electron:validate": "node electron/test-config.js"
},
"dependencies": {
"@dnd-kit/core": "^6.3.1",
@@ -124,6 +133,8 @@
"@types/uri-templates": "^0.1.34",
"@vitejs/plugin-react-swc": "^3.5.0",
"autoprefixer": "^10.4.20",
+ "electron": "^38.4.0",
+ "electron-builder": "^26.0.12",
"eslint": "^9.9.0",
"eslint-plugin-react-hooks": "^5.1.0-rc.0",
"eslint-plugin-react-refresh": "^0.4.9",
diff --git a/src/App.tsx b/src/App.tsx
index 41c0d521..8c6a1ebe 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -20,6 +20,7 @@ import { SessionManagerProvider } from '@/components/SessionManagerProvider';
import { FSProvider } from '@/components/FSProvider';
import { ConsoleErrorProvider } from '@/components/ConsoleErrorProvider';
import { LightningFSAdapter } from '@/lib/LightningFSAdapter';
+import { ElectronFSAdapter } from '@/lib/ElectronFSAdapter';
import { cleanupTmpDirectory } from '@/lib/tmpCleanup';
import { DynamicFavicon } from '@/components/DynamicFavicon';
import { OfflineIndicator } from '@/components/OfflineIndicator';
@@ -43,6 +44,47 @@ const queryClient = new QueryClient({
},
});
+// Get OS-specific default paths for Electron
+function getElectronDefaultPaths(): { fsPathProjects: string; fsPathConfig: string; fsPathTmp: string } {
+ if (!globalThis.electron) {
+ // Browser defaults - use virtual filesystem paths
+ return {
+ fsPathProjects: "/projects",
+ fsPathConfig: "/config",
+ fsPathTmp: "/tmp",
+ };
+ }
+
+ // Electron defaults - use OS-specific paths
+ // Note: The ~ will be expanded by the Electron main process
+ const platform = navigator.platform.toLowerCase();
+
+ if (platform.includes('win')) {
+ // Windows
+ return {
+ fsPathProjects: "~/Documents/Projects",
+ fsPathConfig: "~/AppData/Local/shakespeare",
+ fsPathTmp: "~/AppData/Local/Temp/shakespeare",
+ };
+ } else if (platform.includes('mac')) {
+ // macOS
+ return {
+ fsPathProjects: "~/Projects",
+ fsPathConfig: "~/Library/Application Support/shakespeare",
+ fsPathTmp: "/tmp/shakespeare",
+ };
+ } else {
+ // Linux and other Unix-like systems
+ return {
+ fsPathProjects: "~/Projects",
+ fsPathConfig: "~/.config/shakespeare",
+ fsPathTmp: "/tmp/shakespeare",
+ };
+ }
+}
+
+const electronPaths = getElectronDefaultPaths();
+
const defaultConfig: AppConfig = {
theme: "system",
relayUrl: "wss://relay.ditto.pub",
@@ -54,9 +96,9 @@ const defaultConfig: AppConfig = {
showcaseEnabled: true,
showcaseModerator: "npub1jvnpg4c6ljadf5t6ry0w9q0rnm4mksde87kglkrc993z46c39axsgq89sc",
ngitServers: ["git.shakespeare.diy", "relay.ngit.dev"],
- fsPathProjects: "/projects",
- fsPathConfig: "/config",
- fsPathTmp: "/tmp",
+ fsPathProjects: electronPaths.fsPathProjects,
+ fsPathConfig: electronPaths.fsPathConfig,
+ fsPathTmp: electronPaths.fsPathTmp,
};
const presetRelays = [
@@ -66,9 +108,12 @@ const presetRelays = [
{ url: 'wss://relay.primal.net', name: 'Primal' },
];
-// Initialize LightningFS
-const lightningFS = new LightningFS('shakespeare-fs');
-const fs = new LightningFSAdapter(lightningFS.promises);
+// Initialize filesystem adapter based on environment
+// In Electron, use Electron filesystem at ~/shakespeare
+// In browser, use LightningFS (IndexedDB-backed virtual filesystem)
+const fs = globalThis.electron
+ ? new ElectronFSAdapter()
+ : new LightningFSAdapter(new LightningFS('shakespeare-fs').promises);
// Component to handle filesystem cleanup on startup
// Automatically removes files older than 1 hour from tmp directory
diff --git a/src/AppRouter.tsx b/src/AppRouter.tsx
index 3ca949d2..dd0f5e75 100644
--- a/src/AppRouter.tsx
+++ b/src/AppRouter.tsx
@@ -1,4 +1,4 @@
-import { BrowserRouter, Route, Routes } from "react-router-dom";
+import { BrowserRouter, HashRouter, Route, Routes } from "react-router-dom";
import { ScrollToTop } from "./components/ScrollToTop";
import { SessionMonitor } from "./components/SessionMonitor";
import { URLFragmentHandler } from "./components/URLFragmentHandler";
@@ -24,8 +24,11 @@ import { ProjectView } from "./pages/ProjectView";
import { SettingsLayout } from "./components/SettingsLayout";
export function AppRouter() {
+ // Use HashRouter in Electron, BrowserRouter in web
+ const Router = globalThis.electron ? HashRouter : BrowserRouter;
+
return (
-
+
@@ -53,7 +56,7 @@ export function AppRouter() {
{/* ADD ALL CUSTOM ROUTES ABOVE THE CATCH-ALL "*" ROUTE */}
} />
-
+
);
}
export default AppRouter;
diff --git a/src/components/Shakespeare/ChatPane.tsx b/src/components/Shakespeare/ChatPane.tsx
index 23b46ecf..77da01a8 100644
--- a/src/components/Shakespeare/ChatPane.tsx
+++ b/src/components/Shakespeare/ChatPane.tsx
@@ -154,7 +154,7 @@ export const ChatPane = forwardRef(({
nostr_read_protocol: new NostrReadProtocolTool(),
nostr_read_nips_index: new NostrReadNipsIndexTool(),
nostr_generate_kind: new NostrGenerateKindTool(),
- shell: new ShellTool(fs, cwd, git),
+ shell: new ShellTool(fs, cwd, git, projectsPath),
read_console_messages: new ReadConsoleMessagesTool(),
};
diff --git a/src/components/ShakespeareLogo.tsx b/src/components/ShakespeareLogo.tsx
index 44230c1a..f71920f5 100644
--- a/src/components/ShakespeareLogo.tsx
+++ b/src/components/ShakespeareLogo.tsx
@@ -4,9 +4,9 @@ export interface ShakespeareLogoProps {
export function ShakespeareLogo({ className }: ShakespeareLogoProps) {
return (
-
);
diff --git a/src/components/Terminal.tsx b/src/components/Terminal.tsx
index 8e38b884..d7f277fd 100644
--- a/src/components/Terminal.tsx
+++ b/src/components/Terminal.tsx
@@ -38,7 +38,7 @@ export function Terminal({ projectId, className }: TerminalProps) {
// Initialize ShellTool
useEffect(() => {
- shellToolRef.current = new ShellTool(fs, `${projectsPath}/${projectId}`, git);
+ shellToolRef.current = new ShellTool(fs, `${projectsPath}/${projectId}`, git, projectsPath);
// Add welcome message
setLines([{
@@ -81,7 +81,7 @@ export function Terminal({ projectId, className }: TerminalProps) {
}, []);
const executeCommand = useCallback(async (command: string) => {
- if (!shellToolRef.current || !command.trim()) return;
+ if (!command.trim()) return;
// Add command to history
if (command.trim() && !commandHistory.includes(command.trim())) {
@@ -95,21 +95,67 @@ export function Terminal({ projectId, className }: TerminalProps) {
setIsExecuting(true);
try {
- // Handle special help command
- if (command.trim() === 'help') {
- const availableCommands = shellToolRef.current.getAvailableCommands();
- const helpText = `Available commands:\n\n${availableCommands.map(cmd =>
- `${cmd.name.padEnd(12)} - ${cmd.description}`
- ).join('\n')}\n\nUse 'which ' for more details about a specific command.`;
- addLine('output', helpText);
- } else if (command.trim() === 'clear') {
+ // Handle special clear command
+ if (command.trim() === 'clear') {
setLines([]);
- } else {
- const result = await shellToolRef.current.execute({ command });
+ setIsExecuting(false);
+ return;
+ }
- // Add output
- if (result && result.trim()) {
- addLine('output', result);
+ // Check if running in Electron - use real shell
+ if (window.electron?.shell) {
+ // Get relative path from projects root
+ // Remove the projectsPath prefix to get the relative path for the OS
+ const projectsPrefix = projectsPath.endsWith('/')
+ ? projectsPath
+ : projectsPath + '/';
+
+ const fullCwd = `${projectsPath}/${projectId}`;
+ const relativeCwd = fullCwd.startsWith(projectsPrefix)
+ ? fullCwd.substring(projectsPrefix.length)
+ : fullCwd;
+
+ const result = await window.electron.shell.exec(command, relativeCwd);
+
+ // Format output
+ let output = '';
+
+ if (result.stdout) {
+ output += result.stdout;
+ }
+
+ if (result.stderr) {
+ if (output) output += '\n';
+ output += result.stderr;
+ }
+
+ // Add exit code info for non-zero exits
+ if (result.exitCode !== 0) {
+ if (output) output += '\n';
+ output += `Exit code: ${result.exitCode}`;
+ }
+
+ if (output) {
+ addLine('output', output);
+ }
+ } else {
+ // Use virtual shell (browser mode)
+ if (!shellToolRef.current) return;
+
+ // Handle special help command
+ if (command.trim() === 'help') {
+ const availableCommands = shellToolRef.current.getAvailableCommands();
+ const helpText = `Available commands:\n\n${availableCommands.map(cmd =>
+ `${cmd.name.padEnd(12)} - ${cmd.description}`
+ ).join('\n')}\n\nUse 'which ' for more details about a specific command.`;
+ addLine('output', helpText);
+ } else {
+ const result = await shellToolRef.current.execute({ command });
+
+ // Add output
+ if (result && result.trim()) {
+ addLine('output', result);
+ }
}
}
} catch (error) {
@@ -117,7 +163,7 @@ export function Terminal({ projectId, className }: TerminalProps) {
} finally {
setIsExecuting(false);
}
- }, [addLine, commandHistory]);
+ }, [addLine, commandHistory, projectId, projectsPath]);
const handleSubmit = useCallback((e: React.FormEvent) => {
e.preventDefault();
diff --git a/src/hooks/useProjectDeploySettings.ts b/src/hooks/useProjectDeploySettings.ts
index 419eb752..47e049c7 100644
--- a/src/hooks/useProjectDeploySettings.ts
+++ b/src/hooks/useProjectDeploySettings.ts
@@ -42,7 +42,7 @@ export interface ProjectDeploySettings {
* Hook to manage project-specific deployment settings
* Stores settings in .git/shakespeare/deploy.json
*/
-export function useProjectDeploySettings(projectId: string) {
+export function useProjectDeploySettings(projectId: string | null) {
const fs = useFS();
const { projectsPath } = useFSPaths();
const [settings, setSettings] = useState({ providers: {} });
@@ -51,6 +51,13 @@ export function useProjectDeploySettings(projectId: string) {
const settingsPath = `${projectsPath}/${projectId}/.git/shakespeare/deploy.json`;
const loadSettings = useCallback(async () => {
+ // Don't try to load if projectId is falsy
+ if (!projectId) {
+ setSettings({ providers: {} });
+ setIsLoading(false);
+ return;
+ }
+
try {
setIsLoading(true);
const content = await fs.fs.readFile(settingsPath, 'utf8');
@@ -71,13 +78,17 @@ export function useProjectDeploySettings(projectId: string) {
} finally {
setIsLoading(false);
}
- }, [fs.fs, settingsPath]);
+ }, [fs.fs, settingsPath, projectId]);
useEffect(() => {
loadSettings();
}, [loadSettings]);
const saveSettings = async (newSettings: ProjectDeploySettings) => {
+ if (!projectId) {
+ throw new Error('Cannot save settings: no project selected');
+ }
+
try {
// Ensure .git/shakespeare directory exists
const shakespeareDir = `${projectsPath}/${projectId}/.git/shakespeare`;
diff --git a/src/lib/ElectronFSAdapter.ts b/src/lib/ElectronFSAdapter.ts
new file mode 100644
index 00000000..8ea5a5ed
--- /dev/null
+++ b/src/lib/ElectronFSAdapter.ts
@@ -0,0 +1,238 @@
+import type { JSRuntimeFS, DirectoryEntry } from './JSRuntime';
+
+/**
+ * Electron filesystem adapter that implements JSRuntimeFS interface
+ * This adapter communicates with Electron's main process via IPC to perform
+ * filesystem operations on the actual OS filesystem.
+ *
+ * Note: This adapter should only be instantiated when running in Electron.
+ */
+export class ElectronFSAdapter implements JSRuntimeFS {
+ private get electron() {
+ if (!window.electron) {
+ throw new Error('ElectronFSAdapter can only be used in Electron environment');
+ }
+ return window.electron;
+ }
+
+ /**
+ * Unwrap Electron IPC errors to preserve error codes.
+ * Electron wraps errors in "Error invoking remote method..." messages,
+ * but we need to preserve the original error code for isomorphic-git.
+ */
+ private unwrapElectronError(error: unknown): Error {
+ if (!(error instanceof Error)) {
+ return error as Error;
+ }
+
+ // Extract error code from the error object if it exists
+ const code = (error as NodeJS.ErrnoException).code;
+
+ // If there's already a code, preserve it
+ if (code) {
+ const err = new Error(error.message);
+ (err as NodeJS.ErrnoException).code = code;
+ return err;
+ }
+
+ // If no code property, try to extract from the message
+ // Messages look like: "Error invoking remote method 'fs:stat': Error: Failed to stat /path: ENOENT: no such file or directory"
+ const match = error.message.match(/:\s*(E[A-Z]+):/);
+ if (match) {
+ const err = new Error(error.message);
+ (err as NodeJS.ErrnoException).code = match[1];
+ return err;
+ }
+
+ return error;
+ }
+
+ async readFile(path: string): Promise>;
+ async readFile(path: string, options: 'utf8'): Promise;
+ async readFile(path: string, options: string): Promise;
+ async readFile(path: string, options: { encoding: 'utf8' }): Promise;
+ async readFile(path: string, options: { encoding: string }): Promise;
+ async readFile(path: string, options?: string | { encoding?: string }): Promise>;
+ async readFile(path: string, options?: string | { encoding?: string }): Promise> {
+ try {
+ const encoding = typeof options === 'string' ? options : options?.encoding;
+ const result = await this.electron.fs.readFile(path, encoding);
+
+ // If no encoding, convert array to Uint8Array
+ if (!encoding && Array.isArray(result)) {
+ return new Uint8Array(result);
+ }
+
+ return result as string;
+ } catch (error) {
+ throw this.unwrapElectronError(error);
+ }
+ }
+
+ async writeFile(path: string, data: string | Uint8Array, options?: string | { encoding?: string }): Promise {
+ try {
+ const encoding = typeof options === 'string' ? options : options?.encoding;
+ // Convert Uint8Array to regular array for IPC serialization
+ const dataToWrite = data instanceof Uint8Array ? Array.from(data) : data;
+ return await this.electron.fs.writeFile(path, dataToWrite, encoding);
+ } catch (error) {
+ throw this.unwrapElectronError(error);
+ }
+ }
+
+ async readdir(path: string): Promise;
+ async readdir(path: string, options: { withFileTypes: true }): Promise;
+ async readdir(path: string, options?: { withFileTypes?: boolean }): Promise;
+ async readdir(path: string, options?: { withFileTypes?: boolean }): Promise {
+ try {
+ const result = await this.electron.fs.readdir(path, options?.withFileTypes);
+
+ if (options?.withFileTypes) {
+ // Convert plain objects to DirectoryEntry format
+ return (result as Array<{ name: string; isDirectory: boolean; isFile: boolean }>).map(entry => ({
+ name: entry.name,
+ isDirectory: () => entry.isDirectory,
+ isFile: () => entry.isFile,
+ }));
+ }
+
+ return result as string[];
+ } catch (error) {
+ throw this.unwrapElectronError(error);
+ }
+ }
+
+ async mkdir(path: string, options?: { recursive?: boolean }): Promise {
+ try {
+ // Default to recursive: true for isomorphic-git compatibility
+ // isomorphic-git expects mkdir to behave like 'mkdir -p'
+ const recursive = options?.recursive !== false;
+ return await this.electron.fs.mkdir(path, recursive);
+ } catch (error) {
+ throw this.unwrapElectronError(error);
+ }
+ }
+
+ async stat(path: string): Promise<{
+ isDirectory(): boolean;
+ isFile(): boolean;
+ isBlockDevice(): boolean;
+ isCharacterDevice(): boolean;
+ isSymbolicLink(): boolean;
+ isFIFO(): boolean;
+ isSocket(): boolean;
+ size: number;
+ mtimeMs: number;
+ ctimeMs: number;
+ atimeMs: number;
+ mtime: Date;
+ ctime: Date;
+ atime: Date;
+ }> {
+ try {
+ const result = await this.electron.fs.stat(path);
+ const now = Date.now();
+ return {
+ isDirectory: () => result.isDirectory,
+ isFile: () => result.isFile,
+ isBlockDevice: () => result.isBlockDevice,
+ isCharacterDevice: () => result.isCharacterDevice,
+ isSymbolicLink: () => result.isSymbolicLink,
+ isFIFO: () => result.isFIFO,
+ isSocket: () => result.isSocket,
+ size: result.size ?? 0,
+ mtimeMs: result.mtimeMs ?? now,
+ ctimeMs: result.ctimeMs ?? now,
+ atimeMs: result.atimeMs ?? now,
+ // Convert timestamps back to Date objects
+ mtime: new Date(result.mtime ?? now),
+ ctime: new Date(result.ctime ?? now),
+ atime: new Date(result.atime ?? now),
+ };
+ } catch (error) {
+ // Electron IPC wraps errors, extract the original error code
+ throw this.unwrapElectronError(error);
+ }
+ }
+
+ async lstat(path: string): Promise<{
+ isDirectory(): boolean;
+ isFile(): boolean;
+ isBlockDevice(): boolean;
+ isCharacterDevice(): boolean;
+ isSymbolicLink(): boolean;
+ isFIFO(): boolean;
+ isSocket(): boolean;
+ size: number;
+ mtimeMs: number;
+ ctimeMs: number;
+ atimeMs: number;
+ mtime: Date;
+ ctime: Date;
+ atime: Date;
+ }> {
+ try {
+ const result = await this.electron.fs.lstat(path);
+ const now = Date.now();
+ return {
+ isDirectory: () => result.isDirectory,
+ isFile: () => result.isFile,
+ isBlockDevice: () => result.isBlockDevice,
+ isCharacterDevice: () => result.isCharacterDevice,
+ isSymbolicLink: () => result.isSymbolicLink,
+ isFIFO: () => result.isFIFO,
+ isSocket: () => result.isSocket,
+ size: result.size ?? 0,
+ mtimeMs: result.mtimeMs ?? now,
+ ctimeMs: result.ctimeMs ?? now,
+ atimeMs: result.atimeMs ?? now,
+ // Convert timestamps back to Date objects
+ mtime: new Date(result.mtime ?? now),
+ ctime: new Date(result.ctime ?? now),
+ atime: new Date(result.atime ?? now),
+ };
+ } catch (error) {
+ throw this.unwrapElectronError(error);
+ }
+ }
+
+ async unlink(path: string): Promise {
+ try {
+ return await this.electron.fs.unlink(path);
+ } catch (error) {
+ throw this.unwrapElectronError(error);
+ }
+ }
+
+ async rmdir(path: string): Promise {
+ try {
+ return await this.electron.fs.rmdir(path);
+ } catch (error) {
+ throw this.unwrapElectronError(error);
+ }
+ }
+
+ async rename(oldPath: string, newPath: string): Promise {
+ try {
+ return await this.electron.fs.rename(oldPath, newPath);
+ } catch (error) {
+ throw this.unwrapElectronError(error);
+ }
+ }
+
+ async readlink(path: string): Promise {
+ try {
+ return await this.electron.fs.readlink(path);
+ } catch (error) {
+ throw this.unwrapElectronError(error);
+ }
+ }
+
+ async symlink(target: string, path: string): Promise {
+ try {
+ return await this.electron.fs.symlink(target, path);
+ } catch (error) {
+ throw this.unwrapElectronError(error);
+ }
+ }
+}
diff --git a/src/lib/ansiToHtml.test.ts b/src/lib/ansiToHtml.test.ts
new file mode 100644
index 00000000..c6cc9af5
--- /dev/null
+++ b/src/lib/ansiToHtml.test.ts
@@ -0,0 +1,103 @@
+import { describe, it, expect } from 'vitest';
+import { ansiToHtml, containsAnsiCodes, stripAnsiCodes } from './ansiToHtml';
+
+describe('ansiToHtml', () => {
+ it('should convert basic color codes to HTML', () => {
+ const input = '\u001b[31mRed text\u001b[0m';
+ const output = ansiToHtml(input);
+ expect(output).toContain('text-red-500');
+ expect(output).toContain('Red text');
+ });
+
+ it('should handle multiple color codes', () => {
+ const input = '\u001b[31mRed\u001b[0m \u001b[32mGreen\u001b[0m';
+ const output = ansiToHtml(input);
+ expect(output).toContain('text-red-500');
+ expect(output).toContain('text-green-500');
+ });
+
+ it('should return original text if no ANSI codes', () => {
+ const input = 'Plain text';
+ const output = ansiToHtml(input);
+ expect(output).toBe(input);
+ });
+
+ it('should handle bold text', () => {
+ const input = '\u001b[1mBold text\u001b[0m';
+ const output = ansiToHtml(input);
+ expect(output).toContain('font-bold');
+ });
+
+ it('should handle background colors', () => {
+ const input = '\u001b[41mRed background\u001b[0m';
+ const output = ansiToHtml(input);
+ expect(output).toContain('bg-red-500');
+ });
+});
+
+describe('containsAnsiCodes', () => {
+ it('should detect ANSI codes', () => {
+ expect(containsAnsiCodes('\u001b[31mRed\u001b[0m')).toBe(true);
+ expect(containsAnsiCodes('\u001b[1mBold\u001b[0m')).toBe(true);
+ });
+
+ it('should return false for plain text', () => {
+ expect(containsAnsiCodes('Plain text')).toBe(false);
+ expect(containsAnsiCodes('')).toBe(false);
+ });
+});
+
+describe('stripAnsiCodes', () => {
+ it('should remove basic color codes', () => {
+ const input = '\u001b[31mRed text\u001b[0m';
+ const output = stripAnsiCodes(input);
+ expect(output).toBe('Red text');
+ });
+
+ it('should remove multiple ANSI codes', () => {
+ const input = '\u001b[31mRed\u001b[0m \u001b[32mGreen\u001b[0m \u001b[1mBold\u001b[0m';
+ const output = stripAnsiCodes(input);
+ expect(output).toBe('Red Green Bold');
+ });
+
+ it('should remove cursor movement codes', () => {
+ const input = 'Text\u001b[2AMove up\u001b[1BMove down';
+ const output = stripAnsiCodes(input);
+ expect(output).toBe('TextMove upMove down');
+ });
+
+ it('should remove clear screen codes', () => {
+ const input = 'Before\u001b[2JAfter';
+ const output = stripAnsiCodes(input);
+ expect(output).toBe('BeforeAfter');
+ });
+
+ it('should handle text without ANSI codes', () => {
+ const input = 'Plain text';
+ const output = stripAnsiCodes(input);
+ expect(output).toBe(input);
+ });
+
+ it('should handle empty string', () => {
+ const output = stripAnsiCodes('');
+ expect(output).toBe('');
+ });
+
+ it('should handle npm output with ANSI codes', () => {
+ const input = '\u001b[1m\u001b[32madded 142 packages\u001b[39m\u001b[22m in 3s';
+ const output = stripAnsiCodes(input);
+ expect(output).toBe('added 142 packages in 3s');
+ });
+
+ it('should handle git status output with ANSI codes', () => {
+ const input = 'On branch \u001b[32mmain\u001b[m\nYour branch is up to date';
+ const output = stripAnsiCodes(input);
+ expect(output).toBe('On branch main\nYour branch is up to date');
+ });
+
+ it('should preserve newlines and spaces', () => {
+ const input = '\u001b[31mLine 1\u001b[0m\n\u001b[32mLine 2\u001b[0m\n Indented';
+ const output = stripAnsiCodes(input);
+ expect(output).toBe('Line 1\nLine 2\n Indented');
+ });
+});
diff --git a/src/lib/ansiToHtml.ts b/src/lib/ansiToHtml.ts
index 3b2fc55a..45638ed9 100644
--- a/src/lib/ansiToHtml.ts
+++ b/src/lib/ansiToHtml.ts
@@ -49,15 +49,15 @@ const styleMap: Record = {
export function ansiToHtml(text: string): string {
// Regular expression to match ANSI escape sequences
const ansiRegex = /\u001b\[((?:\d+;)*\d+)m/g;
-
+
// Initialize result and current style classes
let result = '';
let currentClasses: string[] = [];
-
+
// Find all matches and their positions
const matches: Array<{index: number, length: number, codes: string}> = [];
let match;
-
+
while ((match = ansiRegex.exec(text)) !== null) {
matches.push({
index: match.index,
@@ -65,15 +65,15 @@ export function ansiToHtml(text: string): string {
codes: match[1]
});
}
-
+
// If no ANSI codes found, return the original text
if (matches.length === 0) {
return text;
}
-
+
// Process the text with ANSI codes
let lastIndex = 0;
-
+
for (const match of matches) {
// Add text before this match with current styling
if (match.index > lastIndex) {
@@ -84,10 +84,10 @@ export function ansiToHtml(text: string): string {
result += textSegment;
}
}
-
+
// Update current classes based on ANSI codes
const codes = match.codes.split(';');
-
+
for (const code of codes) {
if (code === '0') {
// Reset all styles
@@ -109,11 +109,11 @@ export function ansiToHtml(text: string): string {
}
}
}
-
+
// Update lastIndex to after this match
lastIndex = match.index + match.length;
}
-
+
// Add any remaining text
if (lastIndex < text.length) {
const textSegment = text.substring(lastIndex);
@@ -123,7 +123,7 @@ export function ansiToHtml(text: string): string {
result += textSegment;
}
}
-
+
return result;
}
@@ -132,4 +132,18 @@ export function ansiToHtml(text: string): string {
*/
export function containsAnsiCodes(text: string): boolean {
return /\u001b\[(?:\d+;)*\d+m/.test(text);
+}
+
+/**
+ * Strip all ANSI escape sequences from a string
+ * This removes color codes, cursor movements, and other terminal control sequences
+ */
+export function stripAnsiCodes(text: string): string {
+ // Remove all ANSI escape sequences
+ // This regex matches:
+ // - Color codes: \u001b[...m
+ // - Cursor movement: \u001b[...H, \u001b[...A, etc.
+ // - Clear screen: \u001b[...J, \u001b[...K
+ // - Other escape sequences
+ return text.replace(/\u001b\[[0-9;]*[a-zA-Z]/g, '');
}
\ No newline at end of file
diff --git a/src/lib/tools/ShellTool.ts b/src/lib/tools/ShellTool.ts
index f51e6aca..f286fd43 100644
--- a/src/lib/tools/ShellTool.ts
+++ b/src/lib/tools/ShellTool.ts
@@ -3,6 +3,7 @@ import type { Tool } from "./Tool";
import type { JSRuntimeFS } from "../JSRuntime";
import type { ShellCommand } from "../commands/ShellCommand";
import { Git } from "../git";
+import { stripAnsiCodes } from "../ansiToHtml";
import {
CatCommand,
CdCommand,
@@ -49,6 +50,7 @@ export class ShellTool implements Tool {
private cwd: string;
private git: Git;
private commands: Map;
+ private projectsPath: string;
readonly description = "Execute shell commands like cat, ls, cd, pwd, rm, cp, mv, echo, head, tail, grep, find, wc, touch, mkdir, sort, uniq, cut, tr, sed, diff, which, whoami, date, env, clear, git, curl, unzip, hexdump. Supports compound commands with &&, ||, ;, and | operators, and output redirection with > and >> operators";
@@ -58,10 +60,11 @@ export class ShellTool implements Tool {
),
});
- constructor(fs: JSRuntimeFS, cwd: string, git: Git) {
+ constructor(fs: JSRuntimeFS, cwd: string, git: Git, projectsPath: string = '/projects') {
this.fs = fs;
this.cwd = cwd;
this.git = git;
+ this.projectsPath = projectsPath;
this.commands = new Map();
// Register available commands
@@ -324,6 +327,11 @@ export class ShellTool implements Tool {
return "Error: Empty command";
}
+ // Check if running in Electron - if so, use real shell execution
+ if (window.electron?.shell) {
+ return this.executeRealShell(commandStr);
+ }
+
// Parse compound commands
const commands = this.parseCompoundCommand(commandStr);
@@ -340,6 +348,56 @@ export class ShellTool implements Tool {
return this.executeCompoundCommands(commands);
}
+ /**
+ * Execute command using real shell in Electron
+ */
+ private async executeRealShell(commandStr: string): Promise {
+ if (!window.electron?.shell) {
+ throw new Error('Real shell execution is only available in Electron');
+ }
+
+ try {
+ // Get relative path from projects root
+ // Remove the projectsPath prefix to get the relative path for the OS
+ const projectsPrefix = this.projectsPath.endsWith('/')
+ ? this.projectsPath
+ : this.projectsPath + '/';
+
+ const relativeCwd = this.cwd.startsWith(projectsPrefix)
+ ? this.cwd.substring(projectsPrefix.length)
+ : this.cwd;
+
+ const result = await window.electron.shell.exec(commandStr, relativeCwd);
+
+ // Strip ANSI codes from output (color codes, cursor movements, etc.)
+ // This is important for AI consumption and consistent output
+ const cleanStdout = result.stdout ? stripAnsiCodes(result.stdout) : '';
+ const cleanStderr = result.stderr ? stripAnsiCodes(result.stderr) : '';
+
+ // Format output
+ let output = '';
+
+ if (cleanStdout) {
+ output += cleanStdout;
+ }
+
+ if (cleanStderr) {
+ if (output) output += '\n';
+ output += cleanStderr;
+ }
+
+ // Add exit code info for non-zero exits
+ if (result.exitCode !== 0) {
+ if (output) output += '\n';
+ output += `Exit code: ${result.exitCode}`;
+ }
+
+ return output || '(no output)';
+ } catch (error) {
+ return `Error: ${error instanceof Error ? error.message : 'Unknown error'}`;
+ }
+ }
+
/**
* Execute a simple command (no compound operators)
*/
diff --git a/src/main.tsx b/src/main.tsx
index afbb79f4..409199a5 100644
--- a/src/main.tsx
+++ b/src/main.tsx
@@ -15,4 +15,4 @@ import '@fontsource-variable/inter';
// Prism syntax highlighting
import 'prismjs/themes/prism.css';
-createRoot(document.getElementById("root")!).render();
+createRoot(document.getElementById("root")!).render();
\ No newline at end of file
diff --git a/tsconfig.json b/tsconfig.json
index 26ef7941..670ac724 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -27,5 +27,5 @@
"@/*": ["./src/*"]
}
},
- "include": ["src"]
+ "include": ["src", "electron/electron.d.ts"]
}