Fix repo slug
This commit is contained in:
committed by
pullfrog[bot]
parent
5604cf1868
commit
3fa309853b
@@ -0,0 +1,35 @@
|
||||
|
||||
|
||||
# pullfrog/pullfrog/run
|
||||
# pullfrog/pullfrog (alias)
|
||||
|
||||
# pullfrog/pullfrog/dispatch <- accepts json
|
||||
name: "Pullfrog Action (Run)"
|
||||
description: "Execute coding agents with itemized inputs"
|
||||
author: "Pullfrog"
|
||||
|
||||
inputs:
|
||||
prompt:
|
||||
description: "Prompt to send to the agent"
|
||||
required: true
|
||||
effort:
|
||||
description: "Effort level: nothink (fast), think (default), max (most capable)"
|
||||
required: false
|
||||
default: "think"
|
||||
agent:
|
||||
description: "Agent to use: claude, codex, gemini, cursor, opencode"
|
||||
required: false
|
||||
cwd:
|
||||
description: "Working directory for the agent (defaults to GITHUB_WORKSPACE)"
|
||||
required: false
|
||||
sandbox:
|
||||
description: "Sandbox mode: restricts agent to read-only operations"
|
||||
required: false
|
||||
|
||||
runs:
|
||||
using: "node24"
|
||||
main: "entry"
|
||||
|
||||
branding:
|
||||
icon: "code"
|
||||
color: "green"
|
||||
@@ -0,0 +1,31 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
/**
|
||||
* entry point for pullfrog/pullfrog/run - itemized inputs for external users
|
||||
*/
|
||||
|
||||
import * as core from "@actions/core";
|
||||
import { Inputs, main } from "../main.ts";
|
||||
|
||||
async function run(): Promise<void> {
|
||||
try {
|
||||
const inputs = Inputs.assert({
|
||||
prompt: core.getInput("prompt", { required: true }),
|
||||
effort: core.getInput("effort") || "think",
|
||||
agent: core.getInput("agent") || null,
|
||||
sandbox: core.getInput("sandbox") === "true" ? true : undefined,
|
||||
cwd: core.getInput("cwd") || undefined,
|
||||
});
|
||||
|
||||
const result = await main(inputs);
|
||||
|
||||
if (!result.success) {
|
||||
throw new Error(result.error || "Agent execution failed");
|
||||
}
|
||||
} catch (error) {
|
||||
const errorMessage = error instanceof Error ? error.message : "Unknown error occurred";
|
||||
core.setFailed(`Action failed: ${errorMessage}`);
|
||||
}
|
||||
}
|
||||
|
||||
await run();
|
||||
Reference in New Issue
Block a user