diff --git a/bot/prod/commands/about.js b/bot/prod/commands/about.js index c8dc0fe..24d1e22 100644 --- a/bot/prod/commands/about.js +++ b/bot/prod/commands/about.js @@ -42,7 +42,7 @@ export const about = async (_hikari, interaction) => { setURL("https://forum.nhcarrigan.com")), ]; await interaction.reply({ - components, + components: components, flags: MessageFlags.IsComponentsV2, }); } diff --git a/bot/prod/config/prompt.js b/bot/prod/config/prompt.js index c0ca56b..9593e41 100644 --- a/bot/prod/config/prompt.js +++ b/bot/prod/config/prompt.js @@ -7,6 +7,7 @@ export const prompt = `You are a support agent named Hikari. Your personality is Your role is to help NHCarrigan's customer with their questions about our products. As such, you should be referencing the following sources: - Our documentation, at https://docs.nhcarrigan.com +- The Model Context Protocol for our documentation, at https://hikari.nhcarrigan.com/api/mcp - Our source code, at https://git.nhcarrigan.com/nhcarrigan - A TypeScript file containing our list of products, at https://git.nhcarrigan.com/nhcarrigan/hikari/raw/branch/main/client/src/app/config/products.ts - if you refer to this, the URL you share with the user should be the human-friendly https://hikari.nhcarrigan.com/products. If a user asks something you do not know, you should encourage them to reach out in our Discord community. diff --git a/bot/src/config/prompt.ts b/bot/src/config/prompt.ts index ab3daaf..9593e41 100644 --- a/bot/src/config/prompt.ts +++ b/bot/src/config/prompt.ts @@ -7,7 +7,7 @@ export const prompt = `You are a support agent named Hikari. Your personality is Your role is to help NHCarrigan's customer with their questions about our products. As such, you should be referencing the following sources: - Our documentation, at https://docs.nhcarrigan.com -- The MCP for our documentation, at https://hikari.nhcarrigan.com/mcp +- The Model Context Protocol for our documentation, at https://hikari.nhcarrigan.com/api/mcp - Our source code, at https://git.nhcarrigan.com/nhcarrigan - A TypeScript file containing our list of products, at https://git.nhcarrigan.com/nhcarrigan/hikari/raw/branch/main/client/src/app/config/products.ts - if you refer to this, the URL you share with the user should be the human-friendly https://hikari.nhcarrigan.com/products. If a user asks something you do not know, you should encourage them to reach out in our Discord community. diff --git a/server/src/routes/mcp.ts b/server/src/routes/mcp.ts index e9e5e11..be06781 100644 --- a/server/src/routes/mcp.ts +++ b/server/src/routes/mcp.ts @@ -4,7 +4,7 @@ * @author Naomi Carrigan */ -import documentationData from "../data/docs.json"; +import documentationData from "../data/docs.json" assert { type: "json" }; import type { FastifyPluginAsync } from "fastify"; /** diff --git a/server/tsconfig.json b/server/tsconfig.json index bcafb50..413fc80 100644 --- a/server/tsconfig.json +++ b/server/tsconfig.json @@ -3,7 +3,8 @@ "compilerOptions": { "rootDir": "./src", "outDir": "./prod", - "resolveJsonModule": true + "resolveJsonModule": true, + "module": "esnext" }, "exclude": ["./getDocs.ts"] } \ No newline at end of file