par5-mcp 0.2.3 → 0.2.5
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/.github/workflows/release-notes.yml +2 -1
- package/.node-version +1 -1
- package/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +16 -0
- package/dist/index.js +10 -5
- package/package.json +1 -1
|
@@ -16,6 +16,7 @@ jobs:
|
|
|
16
16
|
enhance:
|
|
17
17
|
name: Enhance release notes with Claude
|
|
18
18
|
runs-on: ubuntu-latest
|
|
19
|
+
continue-on-error: true
|
|
19
20
|
permissions:
|
|
20
21
|
contents: write
|
|
21
22
|
id-token: write
|
|
@@ -28,7 +29,7 @@ jobs:
|
|
|
28
29
|
- name: Write release notes with Claude
|
|
29
30
|
uses: anthropics/claude-code-action@26ec041249acb0a944c0a47b6c0c13f05dbc5b44 # v1
|
|
30
31
|
with:
|
|
31
|
-
|
|
32
|
+
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
|
|
32
33
|
claude_args: --allowedTools "Bash(git log:*),Bash(git describe:*),Read,Write"
|
|
33
34
|
prompt: |
|
|
34
35
|
Write an exciting, polished GitHub release body for par5-mcp ${{ inputs.tag }} and save it to `release-notes.md`.
|
package/.node-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
24
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.2.5](https://github.com/mathematic-inc/par5-mcp/compare/v0.2.4...v0.2.5) (2026-03-11)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* Add model selection to run_agent_across_list ([#14](https://github.com/mathematic-inc/par5-mcp/issues/14)) ([4360829](https://github.com/mathematic-inc/par5-mcp/commit/4360829f56843c939071389d65b514dee2ad0b16))
|
|
9
|
+
|
|
10
|
+
## [0.2.4](https://github.com/mathematic-inc/par5-mcp/compare/v0.2.3...v0.2.4) (2026-03-11)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* Make release notes job non-blocking ([#12](https://github.com/mathematic-inc/par5-mcp/issues/12)) ([36bfb9d](https://github.com/mathematic-inc/par5-mcp/commit/36bfb9d2bb8c6ef3f418ce2eeea1196fc740d0a2))
|
|
16
|
+
* Restore id-token permission for release notes workflow ([#11](https://github.com/mathematic-inc/par5-mcp/issues/11)) ([2fdb6fe](https://github.com/mathematic-inc/par5-mcp/commit/2fdb6feaf4634bfbd32a3570c1321824177d9b98))
|
|
17
|
+
* Use ANTHROPIC_API_KEY for release notes workflow ([#9](https://github.com/mathematic-inc/par5-mcp/issues/9)) ([4efbebb](https://github.com/mathematic-inc/par5-mcp/commit/4efbebbb549d0cf616615e06b878e0d67f5e9030))
|
|
18
|
+
|
|
3
19
|
## [0.2.3](https://github.com/mathematic-inc/par5-mcp/compare/v0.2.2...v0.2.3) (2026-03-11)
|
|
4
20
|
|
|
5
21
|
|
package/dist/index.js
CHANGED
|
@@ -504,11 +504,15 @@ VARIABLE SUBSTITUTION:
|
|
|
504
504
|
agent: z
|
|
505
505
|
.enum(ENABLED_AGENTS)
|
|
506
506
|
.describe(`Which AI agent to use: ${ENABLED_AGENTS.map((a) => `'${a}'`).join(", ")}. All agents run with permission-skipping flags for autonomous operation.`),
|
|
507
|
+
model: z
|
|
508
|
+
.string()
|
|
509
|
+
.optional()
|
|
510
|
+
.describe("Optional model to use. Passed as --model to the agent CLI. Examples: 'claude-opus-4-6', 'claude-sonnet-4-6' for Claude; 'gemini-2.5-pro' for Gemini; 'o3' for Codex."),
|
|
507
511
|
prompt: z
|
|
508
512
|
.string()
|
|
509
513
|
.describe("The prompt to send to each agent. Use {{item}} as a placeholder - it will be replaced with the current item value. Example: 'Review {{item}} and suggest improvements' or 'Add error handling to {{item}}'"),
|
|
510
514
|
},
|
|
511
|
-
}, async ({ list_id, agent, prompt }) => {
|
|
515
|
+
}, async ({ list_id, agent, model, prompt }) => {
|
|
512
516
|
const items = lists.get(list_id);
|
|
513
517
|
if (!items) {
|
|
514
518
|
return {
|
|
@@ -532,26 +536,27 @@ VARIABLE SUBSTITUTION:
|
|
|
532
536
|
const getAgentCommand = (agentName, expandedPrompt) => {
|
|
533
537
|
const escapedPrompt = expandedPrompt.replace(/'/g, "'\\''");
|
|
534
538
|
const agentArgs = process.env.PAR5_AGENT_ARGS || "";
|
|
539
|
+
const modelFlag = model ? `--model '${model}'` : "";
|
|
535
540
|
switch (agentName) {
|
|
536
541
|
case "claude": {
|
|
537
542
|
// Claude Code CLI with --dangerously-skip-permissions and streaming output
|
|
538
543
|
const claudeArgs = process.env.PAR5_CLAUDE_ARGS || "";
|
|
539
|
-
return `claude --dangerously-skip-permissions --output-format text --verbose ${agentArgs} ${claudeArgs} -p '${escapedPrompt}'`;
|
|
544
|
+
return `claude --dangerously-skip-permissions --output-format text --verbose ${modelFlag} ${agentArgs} ${claudeArgs} -p '${escapedPrompt}'`;
|
|
540
545
|
}
|
|
541
546
|
case "gemini": {
|
|
542
547
|
// Gemini CLI with yolo mode and streaming JSON output
|
|
543
548
|
const geminiArgs = process.env.PAR5_GEMINI_ARGS || "";
|
|
544
|
-
return `gemini --yolo --output-format text ${agentArgs} ${geminiArgs} '${escapedPrompt}'`;
|
|
549
|
+
return `gemini --yolo --output-format text ${modelFlag} ${agentArgs} ${geminiArgs} '${escapedPrompt}'`;
|
|
545
550
|
}
|
|
546
551
|
case "codex": {
|
|
547
552
|
// Codex CLI exec subcommand with full-auto flag and JSON streaming output
|
|
548
553
|
const codexArgs = process.env.PAR5_CODEX_ARGS || "";
|
|
549
|
-
return `codex exec --dangerously-bypass-approvals-and-sandbox ${agentArgs} ${codexArgs} '${escapedPrompt}'`;
|
|
554
|
+
return `codex exec --dangerously-bypass-approvals-and-sandbox ${modelFlag} ${agentArgs} ${codexArgs} '${escapedPrompt}'`;
|
|
550
555
|
}
|
|
551
556
|
case "opencode": {
|
|
552
557
|
// OpenCode CLI run command for non-interactive autonomous operation
|
|
553
558
|
const opencodeArgs = process.env.PAR5_OPENCODE_ARGS || "";
|
|
554
|
-
return `opencode run ${agentArgs} ${opencodeArgs} '${escapedPrompt}'`;
|
|
559
|
+
return `opencode run ${modelFlag} ${agentArgs} ${opencodeArgs} '${escapedPrompt}'`;
|
|
555
560
|
}
|
|
556
561
|
default:
|
|
557
562
|
throw new Error(`Unknown agent: ${agentName}`);
|