@smithers-orchestrator/agents 0.20.3 → 0.20.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithers-orchestrator/agents",
3
- "version": "0.20.3",
3
+ "version": "0.20.4",
4
4
  "description": "AI SDK and CLI agent adapters for Smithers",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -50,9 +50,9 @@
50
50
  "ai": "^6.0.168",
51
51
  "effect": "^3.21.1",
52
52
  "zod": "^4.3.6",
53
- "@smithers-orchestrator/driver": "0.20.3",
54
- "@smithers-orchestrator/errors": "0.20.3",
55
- "@smithers-orchestrator/observability": "0.20.3"
53
+ "@smithers-orchestrator/errors": "0.20.4",
54
+ "@smithers-orchestrator/driver": "0.20.4",
55
+ "@smithers-orchestrator/observability": "0.20.4"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@types/bun": "latest",
@@ -255,10 +255,10 @@ export class GeminiAgent extends BaseCliAgent {
255
255
  const systemPrefix = params.systemPrompt
256
256
  ? `${params.systemPrompt}\n\n`
257
257
  : "";
258
- // Reinforce JSON output requirement in the prompt for Gemini models which
259
- // tend to forget structured output instructions on long responses.
258
+ // Reinforce raw JSON output requirement in the prompt for Gemini models
259
+ // which tend to forget structured output instructions on long responses.
260
260
  const jsonReminder = params.prompt?.includes("REQUIRED OUTPUT")
261
- ? "\n\nREMINDER: Your response MUST end with a ```json code fence containing the required JSON object. Do NOT skip this step the pipeline will reject your response without it.\n"
261
+ ? "\n\nREMINDER: Your response MUST be ONLY the required raw JSON object. Do not include prose, markdown, or code fences. The first character must be `{` and the last character must be `}`.\n"
262
262
  : "";
263
263
  const fullPrompt = `${systemPrefix}${params.prompt ?? ""}${jsonReminder}`;
264
264
  args.push("--prompt", fullPrompt);
package/src/KimiAgent.js CHANGED
@@ -425,7 +425,7 @@ export class KimiAgent extends BaseCliAgent {
425
425
  ? `${params.systemPrompt}\n\n`
426
426
  : "";
427
427
  const jsonReminder = params.prompt?.includes("REQUIRED OUTPUT")
428
- ? "\n\nREMINDER: Your response MUST end with a ```json code fence containing the required JSON object. Do NOT skip this step the pipeline will reject your response without it.\n"
428
+ ? "\n\nREMINDER: Your response MUST be ONLY the required raw JSON object. Do not include prose, markdown, or code fences. The first character must be `{` and the last character must be `}`.\n"
429
429
  : "";
430
430
  const fullPrompt = `${systemPrefix}${params.prompt ?? ""}${jsonReminder}`;
431
431
  // Pass prompt via --prompt flag