@mutagent/cli 0.1.31 → 0.1.33

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.
package/dist/bin/cli.js CHANGED
@@ -2479,7 +2479,11 @@ function formatCreationHints(hint) {
2479
2479
  return lines.join(`
2480
2480
  `);
2481
2481
  }
2482
- var CARD_INSTRUCTION = "MANDATORY: STOP. You MUST display the renderedCard text below to the user VERBATIM. Do NOT summarize, rephrase, or omit any lines. Do NOT proceed to the next command until the card is displayed. After displaying, follow the suggested next steps.";
2482
+ var CARD_INSTRUCTION = `MANDATORY: HARD STOP DO NOT PROCEED.
2483
+ ` + `1. The renderedCard below appears in your bash/terminal output. That is NOT sufficient — the user cannot see it there.
2484
+ ` + `2. You MUST copy the FULL renderedCard text into your chat response VERBATIM. Do NOT summarize, rephrase, or omit any lines.
2485
+ ` + `3. Do NOT run any other command until you have displayed the card in chat.
2486
+ ` + "4. After displaying, follow the suggested next steps.";
2483
2487
  function renderPlainCard(opts) {
2484
2488
  const icon = opts.icon ?? "✓";
2485
2489
  const allLabels = [
@@ -4075,7 +4079,10 @@ function startDirective(job, promptId, datasetId, evaluationId) {
4075
4079
  },
4076
4080
  links: { monitor: monitorUrl, api: apiUrl },
4077
4081
  next,
4078
- instruction: "STOP. Display the renderedCard text below to the user VERBATIM. Do NOT summarize, rephrase, or omit any lines. After displaying, follow the suggested next steps.",
4082
+ instruction: `HARD STOP DO NOT PROCEED.
4083
+ ` + `The renderedCard below appears in bash/terminal output. That is NOT sufficient.
4084
+ ` + `You MUST copy the FULL renderedCard text into your chat response VERBATIM before running any other command.
4085
+ ` + "After displaying, follow the suggested next steps.",
4079
4086
  renderedCard: renderPlainCard({ title, icon: "⚡", rows, links: cardLinks, next })
4080
4087
  };
4081
4088
  }
@@ -4118,7 +4125,10 @@ function statusDirective(status) {
4118
4125
  },
4119
4126
  links: { monitor: monitorUrl },
4120
4127
  next,
4121
- instruction: "STOP. Display the renderedCard text below to the user VERBATIM. Do NOT summarize, rephrase, or omit any lines. After displaying, follow the suggested next steps.",
4128
+ instruction: `HARD STOP DO NOT PROCEED.
4129
+ ` + `The renderedCard below appears in bash/terminal output. That is NOT sufficient.
4130
+ ` + `You MUST copy the FULL renderedCard text into your chat response VERBATIM before running any other command.
4131
+ ` + "After displaying, follow the suggested next steps.",
4122
4132
  renderedCard: renderPlainCard({ title, icon, rows, links: cardLinks, next })
4123
4133
  };
4124
4134
  }
@@ -4426,7 +4436,11 @@ After viewing results:
4426
4436
  const scorecardText = buildResultsScorecardText(resultData);
4427
4437
  const directive = {
4428
4438
  display: "scorecard",
4429
- instruction: "Present the before/after scorecard to the user. Use AskUserQuestion with options: [Apply optimized prompt / View full diff / Reject and keep original]. Do NOT auto-apply.",
4439
+ instruction: `HARD STOP DO NOT PROCEED.
4440
+ ` + `The scorecard below appears in bash/terminal output. That is NOT sufficient.
4441
+ ` + `You MUST copy the FULL renderedCard text into your chat response VERBATIM.
4442
+ ` + `Then use AskUserQuestion with options: [Apply optimized prompt / View full diff / Reject and keep original].
4443
+ ` + "Do NOT auto-apply.",
4430
4444
  renderedCard: scorecardText,
4431
4445
  next: isCompleted ? [
4432
4446
  `mutagent prompts optimize results ${jobId} --apply --json`,
@@ -7195,7 +7209,7 @@ ${chalk23.yellow("AI Agent Rules (MANDATORY for coding agents):")}
7195
7209
  1. EVERY command MUST include --json (no exceptions)
7196
7210
  2. Run <command> --help BEFORE first use of any command
7197
7211
  3. Use --guided --json for evaluation creation (NEVER --guided alone)
7198
- 4. Parse and display _directive.renderedCard after every mutation
7212
+ 4. Parse _directive.renderedCard and copy it into your CHAT RESPONSE verbatim — bash output is NOT sufficient
7199
7213
  5. After mutagent init, verify workspace: mutagent workspaces list --json
7200
7214
  6. Use {single_braces} for template variables in prompts
7201
7215
  7. Collect evaluation rubrics from the user — NEVER auto-generate
@@ -7232,5 +7246,5 @@ program.addCommand(createSkillsCommand());
7232
7246
  program.addCommand(createUsageCommand());
7233
7247
  program.parse();
7234
7248
 
7235
- //# debugId=E58AAC8256B9F1B664756E2164756E21
7249
+ //# debugId=949880CEAB787FCB64756E2164756E21
7236
7250
  //# sourceMappingURL=cli.js.map