sidecarsync 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +96 -0
- package/dist/cli.js +4845 -0
- package/package.json +45 -0
- package/scripts/postinstall.js +169 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Zack Story
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="https://raw.githubusercontent.com/anteprojector/sidecar/main/packages/marketing/branding/readme-hero.svg" alt="sidecar" width="420" />
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
<p align="center">
|
|
6
|
+
<a href="https://anteprojector.github.io/sidecar/">Website</a> ·
|
|
7
|
+
<a href="#quickstart">Quickstart</a> ·
|
|
8
|
+
<a href="docs/commands.md">Commands</a> ·
|
|
9
|
+
<a href="https://www.npmjs.com/package/sidecarsync">npm</a>
|
|
10
|
+
</p>
|
|
11
|
+
|
|
12
|
+
# sidecar
|
|
13
|
+
|
|
14
|
+
[](https://www.npmjs.com/package/sidecarsync)
|
|
15
|
+
[](LICENSE)
|
|
16
|
+
[](https://nodejs.org)
|
|
17
|
+
|
|
18
|
+
Sidecar is a child repo — *not a submodule* — for your repo. Gitignored,
|
|
19
|
+
shared, auto-synced, and never a merge conflict: give your agents a
|
|
20
|
+
scratchpad that's always up to date.
|
|
21
|
+
|
|
22
|
+
```text
|
|
23
|
+
your-repo/
|
|
24
|
+
|-- .sidecar # committed config (points at the sidecar remote)
|
|
25
|
+
|-- sidecar/ # gitignored, shared, auto-synced, no merge conflicts
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Your agents' planning docs, research notes, and context files don't belong
|
|
29
|
+
in your code's history. They shouldn't reset when you switch branches or
|
|
30
|
+
worktrees, and the latest version is the only one that matters. sidecar
|
|
31
|
+
keeps them in a separate git repo that lives *inside* your working tree,
|
|
32
|
+
while a background daemon keeps every clone in sync.
|
|
33
|
+
|
|
34
|
+
- **It's just git.** The scratchpad is a normal repo you own — clone it,
|
|
35
|
+
grep it, read it on GitHub, build your own extensions with git hooks.
|
|
36
|
+
- **Zero merge conflicts.** Each machine writes to its own inbox branch;
|
|
37
|
+
sidecar merges them so a sync never stops you to resolve anything.
|
|
38
|
+
- **Zero ceremony.** The daemon watches for changes and syncs automatically.
|
|
39
|
+
You never commit, pull, or push it by hand.
|
|
40
|
+
- **Found by default.** It lives inside your working tree, so agents and
|
|
41
|
+
tools pick it up with no configuration at all.
|
|
42
|
+
- **Secrets stay home.** Pasted API keys and tokens are redacted from pushes
|
|
43
|
+
while your local files stay untouched; PII redaction is one flag away —
|
|
44
|
+
[how redaction works](docs/redaction.md).
|
|
45
|
+
|
|
46
|
+
## Quickstart
|
|
47
|
+
|
|
48
|
+
Requires Node.js 20+ and git, on macOS or Linux. (Windows is coming soon.)
|
|
49
|
+
|
|
50
|
+
```sh
|
|
51
|
+
npm install -g sidecarsync
|
|
52
|
+
cd ~/dev/your-repo
|
|
53
|
+
sidecar init
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
That's it. If the repo already has a committed `.sidecar` file, init joins
|
|
57
|
+
the existing sidecar. If not, init walks you through it — pick where the
|
|
58
|
+
checkout lives, then paste a remote URL, or leave it blank and init creates
|
|
59
|
+
a private repo for you with the GitHub CLI (`gh`).
|
|
60
|
+
|
|
61
|
+
The daemon takes it from here. `sidecar status` shows what's happening;
|
|
62
|
+
`sidecar sync` forces a sync right now. Once a second machine joins,
|
|
63
|
+
[`sidecar health`](docs/commands.md#fleet-health) shows whether all of them are
|
|
64
|
+
still syncing — a sync can fail on one laptop for reasons the others would
|
|
65
|
+
otherwise never hear about.
|
|
66
|
+
|
|
67
|
+
### Standalone repos
|
|
68
|
+
|
|
69
|
+
Some repos have no parent — a dotfiles or machine-setup repo you keep on
|
|
70
|
+
every machine, that wants auto-sync for its own sake. Answer `.` when init
|
|
71
|
+
asks for the checkout path (or pass `--path .`) and the repo becomes its own
|
|
72
|
+
sidecar, syncing to its own remote:
|
|
73
|
+
|
|
74
|
+
```sh
|
|
75
|
+
cd ~/dev/setup
|
|
76
|
+
sidecar init --path .
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
Sidecar takes over branch management there —
|
|
80
|
+
[how standalone works](docs/standalone.md).
|
|
81
|
+
|
|
82
|
+
## Learn more
|
|
83
|
+
|
|
84
|
+
- [How syncing works](docs/sync.md) — the daemon, inbox branches, conflict-free merging
|
|
85
|
+
- [Standalone repos](docs/standalone.md) — a repo that is its own sidecar
|
|
86
|
+
- [Redaction](docs/redaction.md) — what's stripped from pushes, reviewing it, opting out
|
|
87
|
+
- [Editor search visibility](docs/editors.md) — making gitignored files searchable
|
|
88
|
+
- [Global vs local installs](docs/install.md) — pinning sidecar per-repo
|
|
89
|
+
- [All commands](docs/commands.md)
|
|
90
|
+
- [Uninstall & troubleshooting](docs/uninstall.md) — removing the daemon, service, and state
|
|
91
|
+
|
|
92
|
+
## Inspiration
|
|
93
|
+
|
|
94
|
+
- [hunk](https://www.hunk.dev/)
|
|
95
|
+
- [plannotator](https://github.com/backnotprop/plannotator)
|
|
96
|
+
- [jujutsu](https://github.com/jj-vcs/jj)
|