feat: streamline agent integration and MCP routing

This commit is contained in:
N0zoM1z0
2026-07-20 17:11:06 +08:00
parent 0810486f63
commit 3e3d45856e
151 changed files with 2642 additions and 663 deletions
+3 -3
View File
@@ -45,7 +45,7 @@ export { canonicalSkillNeedsInstall, installCanonicalSkill };
const registrationCommand = (): readonly string[] =>
process.env.npm_command === "exec"
? ["npx", "-y", PRODUCT_IDENTITY.packageSpecifier, "mcp"]
? PRODUCT_IDENTITY.mcpCommand.split(" ")
: [resolve(process.argv[1] ?? PRODUCT_IDENTITY.cliBinary), "mcp"];
/** Result of one backup/write/readback transaction. */
@@ -188,7 +188,7 @@ export const runSetup = async (
plannedActions,
appliedActions,
clients,
doctor: await host.doctor(),
doctor: discovery.initialDoctor,
remediation:
"Review the setup plan, then rerun interactively or with --yes.",
};
@@ -273,7 +273,7 @@ const resolveSetupSelection = async (
selected.has(`configure_client:${client.name}`),
);
interactiveApproval = decision.approved;
approved = decision.approved || plannedActions.length === 0;
approved = decision.approved;
}
}
return {