kryptheon 0.1.13 → 0.1.14

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/bin/kryptheon.js CHANGED
@@ -68,14 +68,14 @@ function usage() {
68
68
  console.log('');
69
69
  console.log(' kryptheon - record and check your app');
70
70
  console.log('');
71
- console.log(' kryptheon record <url> open your app and record what you do as a test');
72
- console.log(' kryptheon check run every recorded test and report in plain language');
73
- console.log(' kryptheon accept <name> agree that one test\'s new result is the correct one');
74
- console.log(' kryptheon remove [name] list the recordings, or remove one you no longer want');
75
- console.log(' kryptheon setup-ai tell your AI assistant to check its work');
71
+ console.log(' npx kryptheon record <url> open your app and record what you do as a test');
72
+ console.log(' npx kryptheon check run every recorded test and report in plain language');
73
+ console.log(' npx kryptheon accept <name> agree that one test\'s new result is the correct one');
74
+ console.log(' npx kryptheon remove [name] list the recordings, or remove one you no longer want');
75
+ console.log(' npx kryptheon setup-ai tell your AI assistant to check its work');
76
76
  console.log('');
77
77
  console.log(' add --quiet to check for one line when everything passes');
78
- console.log(' kryptheon --version print the version you have installed');
78
+ console.log(' npx kryptheon --version print the version you have installed');
79
79
  console.log('');
80
80
  }
81
81
 
@@ -603,7 +603,7 @@ function windowUndetectedLines(seconds) {
603
603
  ' so this is most likely the check being wrong rather than the browser.',
604
604
  '',
605
605
  ' If the window is open in front of you, run it again with the check off:',
606
- ' KRYPTHEON_FORCE_RECORD=1 kryptheon record <url>',
606
+ ' KRYPTHEON_FORCE_RECORD=1 npx kryptheon record <url>',
607
607
  '',
608
608
  ' If there is no window on screen, the browser may have opened somewhere',
609
609
  ' with no desktop to draw on - a remote session, a container, or an AI',
@@ -626,7 +626,7 @@ function probeUnclearLines(answered, unanswered) {
626
626
  ' machine under load, or security software holding up the check itself.',
627
627
  '',
628
628
  ' If the window is open in front of you, run it again with the check off:',
629
- ' KRYPTHEON_FORCE_RECORD=1 kryptheon record <url>',
629
+ ' KRYPTHEON_FORCE_RECORD=1 npx kryptheon record <url>',
630
630
  '',
631
631
  ' Otherwise just run the same command again.',
632
632
  '',
@@ -852,7 +852,7 @@ function reportSecrets(replacements) {
852
852
  console.log('');
853
853
  // Said plainly, because the alternative is signing in with a blank password
854
854
  // and spending an afternoon looking at the wrong thing.
855
- console.log(' Until that file exists, "kryptheon check" will skip this recording');
855
+ console.log(' Until that file exists, "npx kryptheon check" will skip this recording');
856
856
  console.log(' rather than sign in with a blank password.');
857
857
  console.log('');
858
858
  console.log(' Keep .env out of version control - it holds the real value.');
@@ -1253,7 +1253,7 @@ async function remove(name) {
1253
1253
  } else {
1254
1254
  listRecordings(names);
1255
1255
  if (!process.stdin.isTTY) {
1256
- console.log(" To remove one, run: kryptheon remove <name>");
1256
+ console.log(" To remove one, run: npx kryptheon remove <name>");
1257
1257
  console.log("");
1258
1258
  return 0;
1259
1259
  }
@@ -1270,7 +1270,7 @@ async function remove(name) {
1270
1270
  if (choice.action === "unclear") {
1271
1271
  console.error("");
1272
1272
  console.error(" " + choice.why + ": " + JSON.stringify(choice.said));
1273
- console.error(" Run \"kryptheon remove\" on its own to see the list.");
1273
+ console.error(" Run \"npx kryptheon remove\" on its own to see the list.");
1274
1274
  console.error("");
1275
1275
  return 1;
1276
1276
  }
@@ -1424,7 +1424,7 @@ async function record(url) {
1424
1424
  console.error(' Which address should I open?');
1425
1425
  console.error('');
1426
1426
  console.error(' Add the web address of your app, for example:');
1427
- console.error(' kryptheon record https://www.example.com');
1427
+ console.error(' npx kryptheon record https://www.example.com');
1428
1428
  console.error('');
1429
1429
  return 1;
1430
1430
  }
@@ -1666,7 +1666,7 @@ function check(options) {
1666
1666
  console.log('');
1667
1667
  console.log(' npm i -D kryptheon');
1668
1668
  console.log('');
1669
- console.log(' Then run "kryptheon check" again.');
1669
+ console.log(' Then run "npx kryptheon check" again.');
1670
1670
  console.log('');
1671
1671
  return 1;
1672
1672
  }
@@ -1701,7 +1701,7 @@ function check(options) {
1701
1701
  console.log(' Skipped ' + path.join('tests', name));
1702
1702
  console.log(' This is not a real recording - it only opens a page and stops,');
1703
1703
  console.log(' so it cannot tell you whether anything works.');
1704
- console.log(' Record it again: kryptheon record <url>');
1704
+ console.log(' Record it again: npx kryptheon record <url>');
1705
1705
  }
1706
1706
 
1707
1707
  if (!triage.runnable.length) {
@@ -1713,7 +1713,7 @@ function check(options) {
1713
1713
  console.log(' Create the .env file above and run this again.');
1714
1714
  } else {
1715
1715
  console.log(' None of the files in tests/ is a usable recording.');
1716
- console.log(' Record one with: kryptheon record <url>');
1716
+ console.log(' Record one with: npx kryptheon record <url>');
1717
1717
  }
1718
1718
  console.log('');
1719
1719
  return 1;
@@ -1906,7 +1906,7 @@ function listBaselines(api) {
1906
1906
  console.log('');
1907
1907
  if (!keys.length) {
1908
1908
  console.log(' No tests have a saved result yet.');
1909
- console.log(' Run "kryptheon check" once and they will be saved automatically.');
1909
+ console.log(' Run "npx kryptheon check" once and they will be saved automatically.');
1910
1910
  console.log('');
1911
1911
  return 0;
1912
1912
  }
@@ -1920,7 +1920,7 @@ function listBaselines(api) {
1920
1920
  }
1921
1921
  console.log('');
1922
1922
  console.log(' To agree that a new result is correct:');
1923
- console.log(' kryptheon accept "<name>"');
1923
+ console.log(' npx kryptheon accept "<name>"');
1924
1924
  console.log('');
1925
1925
  return 0;
1926
1926
  }
@@ -1939,7 +1939,7 @@ function accept(name) {
1939
1939
  if (!matches.length) {
1940
1940
  console.error('');
1941
1941
  console.error(' No saved result for a test called "' + name + '".');
1942
- console.error(' Run "kryptheon accept" on its own to see the names.');
1942
+ console.error(' Run "npx kryptheon accept" on its own to see the names.');
1943
1943
  console.error('');
1944
1944
  return 1;
1945
1945
  }
@@ -187,7 +187,7 @@ function noProjectLines(inspection) {
187
187
  lines.push(' Change into your project folder and run this again:');
188
188
  lines.push('');
189
189
  lines.push(' cd path\\to\\your\\project');
190
- lines.push(' kryptheon check');
190
+ lines.push(' npx kryptheon check');
191
191
  lines.push('');
192
192
  // The person with a web address and no folder at all - an app built in
193
193
  // Lovable - has no project to change into, and would be stuck on the line
@@ -215,7 +215,7 @@ function noRecordingsLines() {
215
215
  '',
216
216
  ' Record a flow through your app first:',
217
217
  '',
218
- ' kryptheon record http://localhost:3000',
218
+ ' npx kryptheon record http://localhost:3000',
219
219
  '',
220
220
  ' That opens a browser window, so it has to be run by a person in a',
221
221
  ' normal terminal - it cannot be done from an AI assistant.',
@@ -292,7 +292,7 @@ function translate(message) {
292
292
  hideSource: true,
293
293
  // %TEST% is filled in with the test's name when the block is printed,
294
294
  // so the command resets only this one test.
295
- advice: 'if this change is intended, run: kryptheon accept "%TEST%"',
295
+ advice: 'if this change is intended, run: npx kryptheon accept "%TEST%"',
296
296
  };
297
297
  }
298
298
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kryptheon",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
4
4
  "description": "Record what you do in your app and get plain-language reports when it breaks.",
5
5
  "license": "MIT",
6
6
  "type": "commonjs",