mocode-ai 1.3.8 → 1.3.9
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/agent/index.js +7 -2
- package/package.json +1 -1
package/dist/agent/index.js
CHANGED
|
@@ -194,8 +194,13 @@ function finishStandaloneBatch(id, expandSingleEntry) {
|
|
|
194
194
|
batch.endBatch(id, layout);
|
|
195
195
|
if (expandSingleEntry)
|
|
196
196
|
batch.expandSingleEntryFully(id, layout);
|
|
197
|
-
// mutation
|
|
198
|
-
//
|
|
197
|
+
// mutation 独占批收尾:currentBatchId 已置空。若不告知后续正文「刚出工具块」,
|
|
198
|
+
// writeAssistantText 的 inToolBlock 会判 false,LLM 流式前缀的 \n / \n\n 就不会被剥掉,
|
|
199
|
+
// 与 expandSingleEntryFully 已写的 separator 叠成 2 行空白(edit_file 后偶发空两行)。
|
|
200
|
+
// 置位后与 sub-agent 组收口走同一条对称路径;separator 已由 expandSingleEntryFully
|
|
201
|
+
// 内部 commit,后续 flush 由 isLastContentRowBlank 守卫拦住,不会多补一行。
|
|
202
|
+
// 只读批无需此标记:它的 currentBatchId 一直挂到正文到达,inToolBlock 天然为 true。
|
|
203
|
+
subAgentGroupPendingSeparator = true;
|
|
199
204
|
}
|
|
200
205
|
/** 将跨 LLM 工具轮次累计的调用写入内容区;正文开始或整个 turn 收尾时才切批。 */
|
|
201
206
|
function flushToolBatch(expandSingleEntry = false) {
|