vibecop 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.
- package/package.json +2 -2
- package/dist/action/action/diff.d.ts +0 -26
- package/dist/action/action/diff.d.ts.map +0 -1
- package/dist/action/action/filter.d.ts +0 -17
- package/dist/action/action/filter.d.ts.map +0 -1
- package/dist/action/action/main.d.ts +0 -2
- package/dist/action/action/main.d.ts.map +0 -1
- package/dist/action/action/review.d.ts +0 -34
- package/dist/action/action/review.d.ts.map +0 -1
- package/dist/action/action/summary.d.ts +0 -9
- package/dist/action/action/summary.d.ts.map +0 -1
- package/dist/action/ast-grep-napi.linux-x64-gnu.node +0 -0
- package/dist/action/ast-grep-napi.linux-x64-musl.node +0 -0
- package/dist/action/cli.d.ts +0 -2
- package/dist/action/cli.d.ts.map +0 -1
- package/dist/action/config.d.ts +0 -12
- package/dist/action/config.d.ts.map +0 -1
- package/dist/action/detectors/dangerous-inner-html.d.ts +0 -3
- package/dist/action/detectors/dangerous-inner-html.d.ts.map +0 -1
- package/dist/action/detectors/dead-code-path.d.ts +0 -3
- package/dist/action/detectors/dead-code-path.d.ts.map +0 -1
- package/dist/action/detectors/debug-console-in-prod.d.ts +0 -3
- package/dist/action/detectors/debug-console-in-prod.d.ts.map +0 -1
- package/dist/action/detectors/double-type-assertion.d.ts +0 -3
- package/dist/action/detectors/double-type-assertion.d.ts.map +0 -1
- package/dist/action/detectors/empty-error-handler.d.ts +0 -3
- package/dist/action/detectors/empty-error-handler.d.ts.map +0 -1
- package/dist/action/detectors/excessive-any.d.ts +0 -3
- package/dist/action/detectors/excessive-any.d.ts.map +0 -1
- package/dist/action/detectors/excessive-comment-ratio.d.ts +0 -3
- package/dist/action/detectors/excessive-comment-ratio.d.ts.map +0 -1
- package/dist/action/detectors/god-component.d.ts +0 -3
- package/dist/action/detectors/god-component.d.ts.map +0 -1
- package/dist/action/detectors/god-function.d.ts +0 -3
- package/dist/action/detectors/god-function.d.ts.map +0 -1
- package/dist/action/detectors/index.d.ts +0 -26
- package/dist/action/detectors/index.d.ts.map +0 -1
- package/dist/action/detectors/insecure-defaults.d.ts +0 -3
- package/dist/action/detectors/insecure-defaults.d.ts.map +0 -1
- package/dist/action/detectors/mixed-concerns.d.ts +0 -3
- package/dist/action/detectors/mixed-concerns.d.ts.map +0 -1
- package/dist/action/detectors/n-plus-one-query.d.ts +0 -3
- package/dist/action/detectors/n-plus-one-query.d.ts.map +0 -1
- package/dist/action/detectors/over-defensive-coding.d.ts +0 -3
- package/dist/action/detectors/over-defensive-coding.d.ts.map +0 -1
- package/dist/action/detectors/over-mocking.d.ts +0 -3
- package/dist/action/detectors/over-mocking.d.ts.map +0 -1
- package/dist/action/detectors/placeholder-in-production.d.ts +0 -3
- package/dist/action/detectors/placeholder-in-production.d.ts.map +0 -1
- package/dist/action/detectors/sql-injection.d.ts +0 -3
- package/dist/action/detectors/sql-injection.d.ts.map +0 -1
- package/dist/action/detectors/todo-in-production.d.ts +0 -3
- package/dist/action/detectors/todo-in-production.d.ts.map +0 -1
- package/dist/action/detectors/token-in-localstorage.d.ts +0 -3
- package/dist/action/detectors/token-in-localstorage.d.ts.map +0 -1
- package/dist/action/detectors/trivial-assertion.d.ts +0 -3
- package/dist/action/detectors/trivial-assertion.d.ts.map +0 -1
- package/dist/action/detectors/unbounded-query.d.ts +0 -3
- package/dist/action/detectors/unbounded-query.d.ts.map +0 -1
- package/dist/action/detectors/unchecked-db-result.d.ts +0 -3
- package/dist/action/detectors/unchecked-db-result.d.ts.map +0 -1
- package/dist/action/detectors/undeclared-import.d.ts +0 -3
- package/dist/action/detectors/undeclared-import.d.ts.map +0 -1
- package/dist/action/engine.d.ts +0 -21
- package/dist/action/engine.d.ts.map +0 -1
- package/dist/action/formatters/github.d.ts +0 -12
- package/dist/action/formatters/github.d.ts.map +0 -1
- package/dist/action/formatters/html.d.ts +0 -9
- package/dist/action/formatters/html.d.ts.map +0 -1
- package/dist/action/formatters/index.d.ts +0 -18
- package/dist/action/formatters/index.d.ts.map +0 -1
- package/dist/action/formatters/json.d.ts +0 -14
- package/dist/action/formatters/json.d.ts.map +0 -1
- package/dist/action/formatters/sarif.d.ts +0 -11
- package/dist/action/formatters/sarif.d.ts.map +0 -1
- package/dist/action/formatters/text.d.ts +0 -13
- package/dist/action/formatters/text.d.ts.map +0 -1
- package/dist/action/index.js +0 -54611
- package/dist/action/index.js.map +0 -1
- package/dist/action/licenses.txt +0 -644
- package/dist/action/package.json +0 -3
- package/dist/action/project.d.ts +0 -8
- package/dist/action/project.d.ts.map +0 -1
- package/dist/action/sourcemap-register.cjs +0 -1
- package/dist/action/types.d.ts +0 -86
- package/dist/action/types.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vibecop",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "AI code quality toolkit — deterministic linter for the AI coding era",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"prepublishOnly": "bun run lint && bun run typecheck && bun test && bun run build"
|
|
16
16
|
},
|
|
17
17
|
"files": [
|
|
18
|
-
"dist",
|
|
18
|
+
"dist/cli.js",
|
|
19
19
|
"README.md",
|
|
20
20
|
"LICENSE"
|
|
21
21
|
],
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/** Parsed diff for a single file in the PR */
|
|
2
|
-
export interface FileDiff {
|
|
3
|
-
filename: string;
|
|
4
|
-
/** Map from new-file line number to diff position (1-indexed from start of file diff) */
|
|
5
|
-
lineToPosition: Map<number, number>;
|
|
6
|
-
/** Set of line numbers that are additions ('+' lines) */
|
|
7
|
-
addedLines: Set<number>;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Parse a unified diff string into a map keyed by filename.
|
|
11
|
-
*
|
|
12
|
-
* Walks through lines produced by `git diff`, tracking file headers,
|
|
13
|
-
* hunk headers, and individual change lines to build a mapping from
|
|
14
|
-
* new-file line numbers to their 1-indexed diff positions.
|
|
15
|
-
*/
|
|
16
|
-
export declare function parseDiff(diffText: string): Map<string, FileDiff>;
|
|
17
|
-
/**
|
|
18
|
-
* Look up the diff position for a given file and line number.
|
|
19
|
-
* Returns null if the file or line is not part of the diff.
|
|
20
|
-
*/
|
|
21
|
-
export declare function findDiffPosition(fileDiffs: Map<string, FileDiff>, filename: string, line: number): number | null;
|
|
22
|
-
/**
|
|
23
|
-
* Check if a line was added or modified in the diff.
|
|
24
|
-
*/
|
|
25
|
-
export declare function isLineChanged(fileDiffs: Map<string, FileDiff>, filename: string, line: number): boolean;
|
|
26
|
-
//# sourceMappingURL=diff.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"diff.d.ts","sourceRoot":"","sources":["file:///home/runner/work/vibecop/vibecop/src/action/diff.ts"],"names":[],"mappings":"AAAA,8CAA8C;AAC9C,MAAM,WAAW,QAAQ;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,yFAAyF;IACzF,cAAc,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,yDAAyD;IACzD,UAAU,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CACzB;AAED;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,QAAQ,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,CAiGjE;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAC9B,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,EAChC,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,GACX,MAAM,GAAG,IAAI,CAIf;AAED;;GAEG;AACH,wBAAgB,aAAa,CAC3B,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,EAChC,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,GACX,OAAO,CAIT"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { Finding } from "../types.js";
|
|
2
|
-
import type { FileDiff } from "./diff.js";
|
|
3
|
-
export interface FilteredFindings {
|
|
4
|
-
/** Findings that can be posted as inline review comments */
|
|
5
|
-
inline: Array<Finding & {
|
|
6
|
-
diffPosition: number;
|
|
7
|
-
}>;
|
|
8
|
-
/** Findings in changed files but not on changed lines */
|
|
9
|
-
summaryOnly: Finding[];
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Filter scan findings into inline-eligible (can be posted as PR review
|
|
13
|
-
* comments on changed lines) vs summary-only (included in the review
|
|
14
|
-
* body but not attached to a specific diff line).
|
|
15
|
-
*/
|
|
16
|
-
export declare function filterFindings(findings: Finding[], fileDiffs: Map<string, FileDiff>, severityThreshold: "error" | "warning" | "info"): FilteredFindings;
|
|
17
|
-
//# sourceMappingURL=filter.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"filter.d.ts","sourceRoot":"","sources":["file:///home/runner/work/vibecop/vibecop/src/action/filter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAE1C,MAAM,WAAW,gBAAgB;IAC/B,4DAA4D;IAC5D,MAAM,EAAE,KAAK,CAAC,OAAO,GAAG;QAAE,YAAY,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAClD,yDAAyD;IACzD,WAAW,EAAE,OAAO,EAAE,CAAC;CACxB;AAWD;;;;GAIG;AACH,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,OAAO,EAAE,EACnB,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,EAChC,iBAAiB,EAAE,OAAO,GAAG,SAAS,GAAG,MAAM,GAC9C,gBAAgB,CA6ClB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["file:///home/runner/work/vibecop/vibecop/src/action/main.ts"],"names":[],"mappings":""}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import type { GitHub } from "@actions/github/lib/utils";
|
|
2
|
-
import type { Finding } from "../types.js";
|
|
3
|
-
export interface ReviewComment {
|
|
4
|
-
path: string;
|
|
5
|
-
position: number;
|
|
6
|
-
body: string;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Create a PR review with optional inline comments.
|
|
10
|
-
*
|
|
11
|
-
* Posts a review on the given pull request. If the comments array is empty,
|
|
12
|
-
* the review is created with just the body text.
|
|
13
|
-
*/
|
|
14
|
-
export declare function createReview(octokit: InstanceType<typeof GitHub>, owner: string, repo: string, pullNumber: number, comments: ReviewComment[], event: "COMMENT" | "REQUEST_CHANGES", body: string): Promise<void>;
|
|
15
|
-
/**
|
|
16
|
-
* Apply a label to a pull request.
|
|
17
|
-
*
|
|
18
|
-
* Uses the issues API since PRs are issues in the GitHub API.
|
|
19
|
-
*/
|
|
20
|
-
export declare function applyLabel(octokit: InstanceType<typeof GitHub>, owner: string, repo: string, pullNumber: number, label: string): Promise<void>;
|
|
21
|
-
/**
|
|
22
|
-
* Close a pull request by setting its state to "closed".
|
|
23
|
-
*/
|
|
24
|
-
export declare function closePr(octokit: InstanceType<typeof GitHub>, owner: string, repo: string, pullNumber: number): Promise<void>;
|
|
25
|
-
/**
|
|
26
|
-
* Format a finding into a review comment body string.
|
|
27
|
-
*
|
|
28
|
-
* Produces a markdown block with the detector ID, severity emoji,
|
|
29
|
-
* finding message, and an optional suggestion quote.
|
|
30
|
-
*/
|
|
31
|
-
export declare function formatInlineComment(finding: Finding & {
|
|
32
|
-
suggestion?: string;
|
|
33
|
-
}): string;
|
|
34
|
-
//# sourceMappingURL=review.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"review.d.ts","sourceRoot":"","sources":["file:///home/runner/work/vibecop/vibecop/src/action/review.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;CACd;AAcD;;;;;GAKG;AACH,wBAAsB,YAAY,CAChC,OAAO,EAAE,YAAY,CAAC,OAAO,MAAM,CAAC,EACpC,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,aAAa,EAAE,EACzB,KAAK,EAAE,SAAS,GAAG,iBAAiB,EACpC,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,IAAI,CAAC,CAsBf;AAED;;;;GAIG;AACH,wBAAsB,UAAU,CAC9B,OAAO,EAAE,YAAY,CAAC,OAAO,MAAM,CAAC,EACpC,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE,MAAM,EAClB,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,IAAI,CAAC,CAaf;AAED;;GAEG;AACH,wBAAsB,OAAO,CAC3B,OAAO,EAAE,YAAY,CAAC,OAAO,MAAM,CAAC,EACpC,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,IAAI,CAAC,CAaf;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,OAAO,GAAG;IAAE,UAAU,CAAC,EAAE,MAAM,CAAA;CAAE,GACzC,MAAM,CAaR"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { Finding, ScanResult } from "../types.js";
|
|
2
|
-
/**
|
|
3
|
-
* Build the PR review body markdown summarizing scan results.
|
|
4
|
-
*
|
|
5
|
-
* Includes a metrics table, optional "additional findings" table for
|
|
6
|
-
* findings on unchanged lines, and optional scan errors section.
|
|
7
|
-
*/
|
|
8
|
-
export declare function buildActionSummary(result: ScanResult, inlineCount: number, summaryOnlyFindings: Finding[], scanTimeMs: number): string;
|
|
9
|
-
//# sourceMappingURL=summary.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"summary.d.ts","sourceRoot":"","sources":["file:///home/runner/work/vibecop/vibecop/src/action/summary.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAcvD;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,UAAU,EAClB,WAAW,EAAE,MAAM,EACnB,mBAAmB,EAAE,OAAO,EAAE,EAC9B,UAAU,EAAE,MAAM,GACjB,MAAM,CA2ER"}
|
|
Binary file
|
|
Binary file
|
package/dist/action/cli.d.ts
DELETED
package/dist/action/cli.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"","sourceRoot":"","sources":["file:///home/runner/work/vibecop/vibecop/src/cli.ts"],"names":[],"mappings":""}
|
package/dist/action/config.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { VibeCopConfig } from "./types.js";
|
|
2
|
-
export declare const DEFAULT_CONFIG: VibeCopConfig;
|
|
3
|
-
/**
|
|
4
|
-
* Load and validate an vibecop config file.
|
|
5
|
-
*
|
|
6
|
-
* If `configPath` is provided, reads that file directly.
|
|
7
|
-
* Otherwise searches for `.vibecop.yml` in the current working directory.
|
|
8
|
-
*
|
|
9
|
-
* Returns defaults when no config file is found.
|
|
10
|
-
* Throws on invalid YAML or validation errors.
|
|
11
|
-
*/
|
|
12
|
-
export declare function loadConfig(configPath?: string): VibeCopConfig;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"","sourceRoot":"","sources":["file:///home/runner/work/vibecop/vibecop/src/config.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAA4B,MAAM,YAAY,CAAC;AA2B1E,eAAO,MAAM,cAAc,EAAE,aAG5B,CAAC;AAEF;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,aAAa,CA6C7D"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dangerous-inner-html.d.ts","sourceRoot":"","sources":["file:///home/runner/work/vibecop/vibecop/src/detectors/dangerous-inner-html.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAA6B,MAAM,aAAa,CAAC;AAsCvE,eAAO,MAAM,kBAAkB,EAAE,QAUhC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dead-code-path.d.ts","sourceRoot":"","sources":["file:///home/runner/work/vibecop/vibecop/src/detectors/dead-code-path.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAA6B,MAAM,aAAa,CAAC;AA4GvE,eAAO,MAAM,YAAY,EAAE,QAa1B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"debug-console-in-prod.d.ts","sourceRoot":"","sources":["file:///home/runner/work/vibecop/vibecop/src/detectors/debug-console-in-prod.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAA6B,MAAM,aAAa,CAAC;AA0EvE,eAAO,MAAM,kBAAkB,EAAE,QAahC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"double-type-assertion.d.ts","sourceRoot":"","sources":["file:///home/runner/work/vibecop/vibecop/src/detectors/double-type-assertion.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAA6B,MAAM,aAAa,CAAC;AAsCvE,eAAO,MAAM,mBAAmB,EAAE,QAUjC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"empty-error-handler.d.ts","sourceRoot":"","sources":["file:///home/runner/work/vibecop/vibecop/src/detectors/empty-error-handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAA6B,MAAM,aAAa,CAAC;AA6JvE,eAAO,MAAM,iBAAiB,EAAE,QAgB/B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"excessive-any.d.ts","sourceRoot":"","sources":["file:///home/runner/work/vibecop/vibecop/src/detectors/excessive-any.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAA6B,MAAM,aAAa,CAAC;AA8EvE,eAAO,MAAM,YAAY,EAAE,QAU1B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"excessive-comment-ratio.d.ts","sourceRoot":"","sources":["file:///home/runner/work/vibecop/vibecop/src/detectors/excessive-comment-ratio.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAA6B,MAAM,aAAa,CAAC;AAuFvE,eAAO,MAAM,qBAAqB,EAAE,QA6CnC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"god-component.d.ts","sourceRoot":"","sources":["file:///home/runner/work/vibecop/vibecop/src/detectors/god-component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAA6B,MAAM,aAAa,CAAC;AAoHvE,eAAO,MAAM,YAAY,EAAE,QAW1B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"god-function.d.ts","sourceRoot":"","sources":["file:///home/runner/work/vibecop/vibecop/src/detectors/god-function.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAA6B,MAAM,aAAa,CAAC;AAoRvE,eAAO,MAAM,WAAW,EAAE,QAgBzB,CAAC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export { emptyErrorHandler } from "./empty-error-handler.js";
|
|
2
|
-
export { trivialAssertion } from "./trivial-assertion.js";
|
|
3
|
-
export { insecureDefaults } from "./insecure-defaults.js";
|
|
4
|
-
export { undeclaredImport } from "./undeclared-import.js";
|
|
5
|
-
export { overDefensiveCoding } from "./over-defensive-coding.js";
|
|
6
|
-
export { excessiveCommentRatio } from "./excessive-comment-ratio.js";
|
|
7
|
-
export { overMocking } from "./over-mocking.js";
|
|
8
|
-
export { nPlusOneQuery } from "./n-plus-one-query.js";
|
|
9
|
-
export { uncheckedDbResult } from "./unchecked-db-result.js";
|
|
10
|
-
export { deadCodePath } from "./dead-code-path.js";
|
|
11
|
-
export { doubleTypeAssertion } from "./double-type-assertion.js";
|
|
12
|
-
export { excessiveAny } from "./excessive-any.js";
|
|
13
|
-
export { debugConsoleInProd } from "./debug-console-in-prod.js";
|
|
14
|
-
export { todoInProduction } from "./todo-in-production.js";
|
|
15
|
-
export { placeholderInProduction } from "./placeholder-in-production.js";
|
|
16
|
-
export { tokenInLocalstorage } from "./token-in-localstorage.js";
|
|
17
|
-
export { godComponent } from "./god-component.js";
|
|
18
|
-
export { godFunction } from "./god-function.js";
|
|
19
|
-
export { sqlInjection } from "./sql-injection.js";
|
|
20
|
-
export { dangerousInnerHtml } from "./dangerous-inner-html.js";
|
|
21
|
-
export { unboundedQuery } from "./unbounded-query.js";
|
|
22
|
-
export { mixedConcerns } from "./mixed-concerns.js";
|
|
23
|
-
import type { Detector } from "../types.js";
|
|
24
|
-
/** All built-in detectors */
|
|
25
|
-
export declare const builtinDetectors: Detector[];
|
|
26
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["file:///home/runner/work/vibecop/vibecop/src/detectors/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAwB5C,6BAA6B;AAC7B,eAAO,MAAM,gBAAgB,EAAE,QAAQ,EAuBtC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"insecure-defaults.d.ts","sourceRoot":"","sources":["file:///home/runner/work/vibecop/vibecop/src/detectors/insecure-defaults.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAA6B,MAAM,aAAa,CAAC;AAgavE,eAAO,MAAM,gBAAgB,EAAE,QAgB9B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mixed-concerns.d.ts","sourceRoot":"","sources":["file:///home/runner/work/vibecop/vibecop/src/detectors/mixed-concerns.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAA6B,MAAM,aAAa,CAAC;AA6FvE,eAAO,MAAM,aAAa,EAAE,QAU3B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"n-plus-one-query.d.ts","sourceRoot":"","sources":["file:///home/runner/work/vibecop/vibecop/src/detectors/n-plus-one-query.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAA6B,MAAM,aAAa,CAAC;AAmRvE,eAAO,MAAM,aAAa,EAAE,QAe3B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"over-defensive-coding.d.ts","sourceRoot":"","sources":["file:///home/runner/work/vibecop/vibecop/src/detectors/over-defensive-coding.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAA6B,MAAM,aAAa,CAAC;AA4NvE,eAAO,MAAM,mBAAmB,EAAE,QAoBjC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"over-mocking.d.ts","sourceRoot":"","sources":["file:///home/runner/work/vibecop/vibecop/src/detectors/over-mocking.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAA6B,MAAM,aAAa,CAAC;AAyIvE,eAAO,MAAM,WAAW,EAAE,QAqBzB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"placeholder-in-production.d.ts","sourceRoot":"","sources":["file:///home/runner/work/vibecop/vibecop/src/detectors/placeholder-in-production.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAA6B,MAAM,aAAa,CAAC;AA4DvE,eAAO,MAAM,uBAAuB,EAAE,QAUrC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sql-injection.d.ts","sourceRoot":"","sources":["file:///home/runner/work/vibecop/vibecop/src/detectors/sql-injection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAA6B,MAAM,aAAa,CAAC;AAqLvE,eAAO,MAAM,YAAY,EAAE,QAa1B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"todo-in-production.d.ts","sourceRoot":"","sources":["file:///home/runner/work/vibecop/vibecop/src/detectors/todo-in-production.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAA6B,MAAM,aAAa,CAAC;AA0CvE,eAAO,MAAM,gBAAgB,EAAE,QAU9B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"token-in-localstorage.d.ts","sourceRoot":"","sources":["file:///home/runner/work/vibecop/vibecop/src/detectors/token-in-localstorage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAA6B,MAAM,aAAa,CAAC;AAuDvE,eAAO,MAAM,mBAAmB,EAAE,QAUjC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"trivial-assertion.d.ts","sourceRoot":"","sources":["file:///home/runner/work/vibecop/vibecop/src/detectors/trivial-assertion.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAA6B,MAAM,aAAa,CAAC;AA+OvE,eAAO,MAAM,gBAAgB,EAAE,QAqB9B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unbounded-query.d.ts","sourceRoot":"","sources":["file:///home/runner/work/vibecop/vibecop/src/detectors/unbounded-query.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAA6B,MAAM,aAAa,CAAC;AAqIvE,eAAO,MAAM,cAAc,EAAE,QAY5B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unchecked-db-result.d.ts","sourceRoot":"","sources":["file:///home/runner/work/vibecop/vibecop/src/detectors/unchecked-db-result.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAA6B,MAAM,aAAa,CAAC;AA4IvE,eAAO,MAAM,iBAAiB,EAAE,QAa/B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"undeclared-import.d.ts","sourceRoot":"","sources":["file:///home/runner/work/vibecop/vibecop/src/detectors/undeclared-import.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAA6B,MAAM,aAAa,CAAC;AA2hBvE,eAAO,MAAM,gBAAgB,EAAE,QAqB9B,CAAC"}
|
package/dist/action/engine.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { VibeCopConfig, Detector, FileInfo, Lang, ProjectInfo, ScanResult } from "./types.js";
|
|
2
|
-
/** Map file extensions to Lang */
|
|
3
|
-
export declare const EXTENSION_MAP: Record<string, Lang>;
|
|
4
|
-
export declare function ensurePythonRegistered(): void;
|
|
5
|
-
/**
|
|
6
|
-
* Discover all supported files under `scanRoot`, respecting ignore patterns.
|
|
7
|
-
*/
|
|
8
|
-
export declare function discoverFiles(scanRoot: string, config: VibeCopConfig): FileInfo[];
|
|
9
|
-
/**
|
|
10
|
-
* Run all detectors against discovered files.
|
|
11
|
-
*/
|
|
12
|
-
export declare function runDetectors(files: FileInfo[], detectors: Detector[], project: ProjectInfo, config: VibeCopConfig, options?: {
|
|
13
|
-
verbose?: boolean;
|
|
14
|
-
maxFindings?: number;
|
|
15
|
-
}): ScanResult;
|
|
16
|
-
/**
|
|
17
|
-
* Convert file paths to FileInfo objects, filtering to supported extensions.
|
|
18
|
-
* Shared between CLI and GitHub Action.
|
|
19
|
-
*/
|
|
20
|
-
export declare function pathsToFileInfos(paths: string[], scanRoot: string): FileInfo[];
|
|
21
|
-
export declare function isTestFile(filePath: string): boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"","sourceRoot":"","sources":["file:///home/runner/work/vibecop/vibecop/src/engine.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,aAAa,EAEb,QAAQ,EACR,QAAQ,EACR,IAAI,EACJ,WAAW,EAEX,UAAU,EAEX,MAAM,YAAY,CAAC;AAEpB,kCAAkC;AAClC,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,CAQ9C,CAAC;AAaF,wBAAgB,sBAAsB,IAAI,IAAI,CAgB7C;AAgFD;;GAEG;AACH,wBAAgB,aAAa,CAC3B,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,aAAa,GACpB,QAAQ,EAAE,CAcZ;AAED;;GAEG;AACH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,QAAQ,EAAE,EACjB,SAAS,EAAE,QAAQ,EAAE,EACrB,OAAO,EAAE,WAAW,EACpB,MAAM,EAAE,aAAa,EACrB,OAAO,GAAE;IACP,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;CACjB,GACL,UAAU,CA+IZ;AAmLD;;;GAGG;AACH,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,MAAM,EAAE,EACf,QAAQ,EAAE,MAAM,GACf,QAAQ,EAAE,CA4BZ;AAID,wBAAgB,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAEpD"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { ScanResult } from "../types.js";
|
|
2
|
-
/**
|
|
3
|
-
* Format scan results as GitHub Actions workflow commands.
|
|
4
|
-
*
|
|
5
|
-
* Produces `::error`, `::warning`, or `::notice` annotation lines
|
|
6
|
-
* for each finding, plus `::warning` for scan errors.
|
|
7
|
-
*
|
|
8
|
-
* If the `GITHUB_STEP_SUMMARY` environment variable is set, appends
|
|
9
|
-
* a markdown summary table to that file.
|
|
10
|
-
*/
|
|
11
|
-
export declare function formatGithub(result: ScanResult): string;
|
|
12
|
-
//# sourceMappingURL=github.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"github.d.ts","sourceRoot":"","sources":["file:///home/runner/work/vibecop/vibecop/src/formatters/github.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAW,UAAU,EAAE,MAAM,aAAa,CAAC;AAiFvD;;;;;;;;GAQG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,CAiCvD"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { ScanResult } from "../types.js";
|
|
2
|
-
/**
|
|
3
|
-
* Format scan results as a self-contained HTML report.
|
|
4
|
-
*
|
|
5
|
-
* Produces a single HTML string with inline CSS, no external dependencies.
|
|
6
|
-
* Findings are grouped by file with a summary header and footer.
|
|
7
|
-
*/
|
|
8
|
-
export declare function formatHtml(result: ScanResult): string;
|
|
9
|
-
//# sourceMappingURL=html.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"html.d.ts","sourceRoot":"","sources":["file:///home/runner/work/vibecop/vibecop/src/formatters/html.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAW,UAAU,EAAE,MAAM,aAAa,CAAC;AA4BvD;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,CAwIrD"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { ScanResult } from "../types.js";
|
|
2
|
-
export { formatGithub } from "./github.js";
|
|
3
|
-
export { formatHtml } from "./html.js";
|
|
4
|
-
export { formatJson } from "./json.js";
|
|
5
|
-
export { formatSarif } from "./sarif.js";
|
|
6
|
-
export { formatText } from "./text.js";
|
|
7
|
-
export type { TextFormatOptions } from "./text.js";
|
|
8
|
-
/** Supported format names */
|
|
9
|
-
export type FormatName = "text" | "json" | "github" | "sarif" | "html";
|
|
10
|
-
export interface FormatOptions {
|
|
11
|
-
groupBy?: "file" | "rule";
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Get a formatter function by name.
|
|
15
|
-
* Throws for unrecognized formats.
|
|
16
|
-
*/
|
|
17
|
-
export declare function getFormatter(format: string, options?: FormatOptions): (result: ScanResult) => string;
|
|
18
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["file:///home/runner/work/vibecop/vibecop/src/formatters/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAQ9C,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,YAAY,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAEnD,6BAA6B;AAC7B,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;AAEvE,MAAM,WAAW,aAAa;IAC5B,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC3B;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAC1B,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,aAAa,GACtB,CAAC,MAAM,EAAE,UAAU,KAAK,MAAM,CAiBhC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { ScanResult } from "../types.js";
|
|
2
|
-
/**
|
|
3
|
-
* Format scan results as structured JSON.
|
|
4
|
-
*
|
|
5
|
-
* Output shape:
|
|
6
|
-
* {
|
|
7
|
-
* "findings": [...],
|
|
8
|
-
* "summary": { "total": N, "errors": N, "warnings": N, "info": N },
|
|
9
|
-
* "filesScanned": N,
|
|
10
|
-
* "errors": [...]
|
|
11
|
-
* }
|
|
12
|
-
*/
|
|
13
|
-
export declare function formatJson(result: ScanResult): string;
|
|
14
|
-
//# sourceMappingURL=json.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"json.d.ts","sourceRoot":"","sources":["file:///home/runner/work/vibecop/vibecop/src/formatters/json.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C;;;;;;;;;;GAUG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,CAoBrD"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { ScanResult } from "../types.js";
|
|
2
|
-
/**
|
|
3
|
-
* Format scan results as SARIF 2.1.0 JSON.
|
|
4
|
-
*
|
|
5
|
-
* Produces a complete, valid SARIF log with:
|
|
6
|
-
* - Tool driver metadata with rules derived from findings
|
|
7
|
-
* - Results array with physical locations
|
|
8
|
-
* - Invocations with execution status and error notifications
|
|
9
|
-
*/
|
|
10
|
-
export declare function formatSarif(result: ScanResult): string;
|
|
11
|
-
//# sourceMappingURL=sarif.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sarif.d.ts","sourceRoot":"","sources":["file:///home/runner/work/vibecop/vibecop/src/formatters/sarif.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAW,UAAU,EAAE,MAAM,aAAa,CAAC;AAoEvD;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,CAmEtD"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { ScanResult } from "../types.js";
|
|
2
|
-
export interface TextFormatOptions {
|
|
3
|
-
groupBy?: "file" | "rule";
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* Format scan results as stylish terminal output.
|
|
7
|
-
*
|
|
8
|
-
* Groups findings by file (default) or by rule (--group-by rule).
|
|
9
|
-
* Adds color when stdout is a TTY (unless NO_COLOR is set).
|
|
10
|
-
* Shows a summary line at the bottom with total counts.
|
|
11
|
-
*/
|
|
12
|
-
export declare function formatText(result: ScanResult, options?: TextFormatOptions): string;
|
|
13
|
-
//# sourceMappingURL=text.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["file:///home/runner/work/vibecop/vibecop/src/formatters/text.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAW,UAAU,EAAE,MAAM,aAAa,CAAC;AA6CvD,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC3B;AAqFD;;;;;;GAMG;AACH,wBAAgB,UAAU,CACxB,MAAM,EAAE,UAAU,EAClB,OAAO,CAAC,EAAE,iBAAiB,GAC1B,MAAM,CA2DR"}
|