mocode-ai 0.6.7 → 0.6.8
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/context/budget.js +2 -3
- package/package.json +1 -1
package/dist/context/budget.js
CHANGED
|
@@ -151,9 +151,8 @@ export function scheduleActions(report) {
|
|
|
151
151
|
actions.push({
|
|
152
152
|
kind: 'warn',
|
|
153
153
|
layer: 'system',
|
|
154
|
-
reason:
|
|
155
|
-
+
|
|
156
|
-
+ '系统提示偏高时检查 MOCODE.md;工具 schema 偏高时减少可用工具;CONTEXT_WINDOW_TOKENS 应匹配模型真实窗口。',
|
|
154
|
+
reason: `固定开销 ${actual}/${budget} (+${excess}, ${percent}%);`
|
|
155
|
+
+ `提示 ${prompt} + 工具 ${toolSchemas},×${report.correction.toFixed(2)}。`,
|
|
157
156
|
});
|
|
158
157
|
}
|
|
159
158
|
if ((layers.history.overBudget || totalOver)
|