@eliya-oss/agent-diff 0.1.0-alpha.8 → 0.1.0-alpha.80
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/.agents/adr/README.md +3 -0
- package/CHANGELOG.md +490 -0
- package/README.md +37 -89
- package/bin/adiff.js +6 -2
- package/dist/main.js +15816 -13804
- package/package.json +8 -6
- package/skills/adiff/SKILL.md +111 -33
package/bin/adiff.js
CHANGED
|
@@ -27,14 +27,18 @@ const MESSAGE = [
|
|
|
27
27
|
"Every other adiff command runs here. Install Node 26 to open the terminal.",
|
|
28
28
|
].join("\n")
|
|
29
29
|
|
|
30
|
+
const watched = () => process.stdout.isTTY && process.stdin.isTTY
|
|
31
|
+
|
|
30
32
|
const drawsTerminal = (argv) => {
|
|
31
33
|
const words = argv.filter((token) => !token.startsWith("--"))
|
|
34
|
+
if (argv.length === 0) return watched()
|
|
32
35
|
return words[0] === "review" && words[1] === "open"
|
|
33
36
|
}
|
|
34
37
|
|
|
35
38
|
const rendersHere = () =>
|
|
36
|
-
|
|
37
|
-
process.getBuiltinModule
|
|
39
|
+
process.versions.bun !== undefined ||
|
|
40
|
+
(typeof process.getBuiltinModule === "function" &&
|
|
41
|
+
process.getBuiltinModule("node:ffi") !== undefined)
|
|
38
42
|
|
|
39
43
|
const NODE_DIRECTORY = /^(?:v?\d|node)/
|
|
40
44
|
|