reslop 0.1.0 → 0.1.2
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/CHANGELOG.md +25 -9
- package/README.md +25 -40
- package/bin/reslop.js +2 -2
- package/lib/ansi.js +0 -1
- package/lib/api.js +5 -0
- package/lib/cli.js +84 -79
- package/lib/clipboard.js +1 -1
- package/lib/deps.js +1440 -0
- package/lib/detect.js +4 -4
- package/lib/diff.js +40 -63
- package/lib/editor.js +1 -1
- package/lib/files.js +23 -4
- package/lib/git.js +367 -18
- package/lib/github.js +625 -0
- package/lib/highlight.js +149 -166
- package/lib/keys.js +34 -41
- package/lib/render.js +218 -143
- package/lib/review.js +52 -45
- package/lib/select.js +21 -31
- package/lib/session.js +298 -235
- package/lib/source.js +30 -0
- package/package.json +37 -18
package/lib/source.js
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const { parseGithubPrUrl } = require('./github.js');
|
|
4
|
+
|
|
5
|
+
const selectChangeSource = (paths) => {
|
|
6
|
+
if (!paths.length) return { kind: 'local', paths };
|
|
7
|
+
const first = paths[0];
|
|
8
|
+
const pr = parseGithubPrUrl(first);
|
|
9
|
+
if (!pr) return { kind: 'local', paths };
|
|
10
|
+
return { kind: 'github-pr', pr, paths: paths.slice(1) };
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
const nop = () => {};
|
|
14
|
+
|
|
15
|
+
const createLoadedSource = (loaded) => ({
|
|
16
|
+
load: () => {
|
|
17
|
+
const items = loaded.items ?? [];
|
|
18
|
+
return { ...loaded, items: [...items] };
|
|
19
|
+
},
|
|
20
|
+
add: nop,
|
|
21
|
+
unstage: nop,
|
|
22
|
+
revert: nop,
|
|
23
|
+
revertFile: nop,
|
|
24
|
+
resolveRev: () => null,
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
module.exports = {
|
|
28
|
+
selectChangeSource,
|
|
29
|
+
createLoadedSource,
|
|
30
|
+
};
|
package/package.json
CHANGED
|
@@ -1,9 +1,41 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "reslop",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "Interactive
|
|
3
|
+
"version": "0.1.2",
|
|
4
|
+
"description": "Interactive code review and repair planning for AI-assisted changes",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"code-review",
|
|
7
|
+
"git",
|
|
8
|
+
"diff",
|
|
9
|
+
"ai",
|
|
10
|
+
"llm",
|
|
11
|
+
"coding-agent",
|
|
12
|
+
"repair-plan",
|
|
13
|
+
"human-in-the-loop",
|
|
14
|
+
"tui",
|
|
15
|
+
"code-quality",
|
|
16
|
+
"developer-tools",
|
|
17
|
+
"deslop",
|
|
18
|
+
"neuroslop",
|
|
19
|
+
"agent",
|
|
20
|
+
"agentic",
|
|
21
|
+
"vibecoding",
|
|
22
|
+
"sdd",
|
|
23
|
+
"planning",
|
|
24
|
+
"security-review",
|
|
25
|
+
"quality-review",
|
|
26
|
+
"maintainability",
|
|
27
|
+
"refactoring"
|
|
28
|
+
],
|
|
29
|
+
"homepage": "https://github.com/tshemsedinov/reslop",
|
|
30
|
+
"bugs": {
|
|
31
|
+
"url": "https://github.com/tshemsedinov/reslop/issues"
|
|
32
|
+
},
|
|
5
33
|
"license": "MIT",
|
|
6
34
|
"author": "Timur Shemsedinov <timur.shemsedinov@gmail.com>",
|
|
35
|
+
"repository": {
|
|
36
|
+
"type": "git",
|
|
37
|
+
"url": "git+https://github.com/tshemsedinov/reslop.git"
|
|
38
|
+
},
|
|
7
39
|
"main": "lib/api.js",
|
|
8
40
|
"bin": {
|
|
9
41
|
"reslop": "bin/reslop.js"
|
|
@@ -13,22 +45,6 @@
|
|
|
13
45
|
"lib/",
|
|
14
46
|
"CHANGELOG.md"
|
|
15
47
|
],
|
|
16
|
-
"repository": {
|
|
17
|
-
"type": "git",
|
|
18
|
-
"url": "git+https://github.com/tshemsedinov/metadiff.git"
|
|
19
|
-
},
|
|
20
|
-
"homepage": "https://github.com/tshemsedinov/metadiff",
|
|
21
|
-
"bugs": {
|
|
22
|
-
"url": "https://github.com/tshemsedinov/metadiff/issues"
|
|
23
|
-
},
|
|
24
|
-
"keywords": [
|
|
25
|
-
"git",
|
|
26
|
-
"diff",
|
|
27
|
-
"review",
|
|
28
|
-
"cli",
|
|
29
|
-
"terminal",
|
|
30
|
-
"tui"
|
|
31
|
-
],
|
|
32
48
|
"engines": {
|
|
33
49
|
"node": ">=18"
|
|
34
50
|
},
|
|
@@ -44,5 +60,8 @@
|
|
|
44
60
|
"eslint-config-metarhia": "^9.1.9",
|
|
45
61
|
"metaskills": "^1.0.5",
|
|
46
62
|
"prettier": "^3.8.4"
|
|
63
|
+
},
|
|
64
|
+
"dependencies": {
|
|
65
|
+
"metautil": "^5.5.2"
|
|
47
66
|
}
|
|
48
67
|
}
|