From 120825d3f1ed65f6cce4265f91655c553c58be44 Mon Sep 17 00:00:00 2001 From: LE Quoc Dat Date: Mon, 28 Jul 2025 22:36:13 +0200 Subject: [PATCH] =?UTF-8?q?AI:=200.910=20>=20suna@0.1.0=20build=200.910=20?= =?UTF-8?q?>=20next=20build=200.910=201.845=20=20=20=20=E2=96=B2=20Next.js?= =?UTF-8?q?=2015.3.3=201.845=20=20=20=20-=20Environments:=20.env.local=201?= =?UTF-8?q?.846=201.871=20=20=20=20Creating=20an=20optimized=20production?= =?UTF-8?q?=20build=20...=2043.91=20Failed=20to=20compile.=2043.91=2043.91?= =?UTF-8?q?=20./src/components/thread/tool-views/file-operation/=5Futils.t?= =?UTF-8?q?s=2043.91=20Module=20parse=20failed:=20Identifier=20'parseConte?= =?UTF-8?q?nt'=20has=20already=20been=20declared=20(243:6)=2043.91=20File?= =?UTF-8?q?=20was=20processed=20with=20these=20loaders:=2043.91=20=20*=20.?= =?UTF-8?q?/node=5Fmodules/next/dist/build/webpack/loaders/next-flight-cli?= =?UTF-8?q?ent-module-loader.js=2043.91=20=20*=20./node=5Fmodules/next/dis?= =?UTF-8?q?t/build/webpack/loaders/next-swc-loader.js=2043.91=20You=20may?= =?UTF-8?q?=20need=20an=20additional=20loader=20to=20handle=20the=20result?= =?UTF-8?q?=20of=20these=20loaders.=2043.91=20|=20=20=20=20=20};=2043.91?= =?UTF-8?q?=20|=20};=2043.91=20>=20const=20parseContent=20=3D=20(content)?= =?UTF-8?q?=3D>{=2043.91=20|=20=20=20=20=20if=20(typeof=20content=20=3D=3D?= =?UTF-8?q?=3D=20'string')=20{=2043.91=20|=20=20=20=20=20=20=20=20=20try?= =?UTF-8?q?=20{=2043.91=2043.91=20Import=20trace=20for=20requested=20modul?= =?UTF-8?q?e:=2043.91=20./src/components/thread/tool-views/file-operation/?= =?UTF-8?q?=5Futils.ts=2043.91=20./src/components/thread/tool-views/file-o?= =?UTF-8?q?peration/FileEditToolView.tsx=2043.91=20./src/components/thread?= =?UTF-8?q?/tool-views/wrapper/ToolViewRegistry.tsx=2043.91=20./src/compon?= =?UTF-8?q?ents/thread/tool-views/wrapper/index.ts=2043.91=20./src/compone?= =?UTF-8?q?nts/thread/tool-call-side-panel.tsx=2043.91=20./src/app/share/[?= =?UTF-8?q?threadId]/page.tsx=2043.91=2043.91=2043.91=20>=20Build=20failed?= =?UTF-8?q?=20because=20of=20webpack=20errors=2043.95=20npm=20notice=2043.?= =?UTF-8?q?95=20npm=20notice=20New=20major=20version=20of=20npm=20availabl?= =?UTF-8?q?e!=2010.9.2=20->=2011.5.1=2043.95=20npm=20notice=20Changelog:?= =?UTF-8?q?=20https://github.com/npm/cli/releases/tag/v11.5.1=2043.95=20np?= =?UTF-8?q?m=20notice=20To=20update=20run:=20npm=20install=20-g=20npm@11.5?= =?UTF-8?q?.1=2043.95=20npm=20notice=20------=20Dockerfile:45?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../thread/tool-views/file-operation/_utils.ts | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/frontend/src/components/thread/tool-views/file-operation/_utils.ts b/frontend/src/components/thread/tool-views/file-operation/_utils.ts index a762a347..a55a7003 100644 --- a/frontend/src/components/thread/tool-views/file-operation/_utils.ts +++ b/frontend/src/components/thread/tool-views/file-operation/_utils.ts @@ -320,18 +320,6 @@ export const extractFileEditData = ( return { filePath, originalContent, updatedContent, actualIsSuccess, actualToolTimestamp, actualAssistantTimestamp, errorMessage }; }; -const parseContent = (content: any): any => { - if (typeof content === 'string') { - try { - return JSON.parse(content); - } catch (e) { - return content; - } - } - return content; -}; - - export const getOperationType = (name?: string, assistantContent?: any): FileOperation => { if (name) { if (name.includes('create')) return 'create';