@neuralaxis/vibedoctor 0.1.1 → 0.1.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.
Files changed (49) hide show
  1. package/README.md +203 -290
  2. package/dist/adapters/customDeadChain.d.ts +2 -1
  3. package/dist/adapters/customDeadChain.js +100 -8
  4. package/dist/adapters/customLeftovers.js +33 -10
  5. package/dist/adapters/index.d.ts +3 -0
  6. package/dist/adapters/index.js +7 -1
  7. package/dist/adapters/jscpd.d.ts +1 -0
  8. package/dist/adapters/jscpd.js +10 -1
  9. package/dist/adapters/presidio.d.ts +2 -0
  10. package/dist/adapters/presidio.js +158 -0
  11. package/dist/adapters/privacyDetector.d.ts +10 -0
  12. package/dist/adapters/privacyDetector.js +600 -0
  13. package/dist/adapters/telemetryDetector.d.ts +2 -0
  14. package/dist/adapters/telemetryDetector.js +118 -0
  15. package/dist/agentPack/generateAgentPack.d.ts +7 -0
  16. package/dist/agentPack/generateAgentPack.js +89 -1
  17. package/dist/agentPack/templates/index.js +14 -11
  18. package/dist/agentPack/templates/skills.js +47 -0
  19. package/dist/cli/commands/agent.d.ts +5 -0
  20. package/dist/cli/commands/agent.js +10 -0
  21. package/dist/cli/commands/init.js +38 -13
  22. package/dist/cli/commands/privacyReview.d.ts +9 -0
  23. package/dist/cli/commands/privacyReview.js +304 -0
  24. package/dist/cli/commands/scan.js +27 -1
  25. package/dist/cli/commands/setup.js +13 -0
  26. package/dist/cli/index.js +24 -0
  27. package/dist/core/config.d.ts +23 -0
  28. package/dist/core/config.js +114 -5
  29. package/dist/core/engine.d.ts +3 -0
  30. package/dist/core/engine.js +31 -9
  31. package/dist/core/finding.d.ts +16 -2
  32. package/dist/core/finding.js +5 -0
  33. package/dist/core/paths.js +5 -0
  34. package/dist/core/privacyReview.d.ts +51 -0
  35. package/dist/core/privacyReview.js +94 -0
  36. package/dist/core/projectDetector.js +6 -1
  37. package/dist/core/scanPlanner.js +4 -0
  38. package/dist/core/scoring.js +6 -0
  39. package/dist/index.d.ts +2 -0
  40. package/dist/index.js +5 -0
  41. package/dist/mcp/tools/shared.d.ts +1 -1
  42. package/dist/reporters/html.js +8 -6
  43. package/dist/reporters/json.js +3 -5
  44. package/dist/reporters/markdown.js +7 -0
  45. package/dist/reporters/sarif.js +6 -0
  46. package/dist/reporters/terminal.js +1 -5
  47. package/dist/rules/severityMap.d.ts +1 -0
  48. package/dist/rules/severityMap.js +1 -0
  49. package/package.json +1 -1
@@ -0,0 +1,118 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.telemetryDetectorAdapter = void 0;
7
+ const node_path_1 = __importDefault(require("node:path"));
8
+ const paths_1 = require("../core/paths");
9
+ exports.telemetryDetectorAdapter = {
10
+ id: "telemetry-detector",
11
+ category: "privacy",
12
+ async detect(_project, config) {
13
+ return config.checks.privacy.enabled && config.checks.privacy.detectTelemetryOptOut;
14
+ },
15
+ async runStandalone(ctx) {
16
+ const findings = [];
17
+ const packageFiles = ctx.project.projectFiles.filter((f) => node_path_1.default.basename(f) === "package.json");
18
+ let hasTelemetryFramework = false;
19
+ let targetPackageJson = "package.json";
20
+ for (const file of packageFiles) {
21
+ const content = await (0, paths_1.readTextIfExists)(node_path_1.default.join(ctx.root, file));
22
+ if (!content) {
23
+ continue;
24
+ }
25
+ try {
26
+ const pkg = JSON.parse(content);
27
+ const deps = {
28
+ ...(pkg.dependencies ?? {}),
29
+ ...(pkg.devDependencies ?? {})
30
+ };
31
+ if ("next" in deps || "gatsby" in deps || "gatsby-cli" in deps) {
32
+ hasTelemetryFramework = true;
33
+ targetPackageJson = file;
34
+ break;
35
+ }
36
+ }
37
+ catch {
38
+ // Ignore malformed package.json files
39
+ }
40
+ }
41
+ if (!hasTelemetryFramework) {
42
+ return { findings };
43
+ }
44
+ // Check if .env or .env.local disables telemetry
45
+ const envFiles = [".env", ".env.local", ".env.development", ".env.production"];
46
+ let isOptedOut = false;
47
+ for (const envFile of envFiles) {
48
+ const content = await (0, paths_1.readTextIfExists)(node_path_1.default.join(ctx.root, envFile));
49
+ if (!content) {
50
+ continue;
51
+ }
52
+ const hasNextDisabled = /^\s*NEXT_TELEMETRY_DISABLED\s*=\s*1\s*$/m.test(content);
53
+ const hasDoNotTrack = /^\s*DO_NOT_TRACK\s*=\s*1\s*$/m.test(content);
54
+ // If either environment variable disables it in any .env file, we consider it configured
55
+ if (hasNextDisabled || hasDoNotTrack) {
56
+ isOptedOut = true;
57
+ break;
58
+ }
59
+ }
60
+ // Also check current process env as a fallback
61
+ if (process.env.NEXT_TELEMETRY_DISABLED === "1" || process.env.DO_NOT_TRACK === "1") {
62
+ isOptedOut = true;
63
+ }
64
+ if (!isOptedOut) {
65
+ findings.push({
66
+ id: `privacy:telemetry:opt-out`,
67
+ source: "telemetry-detector",
68
+ category: "privacy",
69
+ severity: "low",
70
+ confidence: "high",
71
+ title: "Telemetry enabled in project dependencies",
72
+ message: "Next.js or Gatsby is installed, but telemetry opt-out variables are not configured in your .env files.",
73
+ file: targetPackageJson,
74
+ isNew: true,
75
+ isAutofixable: true,
76
+ safeToAutofix: true,
77
+ agentInstruction: "Add 'NEXT_TELEMETRY_DISABLED=1' and 'DO_NOT_TRACK=1' to your root .env file.",
78
+ tags: ["privacy", "telemetry", "opt-out"],
79
+ evidence: {
80
+ detector: "telemetry-detector",
81
+ reasons: ["Telemetry-heavy package detected in package.json", "No opt-out configuration found in .env files"]
82
+ },
83
+ scoreImpact: 5
84
+ });
85
+ }
86
+ return { findings };
87
+ },
88
+ buildFixCommand(ctx) {
89
+ const escapedRoot = ctx.root.replace(/\\/g, "\\\\");
90
+ const script = [
91
+ "const fs = require('node:fs');",
92
+ "const path = require('node:path');",
93
+ `const envPath = path.join('${escapedRoot}', '.env');`,
94
+ "let content = '';",
95
+ "if (fs.existsSync(envPath)) {",
96
+ " content = fs.readFileSync(envPath, 'utf8');",
97
+ "}",
98
+ "const varsToAdd = [];",
99
+ "if (!content.includes('NEXT_TELEMETRY_DISABLED=')) {",
100
+ " varsToAdd.push('NEXT_TELEMETRY_DISABLED=1');",
101
+ "}",
102
+ "if (!content.includes('DO_NOT_TRACK=')) {",
103
+ " varsToAdd.push('DO_NOT_TRACK=1');",
104
+ "}",
105
+ "if (varsToAdd.length > 0) {",
106
+ " const prefix = content && !content.endsWith('\\n') ? '\\n' : '';",
107
+ " fs.appendFileSync(envPath, prefix + varsToAdd.join('\\n') + '\\n', 'utf8');",
108
+ " console.log('Successfully enabled telemetry opt-out in .env');",
109
+ "}"
110
+ ].join(" ");
111
+ return {
112
+ cmd: "node",
113
+ args: ["-e", script],
114
+ cwd: ctx.root
115
+ };
116
+ },
117
+ installHint: "Built-in telemetry opt-out detector. No external install needed."
118
+ };
@@ -1,5 +1,7 @@
1
1
  export declare const AGENT_TARGETS: readonly ["codex", "copilot", "claude", "cursor"];
2
+ export declare const AGENT_PLUGIN_TARGETS: readonly ["codex", "claude"];
2
3
  export type AgentTarget = (typeof AGENT_TARGETS)[number];
4
+ export type AgentPluginTarget = (typeof AGENT_PLUGIN_TARGETS)[number];
3
5
  export type AgentPackManifest = {
4
6
  version: number;
5
7
  generatedBy: string;
@@ -29,6 +31,11 @@ export type AgentPackDoctorResult = {
29
31
  };
30
32
  export declare function loadAgentPackManifest(root: string): Promise<AgentPackManifest | undefined>;
31
33
  export declare function parseAgentTargets(value: string | undefined, defaultTargets?: AgentTarget[]): AgentTarget[];
34
+ export declare function parseAgentPluginTargets(value: string | undefined, defaultTargets?: AgentPluginTarget[]): AgentPluginTarget[];
35
+ export declare function generateAgentPluginBundle(root: string, options: {
36
+ targets: AgentPluginTarget[];
37
+ force?: boolean;
38
+ }): Promise<AgentPackApplyResult>;
32
39
  export declare function generateCanonicalAgentPack(root: string, options: {
33
40
  targets: AgentTarget[];
34
41
  force?: boolean;
@@ -3,9 +3,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.AGENT_TARGETS = void 0;
6
+ exports.AGENT_PLUGIN_TARGETS = exports.AGENT_TARGETS = void 0;
7
7
  exports.loadAgentPackManifest = loadAgentPackManifest;
8
8
  exports.parseAgentTargets = parseAgentTargets;
9
+ exports.parseAgentPluginTargets = parseAgentPluginTargets;
10
+ exports.generateAgentPluginBundle = generateAgentPluginBundle;
9
11
  exports.generateCanonicalAgentPack = generateCanonicalAgentPack;
10
12
  exports.syncAgentPack = syncAgentPack;
11
13
  exports.initAgentPack = initAgentPack;
@@ -17,6 +19,8 @@ const paths_1 = require("../core/paths");
17
19
  const policy_1 = require("./policy");
18
20
  const templates_1 = require("./templates");
19
21
  exports.AGENT_TARGETS = ["codex", "copilot", "claude", "cursor"];
22
+ exports.AGENT_PLUGIN_TARGETS = ["codex", "claude"];
23
+ const VIBEDOCTOR_PLUGIN_VERSION = "0.1.1";
20
24
  function toAbsolutePath(root, relativePath) {
21
25
  return node_path_1.default.join(root, ...relativePath.split("/"));
22
26
  }
@@ -26,6 +30,9 @@ function normalizeRelativePath(relativePath) {
26
30
  function uniqueTargets(targets) {
27
31
  return Array.from(new Set(targets));
28
32
  }
33
+ function uniquePluginTargets(targets) {
34
+ return Array.from(new Set(targets));
35
+ }
29
36
  function mergeApplyResults(...results) {
30
37
  return {
31
38
  created: Array.from(new Set(results.flatMap((result) => result.created))),
@@ -98,6 +105,50 @@ function buildManifest(targets) {
98
105
  function renderManifest(targets) {
99
106
  return `${JSON.stringify(buildManifest(targets), null, 2)}\n`;
100
107
  }
108
+ function renderCodexPluginManifest() {
109
+ return `${JSON.stringify({
110
+ name: "vibedoctor",
111
+ version: VIBEDOCTOR_PLUGIN_VERSION,
112
+ description: "Code-health, privacy review, and repair skills for VibeDoctor.",
113
+ author: {
114
+ name: "neuralaxis",
115
+ url: "https://github.com/neural-axis"
116
+ },
117
+ homepage: "https://github.com/neural-axis/VibeDoctor#readme",
118
+ repository: "https://github.com/neural-axis/VibeDoctor",
119
+ license: "GPL-3.0-or-later",
120
+ keywords: ["code-health", "static-analysis", "privacy-review", "agent-tools"],
121
+ skills: "./skills/",
122
+ interface: {
123
+ displayName: "VibeDoctor",
124
+ shortDescription: "Code-health skills for coding agents",
125
+ longDescription: "Run VibeDoctor scans, review Privacy Review findings, plan safe fixes, and diagnose CI or pull request health from reusable agent skills.",
126
+ developerName: "neuralaxis",
127
+ category: "Developer Tools",
128
+ capabilities: ["Read", "Write"],
129
+ websiteURL: "https://github.com/neural-axis/VibeDoctor",
130
+ defaultPrompt: [
131
+ "Use VibeDoctor to scan this repository.",
132
+ "Use VibeDoctor to review privacy findings.",
133
+ "Use VibeDoctor to repair this CI failure."
134
+ ],
135
+ brandColor: "#2563EB"
136
+ }
137
+ }, null, 2)}\n`;
138
+ }
139
+ function renderClaudePluginManifest() {
140
+ return `${JSON.stringify({
141
+ name: "vibedoctor",
142
+ description: "Code-health, privacy review, and repair skills for VibeDoctor.",
143
+ version: VIBEDOCTOR_PLUGIN_VERSION,
144
+ author: {
145
+ name: "neuralaxis"
146
+ },
147
+ homepage: "https://github.com/neural-axis/VibeDoctor#readme",
148
+ repository: "https://github.com/neural-axis/VibeDoctor",
149
+ license: "GPL-3.0-or-later"
150
+ }, null, 2)}\n`;
151
+ }
101
152
  async function loadAgentPackManifest(root) {
102
153
  const manifestPath = toAbsolutePath(root, ".vibedoctor/agent-pack.json");
103
154
  if (!(await (0, paths_1.pathExists)(manifestPath))) {
@@ -133,6 +184,43 @@ function parseAgentTargets(value, defaultTargets = ["codex"]) {
133
184
  }
134
185
  return uniqueTargets(parts);
135
186
  }
187
+ function parseAgentPluginTargets(value, defaultTargets = [...exports.AGENT_PLUGIN_TARGETS]) {
188
+ if (!value) {
189
+ return uniquePluginTargets(defaultTargets);
190
+ }
191
+ const parts = value
192
+ .split(",")
193
+ .map((item) => item.trim().toLowerCase())
194
+ .filter(Boolean);
195
+ if (parts.includes("all")) {
196
+ return [...exports.AGENT_PLUGIN_TARGETS];
197
+ }
198
+ const invalid = parts.filter((target) => !exports.AGENT_PLUGIN_TARGETS.includes(target));
199
+ if (invalid.length > 0) {
200
+ throw new Error(`Unsupported agent plugin target(s): ${invalid.join(", ")}`);
201
+ }
202
+ return uniquePluginTargets(parts);
203
+ }
204
+ async function generateAgentPluginBundle(root, options) {
205
+ const targets = uniquePluginTargets(options.targets);
206
+ const files = templates_1.AGENT_SKILLS.map((skill) => ({
207
+ path: `plugins/vibedoctor/skills/${skill.name}/SKILL.md`,
208
+ content: skill.content
209
+ }));
210
+ if (targets.includes("codex")) {
211
+ files.push({
212
+ path: "plugins/vibedoctor/.codex-plugin/plugin.json",
213
+ content: renderCodexPluginManifest()
214
+ });
215
+ }
216
+ if (targets.includes("claude")) {
217
+ files.push({
218
+ path: "plugins/vibedoctor/.claude-plugin/plugin.json",
219
+ content: renderClaudePluginManifest()
220
+ });
221
+ }
222
+ return writeManagedFiles(root, files, { force: options.force });
223
+ }
136
224
  async function generateCanonicalAgentPack(root, options) {
137
225
  const files = [
138
226
  { path: "AGENTS.md", content: (0, templates_1.renderAgentsMd)() },
@@ -38,20 +38,22 @@ Always fix in this order:
38
38
  1. security blockers
39
39
  2. failing tests
40
40
  3. type errors
41
- 4. dependency vulnerabilities
42
- 5. high-confidence dead code
43
- 6. leftovers and legacy baggage
44
- 7. refactor-readiness items
45
- 8. efficiency suggestions
41
+ 4. dependency vulnerabilities
42
+ 5. Privacy Review findings with regulated identifiers or sensitive attributes
43
+ 6. high-confidence dead code
44
+ 7. leftovers and legacy baggage
45
+ 8. refactor-readiness items
46
+ 9. efficiency suggestions
46
47
 
47
48
  ## Safety rules
48
49
 
49
50
  - Do not delete dead code unless VibeDoctor marks it high confidence and you independently verify no active references.
50
51
  - Do not remove backward compatibility code unless the user explicitly approves or the path is proven unused.
51
- - Do not refactor large files without tests.
52
- - Do not change public APIs during cleanup unless the task explicitly asks.
53
- - Do not lower test, lint, security, or coverage thresholds.
54
- - Do not silence VibeDoctor findings without explaining why.
52
+ - Do not refactor large files without tests.
53
+ - Do not change public APIs during cleanup unless the task explicitly asks.
54
+ - Do not lower test, lint, security, or coverage thresholds.
55
+ - Do not send raw personal data to an AI service unless repository config and the user explicitly allow it.
56
+ - Do not silence VibeDoctor findings without explaining why.
55
57
  - Respect .vibedoctor/agent-policy.yml when it exists.
56
58
 
57
59
  ## Verification
@@ -82,7 +84,7 @@ Prefer:
82
84
  - \`vibedoctor fix --safe\` for safe cleanup
83
85
  - \`vibedoctor agent-plan --format markdown\` when planning multiple fixes
84
86
 
85
- Do not delete dead code, remove compatibility paths, or refactor large files unless VibeDoctor evidence and tests support it.
87
+ Do not delete dead code, remove compatibility paths, refactor large files, or send raw personal data to AI unless VibeDoctor evidence, repository policy, and user approval support it.
86
88
  `;
87
89
  }
88
90
  function renderCopilotInstructions() {
@@ -107,7 +109,8 @@ For pull requests, summarize:
107
109
  - tests run
108
110
  - remaining VibeDoctor findings
109
111
 
110
- Do not remove dead code, legacy fallbacks, compatibility shims, or large blocks of comments unless VibeDoctor marks them as high-confidence cleanup candidates and references are verified.
112
+ Do not remove dead code, legacy fallbacks, compatibility shims, or large blocks of comments unless VibeDoctor marks them as high-confidence cleanup candidates and references are verified.
113
+ Do not send raw personal data to external AI review unless the user explicitly approves and repository policy allows it.
111
114
  `;
112
115
  }
113
116
  function renderCursorMcpConfig() {
@@ -118,6 +118,53 @@ Report:
118
118
  - files changed
119
119
  - remaining blockers
120
120
  - verification result
121
+ `),
122
+ createSkill("vibedoctor-privacy-review", "Review VibeDoctor Privacy Review findings with masked evidence, deterministic scan output, and optional API-key adjudication. Use when asked to find PII, review personal data exposure, inspect shift-report data risk, or validate Privacy Review findings.", `
123
+ # VibeDoctor Privacy Review
124
+
125
+ Use this skill for personal-data and PII discovery findings.
126
+
127
+ ## Default workflow
128
+
129
+ 1. Run the deterministic privacy scan:
130
+
131
+ \`\`\`bash
132
+ vibedoctor scan --category privacy --report json
133
+ \`\`\`
134
+
135
+ 2. Read \`.vibedoctor/report.json\`, focusing on \`privacyFindings\`.
136
+
137
+ 3. Group findings into:
138
+ - confirmed regulated identifiers
139
+ - likely personal data
140
+ - combination-risk fields
141
+ - false positives or needs human review
142
+
143
+ 4. Use masked evidence only. Do not request raw values unless the user explicitly asks and the repository policy allows it.
144
+
145
+ ## Optional API-key review
146
+
147
+ Only run this command when \`checks.privacy.ai.enabled\` is true and the required env vars are configured:
148
+
149
+ \`\`\`bash
150
+ vibedoctor privacy-review --refresh --format markdown
151
+ \`\`\`
152
+
153
+ ## Review rules
154
+
155
+ - Keep secrets separate from PII; Gitleaks findings are handled by the security workflow.
156
+ - Treat medium-confidence Privacy Review findings as review candidates, not automatic truth.
157
+ - For regulated identifiers or sensitive attributes, recommend removal, anonymization, or controlled test fixtures.
158
+ - For combination risk, explain which fields create the re-identification risk together.
159
+
160
+ ## Output
161
+
162
+ Return:
163
+ - confirmed PII findings
164
+ - likely false positives
165
+ - evidence used
166
+ - recommended action
167
+ - whether API-key review was used
121
168
  `),
122
169
  createSkill("vibedoctor-dead-code-cleanup", "Review and clean high-confidence dead code chains, unused exports, unused files, unused dependencies, commented-out code, legacy fallbacks, and AI-created leftovers found by VibeDoctor. Use when asked to remove dead code, clean leftovers, reduce legacy baggage, or simplify AI-generated code.", `
123
170
  # VibeDoctor Dead Code Cleanup
@@ -13,6 +13,11 @@ export declare function runAgentSyncCommand(root: string, options: {
13
13
  targets?: string;
14
14
  force?: boolean;
15
15
  }): Promise<string>;
16
+ export declare function runAgentPluginCommand(root: string, options: {
17
+ target?: string;
18
+ targets?: string;
19
+ force?: boolean;
20
+ }): Promise<string>;
16
21
  export declare function runAgentDoctorCommand(root: string, options: {
17
22
  target?: string;
18
23
  targets?: string;
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.runAgentInitCommand = runAgentInitCommand;
4
4
  exports.runAgentPackCommand = runAgentPackCommand;
5
5
  exports.runAgentSyncCommand = runAgentSyncCommand;
6
+ exports.runAgentPluginCommand = runAgentPluginCommand;
6
7
  exports.runAgentDoctorCommand = runAgentDoctorCommand;
7
8
  const generateAgentPack_1 = require("../../agentPack/generateAgentPack");
8
9
  function formatFileSection(title, files) {
@@ -28,6 +29,10 @@ function resolveTargets(options, defaultTargets = ["codex"]) {
28
29
  const merged = options.target ? options.target : options.targets;
29
30
  return (0, generateAgentPack_1.parseAgentTargets)(merged, defaultTargets);
30
31
  }
32
+ function resolvePluginTargets(options, defaultTargets = ["codex", "claude"]) {
33
+ const merged = options.target ? options.target : options.targets;
34
+ return (0, generateAgentPack_1.parseAgentPluginTargets)(merged, defaultTargets);
35
+ }
31
36
  async function runAgentInitCommand(root, options) {
32
37
  const targets = resolveTargets(options);
33
38
  const result = await (0, generateAgentPack_1.initAgentPack)(root, { targets, force: options.force });
@@ -45,6 +50,11 @@ async function runAgentSyncCommand(root, options) {
45
50
  const result = await (0, generateAgentPack_1.syncAgentPack)(root, { targets, force: options.force });
46
51
  return formatApplyResult("VibeDoctor Agent Pack synced ✅", result);
47
52
  }
53
+ async function runAgentPluginCommand(root, options) {
54
+ const targets = resolvePluginTargets(options);
55
+ const result = await (0, generateAgentPack_1.generateAgentPluginBundle)(root, { targets, force: options.force });
56
+ return formatApplyResult("VibeDoctor Agent Plugin bundle generated ✅", result);
57
+ }
48
58
  async function runAgentDoctorCommand(root, options) {
49
59
  const manifest = await (0, generateAgentPack_1.loadAgentPackManifest)(root);
50
60
  const targets = resolveTargets(options, manifest?.targets ?? ["codex"]);
@@ -32,11 +32,19 @@ paths:
32
32
  - dist/**
33
33
  - build/**
34
34
  - .venv/**
35
- - coverage/**
36
- - .next/**
37
- - vendor/**
38
-
39
- baseline:
35
+ - coverage/**
36
+ - .next/**
37
+ - vendor/**
38
+ - .agents/**
39
+ - test/**
40
+ - tests/**
41
+ - "**/test/**"
42
+ - "**/tests/**"
43
+ - "**/*.test.*"
44
+ - "**/*.spec.*"
45
+ - "**/__tests__/**"
46
+
47
+ baseline:
40
48
  enabled: true
41
49
  file: .vibedoctor/baseline.json
42
50
  fail_only_on_new_issues: true
@@ -78,16 +86,33 @@ checks:
78
86
  min_coverage: 70
79
87
  min_changed_code_coverage: 80
80
88
 
81
- dependencies:
82
- enabled: true
83
- fail_on_missing_dependencies: true
84
- fail_on_new_direct_vulnerabilities: true
85
-
86
- output:
89
+ dependencies:
90
+ enabled: true
91
+ fail_on_missing_dependencies: true
92
+ fail_on_new_direct_vulnerabilities: true
93
+
94
+ privacy:
95
+ enabled: true
96
+ min_confidence_to_report: medium
97
+ mask_examples: true
98
+ max_file_bytes: 1048576
99
+ fail_on_regulated_identifiers: false
100
+ fail_on_sensitive_attributes: false
101
+ ai:
102
+ enabled: false
103
+ api_key_env: VIBEDOCTOR_AI_API_KEY
104
+ base_url_env: VIBEDOCTOR_AI_BASE_URL
105
+ model_env: VIBEDOCTOR_AI_MODEL
106
+ include_raw_values: false
107
+ presidio:
108
+ enabled: false
109
+
110
+ output:
87
111
  terminal: true
88
112
  json: .vibedoctor/report.json
89
- html: .vibedoctor/report.html
90
- agent: .vibedoctor/agent-plan.md
113
+ html: .vibedoctor/report.html
114
+ agent: .vibedoctor/agent-plan.md
115
+ privacy_review: .vibedoctor/privacy-review.json
91
116
  `;
92
117
  }
93
118
  async function runInit(root) {
@@ -0,0 +1,9 @@
1
+ type PrivacyReviewOptions = {
2
+ refresh?: boolean;
3
+ format?: "json" | "markdown";
4
+ };
5
+ export declare function runPrivacyReviewCommand(root: string, options?: PrivacyReviewOptions): Promise<{
6
+ output: string;
7
+ exitCode: number;
8
+ }>;
9
+ export {};