adhdev 0.9.76-rc.8 → 0.9.76-rc.9
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 +20 -13
- package/dist/cli/index.js.map +1 -1
- package/dist/index.js +20 -13
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -59166,7 +59166,7 @@ var init_adhdev_daemon = __esm({
|
|
|
59166
59166
|
init_version();
|
|
59167
59167
|
init_src();
|
|
59168
59168
|
init_runtime_defaults();
|
|
59169
|
-
pkgVersion = resolvePackageVersion({ injectedVersion: "0.9.76-rc.
|
|
59169
|
+
pkgVersion = resolvePackageVersion({ injectedVersion: "0.9.76-rc.9" });
|
|
59170
59170
|
AdhdevDaemon = class _AdhdevDaemon {
|
|
59171
59171
|
localHttpServer = null;
|
|
59172
59172
|
localWss = null;
|
|
@@ -60002,6 +60002,19 @@ ${err?.stack || ""}`);
|
|
|
60002
60002
|
void this.statusReporter?.sendUnifiedStatusReport({ forceServer: true, reason });
|
|
60003
60003
|
void this.flushP2PDaemonMetadataSubscriptions();
|
|
60004
60004
|
}
|
|
60005
|
+
emitMeshCheckpointCompleteIfNeeded(commandType, result, normalizedData) {
|
|
60006
|
+
if (commandType !== "git_checkpoint" || result?.success !== true || !this.meshManager) return;
|
|
60007
|
+
const workspace = String(normalizedData.workspace ?? "");
|
|
60008
|
+
const baseContext = {
|
|
60009
|
+
workspace,
|
|
60010
|
+
checkpoint_message: result.checkpoint?.message ?? String(normalizedData.message ?? ""),
|
|
60011
|
+
commit: result.checkpoint?.commit ?? "",
|
|
60012
|
+
source_session_id: String(normalizedData.targetSessionId ?? "")
|
|
60013
|
+
};
|
|
60014
|
+
void this.buildMeshCheckpointContext(workspace, baseContext).then((ctx) => {
|
|
60015
|
+
this.meshManager.emit({ trigger: "git_checkpoint_complete", context: ctx });
|
|
60016
|
+
});
|
|
60017
|
+
}
|
|
60005
60018
|
async handleCommand(msg, cmd, args) {
|
|
60006
60019
|
const normalizedArgs = this.ensureInteractionContext(args);
|
|
60007
60020
|
const interactionId = String(normalizedArgs._interactionId);
|
|
@@ -60036,6 +60049,10 @@ ${err?.stack || ""}`);
|
|
|
60036
60049
|
if (cmd === "resolve_action" || cmd === "send_chat" || cmd === "read_chat") {
|
|
60037
60050
|
void this.flushP2PSessionModalSubscriptions();
|
|
60038
60051
|
}
|
|
60052
|
+
if (cmd.startsWith("git_")) {
|
|
60053
|
+
void this.flushP2PWorkspaceGitSubscriptions();
|
|
60054
|
+
}
|
|
60055
|
+
this.emitMeshCheckpointCompleteIfNeeded(cmd, result, normalizedArgs);
|
|
60039
60056
|
this.sendResult(msg, result.success, { ...result, interactionId });
|
|
60040
60057
|
recordDebugTrace({
|
|
60041
60058
|
interactionId,
|
|
@@ -60117,18 +60134,7 @@ ${err?.stack || ""}`);
|
|
|
60117
60134
|
if (cmdType.startsWith("git_")) {
|
|
60118
60135
|
void this.flushP2PWorkspaceGitSubscriptions();
|
|
60119
60136
|
}
|
|
60120
|
-
|
|
60121
|
-
const workspace = String(normalizedData.workspace ?? "");
|
|
60122
|
-
const baseContext = {
|
|
60123
|
-
workspace,
|
|
60124
|
-
checkpoint_message: routed.checkpoint?.message ?? String(normalizedData.message ?? ""),
|
|
60125
|
-
commit: routed.checkpoint?.commit ?? "",
|
|
60126
|
-
source_session_id: String(normalizedData.targetSessionId ?? "")
|
|
60127
|
-
};
|
|
60128
|
-
void this.buildMeshCheckpointContext(workspace, baseContext).then((ctx) => {
|
|
60129
|
-
this.meshManager.emit({ trigger: "git_checkpoint_complete", context: ctx });
|
|
60130
|
-
});
|
|
60131
|
-
}
|
|
60137
|
+
this.emitMeshCheckpointCompleteIfNeeded(cmdType, routed, normalizedData);
|
|
60132
60138
|
return { ...routed, interactionId };
|
|
60133
60139
|
} catch (e) {
|
|
60134
60140
|
logCommand({ ts: (/* @__PURE__ */ new Date()).toISOString(), cmd: cmdType, source: "p2p", interactionId, success: false, error: e.message, durationMs: Date.now() - cmdStart });
|
|
@@ -60281,6 +60287,7 @@ ${err?.stack || ""}`);
|
|
|
60281
60287
|
result = { success: true, result: relayResult };
|
|
60282
60288
|
} else {
|
|
60283
60289
|
result = await this.components.router.execute(command, normalizedArgs, "ipc");
|
|
60290
|
+
this.emitMeshCheckpointCompleteIfNeeded(command, result, normalizedArgs);
|
|
60284
60291
|
}
|
|
60285
60292
|
ws.send(JSON.stringify({
|
|
60286
60293
|
type: "ext:command_result",
|