@kernel.chat/kbot 3.38.0 → 3.40.0
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/dist/autonomous-contributor.d.ts +88 -0
- package/dist/autonomous-contributor.d.ts.map +1 -0
- package/dist/autonomous-contributor.js +862 -0
- package/dist/autonomous-contributor.js.map +1 -0
- package/dist/collective-network.d.ts +102 -0
- package/dist/collective-network.d.ts.map +1 -0
- package/dist/collective-network.js +634 -0
- package/dist/collective-network.js.map +1 -0
- package/dist/community-autopilot.d.ts +98 -0
- package/dist/community-autopilot.d.ts.map +1 -0
- package/dist/community-autopilot.js +676 -0
- package/dist/community-autopilot.js.map +1 -0
- package/dist/cross-device-sync.d.ts +36 -0
- package/dist/cross-device-sync.d.ts.map +1 -0
- package/dist/cross-device-sync.js +532 -0
- package/dist/cross-device-sync.js.map +1 -0
- package/dist/forge-marketplace-server.d.ts +23 -0
- package/dist/forge-marketplace-server.d.ts.map +1 -0
- package/dist/forge-marketplace-server.js +457 -0
- package/dist/forge-marketplace-server.js.map +1 -0
- package/dist/knowledge-base.d.ts +95 -0
- package/dist/knowledge-base.d.ts.map +1 -0
- package/dist/knowledge-base.js +468 -0
- package/dist/knowledge-base.js.map +1 -0
- package/dist/pattern-feed.d.ts +65 -0
- package/dist/pattern-feed.d.ts.map +1 -0
- package/dist/pattern-feed.js +357 -0
- package/dist/pattern-feed.js.map +1 -0
- package/dist/user-graph.d.ts +123 -0
- package/dist/user-graph.d.ts.map +1 -0
- package/dist/user-graph.js +435 -0
- package/dist/user-graph.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
export type FindingSeverity = 'info' | 'warn' | 'critical';
|
|
2
|
+
export type FindingCategory = 'todo-removal' | 'typo' | 'missing-type' | 'dead-code' | 'complexity' | 'duplicate-pattern' | 'missing-docs' | 'dependency-issue' | 'style-inconsistency' | 'other';
|
|
3
|
+
export interface ContributorFinding {
|
|
4
|
+
category: FindingCategory;
|
|
5
|
+
severity: FindingSeverity;
|
|
6
|
+
title: string;
|
|
7
|
+
description: string;
|
|
8
|
+
file: string;
|
|
9
|
+
line?: number;
|
|
10
|
+
/** The original code snippet */
|
|
11
|
+
original?: string;
|
|
12
|
+
/** Whether this is a simple, auto-fixable issue */
|
|
13
|
+
isSimpleFix: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface ProposedFix {
|
|
16
|
+
finding: ContributorFinding;
|
|
17
|
+
description: string;
|
|
18
|
+
/** The diff-like description of the change */
|
|
19
|
+
changeSummary: string;
|
|
20
|
+
/** Estimated review time in minutes */
|
|
21
|
+
estimatedReviewMinutes: number;
|
|
22
|
+
}
|
|
23
|
+
export interface ContributionReport {
|
|
24
|
+
repo: string;
|
|
25
|
+
clonedAt: string;
|
|
26
|
+
analyzedAt: string;
|
|
27
|
+
/** Detected primary language */
|
|
28
|
+
language: string;
|
|
29
|
+
/** Detected framework (if any) */
|
|
30
|
+
framework: string;
|
|
31
|
+
/** Total files scanned */
|
|
32
|
+
filesScanned: number;
|
|
33
|
+
findings: ContributorFinding[];
|
|
34
|
+
proposed_fixes: ProposedFix[];
|
|
35
|
+
estimated_impact: {
|
|
36
|
+
totalFindings: number;
|
|
37
|
+
simpleFixes: number;
|
|
38
|
+
complexFindings: number;
|
|
39
|
+
categories: Record<string, number>;
|
|
40
|
+
};
|
|
41
|
+
/** Bootstrap-style project health summary */
|
|
42
|
+
projectHealth: {
|
|
43
|
+
hasReadme: boolean;
|
|
44
|
+
hasLicense: boolean;
|
|
45
|
+
hasTests: boolean;
|
|
46
|
+
hasCI: boolean;
|
|
47
|
+
hasContributing: boolean;
|
|
48
|
+
hasTypeConfig: boolean;
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
export interface ContributorOptions {
|
|
52
|
+
/** Maximum files to scan (default: 500) */
|
|
53
|
+
maxFiles?: number;
|
|
54
|
+
/** Minimum severity to include (default: 'info') */
|
|
55
|
+
minSeverity?: FindingSeverity;
|
|
56
|
+
/** Skip cloning if a local path is provided */
|
|
57
|
+
localPath?: string;
|
|
58
|
+
/** Keep the cloned repo after analysis (default: false) */
|
|
59
|
+
keepClone?: boolean;
|
|
60
|
+
}
|
|
61
|
+
export interface GoodFirstIssue {
|
|
62
|
+
number: number;
|
|
63
|
+
title: string;
|
|
64
|
+
url: string;
|
|
65
|
+
labels: string[];
|
|
66
|
+
created_at: string;
|
|
67
|
+
author: string;
|
|
68
|
+
comments: number;
|
|
69
|
+
body_preview: string;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Point at any GitHub repo, clone it, analyze it, and generate a contribution
|
|
73
|
+
* report with findings and proposed fixes.
|
|
74
|
+
*
|
|
75
|
+
* v1 is analysis-only — no automatic PR creation. The report gives you
|
|
76
|
+
* everything needed to make targeted contributions.
|
|
77
|
+
*/
|
|
78
|
+
export declare function runAutonomousContributor(repoUrl: string, options?: ContributorOptions): Promise<ContributionReport>;
|
|
79
|
+
/**
|
|
80
|
+
* Fetch open issues labeled "good first issue" or "help wanted" from a GitHub repo.
|
|
81
|
+
* Uses the public GitHub API (no auth required for public repos).
|
|
82
|
+
*/
|
|
83
|
+
export declare function listGoodFirstIssues(repoUrl: string): Promise<GoodFirstIssue[]>;
|
|
84
|
+
/**
|
|
85
|
+
* Format a ContributionReport as a readable markdown string.
|
|
86
|
+
*/
|
|
87
|
+
export declare function formatContributionReport(report: ContributionReport): string;
|
|
88
|
+
//# sourceMappingURL=autonomous-contributor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"autonomous-contributor.d.ts","sourceRoot":"","sources":["../src/autonomous-contributor.ts"],"names":[],"mappings":"AAkBA,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,MAAM,GAAG,UAAU,CAAA;AAC1D,MAAM,MAAM,eAAe,GACvB,cAAc,GACd,MAAM,GACN,cAAc,GACd,WAAW,GACX,YAAY,GACZ,mBAAmB,GACnB,cAAc,GACd,kBA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