Skip to content

Commit 175f925

Browse files
committed
bump version
1 parent b448787 commit 175f925

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

entry.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ You are a highly intelligent, no-nonsense senior-level software engineering agen
172172
`;var XD={run:async({prompt:t,mcpServers:e,apiKey:r})=>{process.env.ANTHROPIC_API_KEY=r;let A=PD({prompt:`${ZD}
173173

174174
${t}`,options:{permissionMode:"bypassPermissions",mcpServers:e}});for await(let n of A){let i=G9[n.type];await i(n)}return{success:!0,output:""}}},hC=new Set,G9={assistant:t=>{if(t.message?.content){for(let e of t.message.content)if(e.type==="text"&&e.text?.trim())me.box(e.text.trim(),{title:"Claude"});else if(e.type==="tool_use"&&(me.info(`\u2192 ${e.name}`),e.name==="bash"&&e.id&&hC.add(e.id),e.input)){let r=e.input;if(r.description&&me.info(` \u2514\u2500 ${r.description}`),r.command&&me.info(` \u2514\u2500 command: ${r.command}`),r.file_path&&me.info(` \u2514\u2500 file: ${r.file_path}`),r.content){let A=r.content.length>100?`${r.content.substring(0,100)}...`:r.content;me.info(` \u2514\u2500 content: ${A}`)}r.query&&me.info(` \u2514\u2500 query: ${r.query}`),r.pattern&&me.info(` \u2514\u2500 pattern: ${r.pattern}`),r.url&&me.info(` \u2514\u2500 url: ${r.url}`),r.edits&&Array.isArray(r.edits)&&(me.info(` \u2514\u2500 edits: ${r.edits.length} changes`),r.edits.forEach((A,n)=>{A.file_path&&me.info(` ${n+1}. ${A.file_path}`)})),r.task&&me.info(` \u2514\u2500 task: ${r.task}`),r.bash_command&&me.info(` \u2514\u2500 bash_command: ${r.bash_command}`)}}},user:t=>{if(t.message?.content){for(let e of t.message.content)if(e.type==="tool_result"){let r=e.tool_use_id;if(r&&hC.has(r)){let n=typeof e.content=="string"?e.content:Array.isArray(e.content)?e.content.map(i=>typeof i=="string"?i:i.text||JSON.stringify(i)).join(`
175-
`):String(e.content);me.startGroup("bash output"),e.is_error?me.warning(n):me.info(n),me.endGroup(),hC.delete(r)}else if(e.is_error){let n=typeof e.content=="string"?e.content:String(e.content);me.warning(`Tool error: ${n}`)}}}},result:async t=>{t.subtype==="success"?await me.summaryTable([[{data:"Cost",header:!0},{data:"Input Tokens",header:!0},{data:"Output Tokens",header:!0}],[`$${t.total_cost_usd?.toFixed(4)||"0.0000"}`,String(t.usage?.input_tokens||0),String(t.usage?.output_tokens||0)]]):t.subtype==="error_max_turns"?me.error(`Max turns reached: ${JSON.stringify(t)}`):t.subtype==="error_during_execution"?me.error(`Execution error: ${JSON.stringify(t)}`):me.error(`Failed: ${JSON.stringify(t)}`)},system:()=>{},stream_event:()=>{}};var Bc=require("node:child_process");function ek(){me.info("\u{1F527} Setting up git configuration..."),(0,Bc.execSync)('git config user.email "[email protected]"',{stdio:"inherit"}),(0,Bc.execSync)('git config user.name "Pullfrog Action"',{stdio:"inherit"})}function tk(t,e){me.info("\u{1F510} Setting up git authentication...");try{(0,Bc.execSync)("git config --unset-all http.https://github.com/.extraheader",{stdio:"inherit"}),me.info("\u2713 Removed existing authentication headers")}catch{me.info("No existing authentication headers to remove")}let r=`https://x-access-token:${t}@github.com/${e.owner}/${e.name}.git`;(0,Bc.execSync)(`git remote set-url origin "${r}"`,{stdio:"inherit"}),me.info("\u2713 Updated remote URL with authentication token")}var rk=uc({prompt:"string","anthropic_api_key?":"string | undefined"});async function Ak(t){try{me.info("Starting agent run..."),ek();let e=await KD(),r=Ic();tk(e,r);let A=zD(e);me.debug(`\u{1F4CB} MCP Config: ${JSON.stringify(A,null,2)}`),me.info("Running Claude Agent SDK..."),me.box(t.prompt,{title:"Prompt"});let n=await XD.run({prompt:t.prompt,mcpServers:A,githubInstallationToken:e,apiKey:t.anthropic_api_key});return n.success?(me.success("Task complete."),await me.writeSummary(),{success:!0,output:n.output||""}):{success:!1,error:n.error||"Agent execution failed",output:n.output}}catch(e){let r=e instanceof Error?e.message:"Unknown error occurred";return me.error(r),await me.writeSummary(),{success:!1,error:r}}}var nk={name:"@pullfrog/action",version:"0.0.73",type:"module",files:["index.js","index.cjs","index.d.ts","index.d.cts","agents","utils","main.js","main.d.ts"],scripts:{test:'echo "Error: no test specified" && exit 1',typecheck:"tsc --noEmit",build:"node esbuild.config.js",play:"node play.ts",upDeps:"pnpm up --latest",lock:"pnpm --ignore-workspace install",prepare:"husky"},dependencies:{"@actions/core":"^1.11.1","@anthropic-ai/claude-agent-sdk":"^0.1.26","@ark/fs":"0.53.0","@ark/util":"0.53.0","@octokit/rest":"^22.0.0","@octokit/webhooks-types":"^7.6.1","@standard-schema/spec":"1.0.0",arktype:"2.1.25",dotenv:"^17.2.3",execa:"^9.6.0",fastmcp:"^3.20.0",table:"^6.9.0"},devDependencies:{"@types/node":"^24.7.2",arg:"^5.0.2",esbuild:"^0.25.9",husky:"^9.0.0",typescript:"^5.9.3"},repository:{type:"git",url:"git+https://github.com/pullfrog/action.git"},keywords:[],author:"",license:"MIT",bugs:{url:"https://github.com/pullfrog/action/issues"},homepage:"https://github.com/pullfrog/action#readme",zshy:{exports:"./index.ts"},main:"./dist/index.cjs",module:"./dist/index.js",types:"./dist/index.d.cts",exports:{".":{types:"./dist/index.d.cts",import:"./dist/index.js",require:"./dist/index.cjs"}}};async function V9(){try{me.info(`\u{1F438} Running pullfrog/action@${nk.version}...`);let t=process.env.INPUTS_JSON;if(!t)throw new Error("INPUTS_JSON environment variable not found");let e=uc("string.json.parse").assert(t),r=rk.assert(e),A=await Ak(r);if(!A.success)throw new Error(A.error||"Agent execution failed")}catch(t){let e=t instanceof Error?t.message:"Unknown error occurred";sk.setFailed(`Action failed: ${e}`)}}(async()=>await V9())();
175+
`):String(e.content);me.startGroup("bash output"),e.is_error?me.warning(n):me.info(n),me.endGroup(),hC.delete(r)}else if(e.is_error){let n=typeof e.content=="string"?e.content:String(e.content);me.warning(`Tool error: ${n}`)}}}},result:async t=>{t.subtype==="success"?await me.summaryTable([[{data:"Cost",header:!0},{data:"Input Tokens",header:!0},{data:"Output Tokens",header:!0}],[`$${t.total_cost_usd?.toFixed(4)||"0.0000"}`,String(t.usage?.input_tokens||0),String(t.usage?.output_tokens||0)]]):t.subtype==="error_max_turns"?me.error(`Max turns reached: ${JSON.stringify(t)}`):t.subtype==="error_during_execution"?me.error(`Execution error: ${JSON.stringify(t)}`):me.error(`Failed: ${JSON.stringify(t)}`)},system:()=>{},stream_event:()=>{}};var Bc=require("node:child_process");function ek(){me.info("\u{1F527} Setting up git configuration..."),(0,Bc.execSync)('git config user.email "[email protected]"',{stdio:"inherit"}),(0,Bc.execSync)('git config user.name "Pullfrog Action"',{stdio:"inherit"})}function tk(t,e){me.info("\u{1F510} Setting up git authentication...");try{(0,Bc.execSync)("git config --unset-all http.https://github.com/.extraheader",{stdio:"inherit"}),me.info("\u2713 Removed existing authentication headers")}catch{me.info("No existing authentication headers to remove")}let r=`https://x-access-token:${t}@github.com/${e.owner}/${e.name}.git`;(0,Bc.execSync)(`git remote set-url origin "${r}"`,{stdio:"inherit"}),me.info("\u2713 Updated remote URL with authentication token")}var rk=uc({prompt:"string","anthropic_api_key?":"string | undefined"});async function Ak(t){try{me.info("Starting agent run..."),ek();let e=await KD(),r=Ic();tk(e,r);let A=zD(e);me.debug(`\u{1F4CB} MCP Config: ${JSON.stringify(A,null,2)}`),me.info("Running Claude Agent SDK..."),me.box(t.prompt,{title:"Prompt"});let n=await XD.run({prompt:t.prompt,mcpServers:A,githubInstallationToken:e,apiKey:t.anthropic_api_key});return n.success?(me.success("Task complete."),await me.writeSummary(),{success:!0,output:n.output||""}):{success:!1,error:n.error||"Agent execution failed",output:n.output}}catch(e){let r=e instanceof Error?e.message:"Unknown error occurred";return me.error(r),await me.writeSummary(),{success:!1,error:r}}}var nk={name:"@pullfrog/action",version:"0.0.74",type:"module",files:["index.js","index.cjs","index.d.ts","index.d.cts","agents","utils","main.js","main.d.ts"],scripts:{test:'echo "Error: no test specified" && exit 1',typecheck:"tsc --noEmit",build:"node esbuild.config.js",play:"node play.ts",upDeps:"pnpm up --latest",lock:"pnpm --ignore-workspace install",prepare:"husky"},dependencies:{"@actions/core":"^1.11.1","@anthropic-ai/claude-agent-sdk":"^0.1.26","@ark/fs":"0.53.0","@ark/util":"0.53.0","@octokit/rest":"^22.0.0","@octokit/webhooks-types":"^7.6.1","@standard-schema/spec":"1.0.0",arktype:"2.1.25",dotenv:"^17.2.3",execa:"^9.6.0",fastmcp:"^3.20.0",table:"^6.9.0"},devDependencies:{"@types/node":"^24.7.2",arg:"^5.0.2",esbuild:"^0.25.9",husky:"^9.0.0",typescript:"^5.9.3"},repository:{type:"git",url:"git+https://github.com/pullfrog/action.git"},keywords:[],author:"",license:"MIT",bugs:{url:"https://github.com/pullfrog/action/issues"},homepage:"https://github.com/pullfrog/action#readme",zshy:{exports:"./index.ts"},main:"./dist/index.cjs",module:"./dist/index.js",types:"./dist/index.d.cts",exports:{".":{types:"./dist/index.d.cts",import:"./dist/index.js",require:"./dist/index.cjs"}}};async function V9(){try{me.info(`\u{1F438} Running pullfrog/action@${nk.version}...`);let t=process.env.INPUTS_JSON;if(!t)throw new Error("INPUTS_JSON environment variable not found");let e=uc("string.json.parse").assert(t),r=rk.assert(e),A=await Ak(r);if(!A.success)throw new Error(A.error||"Agent execution failed")}catch(t){let e=t instanceof Error?t.message:"Unknown error occurred";sk.setFailed(`Action failed: ${e}`)}}(async()=>await V9())();
176176
/*! Bundled license information:
177177

178178
undici/lib/fetch/body.js:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pullfrog/action",
3-
"version": "0.0.73",
3+
"version": "0.0.74",
44
"type": "module",
55
"files": [
66
"index.js",

0 commit comments

Comments
 (0)