From f6ce97a0766833321e703852a9987605bd475c2d Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
<41898282+github-actions[bot]@users.noreply.github.com>
Date: Thu, 23 Jul 2026 16:45:30 +0000
Subject: [PATCH] docs(rig): fix misleading analyzeResponse header and add
JSDoc
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
The file-header invariant comment claimed the model response was parsed
from an '' XML tag, but the actual implementation
in analyzeResponse/parseJson never extracts such a tag — it parses
JSON directly from the raw response text with three fallback strategies
(direct parse → fenced ```json block → balanced-brace extraction).
Fix the two incorrect header lines and add a JSDoc comment on
analyzeResponse that accurately documents the three-strategy extraction
pipeline so callers understand how repair prompts are triggered.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---
skills/rig/rig.ts | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)
diff --git a/skills/rig/rig.ts b/skills/rig/rig.ts
index 67f6a4d..9a24f7c 100644
--- a/skills/rig/rig.ts
+++ b/skills/rig/rig.ts
@@ -48,7 +48,7 @@
* F:launchRigProgram(path,opts?) runs .ts agent file as subprocess via tsx
* F:runLauncherCli(opts?) entry-point CLI: parses argv, wires copilotEngine, runs agent
* F:defineTool(name,config) Tool with handler+parameters schema
- * F:analyzeResponse(resp,schema,name,turn) ResponseAnalysisResult parse+validate from