executant 2.0.0 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +7 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -66,6 +66,7 @@ import { basename, dirname, join } from "node:path";
66
66
  import { fileURLToPath } from "node:url";
67
67
  var __dir = dirname(fileURLToPath(import.meta.url));
68
68
  var PROMPTS_DIR = basename(__dir) === "lib" ? join(__dir, "..", "prompts") : join(__dir, "prompts");
69
+ var DEFAULT_MODEL = "sonnet";
69
70
  function stripPromptHeader(raw) {
70
71
  return raw.replace(/^(#[^\n]*\n)+\n?/, "").trim();
71
72
  }
@@ -273,7 +274,7 @@ function convertInnerStep(step, vars, name, continueOnError) {
273
274
  continueOnError,
274
275
  llmAsJudge: step.llm_as_judge,
275
276
  allowedTools: step.allowed_tools,
276
- model: step.model ?? "sonnet",
277
+ model: step.model ?? DEFAULT_MODEL,
277
278
  ...step.provider && { provider: step.provider },
278
279
  ...step.agent && { agent: step.agent },
279
280
  ...contextFiles.length > 0 && { contextFiles },
@@ -1120,7 +1121,7 @@ async function* runCommandWithHealing(task) {
1120
1121
  name: `${task.name}:heal-${attempt + 1}`,
1121
1122
  prompt: healPrompt,
1122
1123
  allowedTools: ["Bash", "Read", "Write", "Edit", "Glob", "Grep"],
1123
- model: "sonnet",
1124
+ model: DEFAULT_MODEL,
1124
1125
  provider: "claude"
1125
1126
  };
1126
1127
  const toolCalls = [];
@@ -1193,7 +1194,7 @@ async function evaluateWithJudge(stepName, stepInstructions, output) {
1193
1194
  prompt: buildJudgePrompt(stepName, stepInstructions, output),
1194
1195
  allowedTools: [],
1195
1196
  permissionMode: "default",
1196
- model: "sonnet",
1197
+ model: DEFAULT_MODEL,
1197
1198
  provider: "claude"
1198
1199
  },
1199
1200
  JudgeOutputSchema
@@ -2072,7 +2073,7 @@ async function runPass3Judge(description, workflow2) {
2072
2073
  }),
2073
2074
  allowedTools: [],
2074
2075
  permissionMode: "default",
2075
- model: "sonnet",
2076
+ model: DEFAULT_MODEL,
2076
2077
  appendSystemPrompt: METHODOLOGY
2077
2078
  };
2078
2079
  return await runAgentStructured(task, PlanJudgeOutputSchema);
@@ -2371,7 +2372,7 @@ async function* streamPlan(args) {
2371
2372
  ${basePrompt}` : basePrompt,
2372
2373
  allowedTools: [],
2373
2374
  permissionMode: "bypassPermissions",
2374
- model: skipResearch ? "sonnet" : "opus",
2375
+ model: skipResearch ? DEFAULT_MODEL : "opus",
2375
2376
  appendSystemPrompt: `${METHODOLOGY}
2376
2377
 
2377
2378
  ${PLAN_SYSTEM_RULES}`,
@@ -2491,7 +2492,7 @@ async function* streamRefine(args) {
2491
2492
  ${basePrompt}` : basePrompt,
2492
2493
  allowedTools: [],
2493
2494
  permissionMode: "bypassPermissions",
2494
- model: "sonnet",
2495
+ model: DEFAULT_MODEL,
2495
2496
  appendSystemPrompt: `${METHODOLOGY}
2496
2497
 
2497
2498
  ${PLAN_SYSTEM_RULES2}`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "executant",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
4
4
  "description": "Harness for YAML-defined workflows that enables stepping through Claude sessions and bash commands",
5
5
  "repository": {
6
6
  "type": "git",