0.0.124
This commit is contained in:
@@ -83859,7 +83859,7 @@ function query({
|
||||
// package.json
|
||||
var package_default = {
|
||||
name: "@pullfrog/action",
|
||||
version: "0.0.123",
|
||||
version: "0.0.124",
|
||||
type: "module",
|
||||
files: [
|
||||
"index.js",
|
||||
@@ -92224,9 +92224,21 @@ var modes = [
|
||||
|
||||
6. ${reportProgressInstruction}
|
||||
|
||||
7. When you are done, create a final commit. If relevant, indicate which issue the PR addresses somewhere in the commit message (e.g. "Fixes #123"). Create a PR with an informative title and body. If relevant, include links to the issue or comment that triggered the PR.
|
||||
7. When you are done, create a final commit. If relevant, indicate which issue the PR addresses somewhere in the commit message (e.g. "Fixes #123").
|
||||
|
||||
8. Call report_progress one final time with a summary of the results. Include links to any created issues/PRs, e.g. \`[View PR](https://github.com/org/repo/pull/123)\`
|
||||
8. By default, create a PR with an informative title and body. However, if the user explicitly requests a branch without a PR (e.g. "implement X in a new branch", "don't create a PR", "branch only"), just make changes the changes in a branch and push them.
|
||||
|
||||
9. Call report_progress one final time with a summary of the results and a link to any artifacts created, like PRs or branches.
|
||||
- If relevant, include links to the issue or comment that triggered the PR.
|
||||
- If you created a PR, ALWAYS include a "View PR" link. e.g.:
|
||||
\`\`\`md
|
||||
[View PR \u2794](https://github.com/org/repo/pull/123)
|
||||
\`\`\`
|
||||
- If you created a branch without a PR, ALWAYS include a "Create PR" link and a link to the branch. e.g.:
|
||||
|
||||
\`\`\`md
|
||||
[\`pullfrog/branch-name\`](https://github.com/pullfrogai/scratch/tree/pullfrog/branch-name) \u2022 [Create PR \u2794](https://github.com/pullfrogai/scratch/compare/main...pullfrog/branch-name?quick_pull=1&title=<informative_title>&body=<informative_body>)
|
||||
\`\`\`
|
||||
`
|
||||
},
|
||||
{
|
||||
@@ -92284,10 +92296,12 @@ var modes = [
|
||||
},
|
||||
{
|
||||
name: "Prompt",
|
||||
description: "Fallback for tasks that don't fit other workflows, direct prompts via comments, or requests requiring general assistance without a specific workflow pattern",
|
||||
description: "Fallback for tasks that don't fit other workflows, e.g. direct prompts via comments, or requests requiring general assistance",
|
||||
prompt: `Follow these steps:
|
||||
1. Perform the requested task. Only take action if you have high confidence that you understand what is being asked. If you are not sure, ask for clarification. Take stock of the tools at your disposal.
|
||||
|
||||
2. When creating comments, always use report_progress. Do not use create_issue_comment.
|
||||
|
||||
2. If the task involves making code changes:
|
||||
- Create a branch for your work. The branch name should be prefixed with "pullfrog/". The rest of the name should reflect the exact changes you are making. It should be specific to avoid collisions with other branches. Never commit to directly to main, master, or production.
|
||||
- Make the necessary code changes. Create intermediate commits if called for.
|
||||
@@ -92296,7 +92310,7 @@ var modes = [
|
||||
|
||||
3. ${reportProgressInstruction}
|
||||
|
||||
4. Call report_progress one final time with a summary of the results and links to any created issues, PRs, etc.`
|
||||
4. When finished with the task, use report_progress one final time to update the comment with a summary of the results and links to any created issues, PRs, etc.`
|
||||
}
|
||||
];
|
||||
|
||||
@@ -93822,8 +93836,7 @@ var gemini = agent({
|
||||
cmd: "node",
|
||||
args: [cliPath, "--yolo", "--output-format=stream-json", "-p", sessionPrompt],
|
||||
env: createAgentEnv({
|
||||
GEMINI_API_KEY: apiKey,
|
||||
GEMINI_CLI_DISABLE_SCHEMA_VALIDATION: process.env.GEMINI_CLI_DISABLE_SCHEMA_VALIDATION || "1"
|
||||
GEMINI_API_KEY: apiKey
|
||||
}),
|
||||
onStdout: async (chunk) => {
|
||||
const text = chunk.toString();
|
||||
@@ -93888,8 +93901,7 @@ function configureGeminiMcpServers({ mcpServers, cliPath }) {
|
||||
stdio: "pipe",
|
||||
encoding: "utf-8",
|
||||
env: {
|
||||
...process.env,
|
||||
GEMINI_CLI_DISABLE_SCHEMA_VALIDATION: process.env.GEMINI_CLI_DISABLE_SCHEMA_VALIDATION || "1"
|
||||
...process.env
|
||||
}
|
||||
});
|
||||
if (addResult.status !== 0) {
|
||||
@@ -121821,14 +121833,12 @@ function buildCommentFooter(payload) {
|
||||
const runId = process.env.GITHUB_RUN_ID;
|
||||
const agentName = payload.agent;
|
||||
const agentInfo = agentName ? agentsManifest[agentName] : null;
|
||||
const agentDisplayName = agentInfo?.displayName || "Unknown Agent";
|
||||
const agentDisplayName = agentInfo?.displayName || "Unknown agent";
|
||||
const agentUrl = agentInfo?.url || "https://pullfrog.ai";
|
||||
const workflowRunPart = runId ? `[View workflow run](https://github.com/${repoContext.owner}/${repoContext.name}/actions/runs/${runId})` : "(workflow link unavailable)";
|
||||
const workflowRunPart = runId ? `[View workflow run](https://github.com/${repoContext.owner}/${repoContext.name}/actions/runs/${runId})` : "View workflow run";
|
||||
return `
|
||||
${PULLFROG_DIVIDER}
|
||||
---
|
||||
|
||||
<sup>\u{1F438} Triggered by [Pullfrog](https://pullfrog.ai) | \u{1F916} [${agentDisplayName}](${agentUrl}) | ${workflowRunPart} | [\u{1D54F}](https://x.com/pullfrogai)</sup>`;
|
||||
<sup><a href="https://pullfrog.ai"><picture><source media="(prefers-color-scheme: dark)" srcset="https://pullfrog.ai/logos/frog-white-full-128px.png"><img src="https://pullfrog.ai/logos/frog-green-full-128px.png" width="9px" height="9px" style="vertical-align: middle; " alt="Pullfrog"></picture></a> \uFF5C Triggered by [Pullfrog](https://pullfrog.ai) \uFF5C Using [${agentDisplayName}](${agentUrl}) \uFF5C ${workflowRunPart} \uFF5C [\u{1D54F}](https://x.com/pullfrogai)</sup>`;
|
||||
}
|
||||
function stripExistingFooter(body) {
|
||||
const dividerIndex = body.indexOf(PULLFROG_DIVIDER);
|
||||
@@ -121941,7 +121951,10 @@ var ReportProgressTool = tool({
|
||||
}
|
||||
const issueNumber = ctx.payload.event.issue_number;
|
||||
if (issueNumber === void 0) {
|
||||
return { suggess: true };
|
||||
return {
|
||||
success: false,
|
||||
message: "cannot create progress comment: no issue_number found in the payload event"
|
||||
};
|
||||
}
|
||||
const result = await ctx.octokit.rest.issues.createComment({
|
||||
owner: ctx.owner,
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@pullfrog/action",
|
||||
"version": "0.0.123",
|
||||
"version": "0.0.124",
|
||||
"type": "module",
|
||||
"files": [
|
||||
"index.js",
|
||||
|
||||
Reference in New Issue
Block a user