@tea-agent/loop-agent 0.39.0-next.21 → 0.39.0-next.22
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/build-stamp.json
CHANGED
|
@@ -162,9 +162,12 @@ async function readNodeText(runDir, nodeId) {
|
|
|
162
162
|
if (record.status !== "FINISHED") {
|
|
163
163
|
throw new Error(`frontend prewrite gate requires FINISHED node ${nodeId} (got ${String(record.status)})`);
|
|
164
164
|
}
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
165
|
+
// Pi execution mirrors a successful structured-contract normalization into
|
|
166
|
+
// both assistantText and stdout. Treat node output the same way as the DAG
|
|
167
|
+
// runtime's canonicalNodeOutput(): assistantText is authoritative and stdout
|
|
168
|
+
// is only a fallback. Concatenating the two duplicate fields makes a single
|
|
169
|
+
// canonical plan appear as two complete JSON contracts to the prewrite gate.
|
|
170
|
+
const text = record.assistantText?.trim() || record.stdout?.trim() || "";
|
|
168
171
|
if (!text)
|
|
169
172
|
throw new Error(`frontend prewrite gate empty output from ${nodeId}`);
|
|
170
173
|
return text;
|