Skip to content

Add sync-all script#16

Open
expede wants to merge 2 commits into
mainfrom
sync-all
Open

Add sync-all script#16
expede wants to merge 2 commits into
mainfrom
sync-all

Conversation

@expede

@expede expede commented Apr 9, 2026

Copy link
Copy Markdown
Member

With a Subduction-capable pushwork, this PR lets you do: pnpm run sync-all. It doesn't (yet) pushwork init --sub (there's a larger discussion to be had with the pushwork maintainers about API), so you will have needed to init packages with --sub first.

Example output:

# snip
│━━━ todo ━━━                                                                                                                                                                                                                          │
│⠋ Syncingusing deprecated parameters for `initSync()`; pass a single object instead                                                                                                                                                   │
│⠹ Waiting for initial sync from server                                                                                                                                                                                                │
│  Using Subduction sync backend (from config)(node:24000) TimeoutNegativeWarning: -1 is a negative number.                                                                                                                            │
│Timeout duration was set to 1.                                                                                                                                                                                                        │
│✔ Synced (1.60s)                                                                                                                                                                                                                      │
│  Using Subduction sync backend (from config)                                                                                                                                                                                         │
│Root: automerge:35bmoPrhJiy7XWCof3so4LFGqaBG                                                                                                                                                                                          │
│                                                                                                                                                                                                                                      │
│━━━ unconference ━━━                                                                                                                                                                                                                  │
│⠋ Syncingusing deprecated parameters for `initSync()`; pass a single object instead                                                                                                                                                   │
│⠹ Waiting for initial sync from server                                                                                                                                                                                                │
│  Using Subduction sync backend (from config)(node:24001) TimeoutNegativeWarning: -6 is a negative number.                                                                                                                            │
│Timeout duration was set to 1.                                                                                                                                                                                                        │
│✔ Synced (1.48s)                                                                                                                                                                                                                      │
│  Using Subduction sync backend (from config)                                                                                                                                                                                         │
│Root: automerge:3h3aaHQZ57zQbvSpE7w9e4bx2RS9                                                                                                                                                                                          │
│                                                                                                                                                                                                                                      │
│━━━ word-counter ━━━                                                                                                                                                                                                                  │
│⠋ Syncingusing deprecated parameters for `initSync()`; pass a single object instead                                                                                                                                                   │
│✔ Synced (1.01s)                                                                                                                                                                                                                      │
│  Using Subduction sync backend (from config)                                                                                                                                                                                         │
│Root: automerge:3GHj7JaGHbm4a2HXxVNbWKAkvvxE                                                                                                                                                                                          │
│                                                                                                                                                                                                                                      │
│━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━                                                                                                                                                                                                    │
│  32 succeeded, 0 failed

Copilot AI review requested due to automatic review settings April 9, 2026 06:29

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a repo-level sync-all command to run pushwork sync across all initialized tool/package directories in this monorepo.

Changes:

  • Introduces scripts/sync-all.sh to iterate top-level directories with .pushwork and run pushwork sync.
  • Adds a pnpm run sync-all script entry in the root package.json.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.

File Description
scripts/sync-all.sh New bash script to sync each initialized package and summarize successes/failures.
package.json Exposes the new script via pnpm run sync-all.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread scripts/sync-all.sh
Comment thread scripts/sync-all.sh
Comment thread scripts/sync-all.sh
Comment thread scripts/sync-all.sh Outdated
Comment thread package.json
pvh pushed a commit that referenced this pull request Apr 21, 2026
* dark text so i can see tools

* blank md tool

* fix tool not reloading when changing tool for current doc
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.

2 participants