-
Notifications
You must be signed in to change notification settings - Fork 27
Description
Is your feature request related to a problem? Please describe. I am trying to add custom local slash commands on Windows 11 to execute Node.js scripts directly (Zero-Token latency).
According to the documentation, only *.md files or files starting with a Shebang (#!) are registered. However, this design is problematic on Windows:
Shebang Issue: Windows does not natively support Shebangs (#!/usr/bin/env node). While Droid registers these files successfully (recognizing the #! header), the execution fails silently or errors out because the OS cannot execute the file directly without a proper handler or shell: true in spawn.
No Native Alternative: Native Windows script formats like .bat, .cmd, or .ps1 are ignored by Droid's scanner because they don't start with #!.
I have tried creating "polyglot" scripts (combining #! with batch commands) and using .js files with Shebangs, but they all fail to execute properly within the Droid environment.
Describe the solution you'd like I suggest two potential improvements to support Windows users:
Allow Native Extensions: Update the command scanner to accept .bat, .cmd, and .ps1 files as valid custom commands (without requiring a Shebang).
Improve Execution Logic: When executing a file with a Shebang on Windows, verify the interpreter (e.g., node) and invoke it explicitly (e.g., node script.js) instead of relying on the OS to handle the execution.
Describe alternatives you've considered
Using .md files: This works but introduces significant latency and unnecessary token usage (LLM parsing) for simple deterministic tasks.
WSL 2: Switching to WSL 2 resolves the issue, but native Windows support would be much preferred for seamless integration with other Windows tools.
Additional context
OS: Windows 11
Goal: Running a local Node.js script (e.g., git checkpointing) instantly via Droid without LLM overhead.