This commit is contained in:
Colin McDonnell
2025-09-09 16:54:36 -07:00
parent bfd948fd3c
commit ff81db8bb7
9 changed files with 33 additions and 1490 deletions
+3 -3
View File
@@ -34,7 +34,7 @@ jobs:
registry-url: "https://registry.npmjs.org" registry-url: "https://registry.npmjs.org"
- name: Install dependencies - name: Install dependencies
run: pnpm install --frozen-lockfile run: pnpm install
- name: Get package version - name: Get package version
id: version id: version
@@ -103,14 +103,14 @@ jobs:
Use the major version tag for automatic updates: Use the major version tag for automatic updates:
```yaml ```yaml
- uses: pullfrog/pullfrog@${{ steps.version.outputs.major_tag }} - uses: pullfrog/action@${{ steps.version.outputs.major_tag }}
with: with:
message: "Your message here" message: "Your message here"
``` ```
Or pin to this specific version: Or pin to this specific version:
```yaml ```yaml
- uses: pullfrog/pullfrog@${{ steps.version.outputs.tag }} - uses: pullfrog/action@${{ steps.version.outputs.tag }}
with: with:
message: "Your message here" message: "Your message here"
``` ```
+9 -8
View File
@@ -364,14 +364,15 @@ function processJSONChunk(chunk: string, agent?: ClaudeAgent): void {
case "result": case "result":
if (parsedChunk.subtype === "success") { if (parsedChunk.subtype === "success") {
if (parsedChunk.result) { // Claude already prints something almost identical to this, so skip for now
core.info( // if (parsedChunk.result) {
boxString(parsedChunk.result.trim(), { // core.info(
title: "🤖 Claude Code", // boxString(parsedChunk.result.trim(), {
maxWidth: 70, // title: "🤖 Claude Code",
}), // maxWidth: 70,
); // }),
} // );
// }
core.info( core.info(
tableString([ tableString([
-8
View File
@@ -25913,14 +25913,6 @@ function processJSONChunk(chunk, agent) {
break; break;
case "result": case "result":
if (parsedChunk.subtype === "success") { if (parsedChunk.subtype === "success") {
if (parsedChunk.result) {
core.info(
boxString(parsedChunk.result.trim(), {
title: "\u{1F916} Claude Code",
maxWidth: 70
})
);
}
core.info( core.info(
tableString([ tableString([
[ [
+3 -3
View File
@@ -8,8 +8,8 @@ export interface MainParams {
export interface MainResult { export interface MainResult {
success: boolean; success: boolean;
output?: string; output?: string | undefined;
error?: string; error?: string | undefined;
} }
export async function main(params: MainParams): Promise<MainResult> { export async function main(params: MainParams): Promise<MainResult> {
@@ -35,7 +35,7 @@ export async function main(params: MainParams): Promise<MainResult> {
return { return {
success: false, success: false,
error: result.error || "Agent execution failed", error: result.error || "Agent execution failed",
output: result.output, output: result.output!,
}; };
} }
-1460
View File
File diff suppressed because it is too large Load Diff
+14 -4
View File
@@ -17,7 +17,7 @@
}, },
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1", "test": "echo \"Error: no test specified\" && exit 1",
"build": "pnpm install && node esbuild.config.js && rm -rf node_modules", "build": "node esbuild.config.js",
"build:npm": "zshy", "build:npm": "zshy",
"build:dev": "node esbuild.config.js", "build:dev": "node esbuild.config.js",
"prepare": "husky", "prepare": "husky",
@@ -39,16 +39,26 @@
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://github.com/pullfrog/pullfrog.git" "url": "git+https://github.com/pullfrog/action.git"
}, },
"keywords": [], "keywords": [],
"author": "", "author": "",
"license": "ISC", "license": "ISC",
"bugs": { "bugs": {
"url": "https://github.com/pullfrog/pullfrog/issues" "url": "https://github.com/pullfrog/action/issues"
}, },
"homepage": "https://github.com/pullfrog/pullfrog#readme", "homepage": "https://github.com/pullfrog/action#readme",
"zshy": { "zshy": {
"exports": "./index.ts" "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"
}
} }
} }
+1 -1
View File
@@ -174,7 +174,7 @@ program
.argument( .argument(
"[file]", "[file]",
"Prompt file to use (.txt, .json, or .ts)", "Prompt file to use (.txt, .json, or .ts)",
"fixtures/play.txt", "fixtures/basic.txt",
) )
.option( .option(
"--act", "--act",
+2 -2
View File
@@ -3,7 +3,7 @@
"compilerOptions": { "compilerOptions": {
// File Layout // File Layout
// "rootDir": "./src", // "rootDir": "./src",
// "outDir": "./dist", "outDir": "./dist",
// Environment Settings // Environment Settings
// See also https://aka.ms/tsconfig/module // See also https://aka.ms/tsconfig/module
@@ -40,6 +40,6 @@
"isolatedModules": true, "isolatedModules": true,
"noUncheckedSideEffectImports": true, "noUncheckedSideEffectImports": true,
"moduleDetection": "force", "moduleDetection": "force",
"skipLibCheck": true, "skipLibCheck": true
} }
} }
+1 -1
View File
@@ -76,7 +76,7 @@ export function runAct(prompt: string): void {
"--input", "--input",
`prompt='${escapedPrompt}'`, `prompt='${escapedPrompt}'`,
"--local-repository", "--local-repository",
`pullfrog/pullfrog@v0=${distPath}`, // Use minimal dist without symlinks `pullfrog/action@v0=${distPath}`, // Use minimal dist without symlinks
]; ];
// Add all environment variables as secrets (without values) // Add all environment variables as secrets (without values)