@adhdev/daemon-standalone 0.9.76-rc.20 → 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 +37 -11
- 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
|
}
|
|
@@ -56385,11 +56405,16 @@ function unwrapCommandPayload(value) {
|
|
|
56385
56405
|
return value?.result?.result ?? value?.result ?? value;
|
|
56386
56406
|
}
|
|
56387
56407
|
function findNestedPayload(value, predicate) {
|
|
56388
|
-
|
|
56389
|
-
|
|
56390
|
-
|
|
56391
|
-
|
|
56392
|
-
|
|
56408
|
+
const seen = /* @__PURE__ */ new Set();
|
|
56409
|
+
const stack = [{ payload: value, depth: 0 }];
|
|
56410
|
+
while (stack.length) {
|
|
56411
|
+
const { payload, depth } = stack.pop();
|
|
56412
|
+
if (predicate(payload)) return payload;
|
|
56413
|
+
if (!payload || typeof payload !== "object" || seen.has(payload) || depth >= 8) continue;
|
|
56414
|
+
seen.add(payload);
|
|
56415
|
+
for (const key of ["payload", "result"]) {
|
|
56416
|
+
if (key in payload) stack.push({ payload: payload[key], depth: depth + 1 });
|
|
56417
|
+
}
|
|
56393
56418
|
}
|
|
56394
56419
|
return value;
|
|
56395
56420
|
}
|
|
@@ -56694,7 +56719,8 @@ async function meshCheckpoint(ctx, args) {
|
|
|
56694
56719
|
if (isLocalTransport(ctx.transport)) {
|
|
56695
56720
|
const result = await commandForNode(ctx, node, "git_checkpoint", {
|
|
56696
56721
|
workspace: node.workspace,
|
|
56697
|
-
message: args.message
|
|
56722
|
+
message: args.message,
|
|
56723
|
+
includeUntracked: true
|
|
56698
56724
|
});
|
|
56699
56725
|
return JSON.stringify(result, null, 2);
|
|
56700
56726
|
} else {
|