mocode-ai 1.8.8 → 1.8.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.
@@ -507,7 +507,12 @@ ${buildVoiceSection()}
507
507
  - Stop immediately when no more tools are needed; give conclusions directly.
508
508
  - **Do not stop prematurely during exploration**: if you started investigating but haven't gathered enough information to answer the user's question, keep calling tools. Only stop when you have sufficient evidence or hit a dead end.
509
509
  - **No flattery / no preamble in conclusions**: skip "Sure", "好的", "我已经完成了" and similar no-information prefixes — jump straight to substance.
510
- - Close with a brief explanation of what you did and why, not just a verdict, so the user doesn't have to re-read the tool trace: when files changed, group them by file or logical change — what changed and the behavior/fix it delivers, one or two lines each with "path:line" references, noting renames/deletions and skipping purely mechanical edits; for investigation or analysis, state the conclusion and the key evidence. Say success when successful, where you're stuck when failing, and anything skipped. Keep it concise.
510
+ - **Lead with the outcome**: the first line says what you did or what you found in one sentence — no restatement of the request, no "task completed" wrapper.
511
+ - **Shape the rest for scanning**, including only the sections that carry content: what changed (grouped by logical change: \`path:line\` plus the behavior it delivers, one line each; note renames/deletions; skip purely mechanical edits) → what you verified and its result, or "not run" with the reason → what is still open (≤3 bullets). Never paste diffs or whole files the terminal already showed.
512
+ - **Match the reply to the task**: questions, explanations, and analysis get the conclusion plus the key evidence — never the change/verification template. When something failed, say where you are stuck and what you tried.
513
+ - **Prevent the follow-up**: before you stop, check the reply already answers what the user would ask next — what changed and where, why, what you verified, and what is left or uncertain. A missing fact costs the user a whole extra round-trip; add that fact, not more prose.
514
+ - **No dead endings**: drop "hope this helps", "if you need anything else…", "let me know if you'd like me to…", and any closing paragraph that restates what you just wrote.
515
+ - **Terminal-first formatting**: at most one level of \`##\` headings or a few bold lead-ins, lists no deeper than two levels, tables only when a column comparison is what makes them readable, no emoji. Reply in the user's language; keep code, paths, and commands verbatim.
511
516
  - Definition of done (code/behavior changes only): never declare a multi-feature implementation finished just because the code exists. Each distinct implementation request listed in the plan must be actually verified where a check is warranted (the relevant check run / observed result), not merely implemented; mark plan steps \`[x]\` only after that verification. If the user supplied an acceptance list, every item on it must pass. Leave unverified items explicitly listed as pending instead of collapsing them into "done". This rule does not apply to questions, explanations, or read-only analysis — answer those directly with no verification.`;
512
517
  // 动态段(置于末尾):AGENTS.md 项目记忆 + notepad 索引/说明。工具簇特定指导由
513
518
  // ToolPolicyController.reminder() 按当前 turn 的 route 注入,避免旧全局 profile 与真实 schema 分裂。
@@ -14,7 +14,7 @@ let runningCursor = 0; // 缓冲内光标字符索引(0..len);运行态支持任
14
14
  let runningPlaceholder = '';
15
15
  let currentAbort = null;
16
16
  let listening = false; // onRunningKey 是否处于挂载期(start → stop 之间)
17
- let queuedTurns = [];
17
+ const queuedTurns = [];
18
18
  /** 运行态打开的输入面板(Ctrl+G);非 null = 面板仍开着。主循环进 INPUT 态前须等它关闭,否则两个 keypress 监听抢键。 */
19
19
  let composerPending = null;
20
20
  /** 粘贴多行时 \r\n 合一:刚吃了 \r,尾随的 \n 需吞掉(与 INPUT 态编辑器一致)。 */
@@ -190,6 +190,11 @@ async function promptInterventionInner(req) {
190
190
  redraw();
191
191
  }
192
192
  function redraw() {
193
+ // 介入面板在 RUNNING 态弹出,最关键的命令/diff/ask_human 行恰好在内容区底部。
194
+ // 先按菜单行数预留内容区底部等宽行:正文整体重排到菜单上沿之上,菜单不再盖住决策依据;
195
+ // 菜单高度不变时 setMenuReserve 内部去重,↑↓ 导航不会整屏闪。
196
+ const menuLines = mode === 'choice' ? menuLinesChoice() : menuLinesInput();
197
+ layout.setMenuReserve(menuLines.length);
193
198
  if (mode === 'choice') {
194
199
  const hint = t('prompt.chooseConfirm');
195
200
  layout.paintInput({
@@ -197,7 +202,7 @@ async function promptInterventionInner(req) {
197
202
  lines: [hint],
198
203
  cursorLine: 0,
199
204
  cursorCol: displayWidth(hint),
200
- menu: { lines: menuLinesChoice() },
205
+ menu: { lines: menuLines },
201
206
  });
202
207
  }
203
208
  else {
@@ -206,7 +211,7 @@ async function promptInterventionInner(req) {
206
211
  lines: [text],
207
212
  cursorLine: 0,
208
213
  cursorCol: displayWidth(text.slice(0, cursor)),
209
- menu: { lines: menuLinesInput() },
214
+ menu: { lines: menuLines },
210
215
  });
211
216
  }
212
217
  }
@@ -217,6 +222,15 @@ async function promptInterventionInner(req) {
217
222
  cleanup();
218
223
  resolve(result);
219
224
  }
225
+ /** 终端尺寸变化:layout 先重设区域/钳预留(它也挂了 SIGWINCH),稍等再按新几何重算
226
+ * 菜单行数并重设预留 + 重画,否则窗口缩高后旧菜单会超出新预留带、选项被裁。 */
227
+ function onResize() {
228
+ setTimeout(() => {
229
+ if (resolved)
230
+ return;
231
+ redraw();
232
+ }, 60);
233
+ }
220
234
  /** 退出:摘自己的监听 + 恢复快照监听 + 擦菜单恢复内容区。不 setRawMode(false)/pause stdin(运行态由 repl 接管)。 */
221
235
  function cleanup() {
222
236
  if (activeFinish === finish)
@@ -227,6 +241,12 @@ async function promptInterventionInner(req) {
227
241
  for (const l of savedListeners)
228
242
  emitter.on('keypress', l);
229
243
  savedListeners = [];
244
+ try {
245
+ process.removeListener('SIGWINCH', onResize);
246
+ }
247
+ catch {
248
+ // 忽略
249
+ }
230
250
  // 先 paintInput(dim,menu:null):擦菜单(用 lastMenuRows)+ 画 dim 占位底栏 + 复位 lastMenuRows=0;
231
251
  // 再处理滚动:面板内可能滚过滚轮(scrollOffset>0)→ resetScroll 回尾让 agent 后续输出可见;
232
252
  // 未滚则 repaintViewport 从 content 缓冲重画内容区(恢复被菜单覆盖的 ● ask_human 行)。
@@ -238,6 +258,10 @@ async function promptInterventionInner(req) {
238
258
  cursorCol: 0,
239
259
  menu: null,
240
260
  });
261
+ // 释放菜单预留行:正文恢复满内容区(setMenuReserve 内部重画被菜单占过的底部行)。
262
+ // 必须在 menu:null 擦菜单之后——先释放会让 repaintViewport 用正文覆盖尚未擦的菜单,
263
+ // 紧接着的 stale lastMenuRows 擦除又会把刚恢复的正文抹掉。
264
+ layout.setMenuReserve(0);
241
265
  if (layout.isScrolled())
242
266
  layout.resetScroll();
243
267
  else
@@ -397,6 +421,12 @@ async function promptInterventionInner(req) {
397
421
  }
398
422
  stdin.resume();
399
423
  emitter.on('keypress', onKey);
424
+ try {
425
+ process.on('SIGWINCH', onResize);
426
+ }
427
+ catch {
428
+ // 不支持则放弃 resize 自适应,不阻断面板
429
+ }
400
430
  layout.setCursorChangeHandler(applyExternalCursor); // 鼠标左键单击输入框 → 移光标到点击位
401
431
  redraw();
402
432
  }
@@ -409,6 +439,12 @@ async function promptInterventionInner(req) {
409
439
  catch {
410
440
  // 忽略
411
441
  }
442
+ try {
443
+ process.removeListener('SIGWINCH', onResize);
444
+ }
445
+ catch {
446
+ // 忽略
447
+ }
412
448
  for (const l of savedListeners) {
413
449
  try {
414
450
  emitter.on('keypress', l);
@@ -29,10 +29,10 @@ import { composePlanLines, drawStatusBar, startTurnTimer, stopTurnTimer } from '
29
29
  import { paintInput, repaint } from './input-paint.js';
30
30
  import { WHEEL_LINES, screenRowToAbsLine, repaintViewport, scrollBy, scrollWheel, resetScroll, lockScrollToBottom, } from './scroll.js';
31
31
  import { contentWrite, contentInsertAfter, contentDeleteFrom, contentReplaceLine, reflowContentForResize, flushMdSegment, } from './content-write.js';
32
- export { isTuiActive, getGeo, setRegion, contentMode, isStreamingPaused } from './screen.js';
32
+ export { isTuiActive, getGeo, getEffectiveContentBottom, setRegion, contentMode, isStreamingPaused } from './screen.js';
33
33
  export { drawStatusBar, setStatus, stopTurnTimer, startTurnTimerIfRunning, paintLiveAtCursor, clearLiveAtCursor, setLiveUsage, setQueuedTurn, setStatusBase, } from './statusbar.js';
34
34
  export { paintInput, paintRunningInput, repaint } from './input-paint.js';
35
- export { isScrolled, repaintViewport, repaintContentLine, scrollBy, scrollWheel, resetScroll, lockScrollToBottom, unlockScroll, isScrollLocked, } from './scroll.js';
35
+ export { isScrolled, repaintViewport, repaintContentLine, scrollBy, scrollWheel, resetScroll, setMenuReserve, lockScrollToBottom, unlockScroll, isScrollLocked, } from './scroll.js';
36
36
  export { contentWrite, writeBanner, rewriteBanner, bannerHeight, contentWriteMd, contentWriteMdOnce, clearContent, rewindContent, writeWelcomeBlock, dismissWelcomeBlock, contentInsertAfter, contentDeleteFrom, totalRows, isLastContentRowBlank, normalizeMutationBoundary, normalizeInputBoundary, contentReplaceLine, notifyContentReset, } from './content-write.js';
37
37
  // ── 裸 console 防御 ──
38
38
  // 第三方库(如 openai SDK)可能用 console.log 直写 stdout,在 RUNNING 态会落到光标所在的底栏
@@ -565,6 +565,12 @@ export function enterAltScreen() {
565
565
  const colsChanged = latest.cols !== state.lastTerminalCols;
566
566
  reflowContentForResize(latest.cols, colsChanged);
567
567
  state.lastTerminalCols = latest.cols;
568
+ // 介入面板开着时菜单预留行可能因新窗口高度而越界:重新钳到 contentBottom-1。
569
+ // 菜单本身的重排由 intervention 的 resize 监听负责(它会按新几何重算 menuLines 并再设一次预留);
570
+ // 这里只保证视口几何不留错值,避免正文重排到菜单带里。
571
+ if (state.menuReserveRows > 0) {
572
+ state.menuReserveRows = Math.min(state.menuReserveRows, latest.contentBottom - 1);
573
+ }
568
574
  repaintViewport(); // 内容区按最新高度和列宽重画;markdown 历史已按新列宽 reflow
569
575
  repaint(); // 底栏重画
570
576
  }, 100);
@@ -5,7 +5,7 @@ import { charWidth, displayWidth, truncateDisplay, truncateDisplayHead, wrapByDi
5
5
  import { ui } from '../theme.js';
6
6
  import * as content from '../content.js';
7
7
  import { state } from './state.js';
8
- import { esc, cup, getGeo, setRegion, runningCaretPos } from './screen.js';
8
+ import { esc, cup, getGeo, getEffectiveContentBottom, setRegion, runningCaretPos } from './screen.js';
9
9
  import { SEL_OPEN, SEL_OFF, normalizeInputSelection, inputViewSig } from './selection.js';
10
10
  import { composeSpinnerLine, composeModelLine, composePlanLines, drawStatusBar } from './statusbar.js';
11
11
  // ── 输入区(底栏输入框 + 向上菜单)──
@@ -147,11 +147,14 @@ export function paintInput(view) {
147
147
  }
148
148
  g = setRegion(needFooterH);
149
149
  }
150
- // 2b. 重画内容末行(底栏上一行)从缓冲:防 WT 边距漏影(状态行重复到该行),并保证该行显正确内容
150
+ // 2b. 重画内容末行(有效视口底行)从缓冲:防 WT 边距漏影(状态行重复到该行),并保证该行显正确内容。
151
+ // 介入面板预留菜单行时,末行是菜单上沿那一行(getEffectiveContentBottom),不是物理 contentBottom——
152
+ // 后者属于菜单预留带,由第 5 步画菜单,这里不能碰,否则会在选项之间漏出正文。
151
153
  {
152
- const slice = content.sliceFromEnd(state.scrollOffset, g.contentBottom);
153
- const line = slice[g.contentBottom - 1] ?? '';
154
- buf += cup(g.contentBottom, 1) + esc.clearLine + line;
154
+ const effBottom = getEffectiveContentBottom();
155
+ const slice = content.sliceFromEnd(state.scrollOffset, effBottom);
156
+ const line = slice[effBottom - 1] ?? '';
157
+ buf += cup(effBottom, 1) + esc.clearLine + line;
155
158
  }
156
159
  // 2c. 虚拟空行(内容区与状态栏之间的视觉间隔,属底栏非内容):
157
160
  // - 无活跃 plan:清空保留作分隔(原设计)
@@ -245,9 +248,14 @@ export function paintInput(view) {
245
248
  }
246
249
  // 4b. 下线(输入框底):满屏宽细线 ─(cyan),在 model 行上一行(model 行占屏底 rows)
247
250
  buf += cup(g.rows - 1, 1) + esc.clearLine + ui.accent + '─'.repeat(g.cols) + ui.reset;
248
- // 5. 向上菜单(画在内容区底,底栏正上方)
251
+ // 5. 向上菜单(画在内容区底,底栏正上方)。
252
+ // 介入面板经 setMenuReserve 预留了等宽的底部行,正文已重排到菜单上沿之上,故菜单画进预留带、
253
+ // 不再覆盖任何正文;无预留(命令补全等普通 picker)时退回旧的 overlay 行为,直接贴内容区底。
249
254
  if (view.menu && view.menu.lines.length > 0) {
250
- const menuRows = Math.min(view.menu.lines.length, g.contentBottom);
255
+ const reserve = state.menuReserveRows > 0;
256
+ const menuRows = reserve
257
+ ? Math.min(view.menu.lines.length, state.menuReserveRows)
258
+ : Math.min(view.menu.lines.length, g.contentBottom);
251
259
  const menuStart = g.contentBottom - menuRows + 1;
252
260
  for (let i = 0; i < menuRows; i++) {
253
261
  buf += cup(menuStart + i, 1) + esc.clearLine + view.menu.lines[i];
@@ -66,6 +66,15 @@ export function getGeo(fh = state.footerH) {
66
66
  contentBottom: Math.max(1, rows - f),
67
67
  };
68
68
  }
69
+ /**
70
+ * 正文当前真正可用的**内容区底行**:有预留菜单(介入面板)时为 contentBottom - menuReserveRows。
71
+ * viewport 切片、滚动钳位、续写末行重画都用它,保证正文只画到菜单上沿、不与菜单重叠。
72
+ * 无菜单预留时与 getGeo().contentBottom 相同。
73
+ */
74
+ export function getEffectiveContentBottom() {
75
+ const g = getGeo();
76
+ return Math.max(1, g.contentBottom - state.menuReserveRows);
77
+ }
69
78
  /** (重)设滚动区域 [1, rows-footerH];设完 \x1B[H 归位(conhost 设 DECSTBM 时光标留旧位置行为未定义)。 */
70
79
  export function setRegion(fh) {
71
80
  const rows = stdout.rows || 24;
@@ -5,7 +5,7 @@ import { displayWidth, truncateDisplayHead, truncateAnsi, ansiDisplayWidth, padE
5
5
  import { ui } from '../theme.js';
6
6
  import * as content from '../content.js';
7
7
  import { state } from './state.js';
8
- import { esc, cup, getGeo, runningCaretPos } from './screen.js';
8
+ import { esc, cup, getGeo, getEffectiveContentBottom, runningCaretPos } from './screen.js';
9
9
  import { normalizeSelection, highlightRange } from './selection.js';
10
10
  import { repaint } from './input-paint.js';
11
11
  // ── 纯常量(可变运行态在 state.ts)──
@@ -20,10 +20,10 @@ export function isScrolled() {
20
20
  }
21
21
  /** viewport 窗口起点绝对行索引(0-based,对齐 content.sliceFromEnd 的 start)。 */
22
22
  export function viewportAbsStart() {
23
- const g = getGeo();
23
+ const h = getEffectiveContentBottom();
24
24
  const total = content.totalRows();
25
25
  const end = Math.max(0, total - state.scrollOffset);
26
- return Math.max(0, end - g.contentBottom);
26
+ return Math.max(0, end - h);
27
27
  }
28
28
  /** 屏行(1-based,内容区内)→ 绝对缓冲行索引(0-based)。 */
29
29
  export function screenRowToAbsLine(row) {
@@ -43,13 +43,13 @@ export function screenRowToAbsLine(row) {
43
43
  export function repaintContentLine(absIdx, line) {
44
44
  if (!state.active || state.overlayActive)
45
45
  return; // 覆盖层打开中不写屏(缓冲已由调用方更新)
46
- const g = getGeo();
46
+ const bottom = getEffectiveContentBottom();
47
47
  const row = absIdx - viewportAbsStart() + 1;
48
- if (row < 1 || row > g.contentBottom)
49
- return; // 不在视口内:不猜映射,交由上层处理
48
+ if (row < 1 || row > bottom)
49
+ return; // 不在有效视口内(含被预留菜单占住的行):不写
50
50
  // 已提交行自带完整 SGR 前缀(breakRow 落盘的是 `rowStartSgr + curRaw + reset`,见 content.ts),
51
51
  // 故单行重画无需补前缀,只需按当前列宽钳宽(窄窗兜底,防 auto-wrap 破坏「一行=一物理行」)。
52
- const text = truncateAnsi(line, g.cols);
52
+ const text = truncateAnsi(line, getGeo().cols);
53
53
  let out = cup(row, 1) + esc.clearLine + text;
54
54
  // 与 repaintViewport 同约定:运行态光标归输入框(供 IME 锚定),INPUT 态归续写位。
55
55
  if (state.mode === 'running') {
@@ -57,7 +57,7 @@ export function repaintContentLine(absIdx, line) {
57
57
  out += cup(c.row, c.col);
58
58
  }
59
59
  else {
60
- out += cup(state.scrollOffset === 0 ? state.contentRow : g.contentBottom, state.scrollOffset === 0 ? state.contentCol : 1);
60
+ out += cup(state.scrollOffset === 0 ? state.contentRow : bottom, state.scrollOffset === 0 ? state.contentCol : 1);
61
61
  }
62
62
  stdout.write(out);
63
63
  }
@@ -78,7 +78,9 @@ export function repaintViewport() {
78
78
  if (!state.active || state.overlayActive)
79
79
  return;
80
80
  const g = getGeo();
81
- const h = g.contentBottom;
81
+ // 介入面板预留菜单行时,正文只画到菜单上沿;菜单区(其下到 contentBottom)留给 paintInput,
82
+ // 这里绝不能 cup+clearLine 进去,否则会把菜单擦掉或在选项之间漏出正文。
83
+ const h = getEffectiveContentBottom();
82
84
  const slice = content.sliceFromEnd(state.scrollOffset, h);
83
85
  const sel = normalizeSelection();
84
86
  // viewportAbsStart() 无选区时也用:sticky banner 必须按真实窗口头算,不能降级 0(否则 banner 永不出现)。
@@ -140,15 +142,16 @@ export function repaintViewport() {
140
142
  }
141
143
  stdout.write(p);
142
144
  }
143
- /** 滚动 delta 行(正=往新、负=往旧);钳 [0, max(0, total-contentBottom)];变则重画 + 刷底栏(显指示、光标回输入框)。 */
145
+ /** 滚动 delta 行(正=往新、负=往旧);钳 [0, max(0, total-视口高)];变则重画 + 刷底栏(显指示、光标回输入框)。 */
144
146
  export function scrollBy(delta) {
145
147
  if (!state.active)
146
148
  return;
147
149
  if (Date.now() < state.scrollLockUntil)
148
150
  return; // 轮首滚动锁:吸收发消息前后 stdin 残留滚轮事件,保 agent 输出从底部开始
151
+ const h = getEffectiveContentBottom(); // 介入面板期按菜单上沿之上的压缩视口算滚动范围
149
152
  const g = getGeo();
150
153
  const total = content.totalRows();
151
- const maxOff = Math.max(0, total - g.contentBottom);
154
+ const maxOff = Math.max(0, total - h);
152
155
  const off = Math.max(0, Math.min(state.scrollOffset + delta, maxOff));
153
156
  if (off === state.scrollOffset)
154
157
  return;
@@ -188,6 +191,41 @@ export function lockScrollToBottom(ms = SCROLL_LOCK_MS) {
188
191
  export function unlockScroll() {
189
192
  state.scrollLockUntil = 0;
190
193
  }
194
+ /**
195
+ * 设置向上菜单对内容区**底部**的预留行数(介入面板专用)。
196
+ * - rows > 0:正文视口压缩为 contentBottom-rows 行,整体重排到菜单上沿之上,菜单不再盖住正文;
197
+ * - rows = 0:菜单关闭,恢复满内容区。
198
+ * 仅在数值变化时重画正文(↑↓ 导航若菜单高度不变无需重排),避免每帧整屏闪烁。
199
+ * 预留区里被腾出来的行(rows 变小/归零时新增可见的行)由本函数用清行 + 重画补齐,
200
+ * 调用方随后 paintInput 把菜单画在预留区内。
201
+ */
202
+ export function setMenuReserve(rows) {
203
+ if (!state.active)
204
+ return;
205
+ const g = getGeo();
206
+ const clamped = Math.max(0, Math.min(rows, g.contentBottom - 1));
207
+ if (clamped === state.menuReserveRows)
208
+ return;
209
+ const prev = state.menuReserveRows;
210
+ state.menuReserveRows = clamped;
211
+ // 预留变小(菜单缩短/关闭):旧菜单区里 [新上沿+1 .. 旧上沿] 这几行需要先清掉旧菜单残留,
212
+ // 再由 repaintViewport 用正文重画;repaintViewport 只画到新上沿,故这里先清再画。
213
+ if (clamped < prev) {
214
+ const newBottom = g.contentBottom - clamped;
215
+ const oldBottom = g.contentBottom - prev;
216
+ let p = '';
217
+ for (let r = newBottom + 1; r <= oldBottom; r++)
218
+ p += cup(r, 1) + esc.clearLine;
219
+ if (p)
220
+ stdout.write(p);
221
+ }
222
+ // 滚动偏移可能超过压缩视口的新上限:钳回,避免顶部出现空窗。
223
+ const h = g.contentBottom - clamped;
224
+ const maxOff = Math.max(0, content.totalRows() - h);
225
+ if (state.scrollOffset > maxOff)
226
+ state.scrollOffset = maxOff;
227
+ repaintViewport();
228
+ }
191
229
  /** 轮首滚动锁是否生效(测试用)。 */
192
230
  export function isScrollLocked() {
193
231
  return Date.now() < state.scrollLockUntil;
@@ -84,6 +84,14 @@ export const state = {
84
84
  lastView: null,
85
85
  lastMenuStartRow: 0, // 上次菜单起始屏行(供擦除)
86
86
  lastMenuRows: 0,
87
+ /**
88
+ * 当前向上菜单占用内容区**底部**的物理行数(paintInput 画菜单期间 >0)。
89
+ * 介入面板(ask_human / 权限)在 RUNNING 态弹出时,最关键的命令/diff/ask_human 行
90
+ * 恰好位于内容区底——若菜单直接盖上去,用户看不到决策依据。该值让视口有效高度
91
+ * 收缩为 contentBottom - menuReserveRows:正文重排到菜单上沿之上,二者不重叠;
92
+ * 面板内 PgUp/滚轮也只在压缩后的视口里滚动。菜单关闭复位 0,repaintViewport 全量恢复。
93
+ */
94
+ menuReserveRows: 0,
87
95
  /** 上次画过输入框的 lastView 签名(lines 数 + 每行 display_w 累加);变了说明 prompt.ts 改了文本 → 选区锚点失效,清掉。 */
88
96
  lastInputSig: '',
89
97
  pasteHandler: null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mocode-ai",
3
- "version": "1.8.8",
3
+ "version": "1.8.9",
4
4
  "description": "终端编码 agent:LLM + tool-call 循环 + 流式输出(含思考)+ 27 个工具,接任意 OpenAI 兼容后端。",
5
5
  "type": "module",
6
6
  "bin": {