triflux 9.7.5 → 9.7.6
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.
|
@@ -146,9 +146,13 @@ function mergeOutputs(accumulated, newOutput) {
|
|
|
146
146
|
const parsed = JSON.parse(newOutput);
|
|
147
147
|
if (!accumulated) return parsed;
|
|
148
148
|
|
|
149
|
-
// hookSpecificOutput는
|
|
149
|
+
// hookSpecificOutput 머지 — additionalContext는 누적, 나머지는 덮어쓰기
|
|
150
150
|
if (parsed.hookSpecificOutput) {
|
|
151
|
-
accumulated.hookSpecificOutput
|
|
151
|
+
if (accumulated.hookSpecificOutput?.additionalContext && parsed.hookSpecificOutput.additionalContext) {
|
|
152
|
+
parsed.hookSpecificOutput.additionalContext =
|
|
153
|
+
accumulated.hookSpecificOutput.additionalContext + "\n" + parsed.hookSpecificOutput.additionalContext;
|
|
154
|
+
}
|
|
155
|
+
accumulated.hookSpecificOutput = { ...accumulated.hookSpecificOutput, ...parsed.hookSpecificOutput };
|
|
152
156
|
}
|
|
153
157
|
// systemMessage는 누적
|
|
154
158
|
if (parsed.systemMessage) {
|