Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
ce3824b
style: standardize code formatting across frontend files
cyfyifanchen Dec 17, 2025
2bbd882
style(playground): fix code formatting and quote consistency
cyfyifanchen Dec 17, 2025
88dc6c2
refactor: clean up codebase with type imports and style improvements
cyfyifanchen Dec 17, 2025
847a6cc
ci: add frontend biome workflow and tasks
cyfyifanchen Dec 17, 2025
869c41c
ci: add CodeQL config file and update workflow
cyfyifanchen Dec 18, 2025
cf2e491
Merge remote-tracking branch 'upstream/main' into 1217-using-root-bom…
cyfyifanchen Dec 18, 2025
1c2d8b0
Merge branch 'main' into 1217-using-root-bomie-forntend-code
cyfyifanchen Dec 18, 2025
0c81684
Merge branch 'main' into 1217-using-root-bomie-forntend-code
cyfyifanchen Dec 19, 2025
246950a
style: fix formatting and remove trailing whitespace in multiple files
cyfyifanchen Dec 21, 2025
0e81d2c
fix: remove unnecessary ts-expect-error comment
cyfyifanchen Dec 21, 2025
1e8261a
refactor: reorder function declarations and useEffect hooks for consi…
cyfyifanchen Dec 21, 2025
c6cb624
Merge branch 'main' into 1217-using-root-bomie-forntend-code
cyfyifanchen Dec 21, 2025
080fdb4
Merge branch 'main' into 1217-using-root-bomie-forntend-code
cyfyifanchen Dec 23, 2025
a2d3049
Merge branch 'main' into 1217-using-root-bomie-forntend-code
plutoless Jan 1, 2026
2b8b8c4
Merge remote-tracking branch 'upstream/main' into 1217-using-root-bom…
cyfyifanchen Jan 16, 2026
92cd349
Merge branch '1217-using-root-bomie-forntend-code' of https://github.…
cyfyifanchen Jan 16, 2026
a9e96be
Merge remote-tracking branch 'upstream/main' into 1217-using-root-bom…
cyfyifanchen Jan 16, 2026
599c967
refactor: remove frontend biome config and related workflows
cyfyifanchen Jan 16, 2026
3766bad
Merge remote-tracking branch 'upstream/main' into 1217-using-root-bom…
cyfyifanchen Jan 16, 2026
05a821b
Merge branch 'main' into 1217-using-root-bomie-forntend-code
cyfyifanchen Jan 16, 2026
f0fa923
build: remove --webpack flag from next build command
cyfyifanchen Jan 16, 2026
57f164b
Merge branch '1217-using-root-bomie-forntend-code' of https://github.…
cyfyifanchen Jan 16, 2026
dc2a1e6
Merge branch 'main' into 1217-using-root-bomie-forntend-code
plutoless Jan 17, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion ai_agents/agents/examples/demo/frontend/components.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
"lib": "@/lib",
"hooks": "@/hooks"
}
}
}
48 changes: 27 additions & 21 deletions ai_agents/agents/examples/demo/frontend/next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
/** @type {import('next').NextConfig} */
import path from 'path'
import fs from 'fs'
import { fileURLToPath } from 'url'

import fs from "node:fs";
import path from "node:path";
import { fileURLToPath } from "node:url";

// Derive __dirname in ESM
const __filename = fileURLToPath(import.meta.url)
const __dirname = path.dirname(__filename)
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);

const nextConfig = {
// basePath: '/ai-agent',
// output: 'export',
output: 'standalone',
output: "standalone",
reactStrictMode: false,
webpack(config) {
// Grab the existing rule that handles SVG imports
const fileLoaderRule = config.module.rules.find((rule) =>
rule.test?.test?.('.svg'),
)
rule.test?.test?.(".svg")
);

config.module.rules.push(
// Reapply the existing rule, but only for svg imports ending in ?url
Expand All @@ -30,33 +31,38 @@ const nextConfig = {
test: /\.svg$/i,
issuer: fileLoaderRule.issuer,
resourceQuery: { not: [...fileLoaderRule.resourceQuery.not, /url/] }, // exclude if *.svg?url
use: ['@svgr/webpack'],
},
)
use: ["@svgr/webpack"],
}
);

// Modify the file loader rule to ignore *.svg, since we have it handled now.
fileLoaderRule.exclude = /\.svg$/i
fileLoaderRule.exclude = /\.svg$/i;

// Ensure TS path alias `@/*` resolves to `src/*` in webpack too
config.resolve = config.resolve || {}
config.resolve = config.resolve || {};
config.resolve.alias = {
...(config.resolve.alias || {}),
'@': path.resolve(__dirname, 'src'),
}
"@": path.resolve(__dirname, "src"),
};

// Debug logs to verify alias + file presence during CI builds
try {
const aliasPath = config.resolve.alias['@']
const utilPath = path.join(aliasPath, 'lib', 'utils.ts')
const aliasPath = config.resolve.alias["@"];
const utilPath = path.join(aliasPath, "lib", "utils.ts");
// eslint-disable-next-line no-console
console.log('[next.config] alias @ →', aliasPath, '| utils.ts exists =', fs.existsSync(utilPath))
console.log(
"[next.config] alias @ →",
aliasPath,
"| utils.ts exists =",
fs.existsSync(utilPath)
);
} catch (e) {
// eslint-disable-next-line no-console
console.log('[next.config] alias debug error:', e?.message)
console.log("[next.config] alias debug error:", e?.message);
}

return config
}
return config;
},
};

export default nextConfig;
2 changes: 1 addition & 1 deletion ai_agents/agents/examples/demo/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,4 @@
"typescript": "^5"
},
"packageManager": "[email protected]"
}
}
4 changes: 2 additions & 2 deletions ai_agents/agents/examples/demo/frontend/postcss.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ module.exports = {
viewportWidth: 375,
exclude: /node_modules/,
include: /\/src\/platform\/mobile\//,
}
},
},
}
};
Loading
Loading