feat: implement Azure Image Chooser tool with help content and empty tool placeholder

This commit is contained in:
2026-04-20 16:28:58 +02:00
parent f64f9bd3e8
commit 733ad9b6b8
8 changed files with 443 additions and 279 deletions

View File

@@ -37,6 +37,7 @@ const renderBody = z.object({
const makeApp = () => {
const app = express();
const port = Number.parseInt(process.env.PORT ?? "3000", 10);
const host = process.env.HOST ?? "0.0.0.0";
const subscriptionId = process.env.AZURE_SUBSCRIPTION_ID;
app.use(cors());
@@ -151,14 +152,14 @@ const makeApp = () => {
});
}
return { app, port };
return { app, port, host };
};
if (require.main === module) {
const { app, port } = makeApp();
const server = app.listen(port, () => {
const { app, port, host } = makeApp();
const server = app.listen(port, host, () => {
// eslint-disable-next-line no-console
console.log(`azure-image-chooser listening on ${port}`);
console.log(`azure-image-chooser listening on ${host}:${port}`);
});
let shuttingDown = false;