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/cli/index.js
CHANGED
|
@@ -90308,7 +90308,7 @@ var init_adhdev_daemon = __esm({
|
|
|
90308
90308
|
init_version();
|
|
90309
90309
|
init_src();
|
|
90310
90310
|
init_runtime_defaults();
|
|
90311
|
-
pkgVersion = resolvePackageVersion({ injectedVersion: "0.9.76-rc.
|
|
90311
|
+
pkgVersion = resolvePackageVersion({ injectedVersion: "0.9.76-rc.9" });
|
|
90312
90312
|
AdhdevDaemon = class _AdhdevDaemon {
|
|
90313
90313
|
localHttpServer = null;
|
|
90314
90314
|
localWss = null;
|
|
@@ -91144,6 +91144,19 @@ ${err?.stack || ""}`);
|
|
|
91144
91144
|
void this.statusReporter?.sendUnifiedStatusReport({ forceServer: true, reason });
|
|
91145
91145
|
void this.flushP2PDaemonMetadataSubscriptions();
|
|
91146
91146
|
}
|
|
91147
|
+
emitMeshCheckpointCompleteIfNeeded(commandType, result, normalizedData) {
|
|
91148
|
+
if (commandType !== "git_checkpoint" || result?.success !== true || !this.meshManager) return;
|
|
91149
|
+
const workspace = String(normalizedData.workspace ?? "");
|
|
91150
|
+
const baseContext = {
|
|
91151
|
+
workspace,
|
|
91152
|
+
checkpoint_message: result.checkpoint?.message ?? String(normalizedData.message ?? ""),
|
|
91153
|
+
commit: result.checkpoint?.commit ?? "",
|
|
91154
|
+
source_session_id: String(normalizedData.targetSessionId ?? "")
|
|
91155
|
+
};
|
|
91156
|
+
void this.buildMeshCheckpointContext(workspace, baseContext).then((ctx) => {
|
|
91157
|
+
this.meshManager.emit({ trigger: "git_checkpoint_complete", context: ctx });
|
|
91158
|
+
});
|
|
91159
|
+
}
|
|
91147
91160
|
async handleCommand(msg, cmd, args) {
|
|
91148
91161
|
const normalizedArgs = this.ensureInteractionContext(args);
|
|
91149
91162
|
const interactionId = String(normalizedArgs._interactionId);
|
|
@@ -91178,6 +91191,10 @@ ${err?.stack || ""}`);
|
|
|
91178
91191
|
if (cmd === "resolve_action" || cmd === "send_chat" || cmd === "read_chat") {
|
|
91179
91192
|
void this.flushP2PSessionModalSubscriptions();
|
|
91180
91193
|
}
|
|
91194
|
+
if (cmd.startsWith("git_")) {
|
|
91195
|
+
void this.flushP2PWorkspaceGitSubscriptions();
|
|
91196
|
+
}
|
|
91197
|
+
this.emitMeshCheckpointCompleteIfNeeded(cmd, result, normalizedArgs);
|
|
91181
91198
|
this.sendResult(msg, result.success, { ...result, interactionId });
|
|
91182
91199
|
recordDebugTrace({
|
|
91183
91200
|
interactionId,
|
|
@@ -91259,18 +91276,7 @@ ${err?.stack || ""}`);
|
|
|
91259
91276
|
if (cmdType.startsWith("git_")) {
|
|
91260
91277
|
void this.flushP2PWorkspaceGitSubscriptions();
|
|
91261
91278
|
}
|
|
91262
|
-
|
|
91263
|
-
const workspace = String(normalizedData.workspace ?? "");
|
|
91264
|
-
const baseContext = {
|
|
91265
|
-
workspace,
|
|
91266
|
-
checkpoint_message: routed.checkpoint?.message ?? String(normalizedData.message ?? ""),
|
|
91267
|
-
commit: routed.checkpoint?.commit ?? "",
|
|
91268
|
-
source_session_id: String(normalizedData.targetSessionId ?? "")
|
|
91269
|
-
};
|
|
91270
|
-
void this.buildMeshCheckpointContext(workspace, baseContext).then((ctx) => {
|
|
91271
|
-
this.meshManager.emit({ trigger: "git_checkpoint_complete", context: ctx });
|
|
91272
|
-
});
|
|
91273
|
-
}
|
|
91279
|
+
this.emitMeshCheckpointCompleteIfNeeded(cmdType, routed, normalizedData);
|
|
91274
91280
|
return { ...routed, interactionId };
|
|
91275
91281
|
} catch (e) {
|
|
91276
91282
|
logCommand({ ts: (/* @__PURE__ */ new Date()).toISOString(), cmd: cmdType, source: "p2p", interactionId, success: false, error: e.message, durationMs: Date.now() - cmdStart });
|
|
@@ -91423,6 +91429,7 @@ ${err?.stack || ""}`);
|
|
|
91423
91429
|
result = { success: true, result: relayResult };
|
|
91424
91430
|
} else {
|
|
91425
91431
|
result = await this.components.router.execute(command, normalizedArgs, "ipc");
|
|
91432
|
+
this.emitMeshCheckpointCompleteIfNeeded(command, result, normalizedArgs);
|
|
91426
91433
|
}
|
|
91427
91434
|
ws.send(JSON.stringify({
|
|
91428
91435
|
type: "ext:command_result",
|