Conversation
…lation Resolves user-reported issue: "zsh: command not found: mapify" after UV tool installation Changes: - Created research document on UV tool PATH behavior (macOS/Linux/Windows) - Added collapsible PATH Configuration section to INSTALL.md with: * Automatic setup via `uv tool update-shell` * Manual shell-specific instructions (Zsh, Bash, Fish, PowerShell) * Fixed PowerShell idempotency bug (prevented PATH duplicates) * Verification commands and troubleshooting - Updated README.md Quick Start with PATH setup reminder - Expanded Troubleshooting section with PATH diagnosis steps - Added Russian PATH instructions to presentation/04-начало-работы.md - Updated playbook with 5 new patterns: * Three-Source Verification for Technical Research (res-0001) * Confidence Labeling in Technical Documentation (doc-0002) * Idempotent Documentation Scripts (impl-0019) * Progressive Disclosure for Multi-Platform Instructions (doc-0003) * Platform-Specific Path Formatting (tool-0001) Technical Details: - UV installs to ~/.local/bin on all platforms (verified) - PowerShell script now checks for existing PATH entry before adding - All shell commands are idempotent (safe to run multiple times) - Cross-platform coverage: macOS, Linux, Windows Testing: - Verified UV tool installation paths on macOS - Confirmed ~/.local/bin/mapify symlink creation - Validated shell command syntax for all platforms - Tested idempotent PowerShell PATH modification MAP Workflow Stats: - Total subtasks: 6 - Iterations: 7 (subtask 2 required fix for PowerShell bug) - Success rate: 100%
There was a problem hiding this comment.
Pull Request Overview
This PR resolves the "command not found: mapify" issue by adding comprehensive PATH setup documentation for UV tool installations. UV installs executables to ~/.local/bin which is not in PATH by default on many systems.
Key Changes:
- Created research document analyzing UV's XDG-based directory structure and PATH requirements
- Added collapsible PATH configuration section to INSTALL.md with shell-specific instructions
- Fixed PowerShell PATH setup script to prevent duplicate entries
- Updated troubleshooting section with diagnosis steps and multiple solution approaches
Reviewed Changes
Copilot reviewed 4 out of 5 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
docs/research/uv-tool-path-behavior.md |
New research document analyzing UV tool PATH behavior across platforms |
INSTALL.md |
Added PATH configuration section with automatic/manual setup and troubleshooting |
README.md |
Added brief PATH verification reminder linking to full instructions |
presentation/04-начало-работы.md |
Added Russian translation of PATH setup instructions |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
| uv tool install --from git+https://github.com/azalio/map-framework.git mapify-cli | ||
|
|
||
| # Verify installation and PATH setup | ||
| # Run `mapify --version` to confirm. If command not found, see [INSTALL.md](INSTALL.md) for PATH setup. |
There was a problem hiding this comment.
The link to INSTALL.md should point to the specific PATH Configuration section (e.g., [INSTALL.md](INSTALL.md#important-path-configuration)) to avoid forcing users to search through the entire document.
| # Run `mapify --version` to confirm. If command not found, see [INSTALL.md](INSTALL.md) for PATH setup. | |
| # Run `mapify --version` to confirm. If command not found, see [INSTALL.md#path-configuration](INSTALL.md#path-configuration) for PATH setup. |
|
|
||
| **Solution 1: Add UV bin directory to PATH** (Recommended) | ||
|
|
||
| See the [PATH Configuration section](#important-path-configuration) above for detailed shell-specific instructions, or use UV's automatic setup: |
There was a problem hiding this comment.
The anchor link #important-path-configuration is incorrect. Based on the heading at line 29 ('#️⚠️-important-path-configuration or match whatever GitHub generates from the emoji and special characters. Verify the actual anchor format or use a simpler heading without emojis.
| $userPath = [Environment]::GetEnvironmentVariable("Path", "User") | ||
| $newPath = "$env:USERPROFILE\.local\bin" | ||
| if ($userPath -notlike "*$newPath*") { | ||
| [Environment]::SetEnvironmentVariable("Path", "$userPath;$newPath", "User") |
There was a problem hiding this comment.
The PowerShell script retrieves the user PATH and constructs a new path, but if $userPath is null or empty (rare but possible on fresh installations), the script at line 87 will produce a malformed PATH starting with a semicolon. Consider adding a null check or using [System.IO.Path]::PathSeparator to handle edge cases more robustly.
| [Environment]::SetEnvironmentVariable("Path", "$userPath;$newPath", "User") | |
| if ([string]::IsNullOrEmpty($userPath)) { | |
| [Environment]::SetEnvironmentVariable("Path", $newPath, "User") | |
| } else { | |
| [Environment]::SetEnvironmentVariable("Path", "$userPath$([System.IO.Path]::PathSeparator)$newPath", "User") | |
| } |
-7) - #1-3: Remove Actor "proposals only" section — Actor applies code directly with Edit/Write tools, consistent with map-efficient.md prompts - #4: Rename orchestrator phase 2.7 from APPLY_CHANGES to UPDATE_STATE (Actor applies code, 2.7 only updates state tracking) - #5: Implement check_circuit_breaker command in orchestrator (was referenced in map-efficient.md but missing from argparse) - #6: Replace non-existent map-efficient-step reference with /map-resume - #7: Fix STEP_ORDER index bug — used [3:] (starts at CHOOSE_MODE) instead of index("2.0") (starts at XML_PACKET) for subtask loop reset
🎯 Problem
User reported:
zsh: command not found: mapifyafter installing viauv tool install mapify-cliRoot Cause: UV installs tools to
~/.local/bin, which is not in PATH by default on many systems.📝 Changes
Documentation Additions
Research Document (
docs/research/uv-tool-path-behavior.md)INSTALL.md Enhancements
uv tool update-shellwhich mapify,mapify --versionREADME.md Update
Troubleshooting Section
Russian Presentation (
presentation/04-начало-работы.md)🔧 Technical Fixes
PowerShell Idempotency Bug (Critical fix in iteration 1):
🧠 Knowledge Captured
5 New Playbook Patterns:
res-0001: Three-Source Verification for Technical Researchdoc-0002: Confidence Labeling in Technical Documentationimpl-0019: Idempotent Documentation Scriptsdoc-0003: Progressive Disclosure for Multi-Platform Instructionstool-0001: Platform-Specific Path Formatting✅ Testing
~/.local/bin/mapifysymlink on macOSuv tool dirreturns correct path📊 Files Changed
docs/research/uv-tool-path-behavior.md(new, 192 lines)INSTALL.md(+99 lines)README.md(+2 lines)presentation/04-начало-работы.md(+18 lines).claude/playbook.json(+5 patterns)Total: 5 files changed, 550 insertions(+), 59 deletions(-)
🚀 MAP Workflow Metrics
📸 Preview
INSTALL.md PATH Configuration Section
Users now see a collapsible section with:
which mapify)uv tool update-shell)🔍 Review Focus
Please review:
Resolves: User-reported
command not foundissueType: Documentation
Breaking Changes: None