repolith 0.0.1

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.
Files changed (4) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +58 -0
  3. package/dist/cli.js +2050 -0
  4. package/package.json +47 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Ricky Cooper
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,58 @@
1
+ # repolith
2
+
3
+ > Make a set of independent git repos feel like one monorepo — without touching git internals, GitHub, or CI.
4
+
5
+ **Status: early / under active development (v0.0.x).** The name is reserved and the core is being built task-by-task. APIs and commands will change until v0.1.
6
+
7
+ ## What it is
8
+
9
+ `repolith` composes several independent git repositories into one workspace. Git stays git, GitHub stays GitHub, CI stays CI — `repolith` adds a thin layer on top:
10
+
11
+ - **`repolith.toml`** — a TOML manifest declaring which repos belong together and where they live.
12
+ - **`repolith.lock.json`** — a lockfile pinning each repo's commit SHA plus a single **atomic workspace hash**: one content-ID for the entire multi-repo state. Like `package-lock.json`, but for a set of repos.
13
+ - **A parallel CLI** — `sync`, `status`, `grep`, `log`, `diff`, `exec`, `init` dispatched across every repo at once.
14
+ - **A VS Code extension** — repos appear as sidebar folders with cross-repo search.
15
+ - **An MCP server** (planned) — so AI coding agents and CI can reconstruct an exact multi-repo state deterministically.
16
+
17
+ > The thesis: **git pins a repo; `repolith` pins a *system*.**
18
+
19
+ ## Install
20
+
21
+ ```bash
22
+ npm i -g repolith
23
+ # or
24
+ bun add -g repolith
25
+ ```
26
+
27
+ ## Quick start (target shape — not all commands shipped yet)
28
+
29
+ ```bash
30
+ repolith init # interactively create repolith.toml
31
+ repolith sync # clone/checkout every repo, write the lockfile
32
+ repolith status # branch + dirty/clean + ahead/behind, per repo
33
+ repolith grep "TODO" # search across all repos at once
34
+ repolith exec "npm test" # run a command in every repo
35
+ ```
36
+
37
+ ### Example `repolith.toml`
38
+
39
+ ```toml
40
+ [workspace]
41
+ name = "my-workspace"
42
+
43
+ [[repos]]
44
+ name = "frontend"
45
+ url = "https://github.com/org/frontend.git"
46
+ path = "packages/frontend"
47
+ ref = "main"
48
+
49
+ [[repos]]
50
+ name = "backend"
51
+ url = "https://github.com/org/backend.git"
52
+ path = "packages/backend"
53
+ ref = "main"
54
+ ```
55
+
56
+ ## License
57
+
58
+ MIT © Ricky Cooper