@jrpool/kilotest 43.0.2 → 44.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 (62) hide show
  1. package/aceconfig.js +1 -1
  2. package/api/getReport.js +1 -1
  3. package/api/listDiagnoses.js +2 -2
  4. package/api/listIssues.js +4 -4
  5. package/api/listReports.js +3 -3
  6. package/api/listViolators.js +3 -3
  7. package/api/requestRetest.js +3 -3
  8. package/api/requestTest.js +3 -3
  9. package/docs/AI-TOOLS.md +2 -2
  10. package/docs/SERVICE.md +5 -5
  11. package/index.html +2 -2
  12. package/index.js +31 -30
  13. package/llms-full.txt +8 -8
  14. package/llms.txt +7 -7
  15. package/package.json +1 -1
  16. package/robots.txt +8 -8
  17. package/sitemap.xml +3 -3
  18. package/util.js +25 -25
  19. package/web/{testOrder → enqueue}/index.js +6 -4
  20. package/web/{recActionForm → enqueueForm}/index.html +1 -1
  21. package/web/{recActionForm → enqueueForm}/index.js +1 -1
  22. package/web/{reportsExpungeForm → expungeReportsForm}/index.html +1 -1
  23. package/web/{reportsExpungeForm → expungeReportsForm}/index.js +4 -4
  24. package/web/{reportHideForm → hideReportForm}/index.html +1 -1
  25. package/web/{diagnoses → listDiagnoses}/index.js +7 -5
  26. package/web/{reportIssues → listIssues}/index.html +1 -1
  27. package/web/{reportIssues → listIssues}/index.js +12 -12
  28. package/web/{targets → listReports}/index.html +1 -1
  29. package/web/{targets → listReports}/index.js +11 -11
  30. package/web/{rules → listRules}/index.js +1 -1
  31. package/web/{issues → listTopIssues}/index.js +4 -4
  32. package/web/{reportIssue → listViolators}/index.js +6 -6
  33. package/web/manage/index.html +7 -7
  34. package/web/manage/index.js +1 -1
  35. package/web/{reportsPruneForm → pruneReportsForm}/index.html +1 -1
  36. package/web/{reportsPruneForm → pruneReportsForm}/index.js +4 -4
  37. package/web/reannotate/index.js +1 -1
  38. package/web/reannotateForm/index.js +11 -11
  39. package/web/{wcagRenew → renewWCAG}/index.js +1 -1
  40. package/web/{wcagRenewForm → renewWCAGForm}/index.html +1 -1
  41. package/web/{retestRec → requestRetest}/index.html +1 -1
  42. package/web/{retestRec → requestRetest}/index.js +4 -5
  43. package/web/{retestRecForm → requestRetestForm}/index.html +2 -2
  44. package/web/{retestRecForm → requestRetestForm}/index.js +1 -1
  45. package/web/{testRec → requestTest}/index.html +1 -1
  46. package/web/{testRec → requestTest}/index.js +5 -6
  47. package/web/{testRecForm → requestTestForm}/index.html +1 -1
  48. package/web/{testRecForm → requestTestForm}/index.js +2 -3
  49. package/web/{reportsRewindForm → rewindReportsForm}/index.html +1 -1
  50. package/web/{reportsRewindForm → rewindReportsForm}/index.js +4 -4
  51. package/web/tutorial/index.html +1 -1
  52. package/web/tutorial/index.js +1 -1
  53. package/web/{reportUnhideForm → unhideReportForm}/index.html +1 -1
  54. /package/web/{testOrder → enqueue}/index.html +0 -0
  55. /package/web/{reportHideForm → hideReportForm}/index.js +0 -0
  56. /package/web/{diagnoses → listDiagnoses}/index.html +0 -0
  57. /package/web/{rules → listRules}/index.html +0 -0
  58. /package/web/{issues → listTopIssues}/index.html +0 -0
  59. /package/web/{reportIssue → listViolators}/index.html +0 -0
  60. /package/web/{wcagRenew → renewWCAG}/index.html +0 -0
  61. /package/web/{wcagRenewForm → renewWCAGForm}/index.js +0 -0
  62. /package/web/{reportUnhideForm → unhideReportForm}/index.js +0 -0
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  index.js
3
- Answers the test question.
3
+ Serves a form for requesting a test.
4
4
  */
5
5
 
6
6
  // IMPORTS
@@ -10,9 +10,8 @@ const path = require('path');
10
10
 
11
11
  // FUNCTIONS
12
12
 
13
- // Returns a test recommendation form.
14
13
  exports.answer = async () => {
15
- // Get the recommendation form template.
14
+ // Get the test request form template.
16
15
  let answerPage = await fs.readFile(path.join(__dirname, 'index.html'), 'utf8');
17
16
  // Return it.
18
17
  return {
@@ -14,7 +14,7 @@
14
14
  <main>
15
15
  <h1><a href="/">Kilotest</a>: Rewind reports</h1>
16
16
  <p>__intro__</p>
17
- <form action="/reportsRewindForm.html">
17
+ <form action="/rewindReportsForm.html">
18
18
  <fieldset>
19
19
  <legend>Reports</legend>
20
20
  __reports__
@@ -52,7 +52,7 @@ exports.answer = async (_, search) => {
52
52
  const [timeStamp, jobID] = reportName.slice(0, -5).split('-');
53
53
  // Get a summary of it.
54
54
  const reportFacts = await getReportData(timeStamp, jobID);
55
- const {error, issueCount, preventedToolCount, url} = reportFacts;
55
+ const {error, issueCount, preventedEngineCount, url} = reportFacts;
56
56
  // If this failed:
57
57
  if (error) {
58
58
  // Return why.
@@ -65,7 +65,7 @@ exports.answer = async (_, search) => {
65
65
  timeStamp,
66
66
  jobID,
67
67
  issueCount,
68
- preventedToolCount,
68
+ preventedEngineCount,
69
69
  url
70
70
  });
71
71
  }
@@ -81,9 +81,9 @@ exports.answer = async (_, search) => {
81
81
  let anyDeletable = false;
82
82
  // For each summary:
83
83
  reportSpecs.forEach((spec, index) => {
84
- const {timeStamp, jobID, issueCount, preventedToolCount, url} = spec;
84
+ const {timeStamp, jobID, issueCount, preventedEngineCount, url} = spec;
85
85
  const jobName = `${timeStamp}-${jobID}`;
86
- const specString = `<code>${url}</code> (<code>${jobName}</code>): preventions ${preventedToolCount}, issues ${issueCount}`;
86
+ const specString = `<code>${url}</code> (<code>${jobName}</code>): preventions ${preventedEngineCount}, issues ${issueCount}`;
87
87
  // If its report is the latest report on a target with at least 2 reports:
88
88
  if (reportSpecs[index - 1]?.url === url && reportSpecs[index + 1]?.url !== url) {
89
89
  // Add a line with a deletion checkbox.
@@ -419,7 +419,7 @@
419
419
  <p>In this practicum, which rule engines discovered both <code>autocomplete</code> defects?</p>
420
420
  <ol>
421
421
  <li><label><input type="radio" name="q4" value="a"> All 10 rule engines</label></li>
422
- <li><label><input type="radio" name="q4" value="b"> Six of the rule engines></li>
422
+ <li><label><input type="radio" name="q4" value="b"> Six of the rule engines</label></li>
423
423
  <li><label><input type="radio" name="q4" value="c"> Only Testaro and HTML CodeSniffer</label></li>
424
424
  <li><label><input type="radio" name="q4" value="d"> None of the rule engines</label></li>
425
425
  </ol>
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  index.js
3
- Answers the tutorial request and saves tutorial comments.
3
+ Serves the tutorial and saves tutorial comments.
4
4
  */
5
5
 
6
6
  // IMPORTS
@@ -14,7 +14,7 @@
14
14
  <main>
15
15
  <h1><a href="/">Kilotest</a>: Declassify report as experimental</h1>
16
16
  <p>Choose a report to declassify as experimental.</p>
17
- <form action="/reportUnhideForm.html">
17
+ <form action="/unhideReportForm.html">
18
18
  <fieldset>
19
19
  <legend>Reports</legend>
20
20
  __reports__
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes