Skip to content

Commit c70f9aa

Browse files
committed
fix: switch to @vercel/ncc for proper dependency bundling
- Replace tsdown with @vercel/ncc which is the standard bundler for GitHub Actions - This ensures all dependencies (@actions/core, @actions/github, etc.) are properly bundled - Fixes 'Cannot find module @actions/core' error when action runs in GitHub workflows - All tests pass and bundle loads successfully
1 parent ce82b43 commit c70f9aa

28 files changed

+42055
-86
lines changed

dist/cli.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env node
2+
export {};

dist/cli.d.ts.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/evaluator.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
interface EvaluationResult {
2+
isHumanLike: boolean;
3+
confidence: number;
4+
reasons: string[];
5+
patterns: string[];
6+
}
7+
export declare function evaluateCode(code: string, _filename: string): EvaluationResult;
8+
export {};

dist/evaluator.d.ts.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/github.d.ts

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
export declare function verifyWebhookSignature(body: string, signature: string | null, secret: string): Promise<boolean>;
2+
export interface GitHubConfig {
3+
GITHUB_TOKEN?: string;
4+
GITHUB_WEBHOOK_SECRET: string;
5+
}
6+
export declare class GitHubClient {
7+
private token?;
8+
private webhookSecret;
9+
constructor(config: GitHubConfig);
10+
private getHeaders;
11+
fetchPullRequestFiles(owner: string, repo: string, pullNumber: number): Promise<Array<{
12+
filename: string;
13+
patch: string;
14+
}>>;
15+
private isCodeFile;
16+
verifyWebhookSignature(body: string, signature: string | null): Promise<boolean>;
17+
createCheckRun(owner: string, repo: string, data: {
18+
name: string;
19+
head_sha: string;
20+
status: 'queued' | 'in_progress' | 'completed';
21+
conclusion?: 'success' | 'failure' | 'neutral' | 'cancelled' | 'skipped' | 'timed_out';
22+
output?: {
23+
title: string;
24+
summary: string;
25+
text?: string;
26+
};
27+
}): Promise<void>;
28+
}
29+
export declare function fetchPullRequestFiles(owner: string, repo: string, pullNumber: number, token?: string): Promise<any[]>;
30+
export declare function createCheckRun(owner: string, repo: string, data: {
31+
name: string;
32+
head_sha: string;
33+
status: 'queued' | 'in_progress' | 'completed';
34+
conclusion?: 'success' | 'failure' | 'neutral' | 'cancelled' | 'skipped' | 'timed_out';
35+
output?: {
36+
title: string;
37+
summary: string;
38+
text?: string;
39+
};
40+
}, token: string): Promise<void>;

dist/github.d.ts.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export {};

dist/index.d.ts.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)