adhdev 0.9.76-rc.5 → 0.9.76-rc.6

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 CHANGED
@@ -39099,7 +39099,7 @@ function resolveAdhdevMcpServerLaunch(options) {
39099
39099
  if (!entryPath) return null;
39100
39100
  return {
39101
39101
  command: options.nodeExecutable?.trim() || process.execPath,
39102
- args: [entryPath, "--repo-mesh", options.meshId]
39102
+ args: [entryPath, "--mode", "ipc", "--repo-mesh", options.meshId]
39103
39103
  };
39104
39104
  }
39105
39105
  function resolveAdhdevMcpEntryPath(explicitPath) {
@@ -40757,7 +40757,8 @@ var init_router = __esm({
40757
40757
  };
40758
40758
  if (args?.inlineMesh) {
40759
40759
  mcpServerEntry.env = {
40760
- ADHDEV_INLINE_MESH: JSON.stringify(mesh)
40760
+ ADHDEV_INLINE_MESH: JSON.stringify(mesh),
40761
+ ADHDEV_MCP_TRANSPORT: "ipc"
40761
40762
  };
40762
40763
  }
40763
40764
  const mcpConfig = {
@@ -58870,7 +58871,9 @@ var init_daemon_mesh_manager = __esm({
58870
58871
  "read_chat",
58871
58872
  "git_status",
58872
58873
  "git_diff_summary",
58873
- "launch_cli"
58874
+ "launch_cli",
58875
+ "git_checkpoint",
58876
+ "resolve_action"
58874
58877
  ]);
58875
58878
  setRules(rules) {
58876
58879
  const valid = [];
@@ -59161,7 +59164,7 @@ var init_adhdev_daemon = __esm({
59161
59164
  init_version();
59162
59165
  init_src();
59163
59166
  init_runtime_defaults();
59164
- pkgVersion = resolvePackageVersion({ injectedVersion: "0.9.76-rc.5" });
59167
+ pkgVersion = resolvePackageVersion({ injectedVersion: "0.9.76-rc.6" });
59165
59168
  AdhdevDaemon = class _AdhdevDaemon {
59166
59169
  localHttpServer = null;
59167
59170
  localWss = null;
@@ -60263,7 +60266,20 @@ ${err?.stack || ""}`);
60263
60266
  return;
60264
60267
  }
60265
60268
  try {
60266
- const result = await this.components.router.execute(command, normalizedArgs, "ipc");
60269
+ let result;
60270
+ if (command === "mesh_relay_command") {
60271
+ if (!this.meshManager) throw new Error("Mesh manager is not initialized");
60272
+ const targetDaemonId = typeof normalizedArgs.targetDaemonId === "string" ? normalizedArgs.targetDaemonId : "";
60273
+ const relayedCommand = typeof normalizedArgs.command === "string" ? normalizedArgs.command : "";
60274
+ const relayedArgs = normalizedArgs.args && typeof normalizedArgs.args === "object" ? normalizedArgs.args : {};
60275
+ if (!targetDaemonId || !relayedCommand) {
60276
+ throw new Error("mesh_relay_command requires targetDaemonId and command");
60277
+ }
60278
+ const relayResult = await this.meshManager.sendCommand(targetDaemonId, relayedCommand, relayedArgs);
60279
+ result = { success: true, result: relayResult };
60280
+ } else {
60281
+ result = await this.components.router.execute(command, normalizedArgs, "ipc");
60282
+ }
60267
60283
  ws.send(JSON.stringify({
60268
60284
  type: "ext:command_result",
60269
60285
  payload: {