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/cli/index.js
CHANGED
|
@@ -1718,7 +1718,10 @@ async function gitCheckpoint(workspace, message, includeUntracked) {
|
|
|
1718
1718
|
} catch (err) {
|
|
1719
1719
|
const output = (err?.stdout || "") + (err?.stderr || "");
|
|
1720
1720
|
if (/nothing to commit/i.test(output)) {
|
|
1721
|
-
throw new GitCommandError("
|
|
1721
|
+
throw new GitCommandError("nothing_to_commit", "Nothing to commit \u2014 working tree is clean.", {
|
|
1722
|
+
stdout: err?.stdout,
|
|
1723
|
+
stderr: err?.stderr
|
|
1724
|
+
});
|
|
1722
1725
|
}
|
|
1723
1726
|
throw err;
|
|
1724
1727
|
}
|
|
@@ -1926,6 +1929,7 @@ var init_git_commands = __esm({
|
|
|
1926
1929
|
"dirty_index_required",
|
|
1927
1930
|
"conflict",
|
|
1928
1931
|
"invalid_args",
|
|
1932
|
+
"nothing_to_commit",
|
|
1929
1933
|
"git_command_failed"
|
|
1930
1934
|
]);
|
|
1931
1935
|
defaultSnapshotStore = createGitSnapshotStore({
|
|
@@ -16994,10 +16998,26 @@ ${effect.notification.body || ""}`.trim();
|
|
|
16994
16998
|
}
|
|
16995
16999
|
mergeConversationMessages(parsedMessages) {
|
|
16996
17000
|
if (this.runtimeMessages.length === 0) return normalizeChatMessages(parsedMessages);
|
|
16997
|
-
|
|
16998
|
-
|
|
16999
|
-
|
|
17000
|
-
|
|
17001
|
+
const parsedEntries = parsedMessages.map((message, index) => ({
|
|
17002
|
+
message,
|
|
17003
|
+
index,
|
|
17004
|
+
source: "parsed"
|
|
17005
|
+
}));
|
|
17006
|
+
const runtimeEntries = this.runtimeMessages.map((entry, index) => ({
|
|
17007
|
+
message: entry.message,
|
|
17008
|
+
index: parsedMessages.length + index,
|
|
17009
|
+
source: "runtime"
|
|
17010
|
+
}));
|
|
17011
|
+
const getTime = (message) => {
|
|
17012
|
+
const value = typeof message.receivedAt === "number" ? message.receivedAt : typeof message.timestamp === "number" ? message.timestamp : 0;
|
|
17013
|
+
return Number.isFinite(value) && value > 0 ? value : 0;
|
|
17014
|
+
};
|
|
17015
|
+
return normalizeChatMessages([...parsedEntries, ...runtimeEntries].sort((a, b) => {
|
|
17016
|
+
const aTime = getTime(a.message);
|
|
17017
|
+
const bTime = getTime(b.message);
|
|
17018
|
+
if (aTime && bTime && aTime !== bTime) return aTime - bTime;
|
|
17019
|
+
if (aTime && !bTime && a.source === "runtime" && b.source === "parsed") return -1;
|
|
17020
|
+
if (!aTime && bTime && a.source === "parsed" && b.source === "runtime") return 1;
|
|
17001
17021
|
return a.index - b.index;
|
|
17002
17022
|
}).map((entry) => entry.message));
|
|
17003
17023
|
}
|
|
@@ -92891,7 +92911,7 @@ var init_adhdev_daemon = __esm({
|
|
|
92891
92911
|
init_version();
|
|
92892
92912
|
init_src();
|
|
92893
92913
|
init_runtime_defaults();
|
|
92894
|
-
pkgVersion = resolvePackageVersion({ injectedVersion: "0.9.76-rc.
|
|
92914
|
+
pkgVersion = resolvePackageVersion({ injectedVersion: "0.9.76-rc.22" });
|
|
92895
92915
|
AdhdevDaemon = class _AdhdevDaemon {
|
|
92896
92916
|
localHttpServer = null;
|
|
92897
92917
|
localWss = null;
|