episoda 0.2.134 → 0.2.135

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.
@@ -2823,7 +2823,7 @@ var require_package = __commonJS({
2823
2823
  "package.json"(exports2, module2) {
2824
2824
  module2.exports = {
2825
2825
  name: "episoda",
2826
- version: "0.2.133",
2826
+ version: "0.2.134",
2827
2827
  description: "CLI tool for Episoda local development workflow orchestration",
2828
2828
  main: "dist/index.js",
2829
2829
  types: "dist/index.d.ts",
@@ -8948,7 +8948,7 @@ var AgentManager = class {
8948
8948
  const workflowServerPath = path20.join(mcpDir, "workflow-server.ts");
8949
8949
  const gitServerPath = path20.join(mcpDir, "git-server.ts");
8950
8950
  const devServerPath = path20.join(mcpDir, "dev-server.ts");
8951
- const hasDevTarget = !!session.moduleUid || !!process.env.DEV_ENVIRONMENT_ID || !!process.env.EPISODA_CONTAINER_ID;
8951
+ const hasDevTarget = !!session.moduleUid || !!session.moduleId || !!process.env.DEV_ENVIRONMENT_ID || !!process.env.EPISODA_CONTAINER_ID;
8952
8952
  if (fs19.existsSync(workflowServerPath)) {
8953
8953
  servers.push({
8954
8954
  name: "workflow",
@@ -8963,7 +8963,7 @@ var AgentManager = class {
8963
8963
  command: `tsx ${gitServerPath}`
8964
8964
  });
8965
8965
  } else if (!hasDevTarget) {
8966
- console.log("[AgentManager] EP1233: git-server not registered (module UID or env ID missing)");
8966
+ console.warn("[AgentManager] EP1296: git-server target missing (module UID or env ID). Expected for local execution agents in doing/review.");
8967
8967
  }
8968
8968
  if (session.mcpMode === "full" && hasDevTarget && fs19.existsSync(devServerPath)) {
8969
8969
  servers.push({
@@ -8972,16 +8972,18 @@ var AgentManager = class {
8972
8972
  });
8973
8973
  } else if (session.mcpMode !== "full") {
8974
8974
  console.log(`[AgentManager] EP1233: dev-server not registered (mcpMode=${session.mcpMode})`);
8975
+ } else if (!hasDevTarget) {
8976
+ console.warn("[AgentManager] EP1296: dev-server target missing (module UID or env ID). Expected for local execution agents in doing/review.");
8975
8977
  }
8976
8978
  }
8977
- if (session.credentials.githubToken) {
8978
- servers.push({
8979
- name: "github",
8980
- command: "npx -y @modelcontextprotocol/server-github"
8981
- });
8982
- console.log("[AgentManager] EP1251: GitHub MCP server registered");
8979
+ servers.push({
8980
+ name: "github",
8981
+ command: "npx -y @modelcontextprotocol/server-github"
8982
+ });
8983
+ if (!session.credentials.githubToken) {
8984
+ console.warn("[AgentManager] EP1296: GitHub MCP registered without token (githubToken missing)");
8983
8985
  } else {
8984
- console.log("[AgentManager] EP1251: GitHub MCP not registered (no githubToken in credentials)");
8986
+ console.log("[AgentManager] EP1251: GitHub MCP server registered");
8985
8987
  }
8986
8988
  console.log(`[AgentManager] EP1251: MCP servers to register: ${servers.map((s) => s.name).join(", ") || "none"}`);
8987
8989
  return servers;
@@ -9312,7 +9314,7 @@ If changes are needed, explain what needs to be done.`;
9312
9314
  const episodaMcpEnv = {
9313
9315
  ...baseEnv,
9314
9316
  EPISODA_API_URL: mcpAuth.apiUrl,
9315
- MODULE_UID: session.moduleUid,
9317
+ MODULE_UID: session.moduleUid || session.moduleId || "",
9316
9318
  EPISODA_PROJECT_ID: session.projectId,
9317
9319
  DEV_ENVIRONMENT_ID: devEnvId
9318
9320
  };