Skip to content

Saml1211/rules-sync-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rules Sync Server

This script keeps .roo/rules/rules.md and .cursor/rules/journal.mdc in sync at all times.

Features:

  • Watches both files for changes.
  • Whenever either file changes, updates the other to match.
  • When updating .cursor/rules/journal.mdc, all instances of "Cursor"/"cursor" are automatically replaced with "Roo"/"roo".

Setup

  1. Open a terminal in this directory:

    cd scripts/rules-sync-server
    
  2. Install dependencies:

    npm install
    

Usage

Start the sync server with:

npm start

or

node index.js

The script will print messages when it syncs files. Leave it running in the background while you work.

Notes

  • Requires Node.js (v14+ recommended).
  • If either file does not exist yet, create it before starting the sync server.
  • Prevents infinite sync loops and redundant writes.

About

Server for synchronizing automation rules across devices.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors