episoda 0.2.136 → 0.2.138
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.
|
@@ -2886,7 +2886,7 @@ var require_package = __commonJS({
|
|
|
2886
2886
|
"package.json"(exports2, module2) {
|
|
2887
2887
|
module2.exports = {
|
|
2888
2888
|
name: "episoda",
|
|
2889
|
-
version: "0.2.
|
|
2889
|
+
version: "0.2.137",
|
|
2890
2890
|
description: "CLI tool for Episoda local development workflow orchestration",
|
|
2891
2891
|
main: "dist/index.js",
|
|
2892
2892
|
types: "dist/index.d.ts",
|
|
@@ -8992,13 +8992,13 @@ var AgentManager = class {
|
|
|
8992
8992
|
* EP1251: Added GitHub MCP for consolidated MCP configuration
|
|
8993
8993
|
*
|
|
8994
8994
|
* Returns MCP server configurations based on:
|
|
8995
|
-
* - mcpMode: 'full' includes dev
|
|
8995
|
+
* - mcpMode: 'full' includes git/dev servers, 'standard' does not
|
|
8996
8996
|
* - moduleUid: Required for git-server and dev-server (DEV_ENVIRONMENT_ID legacy fallback)
|
|
8997
8997
|
* - githubToken: Required for GitHub MCP
|
|
8998
8998
|
*
|
|
8999
8999
|
* MCP servers provide:
|
|
9000
9000
|
* - workflow-server: Task/module/knowledge operations
|
|
9001
|
-
* - git-server: Git operations via API (requires moduleUid)
|
|
9001
|
+
* - git-server: Git operations via API (requires moduleUid, only in 'full' mode)
|
|
9002
9002
|
* - dev-server: File/exec operations via API (requires moduleUid, only in 'full' mode)
|
|
9003
9003
|
* - github: GitHub operations (PRs, issues, etc.) via @modelcontextprotocol/server-github
|
|
9004
9004
|
*/
|
|
@@ -9020,13 +9020,17 @@ var AgentManager = class {
|
|
|
9020
9020
|
} else {
|
|
9021
9021
|
console.warn(`[AgentManager] EP1233: workflow-server.ts not found at ${workflowServerPath}`);
|
|
9022
9022
|
}
|
|
9023
|
-
if (hasDevTarget && fs19.existsSync(gitServerPath)) {
|
|
9023
|
+
if (session.mcpMode === "full" && hasDevTarget && fs19.existsSync(gitServerPath)) {
|
|
9024
9024
|
servers.push({
|
|
9025
9025
|
name: "git",
|
|
9026
9026
|
command: `tsx ${gitServerPath}`
|
|
9027
9027
|
});
|
|
9028
|
+
} else if (session.mcpMode !== "full") {
|
|
9029
|
+
console.log(`[AgentManager] EP1309: git-server not registered (mcpMode=${session.mcpMode})`);
|
|
9028
9030
|
} else if (!hasDevTarget) {
|
|
9029
9031
|
console.warn("[AgentManager] EP1296: git-server target missing (module UID or env ID). Expected for local execution agents in doing/review.");
|
|
9032
|
+
} else if (!fs19.existsSync(gitServerPath)) {
|
|
9033
|
+
console.warn(`[AgentManager] EP1296: git-server.ts not found at ${gitServerPath}`);
|
|
9030
9034
|
}
|
|
9031
9035
|
if (session.mcpMode === "full" && hasDevTarget && fs19.existsSync(devServerPath)) {
|
|
9032
9036
|
servers.push({
|
|
@@ -9709,9 +9713,21 @@ If changes are needed, explain what needs to be done.`;
|
|
|
9709
9713
|
case "error":
|
|
9710
9714
|
onError(parsed.message || parsed.error?.message || "Unknown error from Codex");
|
|
9711
9715
|
break;
|
|
9712
|
-
|
|
9716
|
+
case "item.started":
|
|
9717
|
+
if (parsed.item?.type === "command_execution" && options.onToolUse) {
|
|
9718
|
+
const toolEvent = {
|
|
9719
|
+
id: parsed.item.id || `codex-cmd-${Date.now()}`,
|
|
9720
|
+
name: "Bash",
|
|
9721
|
+
// Codex command executions are Bash commands
|
|
9722
|
+
input: { command: parsed.item.command || parsed.item.input || "" }
|
|
9723
|
+
};
|
|
9724
|
+
console.log(`[AgentManager] EP1304: Codex command started - ${toolEvent.input.command}`);
|
|
9725
|
+
options.onToolUse(toolEvent);
|
|
9726
|
+
}
|
|
9727
|
+
break;
|
|
9728
|
+
// Ignore: turn.started, turn.completed (usage stats)
|
|
9713
9729
|
default:
|
|
9714
|
-
if (!["turn.started", "turn.completed"
|
|
9730
|
+
if (!["turn.started", "turn.completed"].includes(parsed.type)) {
|
|
9715
9731
|
console.log(`[AgentManager] Codex event: ${parsed.type}`);
|
|
9716
9732
|
}
|
|
9717
9733
|
}
|