@eliya-oss/agent-diff 0.1.0-alpha.37 → 0.1.0-alpha.38
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 +6 -0
- package/bin/adiff.js +3 -2
- package/dist/main.js +8 -15
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @eliya-oss/agent-diff
|
|
2
2
|
|
|
3
|
+
## 0.1.0-alpha.38
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- adiff --version answers from a version built into the bundle rather than a package.json found beside it, and a Bun runtime opens the terminal itself instead of going looking for a Node it does not need.
|
|
8
|
+
|
|
3
9
|
## 0.1.0-alpha.37
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/bin/adiff.js
CHANGED
|
@@ -33,8 +33,9 @@ const drawsTerminal = (argv) => {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
const rendersHere = () =>
|
|
36
|
-
|
|
37
|
-
process.getBuiltinModule
|
|
36
|
+
process.versions.bun !== undefined ||
|
|
37
|
+
(typeof process.getBuiltinModule === "function" &&
|
|
38
|
+
process.getBuiltinModule("node:ffi") !== undefined)
|
|
38
39
|
|
|
39
40
|
const NODE_DIRECTORY = /^(?:v?\d|node)/
|
|
40
41
|
|
package/dist/main.js
CHANGED
|
@@ -8635,13 +8635,13 @@ var init_commands = __esmMin((() => {
|
|
|
8635
8635
|
}));
|
|
8636
8636
|
//#endregion
|
|
8637
8637
|
//#region src/cli/init.ts
|
|
8638
|
-
var BEGIN, END, REACH
|
|
8638
|
+
var BEGIN, END, REACH, INSTRUCTIONS, IMPORT, blockIn, replaced, appended, planFor, readAt, writeAt, settle, skillSource, shippedSkill, settleSkill, initRepository;
|
|
8639
8639
|
var init_init = __esmMin((() => {
|
|
8640
8640
|
init_dist();
|
|
8641
8641
|
init_error$1();
|
|
8642
8642
|
BEGIN = "<!-- adiff:begin -->";
|
|
8643
8643
|
END = "<!-- adiff:end -->";
|
|
8644
|
-
REACH
|
|
8644
|
+
REACH = 5;
|
|
8645
8645
|
INSTRUCTIONS = [
|
|
8646
8646
|
BEGIN,
|
|
8647
8647
|
"## Review",
|
|
@@ -8716,7 +8716,7 @@ var init_init = __esmMin((() => {
|
|
|
8716
8716
|
});
|
|
8717
8717
|
skillSource = () => {
|
|
8718
8718
|
const here = dirname(fileURLToPath(import.meta.url));
|
|
8719
|
-
return Array.from({ length: REACH
|
|
8719
|
+
return Array.from({ length: REACH }, (_, layer) => join(here, ...Array(layer).fill(".."))).map((at) => join(at, "skills", "adiff", "SKILL.md")).find((path) => existsSync(path));
|
|
8720
8720
|
};
|
|
8721
8721
|
shippedSkill = fn("Cli.shippedSkill")(function* () {
|
|
8722
8722
|
const source = skillSource();
|
|
@@ -9837,21 +9837,14 @@ var init_cli = __esmMin((() => {
|
|
|
9837
9837
|
init_error$1();
|
|
9838
9838
|
}));
|
|
9839
9839
|
//#endregion
|
|
9840
|
-
//#region
|
|
9840
|
+
//#region package.json
|
|
9841
9841
|
init_cli();
|
|
9842
|
+
var version$1 = "0.1.0-alpha.38";
|
|
9843
|
+
//#endregion
|
|
9844
|
+
//#region src/cli/help.ts
|
|
9842
9845
|
init_catalog();
|
|
9843
9846
|
const NAME_ROOM = 18;
|
|
9844
|
-
const
|
|
9845
|
-
const manifest = () => {
|
|
9846
|
-
const here = dirname(fileURLToPath(import.meta.url));
|
|
9847
|
-
return Array.from({ length: REACH }, (_, layer) => join(here, ...Array(layer).fill(".."))).map((at) => join(at, "package.json")).find((path) => existsSync(path));
|
|
9848
|
-
};
|
|
9849
|
-
const version = () => {
|
|
9850
|
-
const path = manifest();
|
|
9851
|
-
if (path === void 0) return "unknown";
|
|
9852
|
-
const raw = readFileSync(path, "utf8");
|
|
9853
|
-
return JSON.parse(raw).version ?? "unknown";
|
|
9854
|
-
};
|
|
9847
|
+
const version = () => version$1;
|
|
9855
9848
|
const line = (command) => ` ${command.name.padEnd(NAME_ROOM)}${command.about}`;
|
|
9856
9849
|
const banner = () => [
|
|
9857
9850
|
`adiff ${version()}`,
|
package/package.json
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"bin": {
|
|
24
24
|
"adiff": "./bin/adiff.js"
|
|
25
25
|
},
|
|
26
|
-
"version": "0.1.0-alpha.
|
|
26
|
+
"version": "0.1.0-alpha.38",
|
|
27
27
|
"description": "Review the work an agent left you without losing the thread: comments live on the lines, the agent answers them, and each point stays open until you settle it.",
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"repository": {
|