Skip to content

feat: v2.1.0 - PowerShell 5.1 compatibility, real-time font broadcast, CLI flags, Zed/Aider support & CI matrix - #3

Open
mortezamirkar wants to merge 4 commits into
dalroot:mainfrom
mortezamirkar:feat/v2.1.0-improvements
Open

mortezamirkar wants to merge 4 commits into
dalroot:mainfrom
mortezamirkar:feat/v2.1.0-improvements

Conversation

@mortezamirkar

Copy link
Copy Markdown

Summary of Changes

This PR upgrades Agent RTL Fix to v2.1.0, addressing critical installer bugs on Windows, expanding AI agent support to Zed Editor and Aider, introducing real-time font activation, adding modular CLI flags, and establishing a full cross-platform CI matrix.


🐛 1. Critical Bugfixes (PowerShell 5.1 Compatibility)

  • Settings Preservation: Fixed a silent failure in install.ps1 where ConvertFrom-Json -AsHashtable (unsupported in default Windows PowerShell 5.1) caused existing IDE settings in settings.json to be wiped out. Replaced with a backward-compatible PSObject property parser that guarantees 100% preservation of user configurations.
  • Clean JSON Serialization: Normalized single quotes to prevent \u0027 character escaping in VS Code and Cursor settings files.

⚡ 2. Instant Font Activation (No Reboot Required)

  • Added Win32 P/Invoke calls to AddFontResourceW and SendMessageTimeout(HWND_BROADCAST, WM_FONTCHANGE) in install.ps1. Newly installed Vazirmatn fonts are recognized immediately across open editors and browsers without requiring a Windows logoff or system restart.

🚩 3. Modular CLI Switches

Added support for optional CLI flags in both install.ps1 and install.sh:

  • -GlobalOnly / --global-only: Apply only machine-wide rules, skills, fonts, and IDE settings.
  • -ProjectOnly / --project-only: Generate AGENTS.md and workspace rules without modifying system configs.
  • -NoFonts / --no-fonts: Skip font installation (ideal for headless servers, Docker containers, and CI pipelines).
  • -Silent / --silent: Quiet mode suppressing banners and non-essential output.

🤖 4. Agent Matrix Expansion

  • Zed Editor (rules/zed.md): Added typography configuration and assistant rules.
  • Aider CLI (rules/aider.md): Added system prompt configuration for terminal coding sessions.
  • BiDi Standards Refinement (rules/AGENTS.md & rules/antigravity.md): Clarified guidelines for inline code punctuation boundaries, LaTeX math handling, and preserving YAML frontmatter at line 1.
  • Antigravity Skill Deployment: Installer now registers the agent-rtl-fix skill under ~/.gemini/config/skills/agent-rtl-fix/SKILL.md alongside the rule.

🧪 5. CI/CD & Automated Verification

  • Added .github/workflows/ci.yml:
    • Validates install.ps1 under both Windows PowerShell 5.1 and PowerShell 7 (pwsh) on windows-latest.
    • Verifies Bash syntax and execution on ubuntu-latest and macos-latest.
    • Verifies file synchronization between root installers and scripts/ directory.

📚 6. Documentation

  • Updated README.md and README.fa.md with the new agent matrix, CLI flags table, and v2.1.0 badges.

Verification

  • Tested install.ps1 on Windows PowerShell 5.1 across all flag combinations (-Silent, -ProjectOnly, -GlobalOnly, -NoFonts).
  • Confirmed existing settings preservation in settings.json.
  • Confirmed root and scripts/ installers are 100% synchronized.

Morteza Amirkar added 4 commits November 15, 2026 10:24
…nd WM_FONTCHANGE broadcast

- Fix silent ConvertFrom-Json -AsHashtable failure in standard Windows PowerShell 5.1 that wiped out existing user settings
- Introduce backward-compatible PSObject property parser ensuring 100% preservation of existing settings.json
- Normalize JSON output without escaped single quotes (\u0027)
- Add P/Invoke call to AddFontResourceW and SendMessageTimeout (WM_FONTCHANGE) for real-time font activation without reboot
- Add CLI switches: -GlobalOnly, -ProjectOnly, -NoFonts, -Silent on Windows and equivalent flags on Bash
- Deploy global agent-rtl-fix skill alongside rule to ~/.gemini/config/skills/
- Support -Full / --full flag in uninstaller scripts
…iDi edge cases

- Add dedicated rules/zed.md configuration for Zed editor typography and assistant rules
- Add dedicated rules/aider.md system prompt configuration for Aider CLI
- Refine universal AGENTS.md and antigravity.md rules for inline code parentheses orientation, artifact frontmatter isolation, and LaTeX math handling
- Add GitHub Actions CI workflow running on windows-latest, ubuntu-latest, and macos-latest
- Validate install.ps1 compatibility and settings.json preservation under both Windows PowerShell 5.1 and pwsh 7
- Validate bash script syntax and project-only execution
- Verify synchronization between root installers and scripts/ directory
…nd CLI flags

- Update supported agent matrix with Zed Editor and Aider
- Document new CLI switches (-GlobalOnly, -ProjectOnly, -NoFonts, -Silent)
- Highlight real-time font activation without requiring system reboots
- Update repository layout tree with new rules, CI workflow, and skill paths

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant