### Run Mex Setup Script Source: https://www.launchx.page/mex/docs Use this bash script for first-time setup if you installed via git clone. It supports a `--dry-run` flag. ```bash bash .mex/setup.sh ``` -------------------------------- ### Setup Script (Bash) Source: https://www.launchx.page/mex/docs The bash alternative to 'npx promexeus setup'. Requires a bash-compatible shell. Supports '--help'. ```bash .mex/setup.sh ``` -------------------------------- ### Setup Mex Project Source: https://www.launchx.page/mex/docs Run the setup command from your project root to initialize the .mex/ scaffold, copy tool configurations, and pre-scan the codebase. ```bash npx promexeus setup ``` -------------------------------- ### Manual Setup: OpenCode Source: https://www.launchx.page/mex/docs Creates the .opencode directory and copies the opencode.json configuration file for OpenCode integration. ```bash mkdir -p .opencode && cp .mex/.tool-configs/opencode.json ./.opencode/opencode.json ``` -------------------------------- ### Manual Setup: GitHub Copilot Source: https://www.launchx.page/mex/docs Creates the .github directory and copies the copilot-instructions.md configuration file for GitHub Copilot integration. ```bash mkdir -p .github && cp .mex/.tool-configs/copilot-instructions.md ./.github/copilot-instructions.md ``` -------------------------------- ### Manual Setup: Windsurf Source: https://www.launchx.page/mex/docs Copies the .windsurfrules configuration file to the project root for Windsurf integration. ```bash cp .mex/.tool-configs/.windsurfrules ./.windsurfrules ``` -------------------------------- ### Extract Command Claim Example Source: https://www.launchx.page/mex/docs This example shows a command claim, typically starting with a package manager or build tool. It's extracted from inline code or code blocks. ```plaintext npm run test ``` -------------------------------- ### Manual Setup: Cursor Source: https://www.launchx.page/mex/docs Copies the .cursorrules configuration file to the project root for Cursor integration. ```bash cp .mex/.tool-configs/.cursorrules ./.cursorrules ``` -------------------------------- ### Issue Example: Missing Path Source: https://www.launchx.page/mex/docs An example of a 'MISSING_PATH' error, indicating that a referenced path in the scaffold does not currently exist in the filesystem. ```text [error] MISSING_PATH: Referenced path does not exist: src/old/auth.ts ``` -------------------------------- ### Install Mex CLI Source: https://www.launchx.page/mex/docs Install mex as a dev dependency using npm. This updates the CLI and drift detection engine. ```bash npm install --save-dev promexeus ``` -------------------------------- ### Automatic Tool Setup Selection Source: https://www.launchx.page/mex/docs Prompts the user to select AI tools for automatic setup. Multiple selections can be made by entering their corresponding numbers. ```bash mex setup ? Which AI tool do you use? 1) Claude Code 2) Cursor 3) Windsurf 4) GitHub Copilot 5) OpenCode 6) Codex (OpenAI) 7) Multiple (select next) ◄ selected 8) None / other (skip) ``` -------------------------------- ### Dry Run Mex Setup Source: https://www.launchx.page/mex/docs Use the --dry-run flag with the setup command to preview the changes without modifying your project files. ```bash npx promexeus setup --dry-run ``` -------------------------------- ### Manual Setup: Claude Code Source: https://www.launchx.page/mex/docs Copies the CLAUDE.md configuration file to the project root for Claude Code integration. ```bash cp .mex/.tool-configs/CLAUDE.md ./CLAUDE.md ``` -------------------------------- ### Extract Version Claim Example Source: https://www.launchx.page/mex/docs This example demonstrates a version claim, which is bold text with a version number found in dependency sections. It specifies a dependency version. ```plaintext ****React 18**** ``` -------------------------------- ### Extract Path Claim Example Source: https://www.launchx.page/mex/docs This is an example of a path claim extracted from scaffold files. It represents a file path within the codebase. ```plaintext src/routes/api.ts ``` -------------------------------- ### Manual Setup: Codex (OpenAI) Source: https://www.launchx.page/mex/docs Copies the CLAUDE.md configuration file to AGENTS.md for Codex (OpenAI) integration, as Codex reads this file natively. ```bash cp .mex/.tool-configs/CLAUDE.md ./AGENTS.md ``` -------------------------------- ### Extract Dependency Claim Example Source: https://www.launchx.page/mex/docs This is an example of a dependency claim, represented by bold text within specific sections of scaffold files. It indicates a project dependency. ```plaintext ****Express**** ``` -------------------------------- ### Clone and Build Mex for Contributors Source: https://www.launchx.page/mex/docs Clone the Mex repository, install dependencies, and build the CLI for development or contribution. Use 'npm run dev' for watch mode. ```bash git clone https://github.com/theDakshJaitly/mex.git cd mex npm install npm run build # one-time build npm run dev # watch mode — rebuilds on save npm test # run test suite npm run typecheck # TypeScript type checking ``` -------------------------------- ### Run Mex Update Script Source: https://www.launchx.page/mex/docs If you installed via git clone, use this bash script to pull the latest mex infrastructure from GitHub. npm users should use `npm update promexeus` instead. ```bash bash .mex/update.sh ``` -------------------------------- ### Run Mex Sync Script Source: https://www.launchx.page/mex/docs This bash script provides an interactive menu for checking, syncing, or exporting sync prompts. Use it if you installed via git clone. ```bash bash .mex/sync.sh ``` -------------------------------- ### Sync Score Delta Example Source: https://www.launchx.page/mex/docs Illustrates the output after an AI-assisted synchronization, showing the change in the drift score from its initial state to the resolved state. ```text Drift score: 72 → 95/100 (+23) ``` -------------------------------- ### Script Coverage Checker Example Source: https://www.launchx.page/mex/docs This checker verifies if all scripts defined in package.json are referenced within the project scaffold. It excludes lifecycle hooks and automatically skipped sub-scripts. ```bash UNDOCUMENTED_SCRIPT ``` -------------------------------- ### Get Git Diff Source: https://www.launchx.page/mex/docs Retrieves the Git diff for specified paths over the last 5 commits. Used by the brief builder. ```typescript getGitDiff(paths, cwd) ``` -------------------------------- ### Initialize Project with JSON Output Source: https://www.launchx.page/mex/docs Runs 'mex init --json' for pre-analysis of the codebase, used when the CLI is available. ```bash mex init --json ``` -------------------------------- ### Visualize Project Scaffold Source: https://www.launchx.page/mex/docs Launches a local web server to visualize the project scaffold interactively. It parses YAML frontmatter to show file completion status and connections. ```bash bash .mex/visualize.sh ``` -------------------------------- ### Spawn Sync Process Source: https://www.launchx.page/mex/docs Launches a Claude Code session using spawnSync with 'inherit' stdio and a 5-minute timeout. ```typescript spawnSync("claude", [brief]) ``` -------------------------------- ### Sync Script (Bash) Source: https://www.launchx.page/mex/docs A wrapper around 'mex sync' that adds a full resync option. Auto-builds the CLI if not already built. ```bash .mex/sync.sh ``` -------------------------------- ### Include Warnings Flag Source: https://www.launchx.page/mex/docs Use this flag to include files with only warnings in the sync process. ```bash --warnings ``` -------------------------------- ### CLI Sync Command Source: https://www.launchx.page/mex/docs Initiates the synchronization process via the command-line interface. This command checks for drift, groups issues by file, and prompts the user for interactive or non-interactive resolution. ```bash mex sync ``` -------------------------------- ### Check for Codebase Drift Source: https://www.launchx.page/mex/docs Run this command to detect drift by comparing scaffold files against the actual codebase. It identifies discrepancies in paths, commands, dependencies, and versions. ```bash mex check ``` -------------------------------- ### Interactive Shell Script Menu Option 3 Source: https://www.launchx.page/mex/docs Selects the 'Show me the prompts' option from the interactive shell script, which runs `mex sync --dry-run` to display targeted prompts for manual use. ```bash 3 ``` -------------------------------- ### Add Mex Scripts to package.json Source: https://www.launchx.page/mex/docs Add scripts to your package.json for easy access to mex commands like 'check' and 'sync'. ```json "scripts": { "mex": "mex check", "mex:sync": "mex sync" } ``` -------------------------------- ### Interactive Shell Script Menu Option 2 Source: https://www.launchx.page/mex/docs Selects the full resync option from the interactive shell script, which re-reads the entire codebase and updates all scaffold files. ```bash 2 ``` -------------------------------- ### Interactive Shell Script Menu Option 1 Source: https://www.launchx.page/mex/docs Selects the targeted sync option from the interactive shell script, which uses `mex sync` to fix only flagged files. ```bash 1 ``` -------------------------------- ### Update Mex CLI Source: https://www.launchx.page/mex/docs Update mex to the latest version using npm. This command updates the CLI and drift detection engine. ```bash npm update promexeus ``` -------------------------------- ### Interactive Shell Script Menu Option 4 Source: https://www.launchx.page/mex/docs Selects the 'Exit' option from the interactive shell script, allowing the user to manually fix issues. ```bash 4 ``` -------------------------------- ### Dry Run Flag Source: https://www.launchx.page/mex/docs A flag for shell scripts to show intended actions without executing them. ```bash --dry-run ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.