@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.
Files changed (2) hide show
  1. package/index.js +6 -0
  2. 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');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jrpool/kilotest",
3
- "version": "30.0.0",
3
+ "version": "30.0.1",
4
4
  "description": "An ensemble testing service with a focus on accessibility",
5
5
  "main": "index.js",
6
6
  "scripts": {