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/cli/index.js +21 -5
- package/dist/cli/index.js.map +1 -1
- package/dist/index.js +21 -5
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/vendor/mcp-server/index.js +160 -20
- package/vendor/mcp-server/index.js.map +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -40056,7 +40056,7 @@ function resolveAdhdevMcpServerLaunch(options) {
|
|
|
40056
40056
|
if (!entryPath) return null;
|
|
40057
40057
|
return {
|
|
40058
40058
|
command: options.nodeExecutable?.trim() || process.execPath,
|
|
40059
|
-
args: [entryPath, "--repo-mesh", options.meshId]
|
|
40059
|
+
args: [entryPath, "--mode", "ipc", "--repo-mesh", options.meshId]
|
|
40060
40060
|
};
|
|
40061
40061
|
}
|
|
40062
40062
|
function resolveAdhdevMcpEntryPath(explicitPath) {
|
|
@@ -41714,7 +41714,8 @@ var init_router = __esm({
|
|
|
41714
41714
|
};
|
|
41715
41715
|
if (args?.inlineMesh) {
|
|
41716
41716
|
mcpServerEntry.env = {
|
|
41717
|
-
ADHDEV_INLINE_MESH: JSON.stringify(mesh)
|
|
41717
|
+
ADHDEV_INLINE_MESH: JSON.stringify(mesh),
|
|
41718
|
+
ADHDEV_MCP_TRANSPORT: "ipc"
|
|
41718
41719
|
};
|
|
41719
41720
|
}
|
|
41720
41721
|
const mcpConfig = {
|
|
@@ -90012,7 +90013,9 @@ var init_daemon_mesh_manager = __esm({
|
|
|
90012
90013
|
"read_chat",
|
|
90013
90014
|
"git_status",
|
|
90014
90015
|
"git_diff_summary",
|
|
90015
|
-
"launch_cli"
|
|
90016
|
+
"launch_cli",
|
|
90017
|
+
"git_checkpoint",
|
|
90018
|
+
"resolve_action"
|
|
90016
90019
|
]);
|
|
90017
90020
|
setRules(rules) {
|
|
90018
90021
|
const valid = [];
|
|
@@ -90303,7 +90306,7 @@ var init_adhdev_daemon = __esm({
|
|
|
90303
90306
|
init_version();
|
|
90304
90307
|
init_src();
|
|
90305
90308
|
init_runtime_defaults();
|
|
90306
|
-
pkgVersion = resolvePackageVersion({ injectedVersion: "0.9.76-rc.
|
|
90309
|
+
pkgVersion = resolvePackageVersion({ injectedVersion: "0.9.76-rc.6" });
|
|
90307
90310
|
AdhdevDaemon = class _AdhdevDaemon {
|
|
90308
90311
|
localHttpServer = null;
|
|
90309
90312
|
localWss = null;
|
|
@@ -91405,7 +91408,20 @@ ${err?.stack || ""}`);
|
|
|
91405
91408
|
return;
|
|
91406
91409
|
}
|
|
91407
91410
|
try {
|
|
91408
|
-
|
|
91411
|
+
let result;
|
|
91412
|
+
if (command === "mesh_relay_command") {
|
|
91413
|
+
if (!this.meshManager) throw new Error("Mesh manager is not initialized");
|
|
91414
|
+
const targetDaemonId = typeof normalizedArgs.targetDaemonId === "string" ? normalizedArgs.targetDaemonId : "";
|
|
91415
|
+
const relayedCommand = typeof normalizedArgs.command === "string" ? normalizedArgs.command : "";
|
|
91416
|
+
const relayedArgs = normalizedArgs.args && typeof normalizedArgs.args === "object" ? normalizedArgs.args : {};
|
|
91417
|
+
if (!targetDaemonId || !relayedCommand) {
|
|
91418
|
+
throw new Error("mesh_relay_command requires targetDaemonId and command");
|
|
91419
|
+
}
|
|
91420
|
+
const relayResult = await this.meshManager.sendCommand(targetDaemonId, relayedCommand, relayedArgs);
|
|
91421
|
+
result = { success: true, result: relayResult };
|
|
91422
|
+
} else {
|
|
91423
|
+
result = await this.components.router.execute(command, normalizedArgs, "ipc");
|
|
91424
|
+
}
|
|
91409
91425
|
ws.send(JSON.stringify({
|
|
91410
91426
|
type: "ext:command_result",
|
|
91411
91427
|
payload: {
|