par5-mcp 0.2.0 → 0.2.1
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/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +7 -0
- package/dist/index.js +8 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.2.1](https://github.com/jrandolf/par5-mcp/compare/v0.2.0...v0.2.1) (2025-12-30)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add OpenCode agent support with CLI integration ([fadf84d](https://github.com/jrandolf/par5-mcp/commit/fadf84d4731ff4c416175f7ddb1ae9b572b55d13))
|
|
9
|
+
|
|
3
10
|
## [0.2.0](https://github.com/jrandolf/par5-mcp/compare/v0.1.2...v0.2.0) (2025-12-30)
|
|
4
11
|
|
|
5
12
|
|
package/dist/index.js
CHANGED
|
@@ -471,7 +471,7 @@ All commands have completed and output files are ready to read.`,
|
|
|
471
471
|
};
|
|
472
472
|
});
|
|
473
473
|
// Determine which agents are enabled based on PAR5_DISABLE_* env vars
|
|
474
|
-
const ALL_AGENTS = ["claude", "gemini", "codex"];
|
|
474
|
+
const ALL_AGENTS = ["claude", "gemini", "codex", "opencode"];
|
|
475
475
|
const ENABLED_AGENTS = ALL_AGENTS.filter((agent) => {
|
|
476
476
|
const disableVar = `PAR5_DISABLE_${agent.toUpperCase()}`;
|
|
477
477
|
return !process.env[disableVar];
|
|
@@ -482,6 +482,7 @@ if (ENABLED_AGENTS.length > 0) {
|
|
|
482
482
|
claude: "claude: Claude Code CLI (uses --dangerously-skip-permissions for autonomous operation)",
|
|
483
483
|
gemini: "gemini: Google Gemini CLI (uses --yolo for auto-accept)",
|
|
484
484
|
codex: "codex: OpenAI Codex CLI (uses --dangerously-bypass-approvals-and-sandbox for autonomous operation)",
|
|
485
|
+
opencode: "opencode: OpenCode CLI (uses run command for non-interactive autonomous operation)",
|
|
485
486
|
};
|
|
486
487
|
const availableAgentsDoc = ENABLED_AGENTS.map((a) => `- ${agentDescriptions[a]}`).join("\n");
|
|
487
488
|
server.registerTool("run_agent_across_list", {
|
|
@@ -561,6 +562,11 @@ VARIABLE SUBSTITUTION:
|
|
|
561
562
|
const codexArgs = process.env.PAR5_CODEX_ARGS || "";
|
|
562
563
|
return `codex exec --dangerously-bypass-approvals-and-sandbox ${agentArgs} ${codexArgs} '${escapedPrompt}'`;
|
|
563
564
|
}
|
|
565
|
+
case "opencode": {
|
|
566
|
+
// OpenCode CLI run command for non-interactive autonomous operation
|
|
567
|
+
const opencodeArgs = process.env.PAR5_OPENCODE_ARGS || "";
|
|
568
|
+
return `opencode run ${agentArgs} ${opencodeArgs} '${escapedPrompt}'`;
|
|
569
|
+
}
|
|
564
570
|
default:
|
|
565
571
|
throw new Error(`Unknown agent: ${agentName}`);
|
|
566
572
|
}
|
|
@@ -593,6 +599,7 @@ VARIABLE SUBSTITUTION:
|
|
|
593
599
|
claude: "Claude Code",
|
|
594
600
|
gemini: "Google Gemini",
|
|
595
601
|
codex: "OpenAI Codex",
|
|
602
|
+
opencode: "OpenCode",
|
|
596
603
|
};
|
|
597
604
|
const numBatches = Math.ceil(items.length / BATCH_SIZE);
|
|
598
605
|
return {
|