@praneeth_54/agentdoctor 0.1.1-beta → 0.1.3-beta

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.
@@ -7,8 +7,8 @@ export type Severity = "critical" | "warning" | "info";
7
7
  export type RuleCategory = "security" | "context" | "instructions" | "mcp" | "performance" | "compatibility";
8
8
  export type LanguageId = "typescript" | "javascript" | "python" | "dart" | "php" | "go" | "rust" | "java" | "kotlin" | "unknown";
9
9
  export type FrameworkId = "nextjs" | "react" | "vue" | "nuxt" | "svelte" | "nodejs" | "express" | "nestjs" | "flutter" | "laravel" | "django" | "fastapi" | "unknown";
10
- export type PackageManagerId = "npm" | "pnpm" | "yarn" | "bun" | "composer" | "pip" | "poetry" | "cargo" | "gradle" | "unknown";
11
- export type MonorepoToolId = "npm-workspaces" | "pnpm-workspaces" | "turborepo" | "nx" | "none";
10
+ export type PackageManagerId = "npm" | "pnpm" | "yarn" | "bun" | "composer" | "pub" | "pip" | "poetry" | "cargo" | "gradle" | "unknown";
11
+ export type MonorepoToolId = "npm-workspaces" | "pnpm-workspaces" | "turborepo" | "nx" | "multi-project" | "none";
12
12
  export type AgentId = "cursor" | "claude-code" | "codex";
13
13
  export interface DiscoveredFile {
14
14
  /** Absolute path */
@@ -94,6 +94,11 @@ export interface ScanDiagnostics {
94
94
  warnings: string[];
95
95
  errors: string[];
96
96
  }
97
+ /**
98
+ * Whether agent-specific security exposure checks had enough agent configuration
99
+ * to run meaningfully. Additive field — absent consumers may ignore it.
100
+ */
101
+ export type AgentSecurityAnalysisMode = "full" | "limited";
97
102
  export interface ScanResult {
98
103
  version: string;
99
104
  repository: RepositoryInfo;
@@ -107,6 +112,11 @@ export interface ScanResult {
107
112
  scores: Scores | null;
108
113
  /** False until the readiness scoring model ships. */
109
114
  scoringAvailable: boolean;
115
+ /**
116
+ * `limited` when no supported coding agent is detected/configured.
117
+ * Repository-risk checks may still run; agent exposure claims are not asserted.
118
+ */
119
+ agentSecurityAnalysis: AgentSecurityAnalysisMode;
110
120
  timing: TimingInfo;
111
121
  diagnostics: ScanDiagnostics;
112
122
  }
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@praneeth_54/agentdoctor",
3
- "version": "0.1.1-beta",
3
+ "version": "0.1.3-beta",
4
4
  "description": "Audit AI coding agent configuration in a repository — local, deterministic, no API key.",
5
5
  "type": "module",
6
6
  "bin": {
7
- "agentdoctor": "dist/cli/index.js"
7
+ "agentdoctor": "./dist/cli/index.js"
8
8
  },
9
9
  "exports": {
10
10
  ".": {
@@ -24,7 +24,7 @@
24
24
  "node": ">=20"
25
25
  },
26
26
  "scripts": {
27
- "build": "tsc -p tsconfig.build.json",
27
+ "build": "tsc -p tsconfig.build.json && node scripts/ensure-cli-bin.mjs",
28
28
  "dev": "tsx src/cli/index.ts",
29
29
  "typecheck": "tsc -p tsconfig.json --noEmit && tsc -p tsconfig.build.json --noEmit",
30
30
  "lint": "eslint .",
@@ -34,6 +34,7 @@
34
34
  "test": "vitest run",
35
35
  "test:watch": "vitest",
36
36
  "verify": "npm run typecheck && npm run lint && npm run format:check && npm test && npm run build",
37
+ "prepare": "node scripts/ensure-cli-bin.mjs",
37
38
  "prepublishOnly": "npm run verify"
38
39
  },
39
40
  "keywords": [