@trops/dash-core 0.1.76 → 0.1.77

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.
@@ -4927,10 +4927,10 @@ function getShellPath$1() {
4927
4927
  try {
4928
4928
  const shell = process.env.SHELL || "/bin/bash";
4929
4929
  const marker = "__DASH_PATH__";
4930
- const raw = execSync(
4931
- `${shell} -ilc 'echo "${marker}$PATH${marker}"'`,
4932
- { encoding: "utf8", timeout: 5000 },
4933
- );
4930
+ const raw = execSync(`${shell} -ilc 'echo "${marker}$PATH${marker}"'`, {
4931
+ encoding: "utf8",
4932
+ timeout: 5000,
4933
+ });
4934
4934
  // Extract PATH between markers, stripping session restore noise
4935
4935
  const startIdx = raw.indexOf(marker);
4936
4936
  const endIdx = raw.lastIndexOf(marker);
@@ -5143,6 +5143,14 @@ const mcpController$2 = {
5143
5143
  );
5144
5144
  }
5145
5145
 
5146
+ // Interpolate {{MCP_DIR}} in args to resolve local MCP server scripts
5147
+ const mcpDir = path$6.join(__dirname, "..", "mcp");
5148
+ for (let i = 0; i < args.length; i++) {
5149
+ if (typeof args[i] === "string" && args[i].includes("{{MCP_DIR}}")) {
5150
+ args[i] = args[i].replace(/\{\{MCP_DIR\}\}/g, mcpDir);
5151
+ }
5152
+ }
5153
+
5146
5154
  transport = new StdioClientTransport({
5147
5155
  command: mcpConfig.command,
5148
5156
  args,