@adhdev/daemon-standalone 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/index.js +25 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/vendor/mcp-server/index.js +27 -6
- package/vendor/mcp-server/index.js.map +1 -1
package/package.json
CHANGED
|
@@ -27329,7 +27329,10 @@ async function gitCheckpoint2(workspace, message, includeUntracked) {
|
|
|
27329
27329
|
} catch (err) {
|
|
27330
27330
|
const output = (err?.stdout || "") + (err?.stderr || "");
|
|
27331
27331
|
if (/nothing to commit/i.test(output)) {
|
|
27332
|
-
throw new GitCommandError("
|
|
27332
|
+
throw new GitCommandError("nothing_to_commit", "Nothing to commit \u2014 working tree is clean.", {
|
|
27333
|
+
stdout: err?.stdout,
|
|
27334
|
+
stderr: err?.stderr
|
|
27335
|
+
});
|
|
27333
27336
|
}
|
|
27334
27337
|
throw err;
|
|
27335
27338
|
}
|
|
@@ -42532,6 +42535,7 @@ ${lastSnapshot}`;
|
|
|
42532
42535
|
"dirty_index_required",
|
|
42533
42536
|
"conflict",
|
|
42534
42537
|
"invalid_args",
|
|
42538
|
+
"nothing_to_commit",
|
|
42535
42539
|
"git_command_failed"
|
|
42536
42540
|
]);
|
|
42537
42541
|
defaultSnapshotStore = createGitSnapshotStore({
|
|
@@ -46981,10 +46985,26 @@ ${effect.notification.body || ""}`.trim();
|
|
|
46981
46985
|
}
|
|
46982
46986
|
mergeConversationMessages(parsedMessages) {
|
|
46983
46987
|
if (this.runtimeMessages.length === 0) return normalizeChatMessages(parsedMessages);
|
|
46984
|
-
|
|
46985
|
-
|
|
46986
|
-
|
|
46987
|
-
|
|
46988
|
+
const parsedEntries = parsedMessages.map((message, index) => ({
|
|
46989
|
+
message,
|
|
46990
|
+
index,
|
|
46991
|
+
source: "parsed"
|
|
46992
|
+
}));
|
|
46993
|
+
const runtimeEntries = this.runtimeMessages.map((entry, index) => ({
|
|
46994
|
+
message: entry.message,
|
|
46995
|
+
index: parsedMessages.length + index,
|
|
46996
|
+
source: "runtime"
|
|
46997
|
+
}));
|
|
46998
|
+
const getTime = (message) => {
|
|
46999
|
+
const value = typeof message.receivedAt === "number" ? message.receivedAt : typeof message.timestamp === "number" ? message.timestamp : 0;
|
|
47000
|
+
return Number.isFinite(value) && value > 0 ? value : 0;
|
|
47001
|
+
};
|
|
47002
|
+
return normalizeChatMessages([...parsedEntries, ...runtimeEntries].sort((a, b) => {
|
|
47003
|
+
const aTime = getTime(a.message);
|
|
47004
|
+
const bTime = getTime(b.message);
|
|
47005
|
+
if (aTime && bTime && aTime !== bTime) return aTime - bTime;
|
|
47006
|
+
if (aTime && !bTime && a.source === "runtime" && b.source === "parsed") return -1;
|
|
47007
|
+
if (!aTime && bTime && a.source === "parsed" && b.source === "runtime") return 1;
|
|
46988
47008
|
return a.index - b.index;
|
|
46989
47009
|
}).map((entry) => entry.message));
|
|
46990
47010
|
}
|
|
@@ -56699,7 +56719,8 @@ async function meshCheckpoint(ctx, args) {
|
|
|
56699
56719
|
if (isLocalTransport(ctx.transport)) {
|
|
56700
56720
|
const result = await commandForNode(ctx, node, "git_checkpoint", {
|
|
56701
56721
|
workspace: node.workspace,
|
|
56702
|
-
message: args.message
|
|
56722
|
+
message: args.message,
|
|
56723
|
+
includeUntracked: true
|
|
56703
56724
|
});
|
|
56704
56725
|
return JSON.stringify(result, null, 2);
|
|
56705
56726
|
} else {
|