@myassis/gateway 1.0.53 → 1.0.54

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.
@@ -152,6 +152,9 @@ const editTool = {
152
152
  },
153
153
  handler: async (args) => {
154
154
  try {
155
+ if (typeof args === 'string') {
156
+ return { success: false, errorMessage: `参数过大 (${(args.length / 1024).toFixed(1)}KB),大文件请分批进行edit 操作` };
157
+ }
155
158
  const { path: filePath, edits } = args;
156
159
  // ---- 参数校验 ----
157
160
  if (!filePath)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myassis/gateway",
3
- "version": "1.0.53",
3
+ "version": "1.0.54",
4
4
  "description": "我的助手 Gateway Service - 本地 AI 网关服务,支持认证、WebSocket 实时通信和任务调度",
5
5
  "main": "dist/index.js",
6
6
  "bin": {