add macros (#68)

This commit is contained in:
David Blass
2026-01-14 22:52:54 +00:00
committed by pullfrog[bot]
parent 3539ddf943
commit 1daf1571cf
20 changed files with 376 additions and 269 deletions
+27
View File
@@ -0,0 +1,27 @@
import type { Effort, Payload } from "../external.ts";
/**
* Test fixture for Claude effort levels.
* Runs all three effort levels in sequence.
*
* Run with:
* AGENT_OVERRIDE=claude pnpm play claude-effort.ts
*
* Effort levels:
* - "mini": haiku (fast, efficient)
* - "auto": opusplan (Opus for planning, Sonnet for execution)
* - "max": opus (full Opus capability)
*/
const efforts: Effort[] = ["mini", "auto", "max"];
export default efforts.map((effort) => ({
"~pullfrog": true,
agent: "claude",
prompt: "What is 2 + 2? Reply with just the number.",
event: {
trigger: "workflow_dispatch",
},
modes: [],
effort,
})) satisfies Payload[];
+27
View File
@@ -0,0 +1,27 @@
import type { Effort, Payload } from "../external.ts";
/**
* Test fixture for Codex effort levels.
* Runs all three effort levels in sequence.
*
* Run with:
* AGENT_OVERRIDE=codex pnpm play codex-effort.ts
*
* Effort levels:
* - "mini": gpt-5.1-codex-mini + modelReasoningEffort: "low"
* - "auto": gpt-5.1-codex + default reasoning
* - "max": gpt-5.1-codex-max + modelReasoningEffort: "high"
*/
const efforts: Effort[] = ["mini", "auto", "max"];
export default efforts.map((effort) => ({
"~pullfrog": true,
agent: "codex",
prompt: "What is 2 + 2? Reply with just the number.",
event: {
trigger: "workflow_dispatch",
},
modes: [],
effort,
})) satisfies Payload[];
+3 -3
View File
@@ -8,15 +8,15 @@ import type { Effort, Payload } from "../external.ts";
* AGENT_OVERRIDE=cursor pnpm play cursor-effort.ts
*
* Effort levels:
* - "nothink": auto (default model)
* - "think": auto (default model)
* - "mini": auto (default model)
* - "auto": auto (default model)
* - "max": opus-4.5-thinking
*
* Note: If project has .cursor/cli.json with "model" specified,
* that takes precedence over effort-based model selection.
*/
const efforts: Effort[] = ["nothink", "think", "max"];
const efforts: Effort[] = ["mini", "auto", "max"];
export default efforts.map((effort) => ({
"~pullfrog": true,
+3 -3
View File
@@ -8,12 +8,12 @@ import type { Effort, Payload } from "../external.ts";
* AGENT_OVERRIDE=gemini pnpm play gemini-effort.ts
*
* Effort levels:
* - "nothink": gemini-2.5-flash + LOW thinking
* - "think": gemini-2.5-flash + HIGH thinking
* - "mini": gemini-2.5-flash + LOW thinking
* - "auto": gemini-2.5-flash + HIGH thinking
* - "max": gemini-2.5-pro + HIGH thinking
*/
const efforts: Effort[] = ["nothink", "think", "max"];
const efforts: Effort[] = ["mini", "auto", "max"];
export default efforts.map((effort) => ({
"~pullfrog": true,