crloop 0.1.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 +66 -0
- package/dist/client/assets/index-BY1o75E8.js +14 -0
- package/dist/client/assets/index-QcmHr2Xi.css +1 -0
- package/dist/client/favicon.svg +42 -0
- package/dist/client/index.html +17 -0
- package/dist/server/server/args.js +51 -0
- package/dist/server/server/assetPaths.js +17 -0
- package/dist/server/server/cli.js +377 -0
- package/dist/server/server/commentStore.js +190 -0
- package/dist/server/server/commentStore.test.js +34 -0
- package/dist/server/server/devServer.js +2 -0
- package/dist/server/server/diffParser.js +234 -0
- package/dist/server/server/diffParser.test.js +71 -0
- package/dist/server/server/errors.js +6 -0
- package/dist/server/server/exporter.js +4 -0
- package/dist/server/server/exporter.test.js +47 -0
- package/dist/server/server/git.js +11 -0
- package/dist/server/server/hash.js +4 -0
- package/dist/server/server/index.js +2 -0
- package/dist/server/server/platformPaths.js +12 -0
- package/dist/server/server/reviewService.js +202 -0
- package/dist/server/server/runServer.js +15 -0
- package/dist/server/server/server.js +235 -0
- package/dist/server/server/server.test.js +145 -0
- package/dist/server/server/testUtils.js +25 -0
- package/dist/server/shared/api.js +1 -0
- package/dist/server/shared/changePaths.js +3 -0
- package/dist/server/shared/export.js +26 -0
- package/dist/server/shared/types.js +1 -0
- package/package.json +48 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Roman Krysinski
|
|
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,66 @@
|
|
|
1
|
+
# crloop
|
|
2
|
+
|
|
3
|
+
`crloop` is a local code review tool for your Git working directory. Browse diffs, annotate changed lines, export structured comments as Markdown — all in a browser UI running entirely on your machine.
|
|
4
|
+
|
|
5
|
+
Built for the AI agent workflow: agent writes code → you review and annotate → agent reads your comments and iterates.
|
|
6
|
+
|
|
7
|
+
## Requirements
|
|
8
|
+
|
|
9
|
+
- Node.js 18+
|
|
10
|
+
- git in PATH
|
|
11
|
+
- A browser
|
|
12
|
+
|
|
13
|
+
## Installation
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npm install -g crloop
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Usage
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
crloop serve --repo /path/to/repo
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Open `http://localhost:3000` in your browser.
|
|
26
|
+
|
|
27
|
+
### Multiple repositories
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
crloop serve --repo /path/to/frontend --repo /path/to/backend
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### Manage repos in a running server
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
crloop add-repo /path/to/repo # register a repo
|
|
37
|
+
crloop repos # list registered repos
|
|
38
|
+
crloop remove-repo <id> # unregister a repo
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Stop the server
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
crloop stop-server
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### Help
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
crloop --help
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Uninstall
|
|
54
|
+
|
|
55
|
+
Stop any running server first, then remove the package:
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
crloop stop-server
|
|
59
|
+
npm uninstall -g crloop
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## Documentation
|
|
63
|
+
|
|
64
|
+
- [Usage manual](./docs/usage.md) — full CLI reference, comment storage, workflows
|
|
65
|
+
- [Development](./docs/development.md) — building and running from source
|
|
66
|
+
- [API](./docs/api.md) — HTTP API and comment file schema
|