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"
- name: Install dependencies
run: pnpm install --frozen-lockfile
run: pnpm install
- name: Get package version
id: version
@@ -103,14 +103,14 @@ jobs:
Use the major version tag for automatic updates:
```yaml
- uses: pullfrog/pullfrog@${{ steps.version.outputs.major_tag }}
- uses: pullfrog/action@${{ steps.version.outputs.major_tag }}
with:
message: "Your message here"
```
Or pin to this specific version:
```yaml
- uses: pullfrog/pullfrog@${{ steps.version.outputs.tag }}
- uses: pullfrog/action@${{ steps.version.outputs.tag }}
with:
message: "Your message here"
```
+9 -8
View File
@@ -364,14 +364,15 @@ function processJSONChunk(chunk: string, agent?: ClaudeAgent): void {
case "result":
if (parsedChunk.subtype === "success") {
if (parsedChunk.result) {
core.info(
boxString(parsedChunk.result.trim(), {
title: "🤖 Claude Code",
maxWidth: 70,
}),
);
}
// Claude already prints something almost identical to this, so skip for now
// if (parsedChunk.result) {
// core.info(
// boxString(parsedChunk.result.trim(), {
// title: "🤖 Claude Code",
// maxWidth: 70,
// }),
// );
// }
core.info(
tableString([
-8
View File
@@ -25913,14 +25913,6 @@ function processJSONChunk(chunk, agent) {
break;
case "result":
if (parsedChunk.subtype === "success") {
if (parsedChunk.result) {
core.info(
boxString(parsedChunk.result.trim(), {
title: "\u{1F916} Claude Code",
maxWidth: 70
})
);
}
core.info(
tableString([
[
+3 -3
View File
@@ -8,8 +8,8 @@ export interface MainParams {
export interface MainResult {
success: boolean;
output?: string;
error?: string;
output?: string | undefined;
error?: string | undefined;
}
export async function main(params: MainParams): Promise<MainResult> {
@@ -35,7 +35,7 @@ export async function main(params: MainParams): Promise<MainResult> {
return {
success: false,
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": {
"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:dev": "node esbuild.config.js",
"prepare": "husky",
@@ -39,16 +39,26 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/pullfrog/pullfrog.git"
"url": "git+https://github.com/pullfrog/action.git"
},
"keywords": [],
"author": "",
"license": "ISC",
"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": {
"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(
"[file]",
"Prompt file to use (.txt, .json, or .ts)",
"fixtures/play.txt",
"fixtures/basic.txt",
)
.option(
"--act",
+2 -2
View File
@@ -3,7 +3,7 @@
"compilerOptions": {
// File Layout
// "rootDir": "./src",
// "outDir": "./dist",
"outDir": "./dist",
// Environment Settings
// See also https://aka.ms/tsconfig/module
@@ -40,6 +40,6 @@
"isolatedModules": true,
"noUncheckedSideEffectImports": true,
"moduleDetection": "force",
"skipLibCheck": true,
"skipLibCheck": true
}
}
+1 -1
View File
@@ -76,7 +76,7 @@ export function runAct(prompt: string): void {
"--input",
`prompt='${escapedPrompt}'`,
"--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)