@jrpool/kilotest 30.0.0 → 30.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +6 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -212,6 +212,12 @@ const requestHandler = async (request, response) => {
|
|
|
212
212
|
setHeaders('text/html', '/index.html', 'medium');
|
|
213
213
|
response.end(homePage);
|
|
214
214
|
}
|
|
215
|
+
// Otherwise, if it is for the the AI plugin specification:
|
|
216
|
+
else if (pathname === '/.well-known/ai-plugin.json') {
|
|
217
|
+
const aiPlugin = await fs.readFile('.well-known/ai-plugin.json', 'utf8');
|
|
218
|
+
setHeaders('application/json', '/.well-known/ai-plugin.json', 'low');
|
|
219
|
+
response.end(aiPlugin);
|
|
220
|
+
}
|
|
215
221
|
// Otherwise, if it is for the the crawler specification:
|
|
216
222
|
else if (pageName === 'robots.txt') {
|
|
217
223
|
const robots = await fs.readFile('robots.txt', 'utf8');
|