Problem
Drone only works from inside the AIPass directory tree. External projects can't access AIPass services because:
- No
AIPASS_HOME env var — drone's registry finder already supports AIPASS_HOME as a fallback (registry_handler.py line 70-75), but setup.sh never sets it
- drone not on PATH — On Linux, setup.sh creates a symlink to
/usr/local/bin. On Windows, it just prints instructions
Why this matters
The intended architecture: AIPass is installed once, then external projects use drone to access all AIPass services. Without AIPASS_HOME and drone on PATH, this is impossible.
Fix
setup.sh should:
All platforms
- Set
AIPASS_HOME env var pointing to the AIPass installation directory
Linux/macOS
- Already creates
/usr/local/bin/drone symlink (working)
- Add
export AIPASS_HOME=/path/to/AIPass to ~/.bashrc or ~/.profile
Windows
- Add
AIPASS_HOME as a user environment variable via setx
- Add
.venv/Scripts to user PATH via setx (or create a drone.bat wrapper in a PATH location)
Code already supports it
registry_handler.py already has the AIPASS_HOME fallback in:
find_registry() — falls back to AIPASS_HOME when CWD walk finds nothing
get_all_branches() — merges home registry with local project registry
get_branch_by_name() — checks home registry as fallback
The plumbing is done. Just needs setup.sh to configure it.
Found during Windows 10 setup testing.
Problem
Drone only works from inside the AIPass directory tree. External projects can't access AIPass services because:
AIPASS_HOMEenv var — drone's registry finder already supportsAIPASS_HOMEas a fallback (registry_handler.py line 70-75), but setup.sh never sets it/usr/local/bin. On Windows, it just prints instructionsWhy this matters
The intended architecture: AIPass is installed once, then external projects use
droneto access all AIPass services. WithoutAIPASS_HOMEand drone on PATH, this is impossible.Fix
setup.sh should:
All platforms
AIPASS_HOMEenv var pointing to the AIPass installation directoryLinux/macOS
/usr/local/bin/dronesymlink (working)export AIPASS_HOME=/path/to/AIPassto~/.bashrcor~/.profileWindows
AIPASS_HOMEas a user environment variable viasetx.venv/Scriptsto user PATH viasetx(or create adrone.batwrapper in a PATH location)Code already supports it
registry_handler.pyalready has theAIPASS_HOMEfallback in:find_registry()— falls back toAIPASS_HOMEwhen CWD walk finds nothingget_all_branches()— merges home registry with local project registryget_branch_by_name()— checks home registry as fallbackThe plumbing is done. Just needs setup.sh to configure it.
Found during Windows 10 setup testing.