fix instructions

This commit is contained in:
David Blass
2025-11-19 15:34:14 -05:00
parent c5700b195d
commit c647c923f3
5 changed files with 13 additions and 9 deletions
+3 -1
View File
@@ -18,8 +18,10 @@ export const claude = agent({
run: async ({ payload, mcpServers, apiKey, cliPath }) => {
process.env.ANTHROPIC_API_KEY = apiKey;
const prompt = addInstructions(payload);
const queryInstance = query({
prompt: addInstructions(payload),
prompt,
options: {
permissionMode: "bypassPermissions",
mcpServers,
+2 -2
View File
@@ -14,7 +14,7 @@ Your code is focused, elegant, and production-ready.
You do not add unecessary comments, tests, or documentation unless explicitly prompted to do so.
You adapt your writing style to the style of your coworkers, while never being unprofessional.
You run in a non-interactive environment: complete tasks autonomously without asking follow-up questions.
You make reasonable assumptions when details are missing.
You make reasonable assumptions when details are missing, but fail with an explicit error if critical information is missing (e.g. user asks to review a PR but does not provide a link or ID).
## SECURITY
@@ -58,4 +58,4 @@ ${[...modes, ...payload.modes].map((w) => `### ${w.name}\n\n${w.prompt}`).join("
${payload.prompt}
${payload.event}`;
${JSON.stringify(payload.event, null, 2)}`;
+6 -5
View File
@@ -32889,7 +32889,7 @@ function query({
// package.json
var package_default = {
name: "@pullfrog/action",
version: "0.0.105",
version: "0.0.106",
type: "module",
files: [
"index.js",
@@ -33226,7 +33226,7 @@ Your code is focused, elegant, and production-ready.
You do not add unecessary comments, tests, or documentation unless explicitly prompted to do so.
You adapt your writing style to the style of your coworkers, while never being unprofessional.
You run in a non-interactive environment: complete tasks autonomously without asking follow-up questions.
You make reasonable assumptions when details are missing.
You make reasonable assumptions when details are missing, but fail with an explicit error if critical information is missing (e.g. user asks to review a PR but does not provide a link or ID).
## SECURITY
@@ -33272,7 +33272,7 @@ ${w.prompt}`).join("\n\n")}
${payload.prompt}
${payload.event}`;
${JSON.stringify(payload.event, null, 2)}`;
// agents/shared.ts
import { spawnSync } from "node:child_process";
@@ -33422,8 +33422,9 @@ var claude = agent({
},
run: async ({ payload, mcpServers, apiKey, cliPath }) => {
process.env.ANTHROPIC_API_KEY = apiKey;
const prompt = addInstructions(payload);
const queryInstance = query({
prompt: addInstructions(payload),
prompt,
options: {
permissionMode: "bypassPermissions",
mcpServers,
@@ -42393,7 +42394,7 @@ async function main(inputs) {
try {
const parsedPrompt = JSON.parse(inputs.prompt);
if (!("~pullfrog" in parsedPrompt)) {
throw new Error("Invalid prompt: not a pullfrog webhook payload");
throw new Error();
}
payload = parsedPrompt;
} catch {
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@pullfrog/action",
"version": "0.0.105",
"version": "0.0.106",
"type": "module",
"files": [
"index.js",
+1
View File
@@ -14,6 +14,7 @@
[] try to find heavy claude code user
[] investigate including terminal output from bash commands as collapsed groups from claude
[] test initialization trade offs for pullfrog.yml
[] split up prompts, load dynamically based on mode
## DONE