ai-search-auditor 0.1.2 → 0.1.4

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/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.1.4](https://github.com/a-bibikov/ai-search-audit/compare/v0.1.3...v0.1.4) (2026-11-03)
4
+
5
+
6
+ ### Internal
7
+
8
+ * release 0.1.4 ([2c8056d](https://github.com/a-bibikov/ai-search-audit/commit/2c8056d386588262362e66c5fce78726df9127d8))
9
+
10
+ ## [0.1.3](https://github.com/a-bibikov/ai-search-audit/compare/v0.1.2...v0.1.3) (2026-11-03)
11
+
12
+
13
+ ### Fixes
14
+
15
+ * CLI help names the npm package, --version flag ([31887fa](https://github.com/a-bibikov/ai-search-audit/commit/31887fada369eb41024f119b79359e5a98c03126))
16
+
3
17
  ## [0.1.2](https://github.com/a-bibikov/ai-search-audit/compare/v0.1.1...v0.1.2) (2026-11-03)
4
18
 
5
19
 
package/dist/cli.js CHANGED
@@ -2,11 +2,16 @@
2
2
  import { existsSync, readFileSync, writeFileSync, appendFileSync } from "node:fs";
3
3
  import { parseArgs } from "node:util";
4
4
  import { DEFAULT_LANG, LANGS, audit, isLang, rules, toMarkdown } from "./index.js";
5
- const HELP = `ai-search-audit — can ChatGPT, Claude and Perplexity read, understand and cite your site?
5
+ // package.json sits one level up both from src/cli.ts (development) and dist/cli.js (published package).
6
+ const { version } = JSON.parse(readFileSync(new URL("../package.json", import.meta.url), "utf8"));
7
+ const HELP = `ai-search-auditor ${version} — can ChatGPT, Claude and Perplexity read, understand and cite your site?
6
8
 
7
9
  Usage:
8
- ai-search-audit <url> [options]
9
- ai-search-audit llms-txt <url> check only llms.txt and llms-full.txt
10
+ ai-search-auditor <url> [options]
11
+ ai-search-auditor llms-txt <url> check only llms.txt and llms-full.txt
12
+
13
+ npm package: ai-search-auditor (npx ai-search-auditor, npm i -g ai-search-auditor).
14
+ After install the command also works as ai-search-audit.
10
15
 
11
16
  Options:
12
17
  --base <url> public origin when auditing a local build (links in sitemap point there)
@@ -16,6 +21,7 @@ Options:
16
21
  --json print the JSON report instead of Markdown
17
22
  --out <file> also write the report to a file (.json or .md)
18
23
  --config <file> config file (default: ai-search-audit.config.json if present)
24
+ -v, --version print the version
19
25
  -h, --help
20
26
 
21
27
  Examples:
@@ -34,8 +40,13 @@ const { values, positionals } = parseArgs({
34
40
  out: { type: "string" },
35
41
  config: { type: "string" },
36
42
  help: { type: "boolean", short: "h", default: false },
43
+ version: { type: "boolean", short: "v", default: false },
37
44
  },
38
45
  });
46
+ if (values.version) {
47
+ process.stdout.write(`${version}\n`);
48
+ process.exit(0);
49
+ }
39
50
  const llmsOnly = positionals[0] === "llms-txt";
40
51
  const target = llmsOnly ? positionals[1] : positionals[0];
41
52
  if (values.help || !target) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-search-auditor",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Checks whether AI search (ChatGPT, Claude, Perplexity, Google AI Overviews) can read, understand and cite your site: robots.txt for AI agents, text without JavaScript, JSON-LD authorship, llms.txt, freshness.",
5
5
  "keywords": [
6
6
  "ai search audit",