adhdev 0.9.76-rc.21 → 0.9.76-rc.22
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/dist/cli/index.js +26 -6
- package/dist/cli/index.js.map +1 -1
- package/dist/index.js +26 -6
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/vendor/mcp-server/index.js +2 -1
- package/vendor/mcp-server/index.js.map +1 -1
package/dist/index.js
CHANGED
|
@@ -1198,7 +1198,10 @@ async function gitCheckpoint(workspace, message, includeUntracked) {
|
|
|
1198
1198
|
} catch (err) {
|
|
1199
1199
|
const output = (err?.stdout || "") + (err?.stderr || "");
|
|
1200
1200
|
if (/nothing to commit/i.test(output)) {
|
|
1201
|
-
throw new GitCommandError("
|
|
1201
|
+
throw new GitCommandError("nothing_to_commit", "Nothing to commit \u2014 working tree is clean.", {
|
|
1202
|
+
stdout: err?.stdout,
|
|
1203
|
+
stderr: err?.stderr
|
|
1204
|
+
});
|
|
1202
1205
|
}
|
|
1203
1206
|
throw err;
|
|
1204
1207
|
}
|
|
@@ -1406,6 +1409,7 @@ var init_git_commands = __esm({
|
|
|
1406
1409
|
"dirty_index_required",
|
|
1407
1410
|
"conflict",
|
|
1408
1411
|
"invalid_args",
|
|
1412
|
+
"nothing_to_commit",
|
|
1409
1413
|
"git_command_failed"
|
|
1410
1414
|
]);
|
|
1411
1415
|
defaultSnapshotStore = createGitSnapshotStore({
|
|
@@ -16557,10 +16561,26 @@ ${effect.notification.body || ""}`.trim();
|
|
|
16557
16561
|
}
|
|
16558
16562
|
mergeConversationMessages(parsedMessages) {
|
|
16559
16563
|
if (this.runtimeMessages.length === 0) return normalizeChatMessages(parsedMessages);
|
|
16560
|
-
|
|
16561
|
-
|
|
16562
|
-
|
|
16563
|
-
|
|
16564
|
+
const parsedEntries = parsedMessages.map((message, index) => ({
|
|
16565
|
+
message,
|
|
16566
|
+
index,
|
|
16567
|
+
source: "parsed"
|
|
16568
|
+
}));
|
|
16569
|
+
const runtimeEntries = this.runtimeMessages.map((entry, index) => ({
|
|
16570
|
+
message: entry.message,
|
|
16571
|
+
index: parsedMessages.length + index,
|
|
16572
|
+
source: "runtime"
|
|
16573
|
+
}));
|
|
16574
|
+
const getTime = (message) => {
|
|
16575
|
+
const value = typeof message.receivedAt === "number" ? message.receivedAt : typeof message.timestamp === "number" ? message.timestamp : 0;
|
|
16576
|
+
return Number.isFinite(value) && value > 0 ? value : 0;
|
|
16577
|
+
};
|
|
16578
|
+
return normalizeChatMessages([...parsedEntries, ...runtimeEntries].sort((a, b) => {
|
|
16579
|
+
const aTime = getTime(a.message);
|
|
16580
|
+
const bTime = getTime(b.message);
|
|
16581
|
+
if (aTime && bTime && aTime !== bTime) return aTime - bTime;
|
|
16582
|
+
if (aTime && !bTime && a.source === "runtime" && b.source === "parsed") return -1;
|
|
16583
|
+
if (!aTime && bTime && a.source === "parsed" && b.source === "runtime") return 1;
|
|
16564
16584
|
return a.index - b.index;
|
|
16565
16585
|
}).map((entry) => entry.message));
|
|
16566
16586
|
}
|
|
@@ -61749,7 +61769,7 @@ var init_adhdev_daemon = __esm({
|
|
|
61749
61769
|
init_version();
|
|
61750
61770
|
init_src();
|
|
61751
61771
|
init_runtime_defaults();
|
|
61752
|
-
pkgVersion = resolvePackageVersion({ injectedVersion: "0.9.76-rc.
|
|
61772
|
+
pkgVersion = resolvePackageVersion({ injectedVersion: "0.9.76-rc.22" });
|
|
61753
61773
|
AdhdevDaemon = class _AdhdevDaemon {
|
|
61754
61774
|
localHttpServer = null;
|
|
61755
61775
|
localWss = null;
|