mirror of https://github.com/kortix-ai/suna.git
AI:
0.910 > suna@0.1.0 build 0.910 > next build 0.910 1.845 ▲ Next.js 15.3.3 1.845 - Environments: .env.local 1.846 1.871 Creating an optimized production build ... 43.91 Failed to compile. 43.91 43.91 ./src/components/thread/tool-views/file-operation/_utils.ts 43.91 Module parse failed: Identifier 'parseContent' has already been declared (243:6) 43.91 File was processed with these loaders: 43.91 * ./node_modules/next/dist/build/webpack/loaders/next-flight-client-module-loader.js 43.91 * ./node_modules/next/dist/build/webpack/loaders/next-swc-loader.js 43.91 You may need an additional loader to handle the result of these loaders. 43.91 | }; 43.91 | }; 43.91 > const parseContent = (content)=>{ 43.91 | if (typeof content === 'string') { 43.91 | try { 43.91 43.91 Import trace for requested module: 43.91 ./src/components/thread/tool-views/file-operation/_utils.ts 43.91 ./src/components/thread/tool-views/file-operation/FileEditToolView.tsx 43.91 ./src/components/thread/tool-views/wrapper/ToolViewRegistry.tsx 43.91 ./src/components/thread/tool-views/wrapper/index.ts 43.91 ./src/components/thread/tool-call-side-panel.tsx 43.91 ./src/app/share/[threadId]/page.tsx 43.91 43.91 43.91 > Build failed because of webpack errors 43.95 npm notice 43.95 npm notice New major version of npm available! 10.9.2 -> 11.5.1 43.95 npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.5.1 43.95 npm notice To update run: npm install -g npm@11.5.1 43.95 npm notice ------ Dockerfile:45
This commit is contained in:
parent
ef980353ba
commit
120825d3f1
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue