@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.
- package/CHANGELOG.md +48 -1
- package/README.md +5 -5
- package/dist/cli/index.js +0 -0
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +1 -1
- package/dist/core/rules/build-context.js +36 -5
- package/dist/core/rules/context/generated-directory.js +33 -43
- package/dist/core/rules/ignore.d.ts +5 -0
- package/dist/core/rules/ignore.js +51 -9
- package/dist/core/rules/security/env-file-exposure.d.ts +6 -0
- package/dist/core/rules/security/env-file-exposure.js +78 -9
- package/dist/core/rules/security/private-key-file.js +10 -4
- package/dist/core/scanner/scan.js +6 -0
- package/dist/detectors/framework.d.ts +3 -0
- package/dist/detectors/framework.js +19 -9
- package/dist/detectors/language.d.ts +1 -0
- package/dist/detectors/language.js +7 -0
- package/dist/detectors/monorepo.d.ts +2 -1
- package/dist/detectors/monorepo.js +32 -1
- package/dist/detectors/package-manager.d.ts +7 -1
- package/dist/detectors/package-manager.js +147 -22
- package/dist/detectors/project.js +77 -17
- package/dist/detectors/python-deps.d.ts +6 -0
- package/dist/detectors/python-deps.js +55 -0
- package/dist/index.d.ts +1 -1
- package/dist/reporters/json/report.js +1 -0
- package/dist/reporters/terminal/report.js +37 -7
- package/dist/types/index.d.ts +12 -2
- package/package.json +4 -3
package/dist/types/index.d.ts
CHANGED
|
@@ -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.
|
|
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": [
|