@esthernandez/vibe-doc 0.3.1 → 0.3.2

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vibe-doc",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "AI-powered documentation gap analyzer. Scans your codebase, classifies your project, identifies missing technical documentation, and generates professional docs from your existing artifacts.",
5
5
  "author": {
6
6
  "name": "626Labs LLC"
package/dist/index.js CHANGED
@@ -37,10 +37,14 @@ var __importStar = (this && this.__importStar) || (function () {
37
37
  return result;
38
38
  };
39
39
  })();
40
+ var __importDefault = (this && this.__importDefault) || function (mod) {
41
+ return (mod && mod.__esModule) ? mod : { "default": mod };
42
+ };
40
43
  Object.defineProperty(exports, "__esModule", { value: true });
41
44
  const path = __importStar(require("path"));
42
45
  const fs = __importStar(require("fs"));
43
46
  const commander_1 = require("commander");
47
+ const update_notifier_1 = __importDefault(require("update-notifier"));
44
48
  const logger_1 = require("./utils/logger");
45
49
  const scanner_1 = require("./scanner");
46
50
  const state_1 = require("./state");
@@ -51,7 +55,21 @@ const templates_1 = require("./templates");
51
55
  const extractor_1 = require("./generator/extractor");
52
56
  const program = new commander_1.Command();
53
57
  const pkgJsonPath = path.resolve(__dirname, '..', 'package.json');
54
- const pkgVersion = JSON.parse(fs.readFileSync(pkgJsonPath, 'utf-8')).version;
58
+ const pkgContents = JSON.parse(fs.readFileSync(pkgJsonPath, 'utf-8'));
59
+ const pkgVersion = pkgContents.version;
60
+ // Check npm registry for a newer version of vibe-doc once per day.
61
+ // Runs in the background, non-blocking. If a newer version is available,
62
+ // update-notifier prints a boxed message on the NEXT invocation.
63
+ // Respects the NO_UPDATE_NOTIFIER env var and CI environments.
64
+ try {
65
+ (0, update_notifier_1.default)({
66
+ pkg: { name: pkgContents.name, version: pkgVersion },
67
+ updateCheckInterval: 1000 * 60 * 60 * 24, // 24 hours
68
+ }).notify({ defer: true, isGlobal: true });
69
+ }
70
+ catch {
71
+ // update-notifier failures should never block CLI usage — silently ignore
72
+ }
55
73
  program
56
74
  .name('vibe-doc')
57
75
  .description('AI-powered documentation gap analyzer for any codebase')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esthernandez/vibe-doc",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "AI-powered documentation gap analyzer and generator for modern codebases. Scans your project, classifies your architecture, and generates professional docs from your existing artifacts.",
5
5
  "author": "626Labs LLC",
6
6
  "license": "MIT",
@@ -39,17 +39,19 @@
39
39
  },
40
40
  "dependencies": {
41
41
  "commander": "^11.1.0",
42
- "simple-git": "^3.22.0",
43
- "fast-glob": "^3.3.2",
44
- "docx": "^8.5.0",
45
42
  "diff": "^5.1.0",
46
- "marked": "^11.1.1"
43
+ "docx": "^8.5.0",
44
+ "fast-glob": "^3.3.2",
45
+ "marked": "^11.1.1",
46
+ "simple-git": "^3.22.0",
47
+ "update-notifier": "^7.3.1"
47
48
  },
48
49
  "devDependencies": {
49
- "typescript": "^5.3.3",
50
- "tsx": "^4.7.0",
50
+ "@types/diff": "^5.0.9",
51
51
  "@types/node": "^20.10.6",
52
- "@types/diff": "^5.0.9"
52
+ "@types/update-notifier": "^6.0.8",
53
+ "tsx": "^4.7.0",
54
+ "typescript": "^5.3.3"
53
55
  },
54
56
  "engines": {
55
57
  "node": ">=18.0.0"