@technicalshree/auto-fix 1.2.1 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +50 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -166,6 +166,56 @@ auto-fix clear-yarn-cache
166
166
  auto-fix clear-pnpm-cache
167
167
  ```
168
168
 
169
+ ## v1.2 Features
170
+
171
+ ### Environment Variable Synchronization
172
+
173
+ `auto-fix` detects `.env.example` files and helps keep your local `.env` in sync:
174
+
175
+ - **Missing `.env`**: If `.env.example` exists but `.env` does not, auto-fix will copy it automatically.
176
+ - **Missing keys**: If both files exist, auto-fix compares the keys and appends any missing keys from `.env.example` to your `.env` with empty values.
177
+ - Changes to `.env` are snapshotted for undo coverage.
178
+
179
+ ```bash
180
+ # See env sync in action
181
+ auto-fix plan
182
+ # Output: ● Copy .env.example to .env
183
+ # Output: ● Append 2 missing key(s) to .env
184
+ ```
185
+
186
+ ### Runtime Engine Version Checks
187
+
188
+ `auto-fix` validates that your local Node.js and Python versions match what the project expects:
189
+
190
+ - **Node**: Reads `.nvmrc` or `.node-version` and compares the major version against `process.version`. Emits a warning with suggested action (`nvm use`).
191
+ - **Python**: Reads `.python-version` and flags a version drift warning.
192
+ - These checks run **before** dependency installations to catch mismatches early.
193
+ - Engine checks fire based on version file existence alone — no `package.json` or `pyproject.toml` required.
194
+
195
+ ```bash
196
+ auto-fix plan
197
+ # Output: ● Node version drift detected: expected ~18, running v22.x — Run nvm use
198
+ # Output: ● Python version drift: project expects 3.11
199
+ ```
200
+
201
+ ### VS Code Python Integration
202
+
203
+ When a Python virtual environment (`.venv`) exists or is being created, `auto-fix` automatically configures VS Code to use it:
204
+
205
+ - Sets `python.defaultInterpreterPath` in `.vscode/settings.json`
206
+ - Prevents false-positive Pylance/Pyright linting errors for new developers
207
+ - The change is snapshotted for undo coverage
208
+
209
+ ### EPERM/EBUSY Error Guidance
210
+
211
+ When `node_modules` cleanup or dependency installation fails due to file locks (common on Windows and macOS), `auto-fix` now provides specific, actionable error messages:
212
+
213
+ ```
214
+ ✖ Permission/lock error (EPERM/EBUSY). Close your IDE, dev servers, or file watchers and retry.
215
+ ```
216
+
217
+ This replaces the previous generic "One or more commands failed" message.
218
+
169
219
  ## Commands
170
220
 
171
221
  `auto-fix [command] [flags]`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@technicalshree/auto-fix",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "Detect, diagnose, and safely fix common local dev environment issues",
5
5
  "main": "dist/cli.js",
6
6
  "repository": {